commit 122e450d74fc5f60c92377b2bb0c0d95ca8ad199
parent 41a25b082ae4e9cb39ba125efe04bb32d9cbacf8
Author: rei <rei@sonu.ch>
Date: Tue, 5 Oct 2021 14:18:10 +0300
changes
Diffstat:
6 files changed, 115 insertions(+), 45 deletions(-)
diff --git a/setup.sh b/arr.sh
diff --git a/artix.sh b/artix.sh
@@ -3,41 +3,24 @@
# My Artix Linux OpenRC setup
echo "installing necessary packages"
-sudo pacman -S artix-archlinux-support cups cups-openrc gutenprint neovim man man-pages neofetch git base-devel wireguard-tools wireguard-openrc pulseaudio
+pacman -S artix-archlinux-support cups cups-openrc gutenprint neovim man man-pages neofetch git base-devel wireguard-tools wireguard-openrc pulseaudio
echo "editing /etc/pacman.conf:"
-sudo sed -i "/\[lib32\]/,/Include/"'s/^#//' /etc/pacman.conf
+sed -i "/\[lib32\]/,/Include/"'s/^#//' /etc/pacman.conf
echo $'[universe]\nServer = https://universe.artixlinux.org/$arch\n\n[extra]\nInclude = /etc/pacman.d/mirrorlist-arch\n\n[community]\nInclude = /etc/pacman.d/mirrorlist-arch\n\n[multilib]\nInclude = /etc/pacman.d/mirrorlist-arch' | sudo tee -a /etc/pacman.conf
pacman -Syu
-# paru
-echo "installing paru"
-git clone https://aur.archlinux.org/paru-bin.git && cd paru-bin && makepkg -sic
-
# xorg, xfce
echo "installing x packages"
-sudo pacman -S xorg lxdm lxdm-openrc xfce4 xfce4-weather-plugin xfce4-pulseaudio-plugin xfce4-screenshooter pavucontrol transmission-gtk firefox mpv sxiv zathura zathura-pdf-mupdf
+pacman -S xorg lxdm lxdm-openrc xfce4 xfce4-weather-plugin xfce4-pulseaudio-plugin xfce4-screenshooter pavucontrol transmission-gtk librewolf mpv sxiv zathura zathura-pdf-mupdf
# wine, gamemode, radeon drivers, 32-bit libraries.
-sudo pacman -S --needed cabextract dosbox giflib gnutls gst-plugins-base-libs lib32-giflib lib32-gnutls lib32-gst-plugins-base-libs lib32-libcurl-gnutls lib32-libgcrypt lib32-libjpeg-turbo lib32-libpng lib32-libva lib32-libxslt lib32-mpg123 lib32-openal lib32-opencl-icd-loader lib32-sdl2 lib32-vkd3d lib32-vulkan-icd-loader lib32-vulkan-radeon libcurl-gnutls libgcrypt libjpeg-turbo libpng libva libxslt mono mpg123 openal opencl-icd-loader vkd3d vulkan-icd-loader vulkan-radeon gamemode lib32-gamemode wine-staging winetricks wine-mono
-
-# install aritim-dark gtk theme
-echo "installing themes & fonts"
-git clone https://github.com/Mrcuve0/Aritim-Dark && mkdir -p ~/.themes && mkdir -p ~/.themes/Aritim-Dark && cp -r Aritim-Dark/GTK/* ~/.themes/Aritim-Dark/
-sudo pacman -S papirus-icon-theme noto-fonts noto-fonts-emoji ttf-inconsolata ttf-font-awesome
+pacman -S --needed cabextract dosbox giflib gnutls gst-plugins-base-libs lib32-giflib lib32-gnutls lib32-gst-plugins-base-libs lib32-libcurl-gnutls lib32-libgcrypt lib32-libjpeg-turbo lib32-libpng lib32-libva lib32-libxslt lib32-mpg123 lib32-openal lib32-opencl-icd-loader lib32-sdl2 lib32-vkd3d lib32-vulkan-icd-loader lib32-vulkan-radeon libcurl-gnutls libgcrypt libjpeg-turbo libpng libva libxslt mono mpg123 openal opencl-icd-loader vkd3d vulkan-icd-loader vulkan-radeon gamemode lib32-gamemode wine-staging winetricks wine-mono steam-native-runtime
-# installing configs
-echo "installing configs"
-cp -r ../.config/* $HOME/.config
-
-# services
+# openrc services
echo "openrc setup"
-sudo rc-update add cupsd default
-sudo rc-update add lxdm default
-
-# aur packages
-echo "installing aur packages"
-paru -S dxvk-bin menulibre
+rc-update add cupsd default
+rc-update add lxdm default
diff --git a/artix_config.sh b/artix_config.sh
@@ -0,0 +1,23 @@
+# install aritim-dark gtk theme
+echo "installing themes & fonts"
+git clone https://github.com/Mrcuve0/Aritim-Dark && mkdir -p ~/.themes && mkdir -p ~/.themes/Aritim-Dark && cp -r Aritim-Dark/GTK/* ~/.themes/Aritim-Dark/
+sudo pacman -S papirus-icon-theme noto-fonts noto-fonts-emoji ttf-inconsolata ttf-font-awesome
+
+# installing configs
+echo "installing configs"
+git clone https://s.sonu.ch/~rei/rice.git
+cp -r rice/.config/* $HOME/.config
+cp -r rice/.bashrc $HOME/
+cp -r rice/.walls $HOME/
+
+# aur helper
+echo "installing yay"
+git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -sic
+
+# aur packages
+echo "installing aur packages"
+yay -S dxvk-bin menulibre freezer-bin ttf-ms-fonts
+
+# soulseekqt (I don't wanna compile soulseek from AUR)
+wget https://www.slsknet.org/SoulseekQt/Linux/SoulseekQt-2018-1-30-64bit-appimage.tgz
+tar xpvf SoulseekQt-2018-1-30-64bit-appimage.tgz
diff --git a/fetch b/fetch
@@ -0,0 +1,63 @@
+#! /usr/bin/env bash
+
+# taken from https://codeberg.org/pfr/Pop_OS
+
+# Info
+HOSTNAME=`uname -n`
+#ROOT=`df -Ph | grep xvda1 | awk '{print $4}' | tr -d '\n'`
+OS=`lsb_release -ds`
+KERNEL=`uname -r`
+UPTIME=`uptime`
+CPU=`cat /proc/cpuinfo | grep 'model name' | uniq | sed 's/^.*: //'`
+SHELL=`$SHELL --version | awk 'FNR == 1 {print $1" "$2}'`
+PKGS=`dpkg -l | wc -l`
+SWAP=`free -m | tail -n 1 | awk '{print $3" MB";}'`
+MEMORY1=`free -t -m | grep Total | awk '{print $3" MB";}'`
+MEMORY2=`free -t -m | grep "Mem" | awk '{print $2" MB";}'`
+LOAD1=`cat /proc/loadavg | awk {'print $1'}`
+LOAD5=`cat /proc/loadavg | awk {'print $2'}`
+LOAD15=`cat /proc/loadavg | awk {'print $3'}`
+
+# Define Colours
+if [ -x `command -v tput` ]; then
+ bold=`tput bold`
+ black=`tput setaf 0`
+ red=`tput setaf 1`
+ green=`tput setaf 2`
+ yellow=`tput setaf 3`
+ blue=`tput setaf 4`
+ magenta=`tput setaf 5`
+ cyan=`tput setaf 6`
+ white=`tput setaf 7`
+ reset=`tput sgr0`
+fi
+
+bl="${reset}${bold}${blue}"
+wt="${reset}${white}"
+yl="${reset}${yellow}"
+rd="${reset}${red}"
+mg="${reset}${magenta}"
+bk="${reset}${black}"
+gr="${reset}${green}"
+cy="${reset}${cyan}"
+
+echo $""
+echo $" ✭ SYSTEM INFORMATION ✭"
+echo $"${bk} _..._ ═══════════════════════════════════════════════"
+echo $"${bk} .' '. _ ${yl}➭ OS..................:" $OS
+echo $"${bk} / .----\ _/ \ ${yl}➭ Kernel..............:" $KERNEL
+echo $"${bk} .-| /:. | | | ${yl}➭ Hostname............:" $HOSTNAME
+echo $"${bk} | \ |:. /.-'-./ ${yl}➭ Shell...............:" $SHELL
+echo $"${bk} | .-'-;:__.' =/ ${yl}➭ Packages............:" $PKGS
+echo $"${bk} .'= *=|${bl}NASA${bk} _.=' ═══════════════════════════════════════════════"
+echo $"${bk} / _ . | ; ${yl}➭ Uptime..............:" $UPTIME
+echo $"${bk} ;-.-'| \ | ${yl}➭ CPU.................:" $CPU
+echo $"${bk}/ | \ _\ _\ ${yl}➭ CPU usage...........:" $LOAD1, $LOAD5, $LOAD15 '(1, 5, 15 min)'
+echo $"${bk}\__/'._;. ==' ==\ ${yl}➭ Memory used.........:" $MEMORY1 / $MEMORY2
+echo $"${bk} \ \ | ${yl}➭ Swap in use.........:" $SWAP
+echo $"${bk} / / / ═══════════════════════════════════════════════"
+echo $"${bk} /-._/-._/ "
+echo $"${bk} \ \ \ "
+echo $"${bk} '-._/._/ "
+echo $"${bk} "
+echo $""
diff --git a/purgesnap.sh b/purgesnap.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# script for replacing snap with flatpak on Ubuntu
+
+echo "replacing snap with flatpak and adding flathub repo"
+sudo apt install flatpak gnome-software-plugin-flatpak
+flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
+sudo apt remove snapd gnome-software-plugin-snap && sudo apt autoremove
diff --git a/ubuntu.sh b/ubuntu.sh
@@ -3,30 +3,23 @@
# script for after minimal ubuntu install
echo "installing packages"
-sudo apt install wireguard emacs vim vlc geany hexchat thunderbird gnome-tweaks wget curl qemu qemu-kvm neofetch gcc cups printer-driver-gutenprint
-
-echo "replacing snap with flatpak and adding flathub repo"
-sudo apt install flatpak gnome-software-plugin-flatpak
-flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
-sudo apt remove snapd gnome-software-plugin-snap && sudo apt autoremove
+apt install wireguard neovim vlc geany hexchat thunderbird gnome-tweaks wget curl qemu qemu-kvm neofetch gcc cups printer-driver-gutenprint
+systemctl enable cups
echo "installing multimedia codecs"
-sudo add-apt-repository multiverse
-sudo apt install ubuntu-restricted-extras
+add-apt-repository multiverse
+apt install ubuntu-restricted-extras
echo "installing steam"
-sudo cd /opt && wget https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb
-sudo dpkg -i steam.deb && sudo apt --fix-broken install && sudo dpkg -i steam.deb
+cd /opt && wget https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb
+dpkg -i steam.deb && sudo apt --fix-broken install && sudo dpkg -i steam.deb
echo "installing wine and video drivers"
-sudo dpkg --add-architecture i386
-sudo cd /opt && wget -nc https://dl.winehq.org/wine-builds/winehq.key
-sudo apt-key add winehq.key
-sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
-sudo add-apt-repository ppa:oibaf/graphics-drivers
-sudo apt update
-sudo apt upgrade
-sudo apt install mesa-opencl-icd mesa-vulkan-drivers cabextract libcurl3-gnutls libcurl3-gnutls:i386 giflib-tools gnutls-bin libgcrypt20 libgcrypt20:i386 libjpeg-turbo-progs libopenal1 libopenal1:i386 libpng-tools libva2 libva2:i386 libvkd3d1 libvkd3d1:i386 libvulkan1 mono-runtime mpg123 vulkan-tools winehq-staging dosbox zstd libxcomposite1
-
-echo "enabling cups service"
-sudo systemctl enable cups
+dpkg --add-architecture i386
+cd /opt && wget -nc https://dl.winehq.org/wine-builds/winehq.key
+apt-key add winehq.key
+apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
+add-apt-repository ppa:oibaf/graphics-drivers
+apt update
+apt upgrade
+apt install mesa-opencl-icd mesa-vulkan-drivers cabextract libcurl3-gnutls libcurl3-gnutls:i386 giflib-tools gnutls-bin libgcrypt20 libgcrypt20:i386 libjpeg-turbo-progs libopenal1 libopenal1:i386 libpng-tools libva2 libva2:i386 libvkd3d1 libvkd3d1:i386 libvulkan1 mono-runtime mpg123 vulkan-tools winehq-staging dosbox zstd libxcomposite1