Browse Source

readme sudo and install.sh hostname

Bachir Soussi Chiadmi 7 years ago
parent
commit
8b2206f502
2 changed files with 11 additions and 2 deletions
  1. 4 2
      rpi/README.md
  2. 7 0
      rpi/install.sh

+ 4 - 2
rpi/README.md

@@ -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 - 0
rpi/install.sh

@@ -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