Simplification of bulk commands and add configurations

This commit is contained in:
adrien 2021-04-22 01:20:43 +02:00
parent 3532a83ff7
commit 56756cf762
4 changed files with 37 additions and 16 deletions

View File

@ -3,24 +3,25 @@
## Bulk commands
```
yay -S spectrwm fish openssh rofi xorg xorg-server scrot xorg-xinit alacritty ranger feh nerd-fonts-complete xf86-video-intel librewolf-bin cifs-utils pulseaudio-alsa pulseaudio-ctl slock xautolock zip unzip alsa-utils redshift-minimal numlockx usbutils cmatrix yubikey-touch-detector
cp dotfiles/.xinitrc ~/.xinitrc
cp dotfiles/.fehbg ~/.fehbg
cp dotfiles/.xinitrc ~/
cp dotfiles/.fehbg ~/
chmod +x ~/.fehbg
cp dotfiles/.bash_profile ~/.bash_profile
cp dotfiles/.bash_profile ~/
mkdir -p ~/.config/{spectrwm,alacritty,rofi,fish/functions}
cp dotfiles/.config/spectrwm/spectrwm.conf ~/.config/spectrwm/spectrwm.conf
cp dotfiles/.config/spectrwm/spectrwm_fr.conf ~/.config/spectrwm/spectrwm_fr.conf
cp dotfiles/.config/spectrwm/bar ~/.config/spectrwm/bar
cp dotfiles/.config/alacritty/alcaritty.yml ~/.config/alacritty/alacritty.yml
cp dotfiles/.config/rofi/config ~/.config/rofi/config
cp dotfiles/.config/fish/config.fish ~/config/fish/config.fish
cp dotfiles/.config/fish/functions/cl.fish ~/.config/fish/functions/cl.fish
cp dotfiles/.config/fish/functions/fish_prompt.fish ~/.config/fish/functions/fish_prompt.fish
cp dotfiles/.config/spectrwm/spectrwm.conf ~/.config/
cp dotfiles/.config/spectrwm/spectrwm_fr.conf ~/.config/spectrwm/
cp dotfiles/.config/spectrwm/bar ~/.config/spectrwm/
cp dotfiles/.config/alacritty/alcaritty.yml ~/.config/alacritty/
cp dotfiles/.config/rofi/config ~/.config/rofi/
cp dotfiles/.config/fish/config.fish ~/config/fish/
cp dotfiles/.config/fish/functions/cl.fish ~/.config/fish/functions/
cp dotfiles/.config/fish/functions/fish_prompt.fish ~/.config/fish/functions/
sudo sed -i "s/autospawn = no/autospawn = yes/" /etc/pulse/client.conf
sudo cp dotfiles/X11/xorg.conf /etc/X11/xorg.conf
sudo cp dotfiles/slock\@.service /etc/systemd/system/slock\@.service
sudo cp dotfiles/xorg.conf.d/20-intel.conf /etx/X11/xorg.conf.d/20-intel.conf
sudo cp dotfiles/slock@.service /etc/systemd/system/slock@$USER.service
sudo cp dotfiles/xorg.conf.d/20-intel.conf /etx/X11/xorg.conf.d/
sudo cp dotfiles/system/mnt-data.* /etc/systemd/system/
sudo cp dotfiles/system/powertop.service /etc/systemd/system/
```
## Packages
@ -37,12 +38,21 @@ yay -S wfuzz exploitdb nmap gobuster nikto hydra perl-image-exiftool zsteg rtl88
## Configurations
## Power
### Power
#### TLP
```
yay -S tlp
sudo systemctl enable --now tlp.service
```
#### Powertop
```
yay -S powertop
sudo cp dotfiles/system/powertop.service /etc/systemd/system/
sudo systemctl enable --now powertop.service
```
### Locale
```
sudo localectl set-keymap fr
@ -56,8 +66,7 @@ sudo timedatectl set-ntp true
```
sudo mkdir -p /mnt/data
sudo mkdir -p /etc/samba/credentials
echo "username=<username>
password=<password>" | sudo tee -a /etc/samba/credentials/data
sudo cp dotfiles/credentials/data /etc/samba/credentials/ (complete the login information in this file)
sudo chmod 700 /etc/samba/credentials/
sudo chmod 600 /etc/samba/credentials/data
```

1
credentials/README.md Normal file
View File

@ -0,0 +1 @@
Path: `/etc/samba/credentials/`

2
credentials/data Normal file
View File

@ -0,0 +1,2 @@
username=
passsword=

9
system/powertop.service Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=Powertop tunings
[Service]
Type=oneshot
ExecStart=/usr/bin/powertop --auto-tune
[Install]
WantedBy=multi-user.target