
Revision: 4.14 (Last updated on 10th July 2005) - Changelog
URL: http://www.ubuntuguide.org
Author: Chua Wen Kiat (Kuala Lumpur, Malaysia)
Copyright (C) 2004-2005 Chua Wen Kiat.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Q: Where to view Ubuntu screenshots?
Q: Where to find a list of all the programs/libraries that comes with Ubuntu?
Q: Where to order Ubuntu CDs for absolutely FREE?
Q: Where to find help for Ubuntu?
Q: How to download this entire UbuntuGuide?
wget -c http://ubuntuguide.org/ubuntu5.04.tar.gz tar zxvf ubuntu5.04.tar.gz
Q: How to add extra repositories?
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup sudo gedit /etc/apt/sources.list
... ## Uncomment the following two lines to fetch updated software from the network # deb http://us.archive.ubuntu.com/ubuntu hoary main restricted # deb-src http://us.archive.ubuntu.com/ubuntu hoary main restricted ## Uncomment the following two lines to fetch major bug fix updates produced ## after the final release of the distribution. # deb http://us.archive.ubuntu.com/ubuntu hoary-updates main restricted # deb-src http://us.archive.ubuntu.com/ubuntu hoary-updates main restricted ## Uncomment the following two lines to add software from the 'universe' ## repository. ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## universe WILL NOT receive any review or updates from the Ubuntu security ## team. # deb http://us.archive.ubuntu.com/ubuntu hoary universe # deb-src http://us.archive.ubuntu.com/ubuntu hoary universe # deb http://security.ubuntu.com/ubuntu hoary-security main restricted # deb-src http://security.ubuntu.com/ubuntu hoary-security main restricted # deb http://security.ubuntu.com/ubuntu hoary-security universe # deb-src http://security.ubuntu.com/ubuntu hoary-security universe
## Uncomment the following two lines to fetch updated software from the network deb http://us.archive.ubuntu.com/ubuntu hoary main restricted deb-src http://us.archive.ubuntu.com/ubuntu hoary main restricted ## Uncomment the following two lines to fetch major bug fix updates produced ## after the final release of the distribution. deb http://us.archive.ubuntu.com/ubuntu hoary-updates main restricted deb-src http://us.archive.ubuntu.com/ubuntu hoary-updates main restricted ## Uncomment the following two lines to add software from the 'universe' ## repository. ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## universe WILL NOT receive any review or updates from the Ubuntu security ## team. deb http://us.archive.ubuntu.com/ubuntu hoary universe deb-src http://us.archive.ubuntu.com/ubuntu hoary universe deb http://security.ubuntu.com/ubuntu hoary-security main restricted deb-src http://security.ubuntu.com/ubuntu hoary-security main restricted deb http://security.ubuntu.com/ubuntu hoary-security universe deb-src http://security.ubuntu.com/ubuntu hoary-security universe deb http://archive.ubuntu.com/ubuntu hoary multiverse deb-src http://archive.ubuntu.com/ubuntu hoary multiverse ## Backports deb http://ubuntu-backports.mirrormax.net/ hoary-backports main universe multiverse restricted deb http://ubuntu-backports.mirrormax.net/ hoary-extras main universe multiverse restricted
sudo apt-get update
Q: How to backup/restore downloaded repositories cache?
sudo tar zcvf apt.tgz /etc/apt/ /var/lib/apt/ /var/cache/apt/
sudo tar zxvf apt.tgz -C /
Q: How to manually update Ubuntu?
sudo apt-get update sudo apt-get upgrade
Q: How to install Menu Editor for GNOME?
sudo apt-get install smeg
Q: How to install Clipboard Daemon for GNOME?
wget -c http://frankandjacq.com/ubuntuguide/gnome-clipboard-daemon-1.0.bin.tar.bz2 sudo tar jxvf gnome-clipboard-daemon-1.0.bin.tar.bz2 -C /usr/bin/ sudo chown root:root /usr/bin/gnome-clipboard-daemon sudo chmod 755 /usr/bin/gnome-clipboard-daemon sudo gnome-clipboard-daemon &
Startup Programs Tab -> Add Startup Command: gnome-clipboard-daemon Order: 80
Q: How to install J2SE Runtime Environment (JRE) with Plug-in for Mozilla Firefox?
sudo apt-get install sun-j2re1.5 java -version
Q: How to install Flash Player (Macromedia Flash) Plug-in for Mozilla Firefox?
sudo apt-get install flashplayer-mozilla
Q: How to install PDF Reader (Adobe Reader) with Plug-in for Mozilla Firefox?
sudo apt-get install acroread sudo apt-get install mozilla-acroread sudo apt-get install acroread-plugins
Q: How to install Download Manager (Downloader for X)?
sudo apt-get install d4x
Q: How to install FTP Client (gFTP)?
sudo apt-get install gftp
Q: How to install P2P BitTorrent Client (Azureus)?
sudo apt-get install azureus
Q: How to install P2P eMule Client (aMule)?
sudo apt-get install amule
Q: How to install P2P Gnutella Client (LimeWire)?
wget -c http://frankandjacq.com/ubuntuguide/LimeWireSoftOther.zip sudo unzip -u LimeWireSoftOther.zip -d /opt/ sudo chown -R root:root /opt/LimeWire/ sudo gedit /usr/bin/runLime.sh
cd /opt/LimeWire/ ./runLime.sh
sudo chmod +x /usr/bin/runLime.sh sudo gedit /usr/share/applications/LimeWire.desktop
[Desktop Entry] Name=LimeWire Comment=LimeWire Exec=runLime.sh Icon=/opt/LimeWire/LimeWire.ico Terminal=false Type=Application Categories=Application;Network;
Q: How to install Messenger (Skype)?
sudo apt-get install libqt3c102-mt wget -c http://frankandjacq.com/ubuntuguide/skype_1.1.0.20-1_i386.deb sudo dpkg -i skype_1.1.0.20-1_i386.deb
Q: How to install WinPopup (LinPopUp)?
sudo apt-get install linpopup sudo gedit /usr/share/applications/linpopup.desktop
[Desktop Entry] Name=LinPopUp Comment=LinPopUp Exec=linpopup Icon=/usr/share/pixmaps/linpopup.xpm Terminal=false Type=Application Categories=Application;Utility;
Q: How to install Multimedia Codecs?
sudo apt-get install gstreamer0.8-plugins sudo apt-get install gstreamer0.8-lame sudo apt-get install gstreamer0.8-ffmpeg sudo apt-get install w32codecs sudo apt-get install libdivx4linux sudo apt-get install lame sudo apt-get install sox sudo apt-get install ffmpeg sudo apt-get install mjpegtools sudo apt-get install vorbis-tools gst-register-0.8
Q: How to install DVD playback capability?
sudo apt-get install libdvdcss2
Q: How to install Multimedia Player (xine-ui)?
sudo apt-get install xine-ui
gconftool-2 --type string --set /desktop/gnome/volume_manager/autoplay_dvd_command "xine dvd://" sudo rm -f /usr/share/applnk/Multimedia/xine.desktop sudo ln -fs /usr/share/xine/desktop/xine.desktop /usr/share/applications/ sudo cp /usr/share/applications/defaults.list /usr/share/applications/defaults.list_backup sudo sed -e 's/totem.desktop/xine.desktop/g' /usr/share/applications/defaults.list_backup > /tmp/defaults.list sudo mv /tmp/defaults.list /usr/share/applications/defaults.list
Q: How to install Multimedia Player (MPlayer) with Plug-in for Mozilla Firefox?
sudo apt-get install mplayer-386 sudo apt-get install mplayer-fonts sudo apt-get install mozilla-mplayer sudo cp /etc/mplayer/mplayer.conf /etc/mplayer/mplayer.conf_backup sudo gedit /etc/mplayer/mplayer.conf
... vo=x11, # To specify default video driver (see -vo help for ...
vo=xv, # To specify default video driver (see -vo help for
Q: How to install Multimedia Player (XMMS)?
sudo apt-get install xmms wget -c http://frankandjacq.com/ubuntuguide/xmms-wma_1.0.4-2_i386.deb sudo dpkg -i xmms-wma_1.0.4-2_i386.deb
sudo cp /usr/share/applications/defaults.list /usr/share/applications/defaults.list_backup sudo cp /usr/share/applications/defaults.list /tmp/defaults.list_tmp sudo sed -e 's/audio\/mpeg=.*/audio\/mpeg=XMMS.desktop/g' /tmp/defaults.list_tmp > /tmp/defaults.mp3 sudo sed -e 's/audio\/x-mpegurl=.*/audio\/x-mpegurl=XMMS.desktop/g' /tmp/defaults.mp3 > /tmp/defaults.m3u sudo sed -e 's/audio\/x-wav=.*/audio\/x-wav=XMMS.desktop/g' /tmp/defaults.m3u > /tmp/defaults.list sudo mv /tmp/defaults.list /usr/share/applications/defaults.list sudo rm -f /tmp/defaults.*
Q: How to install Multimedia Player (RealPlayer)?
sudo apt-get install realplayer
Q: How to install Stream Directory Browser (streamtuner)?
sudo apt-get install streamtuner sudo apt-get install streamripper
Q: How to install ID3 Tag Editor (EasyTAG)?
sudo apt-get install easytag
Q: How to install Video Editor (Kino)?
sudo apt-get install kino sudo apt-get install kinoplus sudo apt-get install kino-timfx sudo apt-get install kino-dvtitler
Q: How to install Audio Editor (Audacity)?
sudo apt-get install audacity
Q: How to install DVD Ripper (dvd::rip)?
sudo apt-get install dvdrip sudo apt-get install vcdimager sudo apt-get install cdrdao sudo apt-get install subtitleripper sudo ln -fs /usr/bin/rar /usr/bin/rar-2.80 sudo gedit /usr/share/applications/dvdrip.desktop
[Desktop Entry] Name=dvd::rip Comment=dvd::rip Exec=dvdrip Icon=/usr/share/perl5/Video/DVDRip/icon.xpm Terminal=false Type=Application Categories=Application;AudioVideo;
Q: How to install CD Ripper (Goobox)?
sudo apt-get install goobox sudo rm -f /usr/share/applications/goobox.desktop sudo gedit /usr/share/applications/goobox.desktop
[Desktop Entry] Name=CD Player & Ripper Comment=Play and extract CDs Exec=goobox Icon=goobox.png Terminal=false Type=Application Categories=Application;AudioVideo;
Q: How to install Email Client (Mozilla Thunderbird)?
sudo apt-get install mozilla-thunderbird
Q: How to install Newsreader (Pan)?
sudo apt-get install pan
Q: How to install RSS/RDF/Atom Newsreader (RSSOwl)?
wget -c http://frankandjacq.com/ubuntuguide/rssowl_linux_1_1_2_bin.tar.gz sudo tar zxvf rssowl_linux_1_1_2_bin.tar.gz -C /opt/ sudo chown -R root:root /opt/rssowl_linux_1_1_2_bin/ sudo gedit /usr/bin/runRSSOwl.sh
export MOZILLA_FIVE_HOME=/usr/lib/mozilla-firefox
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${MOZILLA_FIVE_HOME}:${LD_LIBRARY_PATH}
cd /opt/rssowl_linux_1_1_2_bin/
./run.shsudo chmod +x /usr/bin/runRSSOwl.sh sudo gedit /usr/share/applications/RSSOwl.desktop
[Desktop Entry] Name=RSSOwl Comment=RSSOwl Exec=runRSSOwl.sh Icon=/opt/rssowl_linux_1_1_2_bin/rssowl.xpm Terminal=false Type=Application Categories=Application;Network;
Q: How to install Web Authoring System (Nvu)?
sudo apt-get install nvu sudo rm -f /usr/share/applications/nvu.desktop sudo gedit /usr/share/applications/nvu.desktop
[Desktop Entry] Name=Nvu Comment=Web Development Editor Exec=nvu Icon=nvu.xpm Terminal=false Type=Application Categories=Application;Network;
Q: How to install Project Management Application (Planner)?
sudo apt-get install planner
Q: How to install Accounting Application (GnuCash)?
sudo apt-get install gnucash sudo rm -fr /usr/share/gnome/apps/Applications/ sudo gedit /usr/share/applications/GnuCash.desktop
[Desktop Entry] Name=GnuCash Comment=GnuCash Personal Finance Exec=gnucash Icon=/usr/share/pixmaps/gnucash/gnucash-icon.png Terminal=false Type=Application Categories=Application;Office;
Q: How to install Desktop Publishing Application (Scribus)?
sudo apt-get install scribus
Q: How to install Diagram Editor (Dia)?
sudo apt-get install dia-gnome
Q: How to install CD/DVD Burning Application (GnomeBaker)?
sudo apt-get install gnomebaker
Q: How to install Dialup PPP Client (GNOME PPP)?
sudo apt-get install gnome-ppp
Q: How to install Broadband ADSL/PPPoE Client (RP-PPPoE)?
wget -c http://frankandjacq.com/ubuntuguide/rp-pppoe-3.5.tar.gz sudo tar zxvf rp-pppoe-3.5.tar.gz -C /opt/ sudo chown -R root:root /opt/rp-pppoe-3.5/ sudo gedit /usr/share/applications/RP-PPPoE.desktop
[Desktop Entry] Name=RP-PPPoE Comment=RP-PPPoE Exec=gksudo /opt/rp-pppoe-3.5/go-gui Icon= Terminal=false Type=Application Categories=Application;Network;
Q: How to install Boot-Up Manager (BUM)?
wget -c http://frankandjacq.com/ubuntuguide/bum_1.3.0-1_all.deb sudo dpkg -i bum_1.3.0-1_all.deb
Q: How to install Partition Editor (GParted)?
sudo apt-get install gparted
Q: How to install Firewall (Firestarter)?
sudo apt-get install firestarter
Q: How to install Vulnerability Scanner (Nessus)?
sudo apt-get install nessus sudo apt-get install nessusd sudo nessus-adduser sudo ln -fs /etc/init.d/nessusd /etc/rc2.d/S20nessusd sudo /etc/init.d/nessusd start sudo gedit /usr/share/applications/Nessus.desktop
[Desktop Entry] Name=Nessus Comment=Nessus Exec=nessus Icon=/usr/share/pixmaps/nessus.xpm Terminal=false Type=Application Categories=Application;System;
Q: How to install RAR Archiver (rar)?
sudo apt-get install rar sudo ln -fs /usr/bin/rar /usr/bin/unrar
Q: How to install Extra Fonts?
sudo apt-get install xfonts-intl-arabic sudo apt-get install xfonts-intl-asian sudo apt-get install xfonts-intl-chinese sudo apt-get install xfonts-intl-chinese-big sudo apt-get install xfonts-intl-european sudo apt-get install xfonts-intl-japanese sudo apt-get install xfonts-intl-japanese-big sudo apt-get install xfonts-intl-phonetic sudo apt-get install gsfonts-x11 sudo apt-get install msttcorefonts sudo fc-cache -f -v sudo cp /etc/fonts/local.conf /etc/fonts/local.conf_backup sudo gedit /etc/fonts/local.conf
...
<!-- Uncomment below to enable the freetype autohinter module -->
<!--
<match target="font">
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
</match>
-->
...
<match target="font">
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
</match>Q: How to install Chinese Input Method (SCIM)?
sudo apt-get install scim sudo apt-get install scim-chinese sudo apt-get install scim-config-socket sudo apt-get install scim-gtk2-immodule sudo apt-get install scim-tables-zh wget -c http://frankandjacq.com/ubuntuguide/fireflysung-1.3.0.tar.gz sudo tar zxvf fireflysung-1.3.0.tar.gz -C /usr/share/fonts/truetype/ sudo chown -R root:root /usr/share/fonts/truetype/fireflysung-1.3.0/ sudo fc-cache -f -v
Press 'Ctrl + Space'
Q: How to install Desktop Applets (gDesklets)?
sudo apt-get install gdesklets sudo apt-get install gdesklets-data
Q: How to install Game (Frozen-Bubble)?
sudo apt-get install frozen-bubble
Q: How to install Basic Compilers (build-essential)?
sudo apt-get install build-essential
Q: How to install Windows 9X/ME/2000/XP (Win4Lin)?
Q: How to install Windows Applications (CrossOver Office)?
Q: How to install Windows Games (Cedega)?
Q: How to set/change/enable root user password?
sudo passwd root
Q: How to disable root user account?
sudo passwd -l root
Q: How to allow root user to login into GNOME?
Security Tab -> Options -> Allow root to login with GDM (Checked)
Q: How to switch to root user in Terminal mode?
sudo -s -H Password: <specify user password>
Q: How to add/edit/delete system users?
Users Tab -> Add User.../Properties/Delete
Q: How to add/edit/delete system groups?
Groups Tab -> Add Group.../Properties/Delete
Q: How to automatic login into GNOME (not secure)?
General Tab -> Automatic Login -> Login a user automatically on first bootup (Checked) Automatic login username: Select "system_username"
export EDITOR=gedit && sudo visudo
system_username ALL=(ALL) ALL
Q: How to use "sudo" without prompt for password (not secure)?
export EDITOR=gedit && sudo visudo
... system_username ALL=(ALL) ALL ...
system_username ALL=(ALL) NOPASSWD: ALL
Q: How to explicitly destroy the "sudo" session?
sudo -K
Q: How to change files/folders permissions?
Right click on files/folders -> Properties Permissions Tab -> Read/Write/Execute (Checked the permissions for Owner/Group/Others)
Q: How to change files/folders ownership?
sudo chown system_username /location_of_files_or_folders
Q: How to change files/folders group ownership?
sudo chgrp system_groupname /location_of_files_or_folders
Q: How to install Graphics Driver (NVIDIA)?
sudo apt-get install nvidia-glx sudo apt-get install nvidia-settings sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup sudo nvidia-glx-config enable sudo gedit /usr/share/applications/NVIDIA-Settings.desktop
[Desktop Entry] Name=NVIDIA Settings Comment=NVIDIA Settings Exec=nvidia-settings Icon= Terminal=false Type=Application Categories=Application;System;
Q: How to disable NVIDIA graphics logo on GNOME startup?
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup sudo gedit /etc/X11/xorg.conf
... Section "Device" Identifier "NVIDIA Corporation NV11 [GeForce2 MX/MX 400]" Driver "nvidia" BusID "PCI:1:0:0" ...
Option "NoLogo"Q: How to identify Modem chipset?
wget -c http://frankandjacq.com/ubuntuguide/scanModem.gz gunzip -c scanModem.gz > scanModem chmod +x scanModem sudo cp scanModem /usr/bin/
sudo scanModem gedit Modem/ModemData.txt
Q: How to install Modem Driver (SmartLink)?
uname -r (must be 2.6.10-5-386) wget -c http://frankandjacq.com/ubuntuguide/sl-modem-modules-2.6.10-5-386_2.9.9a-1ubuntu2+2.6.10-34_i386.deb sudo dpkg -i sl-modem-modules-*.deb sudo apt-get install sl-modem-daemon
Q: How to configure PalmOS Devices?
sudo gedit /etc/udev/rules.d/10-custom.rules
BUS="usb", SYSFS{product}="Palm Handheld*", KERNEL="ttyUSB*", NAME{ignore_remove}="pilot", MODE="666"Q: How to list partition tables?
sudo fdisk -l
Q: How to list filesystem disk space usage?
df -T -h
Q: How to list mounted devices?
mount
lspci
lsusb
Q: How to speed up CD/DVD-ROM?
e.g. Assumed that /dev/cdrom is the location of CD/DVD-ROM
sudo hdparm -d1 /dev/cdrom sudo cp /etc/hdparm.conf /etc/hdparm.conf_backup sudo gedit /etc/hdparm.conf
/dev/cdrom {
dma = on
}Q: How to mount/unmount CD/DVD-ROM manually, and show all hidden and associated files/folders?
e.g. Assumed that /media/cdrom0/ is the location of CD/DVD-ROM
sudo mount /media/cdrom0/ -o unhide
sudo umount /media/cdrom0/
Q: How to forcefully unmount CD/DVD-ROM manually?
e.g. Assumed that /media/cdrom0/ is the location of CD/DVD-ROM
sudo umount /media/cdrom0/ -l
Q: How to remount /etc/fstab without rebooting?
sudo mount -a
e.g. Assumed that /dev/cdrom is the location of CD/DVD-ROM
sudo umount /dev/cdrom cdrecord dev=/dev/cdrom blank=fast
Q: How to burn files/folders into CD/DVD?
nautilus burn:///
Drag files/folders into window File Menu -> Write to Disc... -> Write
Q: How to burn Image (ISO) files into CD/DVD?
Right click on Image (ISO) file -> Write to Disc... -> Write
Q: How to create Image (ISO) files from CD/DVD?
e.g. Assumed that /dev/cdrom is the location of CD/DVD-ROM
sudo umount /dev/cdrom dd if=/dev/cdrom of=file.iso bs=1024
Q: How to create Image (ISO) files from folders?
mkisofs -o file.iso /location_of_folder/
Q: How to generate MD5 checksum files?
md5sum file.iso > file.iso.md5
Q: How to check MD5 checksum of files?
e.g. Assumed that file.iso and file.iso.md5 are in the same folder
md5sum -c file.iso.md5
Q: How to mount/unmount Image (ISO) files without burning?
sudo mkdir /media/iso sudo modprobe loop sudo mount file.iso /media/iso/ -t iso9660 -o loop
sudo umount /media/iso/
Q: How to set/change the burn speed for CD/DVD Burner?
/ -> apps -> nautilus-cd-burner -> default_speed (set/change the burn speed)
Q: How to enable burnproof for CD/DVD Burner?
/ -> apps -> nautilus-cd-burner -> burnproof (Checked)
Q: How to enable overburn for CD/DVD? Burner?
/ -> apps -> nautilus-cd-burner -> overburn (Checked)
Q: How to activate/deactivate network connections?
Connections Tab -> Select "Ethernet connection" -> Activate/Deactivate
Q: How to configure network connections?
Connections Tab -> Select "Ethernet connection" -> Properties Connection -> This device is configured (Checked) Connection Settings -> Configuration: Select "DHCP/Static IP address" DNS Tab -> DNS Servers -> Add/Delete
Q: How to configure dialup connections?
sudo pppconfig
sudo pon provider_name
sudo poff
Q: How to configure broadband connections?
sudo pppoeconf
Q: How to change computer name?
General Tab -> Host Settings -> Hostname: Specify the computer name
Q: How to change computer descriptions?
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
... server string = %h server (Samba, Ubuntu) ...
server string = new_computer_descriptions
sudo testparm sudo /etc/init.d/samba restart
Q: How to change computer Domain/Workgroup?
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
... workgroup = MSHOME ...
workgroup = new_domain_or_workgroup
sudo testparm sudo /etc/init.d/samba restart
Q: How to assign Hostname to local machine with dynamic IP using free DynDNS service?
e.g. Assumed that internet connections have been configured properly
Register free Dynamic DNS at https://www.dyndns.org
Automatically refresh IP in DynDNS Database/DNS every hour
* * * * * means minute hour date month yearsudo apt-get install ipcheck sudo gedit /root/dyndns_update.sh
USERNAME=myusername PASSWORD=mypassword HOSTNAME=myhostname.dyndns.org cd /root/ if [ -f /root/ipcheck.dat ]; then ipcheck -r checkip.dyndns.org:8245 $USERNAME $PASSWORD $HOSTNAME else ipcheck --makedat -r checkip.dyndns.org:8245 $USERNAME $PASSWORD $HOSTNAME fi
sudo chmod 700 /root/dyndns_update.sh sudo sh /root/dyndns_update.sh export EDITOR=gedit && sudo crontab -e
00 * * * * sudo sh /root/dyndns_update.sh
Q: How to share folders the easy way?
Right click on folder -> Share folder Shared folder -> Share with: Select "SMB" Share properties -> Name: Specify the share name
Q: How to browse network computers?
e.g. Assumed that network connections have been configured properly
If computers or network folders could not be found, try access them directly
Read How to access network folders without mounting?Q: How to access network folders without mounting?
e.g. Assumed that network connections have been configured properly
Network computer's IP: 192.168.0.1
Shared folder's name: linuxsmb://192.168.0.1/linux
Q: How to mount/unmount network folders manually, and allow all users to read?
e.g. Assumed that network connections have been configured properly
Network computer's IP: 192.168.0.1
Network computer's Username: myusername
Network computer's Password: mypassword
Shared folder's name: linux
Local mount folder: /media/sharenamesudo mkdir /media/sharename sudo mount //192.168.0.1/linux /media/sharename/ -o username=myusername,password=mypassword
sudo umount /media/sharename/
Q: How to mount/unmount network folders manually, and allow all users to read/write?
e.g. Assumed that network connections have been configured properly
Network computer's IP: 192.168.0.1
Network computer's Username: myusername
Network computer's Password: mypassword
Shared folder's name: linux
Local mount folder: /media/sharenamesudo mkdir /media/sharename sudo mount //192.168.0.1/linux /media/sharename/ -o username=myusername,password=mypassword,dmask=777,fmask=777
sudo umount /media/sharename/
Q: How to mount network folders on boot-up, and allow all users to read?
e.g. Assumed that network connections have been configured properly
Network computer's IP: 192.168.0.1
Network computer's Username: myusername
Network computer's Password: mypassword
Shared folder's name: linux
Local mount folder: /media/sharenamesudo mkdir /media/sharename sudo gedit /root/.smbcredentials
username=myusername password=mypassword
sudo chmod 700 /root/.smbcredentials sudo cp /etc/fstab /etc/fstab_backup sudo gedit /etc/fstab
//192.168.0.1/linux /media/sharename smbfs credentials=/root/.smbcredentials 0 0
Q: How to mount network folders on boot-up, and allow all users to read/write?
e.g. Assumed that network connections have been configured properly
Network computer's IP: 192.168.0.1
Network computer's Username: myusername
Network computer's Password: mypassword
Shared folder's name: linux
Local mount folder: /media/sharenamesudo mkdir /media/sharename sudo gedit /root/.smbcredentials
username=myusername password=mypassword
sudo chmod 700 /root/.smbcredentials sudo cp /etc/fstab /etc/fstab_backup sudo gedit /etc/fstab
//192.168.0.1/linux /media/sharename smbfs credentials=/root/.smbcredentials,dmask=777,fmask=777 0 0
Q: How to configure remote desktop (not secure)?
Warning! Remote Desktop will only work if there's a GNOME login session
Leaving computer with an unattended GNOME login session is not secure
Use (System -> Lock Screen) and off the monitor when computer is left unattendedSharing -> Allow other users to view your desktop (Checked) Allow other users to control your desktop (Checked) Security -> Ask you for confirmation (Un-Checked) Require the user to enter this password: (Checked) Password: Specify the password
Q: How to connect into remote Ubuntu desktop?
e.g. Assumed that remote Ubuntu machine have configured Remote Desktop
Read How to configure remote desktop (not secure)?
Remote Ubuntu machine: 192.168.0.1vncviewer -fullscreen 192.168.0.1:0
Press 'F8' -> Quit viewer
Q: How to connect into remote Ubuntu desktop via Windows machine?
e.g. Assumed that remote Ubuntu machine have configured Remote Desktop
Read How to configure remote desktop (not secure)?
Remote Ubuntu machine: 192.168.0.1Q: How to mount/unmount Windows partitions (NTFS) manually, and allow all users to read only?
e.g. Assumed that /dev/hda1 is the location of Windows partition (NTFS)
Local mount folder: /media/windowssudo mkdir /media/windows sudo mount /dev/hda1 /media/windows/ -t ntfs -o nls=utf8,umask=0222
sudo umount /media/windows/
Q: How to mount/unmount Windows partitions (FAT) manually, and allow all users to read/write?
e.g. Assumed that /dev/hda1 is the location of Windows partition (FAT)
Local mount folder: /media/windowssudo mkdir /media/windows sudo mount /dev/hda1 /media/windows/ -t vfat -o iocharset=utf8,umask=000
sudo umount /media/windows/
Q: How to mount Windows partitions (NTFS) on boot-up, and allow all users to read only?
e.g. Assumed that /dev/hda1 is the location of Windows partition (NTFS)
Local mount folder: /media/windowssudo mkdir /media/windows sudo cp /etc/fstab /etc/fstab_backup sudo gedit /etc/fstab
/dev/hda1 /media/windows ntfs nls=utf8,umask=0222 0 0
Q: How to mount Windows partitions (FAT) on boot-up, and allow all users to read/write?
e.g. Assumed that /dev/hda1 is the location of Windows partition (FAT)
Local mount folder: /media/windowssudo mkdir /media/windows sudo cp /etc/fstab /etc/fstab_backup sudo gedit /etc/fstab
/dev/hda1 /media/windows vfat iocharset=utf8,umask=000 0 0
Q: What are the basic things I need to know about securing my Ubuntu?
Q: How to disable all interactive editing control for GRUB menu?
grub grub> md5crypt Password: ****** (ubuntu) Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password) grub> quit sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup sudo gedit /boot/grub/menu.lst
... ## password ['--md5'] passwd # If used in the first section of a menu file, disable all interactive editing # control (menu entry editor and command-line) and entries protected by the # command 'lock' # e.g. password topsecret # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/ # password topsecret ...
password --md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password above)
... title Ubuntu, kernel 2.6.10-5-386 (recovery mode) root (hd0,1) kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro single initrd /boot/initrd.img-2.6.10-5-386 savedefault boot ...
#title Ubuntu, kernel 2.6.10-5-386 (recovery mode) #root (hd0,1) #kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro single #initrd /boot/initrd.img-2.6.10-5-386 #savedefault #boot
Q: How to disable history listing in Console mode?
rm -f $HOME/.bash_history touch $HOME/.bash_history chmod 000 $HOME/.bash_history
Q: How to disable Ctrl+Alt+Del from restarting computer in Console mode?
sudo cp /etc/inittab /etc/inittab_backup sudo gedit /etc/inittab
... ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now ...
#ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
sudo telinit q
Q: How to enable prompt before removal/overwritten of files/folders in Console mode?
sudo cp /etc/bash.bashrc /etc/bash.bashrc_backup sudo gedit /etc/bash.bashrc
alias rm='rm -i' alias cp='cp -i' alias mv='mv -i'
Q: How to gain root user access without login?
Ubuntu, kernel 2.6.10-5-386 (recovery mode)
Q: How to modify kernel boot-up arguments, to gain root user access?
Ubuntu, kernel 2.6.10-5-386
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro quiet splash
grub edit> kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro quiet splash rw init=/bin/bash
Q: How to use Ubuntu Installation CD, to gain root user access?
boot: rescue
Q: How to change root user/main user password if forgotten?
# passwd root
# passwd system_main_username
Q: How to change GRUB menu password if forgotten?
grub grub> md5crypt Password: ****** (ubuntu) Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password) grub> quit sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup sudo gedit /boot/grub/menu.lst
... password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/ ...
password --md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password above)
Q: How to restore GRUB menu after Windows installation?
e.g. Assumed that /dev/hda is the location of /boot partition
# grub-install /dev/hda
Q: How to add Windows entry into GRUB menu?
e.g. Assumed that /dev/hda1 is the location of Windows partition
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup sudo gedit /boot/grub/menu.lst
title Microsoft Windows root (hd0,0) savedefault makeactive chainloader +1
Q: How to read Linux partitions (ext2, ext3) in Windows machine?
Q: How to restart GNOME without rebooting computer?
Press 'Ctrl + Alt + Backspace'or
sudo /etc/init.d/gdm restart
Q: How to turn on Num Lock on GNOME startup?
sudo apt-get install numlockx sudo cp /etc/X11/gdm/Init/Default /etc/X11/gdm/Init/Default_backup sudo gedit /etc/X11/gdm/Init/Default
... exit 0
if [ -x /usr/bin/numlockx ]; then /usr/bin/numlockx on fi
Q: How to run programs on startup when login into GNOME?
Startup Programs Tab -> Add/Edit/Delete
Q: How to switch to Console mode in GNOME?
Press 'Ctrl + Alt + F1' (F2 - F6)
Press 'Ctrl + Alt + F7'
Q: How to disable Ctrl+Alt+Backspace from restarting X in GNOME?
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup sudo gedit /etc/X11/xorg.conf
Section "ServerFlags" Option "DontZap" "yes" EndSection
Q: How to enable Ctrl+Alt+Del to open System Monitor in GNOME?
gconftool-2 -t str --set /apps/metacity/global_keybindings/run_command_9 "<Control><Alt>Delete" gconftool-2 -t str --set /apps/metacity/keybinding_commands/command_9 "gnome-system-monitor"
Q: How to refresh GNOME desktop?
killall nautilus
Q: How to refresh GNOME panel?
killall gnome-panel
Q: How to open each folder in the same window in Nautilus?
/ -> apps -> nautilus -> preferences -> always_use_browser (Checked)
Press 'Ctrl + H'
Edit Menu -> Preferences Views Tab -> Default View -> Show hidden and backup files (Checked)
Q: How to browse files/folders as root user in Nautilus?
sudo gedit /usr/share/applications/Nautilus-root.desktop
[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;
Q: How to show Desktop Icons (Computer, Home, Trash)?
/ -> apps -> nautilus -> desktop -> computer_icon_visible (Checked) home_icon_visible (Checked) trash_icon_visible (Checked)
Q: How to change default file type "Open with" program?
Right click on file -> Properties Open With Tab -> Add Select "Open with" program Select "Open with" program (Checked)
Q: How to change preferred email client to Mozilla Thunderbird?
Mail Reader Tab -> Default Mail Reader -> Command: mozilla-thunderbird %s
Q: How to open files as root user via right click?
gedit $HOME/.gnome2/nautilus-scripts/Open\ as\ root
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do gnome-sudo "gnome-open $uri" & done
chmod +x $HOME/.gnome2/nautilus-scripts/Open\ as\ root
Right click on file -> Scripts -> Open as root
Q: How to disable beep sound in Terminal mode?
Edit Menu -> Current Profile... General Tab -> General -> Terminal bell (Un-Checked)
Q: How to load Web site faster in Mozilla Firefox?
Address Bar -> about:config Filter: -> network.dns.disableIPv6 -> true network.http.pipelining -> true network.http.pipelining.maxrequests -> 8 network.http.proxy.pipelining -> true
Q: How to disable beep sound for link find function in Mozilla Firefox?
Address Bar -> about:config Filter: -> accessibility.typeaheadfind.enablesound -> false
Q: How to restore the original icons for Mozilla Firefox?
wget -c http://frankandjacq.com/ubuntuguide/mozilla-firefox.png wget -c http://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