Show pageOld revisionsBacklinksAdd to bookExport to PDFBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Ubuntu Server ====== <code> apt purge --auto-remove -y snapd squashfs-tools friendly-recovery apport at modemmanager apt purge --auto-remove -y unattended-upgrades apt purge --auto-remove -y apparmor ufw sudo systemctl disable apt-daily-upgrade.timer sudo systemctl mask apt-daily-upgrade.service sudo systemctl disable apt-daily.timer sudo systemctl mask apt-daily.service grep -q menu-complete /etc/inputrc if [ $? = 1 ]; then cat >> /etc/inputrc <<EOF "\M-s": menu-complete "\e[A": history-search-backward "\e[B": history-search-forward "\M-o": "\C-p\C-a\M-f " EOF fi # disable automatic updates cat > /etc/apt/apt.conf.d/20auto-upgrades <<EOF4 APT::Periodic::Update-Package-Lists "0"; APT::Periodic::Unattended-Upgrade "0"; EOF4 cat > /etc/vim/vimrc.local <<EOF setlocal ts=4 sts=4 sw=4 expandtab autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab set paste set mouse=r set showcmd " Show (partial) command in status line. set showmatch " Show matching brackets. set ignorecase " Do case insensitive matching set smartcase " Do smart case matching set incsearch " Incremental search set autowrite " Automatically save before commands like :next and :make set hidden " Hide buffers when they are abandoned if has("syntax") syntax on endif set background=dark if has("autocmd") au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif endif if has("autocmd") filetype plugin indent on endif EOF cat > /root/.aliases <<EOF alias l="ls -alh --color" alias ll="ls -alh --color" alias lle="ls -alth --color | head -n30" alias s="ssh -l root" alias sud="sudo su" alias llast="ls -alt | head" alias upgrade="sudo apt-get update; sudo apt-get -y -V upgrade" EOF mkdir -p /root/.ssh cat > /root/.ssh/authorized_keys <<EOF ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJ/3Z7CfayHNUvNCirfWZz2uQ/h5om7xLU4ntShoCg35EZ+F30hBZDlWZsOcpi3/lr8TBUfXCe0WERR8rmybQsr5mzJ4L8UZseCk6fyiDCndOy6l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8swbmRt3FV root@storage EOF update-alternatives --set editor /usr/bin/vim.tiny </code> tips/ubuntu/server.txt Last modified: 2022/03/23 14:21by sscipioni