# Suite installation OS

## Suite de l'installation OS Archlinux  


#### Configuration Computer

#####   
procersseur : i5

##### RAM : x4 4Go --&gt; 16Go DDR3

##### GPU : 4070 RTX 

##### user : bat

#####   


#### Installation YAY  
  


```bash
pacman -S archlinux-keyring
```

\#ce placé dans /opt est installer le github yay

```bash
cd /opt && sudo git clone https://aur.archlinux.org/yay-git.git
```

\#donné les droit au utilisateur

```bash
sudo chown -R USER_name:users ./yay-git
```

\#entré dans son dossier et installé le logiciel

```bash
cd yay-git && makepkg -si
```

\#le mettre à jour

```bash
yay -Syu
```

#### Configuration Ssh

```bash
cd
mkdir .ssh
cd .ssh 
mkdir myKeys
touch config
touch authorized_keys
```

configuré interface a distance

```bash
sudo nano /etc/ssh/sshd_config
```

  
\# Assurez-vous que les lignes suivantes sont présentes et décommentées  
X11Forwarding yes  
X11DisplayOffset 10  
X11UseLocalhost yes

```bash
sudo systemctl restart sshd
```

#### Installation ZSH

\#téléchargement zsh

```bash
sudo pacman -S zsh
```

changement de bash par default

```bash
chsh -s /bin/zsh
```

installation zsh

```bash
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
```

recharger zsh

```bash
source ~/.zshrc
```

Thème zsh --&gt; [https://github.com/ChesterYue/ohmyzsh-theme-passion](https://github.com/ChesterYue/ohmyzsh-theme-passion)

1. clone repo: `git clone https://github.com/ChesterYue/ohmyzsh-theme-passion`;
2. copy theme: `cp ./ohmyzsh-theme-passion/passion.zsh-theme ~/.oh-my-zsh/themes/passion.zsh-theme`;
3. modify rc: open `~/.zshrc` find `ZSH_THEME` edit to `ZSH_THEME="passion"`;
4. execute rc: `source ~/.zshrc`

 sudo pacman -S bc

#### Installation Nvidia

```bash
sudo pacman -S nvidia nvidia-utils nvidia-settings
sudo reboot
```

\#sudo pacman -S dkms nvidia-dkms

#### Installation Environnement graphique

\#installer les paquets nécessaire à la création d’une interface graphique

```bash
sudo pacman -S lxde lxdm  xorg-xinit
sudo pacman -S xorg  xorg-server xf86-video-intel
```

\#lancer au démarrage lxde avec la commande

```bash
sudo systemctl enable lxdm
```

\#copier le fichier xinitrc pour notre utilisateur

```bash
sudo cp /etc/X11/xinit/xinitrc ~/.xinitrc
```

\#Activé l'exécution du fichier .xinitrc de votre nom\_user il permettra de lancé interface graphique de votre choix

```bash
sudo chmod +x ~/.xinitrc
```

\#On rajoute dans ce même fichier la commande “exec startlxde”

```bash
sudo nano ~/.xinitrc
```

#### Installation Cinnamon

```
sudo pacman -S cinnamon
```

Choisir Cinnamon dans l'interface de login

thème Cinnamon

```
yay -S orchis-theme
yay -S whitesur-gtk-theme
yay -S cinnamon-big-sur-theme
```

thème icone

```
yay -S papirus-icon-theme
```

#### Installation Python + Stable Diffusion

voir page : [https://wiki.mira-ceti.ovh/books/bot/page/installation-python-controler-generator-prompt](https://wiki.mira-ceti.ovh/books/bot/page/installation-python-controler-generator-prompt)

#### Installation Autre packet nécessaire

sudo pacman -S discord scrcpy wget android-udev

yay -S android-studio-canary slack-desktop adb

\#packet de surveillance consommation

sudo pacman -S glances htop nvtop sysstat bmon gkrellm atop conky

sudo pacman -S rsync

sudo pacman -S firefox chromium

sudo pacman -S geany code

\#packet autre

```
sudo pacman -S gimp vlc gnome-terminal audacious xfburn firefox unzip unrar chromium gedit pidgin vim thunderbird libreoffice pipewire pipewire-alsa deluge -y
```