
Revisão: 2.00 (última atualização em 18 de maio de 2005) - Changelog
URL:
http://www.ubuntuguide.org
Autor: Chua Wen Kiat (Kuala Lumpur, Malaysia)
Copyright (C) 2004-2005 Chua Wen Kiat.
Este programa é um software livre; você pode redistribuí-lo e/ou modificá-lo sob os termos da GNU General Public License como publicado pela Free Software Foundation; versão 2 da licença, ou (em sua opção) alguma versão mais antiga.
Este programa é distribuído na esperança de que seja útil, mas SEM QUALQUER GARANTIA; sem mesmo a garantia implícita de MERCHANDISING ou APTIDÃO PARA UMA FINALIDADE PARTICULAR. Veja a GNU General Public License para mais detalhes.
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: Como download this entire UbuntuGuide?
wget -c http://ubuntuguide.org/ubuntu5.04.tar.gz tar zxvf ubuntu5.04.tar.gz
Q: Where to download Unofficial Ubuntu Add-On CD?
Q: Como add extra repositories?
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup sudo gedit /etc/apt/sources.list
... # deb [WWW] http://us.archive.ubuntu.com/ubuntu hoary main restricted # deb-src [WWW] http://us.archive.ubuntu.com/ubuntu hoary main restricted # deb [WWW] http://us.archive.ubuntu.com/ubuntu hoary-updates main restricted # deb-src [WWW] http://us.archive.ubuntu.com/ubuntu hoary-updates main restricted # deb [WWW] http://us.archive.ubuntu.com/ubuntu hoary universe # deb-src [WWW] http://us.archive.ubuntu.com/ubuntu hoary universe # deb [WWW] http://security.ubuntu.com/ubuntu hoary-security main restricted # deb-src [WWW] http://security.ubuntu.com/ubuntu hoary-security main restricted # deb [WWW] http://security.ubuntu.com/ubuntu hoary-security universe # deb-src [WWW] http://security.ubuntu.com/ubuntu hoary-security universe
deb [WWW] http://us.archive.ubuntu.com/ubuntu hoary main restricted deb-src [WWW] http://us.archive.ubuntu.com/ubuntu hoary main restricted deb [WWW] http://us.archive.ubuntu.com/ubuntu hoary-updates main restricted deb-src [WWW] http://us.archive.ubuntu.com/ubuntu hoary-updates main restricted deb [WWW] http://us.archive.ubuntu.com/ubuntu hoary universe deb-src [WWW] http://us.archive.ubuntu.com/ubuntu hoary universe deb [WWW] http://security.ubuntu.com/ubuntu hoary-security main restricted deb-src [WWW] http://security.ubuntu.com/ubuntu hoary-security main restricted deb [WWW] http://security.ubuntu.com/ubuntu hoary-security universe deb-src [WWW] http://security.ubuntu.com/ubuntu hoary-security universe deb [WWW] http://archive.ubuntu.com/ubuntu hoary multiverse deb-src [WWW] http://archive.ubuntu.com/ubuntu hoary multiverse deb [WWW] ftp://ftp.nerim.net/debian-marillat stable main deb [WWW] ftp://ftp.nerim.net/debian-marillat unstable main deb [WWW] ftp://ftp.nerim.net/debian-marillat testing main
gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 1F41B907 gpg --armor --export 1F41B907 | sudo apt-key add - sudo apt-get update
Q: Como add backports repositories (optional)?
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup sudo gedit /etc/apt/sources.list
deb [WWW] http://backports.ubuntuforums.org/ubp hoary-backports main universe multiverse restricted deb [WWW] http://backports.ubuntuforums.org/ubp hoary-extras main universe multiverse restricted
sudo apt-get update
Q: Como backup/restore downloaded repositories cache?
mkdir -p $HOME/backup/var/lib/ sudo cp -R /var/lib/apt/ $HOME/backup/var/lib/ mkdir -p $HOME/backup/var/cache/ sudo cp -R /var/cache/apt/ $HOME/backup/var/cache/ mkdir -p $HOME/backup/etc/apt sudo cp -R /etc/apt/ $HOME/backup/etc/ sudo chown -R $USER $HOME/backup/
sudo cp -fR $HOME/backup/var/* /var/ sudo cp -fR $HOME/backup/etc/apt/* /etc/apt/
Q: Como manually update Ubuntu?
sudo apt-get update sudo apt-get upgrade
Q: Como install Menu Editor for GNOME?
wget -c http://frankandjacq.com/ubuntuguide/smeg_0.5-0ubuntu1_all.deb sudo dpkg -i smeg_0.5-0ubuntu1_all.deb
Q: Como 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: Como install J2SE Runtime Environment (JRE) with Plug-in for Mozilla Firefox?
wget -c http://frankandjacq.com/ubuntuguide/jre-1_5_0_03-linux-i586.bin sh jre-1_5_0_03-linux-i586.bin sudo mkdir /usr/java sudo mv jre1.5.0_03/ /usr/java/ sudo chown -R root:root /usr/java/jre1.5.0_03/ sudo ln -fs /usr/java/jre1.5.0_03/bin/java /usr/bin/java sudo ln -fs /usr/java/jre1.5.0_03/bin/java_vm /usr/bin/java_vm sudo ln -fs /usr/java/jre1.5.0_03/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/ sudo ln -fs /usr/java/jre1.5.0_03/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla-firefox/plugins/ java -version
Q: Como install Flash Player (Macromedia Flash) Plug-in for Mozilla Firefox?
sudo apt-get install flashplayer-mozilla
Q: Como install PDF Reader (Adobe Reader) with Plug-in for Mozilla Firefox?
sudo apt-get install acroread sudo apt-get install mozilla-acroread
Q: Como install Download Manager (Downloader for X)?
sudo apt-get install d4x
Q: Como install FTP Client (gFTP)?
sudo apt-get install gftp
Q: Como install P2P BitTorrent Client (Azureus)?
wget -c http://frankandjacq.com/ubuntuguide/Azureus_2.3.0.0_linux.GTK.tar.bz2 sudo tar jxvf Azureus_2.3.0.0_linux.GTK.tar.bz2 -C /opt/ sudo chown -R root:root /opt/azureus/ sudo gedit /usr/share/applications/Azureus.desktop
[Desktop Entry] Name=Azureus Comment=Azureus Exec=/opt/azureus/azureus Icon=/opt/azureus/Azureus.png Terminal=false Type=Application Categories=Application;Network;
Q: Como install P2P eMule Client (aMule)?
sudo apt-get install amule
Q: Como 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: Como install Messenger (Skype)?
sudo apt-get install libqt3c102-mt wget -c http://frankandjacq.com/ubuntuguide/skype_1.1.0.3-1_i386.deb sudo dpkg -i skype_1.1.0.3-1_i386.deb
Q: Como 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: Como install Multimedia Codecs?
wget -c http://frankandjacq.com/ubuntuguide/gstreamer0.8-lame_0.8.8-0.1_i386.deb sudo apt-get install gstreamer0.8-plugins sudo apt-get install w32codecs sudo apt-get install liblame0 sudo dpkg -i gstreamer0.8-lame_0.8.8-0.1_i386.deb gst-register-0.8
Q: Como install DVD playback capability?
sudo apt-get install libdvdcss2
Q: Como install Multimedia Player (xine-ui)?
sudo apt-get install xine-ui
Q: Como install Multimedia Player (MPlayer) with Plug-in for Mozilla Firefox?
sudo apt-get -t hoary install mplayer-386 sudo apt-get -t hoary install mplayer-fonts sudo apt-get -t hoary install mozilla-mplayer
Q: Como 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
Q: Como install Multimedia Player (RealPlayer)?
wget -c http://frankandjacq.com/ubuntuguide/realplay-10.0.4.750-linux-2.2-libc6-gcc32-i586.bin chmod +x realplay-10.0.4.750-linux-2.2-libc6-gcc32-i586.bin sudo ./realplay-10.0.4.750-linux-2.2-libc6-gcc32-i586.bin ... Enter the complete path to the directory where you want RealPlayer to be installed. You must specify the full pathname of the directory and have write privileges to the chosen directory. Directory: [/home/chua/RealPlayer]: /opt/RealPlayer You have selected the following RealPlayer configuration: Destination: /opt/RealPlayer Enter [F]inish to begin copying files, or [P]revious to go back to the previous prompts: [F]: F Copying RealPlayer files...configure system-wide symbolic links? [Y/n]: Y enter the prefix for symbolic links [/usr]: /usr ...
Q: Como install Stream Directory Browser (streamtuner)?
sudo apt-get install streamtuner
Q: Como install Video Editor (Kino)?
sudo apt-get install kino
Q: Como install Audio Editor (Audacity)?
sudo apt-get install audacity
Q: Como install DVD Ripper (dvd::rip)?
sudo apt-get -t testing install transcode sudo apt-get install dvdrip 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: Como 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: Como install Email Client (Mozilla Thunderbird)?
sudo apt-get install mozilla-thunderbird
Q: Como install Newsreader (Pan)?
sudo apt-get install pan
Q: Como install RSS/RDF/Atom Newsreader (RSSOwl)?
wget -c http://frankandjacq.com/ubuntuguide/rssowl_linux_1_1_1_bin.tar.gz sudo tar zxvf rssowl_linux_1_1_1_bin.tar.gz -C /opt/ sudo chown -R root:root /opt/rssowl_linux_1_1_1_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_1_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_1_bin/rssowl.xpm Terminal=false Type=Application Categories=Application;Network;
Q: Como install Web Authoring System (Nvu)?
wget -c http://frankandjacq.com/ubuntuguide/nvu-1.0PR-pc-linux2.6.10-gnu.tar.bz2 sudo tar jxvf nvu-1.0PR-pc-linux2.6.10-gnu.tar.bz2 -C /opt/ sudo chown -R root:root /opt/nvu-1.0PR/ sudo gedit /usr/share/applications/Nvu.desktop
[Desktop Entry] Name=Nvu Comment=Nvu Exec=/opt/nvu-1.0PR/nvu Icon=/opt/nvu-1.0PR/icons/mozicon50.xpm Terminal=false Type=Application Categories=Application;Office;
Q: Como install Project Management Application (Planner)?
sudo apt-get install planner
Q: Como install Desktop Publishing Application (Scribus)?
sudo apt-get install scribus
Q: Como install Diagram Editor (Dia)?
sudo apt-get install dia sudo gedit /usr/share/applications/Dia.desktop
[Desktop Entry] Name=Dia Comment=Dia Exec=dia Icon=/usr/share/pixmaps/dia.xpm Terminal=false Type=Application Categories=Application;Office;
Q: Como install CD/DVD Burning Software (GnomeBaker)?
sudo apt-get install gnomebaker
Q: Como install 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;System;
Q: Como install BootUp Manager (UBM)?
wget -c http://frankandjacq.com/ubuntuguide/ubm_1.2.5-0ubuntu1_all.deb sudo dpkg -i ubm_1.2.5-0ubuntu1_all.deb
Q: Como install Partition Editor (GParted)?
sudo apt-get install gparted
Q: Como install Firewall (Firestarter)?
sudo apt-get install firestarter
Q: Como 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= Terminal=false Type=Application Categories=Application;System;
Q: Como install RAR Archiver (rar)?
sudo apt-get install rar
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
Q: Como 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: Como install Game (Frozen-Bubble)?
sudo apt-get install frozen-bubble
Q: Como install Basic Compilers (build-essential)?
sudo apt-get install build-essential
Q: Como install Windows 9X/ME/2000/XP (Win4Lin)?
Q: Como install Windows Applications (CrossOver Office)?
Q: Como install Windows Games (Cedega)?
Q: Como 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: Como 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"
... o
Option "NoLogo"Q: Como identify Modem chipset?
wget -c http://frankandjacq.com/ubuntuguide/scanModem.gz gunzip -c scanModem.gz > scanModem chmod +x scanModem sudo ./scanModem gedit Modem/ModemData.txt
Q: Como 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: Como 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: Como list partition tables?
sudo fdisk -l
Q: Como list filesystem disk space usage?
df -T -h
mount
lspci
lsusb
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: Como 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: Como 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: Como remount /etc/fstab without rebooting?
sudo mount -a
Q: Como activate/deactivate network connections?
Connections Tab -> Select "Ethernet connection" -> Activate/Deactivate
Q: Como 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
General Tab -> Host Settings -> Hostname: Specify the computer name
Q: Como 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_descriptionssudo testparm sudo /etc/init.d/samba restart
Q: Como 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_workgroupsudo testparm sudo /etc/init.d/samba restart
Q: Como 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 [WWW] 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
fisudo chmod +x /root/dyndns_update.sh sudo sh /root/dyndns_update.sh export EDITOR=gedit && sudo crontab -e
00 * * * * sudo sh /root/dyndns_update.sh
Q: Como 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: Como 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 Como access network folders without mounting?Q: Como 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: Como 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: Como 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: Como 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 cp /etc/fstab /etc/fstab_backup sudo gedit /etc/fstab
//192.168.0.1/linux /media/sharename smbfs credentials=/root/.smbcredentials 0 0
Q: Como 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 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: Como 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 umask=0222
sudo umount /media/windows/
Q: Como 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 umask=000
sudo umount /media/windows/
Q: Como 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 umask=0222 0 0
Q: Como 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 umask=000 0 0
Q: Como set/change/enable root user password?
sudo passwd root
Q: Como disable root user account?
sudo passwd -l root
Q: Como allow root user to login into GNOME?
Security Tab -> Options -> Allow root to login with GDM (Checked)
Q: Como switch to root user in Terminal mode?
sudo -s -H Password: <specify user password>
Q: Como add/edit/delete system users?
Users Tab -> Add User.../Properties/Delete
Q: Como add/edit/delete system groups?
Groups Tab -> Add Group.../Properties/Delete
Q: Como 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: Como 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: Como explicitly destroy the "sudo" session?
sudo -K
Q: Como change files/folders permissions?
Right click on files/folders -> Properties Permissions Tab -> Read/Write/Execute (Checked the permissions for Owner/Group/Others)
Q: Como change files/folders ownership?
sudo chown system_username /location_of_files_or_folders
Q: Como change files/folders group ownership?
sudo chgrp system_groupname /location_of_files_or_folders
Q: What are the basic things I need to know about securing my Ubuntu?
Q: Como 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
... # 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: Como disable history listing in Console mode?
rm $HOME/.bash_history touch $HOME/.bash_history chmod 000 $HOME/.bash_history
Q: Como 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: Como 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: Como gain root user access without login?
Ubuntu, kernel 2.6.10-5-386 (recovery mode)
Q: Como 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: Como use Ubuntu Installation CD, to gain root user access?
boot: rescue
Q: Como change root user/main user password if forgotten?
# passwd root
# passwd system_main_username
Q: Como 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: Como restore GRUB menu after Windows installation?
e.g. Assumed that /dev/hda is the location of /boot partition
# grub-install /dev/hda
Q: Como 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: Como read Linux partitions (ext2, ext3) in Windows?
Q: Como restart GNOME without rebooting computer?
Press 'Ctrl + Alt + Backspace'
Q: Como 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
fiQ: Como run programs on startup when login into GNOME?
Startup Programs Tab -> Add/Edit/Delete
Q: Como switch to Console mode in GNOME?
Press 'Ctrl + Alt + F1' (F2 - F6)
Press 'Ctrl + Alt + F7'
Q: Como refresh GNOME desktop?
killall nautilus
killall gnome-panel
Q: Como 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: Como 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: Como show Desktop Icons (Computer, Home, Trash)?
/ -> apps -> nautilus -> desktop -> computer_icon_visible (Checked) home_icon_visible (Checked) trash_icon_visible (Checked)
Q: Como 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: Como change preferred email client to Mozilla Thunderbird?
Mail Reader Tab -> Default Mail Reader -> Command: mozilla-thunderbird %s
Q: Como 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" &
donechmod +x $HOME/.gnome2/nautilus-scripts/Open\ as\ root
Right click on file -> Scripts -> Open as root
Q: Como disable beep sound in Terminal mode?
Edit Menu -> Current Profile... General Tab -> General -> Terminal bell (Un-Checked)
Q: Como 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: Como disable beep sound for link find function in Mozilla Firefox?
Address Bar -> about:config Filter: -> accessibility.typeaheadfind.enablesound -> false
Q: Como restore the original icons for Mozilla Firefox?
wget -c chmod 644 mozilla-firefox.png chmod 644 document.png sudo mv /usr/share/pixmaps/mozilla-firefox.png /usr/share/pixmaps/mozilla-firefox_backup.png sudo mv /usr/share/pixmaps/mozilla-firefox.xpm /usr/share/pixmaps/mozilla-firefox_backup.xpm sudo mv /usr/lib/mozilla-firefox/icons/default.xpm /usr/lib/mozilla-firefox/icons/default_backup.xpm sudo mv /usr/lib/mozilla-firefox/icons/document.png /usr/lib/mozilla-firefox/icons/document_backup.png sudo mv /usr/lib/mozilla-firefox/chrome/icons/default/default.xpm /usr/lib/mozilla-firefox/chrome/icons/default/default_backup.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
Q: Como restore the original icons for Mozilla Thunderbird?
wget -c http://frankandjacq.com/ubuntuguide/mozilla-thunderbird.xpm chmod 644 mozilla-thunderbird.xpm sudo mv /usr/share/pixmaps/mozilla-thunderbird.xpm /usr/share/pixmaps/mozilla-thunderbird_backup.xpm sudo mv /usr/share/pixmaps/mozilla-thunderbird-menu.xpm /usr/share/pixmaps/mozilla-thunderbird-menu_backup.xpm sudo mv /usr/lib/mozilla-thunderbird/chrome/icons/default/mozilla-thunderbird.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/mozilla-thunderbird_backup.xpm sudo mv /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow16.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow16_backup.xpm sudo mv /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow_backup.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/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
Q: Como apt-get the easy way (Synaptic)?
Edit Menu -> Reload Package Information
Edit Menu -> Mark All Upgrades... -> Default Upgrade Edit Menu -> Apply Marked Changes
Edit Menu -> Search... Specify the package name
Select "package_name" Package Menu -> Mark for Installation Edit Menu -> Apply Marked Changes
Select "package_name" Package Menu -> Mark for Removal Edit Menu -> Apply Marked Changes
Q: Como install/uninstall .deb file?
sudo dpkg -i package_file.deb
sudo dpkg -r package_name
Q: Como convert .rpm file to .deb file?
sudo alien package_file.rpm
Q: Como rename all files in directory at once?
wget -c http://frankandjacq.com/ubuntuguide/mvb_1.6.tgz sudo tar zxvf mvb_1.6.tgz -C /usr/ sudo chown -R root:root /usr/mvb_1.6/ sudo ln -fs /usr/mvb_1.6/mvb /usr/bin/mvb mvb -h
Q: Como save "man" outputs into file?
man command | col -b > file.txt
Q: Como generate MD5 checksum file?
md5sum file.iso > file.iso.md5
Q: Como 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: Como 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: Como hide GRUB menu on boot-up?
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup sudo gedit /boot/grub/menu.lst
... #hiddenmenu ...
hiddenmenu
Q: Como 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
... timeout 3 ...
timeout X_seconds
Q: Como 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
... default 0 ...
default X_sequence
Q: Como temporary skip boot-up services?
Press 'Ctrl + C'
Q: Como permanently disable/enable boot-up services?
sudo chmod -x /etc/init.d/service_name
sudo chmod +x /etc/init.d/service_name
Q: Como install ClamAV AntiVirus Server?
sudo apt-get install clamav
Q: Como manually update virus databases?
sudo freshclam
Q: Como manually scan files/folders for viruses?
sudo clamscan -r /location_of_files_or_folders
Q: Como automatically scan files/folders for viruses?
e.g. Automatically scan files/folders for viruses at midnight everyday
*
* * * * means minute hour date month yearexport EDITOR=gedit && sudo crontab -e
00 00 * * * sudo clamscan -r /location_of_files_or_folders
Q: Como install Samba Server for files/folders sharing service?
sudo apt-get install samba sudo apt-get install smbfs
Q: Como add/edit/delete network users?
smbpasswd -a system_username sudo gedit /etc/samba/smbusers
system_username = "network username"
sudo smbpasswd -a system_username
sudo smbpasswd -x system_username
Q: Como share home folders with read only permission (Authentication=Yes)?
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
... ; security = user ...
*
security = user username map = /etc/samba/smbuserssudo testparm sudo /etc/init.d/samba restart
Q: Como share home folders with read/write permissions (Authentication=Yes)?
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
... ; security = user ...
*
security = user username map = /etc/samba/smbusers... # By default, the home directories are exported read-only. Change next # parameter to 'yes' if you want to be able to write to them.
*
writable = no
...# By default, the home directories are exported read-only. Change next # parameter to 'yes' if you want to be able to write to them.
*
writable = yessudo testparm sudo /etc/init.d/samba restart
Q: Como share group folders with read only permission (Authentication=Yes)?
sudo mkdir /home/group sudo chmod 777 /home/group/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
... ; security = user ...
*
security = user username map = /etc/samba/smbusers[Group]
*
comment = Group Folder path = /home/group public = yes writable = no valid users = system_username1 system_username2 create mask = 0700 directory mask = 0700 force user = nobody force group = nogroupsudo testparm sudo /etc/init.d/samba restart
Q: Como share group folders with read/write permissions (Authentication=Yes)?
sudo mkdir /home/group sudo chmod 777 /home/group/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
... ; security = user ...
*
security = user username map = /etc/samba/smbusers[Group]
*
comment = Group Folder path = /home/group public = yes writable = yes valid users = system_username1 system_username2 create mask = 0700 directory mask = 0700 force user = nobody force group = nogroupsudo testparm sudo /etc/init.d/samba restart
Q: Como share public folders with read only permission (Authentication=Yes)?
sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
... ; security = user ...
*
security = user username map = /etc/samba/smbusers[public]
*
comment = Public Folder path = /home/public public = yes writable = no create mask = 0777 directory mask = 0777 force user = nobody force group = nogroupsudo testparm sudo /etc/init.d/samba restart
Q: Como share public folders with read/write permissions (Authentication=Yes)?
sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
... ; security = user ...
*
security = user username map = /etc/samba/smbusers[public]
*
comment = Public Folder path = /home/public public = yes writable = yes create mask = 0777 directory mask = 0777 force user = nobody force group = nogroupsudo testparm sudo /etc/init.d/samba restart
Q: Como share public folders with read only permission (Authentication=No)?
sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
... ; security = user ...
*
security = share[public]
*
comment = Public Folder path = /home/public public = yes writable = no create mask = 0777 directory mask = 0777 force user = nobody force group = nogroupsudo testparm sudo /etc/init.d/samba restart
Q: Como share public folders with read/write permissions (Authentication=No)?
sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
... ; security = user ...
*
security = share[public]
*
comment = Public Folder path = /home/public public = yes writable = yes create mask = 0777 directory mask = 0777 force user = nobody force group = nogroupsudo testparm sudo /etc/init.d/samba restart
Q: Como install SSH Server for remote administration service?
sudo apt-get install ssh
Q: Como SSH into remote Ubuntu machine?
e.g. Assumed that remote Ubuntu machine have installed SSH Server service
*
Read Como install SSH Server for remote administration service? Remote Ubuntu machine: 192.168.0.1ssh [MAILTO] username@192.168.0.1
Q: Como copy files/folders from remote Ubuntu machine into local machine (scp)?
e.g. Assumed that remote Ubuntu machine have installed SSH Server service
*
Read Como install SSH Server for remote administration service? Remote Ubuntu machine: 192.168.0.1 Remote files/folders location: /home/username/remotefile.txt Local machine save location: . (current directory)scp -r [MAILTO] username@192.168.0.1:/home/username/remotefile.txt .
Q: Como copy files/folders from local machine into remote Ubuntu machine (scp)?
e.g. Assumed that remote Ubuntu machine have installed SSH Server service
*
Read Como install SSH Server for remote administration service? Local files/folders location: localfile.txt Remote Ubuntu machine: 192.168.0.1 Remote Ubuntu machine save location: /home/username/scp -r localfile.txt [MAILTO] username@192.168.0.1:/home/username/
Q: Como copy files/folders from remote Ubuntu machine into local machine (rsync)?
e.g. Assumed that remote Ubuntu machine have installed SSH Server service
*
Read Como install SSH Server for remote administration service? Remote Ubuntu machine: 192.168.0.1 Remote files/folders location: /home/username/remotefile.txt Local machine save location: . (current directory)rsync -v -u -a --delete --rsh=ssh --stats [MAILTO] username@192.168.0.1:/home/username/remotefile.txt .
Q: Como copy files/folders from local machine into remote Ubuntu machine (rsync)?
e.g. Assumed that remote Ubuntu machine have installed SSH Server service
*
Read Como install SSH Server for remote administration service? Local files/folders location: localfile.txt Remote Ubuntu machine: 192.168.0.1 Remote Ubuntu machine save location: /home/username/rsync -v -u -a --delete --rsh=ssh --stats localfile.txt [MAILTO] username@192.168.0.1:/home/username/
Q: Como SSH into remote Ubuntu machine via Windows machine?
e.g. Assumed that remote Ubuntu machine have installed SSH Server service
*
Read Como install SSH Server for remote administration service?Q: Como copy files/folders from/into remote Ubuntu machine via Windows machine?
e.g. Assumed that remote Ubuntu machine have installed SSH Server service
*
Read Como install SSH Server for remote administration service?Q: Como install DHCP Server for automatic IP addresses assignment?
e.g. Assumed that "eth0" is the interface for network card
*
IP Address Range: 192.168.0.100 to 192.168.0.200 Subnet Mask: 255.255.255.0 DNS Servers: 202.188.0.133, 202.188.1.5 Domains: tm.net.my Gateway Address: 192.168.0.1sudo apt-get install dhcp3-server sudo cp /etc/default/dhcp3-server /etc/default/dhcp3-server_backup sudo gedit /etc/default/dhcp3-server
... INTERFACES=""
INTERFACES="eth0"
sudo cp /etc/dhcp3/dhcpd.conf /etc/dhcp3/dhcpd.conf_backup sudo gedit /etc/dhcp3/dhcpd.conf
... # option definitions common to all supported networks... option domain-name "example.org"; option domain-name-servers ns1.example.org, ns2.example.org; default-lease-time 600; max-lease-time 7200; ...
# option definitions common to all supported networks... #option domain-name "example.org"; #option domain-name-servers ns1.example.org, ns2.example.org; #default-lease-time 600; #max-lease-time 7200;
... # A slightly different configuration for an internal subnet. #subnet 10.5.5.0 netmask 255.255.255.224 { # range 10.5.5.26 10.5.5.30; # option domain-name-servers ns1.internal.example.org; # option domain-name "internal.example.org"; # option routers 10.5.5.1; # option broadcast-address 10.5.5.31; # default-lease-time 600; # max-lease-time 7200; #} ...# A slightly different configuration for an internal subnet. subnet 192.168.0.0 netmask 255.255.255.0 {
*
range 192.168.0.100 192.168.0.200; option domain-name-servers 202.188.0.133, 202.188.1.5; option domain-name "tm.net.my"; option routers 192.168.0.1; option broadcast-address 192.168.0.255; default-lease-time 600; max-lease-time 7200;
}sudo /etc/init.d/dhcp3-server restart
Q: Como install MYSQL Database Server?
sudo apt-get install mysql-server mysqladmin -u root password db_user_password
Q: Como install MYSQL Control Center?
sudo apt-get install mysqlcc sudo gedit /usr/share/applications/MySQLCC.desktop
[Desktop Entry] Name=MySQLCC Comment=MySQLCC Exec=mysqlcc Icon=/usr/share/pixmaps/mysqlcc.xpm Terminal=false Type=Application Categories=Application;System;
Q: Como install Apache HTTP Server for HTTP (Web) Server service?
sudo apt-get install apache2
Q: Como install PHP for Apache HTTP Server?
sudo apt-get install php4 sudo gedit /var/www/testphp.php
<?php phpinfo(); ?>
Q: Como install MYSQL for Apache HTTP Server?
sudo apt-get install libapache2-mod-auth-mysql sudo apt-get install php4-mysql sudo /etc/init.d/apache2 restart
Q: Como map URLs to folders outside /var/www/?
sudo gedit /etc/apache2/conf.d/alias
Alias /URL-path /location_of_folder/ <Directory /location_of_folder/> Order allow,deny Allow from all </Directory>
sudo /etc/init.d/apache2 restart
Q: Como change the default port number for Apache HTTP Server?
e.g. Assumed that new port number is 79
sudo cp /etc/apache2/ports.conf /etc/apache2/ports.conf_backup sudo gedit /etc/apache2/ports.conf
Listen 80
Listen 79
sudo /etc/init.d/apache2 restart
Q: Como browse the changed port number for Apache HTTP Server in Mozilla Firefox?
e.g. Assumed that new port number is 79
sudo cp /usr/lib/mozilla-firefox/greprefs/all.js /usr/lib/mozilla-firefox/greprefs/all.js_backup sudo gedit /usr/lib/mozilla-firefox/greprefs/all.js
... // If there is ever a security firedrill that requires // us to block certian ports global, this is the pref // to use. Is is a comma delimited list of port numbers // for example: // pref("network.security.ports.banned", "1,2,3,4,5"); // prevents necko connecting to ports 1-5 unless the protocol // overrides. ...pref("network.security.ports.banned.override", "79");Q: Configuring network interfaces... (taking too long to load)
Q: Synchronizing clock to ntp.ubuntulinux.org... (taking too long to load)
service_name = ntpdate
Q: Como disable system time/date from being reset to UTC (GMT)?
sudo cp /etc/default/rcS /etc/default/rcS_backup sudo gedit /etc/default/rcS
... UTC=yes ...
UTC=no
Set the correct time/date
sudo /etc/init.d/hwclock.sh restart
Q: Como configure sound to work properly in GNOME?
sudo killall esd sudo cp /etc/esound/esd.conf /etc/esound/esd.conf_backup sudo gedit /etc/esound/esd.conf
... auto_spawn=0 spawn_options=-terminate -nobeeps -as 5 ...
auto_spawn=1 spawn_options=-terminate -nobeeps -as 2 -d default
sudo apt-get install libesd-alsa0 sudo gedit /etc/asound.conf
pcm.card0 { type hw card 0 }
pcm.!default { type plug slave.pcm "dmixer" }
pcm.dmixer { type dmix ipc_key 1025 slave { pcm "hw:0,0" period_time 0 period_size 2048 buffer_size 32768 rate 48000 } bindings { 0 0 1 1 } }sudo ln -fs /usr/lib/libesd.so.0 /usr/lib/libesd.so.1
General Tab -> Sounds for events (Un-Checked)
Q: Como forcefully empty Trash in GNOME?
sudo rm -fr $HOME/.Trash/
Q: Como remove duplicate menu/menu items in GNOME?
rm -fr $HOME/.config/menus/applications.menu
Q: Como refresh Places menu in GNOME (if mounts to /media/ in /etc/fstab does not show up)?
sudo /etc/init.d/dbus-1 restart
Ubuntu Logo, Ubuntu and Canonical are trademarks of Canonical Ltd.