sudo sudoers

sudo visudo

and then edit like below.

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
accoutNameForSudo ALL=(ALL) ALL

above is equivalent to below.

echo 'accountNameForSudo ALL=(ALL) ALL' >> /etc/sudoers 

further reading on



eclipse ubuntu lock to launcher

How to pin Eclipse to the Unity launcher?


94down voteaccepted

For 11.10 and newer

First, create a .desktop file to eclipse:

gedit ~/.local/share/applications/opt_eclipse.desktop

Then, paste this inside (dont forget to edit Exec and Icon values):

[Desktop Entry]
Comment=Eclipse Integrated Development Environment
Icon=** something like /opt/eclipse/icon.xpm **
Exec= ** something like /opt/eclipse/eclipse **

After that, open that folder with nautilus:

nautilus ~/.local/share/applications

If you want to use this launcher outside dash/launcher (ex: as a desktop launcher) you need to add execution permission by right clicking the file and choosing Properties -> Permissions -> Allow execution, or, via the command-line:

chmod +x ~/.local/share/applications/opt_eclipse.desktop

Finally drop opt_eclipse.desktop to launcher.

How to disable Ubuntu’s Annoying Global Menu Bar

I thought it was awful. Actually, I’m currently using Mac OSX Mountain Lion, using 3 monitors.

Global Menubar is resided center monitor, which is extremely painful to move around to that menu bar!!

I guess most Apple developer uses only “One” monitor. :-)

However, using ubuntu unity. It’s the sam F*cking “Global Menubar”.

I found this command from here. 

sudo apt-get autoremove appmenu-gtk appmenu-gtk3 appmenu-qt