|
@@ -21,7 +21,7 @@ echo 'vim configuration'
|
|
|
sudo pacman -S --needed --noconfirm vim-{spell-fr,spell-en,nerdtree,supertab,systemd}
|
|
|
cp -r $_cwp/assets/vim /home/$USER/.vim
|
|
|
cp $_cwd/assets/vimrc /home/$USER/.vimrc
|
|
|
-sudo cp $_cwd/assets/vim /root/.vim
|
|
|
+sudo cp -r $_cwd/assets/vim /root/.vim
|
|
|
sudo cp $_cwd/assets/vimrc /root/.vimrc
|
|
|
|
|
|
# git
|
|
@@ -53,20 +53,12 @@ cp $_cwd/assets/bash_profile /home/$USER/.bash_profile
|
|
|
cp $_cwd/assets/bashrc /home/$USER/.bashrc
|
|
|
mkdir /home/$USER/.config
|
|
|
cp $_cwd/assets/config/liquidpromptrc /home/$USER/.config/
|
|
|
-# sudo pacman -S --needed --noconfirm bash-completion
|
|
|
source /home/$USER/.bashrc
|
|
|
|
|
|
-# cp: cannot stat '/home/alarm/hehe-rover/rpi/assets/config/liquipromptrc': No such file or directory
|
|
|
-# /home/alarm/.bashrc: line 14: ruby: command not found
|
|
|
-# /home/alarm/.bashrc: line 23: bind: warning: line editing not enabled
|
|
|
-# /home/alarm/.bashrc: line 24: bind: warning: line editing not enabled
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
# 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
|
|
|
+sudo sed -i 's/localhost$/&\thehe-rail-rover/' /etc/hosts
|
|
|
+sudo sed -i 's/^hostname$/&\thehe-rail-rover/' /etc/dhcpcd.conf
|
|
|
|
|
|
# avahi
|
|
|
echo "install avahi"
|
|
@@ -74,12 +66,11 @@ sudo pacman -S --needed --noconfirm avahi nss-mdns
|
|
|
echo "configure avahi"
|
|
|
sudo systemctl enable avahi-daemon
|
|
|
sudo systemctl start avahi-deamon
|
|
|
-sudo sed -i.back 's/hosts: files dns myhostname/hosts: files mdns_minimal [NOTFOUND=return] dns myhostname/' /etc/nsswitch.conf
|
|
|
+sudo sed -i 's/hosts: files dns myhostname/hosts: files mdns_minimal [NOTFOUND=return] dns hehe-rail-rover/' /etc/nsswitch.conf
|
|
|
|
|
|
# Camera
|
|
|
echo "Camera Module"
|
|
|
-sudo sed -i.back 's/gpu_mem=.*$/gpu_mem=128\nstart_file=start_x.elf\nfixup_file=fixup_x.dat/' /boot/config.txt
|
|
|
-
|
|
|
+sudo sed -i.back 's/gpu_mem=64$/gpu_mem=128\nstart_file=start_x.elf\nfixup_file=fixup_x.dat/' /boot/config.txt
|
|
|
|
|
|
# gps cli
|
|
|
sudo sed -i 's/console=ttyAMA0,115200//' /boot/cmdline.txt
|