红联Linux门户
Linux帮助

ubuntu7.10 Tips

发布时间:2008-03-08 16:52:01来源:红联作者:cnbtoo
1. sudo/gksu without password:

EDITOR=gedit gksu visudo

Find “Defaults !lecture,tty_tickets,!fqdn” and replace by “Defaults timestamp_timeout=-1″.

///////////////////////

2. How to change the USplash Screen on startup/shutdown:

When you add another Desktop Environment, the USplash screen may change (saying Kubuntu instead of Ubuntu). If you want to change it, do the following:

sudo update-alternatives -config usplash-artwork.so

This will bring up a list of installed USplash screens. Type the number that corresponds to the one you want and press Enter. Then type:

sudo dpkg-reconfigure usplash

Then reboot.

////////////////////////////

3. How to find the UUID of a device:

* This is useful if changes are made to the partition table or a new hard drive is added to the computer.
* When the UUID(s) change an error will be caused during boot.
* Pressing -D will allow the boot to continue but to fix the problem:

-> Open fstab file:

sudo gedit /etc/fstab

-> In another terminal run this commmand:

ls -l /dev/disk/by-uuid/

-> Or you can type this to list all of your devices:

blkid

* Compare the UUID’s and any that are different in fstab from the list must be changed. The easiest way is copy and paste.
* Some other things may have to be edited as well like the mount point, type (ext2, ext3, ntfs, etc) , options, dump, pass, etc.

For more help editing fstab look Here:

* To list the UUID of a specific device:

sudo vol_id -u device

* Where device might be /dev/sdxy.

Example: sudo vol_id -u /dev/sda1

/////////////////////////////

4. Enable vim syntax highlighting:

The source of vi/vim command is vim-tiny package which does not support syntax highlighting. Install vim:

sudo apt-get install vim

Then open /etc/vim/vimrc and uncomment syntax on

Replace

“syntax on

With

syntax on

////////////////////////////

5. Ubuntu: lsb_release -a

***install from bin:

chmod +x Desktop/GoogleEarthLinux.bin

sudo Desktop/GoogleEarthLinux.bin

***Mounting Automatically

Create mountpoint:

sudo mkdir /mnt/files

Edit configuration:

gksudo gedit /etc/fstab

Add something similar to below:

192.168.1.1:/path/to/shared/files /mnt/files nfs rsize=8192,wsize=8192,timeo=14,intr 0 0

Test new configuration:

sudo mount -a

Reboot to test automatic mounting.
***
lspci | grep Broadcom
文章评论

共有 0 条评论