9.1.
|
How do I restart GNOME without rebooting the computer? |
|
|
9.2.
|
How do I automatically turn on Num Lock when GNOME starts? |
|
Make sure the universe repository is enabled. (See How do I add Universe and Multiverse?)
-
Install the numlockx package with Synaptic (See How do I use Synaptic to install packages?)
x11 (universe) > numlockx
-
Make a backup copy of your existing /etc/X11/gdm/Init/Default file.
sudo cp /etc/X11/gdm/Init/Default /etc/X11/gdm/Init/Default_backup
-
Open /etc/X11/gdm/Init/Default for editing.
sudo gedit /etc/X11/gdm/Init/Default
-
Find this line (It should be the last line in the file).
exit 0
-
Add the following lines above the "exit 0" line.
if [ -x /usr/bin/numlockx ]; then
/usr/bin/numlockx on
fi
Save the edited file. (See sample/Default_numlockx for an example.)
The change will take effect the next time you log in to GNOME. If you want to test it right away, turn off Num Lock and restart GNOME (See How do I restart GNOME without rebooting the computer?)
|
9.3.
|
How do I run programs automatically when GNOME starts? |
|
Choose
->->.
Click on the Startup Programs tab.
Use the
Add,
Edit, and
Delete buttons to manage
programs to run at startup.
|
9.4.
|
How do I switch to Console mode? |
|
Use the Ctrl-Alt-F1
shortcut keys to switch to the first console.
To switch back to Desktop mode, use the Ctrl-Alt-F7 shorcut keys.
|
|
There are six consoles available. Each one is accessible with the
shortcut keys Ctrl-Alt-F1 to Ctrl-Alt-F6.
|
|
9.5.
|
How do I disable the Ctrl-Alt-Backspace shortcut keys from restarting X?
|
|
-
Make a backup copy of your existing /etc/X11/xorg.conf file.
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
-
Open /etc/X11/xorg.conf for editing.
sudo gedit /etc/X11/xorg.conf
-
Add the following lines to the end of the file:
Section "ServerFlags"
Option "DontZap" "yes"
EndSection
Save the edited file. (See sample/xorg.conf_disablectrlaltbackspacegnome for an example.)
The change will take effect the next time you log in to GNOME. If you want the change to take effect immediately, restart GNOME manually. (See How do I restart GNOME without rebooting the computer?)
|
9.6.
|
How do I use spatial mode in Nautilus? |
|
In Nautilus, choose
->.
Click on the Behaviour tab.
Unselect the Always open in browser windows check box.
Close and reopen Nautilus.
|
9.7.
|
How do I show hidden files and folders in
Nautilus?
|
|
In Nautilus, use the Ctrl-H shortcut keys to toggle hidden files and folders on and off.
To permanently show all hidden files and folders, choose ->.
Click on the Views tab.
Select the Show hidden and backup files check box.
|
9.8.
|
How can I browse files and folders as root user in Nautilus
?
|
|
-
Start a new desktop configuration file in the /usr/share/applications directory.
sudo gedit /usr/share/applications/Nautilus-root.desktop
A blank file called Nautilus-root.desktop opens in gedit.
-
Add the following lines to the new file:
[Desktop Entry]
Name=File Browser (Root)
Comment=Browse the filesystem with the file manager
Exec=gksudo "nautilus --browser %U"
Icon=file-manager
Terminal=false
Type=Application
Categories=Application;System;
Save the file and close gedit. (See sample/Nautilus-root.desktop_browsefilesfoldersasrootnautilus for an example.)
To start Nautilus as the root user, choose
->->
|
9.9.
|
How can I view remote SSH, FTP, and SFTP
servers using Nautilus?
|
|
Make sure the Nautilus Location Bar is open. Toggle the bar on and off with
->
-
In the Location Bar, enter the following:
For SSH, use:
ssh://[email protected]
For FTP, use:
ftp://[email protected]
For SFTP, use:
sftp://[email protected]
Replace username with your username and replace everything after the @ symbol with the server's address. You will be prompted for a password if needed. If there is no username (anonymous) omit the username and the @ symbol.
Alternatively, to specify your password manually, change one of the above like so:
ftp://username:[email protected]
|
9.10.
|
How can I show the Computer, Home, and Trash desktop icons in GNOME?
|
|
|
9.11.
|
How do I change the default file type "Open with" program? |
|
In Nautilus, right click on the file and choose
from the menu that appears. The Properties dialog opens.
Click on the Open With tab. A list of applications appears.
Select the default application you want for the file type. If the application is not on the list, use the Add button to add the application to the list.
|
9.12.
|
How can I change my preferred email client to Mozilla Thunderbird? |
|
|
9.13.
|
How do I open files as root user via right click? |
|
-
gedit $HOME/.gnome2/nautilus-scripts/Open\ as\ root
-
Insert the following lines into the new file
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gnome-sudo "gnome-open $uri" &
done
Save the edited file (sample/Open-as-root_openfilesasrootviarightclick)
-
chmod +x $HOME/.gnome2/nautilus-scripts/Open\ as\ root
Right click on the file and ->
|
9.14.
|
How do I disable beep sound in Terminal mode? |
|
Start a Terminal
session,
select:
->->
from the desktop menu system.
->
.Select the
General tab. Uncheck the
Terminal bell
checkbox.
|
9.15.
|
How do I load Web site faster in Mozilla Firefox? |
|
->->
In the Navigation
toolbar
URL field enter
about:config
.
-
Use the Filter field to
change the following parameters:
network.dns.disableIPv6
- Set the Value
parameter to
true .
network.http.pipelining
- Set the Value
parameter to
true .
network.http.pipelining.maxrequests
- Set the Value
parameter to 8 .
network.http.proxy.pipelining
- Set the Value
parameter to
true .
Restart Mozilla Firefox
|
9.16.
|
How do I disable beep sound for link find function in
Mozilla Firefox?
|
|
->->
-
Mozilla Firefox
Address Bar -> about:config
Filter: -> accessibility.typeaheadfind.enablesound ->
false
Restart Mozilla Firefox
|
9.17.
|
How do I restore the original icons for Mozilla Firefox? |
|
-
wget -c https://frankandjacq.com/ubuntuguide/mozilla-firefox.png
wget -c https://frankandjacq.com/ubuntuguide/document.png
chmod 644 mozilla-firefox.png
chmod 644 document.png
sudo dpkg-divert --rename /usr/share/pixmaps/mozilla-firefox.png
sudo dpkg-divert --rename /usr/share/pixmaps/mozilla-firefox.xpm
sudo dpkg-divert --rename /usr/lib/mozilla-firefox/icons/default.xpm
sudo dpkg-divert --rename /usr/lib/mozilla-firefox/icons/document.png
sudo dpkg-divert --rename /usr/lib/mozilla-firefox/chrome/icons/default/default.xpm
sudo cp mozilla-firefox.png /usr/share/pixmaps/mozilla-firefox.png
sudo cp mozilla-firefox.png /usr/share/pixmaps/mozilla-firefox.xpm
sudo cp mozilla-firefox.png /usr/lib/mozilla-firefox/icons/default.xpm
sudo cp document.png /usr/lib/mozilla-firefox/icons/document.png
sudo cp mozilla-firefox.png /usr/lib/mozilla-firefox/chrome/icons/default/default.xpm
Read How do I restart GNOME without rebooting the computer?
|
9.18.
|
How do I restore the original icons for Mozilla Thunderbird? |
|
-
wget -c https://frankandjacq.com/ubuntuguide/mozilla-thunderbird.xpm
chmod 644 mozilla-thunderbird.xpm
sudo dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird.xpm
sudo dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird-menu.xpm
sudo dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird-pm-menu.xpm
sudo dpkg-divert --rename /usr/lib/mozilla-thunderbird/chrome/icons/default/mozilla-thunderbird.xpm
sudo dpkg-divert --rename /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow16.xpm
sudo dpkg-divert --rename /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow.xpm
sudo dpkg-divert --rename /usr/lib/mozilla-thunderbird/chrome/icons/default/default.xpm
sudo cp mozilla-thunderbird.xpm /usr/share/pixmaps/mozilla-thunderbird.xpm
sudo cp mozilla-thunderbird.xpm /usr/share/pixmaps/mozilla-thunderbird-menu.xpm
sudo cp mozilla-thunderbird.xpm /usr/share/pixmaps/mozilla-thunderbird-pm-menu.xpm
sudo cp mozilla-thunderbird.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/mozilla-thunderbird.xpm
sudo cp mozilla-thunderbird.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow16.xpm
sudo cp mozilla-thunderbird.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow.xpm
sudo cp mozilla-thunderbird.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/default.xpm
Read How do I restart GNOME without rebooting the computer?
|
9.19.
|
How do I install/uninstall .deb file? |
|
-
To install .deb file
sudo dpkg -i package_file.deb
-
To uninstall .deb file
sudo dpkg -r package_name
|
9.20.
|
How do I convert .rpm file to .deb file? |
|
-
sudo alien package_file.rpm
|
9.21.
|
How do I rename all files in a directory at once? |
|
|
9.22.
|
How do I set system-wide environment variables? |
|
-
sudo cp /etc/bash.bashrc /etc/bash.bashrc_backup
sudo gedit /etc/bash.bashrc
Append the System-wide Environment Variables
at the end of file
Save the edited file
|
9.23.
|
How do I save “man” outputs into file? |
|
-
man command | col -b > file.txt
|
9.24.
|
How do I generate MD5 checksum file? |
|
-
md5sum file.iso > file.iso.md5
|
9.25.
|
How do I check MD5 checksum of files? |
|
Assuming that file.iso
and file.iso.md5 are in the
same folder.
-
md5sum -c file.iso.md5
|
9.26.
|
How do I mount/unmount Image (ISO) files without burning? |
|
-
To mount Image (ISO) file
sudo mkdir /media/iso
sudo modprobe loop
sudo mount file.iso /media/iso/ -t iso9660 -o loop
-
To unmount Image (ISO) file
sudo umount /media/iso/
|
9.27.
|
How do I change the timeout seconds for GRUB menu on boot-up? |
|
-
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
sudo gedit /boot/grub/menu.lst
-
Find this line
...
timeout 3
...
-
Replace with the following line
timeout X_seconds
Save the edited file (sample/menu.list_increasedecreasetimeoutgrub)
|
9.28.
|
How do I change default Operating System boot-up for GRUB menu? |
|
-
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
sudo gedit /boot/grub/menu.lst
-
Find this line
...
default 0
...
-
Replace with the following line
default X_sequence
Save the edited file (sample/menu.list_changedefaultosgrub)
|
9.29.
|
How do I temporary skip boot-up services? |
|
|
9.30.
|
How do I permanently disable/enable boot-up services? |
|
Run Services Settings:
->->.
Ubuntu will ask for your password, enter it.
Tick/untick the services you want running, then click OK when done.
|
9.31.
|
How do I clean /tmp/ folder contents on shutdown? |
|
-
sudo cp /etc/init.d/sysklogd /etc/init.d/sysklogd_backup
sudo gedit /etc/init.d/sysklogd
-
Find this section
...
stop)
log_begin_msg "Stopping system log daemon..."
start-stop-daemon --stop --quiet --oknodo --exec $binpath --pidfile $pidfile
log_end_msg $?
...
-
Add the following line below it
rm -fr /tmp/* /tmp/.??*
Save the edited file (sample/sysklogd_cleantmpfoldershutdown)
|