Skip to content

Instantly share code, notes, and snippets.

@bonelifer
Forked from LiberQuack/setup_ubu_usr.sh
Created November 22, 2023 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bonelifer/82f04cc301e042975905b7fe3398177d to your computer and use it in GitHub Desktop.
Save bonelifer/82f04cc301e042975905b7fe3398177d to your computer and use it in GitHub Desktop.
#IMPORTANT
sudo apt update &&
sudo apt install -y software-properties-common curl wget pavucontrol #pavucontrol is for audio configs
#Themes and Tweak (Ubuntu)
sudo add-apt-repository ppa:numix/ppa
sudo apt update
sudo apt install -y numix-gtk-theme numix-icon-theme-circle
sudo apt install -y unity-tweak-tool gnome-tweak-tool
#Integrate AppImage
sudo add-apt-repository -y ppa:appimagelauncher-team/stable
sudo apt update
sudo apt install appimagelauncher
#Tweak (Elementary)
sudo add-apt-repository -y ppa:philip.scott/elementary-tweaks &&
sudo apt update &&
sudo apt install -y elementary-tweaks
#App Indicator (Elementary)
sudo add-apt-repository -y ppa:yunnxx/elementary &&
sudo apt update &&
sudo apt install -y indicator-application wingpanel-indicator-ayatana &&
sudo perl -0777 -i -pe 's/(OnlyShowIn.*)/$1Pantheon;/g' /etc/xdg/autostart/indicator-application.desktop
#Auto start ibus (Elementary)
echo '[Desktop Entry]
Name[en_US]=IBus Startup
Comment[en_US]=/usr/bin/ibus-daemon -drx
Exec=/usr/bin/ibus-daemon -drx
Icon=application-default-icon
X-GNOME-Autostart-enabled=true
Type=Application' > ~/.config/autostart/custom-command0.desktop &&
gsettings set org.freedesktop.ibus.general.hotkey triggers "['<Shift><Super>space']"
gsettings set org.freedesktop.ibus.panel.emoji hotkey "['<Super>e']"
#Snap
sudo apt install -y snapd
#ODrive
sudo snap install --edge odrive
#Spotify (Official)
sudo flatpak install -y https://flathub.org/repo/appstream/com.spotify.Client.flatpakref
#Flameshot
sudo apt update &&
sudo apt install -y flameshot
#Musixmatch (Official)
curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.90 Safari/537.36' https://download-app.musixmatch.com/ > musixmatch.deb &&
sudo apt install -fy ./musixmatch.deb &&
rm musixmatch.deb
#Disk Analyzer
sudo apt update &&
sudo apt install baobab &&
sudo baobab &
#Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - &&
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list' &&
sudo apt update &&
sudo apt install -y google-chrome-stable
#sudo perl -pi -e 's/HERE\/chrome"/HERE\/chrome" --disable-web-security /g' /opt/google/chrome/google-chrome
#Telegram
flatpak install -y https://flathub.org/repo/appstream/org.telegram.desktop.flatpakref
#Torrent
sudo apt update
sudo apt install -y deluge
#FTP
sudo apt update
sudo apt install -y filezilla
#WPS - Office (http://linux.wps.com)
wget -O wps.deb http://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/9522/wps-office_11.1.0.9522.XA_amd64.deb &&
sudo apt -y install ./wps.deb &&
rm wps.deb
#GSConnect (Android integration)
https://extensions.gnome.org/extension/1319/gsconnect
https://play.google.com/store/apps/details?id=org.kde.kdeconnect_tp
#Media Editing
sudo add-apt-repository -y ppa:kdenlive/kdenlive-stable &&
sudo add-apt-repository -y ppa:kdenlive/kdenlive-master &&
sudo apt update &&
sudo apt -y install gimp inkscape kdenlive kde-runtime gpick
#Kazam (Screen recorder)
sudo apt install -y kazam
#Tinfoil - Nut (Nintendo switch)
(
cd /sandbox &&
git clone git@github.com:blawar/nut.git &&
sudo apt-get install -y libusb-1.0-0-dev python3-pip python3-pyqt5 libssl-dev libcurl4-openssl-dev &&
cd nut &&
pip3 install -r requirements.txt &&
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="27e2", GROUP="plugdev"' | sudo tee "/etc/udev/rules.d/99-switch.rules" &&
python3 nut_gui.py
)
#Blender
sudo apt install -y nvidia-cuda-toolkit && #If your video card is from nvidia
BLENDER_VERSION=$(curl -q https://www.blender.org/download/ | grep -m 1 -oaP '(?<=blender-)\d+\.\d+\.\d+') &&
BLENDER_FTP=$(curl "https://www.blender.org/download/Blender$(echo $BLENDER_VERSION | grep -oP '\d+\.\d+')/blender-${BLENDER_VERSION}-linux64.tar.xz/" | grep -o 'https://ftp.*-linux64.tar.xz') &&
wget -O blender.tar.xz "$BLENDER_FTP" &&
tar -xvf blender.tar.xz &&
sudo mv "blender-${BLENDER_VERSION}-linux64" "/opt/blender-${BLENDER_VERSION}" &&
ln -sf "/opt/blender-${BLENDER_VERSION}" blender &&
sudo ln -sf "/opt/blender-${BLENDER_VERSION}/blender" /usr/bin/blender &&
rm -rf blender.tar.xz &&
( blender & )
#PlayOnLinux
wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_precise.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get -y install playonlinux
#Synapse
sudo add-apt-repository ppa:synapse-core/ppa -y
sudo apt-get update
sudo apt-get -y install synapse
#Libreoffice (Remove)
sudo apt-get -y remove --purge libreoffice*
sudo apt-get clean
sudo apt-get -y autoremove
#Amazon (Remove)
sudo apt-get -y remove unity-webapps-common
#TeamViewer
sudo dpkg --add-architecture i386 &&
sudo apt-get update &&
wget -O teamviewer.deb https://download.teamviewer.com/download/linux/teamviewer_amd64.deb &&
sudo apt install -y ./teamviewer.deb && rm ./teamviewer.deb
#DroidCam Client
cd /tmp/ &&
wget https://files.dev47apps.net/linux/droidcam_latest.zip &&
echo "957e5ff9e1762d0e912ee43a5f9083bb droidcam_latest.zip" | md5sum -c -- &&
unzip droidcam_latest.zip -d droidcam &&
( cd droidcam && sudo ./install ) &&
mkdir -p ~/.local/share/droidcam &&
cat <<EOF > ~/.local/share/droidcam/icon.svg &&
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#1BC04F" width="18px" height="18px"><path d="M0 0h24v24H0z" fill="none"/><circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"/></svg>
EOF
cat <<EOF > ~/.local/share/applications/droid-cam.desktop
[Desktop Entry]
Name=DroidCam
Icon=$HOME/.local/share/droidcam/icon.svg
Comment=Wireless Webcam via Android
Exec="droidcam"
Version=1.0
Type=Application
Categories=Audio;Music;AudioVideo;
Terminal=false
EOF
#Gaming
sudo apt -y install lutris
sudo apt -y install steam &&
mkdir -p ~/.steam/root/compatibilitytools.d &&
(
cd ~/.steam/root/compatibilitytools.d &&
wget -O proton-ge.tgz https://github.com/GloriousEggroll/proton-ge-custom/releases/download/5.9-GE-6-ST/Proton-5.9-GE-6-ST.tar.gz &&
tar -zxvf proton-ge.tgz
)
sudo apt -y install jstest-gtk
sudo apt -y install zsnes
sudo apt -y install joystick sysfsutils &&
sudo bash -c 'echo "module/bluetooth/parameters/disable_ertm = 1" >> /etc/sysfs.conf'
sudo flatpak install -y https://flathub.org/repo/appstream/com.moonlight_stream.Moonlight.flatpakref &&
sudo flatpak install -y com.leinardi.gwe &&
sudo flatpak install flathub org.flatpak.Builder &&
( cd /tmp && git clone https://github.com/FakeShemp/org.ffmpeg.FFmpeg.git && cd org.ffmpeg.FFmpeg && flatpak-builder --system --force-clean --install builds org.ffmpeg.FFmpeg.yaml )
sudo flatpak update
#Correct Dependencies
sudo apt-get install -fy
#UNITY KEYBOARD SHORTCUTS (RUN ONLY FOR UBUNTU)
gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier "<Super>" #Change window 'Alt' key behaviours to Super
gsettings set org.gnome.settings-daemon.plugins.media-keys screensaver '' #Disable shortcut Ctrl+Alt+L (for saving intellij)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment