readme sudo and install.sh hostname

This commit is contained in:
Bachir Soussi Chiadmi
2016-06-11 11:58:07 +02:00
parent 01cd8ec81f
commit 8b2206f502
2 changed files with 11 additions and 2 deletions
+7
View File
@@ -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