Skip to content

Instantly share code, notes, and snippets.

@argaghulamahmad
Created September 24, 2017 06:49
Show Gist options
  • Save argaghulamahmad/77dd0bc52cd1a378234149b8b85a0200 to your computer and use it in GitHub Desktop.
Save argaghulamahmad/77dd0bc52cd1a378234149b8b85a0200 to your computer and use it in GitHub Desktop.
Ubuntu 16.04 Unity configs and apps

Unity Tweak Tool 🐧

sudo apt-get install -y unity-tweak-tool

Troubleshoot

7Z, RAR file support to File Roller

sudo apt-get install -y rar unrar p7zip-full p7zip-rar

Google Chrome Web Browser x64

OR

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-get update
sudo apt-get install -y google-chrome-stable

VLC

sudo apt-add-repository -y ppa:videolan/stable-daily
sudo apt-get update
sudo apt-get install -y vlc
sudo add-apt-repository -y ppa:otto-kesselgulasch/gimp
sudo apt-get update
sudo apt-get install -y gimp

xfburn - CD and DVD burning application

sudo apt-get install -y xfburn

xfburn does not support multi-session disks

sudo apt-get install -y dconf-tools

Compiz configuration settings manager

sudo apt-get install -y compizconfig-settings-manager
sudo apt-get install -y gparted

ISO Master

sudo apt-get install -y isomaster
sudo apt-get install -y bleachbit

uGet Download Manager

sudo add-apt-repository -y ppa:plushuang-tw/uget-stable
sudo apt update
sudo apt install -y aria2 uget
sudo add-apt-repository -y ppa:gezakovacs/ppa
sudo apt-get update
sudo apt-get install -y unetbootin
sudo add-apt-repository -y ppa:nilarimogard/webupd8
sudo apt update
sudo apt install -y winusb

Skype

Get maximum of your Laptop battery

# Remove laptop mode tools if installed
sudo apt-get purge laptop-mode-tools
# Install TLP
sudo add-apt-repository -y ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install -y tlp tlp-rdw
sudo tlp start

TLP saves it configs to /etc/default/tlp, advanced users can go and adjust settings there.

For example un-comment this line DEVICES_TO_DISABLE_ON_STARTUP

gDebi

sudo apt-get install -y gdebi

Synaptic Package Manager

sudo apt-get install -y synaptic

E4defrag (Defrag ext4 partations)

##sudo apt-get install -y e2fsprogs
# check if your first partation needs defragmentation
sudo e4defrag -c /dev/sda1 
# Full install
sudo apt-get install -y ubuntu-restricted-extras
# Selected install - Codecs only
sudo apt-get install -y gstreamer1.0-fluendo-mp3 gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libavcodec-extra
sudo apt-add-repository -y 'deb http://download.virtualbox.org/virtualbox/debian xenial contrib'
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add - 
sudo apt-get update 
sudo apt-get install -y virtualbox-5.1 --allow-unauthenticated
sudo apt-get install -y lm-sensors hddtemp psensor
# Answer the questions when asked in 'yes'
sudo sensors-detect
# Verify the detected sensors
sensors
sudo add-apt-repository -y ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install -y grub-customizer

Boot up manager

sudo apt-get install -y bum

guFw Firewall

sudo apt-get install -y gufw
# OR (If u dont need a GUI program)
sudo ufw enable

Filezilla

sudo apt-get install -y filezilla
sudo add-apt-repository -y ppa:stebbins/handbrake-releases
sudo apt-get update
sudo apt-get install -y handbrake-gtk

Selene Media Encoder

sudo apt-add-repository -y ppa:teejee2008/ppa
sudo apt-get update
sudo apt-get install -y selene
sudo add-apt-repository -y ppa:fixnix/netspeed
sudo apt-get update
sudo apt-get install -y indicator-netspeed-unity

Mailnag - mail notification daemon.

sudo add-apt-repository -y ppa:pulb/mailnag
sudo apt-get update
sudo apt-get install -y mailnag mailnag-unity-plugin

Plank Dock

sudo add-apt-repository -y ppa:ricotz/docky
sudo apt-get update
sudo apt-get install -y plank
# Configure plank
plank --preferences

Plank Themes,Themes 2

sudo add-apt-repository -y ppa:audio-recorder/ppa
sudo apt-get update
sudo apt-get install -y audio-recorder
sudo add-apt-repository -y ppa:ubuntuhandbook1/apps
sudo apt-get update
sudo apt-get install -y mupdf mupdf-tools
sudo add-apt-repository -y ppa:atareao/atareao
sudo apt-get update
sudo apt-get install -y cpu-g
sudo apt-get install -y openjdk-8-jre
sudo apt-add-repository -y ppa:lucioc/sayonara
sudo apt-get update
sudo apt-get install -y sayonara
sudo add-apt-repository -y ppa:christian-boxdoerfer/fsearch-daily
sudo apt-get update
sudo apt install fsearch-trunk
wget https://launchpad.net/~agornostal/+archive/ubuntu/ulauncher/+files/ulauncher_1.0.0_all.deb
sudo dpkg -i ulauncher_1.0.0_all.deb
# Fix dependency errors
sudo apt install -y -f
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update 
sudo apt-get install -y sublime-text
#!/bin/bash
set -e
# Ubuntu 16.04
# Remove these apps
# List of apps to remove
declare -a APPS=(
"firefox*"
"xul-ext-ubufox*"
"thunderbird*"
"libreoffice-*"
"mythes-en-us"
"deja-dup*"
"unity-control-center-signon"
"unity-scope-gdrive"
"evolution-data-server"
"transmission-gtk"
"totem"
"shotwell"
"example-content"
"gnome-calendar"
"gnome-sudoku"
"gnome-mahjongg"
"aisleriot"
"gnome-mines"
)
## Loop through the above array
for i in "${APPS[@]}"
do
echo -e "\e[96m Uninstall: $i \e[39m"
sudo apt-get remove --purge -y $i
done
# Clean up
sudo apt-get -y autoremove
sudo apt-get -y clean
# Remove amazon app from dash, we can't remove the package
sudo rm -rf /usr/share/applications/ubuntu-amazon-default.desktop

Set file roller compression level to maximum, Source

dconf write /org/gnome/file-roller/general/compression-level "'maximum'"

Show logged-in user name in unity panel

gsettings set com.canonical.indicator.session show-real-name-on-panel true

Display Hidden Auto-Start Entries

sudo sed -i 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/*.desktop

Now run gnome-session-properties in terminal to see full list

Remove Guest session from login screen

sudo mkdir /etc/lightdm/lightdm.conf.d
sudo sh -c 'printf "[SeatDefaults]\nallow-guest=false\n" > /etc/lightdm/lightdm.conf.d/50-no-guest.conf'

Minimize windows on click

gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-minimize-window true

Show menus in windows' title bar

gsettings set com.canonical.Unity integrated-menus true

Always show menus in title bar

gsettings set com.canonical.Unity always-show-menus true

Remove language related ign from apt-get update

echo 'Acquire::Languages "none";' | sudo tee -a /etc/apt/apt.conf.d/00aptitude

Speed up apt-get update with parallel

# Create a file
sudo nano /etc/apt/apt.conf.d/99parallel

Add these lines and save, exit

APT::Acquire::Queue-Mode "access";
APT::Acquire::Retries 3;

Source

timedatectl set-local-rtc 1

Move Unity launcher to bottom

gsettings set com.canonical.Unity.Launcher launcher-position Bottom
# Revert back
gsettings set com.canonical.Unity.Launcher launcher-position Left

Find which driver is being used

# Find VGA
lspci -nn | grep VGA

#Find Wireless
lspci -nn | grep Wireless

CTRL+ALT+BACKSPACE to kill X-Server (soft reboot)

setxkbmap -option terminate:ctrl_alt_bksp

Tune Swappiness

# temporarily
sudo sysctl vm.swappiness=10

# parmanent, require reboot
echo 'vm.swappiness=10' | sudo tee -a /etc/sysctl.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment