mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-11-10 01:51:03 +01:00
Updated games and other things
This commit is contained in:
parent
27eac760c4
commit
9d8dfd33a0
@ -52,6 +52,7 @@ hunspell-nl
|
|||||||
# video/picture manipulation
|
# video/picture manipulation
|
||||||
gimp
|
gimp
|
||||||
blender
|
blender
|
||||||
|
obs-studio
|
||||||
|
|
||||||
# communication tools
|
# communication tools
|
||||||
pidgin
|
pidgin
|
||||||
@ -77,3 +78,18 @@ ansible
|
|||||||
|
|
||||||
# entertainment software
|
# entertainment software
|
||||||
rhythmbox
|
rhythmbox
|
||||||
|
|
||||||
|
## games
|
||||||
|
0ad
|
||||||
|
warzone2100
|
||||||
|
supertuxkart
|
||||||
|
gnuchess
|
||||||
|
sauerbraten
|
||||||
|
assaultcube
|
||||||
|
minetest
|
||||||
|
mari0
|
||||||
|
|
||||||
|
### retroarch
|
||||||
|
retroarch
|
||||||
|
retroarch-assets-xmb
|
||||||
|
retroarch-assets-ozone
|
||||||
|
@ -13,7 +13,7 @@ info "Update packages..." &&
|
|||||||
sudo pacman -Syyu || error "Package syncronisation failed."
|
sudo pacman -Syyu || error "Package syncronisation failed."
|
||||||
|
|
||||||
info "Synchronizing pacman packages..." &&
|
info "Synchronizing pacman packages..." &&
|
||||||
get_packages "general" "client-pacman" | sudo pacman -S --needed - && #|| error "Syncronisation failed."
|
get_packages "general" "client-pacman" | sudo pacman -S --needed - &&
|
||||||
info "Synchronizing yay packages..." &&
|
info "Synchronizing yay packages..." &&
|
||||||
get_packages "client-yay" | yay -S - || error "Syncronisation failed."
|
get_packages "client-yay" | yay -S - || error "Syncronisation failed."
|
||||||
|
|
||||||
@ -43,68 +43,57 @@ if [ ! -f "$ssh_key_path" ]; then
|
|||||||
ssh-keygen -t rsa -b 4096 -C "$USER@$HOSTNAME" || error "Key generation failed."
|
ssh-keygen -t rsa -b 4096 -C "$USER@$HOSTNAME" || error "Key generation failed."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# @todo the following part can be optimized
|
|
||||||
if [[ "$(sudo lshw -C display)" == *"NVIDIA"* ]]; then
|
info "Installing nonfree drivers..." &&
|
||||||
info "Install NVIDIA drivers..." &&
|
|
||||||
sudo mhwd -a pci nonfree 0300 || error "Failed."
|
sudo mhwd -a pci nonfree 0300 || error "Failed."
|
||||||
fi
|
|
||||||
|
|
||||||
# @todo optimize
|
info "Setup, configuration and installation of dependencies for installed software..."
|
||||||
obs_requirements_memory_kb="4000000"
|
|
||||||
if [ "$SYSTEM_MEMORY_KB" -gt "$obs_requirements_memory_kb" ]; then
|
|
||||||
info "Synchronizing obs studio..."
|
|
||||||
sudo pacman -S obs-studio
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
if pacman -Qi "arduino" > /dev/null ; then
|
||||||
info "Configurate system for arduino..." &&
|
info "Configurate system for arduino..." &&
|
||||||
sudo usermod -a -G uucp "$USER" &&
|
sudo usermod -a -G uucp "$USER" &&
|
||||||
sudo usermod -a -G lock "$USER" || error "Couldn't add \"$USER\" to the relevant groups."
|
sudo usermod -a -G lock "$USER" || error "Couldn't add \"$USER\" to the relevant groups."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if pacman -Qi "atom" > /dev/null ; then
|
||||||
info "Installing atom packages..." &&
|
info "Installing atom packages..." &&
|
||||||
get_packages "atom" | apm install --verbose -c - &&
|
get_packages "atom" | apm install --verbose -c - &&
|
||||||
info "Installing software which is required by atom..." &&
|
info "Installing software which is required by atom..." &&
|
||||||
sudo npm i -g bash-language-server &&
|
sudo npm i -g bash-language-server &&
|
||||||
python -m pip install 'python-language-server[all]' || error "Installation failed."
|
python -m pip install 'python-language-server[all]' || error "Failed."
|
||||||
|
fi
|
||||||
|
|
||||||
info "Synchronizing containerization tools..."
|
if pacman -Qi "docker" > /dev/null ; then
|
||||||
info "Add current user \"$USER\" to user group docker..."
|
info "Setting up docker..." &&
|
||||||
sudo usermod -a -G docker "$USER"
|
info "Add current user \"$USER\" to user group docker..." &&
|
||||||
info "Enable docker service..."
|
sudo usermod -a -G docker "$USER" &&
|
||||||
sudo systemctl enable docker --now
|
info "Enable docker service..." &&
|
||||||
info "Synchronizing virtualisation tools..."
|
sudo systemctl enable docker --now || error "Failed."
|
||||||
pamac install virtualbox $(pacman -Qsq "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-virtualbox-host-modules"}' ORS=' ')
|
fi
|
||||||
sudo vboxreload
|
|
||||||
pamac build virtualbox-ext-oracle
|
if pacman -Qi "docker" > /dev/null ; then
|
||||||
sudo gpasswd -a "$USER" vboxusers
|
info "Setting up virtualbox..." &&
|
||||||
|
pamac install virtualbox $(pacman -Qsq "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-virtualbox-host-modules"}' ORS=' ') &&
|
||||||
|
sudo vboxreload &&
|
||||||
|
pamac build virtualbox-ext-oracle &&
|
||||||
|
sudo gpasswd -a "$USER" vboxusers || error "Failed."
|
||||||
info "Keep in mind to install the guest additions in the virtualized system. See https://wiki.manjaro.org/index.php?title=VirtualBox"
|
info "Keep in mind to install the guest additions in the virtualized system. See https://wiki.manjaro.org/index.php?title=VirtualBox"
|
||||||
|
fi
|
||||||
|
|
||||||
minimum_gaming_memory_kb="4000000"
|
|
||||||
if [ "$SYSTEM_MEMORY_KB" -gt "$minimum_gaming_memory_kb" ]; then
|
|
||||||
info "Synchronizing games..."
|
|
||||||
sudo pacman --needed -S 0ad warzone2100
|
|
||||||
info "Synchronizing emulationstation..."
|
|
||||||
yay -S emulationstation #retroarch joyutils jstest-gtk-git
|
|
||||||
yay -S libretro-snes9x-next-git libretro-quicknes-git libretro-fceumm-git libretro-prosystem-git libretro-gambatte-git libretro-mgba-git
|
|
||||||
info "Installing themes..."
|
|
||||||
mkdir .emulationstation/themes
|
|
||||||
git clone https://github.com/RetroPie/es-theme-carbon .emulationstation/themes/carbon
|
|
||||||
info "More game recomendations you will find here: https://wiki.archlinux.org/index.php/List_of_games..."
|
|
||||||
fi
|
|
||||||
if [ "$XDG_SESSION_TYPE" == "x11" ]; then
|
if [ "$XDG_SESSION_TYPE" == "x11" ]; then
|
||||||
info "Synchronizing xserver tools..."
|
info "Synchronizing xserver tools..." &&
|
||||||
sudo pacman --needed -S xbindkeys
|
sudo pacman --needed -S xbindkeys &&
|
||||||
info "Setting up key bindings..."
|
info "Setting up key bindings..." &&
|
||||||
echo "" >> "$HOME/.xbindkeysrc"
|
echo "" >> "$HOME/.xbindkeysrc" &&
|
||||||
echo "\"gnome-terminal -e '/bin/bash $SCRIPT_PATH/import-data-from-system.sh'\"" >> "$HOME/.xbindkeysrc"
|
echo "\"gnome-terminal -e '/bin/bash $SCRIPT_PATH/import-data-from-system.sh'\"" >> "$HOME/.xbindkeysrc" &&
|
||||||
echo " control+alt+s" >> "$HOME/.xbindkeysrc"
|
echo " control+alt+s" >> "$HOME/.xbindkeysrc" &&
|
||||||
xbindkeys --poll-rc
|
xbindkeys --poll-rc || error "Failed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$DESKTOP_SESSION" == "gnome" ]; then
|
if [ "$DESKTOP_SESSION" == "gnome" ]; then
|
||||||
info "Synchronizing gnome tools..."
|
info "Synchronizing gnome tools..." &&
|
||||||
sudo pacman --needed -S gnome-shell-extensions gnome-terminal
|
sudo pacman --needed -S gnome-shell-extensions gnome-terminal &&
|
||||||
info "Setting up gnome specific software..."
|
info "Setting up gnome dash favourites..." &&
|
||||||
info "Setting up dash favourites..."
|
|
||||||
gsettings set org.gnome.shell favorite-apps "['org.gnome.Nautilus.desktop',
|
gsettings set org.gnome.shell favorite-apps "['org.gnome.Nautilus.desktop',
|
||||||
'org.gnome.Terminal.desktop',
|
'org.gnome.Terminal.desktop',
|
||||||
'org.keepassxc.KeePassXC.desktop',
|
'org.keepassxc.KeePassXC.desktop',
|
||||||
@ -117,20 +106,22 @@ if [ "$DESKTOP_SESSION" == "gnome" ]; then
|
|||||||
'gimp.desktop',
|
'gimp.desktop',
|
||||||
'blender.desktop',
|
'blender.desktop',
|
||||||
'rhythmbox.desktop',
|
'rhythmbox.desktop',
|
||||||
'org.gnome.Screenshot.desktop']" || error "Setting up icons failed"
|
'org.gnome.Screenshot.desktop']" &&
|
||||||
info "Install GNOME extensions..."
|
info "Install GNOME extensions..." &&
|
||||||
info "Install \"NASA picture of the day\"..."
|
info "Install \"NASA picture of the day\"..." &&
|
||||||
git clone https://github.com/Elinvention/gnome-shell-extension-nasa-apod.git "$HOME/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh"
|
git clone https://github.com/Elinvention/gnome-shell-extension-nasa-apod.git "$HOME/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh" &&
|
||||||
gnome-extensions enable nasa_apod@elinvention.ovh
|
gnome-extensions enable nasa_apod@elinvention.ovh &&
|
||||||
info "Install \"Open Weather\"..."
|
info "Install \"Open Weather\"..." &&
|
||||||
git clone https://gitlab.com/jenslody/gnome-shell-extension-openweather "$HOME/.local/share/gnome-shell/extensions/openweather-extension@jenslody.de"
|
git clone https://gitlab.com/jenslody/gnome-shell-extension-openweather "$HOME/.local/share/gnome-shell/extensions/openweather-extension@jenslody.de" &&
|
||||||
gnome-extensions enable openweather-extension@jenslody.de
|
gnome-extensions enable openweather-extension@jenslody.de &&
|
||||||
info "Install \"Dash to Panel\"..."
|
info "Install \"Dash to Panel\"..." &&
|
||||||
git clone https://github.com/home-sweet-gnome/dash-to-panel "$HOME/.local/share/gnome-shell/extensions/openweather-extension@dash-to-panel@jderose9.github.com"
|
git clone https://github.com/home-sweet-gnome/dash-to-panel "$HOME/.local/share/gnome-shell/extensions/openweather-extension@dash-to-panel@jderose9.github.com" &&
|
||||||
gnome-extensions enable dash-to-panel@jderose9.github.com
|
gnome-extensions enable dash-to-panel@jderose9.github.com &&
|
||||||
info "Deaktivating \"Dash to Dock\""
|
info "Deaktivating \"Dash to Dock\"" &&
|
||||||
gnome-extensions disable dash-to-dock@micxgx.gmail.com
|
gnome-extensions disable dash-to-dock@micxgx.gmail.com || error "Failed."
|
||||||
fi
|
fi
|
||||||
info "Removing all software from user startup..."
|
|
||||||
|
info "Removing all software from user startup..." &&
|
||||||
rm ~/.config/autostart/* || error "Removing startup software failed."
|
rm ~/.config/autostart/* || error "Removing startup software failed."
|
||||||
info "More software recomendations you will find here: https://wiki.archlinux.org/index.php/list_of_applications"
|
|
||||||
|
success "Setup finished successfully :)" && exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user