Update way to install font
This commit is contained in:
parent
a8e08d4de6
commit
3fa7ed3610
45
README.md
45
README.md
@ -1,6 +1,7 @@
|
|||||||
# dotfiles
|
# dotfiles
|
||||||
|
|
||||||
## Bulk commands
|
## Bulk commands
|
||||||
|
|
||||||
```
|
```
|
||||||
yay -S spectrwm fish openssh rofi xorg xorg-server scrot xorg-xinit alacritty ranger feh 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 tlp powertop phinger-cursors
|
yay -S spectrwm fish openssh rofi xorg xorg-server scrot xorg-xinit alacritty ranger feh 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 tlp powertop phinger-cursors
|
||||||
cp dotfiles/.xinitrc ~/
|
cp dotfiles/.xinitrc ~/
|
||||||
@ -29,11 +30,13 @@ sudo systemctl enable --now mnt-data.automount powertop.service tlp.service
|
|||||||
## Packages
|
## Packages
|
||||||
|
|
||||||
### General purposes
|
### General purposes
|
||||||
|
|
||||||
```
|
```
|
||||||
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 tlp powertop phinger-cursors
|
yay -S spectrwm fish openssh rofi xorg xorg-server scrot xorg-xinit alacritty ranger feh 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 tlp powertop phinger-cursors ttf-agave-nerd
|
||||||
```
|
```
|
||||||
|
|
||||||
### Pentest purposes
|
### Hacking purposes
|
||||||
|
|
||||||
```
|
```
|
||||||
yay -S wfuzz exploitdb nmap gobuster nikto hydra perl-image-exiftool zsteg rtl88xxau-aircrack-dkms-git rockyou seclists fcrackzip gdb radare2 enum4linux peass hashcat intel-compute-runtime metasploit cuda
|
yay -S wfuzz exploitdb nmap gobuster nikto hydra perl-image-exiftool zsteg rtl88xxau-aircrack-dkms-git rockyou seclists fcrackzip gdb radare2 enum4linux peass hashcat intel-compute-runtime metasploit cuda
|
||||||
```
|
```
|
||||||
@ -43,12 +46,14 @@ yay -S wfuzz exploitdb nmap gobuster nikto hydra perl-image-exiftool zsteg rtl88
|
|||||||
### Power
|
### Power
|
||||||
|
|
||||||
#### TLP
|
#### TLP
|
||||||
|
|
||||||
```
|
```
|
||||||
yay -S tlp
|
yay -S tlp
|
||||||
sudo systemctl enable --now tlp.service
|
sudo systemctl enable --now tlp.service
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Powertop
|
#### Powertop
|
||||||
|
|
||||||
```
|
```
|
||||||
yay -S powertop
|
yay -S powertop
|
||||||
sudo cp dotfiles/system/powertop.service /etc/systemd/system/
|
sudo cp dotfiles/system/powertop.service /etc/systemd/system/
|
||||||
@ -56,6 +61,7 @@ sudo systemctl enable --now powertop.service
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Locale
|
### Locale
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo localectl set-keymap fr
|
sudo localectl set-keymap fr
|
||||||
sudo localectl --no-convert set-x11-keymap fr pc104
|
sudo localectl --no-convert set-x11-keymap fr pc104
|
||||||
@ -65,6 +71,7 @@ sudo timedatectl set-ntp true
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Freebox share
|
### Freebox share
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo mkdir -p /mnt/data
|
sudo mkdir -p /mnt/data
|
||||||
sudo mkdir -p /etc/samba/credentials
|
sudo mkdir -p /etc/samba/credentials
|
||||||
@ -74,12 +81,14 @@ sudo chmod 600 /etc/samba/credentials/data
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Enable services
|
### Enable services
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo systemctl enable slock@$USER.service
|
sudo systemctl enable slock@$USER.service
|
||||||
sudo systemctl enable --now mnt-data.automount
|
sudo systemctl enable --now mnt-data.automount
|
||||||
```
|
```
|
||||||
|
|
||||||
### GPU
|
### GPU
|
||||||
|
|
||||||
On a second laptop I have a Quadro T2000 graphics card, if I want to be able to use it (for `hashcat` among others) I have to install the following tools and make the following configuration.
|
On a second laptop I have a Quadro T2000 graphics card, if I want to be able to use it (for `hashcat` among others) I have to install the following tools and make the following configuration.
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -97,6 +106,7 @@ optirun glxspheres64
|
|||||||
If the window with animation shows up, Optimus with Bumblebee is working.
|
If the window with animation shows up, Optimus with Bumblebee is working.
|
||||||
|
|
||||||
Some useful links to learn more:
|
Some useful links to learn more:
|
||||||
|
|
||||||
- https://wiki.archlinux.org/index.php/NVIDIA,
|
- https://wiki.archlinux.org/index.php/NVIDIA,
|
||||||
- https://wiki.archlinux.org/index.php/AMDGPU,
|
- https://wiki.archlinux.org/index.php/AMDGPU,
|
||||||
- https://wiki.archlinux.org/index.php/Bumblebee.
|
- https://wiki.archlinux.org/index.php/Bumblebee.
|
||||||
@ -104,6 +114,7 @@ Some useful links to learn more:
|
|||||||
## Miscellaneous
|
## Miscellaneous
|
||||||
|
|
||||||
### Generate a WPA-PSK for `netctl` Wi-Fi config files
|
### Generate a WPA-PSK for `netctl` Wi-Fi config files
|
||||||
|
|
||||||
Copy the value of the `psk` key and paste it in the `netctl` config file and prefix it with `Key=\"`.
|
Copy the value of the `psk` key and paste it in the `netctl` config file and prefix it with `Key=\"`.
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -113,6 +124,7 @@ wpa_passphrase <ssid>
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Configure git
|
### Configure git
|
||||||
|
|
||||||
```
|
```
|
||||||
git config --global user.name <username>
|
git config --global user.name <username>
|
||||||
git config --global user.email <e-mail>
|
git config --global user.email <e-mail>
|
||||||
@ -122,6 +134,7 @@ git config --global commit.gpgsign true
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Configure vim
|
### Configure vim
|
||||||
|
|
||||||
```
|
```
|
||||||
curl -LOsSf https://raw.githubusercontent.com/glepnir/oceanic-material/master/colors/oceanic_material.vim
|
curl -LOsSf https://raw.githubusercontent.com/glepnir/oceanic-material/master/colors/oceanic_material.vim
|
||||||
sudo mv oceanic_material.vim /usr/share/vim/vim90/colors/
|
sudo mv oceanic_material.vim /usr/share/vim/vim90/colors/
|
||||||
@ -131,22 +144,16 @@ echo "filetype plugin indent on" | sudo tee -a /etc/vimrc
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Disable sleep mode when closing the lid
|
### Disable sleep mode when closing the lid
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo sed -i "s/#HandleLidSwitch=suspend/HandleLidSwitch=ignore/" /etc/systemd
|
sudo sed -i "s/#HandleLidSwitch=suspend/HandleLidSwitch=ignore/" /etc/systemd
|
||||||
/logind.conf
|
/logind.conf
|
||||||
```
|
```
|
||||||
|
|
||||||
### Configure font
|
|
||||||
```
|
|
||||||
curl -LOsSf https://github.com/ryanoasis/nerd-fonts/releases/download/v2.2.2/Agave.zip
|
|
||||||
sudo mkdir -p /usr/share/fonts/nerd-font
|
|
||||||
sudo unzip -q Agave.zip -d /usr/share/fonts/nerd-font
|
|
||||||
rm -f Agave.zip
|
|
||||||
```
|
|
||||||
|
|
||||||
## Specific installations
|
## Specific installations
|
||||||
|
|
||||||
### Docker
|
### Docker
|
||||||
|
|
||||||
Closing (and then reopening) your session is necessary.
|
Closing (and then reopening) your session is necessary.
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -157,16 +164,19 @@ sudo systemctl enable docker (optional)
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### Simple test
|
#### Simple test
|
||||||
|
|
||||||
```
|
```
|
||||||
docker run --name nginx -p 80:80 -d nginx
|
docker run --name nginx -p 80:80 -d nginx
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Clean Docker (images, volumes and more that are not used)
|
#### Clean Docker (images, volumes and more that are not used)
|
||||||
|
|
||||||
```
|
```
|
||||||
docker system prune --all --volumes
|
docker system prune --all --volumes
|
||||||
```
|
```
|
||||||
|
|
||||||
### Tinygo
|
### Tinygo
|
||||||
|
|
||||||
```
|
```
|
||||||
yay -S tinygo avrdude avr-gcc avr-libc
|
yay -S tinygo avrdude avr-gcc avr-libc
|
||||||
```
|
```
|
||||||
@ -174,16 +184,19 @@ yay -S tinygo avrdude avr-gcc avr-libc
|
|||||||
#### Commands
|
#### Commands
|
||||||
|
|
||||||
##### Upload led blinking to Arduino Nano
|
##### Upload led blinking to Arduino Nano
|
||||||
|
|
||||||
```
|
```
|
||||||
tinygo flash -target=arduino-nano -port=/dev/ttyUSB0 examples/blinky1
|
tinygo flash -target=arduino-nano -port=/dev/ttyUSB0 examples/blinky1
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Upload source code to Arduino Nano
|
##### Upload source code to Arduino Nano
|
||||||
|
|
||||||
```
|
```
|
||||||
tinygo flash -target arduino-nano /path/to/code
|
tinygo flash -target arduino-nano /path/to/code
|
||||||
```
|
```
|
||||||
|
|
||||||
### Arduino IDE and Arduino CLI
|
### Arduino IDE and Arduino CLI
|
||||||
|
|
||||||
```
|
```
|
||||||
yay -S arduino arduino-cli
|
yay -S arduino arduino-cli
|
||||||
sudo usermod -aG uucp $USER or sudo usermod -aG tty $USER
|
sudo usermod -aG uucp $USER or sudo usermod -aG tty $USER
|
||||||
@ -191,6 +204,7 @@ sudo chmod a+rw /dev/ttyUSBX
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Jekyll
|
### Jekyll
|
||||||
|
|
||||||
```
|
```
|
||||||
yay -S ruby
|
yay -S ruby
|
||||||
cp dotfiles/.gemrc ~/
|
cp dotfiles/.gemrc ~/
|
||||||
@ -198,7 +212,8 @@ gem install bundler jekyll rdoc
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Rust
|
### Rust
|
||||||
Replace `{stable, nighlty}` by the toolchain you want install.
|
|
||||||
|
Replace `{stable, nighlty}` by the toolchain you want to install.
|
||||||
|
|
||||||
```
|
```
|
||||||
yay -S rustup
|
yay -S rustup
|
||||||
@ -206,16 +221,19 @@ rustup default {stable, nightly}
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### Update toolchain
|
#### Update toolchain
|
||||||
|
|
||||||
```
|
```
|
||||||
rustup update
|
rustup update
|
||||||
```
|
```
|
||||||
|
|
||||||
### IntelliJ IDEA
|
### IntelliJ IDEA
|
||||||
|
|
||||||
```
|
```
|
||||||
yay -S intellij-idea-ultimate-edition-jre intellij-idea-ultimate-edition
|
yay -S intellij-idea-ultimate-edition-jre intellij-idea-ultimate-edition
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Use fish shell inside IntelliJ IDEA
|
#### Use fish shell inside IntelliJ IDEA
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo ln -s ~/.config/fish/fish_variables /opt/intellij-idea-ultimate-edition/plugins/terminal/fish/fish_variables
|
sudo ln -s ~/.config/fish/fish_variables /opt/intellij-idea-ultimate-edition/plugins/terminal/fish/fish_variables
|
||||||
```
|
```
|
||||||
@ -223,16 +241,19 @@ sudo ln -s ~/.config/fish/fish_variables /opt/intellij-idea-ultimate-edition/plu
|
|||||||
### Laravel
|
### Laravel
|
||||||
|
|
||||||
#### Install Composer
|
#### Install Composer
|
||||||
|
|
||||||
```
|
```
|
||||||
yay -S composer
|
yay -S composer
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Install Laravel Installer
|
#### Install Laravel Installer
|
||||||
|
|
||||||
```
|
```
|
||||||
composer global require laravel/installer
|
composer global require laravel/installer
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Add Laravel Installer's path to fish's path
|
#### Add Laravel Installer's path to fish's path
|
||||||
|
|
||||||
```
|
```
|
||||||
set -U fish_user_paths ~/.config/composer/vendor/laravel/installer/bin $fish_user_paths
|
set -U fish_user_paths ~/.config/composer/vendor/laravel/installer/bin $fish_user_paths
|
||||||
```
|
```
|
||||||
@ -242,12 +263,14 @@ set -U fish_user_paths ~/.config/composer/vendor/laravel/installer/bin $fish_use
|
|||||||
#### Remove a path into fish's path
|
#### Remove a path into fish's path
|
||||||
|
|
||||||
##### List current path(s)
|
##### List current path(s)
|
||||||
|
|
||||||
```
|
```
|
||||||
echo $fish_user_paths | tr " " "\n" | nl
|
echo $fish_user_paths | tr " " "\n" | nl
|
||||||
1 ~/.config/composer/vendor/laravel/installer/bin
|
1 ~/.config/composer/vendor/laravel/installer/bin
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Delete the useless one (replace 1 by the desired index)
|
##### Delete the useless one (replace 1 by the desired index)
|
||||||
|
|
||||||
```
|
```
|
||||||
set --erase --universal fish_user_paths[1]
|
set --erase --universal fish_user_paths[1]
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user