diff --git a/rpi/README.md b/rpi/README.md index a794683..b74c271 100644 --- a/rpi/README.md +++ b/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 diff --git a/rpi/install.sh b/rpi/install.sh index 057ff90..3a3423d 100755 --- a/rpi/install.sh +++ b/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