Skip to content

Instantly share code, notes, and snippets.

@allex
Last active September 28, 2015 01:18
Show Gist options
  • Save allex/1361750 to your computer and use it in GitHub Desktop.
Save allex/1361750 to your computer and use it in GitHub Desktop.
Ubuntu customize setting notes, (update lately)

Removed the warning: Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

allex@WANG:~$ sudo install the gtk2-engines-pixbuf

Check unity features supports:

/usr/lib/nux/unity_support_test -p

Fix unity crashed (by CCSM)

rm -rf .gconf/apps/compiz* rm -rf .cache/compizconfig-1/ rm -rf .config/compiz-1/ rm -rf .compiz*

or unity --reset

Install jupiter to optimize power.

sudo add-apt-repository ppa:tualatrix/next sudo apt-get install ubuntu-tweak

sudo add-apt-repository ppa:webupd8team/jupiter sudo apt-get update sudo apt-get install jupiter

Disable Overlay Scrollbars

~/.xprofile (profile) or /etc/X11/Xsession.d/99disable-overlay-scrollbars (global)

sudo apt-get remove overlay-scrollbar liboverlay-scrollbar3-0.2-0 liboverlay-scrollbar-0.2-0

export LIBOVERLAY_SCROLLBAR=0

sudo su echo "export LIBOVERLAY_SCROLLBAR=0" > /etc/X11/Xsession.d/80overlayscrollbars

How to add my favorite places as a quicklist in my home's icon in Unity?

allex@WANG:~$ vi /usr/share/applications/nautilus-home.desktop

X-Ayatana-Desktop-Shortcuts=Videos;Documents;Music;Pictures;Downloads [Videos Shortcut Group] Name=Videos Exec=nautilus Videos TargetEnvironment=Unity

[Documents Shortcut Group] Name=Documents Exec=nautilus Documents TargetEnvironment=Unity

[Music Shortcut Group] Name=Music Exec=nautilus Music TargetEnvironment=Unity

[Pictures Shortcut Group] Name=Pictures Exec=nautilus Pictures TargetEnvironment=Unity

[Downloads Shortcut Group] Name=Downloads Exec=nautilus Downloads TargetEnvironment=Unity

How can you log out via the terminal?

Open ~/.bash_aliases with a text editor, or create it if it isn't there, and add something like this to it:

alias logout="gnome-session-save --force-logout"

or

logout

alias logout="dbus-send --session --type=method_call --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.Logout uint32:1"

Add Open in Terminal Command to Nautilus Context Menu in Ubuntu 11.10 (Oneiric Ocelot)

sudo apt-get install nautilus-open-terminal nautilus -q

Remove Old Kernels In Ubuntu With One Command | Tux Tweaks

see: http://tuxtweaks.com/2010/10/remove-old-kernels-in-ubuntu-with-one-command/ dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e uname -r | cut -f1,2 -d"-" | grep -e [0-9] | xargs sudo apt-get -y purge

restart x-server

Depending if you use lightdm (ubuntu 11.10 and later), gdm (gnome) or kdm (KDE) you can use one of the following commands:

sudo restart lightdm sudo restart gdm

or

sudo restart kdm

------------------------- ubuntu upgrade logs (start) -------------------------

http://duopetalflower.blogspot.com/2011/10/startingstopping-x-in-ubuntu-1110.html

Faenza Icon Theme Installation

sudo add-apt-repository ppa:tiheum/equinox sudo apt-get update sudo apt-get install faenza-icon-theme

Enabling Faenza Icon Theme

If Gnome Tweak Tool is not installed, then use this command to install it:

sudo apt-get install gnome-tweak-tool

ubuntu-tweak

sudo add-apt-repository ppa:tualatrix/ppa sudo apt-get update sudo apt-get install ubuntu-tweak

Launch Gnome Tweak Tool from the Unity Dash and head to the Theme tab, then select Faenza or its related themes from the "Icon theme" dropdown menu:

virtualbox

http://www.ubuntugeek.com/how-to-install-virtualbox-4-x-on-ubuntu-11-04natty.html

google-chrome

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

/etc/apt/sources.list.d/google.list

deb http://dl.google.com/linux/chrome/deb/ stable main sudo apt-get install google-chrome-stable

Jupiter

sudo add-apt-repository ppa:webupd8team/jupiter sudo apt-get update sudo apt-get install jupiter

some basic tools (alternative)

sudo apt-get install smplayer shutter aptitude samba compizconfig-settings-manager sudo apt-get purge gnome-screenshot

view default settings of the samba

testparm -v | grep passwd

echo "deb http://security.ubuntu.com/ubuntu hardy-security main universe" >> /etc/apt/sources.list sudo apt-get install vim-full vim-gnome

setup image viewer

sudo apt-get install gpicview gwenview sudo apt-get purge eog shotwell

dev

sudo apt-get install nodejs apache2 php5 vim gvim ant curl ctags git subversion

enable the mod_rewrite

sudo a2enmod rewrite

jdk

sudo apt-get install openjdk-7-jdk export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-i386

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment