Compare commits
10 Commits
c84a4c46bb
...
ea81ccc78f
Author | SHA1 | Date |
---|---|---|
|
ea81ccc78f | |
|
3b08305ddb | |
|
877d553ccf | |
|
cfce0d7f53 | |
|
e842f856f0 | |
|
ccc0f634bb | |
|
9759b5823b | |
|
e0b5f5d888 | |
|
0efe6ffa93 | |
|
41244a1639 |
|
@ -0,0 +1,14 @@
|
||||||
|
# linux rc
|
||||||
|
|
||||||
|
## archInstall.sh
|
||||||
|
|
||||||
|
script qui install arch linux sur une machine.
|
||||||
|
|
||||||
|
la configuration ce fait dans le script, les variables a modifiés sont noté et expliqué,
|
||||||
|
la methode d'installation est dans le script aussi, afin de facilité l'installation une fois dans le terminal sans acces a internet.
|
||||||
|
|
||||||
|
## linuxrc.sh
|
||||||
|
|
||||||
|
script d'installation de l'environnement de bureau perso, installe ma config de dwn st dmenu tmux et nvim depuis mon depot git [dotsuckless](https://github.com/CaptainBoulbi/dotsuckless.git).
|
||||||
|
|
||||||
|
et install mes script bash depuis mon depot git [script-linux](https://github.com/CaptainBoulbi/script-linux.git), puis configure XDG base directory et crée ma structure de dossier a ~.
|
|
@ -65,7 +65,7 @@ USRNAME=usr # nom de l'utilisateur principale
|
||||||
USRPWD=$ROOTPWD # mdp utilisateur principale
|
USRPWD=$ROOTPWD # mdp utilisateur principale
|
||||||
SUDOERS=1 # 1=droit sudo; 0=pas droit sudo
|
SUDOERS=1 # 1=droit sudo; 0=pas droit sudo
|
||||||
SUDOSANSPASSWD=1 # sudo cmd sans mdp (1=true;0=false)
|
SUDOSANSPASSWD=1 # sudo cmd sans mdp (1=true;0=false)
|
||||||
LOGATBOOT=1 # au lancement se connecter automatiquement utile pour crypter
|
LOGATBOOT=0 # au lancement se connecter automatiquement utile pour crypter
|
||||||
|
|
||||||
# langue
|
# langue
|
||||||
LANGUE_CLAVIER=fr-latin1 # liste langue clavier : ls /usr/share/kbd/keymaps/**/*.map.gz
|
LANGUE_CLAVIER=fr-latin1 # liste langue clavier : ls /usr/share/kbd/keymaps/**/*.map.gz
|
||||||
|
@ -266,7 +266,9 @@ arch-chroot /mnt /script.sh
|
||||||
arch-chroot /mnt rm /script.sh
|
arch-chroot /mnt rm /script.sh
|
||||||
|
|
||||||
if [ $INSTALLGUI -eq 1 ]; then
|
if [ $INSTALLGUI -eq 1 ]; then
|
||||||
arch-chroot /mnt sudo ./linuxrc.sh
|
next "intall gui config"
|
||||||
|
cp linuxrc.sh /mnt/home/$USRNAME
|
||||||
|
echo -e "script installation gui copier a / apres redemarrage executer le"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
next "reboot"
|
next "reboot"
|
||||||
|
|
24
linuxrc.sh
24
linuxrc.sh
|
@ -1,22 +1,23 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cd ~/home/cptvmt
|
cd ~
|
||||||
|
|
||||||
# installation paquet
|
# installation paquet
|
||||||
|
|
||||||
|
|
||||||
# base
|
# base
|
||||||
pacman -S xorg-server xorg-xinit xterm neofetch git
|
sudo pacman -S --noconfirm xorg-server xorg-xinit xterm neofetch git
|
||||||
# fonts
|
# fonts
|
||||||
pacman -S ttf-linux-libertine ttf-inconsolata
|
sudo pacman -S --noconfirm ttf-linux-libertine ttf-inconsolata
|
||||||
# dependence suckless tools
|
# dependence suckless tools et xorg
|
||||||
pacman -S libx11 libxft libxinerama freetype2 fontconfig
|
sudo pacman -S --noconfirm libx11 libxft libxinerama freetype2 fontconfig xf86-video-vmware
|
||||||
|
|
||||||
|
|
||||||
# configuration
|
# configuration
|
||||||
|
|
||||||
|
|
||||||
localectl set-x11-keymap fr
|
localectl set-x11-keymap fr
|
||||||
|
loadkeys fr-latin1
|
||||||
|
|
||||||
|
|
||||||
# installer suckless truc (temps pas besoin plus tard)
|
# installer suckless truc (temps pas besoin plus tard)
|
||||||
|
@ -28,16 +29,23 @@ git clone https://git.suckless.org/st
|
||||||
git clone https://git.suckless.org/dmenu
|
git clone https://git.suckless.org/dmenu
|
||||||
|
|
||||||
cd dwm
|
cd dwm
|
||||||
make
|
sudo make
|
||||||
sudo make clean install
|
sudo make clean install
|
||||||
cd..
|
cd..
|
||||||
cd st
|
cd st
|
||||||
make
|
sudo make
|
||||||
sudo make clean install
|
sudo make clean install
|
||||||
cd ..
|
cd ..
|
||||||
cd dmenu
|
cd dmenu
|
||||||
make
|
sudo make
|
||||||
sudo make clean install
|
sudo make clean install
|
||||||
cd
|
cd
|
||||||
|
|
||||||
touch .xinitrc
|
touch .xinitrc
|
||||||
|
echo "exec /usr/local/bin/dwm" > .xinitrc
|
||||||
|
|
||||||
|
echo "[[ ! \$DISPLAY && \$XDG_VTNR -eq 1 ]] && startx" >> .bash_profile
|
||||||
|
|
||||||
|
echo "installatin fini, appuez sur entrez pour redemarrer"
|
||||||
|
read
|
||||||
|
reboot
|
||||||
|
|
Loading…
Reference in New Issue