Thursday, November 4, 2010

[UBUNTU] Sudo insulting you & How to save the package list

MAKE SUDO INSULT YOU
With a little mod, when typing wrong password at sudo request, it will insult you.
Start typing in console

sudo gedit /etc/sudoers


On line 8 modify adding ",insults" as in

Defaults env_reset,insults


HOW TO SAVE INSTALLED PACKAGES LIST

In Terminal write

sudo dpkg --get-selections > installed-software

It creates the file "installed-software" in your /home/[name]/ directory.

Copy this file onto the system you will install these packages to and go to Synaptic, File->Read Markings, and load the file, then choose Apply to download and install packages.
This works for all enabled repositories, but, for example, packages from ppa repositories will not be retrieved (or will be installed in the Ubuntu Universe version)

No comments:

Post a Comment