Friday, September 27, 2013

How to add and modify applications in the slingshot launcher of elementaryOS

Open up a terminal and type:


sudo apt-get install --no-install-recommends alacarte

Now, we're going to make alacarte work with slingshot. Type this in a terminal:


sudo scratch-text-editor /usr/share/alacarte/Alacarte/MenuEditor.py

This will open up a text file. Hit ctrl+F to search for 'applications.menu' and replace all with 'pantheon-applications.menu' (you have to replace applications.menu twice in the file). When done, close the file.

Now start the menu editor by typing 'alacarte' in slingshot or in a terminal

Gdk Gtk warnings and errors from the command line

The Unable to locate theme engine in module_path: "pixmap" messages are a known bug.
To fix it, install the gtk2-engines-pixbuf Install gtk2-engines-pixbuf package

Monday, July 22, 2013

Save jQuery active tab

$("#tabs").tabs({
activate: function (e, ui) {
 $.cookie('selected-tab', ui.newTab.index(), { path: '/' });
},
active: $.cookie('selected-tab')
});

Wednesday, May 15, 2013

How to remove kernels from previous release?


Open terminal and check your current kernel:

uname -r
DO NOT REMOVE THIS KERNEL!

Next, type the command below to view / list all installed kernels on your system.

dpkg --list | grep linux-image
Find all the kernels that lower than your current kernel. When you know which kernel to remove, continue below to remove it. Run the commands below to remove the kernel you selected.

sudo apt-get purge linux-image-x.x.x.x-generic
or
sudo apt-get purge linux-image-3.2.0-3{0..5}-generic

Finally, run the commands below to update grub2

sudo update-grub2
Reboot your system.

systemd-timesyncd

sudo apt update && sudo apt install systemd-timesyncd && sudo systemctl enable --now systemd-timesyncd