62 lines
2.7 KiB
Bash
62 lines
2.7 KiB
Bash
su - root
|
|
apt update
|
|
apt upgrade
|
|
# Remove bloat
|
|
apt purge firefox quassel xscreensaver* xscreensaver libreoffice* smtube firefox* thunderbird meteo-qt qps qterminal apt-transport-https -y
|
|
# Add utils
|
|
apt install feh doas polybar openresolv rofi blueman htop vim wget curl fonts-hack konsole qtcreator qtbase5-dev qt5-qmake cmake redshift qemu-system virt-manager libvirt-daemon-system nextcloud-desktop bridge-utils nm-tray picom i3 -y
|
|
curl -fsSL https://download.opensuse.org/repositories/shells:fish:release:3/Debian_12/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/shells_fish_release_3.gpg > /dev/null
|
|
apt update
|
|
apt install fish -y
|
|
sh <(curl -L https://nixos.org/nix/install) --daemon
|
|
mkdir -p ~/.config/nix
|
|
|
|
rm -rf ~/.local/share/applications
|
|
rm -rf ~/.local/share/icons
|
|
|
|
ln -s ~/.nix-profile/share/applications ~/.local/share/applications
|
|
ln -s ~/.nix-profile/share/icons ~/.local/share/icons
|
|
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
|
|
echo "permit persist naoufal as root" >/etc/doas.conf
|
|
# Install dev tools
|
|
apt install git nim clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev qt5-qmake -y
|
|
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
dpkg -i google-chrome-stable_current_amd64.deb
|
|
rm google-chrome-stable_current_amd64.deb
|
|
## todo with user
|
|
# Install Vscode
|
|
wget "https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64" -O "vscode.deb"
|
|
dpkg -i vscode.deb
|
|
rm vscode.deb
|
|
# Install android studio
|
|
wget https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2022.2.1.20/android-studio-2022.2.1.20-linux.tar.gz
|
|
tar -xvzf android-studio-2022.2.1.20-linux.tar.gz
|
|
rm android-studio-2022.2.1.20-linux.tar.gz
|
|
sudo mv android-studio /usr/local/
|
|
/usr/local/android-studio/bin/studio.sh
|
|
# Install Flutter
|
|
wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.10.6-stable.tar.xz
|
|
tar xf flutter_linux_3.10.6-stable.tar.xz
|
|
rm flutter_linux_3.10.6-stable.tar.xz
|
|
sudo mv flutter /usr/local/
|
|
#fish
|
|
echo "fish" >> .bashrc
|
|
|
|
# Install fonts
|
|
git clone --depth 1 https://github.com/ryanoasis/nerd-fonts.git
|
|
nerd-fonts/install.sh
|
|
rm -rf nerd-fonts
|
|
mkdir .fonts
|
|
wget -qO- http://plasmasturm.org/code/vistafonts-installer/vistafonts-installer | bash
|
|
fc-cache -fv
|
|
git clone https://github.com/SpudGunMan/segoe-ui-linux
|
|
chmod +x segoe-ui-linux/install.sh
|
|
segoe-ui-linux/install.sh
|
|
rm -rf segoe-ui-linux
|
|
doas apt purge xfonts-75dpi xfonts-100dpi
|
|
# Install freeOffice
|
|
wget https://www.softmaker.net/down/softmaker-office-2021_1064-01_amd64.deb
|
|
sudo dpkg -i softmaker-office-2021_1064-01_amd64.deb
|
|
rm softmaker-office-2021_1064-01_amd64.deb
|
|
adduser naoufal libvirt
|