Run as ROOT
sudo su
./root.sh
./user.sh
sudo adduser $USER vboxsf
copy content to local hardisk (example: "VBoxGuest")
sudo -i
chmod -R 777 VBoxGuest
cd VBoxGuest
./VBoxLinuxAdditions.run
- Login as root:
sudo -i
- Update your APT database with:
apt-get update
- Install the latest security updates with:
apt-get upgrade
- Install required packages with:
apt-get install build-essential module-assistant
- Configure your system for building kernel modules by running:
m-a prepare
- Click on Install Guest Additions… from the Devices menu, then run
mount /media/cdrom
- Run
sh /media/cdrom/VBoxLinuxAdditions.run
, and follow the instructions on screen.
1- Run sudo nano /opt/brightctl
and copy and paste in the following text:
#!/bin/bash
INCREMENT=50
MINIMUM=1
MAXIMUM=$(</sys/class/backlight/intel_backlight/max_brightness)
brightness=$(</sys/class/backlight/intel_backlight/brightness)
let brightness/=$INCREMENT
let brightness*=$INCREMENT
if test "_$1" = "_--brighter" ; then
let brightness+=$INCREMENT
fi
if test "_$1" = "_--dimmer" ; then
let brightness-=$INCREMENT
fi
if test $brightness -lt $MINIMUM ; then
brightness=$MINIMUM
fi
if test $brightness -gt $MAXIMUM ; then
brightness=$MAXIMUM
fi
echo $brightness > /sys/class/backlight/intel_backlight/brightness
2- Make the script executable with sudo chmod +x /opt/brightctl
3- add the following two lines to /etc/sudoers
ALL ALL=(ALL) NOPASSWD: /opt/brightctl --brighter
ALL ALL=(ALL) NOPASSWD: /opt/brightctl --dimmer
4- add the following two lines to /etc/udev/rules.d/backlight.rules
ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chgrp video $sys$devpath/brightness", RUN+="/bin/chmod g+w $sys$devpath/brightness"
5- add the following two lines to i3 config file:
bindsym XF86MonBrightnessUp exec /opt/brightctl --brighter
bindsym XF86MonBrightnessDown exec /opt/brightctl --dimmer
sudo nano /etc/lightdm/lightdm.conf
then remove the # tag from:
autologin-guest=false
autologin-user=waso
autologin-user-timeout=0
sudo nano /etc/gdm3/daemon.conf
then remove the # tag from:
[daemon]
AutomaticLoginEnable=True
AutomaticLogin=waso
- Install zsh
sudo apt install zsh -y
- Set zsh as default
chsh -s $(which zsh)
- Install oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- install powerlevel10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
- Set
ZSH_THEME="powerlevel10k/powerlevel10k"
in~/.zshrc
sudo timedatectl set-timezone Asia/Riyadh
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage
sudo mv nvim.appimage /usr/local/bin/nvim
install os-prober
sudo apt install os-prober
sudo nano /etc/default/grub
then add or modify if exist
GRUB_DISABLE_OS_PROBER=false
sudo update-grub
then reboot.
Place the fonts in ~/.fonts then
fc-cache -fv
list wifi:
nmcli device wifi list
Connect to a Wi-Fi network:
nmcli device wifi connect SSID_or_BSSID password password
find . -name '*.zip' -exec sh -c 'unzip -d "${1%.*}" "$1"' _ {} \;
creat file : ~/.config/xfce4/helpers.rc
add:
TerminalEmulator=kitty
TerminalEmulatorDismissed=true