Refactored software list, fixed systemd-resolved fallback DNS, added vim configuration.
This commit is contained in:
parent
163bf51a4c
commit
fe4fcad8b0
@ -12,16 +12,26 @@ if [ !$MKRESCUE_VERBOSE ]; then
|
|||||||
STDOUT='/dev/null'
|
STDOUT='/dev/null'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# hddtemp
|
SOFTWARE="acl acpi-support-base attr \
|
||||||
|
bash-completion bind9-host binutils bridge-utils bsdmainutils \
|
||||||
SOFTWARE="acl acpi-support-base attr bash-completion bind9-host binutils \
|
ca-certificates \
|
||||||
bridge-utils bsdmainutils ca-certificates debootstrap dialog \
|
debootstrap dialog dosfstools dmidecode \
|
||||||
dmidecode dosfstools ethtool fdisk file gddrescue gdisk \
|
efibootmgr ethtool \
|
||||||
hdparm ifenslave iproute2 iputils-ping less lsof lvm2 lzip mdadm \
|
fdisk file \
|
||||||
mtr-tiny netcat-traditional net-tools ntfs-3g nvme-cli parted pciutils pixz procps \
|
gddrescue gdisk grub-pc grub-efi-amd64-bin \
|
||||||
psmisc rsync screen scrub smartmontools ssh strace sysstat tar tcpdump \
|
hdparm \
|
||||||
telnet traceroute tree usbutils vim vlan wget xz-utils systemd systemd-resolved systemd-sysv \
|
ifenslave iproute2 iputils-ping ipxe \
|
||||||
nfs-common ipxe grub-pc grub-efi-amd64-bin efibootmgr pv mtools xfsprogs \
|
less lsof lvm2 lzip \
|
||||||
|
mdadm mtr-tiny mtools \
|
||||||
|
nano netcat-traditional net-tools nfs-common ntfs-3g nvme-cli \
|
||||||
|
parted pciutils pixz procps psmisc pv \
|
||||||
|
rsync \
|
||||||
|
screen scrub smartmontools ssh strace sysstat systemd systemd-resolved systemd-sysv \
|
||||||
|
tar tcpdump telnet traceroute tree \
|
||||||
|
usbutils \
|
||||||
|
vim vlan \
|
||||||
|
wget \
|
||||||
|
xz-utils xfsprogs \
|
||||||
zfsutils-linux zstd"
|
zfsutils-linux zstd"
|
||||||
|
|
||||||
chroot ${TARGET} apt-get $APT_PARAM --yes install ${SOFTWARE} > $STDOUT
|
chroot ${TARGET} apt-get $APT_PARAM --yes install ${SOFTWARE} > $STDOUT
|
||||||
@ -59,7 +69,7 @@ DHCP=yes
|
|||||||
EOF
|
EOF
|
||||||
cat << EOF > ${TARGET}/etc/systemd/resolved.conf
|
cat << EOF > ${TARGET}/etc/systemd/resolved.conf
|
||||||
[Resolve]
|
[Resolve]
|
||||||
DNS=8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844
|
FallbackDNS=8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
rm ${TARGET}/etc/resolv.conf
|
rm ${TARGET}/etc/resolv.conf
|
||||||
@ -96,7 +106,59 @@ kernel.panic = 5
|
|||||||
kernel.panic_on_oops = 1
|
kernel.panic_on_oops = 1
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# VIM
|
||||||
sed -i 's/" let g:skip_defaults_vim = 1/let g:skip_defaults_vim = 1/g' ${TARGET}/etc/vim/vimrc
|
sed -i 's/" let g:skip_defaults_vim = 1/let g:skip_defaults_vim = 1/g' ${TARGET}/etc/vim/vimrc
|
||||||
|
|
||||||
|
cat << EOF > ${TARGET}/etc/vim/vimrc.local
|
||||||
|
syntax enable
|
||||||
|
set background=dark
|
||||||
|
|
||||||
|
" spaces & tabs
|
||||||
|
set tabstop=4 " number of visual spaces per TAB
|
||||||
|
set softtabstop=4 " number of spaces in tab when editing
|
||||||
|
set expandtab " tabs are spaces
|
||||||
|
set shiftwidth=4 " indent shift
|
||||||
|
set autoindent
|
||||||
|
|
||||||
|
" UI config
|
||||||
|
set number " show line numbers
|
||||||
|
set showcmd " show command in bottom bar
|
||||||
|
filetype indent on " load filetype-specific indent files
|
||||||
|
set wildmenu " visual autocomplete for command menu
|
||||||
|
set lazyredraw " redraw only when we need to
|
||||||
|
set showmatch " highlight matching [{()}]
|
||||||
|
set laststatus=2 " always display status line
|
||||||
|
set ruler " show the line and column number
|
||||||
|
set showmode " show current mode
|
||||||
|
set mousemodel=extend
|
||||||
|
set history=100
|
||||||
|
set pastetoggle=<F12>
|
||||||
|
|
||||||
|
" searching
|
||||||
|
set incsearch " search as characters are entered
|
||||||
|
set hlsearch " highlight matches
|
||||||
|
|
||||||
|
" folding
|
||||||
|
set foldenable " enable folding
|
||||||
|
set foldlevelstart=10 " open most folds by default
|
||||||
|
set foldnestmax=10 " 10 nested fold max
|
||||||
|
nnoremap <space> za
|
||||||
|
set foldmethod=indent
|
||||||
|
|
||||||
|
" movement
|
||||||
|
set backspace=indent,eol,start
|
||||||
|
|
||||||
|
" language-specific settings
|
||||||
|
autocmd FileType mail,news set textwidth=74 formatoptions=tln21cq
|
||||||
|
autocmd FileType text setlocal textwidth=78
|
||||||
|
autocmd FileType make set noexpandtab tabstop=8
|
||||||
|
let bash_is_sh = 1
|
||||||
|
let c_gnu=1
|
||||||
|
let c_comment_strings=1
|
||||||
|
let java_highlight_java_lang_ids=1
|
||||||
|
let python_highlight_all = 1
|
||||||
|
EOF
|
||||||
|
|
||||||
rsync -avS ${TARGET}/etc/skel/ ${TARGET}/root/
|
rsync -avS ${TARGET}/etc/skel/ ${TARGET}/root/
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user