linux镜像confirm,制作ubuntu16.04 自动安装iso镜像 二

isolinux.cfg

default autoinstall

prompt 0

timeout 100

menu title Custom Live CD

menu background splash.png

menu color title 1;37;44

label live

menu label live - boot the Live System

kernel /casper/vmlinuz

append  file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd quiet splash --

label xforcevesa

menu label xforcevesa - boot Live in safe graphics mode

kernel /casper/vmlinuz

append  file=/cdrom/preseed/ubuntu.seed boot=casper xforcevesa initrd=/casper/initrd quiet splash --

label install

menu label install - start the installer directly

kernel /casper/vmlinuz

append  file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity initrd=/casper/initrd quiet splash --

label textonly

menu label textonly - boot Live in textonly mode

kernel /casper/vmlinuz

append  file=/cdrom/preseed/ubuntu.seed boot=casper textonly initrd=/casper/initrd quiet --

label debug

menu label debug - boot the Live System without splash and show boot info

kernel /casper/vmlinuz

append  file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd nosplash --

label autoinstall

menu label autoinstall - auto install ubuntu

kernel /casper/vmlinuz

append initrd=/casper/initrd file=/cdrom/preseed/autoinstall.seed boot=casper debian-installer/locale=zh_CN kdb-chooser/method=us console-setup/layoutcode=us automatic-ubiquity quiet splash --

root@ubuntu:/opt/ubuntu# vi preseed/autoinstall.seed

d-i debian-installer/locale string en_US

d-i console-setup/ask_detect boolean false

d-i console-configuration/layoutcode string us

d-i keyboard-configuration/modelcode string SKIP

d-i clock-setup/utc boolean false

d-i time/zone string Asia/Shanghai

d-i netcfg/choose_interface select auto

d-i netcfg/dhcp_failed note

d-i netcfg/dhcp_options select Do not configure the network at this time

d-i netcfg/get_hostname string kankanai

d-i netcfg/get_domain string kankanai-domain

d-i netcfg/wireless_wep string

d-i mirror/country string china

d-i mirror/http/hostname string kankan

d-i mirror/http/directory string /ubuntu

d-i mirror/http/proxy string

d-i clock-setup/ntp boolean true

d-i partman-auto/disk string /dev/sda

d-i partman-auto/method string regular

d-i partman-lvm/device_remove_lvm boolean true

d-i partman-md/device_remove_md boolean true

d-i partman-lvm/confirm boolean true

d-i partman-lvm/confirm_nooverwrite boolean true

d-i partman-auto/choose_recipe select atomic

d-i partman-partitioning/confirm_write_new_label boolean true

d-i partman/choose_partition select finish

d-i partman/confirm boolean true

d-i partman/confirm_nooverwrite boolean true

d-i passwd/user-fullname string ubuntu password ubuntu

d-i passwd/username string ubuntu

d-i passwd/user-password password ubuntu

d-i passwd/user-password-again password ubuntu

d-i lilo-installer/skip boolean true

d-i grub-installer/only_debian boolean true

d-i finish-install/reboot_in_progress note

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Ubuntu 上使用 Vim 编辑器时,可以通过以下步骤启用自动补齐功能: 1. 安装 Vim 插件管理器 Vundle: ```bash git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim ``` 2. 在 `~/.vimrc` 文件中添加以下内容: ```vim set nocompatible " be iMproved, required filetype off " required set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'Valloric/YouCompleteMe' call vundle#end() " required filetype plugin indent on " required let g:ycm_autoclose_preview_window_after_completion=1 let g:ycm_min_num_of_chars_for_completion=2 let g:ycm_collect_identifiers_from_comments_and_strings=1 let g:ycm_complete_in_strings=1 let g:ycm_complete_in_comments=1 let g:ycm_key_invoke_completion='<C-Space>' let g:ycm_confirm_extra_conf=0 let g:ycm_add_preview_to_completeopt=1 let g:ycm_show_diagnostics_ui=1 let g:ycm_global_ycm_extra_conf='~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py' let g:ycm_python_binary_path='/usr/bin/python3' let g:ycm_server_python_interpreter='/usr/bin/python3' let g:ycm_server_keep_logfiles=0 let g:ycm_server_log_level=3 ``` 3. 打开 Vim 并执行以下命令安装插件: ``` :PluginInstall ``` 4. 安装 YCM(YouCompleteMe)插件的依赖项: ```bash sudo apt install build-essential cmake python3-dev ``` 5. 在 `~/.vim/bundle/YouCompleteMe/` 目录下执行以下命令安装 YCM 插件: ```bash python3 install.py --clang-completer ``` 安装完成后,重新打开 Vim,输入任意单词并按下 `Ctrl + Space` 键即可触发自动补齐功能。如果需要更改自动补齐的选项,可以修改 `~/.vimrc` 文件中的配置。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值