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
+4 -2
View File
@@ -11,7 +11,9 @@ install Arch Linux ARM systeme on rpi following these how to : https://archlinux
connect to rpi through ssh
add alarm user to sudoers : https://wiki.archlinux.org/index.php/Sudo#Example_Entries
install git : ```pacman -S vim rsync```
as root : ```pacman -S sudo``` then add "alarm ALL=(ALL) ALL" with visudo command
install git : ```pacman -S git```
clone this repos : ```git clone -o guime https://g-u-i.me/gogs/bachir/hehe-rover.git ```
run rpi/install.sh with sudo
@@ -21,7 +23,7 @@ run rpi/install.sh with sudo
- generate the locale : https://wiki.archlinux.org/index.php/Locale#Generating_locales
- make updates : ```pacman -Syyu```
- install vim rsync : ```pacman -S vim rsync```
- to be continued
## camera module
https://wiki.archlinux.org/index.php/Raspberry_Pi#Raspberry_Pi_camera_module
+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