1. Speed up install and update progress
After installation, Ubuntu set server at your country as repository by default. However, this may be not the best server(i’m talking about download speed when you update or install applications), you can search the best server by doing the following steps :
select software sources in System>Administration. on ubuntu software tab, select other from combo box “Download from : ” . a new panel called “choose a download server” appear, click on Select Best Server button. after searching completed, click on Choose Server button and you done.
2. Create ISO image of you CDs or DVDs
- Insert the CD or DVD that you want to make an ISO image of.
- Open a terminal windows
- Execute the following command : cat /dev/scd0 > /home/<user name>/filename.iso
where /dev/scd0 is the device name for your drive . This is an exact copy of your disc with every properties of the original disc.
3. Change ubuntu sudo password timeout :
You can change your password timeout by following steps :
open terminal
$sudo visudo
this command will modify sudoers file through sudoers.tmp, don’t modify /etc/sudoers directly!
A text document will open up in the terminal, navigate to the bottom of the document using arrow keys and add these lines :
#disable sudo passwd timeout setting
Defaults timestamp_timeout=0
then press “Ctrl+x” and choose “y” to accept your modifications, hit enter to finish
if there already contain “Defaults xxx” in the file, put a comma after it and then enter timeout code like this :
Defaults xxx,passwd_timeout=0;
increase value to 10, so sudo passwd timeout will be 10mins. -1 fo unlimited timeout (dont use this unless you are doing expriment on virtual machine)
<!– @page { margin: 0.79in } P { margin-bottom: 0.08in; direction: ltr } P.western { font-family: “Times New Roman”; font-size: 12pt; so-language: en-US } –>
4.limit update/apt download rate :
gksu gedit /etc/apt/apt.conf
$ cat /etc/apt/apt.conf
add codes from here :
//—————————
// Options for limiting Update Manager download speeds
Acquire
{
Queue-Mode “access”; // host|access
http
{
Dl-Limit “100″; // 100Kb/sec maximum download rate
};
};
//————————–
<!– @page { margin: 0.79in } P { margin-bottom: 0.08in; direction: ltr } P.western { font-family: “Times New Roman”; font-size: 12pt; so-language: en-US } –>
let’s disable this dangerous setting by following steps
$sudo visudo
this command will modify sudoers file through sudoers.tmp, don’t modify /etc/sudoers directly!
A text document will open up in the terminal, navigate to the bottom of the document using arrow keys and add these lines :
#disable sudo passwd timeout setting
Defaults timestamp_timeout=0
Then press “Ctrl+X” and choose “y” to accept your modifications, hit enter to finish
if there already contain “Defaults xxx” in the file, put a comma after it and then enter timeout code like this :
Defaults xxx,passwd_timeout=0
increase value to 10, so sudo passwd timeout will be 10 mins. -1 for unlimited timeout <don’t use this unless u r doing expriment on virtual machine
>