v1.0
This commit is contained in:
parent
fc4b7afe79
commit
23104ae4b9
6 changed files with 0 additions and 261 deletions
|
@ -140,7 +140,6 @@ PKGS=(
|
|||
'openbsd-netcat'
|
||||
'openssh'
|
||||
'os-prober'
|
||||
'oxygen'
|
||||
'p7zip'
|
||||
'pacman-contrib'
|
||||
'patch'
|
||||
|
|
239
1-setup.sh.bak
239
1-setup.sh.bak
|
@ -1,239 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
#---------------------------------------------
|
||||
# ██████╗ ██╗ █████╗ ██╗ ██████╗ ███████╗
|
||||
#██╔═══██╗██║ ██╔══██╗██║██╔═══██╗██╔════╝
|
||||
#██║ ██║██║ ███████║██║██║ ██║███████╗
|
||||
#██║ ██║██║ ██╔══██║██║██║ ██║╚════██║
|
||||
#╚██████╔╝███████╗██║ ██║██║╚██████╔╝███████║
|
||||
# ╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═════╝ ╚══════╝
|
||||
#---------------------------------------------
|
||||
echo "--------------------------------------"
|
||||
echo "-- Network Setup --"
|
||||
echo "--------------------------------------"
|
||||
pacman -S networkmanager dhclient --noconfirm --needed
|
||||
systemctl enable --now NetworkManager
|
||||
echo "-------------------------------------------------"
|
||||
echo "Setting up mirrors for optimal download "
|
||||
echo "-------------------------------------------------"
|
||||
pacman -S --noconfirm pacman-contrib curl
|
||||
pacman -S --noconfirm reflector rsync
|
||||
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
|
||||
|
||||
nc=$(grep -c ^processor /proc/cpuinfo)
|
||||
echo "You have " $nc" cores."
|
||||
echo "-------------------------------------------------"
|
||||
echo "Changing the makeflags for "$nc" cores."
|
||||
TOTALMEM=$(cat /proc/meminfo | grep -i 'memtotal' | grep -o '[[:digit:]]*')
|
||||
if [[ $TOTALMEM -gt 8000000 ]]; then
|
||||
sed -i "s/#MAKEFLAGS=\"-j2\"/MAKEFLAGS=\"-j$nc\"/g" /etc/makepkg.conf
|
||||
echo "Changing the compression settings for "$nc" cores."
|
||||
sed -i "s/COMPRESSXZ=(xz -c -z -)/COMPRESSXZ=(xz -c -T $nc -z -)/g" /etc/makepkg.conf
|
||||
fi
|
||||
echo "-------------------------------------------------"
|
||||
echo " Setup Language to US and set locale "
|
||||
echo "-------------------------------------------------"
|
||||
sed -i 's/^#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
|
||||
locale-gen
|
||||
timedatectl --no-ask-password set-timezone America/Chicago
|
||||
timedatectl --no-ask-password set-ntp 1
|
||||
localectl --no-ask-password set-locale LANG="en_US.UTF-8" LC_TIME="en_US.UTF-8"
|
||||
|
||||
# Set keymaps
|
||||
localectl --no-ask-password set-keymap us
|
||||
|
||||
# Add sudo no password rights
|
||||
sed -i 's/^# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers
|
||||
|
||||
#Add parallel downloading
|
||||
sed -i 's/^#Para/Para/' /etc/pacman.conf
|
||||
|
||||
#Enable multilib
|
||||
sed -i "/\[multilib\]/,/Include/"'s/^#//' /etc/pacman.conf
|
||||
pacman -Sy --noconfirm
|
||||
|
||||
echo -e "\nInstalling Base System\n"
|
||||
|
||||
PKGS=(
|
||||
'xfce4' # Desktop Environment
|
||||
'xfce4-goodies' # Desktop Environment
|
||||
'xterm'
|
||||
'alsa-plugins' # audio plugins
|
||||
'alsa-utils' # audio utils
|
||||
'ark' # compression
|
||||
'audiocd-kio'
|
||||
'autoconf' # build
|
||||
'automake' # build
|
||||
'base'
|
||||
'bash-completion'
|
||||
'bind'
|
||||
'binutils'
|
||||
'bison'
|
||||
'bluedevil'
|
||||
'bluez'
|
||||
'bluez-libs'
|
||||
'bluez-utils'
|
||||
'bridge-utils'
|
||||
'btrfs-progs'
|
||||
'celluloid' # video players
|
||||
'cmatrix'
|
||||
'code' # Visual Studio code
|
||||
'cronie'
|
||||
'cups'
|
||||
'dialog'
|
||||
'discover'
|
||||
'dolphin'
|
||||
'dosfstools'
|
||||
'dtc'
|
||||
'efibootmgr' # EFI boot
|
||||
'egl-wayland'
|
||||
'exfat-utils'
|
||||
'extra-cmake-modules'
|
||||
'filelight'
|
||||
'flex'
|
||||
'fuse2'
|
||||
'fuse3'
|
||||
'fuseiso'
|
||||
'gamemode'
|
||||
'gcc'
|
||||
'gimp' # Photo editing
|
||||
'git'
|
||||
'gparted' # partition management
|
||||
'gptfdisk'
|
||||
'grub'
|
||||
'grub-customizer'
|
||||
'gst-libav'
|
||||
'gst-plugins-good'
|
||||
'gst-plugins-ugly'
|
||||
'gwenview'
|
||||
'haveged'
|
||||
'htop'
|
||||
'iptables-nft'
|
||||
'jdk-openjdk' # Java 17
|
||||
'kate'
|
||||
'kcodecs'
|
||||
'kcoreaddons'
|
||||
'kinfocenter'
|
||||
'kscreen'
|
||||
'kvantum-qt5'
|
||||
'kitty'
|
||||
'konsole'
|
||||
'kscreen'
|
||||
'layer-shell-qt'
|
||||
'libdvdcss'
|
||||
'libnewt'
|
||||
'libtool'
|
||||
'linux'
|
||||
'linux-firmware'
|
||||
'linux-headers'
|
||||
'lsof'
|
||||
'lutris'
|
||||
'lzop'
|
||||
'm4'
|
||||
'make'
|
||||
'milou'
|
||||
'nano'
|
||||
'neofetch'
|
||||
'networkmanager'
|
||||
'ntfs-3g'
|
||||
'ntp'
|
||||
'okular'
|
||||
'openbsd-netcat'
|
||||
'openssh'
|
||||
'os-prober'
|
||||
'oxygen'
|
||||
'p7zip'
|
||||
'pacman-contrib'
|
||||
'patch'
|
||||
'picom'
|
||||
'pkgconf'
|
||||
'powerdevil'
|
||||
'powerline-fonts'
|
||||
'print-manager'
|
||||
'pulseaudio'
|
||||
'pulseaudio-alsa'
|
||||
'pulseaudio-bluetooth'
|
||||
'python-notify2'
|
||||
'python-psutil'
|
||||
'python-pyqt5'
|
||||
'python-pip'
|
||||
'qemu'
|
||||
'rsync'
|
||||
'snapper'
|
||||
'spectacle'
|
||||
'steam'
|
||||
'sudo'
|
||||
'swtpm'
|
||||
'synergy'
|
||||
'systemsettings'
|
||||
'terminus-font'
|
||||
'traceroute'
|
||||
'ufw'
|
||||
'unrar'
|
||||
'unzip'
|
||||
'usbutils'
|
||||
'vim'
|
||||
'virt-manager'
|
||||
'virt-viewer'
|
||||
'wget'
|
||||
'which'
|
||||
'wine-gecko'
|
||||
'wine-mono'
|
||||
'winetricks'
|
||||
'xdg-desktop-portal-kde'
|
||||
'xdg-user-dirs'
|
||||
'zeroconf-ioslave'
|
||||
'zip'
|
||||
'zsh'
|
||||
'zsh-syntax-highlighting'
|
||||
'zsh-autosuggestions'
|
||||
)
|
||||
|
||||
for PKG in "${PKGS[@]}"; do
|
||||
echo "INSTALLING: ${PKG}"
|
||||
sudo pacman -S "$PKG" --noconfirm --needed
|
||||
done
|
||||
|
||||
#
|
||||
# determine processor type and install microcode
|
||||
#
|
||||
proc_type=$(lscpu | awk '/Vendor ID:/ {print $3}')
|
||||
case "$proc_type" in
|
||||
GenuineIntel)
|
||||
print "Installing Intel microcode"
|
||||
pacman -S --noconfirm intel-ucode
|
||||
proc_ucode=intel-ucode.img
|
||||
;;
|
||||
AuthenticAMD)
|
||||
print "Installing AMD microcode"
|
||||
pacman -S --noconfirm amd-ucode
|
||||
proc_ucode=amd-ucode.img
|
||||
;;
|
||||
esac
|
||||
|
||||
# Graphics Drivers find and install
|
||||
if lspci | grep -E "NVIDIA|GeForce"; then
|
||||
pacman -S nvidia --noconfirm --needed
|
||||
nvidia-xconfig
|
||||
elif lspci | grep -E "Radeon"; then
|
||||
pacman -S xf86-video-amdgpu --noconfirm --needed
|
||||
elif lspci | grep -E "Integrated Graphics Controller"; then
|
||||
pacman -S libva-intel-driver libvdpau-va-gl lib32-vulkan-intel vulkan-intel libva-intel-driver libva-utils --needed --noconfirm
|
||||
fi
|
||||
|
||||
echo -e "\nDone!\n"
|
||||
if ! source install.conf; then
|
||||
read -p "Please enter username:" username
|
||||
echo "username=$username" >> ${HOME}/OlaiOS/install.conf
|
||||
fi
|
||||
if [ $(whoami) = "root" ];
|
||||
then
|
||||
useradd -m -G wheel,libvirt -s /bin/bash $username
|
||||
passwd $username
|
||||
cp -R /root/OlaiOS /home/$username/
|
||||
chown -R $username: /home/$username/OlaiOS
|
||||
read -p "Please name your machine:" nameofmachine
|
||||
echo $nameofmachine > /etc/hostname
|
||||
else
|
||||
echo "You are already a user proceed with aur installs"
|
||||
fi
|
||||
|
|
@ -28,21 +28,13 @@ PKGS=(
|
|||
'steam' # Gaming Platform
|
||||
'brave-bin' # Brave Browser
|
||||
'dxvk-bin' # DXVK DirectX to Vulcan
|
||||
'lightly-git'
|
||||
'lightlyshaders-git'
|
||||
'mangohud' # Gaming FPS Counter
|
||||
'mangohud-common'
|
||||
'nerd-fonts-fira-code'
|
||||
'nordic-darker-standard-buttons-theme'
|
||||
'nordic-darker-theme'
|
||||
'nordic-kde-git'
|
||||
'discord'
|
||||
'nordic-theme'
|
||||
'noto-fonts-emoji'
|
||||
'papirus-icon-theme'
|
||||
'plasma-pa'
|
||||
'ocs-url' # install packages from websites
|
||||
'sddm-nordic-theme-git'
|
||||
'snapper-gui-git'
|
||||
'ttf-droid'
|
||||
'ttf-hack'
|
||||
|
|
BIN
kde.knsv
BIN
kde.knsv
Binary file not shown.
|
@ -1,5 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
cp -r $HOME/.config/kitty $HOME/OlaiOS/dotfiles/kitty
|
||||
konsave -s kde
|
||||
konsave -e kde
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
export PATH=$PATH:~/.local/bin
|
||||
cp -r $HOME/OlaiOS/dotfiles/* $HOME/.config/
|
||||
pip install konsave
|
||||
konsave -i $HOME/OlaiOS/kde.knsv
|
||||
sleep 1
|
||||
konsave -a kde
|
Loading…
Reference in a new issue