readme sudo and install.sh hostname
This commit is contained in:
@@ -7,6 +7,7 @@ _cwd="$(pwd)"
|
||||
sudo pacman -Syyu
|
||||
sudo pacman -S --needed --noconfirm vim rsync wget tmux
|
||||
|
||||
|
||||
# vim
|
||||
echo 'vim configuration'
|
||||
sudo pacman -S --needed --noconfirm vim-{spell-fr,spell-en,nerdtree,supertab,systemd}
|
||||
@@ -51,6 +52,12 @@ echo 'ILoveCandy (pacman)'
|
||||
sudo sed -i.back 's/.*\[options\].*/&\nILoveCandy/' /etc/pacman.conf
|
||||
sudo sed -i.back 's/^#Color$/Color/' /etc/pacman.conf
|
||||
|
||||
|
||||
# hostname
|
||||
sudo hostnamectl set-hostname hehe-rail-rover
|
||||
sudo sed -i 's/^127\.0\.0\.1\blocalhost\.localdomain\blocalhost/&\thehe-rail-rover/' /etc/hosts
|
||||
sudo sed -i 's/^::1\blocalhost\.localdomain\blocalhost/&\thehe-rail-rover/' /etc/hosts
|
||||
|
||||
# avahi
|
||||
echo "install avahi"
|
||||
sudo pacman -S --needed --noconfirm avahi nss-mdns
|
||||
|
||||
Reference in New Issue
Block a user