http://ubuntuguide.org/wiki/Ubuntu:Feisty
Supermicro 1U Twin 2x Intel Xeon based System in 1U. High-efficiency, Double Performance SSH Client for Windows EmTec's powerful SSH terminal offers amazing and unique features
supermicro.com/DataCenterServer www.starnet.com
LinuxLIVE for Linux PCs Suspend-Resume, Sharing, Mobility and Re-Connect to Remote X Sessions
www.emtec.com/zoc
Ubuntu:Feisty
From
1 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Introduction
Ubuntu 7.04 (Feisty Fawn) was released on April 19th, 2007 and is no longer supported. It is recommended to upgrade to the current version of Ubuntu.
Other Versions
For all versions of Ubuntu, see the Main Page. Ubuntu 8.04 (Hardy Heron) is a LTS (Long Term Support) version, released on April 24, 2008, and will be supported with security updates for ve years on the server and three years on the desktop. Ubuntu 7.10 (Gutsy Gibbon) was released October 18, 2007, and is Feisty+1 (the very next release after Feisty). If you are using an outdated version of Ubuntu, you should consider updating it to the current version of Ubuntu. There have been considerable improvements. If everything works perfectly for you, you may wish to stay with a Long-Term Support (LTS) version. To upgrade an outdated version or update your current version, read #Updates and Upgrades.
Contents
1 Ubuntu 7.04 (Feisty Fawn) 2 Introduction 2.1 Other Versions 2.2 General Notes 2.3 Are there other *buntu guides? 2.4 Desktop environments 2.4.1 Where to view Ubuntu screenshots / screencast 2.4.2 Where to view Kubuntu screenshots / screencast 2.4.3 How to install KDE (Kubuntu) 2.4.3.1 How to uninstall KDE (Kubuntu) 2.4.4 Where to view Xubuntu screenshots / screencast 2.4.5 How to install XFCE (Xubuntu) 2.4.5.1 How to uninstall Xfce (Xubuntu) 2.4.6 Where to view Ubuntu Studio screenshots 2.4.7 Where to view Ubuntu Enlightenment Window Manager screenshots 2.4.8 How to install FluxBox 2.4.9 How to install Blackbox 2.4.10 How to change the USplash Screen when you boot or shutdown the computer 2.4.11 Where to look for style elements for your desktop
2 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
2.4.12 How to congure GLSlideshow 2.4.13 Using gksu vs. sudo 2.4.13.1 How to run commands in the command line terminal 2.4.14 3-D Desktops 2.4.14.1 Compiz / Desktop Eects 2.4.14.2 OpenCompositing: Beryl and Compiz 2.4.14.3 How to install Compiz Fusion (Universal) 2.4.14.3.1 How to install Beryl (ATI) 2.4.14.3.1.1 Install Beryl using Open Source drivers 2.4.14.3.1.2 Uninstall Beryl (open source installation) 2.4.14.3.1.3 Install Beryl using proprietary FGLRX drivers from ATI 2.4.14.3.2 How to install Beryl (Nvidia) 2.4.14.3.2.1 What to do if Video players crash while using Beryl 2.4.14.3.2.2 How to x black windows during video playback 2.4.14.3.2.3 How to improve sub-pixel font rendering for Feisty 2.4.14.3.2.4 How to congure GLSlideshow 2.4.14.3.3 How to install Compiz-Fusion (a Compiz-Beryl fusion) 2.4.14.3.4 How to install Compiz (Nvidia) 2.4.14.4 Project Looking Glass 2.5 Updates and Upgrades 2.5.1 Upgrade Ubuntu Edgy to Ubuntu Feisty 2.5.1.1 Upgrade from Dapper Drake to Edgy Eft to Feisty Fawn 2.5.2 Enable automatic updates 2.5.3 How to manually update Ubuntu 2.6 Adding new programs 2.6.1 How to add extra repositories 2.6.1.1 Using menus 2.6.1.2 Manually edit sources.list 2.6.1.3 Adding a CD-ROM or DVD repository 2.6.2 Adding programs from the GUI menu 2.6.2.1 Add/Remove Programs 2.6.2.2 Synaptic Package Manager 2.6.2.3 Automatix2 2.6.2.3.1 Install Automatix using apt (alternate method) 2.6.3 Add programs from a command-line menuing program 2.6.4 Add programs from the command line 2.7 Add-On Applications 2.7.1 Working with archives and packages 2.7.1.1 Handling ".tar.gz" (Tar/GZip) Archives 2.7.1.2 Handling ".tar.bz" (Tar/BZip) Archives 2.7.1.3 Handling ".7z" (7-Zip) Archives 2.7.1.4 How to compile a program from source code 2.7.1.5 Create an Ubuntu (Debian) package (.deb) 2.7.2 Utilities
3 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
2.7.2.1 How to handle rar les 2.7.2.2 How to install WinRAR 2.7.2.3 How to install an IP address calculator 2.7.2.4 How to install Firefox Widgets 2.7.2.5 Keeping your clock synchronized with time servers 2.7.2.6 How to Set Flickr Images as Ubuntu Feisty Wallpaper 2.7.3 Browser plug-ins 2.7.3.1 How to install Java J2SE Runtime Environment (JRE) with Plug-in for Mozilla Firefox 2.7.3.2 How to install Flash Player (Macromedia Flash) Plug-in for Mozilla Firefox 2.7.3.2.1 Install using Synaptic Package Manager or apt-get 2.7.3.2.2 Install from Firefox (method 2) 2.7.3.2.3 Install from tarball (method 3) 2.7.3.3 GNASH open source alternative 2.7.3.4 How to install Flash Player (Macromedia Flash) Plug-in for (64-bit) Mozilla Firefox (only) 2.7.3.5 How to install Adobe PDF Reader with Plug-in for Mozilla Firefox 2.7.3.6 How to block Ads and Java/Javascripts in Firefox 2.7.3.7 Streaming in FireFox 2.7.4 Multimedia Codecs & Browser Plug-ins 2.7.4.1 How to install Multimedia Codecs 2.7.4.2 How to install DVD playback capability 2.7.4.3 How to install MIDI sound server (Timidity++) 2.7.4.4 How to install multimedia plug-ins for Firefox 2.7.4.4.1 Totem plug-in (Ubuntu users) 2.7.4.4.2 Kaeine plug-in (KDE users) 2.7.4.4.3 MPlayer plug-in (Installs MPlayer media player as well) 2.7.4.4.4 VLC plug-in (Installs VLC media player as well) 2.7.4.4.5 Helix plug-in (plays Realplayer les) 2.7.5 Multimedia Players 2.7.5.1 How to install Elisa Multimedia Player 2.7.5.2 How to install MPD Multimedia Playing Server 2.7.5.3 How to install Xine-ui Multimedia Player 2.7.5.4 How to install MPlayer Multimedia Player 2.7.5.4.1 MPlayer Frontend (SMPlayer) 2.7.5.5 How to install VLC Multimedia Player 2.7.5.6 How to install XMMS Multimedia Player 2.7.5.7 How to install Songbird Multimedia Player 2.7.5.7.1 How to uninstall Songbird Multimedia Player 2.7.5.8 How to install amaroK Multimedia Player 2.7.5.8.1 How to uninstall amaroK 2.7.5.9 How to install Banshee Music Manager and Player 2.7.5.9.1 How to uninstall Banshee 2.7.5.10 How to install Listen Music Manager and Player 2.7.5.10.1 How to uninstall Listen
4 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
2.7.5.11 How to install Exaile! Music Manager and Player 2.7.5.11.1 How to uninstall Exaile! 2.7.5.12 How to install RealPlayer 10 Multimedia Player (RealPlayer) 2.7.5.12.1 Install from real website 2.7.5.12.2 Install from prepackaged .deb le 2.7.5.13 How to install Helix Multimedia Player 2.7.5.14 How to install Stream Directory Browser (streamtuner) 2.7.5.14.1 How to uninstall Stream Directory Browser (streamtuner) 2.7.5.15 How to install Internet TV (Democracy TV / Miro) 2.7.6 Internet Utilities 2.7.6.1 How to install P2P BitTorrent Client (Azureus) 2.7.6.2 How to install P2P BitTorrent Client (Deluge) 2.7.6.2.1 Installing Binary (Stable) 2.7.6.2.2 Compiling Deluge Source From Trunk (Unstable) 2.7.6.2.3 How to use Torrent under Wine 2.7.6.2.3.1 Older method 2.7.6.3 How to install P2P BitTorrent Client (KTorrent) 2.7.6.4 How to install Pidgin 2.2.0 Instant Messenger 2.7.6.4.1 Easy instructions 2.7.6.4.2 Manual instructions for Pidgin 2.1.1 2.7.6.4.3 How to congure Google Talk for Pidgin 2.7.6.5 How to install Ninan (NZB usenet client) 2.7.6.6 How to congure (64 Bit)Ekiga for GIZMO PROJECT Account 2.7.7 Graphics 2.7.7.1 Blender 3-D graphics content creation system 2.7.7.1.1 For normal (Linux32) users 2.7.7.1.2 For 64-bit Ubuntu users 2.7.7.2 How to install Inkscape vector illustrator 2.7.8 Web content creation and management systems 2.7.8.1 Drupal website content creation and management system 2.7.9 Games 2.7.9.1 KDE games 2.7.9.2 Frozen Bubble 2 2.7.9.3 Super Nintendo Emulator (ZSNES) 1.510 for i386/AMD64 2.7.9.4 Playstation 1 Emulator (pSX) 1.11 for i386/AMD64 2.7.9.5 Playstation 1 Emulator (ePSXe) 1.6.0 for i386/AMD64 2.7.10 Text/Code Editors 2.7.10.1 SciTE 2.7.10.2 Geany 2.7.11 Oce 2.7.11.1 How to install Clip-Art 2.7.11.2 How to install third party windows fonts 2.7.11.3 How to open .docx les 2.7.11.4 Install an optical character reader (tesseract) 2.7.12 Home Security / Home automation 2.7.12.1 Complete systems 2.7.12.1.1 LinuxMCE (Media Center Edition)
5 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
2.7.12.1.2 Omnipotence software (commerical) 2.7.12.2 Home Security / Surveillance 2.7.12.2.1 Install Zoneminder surveillance system 2.7.12.3 Home automation programs and hardware 2.7.13 Miscellaneous 2.7.13.1 How to install applications for study of religious texts 2.7.13.1.1 How to install Gnomesword (Bible study program) 2.7.13.1.2 How to install a Quran researching tool (Zekr) 2.8 Cross-platform enabling Applications 2.8.1 Virtualization Technology 2.8.1.1 Virtualbox 2.8.1.2 VMWare Server / Workstation 2.8.1.2.1 Manual install (optional) for VMWare Server 2.8.1.3 How to install CrossOver Linux to run Windows Applications 2.8.1.4 How to install and run Wine (Open Source version of CrossOver Linux) 2.8.1.4.1 How to manually run programs in Wine (from a command-line terminal) 2.8.1.4.2 How to make Wine apps look like Windows XP 2.8.1.4.3 Install Internet Explorer 6 for Wine 2.8.1.5 How to install Windows Games (Cedega) 2.8.1.6 How to install Maple 11 2.8.1.7 How to install Win4Lin (Windows combined with Linux) 2.8.1.8 How to Install Citrix ICAClient 10 2.8.1.8.1 How to Uninstall Citrix ICAClient 10 2.9 User Administration 2.9.1 How to switch to root user in Console mode 2.9.2 How to set/change/enable root user password 2.9.3 How to disable root user account 2.9.4 How to allow root user to login into Gnome 2.9.5 How to add/edit/delete system users 2.9.6 How to add/edit/delete system groups 2.9.7 How to automatic login into GNOME 2.9.8 How to allow more sudoers 2.9.9 How to use "sudo" without prompt for password (not secure) 2.9.10 How to kill the "sudo" session 2.9.11 How to change les/folders permissions 2.9.12 How to change les/folders ownership 2.9.13 How to change les/folders group ownership 2.10 Hardware 2.10.1 Mice 2.10.1.1 Activate side-mouse-buttons in FireFox 2.10.1.2 Install & Congure IMWheel 2.10.1.3 How to congure Apple Mighty Mouse 2.10.2 Touchpad 2.10.2.1 Disable the touchpad while typing 2.10.2.2 Adjust touchpad sensitivity 2.10.2.3 Enable vertical, horizontal and circular scrolling
6 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
2.10.3 Graphics Card 2.10.3.1 How to setup nVidia drivers in 7.04 2.10.3.2 How to setup Dual Monitors with NVidia in Feisty Fawn 2.10.3.2.1 How to align monitors left-to-right 2.10.3.2.2 How to change primary display from CRT to LCD 2.10.3.3 How to install Beta Graphics Driver (NVIDIA) 2.10.3.4 How to setup pivot (screen rotation) with default X.org NVIDIA drivers 2.10.3.5 How to setup pivot (screen rotation) with proprietary NVIDIA drivers 2.10.3.6 How to disable NVIDIA graphics logo on GNOME startup 2.10.3.7 How to congure dual head on NVIDIA based cards 2.10.3.8 How to install Graphics Driver (ATI) 2.10.3.9 How to Correct the Graphics Resolution (Intel) 2.10.3.10 How to show nvidia GPU temperature (nvidia-settings) 2.10.3.11 How to detect CPU temperature, fan speeds and voltages (lm-sensors) 2.10.3.12 How to control fan speed (lm-sensors) 2.10.3.13 How to monitor CPU, GPU temperatures, fan speeds and voltages (GKrellM) 2.10.3.14 How to detect CPU temperature, fan speeds for Dell Laptops and install Gkrellm plugin (i8kutils, gkrellm-i8k) 2.10.4 CPU 2.10.4.1 How to enable your CPU's Power Saving/Frequency Scaling features 2.10.5 Modems / Network 2.10.5.1 How to identify Modem chipset 2.10.5.2 How to install Atheros Wireless Drivers 2.10.5.3 How to install USB ADSL modem drivers and congure the connection 2.10.5.4 How to install Windows Wireless Drivers (Ndiswrapper) 2.10.5.5 Ndiswrapper for Broadcom 43xx wireless chipset 2.10.5.6 How to enable WPA with Ndiswrapper driver 2.10.5.7 How to install Modem Driver (SmartLink) 2.10.5.8 Using mobile phone/GPRS/EDGE as Internet modem 2.10.5.9 Other Method: Using mobile phone/GPRS/EDGE as Internet modem 2.10.6 Palm 2.10.6.1 How to congure PalmOS Devices 2.10.7 Hard Drive 2.10.7.1 How to list partition tables 2.10.7.2 How to list lesystem disk space usage 2.10.7.3 How to list mounted devices 2.10.7.4 How to remount /etc/fstab without rebooting 2.10.7.5 How to spin down a hard drive 2.10.7.6 How to use Logical Volume Manager (LVM2) 2.10.7.7 How to install software RAID 2.10.7.8 Install EVMS GUI for LVM2 and RAID
7 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
2.10.7.9 Other GUIs for LVM2 and RAID 2.10.7.10 How to Increase ext3 and ReiserFS lesystems Performance 2.10.7.11 How to backup/mirror/synchronize directories using rsync 2.10.8 USB 2.10.8.1 How to list USB devices 2.10.8.2 Workaround for random device disconnections 2.10.8.3 How to recover lost disk space 2.10.8.4 How to Add Logitech USB audio device 2.10.9 Optical Drives 2.10.9.1 How to speed up CD/DVD-ROM 2.10.9.2 How to mount/unmount CD/DVD-ROM manually, and show all hidden and associated les/folders 2.10.9.3 How to forcefully unmount CD/DVD-ROM manually 2.10.10 Monitors / Displays 2.10.10.1 How to enable Large Widescreen Support 2.10.10.2 How to enable CRT output (external monitor/projector) for notebooks (Intel) 2.10.11 Sound 2.10.12 Creative x-Fi sound cards (64 Bit Only) 2.10.12.1 How to make sound work with Intel Integrated Sound Cards 2.10.12.2 How to setup and test surround-sound speakers (5.1 and others) with ALSA 2.10.12.3 How to change the default soundcard 2.10.12.4 How to setup PulseAudio Sound Server 2.10.13 Printers 2.10.13.1 Which default printer drivers are provided in Ubuntu Linux? 2.10.13.2 How to add a printer 2.10.13.3 Hewlett Packard (HP) Printers / Scanners / Copiers 2.10.13.4 Brother Printers / Scanners / Copiers 2.10.14 Misc 2.10.14.1 How to list PCI devices 2.10.14.2 How to install a Wacom tablet 2.10.14.3 How to x strange mouse behavior when using a KVM switch 2.11 CD/DVD Burning 2.11.1 How to blank CD-RW/DVD-RW 2.11.2 How to burn les/folders into CD/DVD 2.11.3 How to burn Image (ISO) les into CD/DVD 2.11.4 How to duplicate CD/DVD 2.11.5 How to create Image (ISO) les from CD/DVD 2.11.6 How to create Image (ISO) les from folders 2.11.7 How to generate MD5 checksum les 2.11.8 How to check MD5 checksum of les 2.11.9 How to mount/unmount Image (ISO) les without burning 2.11.10 How to set/change the burn speed for CD/DVD Burner
8 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
2.11.11 How to enable burnproof for CD/DVD Burner 2.11.12 How to enable overburn for CD/DVD Burner 2.11.13 How to install K3b (CD/DVD burning software) 2.11.13.1 How to install MP3 support for K3b 2.11.14 How to Burn .img DVD Images 2.12 Networking 2.12.1 How to activate/deactivate network connections 2.12.2 How to congure network connections 2.12.3 How to congure dialup connections 2.12.4 How to congure broadband connections 2.12.5 How to change computer name 2.12.6 How to change computer descriptions 2.12.7 How to change computer Domain/Workgroup 2.12.8 How to use dynamic IP addressing for your host using the free DynDNS service 2.12.8.1 Maintain Dynamic IP address with IPcheck utility 2.12.8.2 Maintain Dynamic IP address with ddclient utility 2.12.9 How to share folders the easy way 2.12.10 How to browse network computers 2.12.11 How to access network folders without mounting 2.12.12 How to mount/unmount network folders manually, and allow all users to read 2.12.13 How to mount/unmount network folders manually, and allow all users to read/write 2.12.14 How to mount network folders on boot-up, and allow all users to read 2.12.15 How to mount network folders on boot-up, and allow all users to read/write 2.12.16 How to get ipw2200 and WPA to work 2.12.17 How to get ipw3945 and wep/wpa to work 2.12.18 How to get Broadcom BCM4318 wireless card to work 2.12.19 How to Congure and start PPTP tunnels (VPN) 2.12.20 How to setup a PGP key with Seahorse and Evolution 2.12.21 How to Setup BIND DNS Server 2.12.22 Connect to Internet using mobile phone/GPRS/EDGE 2.12.23 How to set up internet connection sharing 2.12.24 How to resolve Netbios hostnames 2.13 Remote Access 2.13.1 Remote Login via XDMCP 2.13.1.1 What is XDMCP? 2.13.1.2 How to turn on the XDMCP feature 2.13.1.3 How to login from another PC running Ubuntu 2.13.2 Run an Ubuntu host from a Windows Client machine 2.13.3 Remote Desktop Sharing/Duplication using VNC 2.13.3.1 How to congure a Remote Desktop host 2.13.3.2 How to connect into remote desktop or VNC host from a Ubuntu/Linux machine 2.13.3.3 How to connect into a remote Ubuntu desktop host from a
9 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Windows machine 2.13.3.4 How to connect into a remote Ubuntu desktop host from OS X 2.13.3.5 How to Run a Windows machine from Ubuntu securely using VNC 2.14 Windows 2.14.1 How to Mount Windows Partitions 2.14.1.1 How to Mount NTFS Partitions 2.14.1.2 How to mount/unmount Windows partitions (NTFS) manually, and allow all users to read only 2.14.1.3 How to mount/unmount Windows partitions (FAT) manually, and allow all users to read/write 2.14.1.4 How to mount Windows partitions (NTFS) on boot-up, and allow all users to read only 2.14.1.5 How to mount Windows partitions (FAT) on boot-up, and allow all users to read/write 2.14.1.6 How to mount Windows partitions (NTFS) on boot-up, and allow users read and write access 2.15 Security 2.15.1 What are the basic things I need to know about securing my Ubuntu 2.15.2 How to disable all interactive editing control for GRUB menu 2.15.3 How to disable history listing in Console mode 2.15.4 How to disable recently used documents 2.15.5 How to clear history listing in Console mode 2.15.6 How to disable Ctrl+Alt+Del from restarting computer in Console mode 2.15.7 How to enable prompt before removal/overwritten of les/folders in Console mode 2.15.8 How to setup a LoJack system for your laptop 2.15.9 How to get advanced protection against buer overows with grsecurity 2.15.10 How to add Access Control Lists (ACLs) 2.15.11 Firewall 2.15.11.1 Manually conguring IPtables 2.15.11.2 How to install IPtables Firewall Conguration GUI (Firestarter) 2.15.11.3 How to minimize Firestarter to a panel icon when closed 2.15.11.4 How to make the Firestarter GUI start automatically at startup 2.15.11.5 How to have Firestarter start without the root password 2.15.12 Using Shorewall to manage iptables 2.15.13 Anti-virus 2.15.13.1 ClamAV AntiVirus Server 2.15.13.1.1 How to update virus denitions 2.15.13.1.2 How to install ClamAV automatic updater daemon 2.15.13.1.3 How to scan les or folders 2.15.13.1.4 How to install ClamTk GUI frontend for ClamAV
10 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
2.15.13.1.5 How to automatically scan les/folders for viruses 2.16 Boot Menu 2.16.1 How to gain root user access without login 2.16.2 How to modify kernel boot-up arguments, to gain root user access 2.16.3 How to use Ubuntu Installation CD, to gain root user access 2.16.4 How to change root user/main user password if forgotten 2.16.5 How to change GRUB menu password if forgotten 2.16.6 How to restore GRUB menu after Windows installation 2.16.6.1 Super Grub Disk 2.16.6.2 Grub 2.16.7 How to identify the name of the boot drive (hd0, hd1, hd2, etc) 2.16.8 How to add Windows entry into GRUB menu 2.16.9 How to boot into Windows installed on a seperate SATA drive 2.16.10 How to hide GRUB menu on boot-up 2.16.11 How to change the timeout seconds for GRUB menu on boot-up 2.16.12 How to change default Operating System boot-up for GRUB menu 2.16.13 How to display Splash Image for GRUB menu on boot-up 2.16.14 How to convert Wallpaper to Splash Image for GRUB menu 2.16.15 How to display only one kernel on GRUB menu 2.16.15.1 How to read Linux partitions (ext2, ext3) in Windows machine 2.16.15.2 How to Boot Ubuntu from the Windows Bootloader 2.16.16 How to temporarily skip boot-up services 2.16.17 How to permanently disable/enable boot-up services 2.17 Tips And Tricks 2.17.1 How to enable lame for FFMPEG (needed to encode FLV with sound) 2.17.2 How to enable smooth fonts 2.17.3 How to Install Tor to Surf Anonymously in Ubuntu Feisty with Firefox 2.17.4 How to restart GNOME without rebooting computer 2.17.5 How to turn on Num Lock on GNOME startup 2.17.6 How to remap the Caps Lock key as another Control key 2.17.6.1 In the Console 2.17.6.2 In X Windows 2.17.7 Howto upgrade kernel(2.6.22-9-generic) in Feisty Fawn 2.17.8 How to Convert a .nrg (Nero) le to a .iso le 2.17.9 How to run programs on startup when login into GNOME 2.17.10 How to speed-up your Ubuntu box 2.17.11 How to switch to Console mode in GNOME 2.17.12 How to disable Ctrl+Alt+Backspace from restarting X in GNOME and KDE 3.5.x 2.17.13 How to enable Ctrl+Alt+Del to open System Monitor in GNOME 2.17.14 How to refresh GNOME desktop 2.17.15 How to refresh GNOME panel 2.17.16 How to enable autosave in Gedit and disable creation of some_le~ les 2.17.17 How to show all hidden les/folders in Nautilus
11 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
2.17.18 How to browse les/folders as root user in Nautilus 2.17.19 How to install a "View in Terminal" Menu for Nautilus 2.17.20 How to change default le type "Open with" program 2.17.21 How to change preferred email client to Mozilla Thunderbird 2.17.22 How to open les as root user via right click 2.17.23 How to disable beep sound in Terminal mode 2.17.24 How to change backspace behavior in Mozilla Firefox to do page back instead of page up 2.17.25 How to handle mms protocol in Mozilla Firefox 2.17.26 How to handle rtsp (realmedia) protocol in Mozilla Firefox 2.17.27 How to load Web site faster in Mozilla Firefox 2.17.28 How to disable beep sound for link nd function in Mozilla Firefox 2.17.29 How to install Flock Web Browser in Ubuntu 2.17.30 How to install/uninstall .deb les 2.17.31 How to nd out which version of a package I have installed 2.17.32 How to convert .rpm les to .deb les 2.17.33 How to compile .deb les from source 2.17.34 How to rename all les in directory at once 2.17.35 How to manipulate all image les in directory at once 2.17.36 How to set System-wide Environment Variables 2.17.37 How to save "man" outputs into les 2.17.38 How to force GDM to system beep when login screen ready 2.17.39 Clean up Ubuntu GNU/Linux System 2.17.40 How to clean /tmp/ folder contents on shutdown 2.17.41 How to scroll up and down to view previous outputs in Console mode 2.17.42 How to nd out which version of Ubuntu I am using 2.17.43 How to set up (automatic) background/wallpaper-changer application for GNOME 2.17.44 How to add keyboard layouts for other languages 2.17.45 How to add keyboard layouts toggle for other languages (Xfce) 2.17.46 How to add the Keyboard (Layout) Indicator applet 2.17.47 How to type extended characters 2.17.48 How to set the Compose key to type special characters 2.17.49 How to install ubuntu-title font used in Ubuntu logo 2.17.50 How to associate Adobe Reader with les in Nautilus 2.17.51 How to print from Adobe Reader 2.17.52 How to pull apart and combine pdf les 2.17.53 How to remove jedit when Synaptic package manager fails after install 2.17.54 How to compile a kernel the Ubuntu Way 2.17.55 System requests (What to do if your system is unresponsive) 2.17.56 How to add locales to Ubuntu the command line way 2.17.57 How to set default Terminal App window size 2.17.58 Using VI editor 2.17.59 How to play DVDs 2.17.60 How to install Gmail Notier alternative (CheckGmail)
12 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
2.17.61 How to emulate Mac OS X Spotlight (Deskbar) 2.17.62 How to make Ubuntu look like Mac OS X 2.17.63 How to remove temporary les on shutdown 2.17.64 How to tile windows in gnome 2.17.65 How to install a virtual PDF printer 2.17.66 How to pass module options for Ubuntu to pickup on startup 2.17.67 How to correct paper size to Letter 2.17.68 Troubleshooting Feisty Fawn 2.18 Servers 2.18.1 Monitoring Server 2.18.2 Print Server (cupsd) 2.18.2.1 How to install cupsd 2.18.2.2 How to add a printer 2.18.2.3 How to remove a printer 2.18.2.4 How to print on remote Ubuntu machine from another Ubuntu machine 2.18.2.5 How to print on remote Ubuntu machine from a Windows machine 2.18.3 NFS Server 2.18.3.1 Installing NFS Server 2.18.3.2 Installing NFS Client 2.18.3.2.1 Mounting Manually 2.18.3.2.2 Mounting Automatically 2.18.4 Samba Server 2.18.4.1 How to install Samba Server for les/folders sharing service 2.18.4.2 How to add/edit/delete network users 2.18.4.3 How to share home folders with read only permission (Authentication=Yes) 2.18.4.4 How to share home folders with read/write permissions (Authentication=Yes) 2.18.4.5 How to share group folders with read only permission (Authentication=Yes) 2.18.4.6 How to share group folders with read/write permissions (Authentication=Yes) 2.18.4.7 How to share public folders with read only permission (Authentication=Yes) 2.18.4.8 How to share public folders with read/write permissions (Authentication=Yes) 2.18.4.9 How to share public folders with read only permission (Authentication=No) 2.18.4.10 How to share public folders with read/write permissions (Authentication=No) 2.18.4.11 How to print on remote Ubuntu machine via samba 2.18.4.12 Windows networking error: "The account is not authorized to log in from this station." 2.18.4.13 Samba Web Administration Tool (SWAT) 2.18.4.13.1 How to install INETD Superserver 2.18.4.13.2 How to install SWAT for Samba daemon
13 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
2.18.5 SSH Server 2.18.5.1 How to install SSH Server for remote administration service 2.18.5.2 How to SSH into remote Ubuntu host 2.18.5.3 How to copy les/folders from remote Ubuntu host into local machine (scp) 2.18.5.4 How to copy les/folders from local machine into remote Ubuntu host (scp) 2.18.5.5 How to copy les/folders from remote Ubuntu host into local machine (rsync) 2.18.5.6 How to copy les/folders from local machine into a remote Ubuntu host (rsync) 2.18.5.7 How to mount remote host folders into local Ubuntu machine (sshfs) 2.18.5.8 How to SSH into a remote Ubuntu host from a Windows client 2.18.5.9 How to copy les/folders from/into a host Ubuntu machine from a Windows client 2.18.5.10 How to limit the user accounts that can connect through ssh remotely 2.18.5.11 Using SSH to Port Forward 2.18.5.12 Protecting SSH from brute force attack 2.18.6 Rsync Daemon 2.18.6.1 How to install the Rsync Daemon for remote backup and restoration of les 2.18.7 Enable SSH Banner 2.18.8 DHCP Server 2.18.8.1 How to install DHCP Server for automatic IP addresses assignment 2.18.9 Backup Ubuntu System 2.18.9.1 Sbackup 2.18.9.2 Dar and Kdar 2.18.10 Ubuntu Feisty LAMP Server 2.18.11 Database Server 2.18.11.1 How to install MYSQL Database Server 2.18.11.2 MySQL Database backup using AutoMySQLBackup 2.18.11.3 How to install MYSQL Administrator 2.18.11.4 How to install MySQL Query Browser (SQL Client) 2.18.11.5 How to install Oracle Database XE 2.18.12 Apache HTTP Server 2.18.12.1 How to install Apache HTTP Server for HTTP (Web) Server service 2.18.12.2 How to install PHP for Apache HTTP Server 2.18.12.2.1 How to install PHP5 2.18.12.2.2 Installing recommended modules 2.18.12.3 How to install MYSQL for Apache HTTP Server 2.18.12.4 How to install Python for Apache 2 2.18.12.5 How to map URLs to folders outside /var/www/ 2.18.12.6 How to change the default port number for Apache HTTP
14 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Server 2.18.12.7 How to parse RSS into PHP for Apache HTTP Server 2.18.13 FTP Server 2.18.13.1 How to install FTP Server for File Transfer service 2.18.13.2 How to congure FTP user to be "jailed" (chrooted) into their home directory 2.18.13.3 How to congure FTP Server to allow anonymous FTP user to read only 2.18.13.4 How to congure FTP Server to allow anonymous FTP user to read/write 2.18.13.5 How to map anonymous FTP user to folders outside /home/ftp/ 2.18.13.6 How to change the default port number for FTP Server 2.18.13.7 How to ftp into remote Ubuntu host from a Windows client machine 2.18.13.8 How to FTP to a remote Windows host from an Ubuntu client machine 2.18.13.9 How to congure your NAT/router/gateway/rewall for FTP server 2.18.14 Personal Apt Repository 2.18.14.1 Setting Up Repository 2.18.14.2 Updating Repository 2.18.15 Streaming Media Server 2.18.15.1 How to install GNUMP3d for Streaming Media Server service 2.18.15.2 How to change the default directory containing multimedia les for GNUMP3d 2.18.15.3 How to change the default port number for GNUMP3d 2.18.15.4 How to enable downmixing support (for streaming outside your LAN) 2.18.15.5 How to downmix MP3 to Ogg Vorbis (better quality) 2.18.15.6 How to add downmixing support for FLAC audio 2.18.15.7 How to add downmixing support for AAC/MPEG-4 audio 2.18.16 Groupware (Email/Calendaring) 2.18.16.1 How to install Meldware Communication Suite 2.18.17 Image Gallery Server 2.18.17.1 Gallery1 2.18.17.1.1 How to install Gallery1 for Image Gallery Server service 2.18.17.1.2 How to congure Gallery1 to be accessible via Internet (Hostname or x IP) or LAN (x IP) 2.18.17.1.3 How to congure Gallery1 to be accessible via LAN (dynamic IP) 2.18.17.1.4 How to backup/restore Gallery1 data 2.18.17.2 Gallery2 2.18.17.2.1 How to install Gallery2 2.18.17.2.2 How to congure Gallery2 2.18.18 How to install Subversion version control server (with Apache
15 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
support) 2.18.19 How to install Subversion version control server (svnserve) 2.18.20 PhpGedView Server 2.18.20.1 How to install PhpGedView Server 2.18.20.2 How to congure PhpGedView with MySQL 2.19 Troubleshooting 2.19.1 How to disable system time/date from being reset to UTC (GMT) 2.19.2 How to congure sound to work properly in GNOME 2.19.3 How to forcefully empty Trash in GNOME 2.19.4 How to remove duplicate menu/menu items in GNOME 2.19.5 How to refresh Places menu in GNOME (if mounts to /media/ in /etc/fstab does not show up) 2.20 Requests 2.20.1 Guide Development
General Notes
1. This is an Unocial Ubuntu 7.04 (Feisty Fawn) Starter Guide. It is neither associated with Ubuntu nor with Canonical Ltd. 2. This guide can be discussed at the ocial UbuntuGuide.org Forum (http://www.ubuntuforums.org/forumdisplay.php?f=78) at ubuntuforums.org. Stop by and join the discussion. 3. If you see a bluish box, this means you have to execute the commands in Terminal mode (Applications -> Accesories -> Terminal) or use the content of that box as mentioned in some other instructions. 4. To reduce typo mistakes, copy and paste the commands into Terminal mode (right click on the commands -> "Copy" or "Paste". You can also use Ctrl+C to copy and Shift+Insert to paste it) 5. "sudo" means substitute user do. "sudo" will prompt for your "Password:". Please specify your user password. You could for example substitute for anouther user on your system - eg sudo -u peter <command> would run a command as user peter on your system. 6. If you want more information about any command, simply look at the manual page for it using the "man" command. For example, "man sudo" will display the manual page for the "sudo" command. 7. If you are tired of typing "apt-get" all the time, use the synaptic package manager, a front end to apt-get. 8. "aptitude" and "wget" requires Internet connection to install/update/download programs 9. All references to "aptitude" will be replaced with "apt-get". You may still use "aptitude" if you wish, however could cause dependency issues. 10. To download a le, right click on the link -> Select "Save Link As..." -> Make sure le name and extension are correct 11. If you wish to help translating Ubuntu to your native language or to help Ubuntu otherwise visit https://launchpad.net/
16 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
12. May the "humanity to others" spirit be with you always .....
If you are using 64-bit version replace any "i386" with "amd64"
Desktop environments
Where to view Ubuntu screenshots / screencast
This is the Gnome based desktop environment, which is the default for Ubuntu. Ubuntu 7.04(Feisty Fawn) Screenshots Tour (http://www.debianadmin.com/ubuntu704feisty-fawn-screenshots-tour.html) Ubuntuclips.org - video howto's for human beings (http://ubuntuclips.org/) Ubuntu Video - linux videos for human beings (http://www.ubuntuvideo.com/)
The system will ask you if you want to use kdm or gdm. gdm is recommended.
System -> Quit -> Log Out
17 of 242
10/14/2011 02:47 PM
http://ubuntuguide.org/wiki/Ubuntu:Feisty
If you did not use that command, then see this tutorial (http://www.psychocats.net/ubuntu /puregnome) .
If you did not use that command, then see this tutorial (http://www.psychocats.net/ubuntu /puregnome) .
18 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
19 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to change the USplash Screen when you boot or shutdown the computer
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.
Feisty doesn't oer a way to edit the directory for the images graphically. To set the image directory create a le called .xscreensaver in your home folder (if it doesn't exist allready) and place the key 'imageDirectory: /path/to/your/pictures' in it. You might also want to add the key 'chooseRandomImages: True'. If you had a preview running while editing you'll have to reset GLSlideshow by selecting another screensaver and the reselecting it.
cd ~ echo "imageDirectory: /path/to/your/pictures" >> .xscreensaver echo "chooseRandomImages: True" >> .xscreensaver
You can edit the behaviour of GLSlideshow using the le /usr/share/applications /screensavers/glslideshow.desktop. Where it (usually) says 'Exec=glslideshow -root' you can set options by adding parameters which control things like how long every image should be shown, how much you want to have it move or how long the transition between pictures should be. GlSlideshow has it's own manpage where all the options can be found (man glslideshow). However, these changes can only be done as root!
20 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
And again, if you had preview running it will only show these changes after having selected another screensaver and reselecting
sudo gedit /usr/share/applications/screensavers/glslideshow.desktop find the line where it says Exec=glslideshow -root and replace it with something like Exec=glslideshow -root -duration 16 -pan 6 -fade 6 -zoom 60
If you do not see the Terminal menu item, then add it to your menu:
Right click Applications-->Edit menus-->Accessories-->Terminal (checked)
3-D Desktops
Compiz / Desktop Eects In Feisty, Compiz has been installed. It is still experimental, though, and many eects do not work for many users. To access some eects from the menu:
System--> Preferences --> Desktop Effects
21 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
To change the compiz conguration (not recommended at this time): Enable the Conguration Editor menu item:
Right Click Applications-->Edit Menus-->System Tools-->Configuration Editor (checked)
OpenCompositing: Beryl and Compiz Beryl has been discontinued as of March 2007, but is still supported. Beryl and Compiz are being (re-)merged, under the OpenCompositing banner. Visit OpenCompositing.org (http://www.opencompositing.org/) for more info. Compiz is installed by default in Feisty. A full installation guide with specic instructions for nVidia, ATI, and Intel graphics card can be found at the Compiz documentation (http://www.compiz.org/Documentation /Documentation) site. Instructions for obtaining the newest version are available at Compiz Ubuntu Installation Guide (http://www.compiz.org/Ubuntu_Installation_Guide) . If compiz is not installed, install it from Synaptic Package Manager or from the command line terminal:
gksudo apt-get install compiz
How to install Compiz Fusion (Universal) https://help.ubuntu.com/community/CompositeManager/CompizFusion Reboot. If any plugins fail or freeze, Restart X (Ctl+Alt+Backspace) and then disable them from the (System->Preference->CompizCong Settings Manager). Alternatively, do so by pressing (Alt+F2) and typing "ccsm". If this does not x the problem, Reboot. You should have 512 MB RAM and an acceptable graphics card. TO check your graphics card, type: glxinfo | grep direct in a terminal, and see if it says direct rendering: Yes Misc: PaintFire is (Super [Windows, Mac Apple Key] + Alt + Mouse, and Super + Alt + C to clear) --- Background Info: Compiz Fusion is eyecandy that puts Mac OSX and Vista Ultimate to shame.
22 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
To start compiz fusion at startup, goto System->Preferences->Settings click "Add" and type "compiz --replace". The Wikipedia Entry: http://en.wikipedia.org/wiki/Compiz_Fusion The Home Page: http://compiz.org/ Problems: As with all software, there are compatibility issues and freak accidents. This could hurt your computer, fair warning. As a trend though, Compiz Fusion has turned out to be a lot more stable than Beryl or Compiz. I will say that the guide above and Forlong's Blog have been 200% more successful than many others I have followed. The rst problem everyone has is Video. That's ne; http://thedarkmaster.wordpress.com /2007/08/10/solving-video-playback-problems-in-compiz-fusion-beryl/ it includes xes for Totem/GStreamer, VLC, MPlayer, Xine/Kaeine etc.. The most annoying problem I've had with Compiz Fusion was it maxing out CPU usage. The problem turned out to be emerald, but that was only after I reinstalled and recongured the desktop-eects app as well as all of the compiz les. This guide (http://forlong.blogage.de/article/2007/8/26/The-best-way-to-install-Compiz-Fusionon-Ubuntu-Feisty) is much more in-depth comprehensive than the rst one that I posted, but requires thinking. It does mention sexy-python, a package for getting cooler buttons. It lets you have more understanding of what is happening and therefore oers more exibility. If you're not in a hurry, this would be the ideal way to install Compiz Fusion. OK. If you run into the situation when you know you got all of the right drivers, graphics card, RAM amount, CPU power, and everything else but you still can't get Compiz Fusion to work after searching all of Google and http://ubuntuforums.org; goto Synaptic and search "compiz". Uninstall everything. Search "emerald" and do the same. Follow the above Forlong's blog CAREFULLY again. And if the desktop-eects package is accidentally uninstalled, reinstall it. A common bug link is posted. This involves no cube and or only one desktop. Read all associated bugs to pinpoint your needs; https://bugs.launchpad.net/ubuntu/+source /desktop-eects/+bug/89786. When using Compiz Fusion for the rst time, I found it much better to run the "compiz --replace" and the "emerald --replace" commands separately. If this will not work for you, combine them as "compiz --replace -c emerald --replace&"
For an introduction to Beryl, read Beryl (Wikipedia) (http://en.wikipedia.org /wiki/Beryl_%28window_manager%29) Read: #General Notes Read #How to add extra repositories These are legacy instructions and may not work. Always try the Ubuntu compiz package rst.
23 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Please note: There are 2 ways of installing Beryl for ATI Cards: one using open source modules and one using proprietary modules. Try the open source method rst; uninstall steps are listed in case it does not work, or if you would like to try the proprietary drivers instead, afterwards. (They may have better frame rates and may support your card better.)
Install Beryl using Open Source drivers
This works on a 64 bit system as well This works with older ATI cards This method uses the open source radeon drivers. This method uses AIGLX. If direct rendering is not working for you yet, rendering will be slow until you can get that up and running. Read #How to add extra repositories. Add this to your repository list (or directly to /etc/apt/sources.list using gedit):
deb http://ubuntu.beryl-project.org/ feisty main
Add the GPG key for the repository and update the packages list:
wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add gksudo apt-get update
Under "Module" section, make sure that the following lines are included (add them if they are not):
Load "dri" Load "vbe" Load "glx"
Reboot. (Don't restart X only. I had odd things happen to me when I skipped rebooting.) Install the beryl window manager:
gksudo apt-get install beryl beryl-manager beryl-manager --no-force-window-manager
24 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
This will start beryl but wont activate it yet. Change the setup to include AIGLX:
Right click on the diamond near the clock-->Advanced Beryl Options Window Manager: Metacity(GNOME) Rendering Path: copy Advanced-->Change Rendering Platform: AIGLX.
Right click the diamond-->Select Window Manager: Beryl If it all works and you can spin the cube ok, etc., then change the rendering path back to automatic. If it doesn't work properly, reboot and re-start beryl:
beryl-manager --no-force-window-manager
Reboot.
Uninstall Beryl (open source installation)
If the open source installation method did not work, revert by following these steps: Drop to console outside GUI. Type:
rm ~/.config/autostart/beryl-manager.desktop
This removes beryl from startup. Copy your originally saved xorg.conf le back.
gksudo cp -p /etc/X11/xorgold.conf /etc/X11/xorg.conf
Reboot. Run the nautilus le browser. Show hidden les. Browse to your user's home directory and delete the .beryl and .emerald folders, and the .beryl-managerrc le. This can be done from the command line as well:
rm -r ~/.beryl rm -r ~/.emerald rm ~/.beryl-managerrc
25 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
For more info:ubuntuforums discussion (http://ubuntuforums.org /showthread.php?t=399643&highlight=beryl+200m+feisty) This has been tested for 32-bit version only. The ATI fglrx driver will not support the built-in Compiz features in Ubuntu. Install Xgl to run the new version of Beryl with an ATI card:
gksudo apt-get install xserver-xgl
If you are missing your shutdown and restart buttons, use this instead:
#!/bin/sh Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer & DISPLAY=:1 cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)" xauth -i add :1 . "$cookie" exec dbus-launch --exit-with-session gnome-session
26 of 242
10/14/2011 02:47 PM
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Disable the universe repositories (these provide Beryl software that is incompatible with the fglrx driver):
System > Administration > Software Sources Uncheck Community-maintained Open Source software (universe)
Read #How to add extra repositories. Add this to your repository list (or directly to /etc/apt/sources.list using gedit):
deb http://ubuntu.beryl-project.org/ feisty main
Add the GPG key for the repository and update the packages list:
wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add gksudo apt-get update
Install Beryl:
gksudo apt-get install beryl
Reboot. Choosing Xgl from the Sessions list at your login screen. Then test Beryl:
beryl-manager emerald --replace
Right-click on the black diamond next to the clock-->Select Windows Manager: Beryl
27 of 242
10/14/2011 02:47 PM
http://ubuntuguide.org/wiki/Ubuntu:Feisty
If you are using ATI with XGL, you'll may get an error that beryl-xgl is missing. Download beryl-core:
wget http://ubuntu.beryl-project.org/pool/feisty/main/0.2.0/beryl-core_0.2.0~0beryl1_i386.deb
Unpack beryl-xgl to ~/Desktop and copy the module to the appropriate directory:
gksudo cp ~/Desktop/beryl-xgl /usr/bin/beryl-xgl
If you are having problems with multiple users in XGL,see this thread (http://ubuntuforums.org/showthread.php?t=323715) . Add Beryl and the Emerald themes to your start-up programs:
System > Preferences > Sessions New-->Name: Beryl Command: beryl-manager New-->Name: Emerald Theme Command: emerald --replace
Re-enable your universe repositories, but make sure you do not let it update anything related to Beryl.
How to install Beryl (Nvidia)
For an introduction to Beryl, read Beryl (Wikipedia) (http://en.wikipedia.org /wiki/Beryl_%28window_manager%29) Read #General Notes Read #How to add extra repositories These are legacy instructions and may not work. Always try the Ubuntu compiz package rst. Read Beryl and Nvidia Drivers Installation Steps (http://www.ubuntugeek.com/how-toinstall-beryl-with-latest-nvidia-drivers-in-ubuntu-feisty-fawn.html) Read Howto Fix Beryl Workspaces Problem in Feisty Fawn (http://www.ubuntugeek.com/x-for-beryl-worspaces-problem-in-feisty-fawn.html) Back up xorg.conf:
gksudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup gksudo gedit /etc/X11/xorg.conf
28 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Restart X-Windows and conrm Nvidia Drivers are working correctly. Install Beryl:
gksudo apt-get install beryl emerald-themes beryl-manager
Start Beryl:
beryl-manager
Reboot. If program menus aren't displaying in the correct layer (you can't see them when you select them because they are displaying behind the window):
Right click on the Beryl Manager icon-->Reload Window Manager
The problem should be solved the next time you reboot. If your windows have no title bar (with the minimise, maximise and close buttons) or borders, edit /etc/X11/xorg.conf conguration le:
gksudo gedit /etc/X11/xorg.conf
(See this page (http://forum.beryl-project.org/viewtopic.php?f=35&t=1631) for more details.) If you are using a NVIDIA GeForceGo graphics card you may also need to add to the Device section of /etc/X11/xorg.conf:
29 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
If that still doesn't help then right click on the beryl diamond icon by the clock and select
advanced beryl options-->rendering platform: force AIGLX
See bug 96226 (https://bugs.launchpad.net/ubuntu/+source/beryl-core/+bug/96226) You will need to change video driver from xv to x11 in ~/.mplayer/cong and gstreamer-properties.
How to x black windows during video playback
There is a workaround to this bug by changing the video output device on your video player to x11/xshm. (Note that this will decrease the quality of the video output and requires a lot more CPU.) For gstreamer-dependent players (Totem, etc.):
gstreamer-properties Video-->Default Video Plugin: X Window System (No Xv)
Click Test to verify that video playback is working (you should be able to see the standard TV testing colour stripes). For VLC player(if installed):
VLC-->Settings-->Preferences Video-->Output modules-->Advanced: X11
Some users report that MPlayer may not be able to show videos in full screen. For Xine player (if installed):
Xine-->File-->Configure-->Preferences experience_level: Master Of The Known Universe Video-->Driver: xshm
30 of 242
10/14/2011 02:47 PM
http://ubuntuguide.org/wiki/Ubuntu:Feisty
For more info: Video playback problems(black) after installing Beryl (or Compiz)/February 23rd, 2007 (http://simos.info/blog/archives/594) and Re: Movies minus blue background/May 3rd, 2007 (http://ubuntuforums.org /showpost.php?p=2587563&postcount=2)
How to improve sub-pixel font rendering for Feisty
This will improve the appearance of fonts. The patched libraries are built against Freetype 2.3.x (not currently in Feisty) and include David Turner's sub-pixel rendering patches. For i386, read #How to add extra repositories and add the following to the repository list (or directly to /etc/apt/sources.list using gedit):
deb http://www.telemail.fi/mlind/ubuntu feisty fonts deb-src http://www.telemail.fi/mlind/ubuntu feisty fonts
For AMD64/EMT read #How to add extra repositories and add the following to the repository list (or directly to /etc/apt/sources.list using gedit):
deb http://ubuntu.moshen.de feisty experimental deb-src http://ubuntu.moshen.de feisty experimental
Note: 25th July 2007 - This repository doesn't work. Install the font packages
gksudo apt-get update gksudo apt-get install libfreetype6 libcairo2 libxft2
Recongure font settings. The following settings work well: Native, Automatic, No bitmapped fonts.
gksudo dpkg-reconfigure fontconfig-config gksudo dpkg-reconfigure fontconfig
31 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Reboot your computer or restart X-Windows to see the changes take eect. Note: If you later decide to go back to Ubuntu packages, you must downgrade all three installed packages. For more info: see here (http://ubuntuforums.org /showthread.php?t=343670) .
How to congure GLSlideshow
Save it and test the screensaver by locking your screen. You'll see your images, but it will repeat the same one over and over. To x this, change your glslideshow.desktop conguration le:
gksudo gedit /usr/share/applications/screensavers/glslideshow.desktop
Save and try the screensaver again. You should see all of your images in a randomordered slideshow. More info here (http://rclermont.blogspot.com/2007/02/modifying-glslideshowsettings-in_28.html)
How to install Compiz-Fusion (a Compiz-Beryl fusion)
Read: #General Notes Read #How to add extra repositories and add this repository (or edit your /etc/apt /sources.list using gedit to include):
deb http://download.tuxfamily.org/3v1deb feisty eyecandy deb-src http://download.tuxfamily.org/3v1deb feisty eyecandy
32 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Reload sources:
gksudo apt-get update gksudo apt-get -y upgrade
Under the Module section "Module", include the following lines, if they are not already there:
Load "dri" Load "vbe" Load "glx"
Reboot the system (Don't restart X only. This gives problems). Install Compiz for Gnome:
Run Compiz:
compiz --replace
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Project Looking Glass This is a 3-D window manager based on Java technology. Read Getting Started with Project Looking Glass (https://lg3d.dev.java.net/lg3dgetting-started.html) A .deb package is available for download.
Method 2: Step By Step Upgrade Guide with Screenshots (http://www.ubuntugeek.com/upgradeubuntu-610-edgy-eft-to-ubuntu-704-feisty-fawn-2.html) How to Upgrade Ubuntu Edgy Server to Feisty Server (http://www.ubuntugeek.com /upgrade-ubuntu-server-610-edgy-eft-to-704-feisty-fawn.html) Upgrade from Dapper Drake to Edgy Eft to Feisty Fawn Method 1: System-->Administration-->Update Manager. You can upgrade from Dapper to Edgy. Once you have done the upgrade to Edgy, then repeat the process to upgrade from Edgy to Feisty. Do not upgrade directly from Dapper to Feisty -- your system will fry (the fried feisty fawn OS). Method 2: Read Upgrade from Ubuntu Dapper or Edgy to Feisty Fawn (http://www.urbanpuddle.com/articles/2007/05/23/upgrade-from-ubuntu-dapperor-edgy-to-feisty-fawn)
Select Important Security Updates and Recommended Security Updates and any other desired updates. Choose frequency of updates.
34 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Read #General Notes Read #How to add extra repositories From the command line:
sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade
Check the repositories you think you will need (main, universe, restricted, multiverse). You probably won't need the 'sources' repository. Add any third-party repositories. Such repositories are not monitored in any way. Some are quite popular, however. Use any third-party repository at your own risk.
System-->Administration-->Software Sources-->Third-party software-->Add
Add the name of your repository. In this example, we will use Medibuntu, a popular third-party repository not aliated with Ubuntu in any way.
APT line: deb http://packages.medibuntu.org/ feisty free non-free
Download any needed gpg keys and add them to the keylist. This key veries the repository to your system. The Medibuntu repository (not aliated with Ubuntu) example is shown:
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -
35 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Manual updates are at your own risk. Mixing incompatible repositories can break your system. Create a backup of your current list of sources, overwriting any previous backup.
sudo cp -i /etc/apt/sources.list /etc/apt/sources.list_backup
Edit the repositories in the sources.list similar to this template: To use your local mirror you can add "cc." before archive.ubuntu.com, where cc = your country code e.g. deb http://lv.archive.ubuntu.com/ubuntu feisty main restricted universe multiverse
## See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to ## newer versions of the distribution. ## Add comments (##) in front of any line to remove it from being checked. ## Use the following sources.list at your own risk. ## Uncomment deb-src if you wish to download the source packages ## If you have a install CD you can add it to the reposity using 'apt-cdrom add' ## which will add a line similar to the following: #deb cdrom:[Ubuntu 7.04 _Feisty Fawn_ - Beta i386 (20070322.1)]/ feisty main restricted deb http://us.archive.ubuntu.com/ubuntu/ feisty main restricted #deb-src http://us.archive.ubuntu.com/ubuntu/ feisty main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://us.archive.ubuntu.com/ubuntu/ feisty-updates main restricted #deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-updates main restricted ## 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/ feisty universe #deb-src http://us.archive.ubuntu.com/ubuntu/ feisty universe ## 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 ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://us.archive.ubuntu.com/ubuntu/ feisty multiverse #deb-src http://us.archive.ubuntu.com/ubuntu/ feisty multiverse ## Uncomment the following two lines to add software from the 'backports' ## repository. ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://us.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse #deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu feisty-security main restricted
36 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty #deb-src http://security.ubuntu.com/ubuntu feisty-security main restricted deb http://security.ubuntu.com/ubuntu feisty-security universe #deb-src http://security.ubuntu.com/ubuntu feisty-security universe deb http://security.ubuntu.com/ubuntu feisty-security multiverse #deb-src http://security.ubuntu.com/ubuntu feisty-security multiverse
http://ubuntuguide.org/wiki/Ubuntu:Feisty
## PLF REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.) ## Medibuntu - Ubuntu 7.04 "feisty fawn" ## Please report any bug on https://launchpad.net/products/medibuntu/+bugs deb http://packages.medibuntu.org/ feisty free non-free #deb-src http://medibuntu.sos-sts.com/repo/ feisty free non-free ## CANONICAL COMMERCIAL REPOSITORY (Hosted on Canonical servers, not Ubuntu ## servers. RealPlayer10, Opera, DesktopSecure and more to come.) deb http://archive.canonical.com/ubuntu feisty-commercial main ## enlightenment e17 beta, use at your own risk ## E17 is in Beta and may break or break your system #deb http://edevelop.org/pkg-e/ubuntu feisty e17 #deb http://e17.dunnewind.net/ubuntu feisty e17 #deb-src http://edevelop.org/pkg-e/ubuntu feisty e17
Download any needed gpg keys and add them to the keylist. The Medibuntu repository (not aliated with Ubuntu) example is shown:
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -
Here is another example using the Enlightenment repository (not aliated with Ubuntu):
wget -q http://lut1n.ifrance.com/repo_key.asc -O- | sudo apt-key add -
Other third-party repositories are listed at: http://www.ubuntulinux.nl/source-o-matic or http://3v1n0.tuxfamily.org/blog/lista-repository-sourceslist-ottimizzata-per-ubuntukubuntu-linux/ Adding a CD-ROM or DVD repository How to add the (k)ubuntu CD or DVD as a repository for sources.list Insert the CD or DVD and in the terminal write:
sudo apt-cdrom add
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Applications-->Add/Remove...
Search for the sort of program you want to add. Example: type MP3 to see a list of mp3 software. Check the box next to the software. Click the "Apply" button. It will show you a list of the software packages that it will install. Click OK. Synaptic Package Manager Synaptic Package Manager provides access to many more programs and modules than does Add/Remove programs. It installs programs with their associated dependencies, and does so with a very usable GUI interface. It is the standard method of adding packages in Ubuntu.
System-->Administration-->Synaptic Package Manager
Search for the sort of program you want to add. Example: type MP3 to see a list of mp3 software. Check the box next to the software. Click the "Apply" button. It will show you a list of the software packages that it will install. Click OK. Automatix2 Warning: Automatix2 is a proprietary script that tries to install some software, and is known to fail and break systems. The Ubuntu community WILL NOT provide support for it, and strongly discourages its use. Problems caused by Automatix are often hard to track and solve, and it may result in having to reinstall your entire Ubuntu system. Ubuntu/debian developers have reviewed automatix and found it to be quite dangerous. See the review here (http://mjg59.livejournal.com/77440.html) . Use Automatix at your own risk. Some users report successful use when installing it right after a fresh install of Ubuntu, with no Adept or Synaptic package update, or any other software installed. The apt-get method may be less prone to mishaps, but use at your own risk. Obtain the latest package here (http://getautomatix.com/wiki/index.php?title=Installation) . For normal (i386) systems, get this package:
http://www.getautomatix.com/apt/dists/feisty/main/binary-i386/automatix2_1.1-4.7-7.04feisty_i386.deb
38 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Automatix2 is available in Applications > System Tools > Automatix Automatix2 Installation guide with Nice Screenshots (http://www.ubuntugeek.com /install-popular-applications-in-ubuntu-feisty-fawn-using-automatix2.html)
Install Automatix using apt (alternate method)
echo "deb http://www.getautomatix.com/apt feisty main" | sudo tee -a /etc/apt/sources.list wget http://www.getautomatix.com/keys/automatix2.key gpg --import automatix2.key gpg --export --armor E23C5FC3 | sudo apt-key add sudo apt-get update sudo apt-get install automatix2
39 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
For more info see the ocial APT guide here (http://www.debian.org/doc/manuals /apt-howto/ch-apt-get.en.html) .
Add-On Applications
Working with archives and packages
Some programs are not available in Ubuntu repositories. They may be available as Debian (.deb) packages (Ubuntu is based on Debian), may be archived in tar, gzip, and gzip archives, or may only be available as source code packages. Handling ".tar.gz" (Tar/GZip) Archives To extract:
tar xvzf package.tar.gz
Note: tar extracts les from an archive. It cannot decompress them. -x means extract. -v means verbose (with a list of what is extracted). -f species the le to use. -z means lter through gzip. (gzip compresses/decompresses the archive, not tar.) Alternatively, you could decompress a package (ending in .gz) rst by using the command gzip, then extract the resulting .tar le. You would then not have to specify the -z switch. To create:
tar cvfz package.tar.gz folder
To create:
tar cvjf package.tar.bz folder
40 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to compile a program from source code Make sure you have all the neccesary development tools (i.e. libraries, compilers, headers):
gksudo apt-get install build-essential gksudo apt-get install linux-headers-`uname -r`
"uname -r" lists the current kernel you are using. Extract your package (as detailed above)
tar xvzf package.tar.gz
(Note - typing ./ before a lename tells unix to execute the le as an application.) Create an Ubuntu (Debian) package (.deb) Install package tools:
gksudo apt-get install checkinstall
41 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Keep the resulting ".deb" le for future use. It can be installed using:
gksudo dpkg -i package.deb
Note: These are basic instructions that may not always work. Some packages require additional dependencies and optional parameters to be specied in order to build them successfully.
Utilities
How to handle rar les
sudo apt-get install unrar
(This is a 30 day trial, but you can click 'maybe later' and continue using WinRAR.) How to install an IP address calculator Gip is an IP address calculator that integrates with the Gnome desktop. For info: Simple GIP Installation Guide (http://www.ubuntugeek.com/gip-ip-calculatorfor-gnome-desktop-environment.html) How to install Firefox Widgets Firefox Widgets improves Firefox's components (such as buttons, radio buttons, text boxes, text areas, and many others) by making them look much cleaner and better. For info: Firefox Widgets (http://ubuntuforums.org/showthread.php?t=369596) Keeping your clock synchronized with time servers From the menu:
System-->Administration-->Time and Date
42 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
For single synchronization, click 'Synchronize Now'. To keep synchronized with an Internet Time Server:
Configuration: Keep synchronized with internet time servers Install NTP support (when prompted)
To manually install the ntp package (which synchronizes with internet time servers) (instead of above method):
sudo apt-get install ntp
You do not need to congure anything if you install ntp from the command line, as it automatically sets itself up to update with Ubuntu's clock. To immediately synchronize the clock:
Right click on the panel clock-->Adjust Date and time
How to Set Flickr Images as Ubuntu Feisty Wallpaper (Warning: This is a private website and is not aliated with Ubuntu, Flickr, or any known ocial repository. These instructions direct you to download and install a private program. Use at your own risk.) For more info: Webilder website (http://www.webilder.org/) Edit /etc/apt/sources.list le:
gksudo gedit /etc/apt/sources.list
If your are using the Gnome Desktop then run this command:
sudo apt-get install webilder webilder-gnome
If you are using the KDE Desktop then run this command:
sudo apt-get install webilder webilder-kde
43 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Under "Utility" near the bottom, you need select "Webilder Webshots Applet" and click on "Add" You should see one small camera icon added to your desktop panel Right-click on Flickr and select "Preferences" to edit it. Ocial Website: http://www.ickr.com/ Please click for features and photos of the installation process (http://onlyubuntu.blogspot.com/2007/06/howto-set-ickr-images-as-ubuntu.html)
Browser plug-ins
How to install Java J2SE Runtime Environment (JRE) with Plug-in for Mozilla Firefox Read #General Notes Read #How to add extra repositories (Note: The sun-java6 and sunjava6-plugin modules are also automatically installed as part of the ubuntu-restricted-extras meta-package. You can install ubuntu-restrictedextras instead, using the Synaptic Package Manager (or by using apt-get install from the command line terminal). This will install not only Sun Java but also Adobe Flashplayer, msttcorefonts (Microsoft fonts), and some multimedia codecs as well.) Install using command line:
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
There's no 64-bit refox plugin for AMD64. A 32-bit refox is necessary. Ubuntuforums provides special scripts (http://ubuntuforums.org /showthread.php?t=202537) for conguring some 32-bit applications in amd64. An alternative for amd64 is to use blackdown Java. However it is buggy and not all Java applications work. It is also a closed source application. It has been the default Java application for distributions like Gentoo, however.
sudo apt-get install j2re1.4-mozilla-plugin
This installs blackdown Java. How to install Flash Player (Macromedia Flash) Plug-in for Mozilla Firefox There is a free open source Flash replacement called GNASH (see below). This can be used instead of Flash.
Install using Synaptic Package Manager or apt-get
44 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
(Note: The ashplugin-nonfree module is also automatically installed as part of the ubuntu-restricted-extras meta-package. You can install ubuntu-restricted-extras instead, using the Synaptic Package Manager (or by using apt-get install from the command line terminal). This will install not only Adobe Flashplayer but also msttcorefonts (Microsoft fonts), Sun Java, and some multimedia codecs as well.)
System-->Administration-->Synaptic Package Manager-->Search-->flashplugin-nonfree-->Mark for installation
Visit Adobe.com: Version test for Adobe Flash Player (http://www.adobe.com/cfusion /knowledgebase/index.cfm?id=tn_15507) . Follow the steps for installation.
Install from tarball (method 3)
There are cases in which plugins reside in /usr/lib/ashplugin-nonfree/. In this case, verify that there is a link pointing to /usr/lib/ashplugin-nonfree/ instead of /usr/lib /refox/plugins :
cd /usr/lib/firefox/plugins/ ls -las flashplayer.xpt -> ../../flashplugin-nonfree/flashplayer.xpt libflashplayer.so -> ../../flashplugin-nonfree/libflashplayer.so
If sound doesn't work in Flash Player (for example on YouTube), then edit the conguration le:
sudo apt-get install alsa-oss gksudo gedit /etc/firefox/firefoxrc
45 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Change:
FIREFOX_DSP=""
to:
FIREFOX_DSP="aoss"
Restart Firefox. Note: This method doesn't work for amd64, since there is no 64-bit Firefox plugin. A 32-bit Firefox is necessary. Ubuntuforums provides special scripts (http://ubuntuforums.org /showthread.php?t=202537) for conguring some 32-bit applications in amd64. If after trying the above you still don't have sound in Flash try PulseAudio: How to setup PulseAudio Sound Server (http://ubuntuguide.org /wiki/Ubuntu:Feisty#How_to_setup_PulseAudio_Sound_Server) I found that PulseAudio can be a better solution, and, using it, Firefox can share the sound with other apps at the same time. GNASH open source alternative Gnash is an open source alternative for the Flash player. It does not yet play all videos. More information here (http://www.gnu.org/software/gnash/) . Install Gnash:
sudo apt-get install mozilla-plugin-gnash
64 bit users please note - this is a better workaround than installing 32 bit refox plugins. For most simple Flash functions (other than YouTube and Google Videos, for example), you can use this GPL version of Flashplayer within your browser. However, Gnash may not be fully functional for playing YouTube and Google Videos. For these, you may need to enable (in the Firefox settings) an external player such as VLC (see below). How to install Flash Player (Macromedia Flash) Plug-in for (64-bit) Mozilla Firefox (only) Read #General Notes Read #How to add extra repositories Uninstall all plugins (like Gnash) for refox that you have installed. Install compatibility modules:
sudo apt-get install ia32-libs ia32-libs-gtk linux32 lib32asound2
46 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Download the last version of .rpm les for the Plugin and Viewer from this site:
wget http://gwenole.beauchesne.info/projects/nspluginwrapper/files/nspluginwrapper-0.9.91.5-1.x86_64.rpm wget http://gwenole.beauchesne.info/projects/nspluginwrapper/files/nspluginwrapper-i386-0.9.91.5-1.x86_64.rpm
Install packages:
sudo dpkg -i nspluginwrapper-0.9.91.5-1.x86_64.deb sudo dpkg -i nspluginwrapper-i386-0.9.91.5-1.x86_64.deb
(Filenames might be slightly dierent) Download FlashPlayer from the Adobe site:
wget http://download.macromedia.com/pub/labs/flashplayer9_update/flashplayer9_install_linux_082207.tar.gz tar xf flashplayer9_install_linux_082207.tar.gz
Go into the directory of created from untar and copy the 2 les libashplayer.so into /usr/lib/mozilla-refox/plugins:
sudo cp libflashplayer.so /usr/lib/mozilla-firefox/plugins
Run nspluginwrapper:
nspluginwrapper -i /usr/lib/mozilla-firefox/plugins/libflashplayer.so sudo cp ~/.mozilla/plugins/npwrapper.libflashplayer.so /usr/lib/mozilla-firefox/plugins/
How to install Adobe PDF Reader with Plug-in for Mozilla Firefox Read Install Adobe PDF Reader with Plug-in for Mozilla Firefox (http://www.ubuntugeek.com/how-to-install-adobe-pdf-reader-with-plug-in-for-mozillarefox-in-feisty-fawn.html)
47 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to block Ads and Java/Javascripts in Firefox Firefox has many extensions and plugins. They can be accessed:
Mozilla Firefox-->Tools-->Add-ons-->Get extensions
This takes you to the Mozilla website for add-ons/plugins. Two of the most popular extensions provide signicant added security and browsing pleasure. NoScript blocks all Java and Javascript scripts by default unless you enable them for that page or website. You can whitelist pages temporarily or permanently. You can enable/disable some or all of the scripts on a page. This is far greater control than simply turning Java/Javascript on/o in the Firefox settings. Flashplayer scripts can be ltered by this method as well. Look for NoScript in the Popular Extensions sections and click on it to install. AdBlock Plus has a free built-in list to block ads. You can also add an ad to the block list by clicking on the ad. A free subscription to a service keeps the list updated. Look for AdBlock Plus in the Popular Extensions sections and click on it to install. I use Firefox with AdBlock Plus. Until recently, I never even knew that Ubuntuguide had ads on it! Streaming in FireFox Read Media Player Connectivity Plug-in for FireFox (https://addons.mozilla.org/en-US /refox/addon/446) . Install from extensions/plugins website for Firefox:
Mozilla Firefox-->Tools-->Add-ons-->Get extensions
W32codecs has the Microsoft multimedia codecs (WMV, AVI, etc). By installing it you
48 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
agree to Microsoft licensing terms. A third-party repository, such as Medibuntu, must be enabled as a software source. Read adding software sources using menu to enable Medibuntu. (Note: Medibuntu is not aliated with Ubuntu. Use at your own risk.)
sudo apt-get install w32codecs
Read #How to restart GNOME without rebooting computer Note: WMV9 codecs on amd64 currently seem to work only in VLC, the latest version of Mplayer (>= Version 1.0rc1), and Xine. How to install DVD playback capability Note: The gstreamer dvd plugin is available as part of gstreamer0.8-plugins but may have a few bugs. However, Totem can also work with the xine backend (instead of gstreamer) to play DVDs. (Xine-UI and Mplayer also use the xine backend). This method allows using xine with Totem. Read #General Notes Read #How to add extra repositories Install dvd modules:
sudo apt-get install libdvdread3 sudo /usr/share/doc/libdvdread3/install-css.sh
Install xine backend for Totem (if you are using Totem):
sudo apt-get install totem-xine
How to install MIDI sound server (Timidity++) Timidity allows for the playback of MIDI by those who do not have MIDI hardware or MIDI processing built into their sound card (most users) via a software synthesizer. Read #General Notes Read #How to add extra repositories You can install timidity from Synpatic Package Manager without additional steps.
49 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Set up Timidity to use ALSA for sound by default (assuming you are using ALSA):
gksudo gedit /etc/default/timidity
Reboot How to install multimedia plug-ins for Firefox Read #General Notes Read #How to add extra repositories Choose the plug-in that matches your preferred media player. If multiple or conicting plug-ins are installed, the desired plugins can be set using the Firefox menu:
Firefox Web Browser-->Edit-->Preferences-->Content-->FileTypes:Manage
#General Notes #How to add extra repositories #How to install Multimedia Codecs #How to install DVD playback capability
50 of 242
10/14/2011 02:47 PM
http://ubuntuguide.org/wiki/Ubuntu:Feisty
#General Notes #How to add extra repositories #How to install Multimedia Codecs #How to install DVD playback capability
Read #General Notes Read #How to add extra repositories See also:#How to install Multimedia Player (MPlayer)
sudo apt-get install mozilla-mplayer
Read #General Notes Read #How to add extra repositories See also: #How to install Multimedia Player (VLC)
sudo apt-get install vlc vlc-plugin-* mozilla-plugin-vlc
In order to stream video via vlc, you also need to install the following packages.
sudo apt-get install avahi-daemon sudo apt-get install avahi-utils
Read #General Notes Read #How to add extra repositories See also: #How to install Helix Multimedia Player
sudo apt-get install mozilla-helix-player helix-player
Multimedia Players
How to install Elisa Multimedia Player
51 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Fluendos Elisa is a free software media center application that can play your DVDs, video les, music, and pictures. Since it is designed for extensibility, Elisa has the potential to do much more. It does not handle television or video recording functions. Read #General Notes Read #How to add extra repositories Step By Step Installation Guide for Elisa Multimedia Player (http://www.ubuntugeek.com/how-to-install-elisa-media-center-in-ubuntu.html) How to install MPD Multimedia Playing Server MPD is a audio playing server. It acts as a digital jukebox allowing playlist management over the network. The computer with MPD running on needs to be connected to an Amplier (or similar) as it does not stream audio by default, it simply plays it. However, it can be congured to stream using Icecast and JACK. For more info: Music Player Daemon (MPD) (http://www.musicpd.org/) Read #General Notes Read #How to add extra repositories Install MPD:
sudo apt-get install mpd
Restart MPD
sudo /etc/init.d/mpd restart
Edit conguration:
sudo gedit /etc/mpd.conf
Install Gnome client (other desktop clients are available -- see wiki (http://www.musicpd.org/) ).
sudo apt-get install gmpc
Update/Install gmpc 0.15: If you want to install from source - you might wish to downgrade your checkinstall to version 1.6.0 from http://packages.ubuntu.com/edgy/admin/checkinstall. Or else, download the deb les from http://home.iitk.ac.in/~sudhansh/?Files. You will need to remove the original libmpd0 installed.
52 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
sudo apt-get remove --purge libmpd0 sudo apt-get install gmpc*.deb libmpd*.deb
Congure GMPC:
Applications > Sound & Video > Gnome Music Player Client Options-->set Host, Port and connection options-->
The default settings will connect to MPD running on "localhost". Set the "Autoconnect" option if required. The default MPD port is 6600, make sure you unblock this port on your rewall. Using GMPC: Playlist--> Expand the "Browse Filesystem" tree, right-click on your audio collection and click "Update". This will cause the MPD server to reindex your audio les. No les are changed during this process. When completed, navigate through your audio via the "Browse Filesystem" tree. Right-click on folders and tracks to add them to playlist, or manage existing playlist. How to install Xine-ui Multimedia Player Read #General Notes Read #How to add extra repositories Read #How to install Multimedia Codecs Read #How to install DVD playback capability Read How to install xine Multimedia Player (http://www.ubuntugeek.com/installxine-multimedia-player-in-ubuntu.html)
sudo apt-get install xine-ui sudo apt-get install libxine-extracodecs
How to install MPlayer Multimedia Player Read #General Notes Read #How to add extra repositories Read #How to install Multimedia Codecs Read #How to install DVD playback capability Read Mplayer Installation and Multimedia Codecs (libdvdcss2,w32codecs) in Ubuntu Feisty Guide (http://www.ubuntugeek.com/install-mplayer-and-multimedia-codecslibdvdcss2w32codecs-in-ubuntu-feisty-fawn.html)
sudo apt-get install mplayer libxine-extracodecs
53 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
SMPlayer is an MPlayer frontend. See SMPlayer (http://www.ubuntugeek.com /smplayer-nice-frontend-for-mplayer.html) . How to install VLC Multimedia Player Read #General Notes Read #How to add extra repositories
sudo apt-get install vlc vlc-plugin-*
In order to stream video via vlc, you also need to install the following packages.
sudo apt-get install avahi-daemon sudo apt-get install avahi-utils
Applications -> Sound and Video -> VLC Media Player How to install XMMS Multimedia Player Read #General Notes Read #How to add extra repositories Read #How to install Multimedia Codecs
sudo apt-get install xmms xmms-skins xmms-wma
Applications -> Sound & Video -> XMMS How to install Songbird Multimedia Player
54 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Read #General Notes Read #How to install Multimedia Codecs Download this installation script from Psychocats.net to your desktop: http://www.psychocats.net/ubuntu/installsongbird.sh Install from the command line terminal using the script:
cd Desktop chmod +x installsongbird.sh ./installsongbird.sh
Run:
Applications-->Sound & Video->Songbird
Download this installation script from Psychocats.net to your desktop: http://www.psychocats.net/ubuntu/removesongbird.sh Remove the program using the script:
cd Desktop chmod +x removesongbird.sh ./removesongbird.sh
How to install amaroK Multimedia Player Read #General Notes Read #How to add extra repositories Read #How to install Multimedia Codecs Note: Amarok is already installed if you are using KDE.
sudo apt-get install amarok
Note: If amaroK complains about the "dcopserver" program not running, follow this tip from http://www.ubuntuforums.org/showthread.php?t=107269&highlight=dcopserver
sudo chown -R `whoami`:`whoami` ~/.*
55 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to install Banshee Music Manager and Player Read #General Notes Read #How to add extra repositories Read #How to install Multimedia Codecs
sudo apt-get install banshee
How to install Listen Music Manager and Player Read #General Notes Read #How to add extra repositories Read #How to install Multimedia Codecs
sudo apt-get install listen
How to install Exaile! Music Manager and Player Read #General Notes Read #How to add extra repositories Read #How to install Multimedia Codecs
sudo apt-get install exaile
How to install RealPlayer 10 Multimedia Player (RealPlayer) The Linux Realplayer is based on open-source Helix player. Helix itself can be installed as a package easily (see below) and used instead of Realplayer but is unable to deal with streaming and real encoded data. These instructions are to install the proprietary version
56 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
of Realplayer only.
Install from real website
Read #General Notes Read #How to add extra repositories Download Realplayer's Ocial Linux Version (http://www.real.com/linux) Add execute permissions to the installer and run it:
chmod +x RealPlayer10GOLD.bin sudo ./RealPlayer10GOLD.bin
This installation uses deb le packaged as part of debian-multimedia project (kudos to Christian Marillat). open a terminal and type,
sudo apt-get install libstdc++5 wget -c http://www.debian-multimedia.org/pool/main/r/realplay/realplayer_10.0.8-0.1_i386.deb sudo dpkg -i realplayer_10.0.8-0.1_i386.deb
How to install Helix Multimedia Player Helix is the open-source package that plays Realplayer les. Realplayer is actually based on this package. Note: Currently it's not supported for 64-bit machines yet. You can install helix player by one of three methods. 1) Add/Remove programs.
Applications-->Add/Remove... Show: All open-source applications
Search for Helix and install Helix Media Player. Note: This does not install the Firefox plugin. You must do that by installing the mozillahelix-player package separately (see below). 2) Synaptic Package Manager:
System-->Administration-->Synaptic Package Manager
57 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
helix-player mozilla-helix-player
How to install Stream Directory Browser (streamtuner) Read #General Notes Read #How to add extra repositories
sudo apt-get install streamtuner streamripper
How to install Internet TV (Democracy TV / Miro) Democracy TV has been renamed Miro. This open source player allows you to play over 2000 channels, including podcasts, RSS feeds, YouTube, and video blogs. Read #Firewall. You need to make sure the ports used for the BitTorrent downloader in Miro are open. You can do this using Firestarter (the GUI for the Firewall). On installation, Miro uses ports 8400-8500 by default, but you can change them in the Options section of Miro. If you have a router, make sure your ports are forwarded. The previous version is available from the Ubuntu repositories: Install Democracy Player
sudo apt-get install democracyplayer
Run:
Applications-->Sound & Video-->Democracy TV
To get the newest version of Miro, see instructions here (http://www.getmiro.com /download/ubuntu.php) :
58 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Read #How to add extra repositories. Add this to your repository list (or directly to /etc/apt/sources.list using gedit). (It is an Ubuntu-aliated repository.):
deb http://ftp.osuosl.org/pub/pculture.org/miro/linux/repositories/ubuntu feisty/
Reload the sources if you are using Synpatic Package Manager, or from the command line:
gksudo apt-get update
Find and load the miro package in Synaptic Package Manager, or from the command line:
gksudo apt-get install miro
Internet Utilities
How to install P2P BitTorrent Client (Azureus) Read #General Notes Read #How to add extra repositories Read azureus Bittorrent Setup Guide including Screenshots (http://www.ubuntugeek.com/azureus-java-bittorrent-client-in-ubuntu.html) Install:
sudo apt-get install azureus
Run:
Applications-->Internet-->Azureus
Another BitTorrent client based o of Azureus is available at http://bittyrant.cs.washington.edu/ This client is called BitTyrant. It is designed to have faster download speeds when leeching, by leeching from the fastest provider, automatically. It actively seeks other BitTyrant users when leeching, and gives them preference when seeding, theoretically providing faster speeds, as well. It is not currently available in a .deb package. How to install P2P BitTorrent Client (Deluge) Read #General Notes
Installing Binary (Stable)
59 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Download dependencies, get latest source, build the source, and install
sudo apt-get install subversion build-essential python-all-dev python-all \ python-support libboost-dev libboost-thread-dev libboost-date-time-dev \ libboost-filesystem-dev libboost-serialization-dev \ libboost-program-options-dev libboost-regex-dev zlib1g-dev libssl-dev && \ svn checkout http://deluge-torrent.org/svn/trunk deluge && \ cd deluge && python setup.py build && sudo python setup.py install
Download Deluge Plugins (http://dev.deluge-torrent.org/wiki/Plugins) (Optional) Launch the program by going to: Applications -> Internet -> Deluge BitTorrent Client
How to use Torrent under Wine
Older method
60 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
This is a KDE application, but will also run under GNOME and Xfce. It is in the main repository and is therefore fully supported by Ubuntu's support team. How to install Pidgin 2.2.0 Instant Messenger This is an Internet messenger replacement for GAIM. You can also choose Internet Messenger programs from the Applications-->Add/Remove.. menu bar (recommended).
Easy instructions
See http://www.debuntu.org/pidgin-2.2.0-.deb-released-for-ubuntu-feisty
Manual instructions for Pidgin 2.1.1
61 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to install Ninan (NZB usenet client) Read #General Notes Read #How to add extra repositories Ensure that Java is installed by reading #How to install J2SE Runtime Environment (JRE) v6.0 with Plug-in for Mozilla Firefox Set the export Path for Java:
whereis java
Move it to where you would like to install it, in my case, i used /usr/local/bin/ninan/
sudo mv ninan-1.1.0 /usr/local/bin/ninan
You can now access it via this link: http://127.0.0.1:9090/ninan/ with the username: admin and password:password If you would like ninan to start automatically:
gksudo gedit /usr/local/bin/ninan/ninancore.sh
62 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Go to System > Preferences > Sessions Click the New button Type "Ninan" (no quotes) for the Name text box Type (and replace with your own path) "nohup /usr/local/bin/ninan/ninancore.sh > /usr/local/bin/ninan/nohup.out &" (no quote Click the OK button
Ninan should now start upon boot. How to congure (64 Bit)Ekiga for GIZMO PROJECT Account NOTE: This is more for UBUNTU 64 BIT users who cant install Gizmo Project, it should also work for 32-Bit users.
Open EKIGA CLICK "Edit" "Accounts" "Add"
Account Settings:
"Account Name:" gizmo "Registrar:" proxy01.sipphone.com "User:" <your GIZMO USERNAME> "Password:" <your GIZMO PASSWORD>
Click "OK" Click Checkbox under "A" in "Accounts" dialog If "Status" says "Registered", all went well. To dial PC->Phone:
sip:1<phone number>@proxy01.sipphone.com
Graphics
63 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Blender 3-D graphics content creation system Blender is an open source 3-D graphics content creation and visualization system.
For normal (Linux32) users
Run:
Applications-->Graphics-->Blender
How to install Inkscape vector illustrator Inkscape vector illustrator is an open source graphics program similar to Adobe Illustrator. Install:
sudo apt-get install inkscape
Run:
Applications-->Graphics-->Inkscape vector illustrator
64 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Drupal website content creation and management system Drupal is the leading open-source website creation and management system. It allows professional website creation, and allows modules with a wide range of functions, such as blogs, online shopping, and almost every conceivable website function. For more information visit the Drupal website (http://drupal.org) . Install the drupal-5.1 package from Synaptic Package Manager, or from the command line:
sudo apt-get install drupal-5.1
Set up a MySQL database for Drupal If this is the rst time you have used MySQL, the default global MySQL superuser root will not have a password. You should set one now. Instructions for setting mySQL initial privileges are here (http://dev.mysql.com/doc/refman/5.0/en/defaultprivileges.html) . In short:
mysql -u root mysql> UPDATE mysql.user SET Password=PASSWORD('your_new_password') WHERE User='root'; mysql> FLUSH PRIVILEGES; mysql> quit
In addition, you can set up an additional global MySQL user (such as mysql_user, for example) by following the instructions here (http://dev.mysql.com/doc/refman/5.0/en /create-user.html) . That way you can reserve root login for emergencies. In short:
mysql -u root mysql> CREATE USER 'mysql_user'@'localhost' IDENTIFIED BY 'mysql_user_passwd'; mysql> quit
Now you must create a MySQL database for use by Drupal. This is an administrative MySQL command, so you must use one of your global MySQL users (either root or mysql_user, as created in the example above). You can name your Drupal database anything you want, instead of drupdatabase.
mysqladmin -u root -p CREATE drupdatabase
or
mysqladmin -u mysql_user -p CREATE drupdatabase
Create users for the Drupal database. As always, I create a root user for emergency use. I use the same password for root as I do elsewhere on my system. Then I also create a user named drup_user (but you could also create a user named mysql_user, to keep everything
65 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
consistent). [I use a unique user here because this is a publicly displayed system, after all, and I don't want it breached.] These users are specic to this database; they can be the same users as used elsewhere in the system or can be unique users.
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON drupdatabas mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON drupdatabas mysql> quit mysqladmin reload
Note: mysql commands (i.e. any entered at the mysql> prompt) must end with a semicolon. If you forget the semicolon, nothing will happen. Run Drupal:
http://localhost/drupal
Beginner's instructions are at: Drupal Cookbook (http://drupal.org/node/120612) . Set up cron tasks for Drupal: Install Cron tasks GUI Gnome Scheduler. Install from Synaptic Package Manager or from the command line:
apt-get install gnome-schedule
Add http://localhost/drupal/cron.php as a new recurring task with the description 'Drupal Cron'. Leave the No output box checked.
Games
KDE games The kdegames metapackage contains a collection of games based on the KDE framework. It is similar to gnome-games for GNOME. To install from a terminal:
sudo apt-get install kdegames
The KDE libraries will be installed automatically if not present. This package integrates very well with Kubuntu and the kubuntu-desktop package. It also receives support from the Ubuntu security team. To uninstall:
sudo apt-get remove kdegames sudo apt-get autoremove
66 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Frozen Bubble 2 Frozen-Bubble is a puzzle game similar to Bust-a-Move where you shoot bubbles and match colors.
sudo apt-get install frozen-bubble
Super Nintendo Emulator (ZSNES) 1.510 for i386/AMD64 Read #General Notes For support or questions please see this thread http://ubuntuforums.org /showthread.php?t=432642
echo "deb http://packages.dfreer.org feisty main" | sudo tee -a /etc/apt/sources.list wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add sudo apt-get update
sudo apt-get install zsnes32 #for amd64 users sudo apt-get install zsnes #for everyone else
Applications > Games > zsnes or zsnes32 Playstation 1 Emulator (pSX) 1.11 for i386/AMD64 Read #General Notes For support or questions see http://ubuntuforums.org/showthread.php?t=394097
echo "deb http://packages.dfreer.org feisty main" | sudo tee -a /etc/apt/sources.list wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add sudo apt-get update sudo apt-get install psx32 #for amd64 users sudo apt-get install psx #for everyone else
Applications > Games > pSX or pSX32 Playstation 1 Emulator (ePSXe) 1.6.0 for i386/AMD64 Read this tutorial: http://www.ubuntuforums.org/showthread.php?t=95835
Text/Code Editors
For text and programming editors. SciTE This is an alternative text editor. It features syntax highlighting for many programming languages.
67 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Install:
sudo apt-get install scite
Geany This is another alternative text editor with syntax highlighting, useful for programmers. Install:
sudo apt-get install geany
Oce
How to install Clip-Art How to install Open Source clip-art for OpenOce.org and others program.
sudo apt-get install openclipart
How to install third party windows fonts Note: These instructions are for specic fonts only. Microsoft core fonts can be installed as part of the ubuntu-restricted-extras package. Read #How to install Multimedia Codecs for information on installing this package. How to install third party windows fonts (like Arial,...)
sudo apt-get install cabextract gsfonts-other msttcorefonts t1-xfree86-nonfree ttf-f500 ttf-isabella sudo apt-get install ttf-larabie-deco ttf-larabie-straight ttf-larabie-uncommon ttf-staypuft ttf-summersby sudo apt-get install ttf-ubuntu-title ttf-xfree86-nonfree xfonts-artwiz xfonts-intl-european
How to open .docx les See this tutorial: http://www.sigmundvoid.com/?p=81 Install an optical character reader (tesseract) This commercial optical character reader was made open source in 2005. Tesseract reads .tif images only. It does not strip out images. It does not recognize multiple columns. It can achieve 97% accuracy. Install the tesseract-ocr from Synaptic Package Manager or from the command line:
apt-get install tesseract-ocr
68 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
LinuxMCE (http://en.wikipedia.org/wiki/LinuxMCE) is an integrated home theater/security camera and motion detector/home automation/telephone PBX/intercom system for your home. It is a community project that is a fork of the Linux Pluto commercial endeavour. There is a version that runs on Kubuntu 7.04 (Feisty) and a version for Kubuntu 7.10 (Gutsy). LinuxMCE can run either as a standalone system on a single PC, or as a network of multimedia PCs within the home (one of which runs as a "Core" server). A large number of multimedia devices can be integrated into the system. For more info see the LinuxMCE website (http://www.linuxmce.org) . To install LinuxMCE on a single PC or on a central Core server, the DVD installation is recommended (preferably on an empty computer with an Nvidia graphics card (6000, 7000, or 8000 series)). The disk will install the Kubuntu OS as well as the LinuxMCE system. LinuxMCE can be installed as an add-on package to an existing Kubuntu system. To do this, the LinuxMCE 2 CD installation is recommended. A Kubuntu LiveCD is also needed for installation, even if you already have a full Kubuntu installation in place. (The LinuxMCE installation uses the Kubuntu LiveCD for additional modules.) The LinuxMCE version must match the Kubuntu version -- i.e. the LinuxMCE 710 version CDs require the Kubuntu 7.10 (Gutsy) Live CD. With the 2 CD installation, it is possible to run Kubuntu separately from LinuxMCE on the same PC. In a network of multimedia PCs, however, it is recommended to dedicate at least one PC to function as a LinuxMCE core server. LinuxMCE incorporates MythTV (http://en.wikipedia.org/wiki/MythTV) , Pluto (http://plutohome.com/) home automation, Motion (http://www.lavrsen.dk/twiki/bin/view /Motion/WebHome) security surveillance, Asterisk (http://www.asterisk.org/) PBX, VDR (http://www.cadsoft.de/vdr/) video disk recorder, and other home automation/security /theater packages in an integrated platform. At this time, the automatic installer for Linux MCE uses the KDE desktop (Kubuntu) (http://kubuntuguide.org/Gutsy) . There are users that have made Linux MCE work with the Gnome desktop (Ubuntu), but it is recommended to stick with the automatic installation instructions for now.
Omnipotence software (commerical)
ECS (Omnipotence Software) (http://omnipotencesoftware.com/wpr.htm) -- controls X10, Insteon, and many other types of devices (commercial).
69 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Zoneminder manages surveillance cameras and stores images on the hard disk. Images can be viewed using a (LAMP) server remotely. X10 devices can be triggered using built-in perl scripts. For more info see the Zoneminder website (http://www.zoneminder.com/) . Read #General Notes Read #Ubuntu Feisty LAMP Server Detailed instructions at http://www.zoneminder.com/wiki/index.php/Ubuntu_7.04 You must have the LAMP server installed. In addition, you will need additional modules:
sudo apt-get install ffmpeg libarchive-tar-perl libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl sudo apt-get install libjpeg62 libmime-perl libstdc++6 libunwind7 libwww-perl zlib1g
Download the .deb package from the package manager's website: ftp://www.northern-ridge.com.au/zoneminder/ubuntu/edgy/zoneminder_1.22.3-8_i386.deb Install using the Debian package manager. (No other method seems to work.)
dpkg -i zoneminder_1.22.3-8_i386.deb
(Note: If some dependencies are still unsatised, make sure you have these packages installed):
sudo apt-get install libc6 libc6.1 libgcc1 libgcc4 libstdc++6
Set up a MySQL database for Zoneminder If this is the rst time you have used MySQL, the default global MySQL superuser root will not have a password. You should set one now. Instructions for setting mySQL
70 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
In addition, you can set up an additional global MySQL user (such as mysql_user, for example) by following the instructions here (http://dev.mysql.com/doc/refman/5.0/en /create-user.html) . That way you can reserve root login for emergencies. In short:
mysql -u root mysql> CREATE USER 'mysql_user'@'localhost' IDENTIFIED BY 'mysql_user_passwd'; mysql> quit
Now you must create a MySQL database for use by Zoneminder. This is an administrative MySQL command, so you must use one of your global MySQL users (either root or mysql_user, as created in the example above). You can name your Zoneminder database anything you want, instead of zmdatabase.
mysqladmin -u root -p CREATE zmdatabase
or
mysqladmin -u mysql_user -p CREATE zmdatabase
Create users for the Zoneminder database. As always, I create a root user for emergency use. I use the same password for root as I do elsewhere on my system. Then I also create a user named zm_user (but you could also creat a user named mysql_user, to keep everything consistent). [I use a unique user here because this is a home security system, after all, and I don't want it breached.] These users are specic to this database; they can be the same users as used elsewhere in the system or can be unique users.
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON zmdatabase. mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON zmdatabase. mysql> quit mysqladmin reload
Note: mysql commands (i.e. any entered at the mysql> prompt) must end with a semicolon. If you forget the semicolon, nothing will happen. Home automation programs and hardware X10 and Insteon refers to the two protocols of communication between home automation devices. Devices are available from Smarthome (both Insteon and X10), X10.com (X10
71 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
only), and Leviton (X10). Read the Home Automation website (http://home-automation.org /auto/home+automation.aspx) and the Linux Home Automation website (http://www.linuxha.com/index.html) . Each company makes a handheld controller (and usually also sells MS Windows-based control software), and an interface for a PC. This is a list of the most widely used PC interfaces: PowerLinc 1132CUP Controller (Smarthome) -- allows multiple macros storage and has long battery life. Uses X10 and Insteon protocols. PowerLinc 1132CU Controller (Smarthome) -- similar to above but has fewer programmable features. CM15A Interface (X10.com) -- connects by RF to C15A wireless modules. Has some bugs. Uses X10 protocol. CM11A Interface (X10.com) -- connects through power lines. Reliable. Short battery life. Uses X10 protocol. Has been the standard interface for most Linux software. C17A Firecracker computer interface for X10 (X10.com) -- Short battery life. Uses X10 protocol. Also a standard interface for Linux use. CP290 is an older, now hard-to-nd interface for X10. Leviton devices can be controlled by any X10 controller. Linux software largely has relied on one of two interfaces: the CM11A and the CM17A Firecracker. These both use the X10 protocol. There are now Linux modules for the PowerLinc interfaces that use either the Insteon or X10 protocol. Note that you can usually use any hand-held controller that uses the compatible protocol (X10 or Insteon), in parallel with the PC interfaces. Read Linux software (http://home-automation.org/Software/Linux_and_BSD/) . Here are some examples: Heyu (http://www.heyu.org) works with the CM11A interface. BlueLava (http://www.sgtwilko.f9.co.uk/bluelava/) allows you to access Heyu over the Internet for remote control. HomeDaemon (http://www.denninger.net/homedaemon.htm) uses the CM11A interface. Bottlerocket (http://www.linuxha.com/bottlerocket/) works with the C17A Firecracker device. There are several GUI frontends and web interfaces for it (see site.) bottlerocket is available as a module from Synaptic Package Manager, as is wmx10, an applet GUI for bottlerocket. GtkX10 (http://www.miscreation.net/projects/gtkx10) is a GUI for the C17A Firecracker. The Tk (Wish)-based GUI for X10 is available as a Synaptic Package Manager package named x10-automate (which will also install the x10 interface package). It works with the the (older) CP290 interface. Project WiSH (http://wish.sourceforge.net/) provides drivers to control PowerLinc interfaces (version 1 USB and Serial, but not version 2), and CM11A. It is provided as a .tar.gz package. It can be used with x10web Java GUI.
72 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Insteon PowerLinc support page (http://www.linuxha.com/athome/common/iplcd /index.html) -- you must like to get into the nuts and bolts! Not for the beginner. MisterHouse (http://misterhouse.sourceforge.net/) is a collection of powerful perl scripts that is quite congurable, if you don't mind customizing perl scripts. Zoneminder surveillance software can trigger X10 events using built-in perl scripts over a CM11A interface.
Miscellaneous
How to install applications for study of religious texts For study of Bible see GnomeSword (http://gnomesword.sourceforge.net/) For study of Quran see Zekr (http://sourceforge.net/projects/zekr/)
How to install Gnomesword (Bible study program)
Read #General Notes Read #How to add extra repositories This installs the english version of the program.
sudo apt-get install gnomesword sword-language-pack-en sword-text-web
Take a look at the sword-language-pack's and the sword-text's for additional languages and install as needed. Gnomesword is found under Applications-->Accessories. Under KDE, use kio-sword instead of Gnomesword:
sudo apt-get install kio-sword
Zekr (http://siahe.com/zekr/) is an open platform Quran study tool for simply browsing and researching on the Quran. Read #General Notes Read #How to add extra repositories Read #How to install J2SE Runtime Environment (JRE) v6.0 with Plug-in for Mozilla Firefox
sudo wget http://siahe.com/zekr/apt/sources.list.d/feisty.list -O /etc/apt/sources.list.d/zekr.list wget -q http://siahe.com/zekr/apt/zekr.debian.gpg -O- | sudo apt-key add sudo apt-get update
73 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty sudo apt-get install zekr ttf-me-quran ttf-sil-scheherazade sudo apt-get install ttf-farsiweb flashplugin-nonfree
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Zekr comes with extra Quran translations in Persian, Urdu, French, Russian, English, Turkish, Bosnian, Dutch packaged as zekr-quran-translations-XY where XY is the ISO code of the language. Run
apt-cache search zekr-quran-translations
in a shell to list them all. Then among the result list choose the appropriate package and install it: For example if you want to install English Quran Translations run the following command:
sudo apt-get install zekr-quran-translations-en
74 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Download http://www.vmware.com/download/server/ Choose the tar.gz version, not the RPM version (you won't have to convert it), download it to a directory and expand it. Make sure you have the necessary build environment for it:
sudo apt-get install build-essential linux-headers-`uname -r`
This will install all necessary parts, choose the defaults unless you have a reason to change them. When it nishes it will oer to start the conguration for you, choose "yes". Choose the defaults that are oered. If there are compiling errors, you need 2 patches. Download:
wget -c http://icanthack.com/wp-content/uploads/2007/01/vmmon.tar wget -c http://icanthack.com/wp-content/uploads/2007/01/vmnet.tar
As root place them (still as tar packages) in /usr/lib/vmware/modules/source, overwriting the existing packages (save the old ones under a dierent name.) Re-run the conguration script as root:
sudo vmware-config.pl
For more info: http://icanthack.com/?p=53 How to install CrossOver Linux to run Windows Applications http://www.codeweavers.com How to install and run Wine (Open Source version of CrossOver Linux) Wine is a system that enables Windows programs to run under Linux. It is an open source version of CodeWeavers' CrossOver Linux (see above). Many Windows programs, but not all, are supported under Wine.
75 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Read #General Notes Read #How to add extra repositories For more info see Wine HQ (http://www.winehq.org/site/download-deb) Add the WineHQ APT Repository: Add WineHQ repository key to repository keyring:
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
Add WineHQ repository to Software Sources (read #How to add extra repositories):
deb http://wine.budgetdedicated.com/apt feisty main deb-src http://wine.budgetdedicated.com/apt feisty main
Note specically that you can set the directory you wish to use as the "C:" drive for Wine. By default, this is /home/USER/.wine/drive_c but you can set it to any directory you wish, including a pre-existing Windows directory on your computer. However, changing the default directory may cause some problems with Wine and is not recommended. You can set a link to your home folder for the Wine "C:" drive to make it easier to nd:
ln -s ~/.wine/drive_c ~/drive_c
76 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Add Applications:
System-->Preferences-->Wine Configuration-->Applications-->Add Applications
Your added programs will be given a desktop icon on your Ubuntu desktop, for easy startup. See http://wiki.winehq.org/UbuntuAMD64 on the Wine wiki for details on installing Wine for 64-bit users of versions of Ubuntu older than Feisty.
How to manually run programs in Wine (from a command-line terminal)
Thanks to http://www.winehq.org/pipermail/wine-bugs/2004-August/010161.html
gksudo gedit ~/.wine/user.reg
Find the part that starts [Control Panel\\Colors] random numbers, and insert this:
[Control Panel\\Colors] 1085191500 "ActiveBorder"="212 208 200" "ActiveTitle"="10 36 106" "AppWorkSpace"="128 128 128" "Background"="58 110 165" "ButtonAlternateFace"="181 181 181" "ButtonDkShadow"="64 64 64" "ButtonFace"="212 208 200" "ButtonHilight"="255 255 255" "ButtonLight"="212 208 200" "ButtonShadow"="128 128 128" "ButtonText"="0 0 0" "GradientActiveTitle"="166 202 240" "GradientInactiveTitle"="192 192 192" "GrayText"="128 128 128" "Hilight"="10 36 106" "HilightText"="255 255 255" "HotTrackingColor"="0 0 128" "InactiveBorder"="212 208 200" "InactiveTitle"="128 128 128" "InactiveTitleText"="212 208 200" "InfoText"="0 0 0" "InfoWindow"="255 255 225" "Menu"="212 208 200" "MenuBar"="212 208 200" "MenuHilight"="0 0 0" "MenuText"="0 0 0" "Scrollbar"="212 208 200" "TitleText"="255 255 255" "Window"="255 255 255" "WindowFrame"="0 0 0" "WindowText"="0 0 0"
77 of 242
10/14/2011 02:47 PM
http://ubuntuguide.org/wiki/Ubuntu:Feisty
IE 6 is not recommended for general usage, but some Windows packages (installed under Wine) require IE6 to complete installation. Furthermore, IE 6 is useful for checking code for developers who want to see how their web pages appear under IE 6. Install the required package cabextract from Synaptic Package Manager (or from apt-get install cabextract). Download and run the IEs4Linux installation script from the IEs4Linux website (http://www.tatanka.com.br/ies4linux/page/Installation:Ubuntu) :
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz tar zxvf ies4linux-latest.tar.gz cd ies4linux-* ./ies4linux
Accept all the defaults for installation. How to install Windows Games (Cedega) http://www.transgaming.com How to install Maple 11 Insert the Maple 11 cd for Linux and mount if asked.
cd /cdrom sudo sh ./installMapleLinux32
Install to /usr/local/maple11 instead of the default, if you choose. Create symbolic links:
cd /usr/local/bin sudo ln -s /usr/local/maple11/bin/xmaple sudo ln -s /usr/local/maple11/bin/maple sudo ln -s /usr/local/maple11/bin/mint
How to install Win4Lin (Windows combined with Linux) http://www.win4lin.com How to Install Citrix ICAClient 10 Install Open Motif (>=2.2):
sudo apt-get install motif-clients
Get and install Citrix ICA Client (English package) from the Citrix website at
78 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
http://www.citrix.com/site/SS/downloads/details.asp?dID=2755& downloadID=3323#top:
wget -c http://download2.citrix.com/en.linuxx86.tar.gz
or
wget -c http://download2.citrix.com/files/en/products/client/ica/current/linuxx86.tar.gz
If wget doesn't work, then go directly to the website and download the package by following the links. Unpack and install (use the proper version downloaded):
gunzip en.linuxx86.tar.gz tar xvfz en.linuxx86.tar ./setupwfc
In my case, as an example, I enabled Thawte Consulting cc-->Thawte Serve CA as the authority to identify my web sites. But you could also use Verisign, Geotrust, Equifax, or one of many other verication services. I downloaded the certicates from http://www.thawte.com/roots/. I unzipped the le, found the certicate I needed, and copied it (changing the extension slightly) to my ICAClient certicate folder:
cp ThawteServerCA.cer ~/ICAClient/keystores/cacert/ThawteServerCA.crt
Make sure your Firewall (IPTables) are set to allow Citrix ports (1494, sometimes 443 and 1603). You can use Firestarter to adjust the rewall settings (see below). Read #Firewall. Alternate installation instructions are here (German site) (http://codtech.com /wiki/index.php/Citrix_ICA_Client_10_on_Ubuntu_7.04_Feisty_Fawn) and here (Malaysian site) (http://www.planetmy.com/blog/?p=332) .
How to Uninstall Citrix ICAClient 10
/usr/lib/ICAClient/setupwfc
79 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
User Administration
How to switch to root user in Console mode Read #General Notes For a login shell as root, i.e. similar to "su -",
sudo -i Password: <specify user password>
or
sudo su Password: <specify user password>
To start a root shell while maintaining the current directory and various other settings of your normal user (such as the USERNAME environment variable):
sudo -s -H Password: <specify user password>
or
sudo su Password: <specify user password>
How to allow root user to login into Gnome Read #General Notes Read #How to set/change/enable root user password
System -> Administration -> Login Window-->Preferences Security -> Allow local system administrator login (Checked)
80 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
or
sudo useradd jim sudo userdel jim
How to automatic login into GNOME Read #General Notes Automatic login is not secure.
System-->Administration-->Login Window Security-->Enable Automatic Login
Choose a user from the drop-down menu. How to allow more sudoers Read #General Notes
EDITOR=gedit sudo visudo
81 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
This appends the admin group to the user's supplementary group list. They will now have sudo access. How to use "sudo" without prompt for password (not secure) Read #General Notes
EDITOR=gedit sudo visudo
If you want to change ownership of all containing les and folders recursively, use the -R option like this:
sudo chown -R system_username /location_of_files_or_folders
82 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
If you want to change group ownership of all containing les and folders recursively, use the -R option like this:
sudo chgrp -R system_username /location_of_files_or_folders
Hardware
Mice
Activate side-mouse-buttons in FireFox Just add two lines to xorg.conf will activate side-mouse-buttons in FireFox. This should work with most 5-button mouse. Here is a list of mice that worked with this instruction. Logitech MX310 Logitech MX510 Logitech MX518 Logitech MX700 Logitech MX Revolution Intellimouse Explorer (rst edition) Razer Copperhead Backup X.org conguration le
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
Find the Input Device section for your mouse and add two lines as shown below. You may also increase the number of buttons if your mouse has more than 7, just x the rest of the section based upon the number of buttons (remember back/forward, wheel click & tilt left/right all count as buttons) Change:
Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer"
83 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty ... Option "Protocol" "ExplorerPS/2" ... Option "Emulate3Buttons" "true" EndSection
http://ubuntuguide.org/wiki/Ubuntu:Feisty
to:
Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ExplorerPS/2" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "true" Option "Buttons" "7" Option "ButtonMapping" "1 2 3 6 7" EndSection
Buttons still won't work in Nautilus unless you install the imwheel dameon. Install & Congure IMWheel Install IMWheel
sudo apt-get install imwheel
84 of 242
10/14/2011 02:47 PM
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Congure this script to be executed at start-up 1. Select 'System' > 'Preferences' > 'Sessions' 2. Click the StartUp tab 3. Click Add, then input: /home/login/mouse 4. Click OK, then Close Reboot your computer or your Gnome environment and then test your back/forward mouse buttons in Nautilus (Dont know why but the above worked awlessly for me with Dapper but not with Feisty, to get it to work in Feisty had to enter a space between 6 and 7 on the line exec imwheel -k -b "67" & hope this helps) How to congure Apple Mighty Mouse Apple Mighty Mouse works out of the box, this how to should cover setting up of horizontal scrolling using ball and sidebuttons. This is placeholder only. Please, provide working howto.
Touchpad
Disable the touchpad while typing The utility
syndaemon
First you must edit /etc/X11/xorg.conf to allow the settings. Make a backup of the le, then:
sudo gedit /etc/X11/xorg.conf
Add the
SHMConfig
85 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
syndaemon.
After you restart X (log out and log in again), you will be able to run
syndaemon -t -d
To have syndaemon start up automatically when you log on, add the command as a new startup program (System -> Preferences -> Sessions -> Startup Programs). Adjust touchpad sensitivity Although gsynaptics allows you to adjust sensitivity, it still isn't sensitive enough for all users. This allows for greater ne tuning of touchpad sensitivity. First you must edit /etc/X11/xorg.conf. Make a backup of the le, then:
sudo gedit /etc/X11/xorg.conf
SHMConfig:
Modify the values to personal taste. After you restart X (log out and log in again), you will using the new sensitivity settings. Enable vertical, horizontal and circular scrolling This howto will explain the procedure to setup a Synaptics touchpad for vertical, horizontal and circular scrolling (The same procedure may work for other touchpads, but has not been conrmed) First: Install gsynaptics
sudo apt-get install gsynaptics
/etc/X11/xorg.conf
to allow
gsynaptics
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Add the
SHMConfig
After you restart X (log out and log in again), from the Gnome menu goto System > Preferences > Touchpad From the Touchpad window you can modify you touchpads settings
Graphics Card
How to setup nVidia drivers in 7.04
System > Administration > Restricted Devices Manager Enable Driver Apply Changes
(Add / Remove apps will load up checking dependencies) Click Preferences next to help in the bottom left of the add / remove applications windows. Uncheck the "CD ROM With Ubuntu 7.04..." option from the list of installable CD-ROM volumes.
87 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
There, now every time you use the add / remove applications program to install things, it goes onto the internet to get the packages instead of the discs. The idea behind this is to get the LATEST updates. Close the options, close the next box, then click OK to exit out of add / remove applications and save the changes we just made. Make sure the nVidia glx is downloaded and installed from either the internet or the install CD, or the next step wont work, as the command will have nothing to execute. thats right, you really need NVIDIA GLX. :) With the nVidia Driver enabled in the restricted devices manager, we can safely go into the console and mess with the newly loaded drivers' settings to get a nice looking desktop with an acceptable resolution, color depth and refresh rate. These drivers also let us adjust the positioning of multiple monitors much like the forceware drivers in windows, but totally not like windows at the same time. You'll see what I mean when you see the layout and complexity of the panel! Now we must reboot.
System > Quit > Restart
If you haven't already done so you may right click on Terminal under Applications > Accessories > Terminal and then add the application to the panel, to make the terminal easier to access in the future. Load up the terminal, and type in...
sudo nvidia-settings
Then type in your root password (whatever that is) Be careful about cranking the resolution or refresh too high. If you want to enable dual monitors then try twinview. How to setup Dual Monitors with NVidia in Feisty Fawn From Dual Monitors with NVidia in Ubuntu - Ubuntu Geek (http://www.ubuntugeek.com /dual-monitors-with-nvidia.html) Install nvidia-glx driver
sudo apt-get install nvidia-glx
88 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Edit xorg.conf
sudo gedit /etc/X11/xorg.conf
Under the "Module" section, replace "nv" with "glx" Under the "Device" section, make sure that "Driver" says nvidia Under the "Screen" section, add the following line:
Option "RenderAccel" "true"
Save xorg.conf Restart X with Ctrl+Alt+Backspace If X will not start, type the following to restore xorg.conf to working status:
sudo cp /etc/X11/xorg.conf.bak /etc/X11/xorg.conf
and reboot. Assuming everything went well, were quite close to having dual screens working. Edit xorg.conf again
sudo gedit /etc/X11/xorg.conf
89 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
In X Server Display Conguration, drag the visible displays around Apply and Save to X Conguration File when you're happy with the settings
From: First display on TwinView - nV News Forums (http://www.nvnews.net/vbulletin /showthread.php?t=54638&page=12) and nVidia Readme (http://http.download.nvidia.com/XFree86/Linux-x86/1.0-9626/README/appendix-d.html) and Dual Monitors HOWTO - Zulu's Tips (http://www.zulustips.com/2007/04/01/dualmonitors-howto.html) Get the nVidia driver working, as per the howto above Run nVidia Settings
gksudo nvidia-settings
Click the Save to X Conguration File button to tidy up the cong Restart X with Ctrl+Alt+Backspace Backup xorg.conf
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
Save xorg.conf Restart X with Ctrl+Alt+Backspace How to install Beta Graphics Driver (NVIDIA) WARNING this is very error prone.. a better method is to use Alberto Milones Envy program; http://albertomilone.com/nvidia_scripts1.html
90 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Thanks to Alberto Milone The nVidia driver has been split into dierent branches; latest and new legacy. See http://us.download.nvidia.com/XFree86/Linux-x86/1.0-9755/README/appendix-a.html to nd out which driver you should be using. Latest=97xx / New Legacy=96xx Read #How to add extra repositories
gksudo gedit /etc/apt/sources.list
91 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty Categories=Application;System;
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Restart the computer and your new drivers should be installed. Test the install with these 2 programs
glxinfo glxgears
How to setup pivot (screen rotation) with default X.org NVIDIA drivers Read #General Notes Some LCD monitors are equipped with the pivot feature, to take advantage of it the display has to be rotated 90 degrees. The default nVidia drivers shipped with X.org ("nv") support software screen rotation. Note that it's unaccelerated and can be slow, read #How to install Graphics Driver (NVIDIA) if you decide to install the proprietary driver. If you have the proprietary drivers from nVidia installed, please read #How to setup pivot (screen rotation) with proprietary NVIDIA drivers instead. To rotate the screen nd the "Device" section for the "nv" driver in the /etc/X11 /xorg.conf le:
Section "Device" Identifier Driver
Where the "Rotate" option has two possible values (depending on the orientation of the monitor): 1. CW - rotate the display clockwise (right). 2. CCW - rotate the display counterclockwise (right). Read #How to restart GNOME without rebooting computer. How to setup pivot (screen rotation) with proprietary NVIDIA drivers Read #General Notes Read #How to install Graphics Driver (NVIDIA) Some LCD monitors are equipped with the pivot feature, to take advantage of it the display has to be rotated 90 degrees. The proprietary nVidia drivers support hardware rotation with the Xrandr extension.
92 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
To enable rotation support nd the "Device" section for the "nvidia" driver in the /etc/X11/xorg.conf le:
Section "Device" Identifier Driver
Read #How to restart GNOME without rebooting computer. Then the display can be rotated (direction depends on the orientation of the monitor) by: 1. Setting the "Rotation" property to either "Left" or "Right" in the "System > Preferences > Screen Resolution" dialog. 2. Issuing either "xrandr -o left" or "xrandr -o right" command. How to disable NVIDIA graphics logo on GNOME startup Read #General Notes Read #How to install Graphics Driver (NVIDIA) The easy way
sudo nvidia-xconfig --no-logo
Alternative method
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup gksudo gedit /etc/X11/xorg.conf
Save the edited le Read #How to restart GNOME without rebooting computer
93 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to congure dual head on NVIDIA based cards Read #General Notes Read #How to install Graphics Driver (NVIDIA) Install binary driver Make a backup of xorg.conf
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
Edit xorg.conf
sudo nano /etc/X11/xorg.conf
Save and close xorg.conf Restart X-Windows or reboot This was tested on an NVIDIA FX 5200 and known to work using "CRT" as an option for the second monitor If you run into trouble where X is hosed and can get back to the command line, replace xorg.conf with the backup copy
sudo cp /etc/X11/xorg.conf.backup /etc/X11/xorg.conf
Information and inspiration drawn from http://ubuntuforums.org /showthread.php?p=1773584 How to install Graphics Driver (ATI) See Unocial ATI Linux driver wiki (http://wiki.cchtml.com/index.php /Ubuntu_Installation_Guide) Or Ubuntuforums.org (http://ubuntuforums.org/showpost.php?p=423584) Or PenLUG.org (http://www.penlug.org/twiki/bin/view /Main/LinuxHardwareInfoATIRadeonX800) How to Correct the Graphics Resolution (Intel) Read #How to enable Large Widescreen Support if you have a larger (>20") monitor Intel 915g, 945g, etc. graphics chipsets only have a limited set of resolutions initially installed, despite the correct driver being detected.
94 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Choose a resolution you don't need and replace, for example the following changes 1920x1440 to 1920x1200
915resolution 5c 1920 1200
Restart X-Windows. To conrm resolution change look at the "System>Preferences>Screen Resolution" tool. If it works correctly then you can make the change permanent:
sudo gedit /etc/default/915resolution
Another way to get the resolution you want is to do this(doesn't always work):
sudo apt-get install xserver-xorg-video-intel
With this you don't need the 915resolution anywhere in your Feisty as your resolution will now be handled by X, the windowing system in Linux. How to show nvidia GPU temperature (nvidia-settings) Read #How to install Graphics Driver (NVIDIA)
95 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
At a terminal, type
nvidia-settings
How to detect CPU temperature, fan speeds and voltages (lm-sensors) Read #General Notes Read #How to add extra repositories
sudo apt-get install lm-sensors
96 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to control fan speed (lm-sensors) Install and cong lm-sensors rst, see section above. Then run pwmcong to test your fans
pwmconfig
If you can control fan speeds, great. Now create a le called /etc/init.d/fancontrol, and paste in the following
#!/bin/sh # # Fancontrol start script. # set -e # Defaults DAEMON=/usr/sbin/fancontrol PIDFILE=/var/run/fancontrol-pid PATH=/sbin:/bin:/usr/sbin:/usr/bin test -f $DAEMON || exit 0 . /lib/lsb/init-functions
case "$1" in start) log_begin_msg "Starting fancontrol daemon..." start-stop-daemon --start -o -q -m -b -p $PIDFILE -x $DAEMON log_end_msg $? ;; stop) log_begin_msg "Stopping fancontrol daemon..." start-stop-daemon --stop -o -q -p $PIDFILE -x $DAEMON log_end_msg $? ;; force-reload|restart) sh $0 stop sh $0 start ;; *) log_success_msg "Usage: /etc/init.d/fancontrol {start|stop|restart|force-reload}" log_success_msg " start - starts system-wide fancontrol service" log_success_msg " stop - stops system-wide fancontrol service" log_success_msg " restart, force-reload - starts a new system-wide fancontrol service" exit 1 ;; esac exit 0
Make it executable
97 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Test it
/etc/init.d/fancontrol start
and
/etc/init.d/fancontrol stop
If it works ne, autoload it when you reboot. Insert the following line into /etc/rc.local, before "exit 0"
/etc/init.d/fancontrol start
How to monitor CPU, GPU temperatures, fan speeds and voltages (GKrellM) Read #General Notes Read #How to add extra repositories Install lm-sensors rst to monitor CPU temps, fan speed, and voltages in GKrellM. #How to detect CPU temperature, fan speeds and voltages (lm-sensors) Install nvidia video driver to monitor the nvidia GPU temperature. #How to install Graphics Driver (NVIDIA) Install hddtemp rst to monitor hard drive temperatures
sudo apt-get install hddtemp
GKrellM is a hardware monitor that can display CPU and GPU temperatures, fan speeds, voltages, CPU load, network load, disk activity, disk temperature, memory usage, and swap usage. The installation is very easy, and conguration is just a few mouse-clicks. You can set alerts to warn you if the CPU is too hot or there is a fan failure. The hddtemp utility works with GKrellM to allow it to sense the disk temperature, as keeping your disks cool (e.g. less than around 40C) will allow them to last longer than if they run continually at higher temperatures (e.g. above 50C).
sudo apt-get install gkrellm
98 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
I was struggling with lm_sensors before, but it doesn't detect all of the sensors on my computer. Later I found "GKrellM". It displays the GPU temperature on my nVidia 6600 GT out of the box. GKrellM also has plugins that show weather info, set reminders, etc. Add an audio alert (optional Step): Here is how to play an audio message when the CPU is too hot or a fan fails. First you need to nd or record your own audio alert les. (I use Audacity to record my own.) Then go to:
Configuration -> Builtins folder (Left side)-> Sensors -> Temperatures folder (Right side)-> CPU -> Alerts Button
Paste ONE of the following lines into a Terminal window rst to test the sound. If you have two sound cards, you can use "-ao oss:/dev/dsp1" option to route the sound to the second sound card. Modify the le path and name so it points to the correct le. If you can hear the sound, then copy that line to a command line text eld on the GKrellM's Alerts window.
mplayer /home/myfolder/alert_messages/heat_alert.mp3 mplayer -ao oss:/dev/dsp1 /home/myfolder/alert_messages/heat_alert.mp3
How to detect CPU temperature, fan speeds for Dell Laptops and install Gkrellm plugin (i8kutils, gkrellm-i8k) Read #General Notes Read and Complete #How to monitor CPU, GPU temperatures, fan speeds and voltages (GKrellM) Install i8k utilities
apt-get install i8kutils gkrellm-i8k
To monitor with Gkrellm, Load Gkrellm, goto Gkrellms conguration page, enable the Dell i8k Plugin in the Plugins section. You should now see a new section on the Gkrellm panel with fan controls, CPU
99 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
CPU
How to enable your CPU's Power Saving/Frequency Scaling features Read #General Notes Read Howto Change CPU Frequency Scaling in Ubuntu (http://www.ubuntugeek.com /howto-change-cpu-frequency-scaling-in-ubuntu.html) For an easier way to enable CPU scaling. Check whether or not you already have working power-save (it should install automatically!) Open a Terminal window (in Applications > Accessories) and type,
cat /proc/cpuinfo
Look for the reference to "cpu MHz" and compare it to the ocial MHz of your processor. If it is considerably lower, e.g. a 2.0 GHz processor reporting as 1.0 GHz, then the power-save frequency scaling is probably already working. You can further test this by running a cpu intensive process, e.g. glxgears, and then retesting the cpu speed -- if it has increased to the ocial MHz then the automatic scaling is already working. (Note: the instructions below can also allow you to manually set the cpu speed.) Step 1: Enable BIOS Support Enter your BIOS at boot and make sure both ACPI and Cool'n'Quiet (AMD) or SpeedStep (Intel) are enabled. Some BIOSes may not have option at all. If that is the case it is probably enabled by default. Other BIOSes may have the option but it is listed as another name altogether. If that is the case check your BIOS manual for more info. Step 2: Remove Userspace Scaling Software powernowd
sudo apt-get remove powernowd
cpudyn
sudo apt-get remove cpudyn
Step 3: Install CPU Module Identify your cpu type by running the command
cat /proc/cpuinfo
You can also Check the following links AMD CPU Chart - [[2]
100 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
(http://www.tomshardware.com/2005/11/21/the_mother_of_all_cpu_charts_2005 /page20.html) ] Intel CPU Chart - [[3] (http://www.tomshardware.com/2005/11 /21/the_mother_of_all_cpu_charts_2005/page21.html) ] AMD Sempron/Athlon/MP ( K7 ) Socket Types: A, Slot A
sudo modprobe powernow-k7
AMD Duron/Sempron/Athlon/Opteron 64 ( K8 ) Socket Types: 754, 939, 940, S1 ( 638 ), AM2 ( 940 ), F ( 1207 )
sudo modprobe powernow-k8
Intel Pentium M
sudo modprobe speedstep-centrino
Intel Pentium 4
sudo modprobe p4_clockmod
Others (Unknown) I'm not entirely sure which cpus are supported using this module. If your cpu doesn't work with one of the above methods try this one.
sudo modprobe acpi-cpufreq
101 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Step 6: Load Modules at Boot Add the following lines to the end of /etc/modules
cpufreq_conservative cpufreq_ondemand cpufreq_powersave cpufreq_stats cpufreq_userspace Also add the module you selected in Step 3
Step 7: Install cpufrequtils This is a simple, eective tool for using the modules from the command line.
sudo apt-get install cpufrequtils
Step 8: Select a governor The dierent governors control how the CPU speed is scaled. Your choices are: ondemand CPU frequency is scaled based on load. conservative The CPUfreq governor "conservative", much like the "ondemand" governor, sets the CPU depending on the current usage. It diers in behaviour in that it gracefully increases and decreases the CPU speed rather than jumping to max speed the moment there is any load on the CPU. This behaviour more suitable in a battery powered environment. performance CPU only runs at max frequency regardless of load. powersave CPU only runs at min frequency regardless of load. See [[4] (http://www.mjmwired.net/kernel/Documentation/cpu-freq/governors.txt) ] for more details. I typically use ondemand. You get a very slight performance hit and save a lot of power
102 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
On systems with more than one CPU you need to repeat the last command for every other CPU you have with specifying the parameter -c (CPU). To set the governor for the second CPU write:
cpufreq-set -c 1 -g ondemand
Step 9: Congure cpufrequtils to automatically set this governor on boot Edit the le /etc/default/cpufrequtils. Change the line:
ENABLE="false"
to
ENABLE="true"
Set the GOVERNOR value to the governor name you chose in Step 8. Sources: [[5] (http://www.ubuntuforums.org /showthread.php?s=a98372407aafdee660ab498a531c55e9&t=248867) ] [[6] (http://www.ovro.caltech.edu/~abeard/FC3_ON_8600/governors.html) ]
Modems / Network
How to identify Modem chipset Read #General Notes To install Modem chipset identier Read #How to install Basic Compilers (build-essential) Read Setting up Dial-up connection in Ubuntu (http://www.ubuntugeek.com/settingup-dial-up-connection-in-ubuntu.html)
wget -c http://easylinux.info/uploads/scanModem.gz gunzip -c scanModem.gz > scanModem chmod +x scanModem sudo cp scanModem /usr/bin/
103 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to install Atheros Wireless Drivers You may have received a message about the restricted drivers manager, in which the atheros HAL has been enabled. You can congure the wireless using the Network Settings Manager
System --> Administration --> Network
If, after conguration the wireless still does not work, it is because the wrong driver (ath_pci) has been loaded. To correct this, remove the unwanted module:
sudo rmmod ath_pci
Reboot How to install USB ADSL modem drivers and congure the connection This instructions works with the following modems: Sagem Fast 800, Speedtouch series, all EAGLE based modems and all Connexant AccessRunner based modems Go to UbuDSL download page (http://ubudsl.ubuntu.pl/ubudsl_en.html) Install the main package and a package for your modem Run the program and follow instructions on the screen In case of any problems UbuDSL website oers a detailed instruction (http://ubudsl.ubuntu.pl/step1_en.html) .
How to install Windows Wireless Drivers (Ndiswrapper) Read #General Notes In order to install ndiswrapper you need a copy the windows drivers for your Wireless ethernet device. This is only meant to be installed if your card isn't supported by Ubuntu, check Ubuntu's list of natively supported wireless cards (https://help.ubuntu.com /community/WiDocs/WirelessCardsSupported) . Check ndiswrapper's list of supported wireless cards if your card isn't supported natively, please visit Ndiswrapper's ocial supported cards list (http://ndiswrapper.sourceforge.net/mediawiki/index.php/List) If your card is supported by ndiswrapper, you can install and congure it via a gui tool (ndisgtk) very easily. Use the Add/Remove Applications tool and search for "Ndiswrapper driver installation tool". Once installed, you can congure the wireless connection by going to System -> Administration -> Windows Wireless Drivers. Some more information on this here (http://lxer.com/module/newswire/view/46385/) .
104 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
To Install manually follow the steps below: Find out if you have acx module loaded. Because acx module interferes with windows driver, we need to remove it if it is found.
lsmod | grep acx
Remove the acx module if found. It could also be acx_pci or similar. Please Note: New kernel updates will auto load the acx module again. So repeat the following two commands every time the kernel is updated.
sudo rmmod acx sudo nano /etc/modprobe.d/blacklist
Install ndiswrapper and drivers (due to a bug in Edgy, you need to specify ndiswrapper-utils-1.8)
sudo sudo sudo sudo apt-get install ndiswrapper-utils-1.8 ndiswrapper -i /location_of_your_wireless_driver/your_driver.inf ndiswrapper -l modprobe ndiswrapper
Now you can congure your wireless card with ifcong and iwcong. e.g. Supposing wlan0 is your wireless device.
sudo iwconfig wlan0 essid "AP" key ababababababababab mode Managed iwconfig
You sould now be able to see the MAC address of the access point and signal rate. Please note that certain card drivers have re-association errors when used with ndiswrapper. This means that whenever you restart Ubuntu, your internet connection does not work, even if it is set to load on startup. To combat this, use this line in the
105 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Using an RTL8180 card and ndiswrapper, swapping the order of the key and essid in the conguration command is required to get a connection. e.g. Supposing wlan0 is your wireless device.
sudo iwconfig wlan0 key ababababababababab essid "AP" mode Managed
Common errors: Be sure to put the key in hexadecimal if your network conguration says so( and the majority of the keys are). Ndiswrapper for Broadcom 43xx wireless chipset The Broadcom 43xx (bcm43xx) wireless chipset is one of the most common chipsets, so special scripts have been written for it. Only follow this if you have a bcm43xx device. To check in the Terminal type:
lspci | grep Broadcom\ Corporation
you have a Broadcom wireless chipset. Please proceed with the instructions. Put the Ubuntu CD that you installed Ubuntu with in the CD drive. Download this (http://ubuntuforums.org/attachment.php?attachmentid=30908& d=1177587401) to the desktop (the Firefox default, so if you haven't changed it, that's where it went/will go). Note - you will have to register to get this le. Registration is free so please don't report a broken link. In a terminal type
cd ~/Desktop (or wherever you downloaded the file) tar -xf bcm4318*.tar.gz sudo ./ndiswrapper_setup
Your wireless chipset should now work. Try rebooting if you have problems. Please see this thread if you have problems: http://ubuntuforums.org/showthread.php?t=197102& highlight=install+ndiswrapper Edit : The above guide did not work for me (Pete) on 64 bit ubuntu. My lspci
106 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
output read:
03:02.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)
However I found a much easier way to install the drivers, this will probably work on 32 bit as well (someone please conrm). Edit: I (Dun) conrm this. In my Feisty it worked but when I tested the same method in Edgy it did not work as in Feisty. Code in terminal :
sudo apt-get install bcm43xx-fwcutter
fwcutter asks if you would like it to extract the rmware as part of the setup. Say yes. After this type:
sudo modprobe bcm43xx
Unplug you Wired connection, wait 30-60 seconds and then enjoy wireless using network manager by the clock. Note: I (mobius) found the fwcutter method to work well, except at a very limited speed (100kb/s max, as opposed to the 6.75mb/s max in a G network). Ndiswrapper is a bit less reliable, but gives much greater speeds at the moment. Anouther edit by pete: Sorry Someone just let me know that this method no longer works as the link http://boredklink.googlepages.com/wl_apsta.o no longer exists. Sorry I didnt realise this sooner for those of you without wireless for the past month. Do this instead for now: Add the repositories listed here : http://ubuntu.cafuego.net/dists/feisty-cafuego/bcm43xx/ to the top of your sources.list le. Type:
sudo apt-get install bcm43xx-firmware
Thats it! Reboot and enjoy. You dont need to install bcm43xx-fwcutter. Pete How to enable WPA with Ndiswrapper driver Make sure on your own that the Ndiswrapper driver works by itself without encryption. Create a le called /etc/wpa_supplicant.conf, and paste in the following. Modify the ssid and psk values.
107 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Run the following code to test it and make sure your router is broadcasting its SSID.
sudo wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -dd
(If your wireless interface is not named "wlan0", replace "-iwlan0" with "-i[name-of-yourwireless-interface]". E.g. "-ieth1")
If your WPA works, change your conguration le so Ubuntu automatically connects you to your network. Run:
gksudo gedit /etc/network/interfaces
In the editor, change your wlan0 (or whatever your wireless interface is) section to the following: If you are using static IP:
auto wlan0 iface wlan0 inet static address 192.168.1.20 netmask 255.255.255.0 gateway 192.168.1.1 pre-up wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant.conf post-down killall -q wpa_supplicant
Alternately, you can follow the instructions in congure roaming WPA authentication.
108 of 242
/usr/share/doc/wpasupplicant/README.modes.gz
to
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to install Modem Driver (SmartLink) Read #General Notes Read #How to add extra repositories
uname -r (must be 2.6.10-5-386) wget -c http://easylinux.info/uploads/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
Using mobile phone/GPRS/EDGE as Internet modem "GPRS Easy Connect" (GPRSEC) is a free program for Linux which congures and manages Internet connection via mobile phones. GPRSEC supports COM, USB, IrDA and Bluetooth connections on GPRS, EDGE and UMTS technologies. Read GPRSEC Homepage (http://www.gprsec.hu/login.php?language=english) Read Install GPRSEC into Ubuntu Linux (http://www.gprsec.hu/modules /news/view.php?id=260)
Other Method: Using mobile phone/GPRS/EDGE as Internet modem Create a le called 'gprs':
sudo gedit /etc/chatscripts/gprs
Paste the text below in the le and save and close it:
TIMEOUT ABORT ABORT ABORT '' OK OK # or OK CONNECT 120 'BUSY' 'ERROR' 'NO CARRIER' 'ATE1' AT+CGDCONT=1,"IP","internet" ATD*99***#3 ATD*99# \d\c
Note: Pay attention to the line containing 'AT+CGDCONT=1,"IP","internet"'. This might vary depending on your mobile service provider. It would be best to call customer service and make sure you get the 'APN' from them. Create another le called 'gprs'. Notice that it's a dierent location:
sudo gedit /etc/ppp/peers/gprs
Paste the text below in the le and save and close it:
# You usually need this if there is no PAP authentication
109 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty noauth # The chat script (be sure to edit that file, too!) connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs" # Set up routing to go through this PPP link defaultroute # Set this to /dev/ircomm0 or similar /dev/ttyACM0 # Speed 115200 # Reconnect on disconnect persist # Be extra verbose debug # You may need these passive noipdefault noproxyarp ipcp-accept-local ipcp-accept-remote ipcp-restart 2 ipcp-max-configure 20 ipcp-max-failure 20 asyncmap 0xa0000 novj nodeflate nobsdcomp # Use remote DNS usepeerdns # With GPRS, authentication is normally done automatically # via your cellphone number, so leave login name empty user ""
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Note: Pay attention to the line containing '/dev/ttyACM0'. This port might vary depending on your phone model and connection type. I also made it a choice to connect directly to /dev/ttyACM0. You could always symlink to /dev/modem by running the command:
sudo ln -sf /dev/ttyACM0 /dev/modem
Paste the text below in the le and save and close it:
#!/bin/bash PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin" export PATH XDIALOG_HIGH_DIALOG_COMPAT=1 export XDIALOG_HIGH_DIALOG_COMPAT # Get root [ "`id -u`" != "0" ] && exec sudo "$0" "$@" TMP="/tmp/gprsconnect$$" bailout(){ rm -f "$TMP" exit 0 }
110 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty DIALOG="dialog" [ -n "$DISPLAY" ] && [ -x /usr/bin/Xdialog ] && DIALOG="Xdialog" trap bailout 1 2 3 15 # [ [ [ [ LANGUAGE etc. -f /etc/sysconfig/knoppix ] && . /etc/sysconfig/knoppix -z "$LANG" ] && export LANG -z "$LANGUAGE" ] && export LANGUAGE -z "$CHARSET" ] && export CHARSET
http://ubuntuguide.org/wiki/Ubuntu:Feisty
disconnect(){ poff #$DIALOG --clear --title "$TITLE1" --msgbox "$MESSAGE_DISCONNECT" 8 35 exit 0 } trap disconnect 1 2 3 15
#$DIALOG --title "$TITLE1" --yesno "$MESSAGE1" 12 65 || bailout #[ -x /etc/init.d/sysklogd ] && /etc/init.d/sysklogd start >/dev/null 2>&1 # echo "AT" >/dev/modem sleep 1 if [ -n "$DISPLAY" ] && type xterm >/dev/null; then pon gprs xterm -T "$TITLE_LOG" -e bash -c 'tail -n 0 -f /var/log/messages | egrep -e "(chat|ppp)"' disconnect else # Start pppd right here. pppd updetach call gprs sleep 2 exit 0 fi
Connect your phone to the cable and and make sure it's powered on. (When I run the 'lsusb' command I get 'Bus 003 Device 006: ID 22b8:4802 Motorola PCS'. This is because I have a motorola phone with USB modem connected to my Ubuntu box.) Note: Make sure the phone itself already has the gprs service congured on it. This can be done by your dealer. Some service providers can send the settings (gprs template) to your phone and you can save it. Try connecting to the internet by running the following command:
sudo gprs
Note: Use this method if you don't don't already have access to an internet connection. If you are using Ubuntu and you have internet access you can always install kppp and congure it to use your phone modem. If you are using Kubuntu you should already either have kppp installed.
Palm
How to congure PalmOS Devices
111 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
First, if you are syncing via USB, try changing "/dev/pilot" to "usb:" in your sync software. This works with JPilot with a variety of PalmOS Devices. If that doesn't work, follow the instructions below. Read #General Notes
gksudo gedit /etc/udev/rules.d/10-custom.rules
Save the edited le Add the pilot-applet to the Taskbar by Right-Clicking on an empty spot Follow the instructions on screen
Hard Drive
The Disk utility was removed from Gnome. To manipulate the hard drive partitions, you can use one or both utilities: Gparted (http://gparted.sourceforge.net/) (Gnome Partition Manager) and/or Pysdm (http://pysdm.sourceforge.net/) . Gparted is also available as a Live CD. Any manipulation of the partitions of your hard drive risks data loss. Be careful. To install Gparted:
sudo apt-get install gparted
To run Gparted
System -> Administration -> GNOME Partition Editor
To install Pysdm
sudo apt-get install pysdm
To run pysdm:
sudo pysdm
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to spin down a hard drive Read #General Notes For an ide drive (assuming the hard drive is at hda)
hdparm -y /dev/hda
How to use Logical Volume Manager (LVM2) The Logical Volume Manager allows a logical drive distributed over dierent physical media, such as hard drives, USB drives, etc. It allows expandability of storage without the need to rename the drive. It is installed as part of the kernel. However, to use it, free space on a hard drive must be partitioned for use as a LVM device. Either one of the 4 primary partitions on your hard drive must be free to use for LVM, or a logical partition contiguous to other logical partitions must be available for LVM use. Read LVM HOWTO (http://www.tldp.org/HOWTO/LVM-HOWTO/index.html) . Read #Install EVMS GUI for LVM2 and RAID. Using Partman as the partition manager that is included as part of the Ubuntu installation package (i.e. the Live CD), create an LVM-formatted partition in unused free space on your hard drive. To do this, you must pretend to be installing to the hard drive, and complete all the steps until partitioning. After writing the partition changes, abort the installation to prevent installing a new system over your old one (unless this is a new install for you.)
113 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Create a Volume Group on the LVM partition, still using Partman on the Ubuntu Installation Live CD. Create one or more logical drives in the Volume Group, still using Partman. Write the partition changes to disk. (If you already have a system installed, abort the installation at this point.) Restart your computer. LVM2 (the Logical Volume Manager) is installed by default in Ubuntu Feisty. You can conrm this by searching Synaptic Package Manager for the packages lvm2 and lvm-common. If they are not installed, install them. As root user, look in the /dev folder. Find the Volume Group you created with GParted. Make sure the permissions for the Volume Group folder are owner:root:read and write, group:root:access les, others:access les. You should see the logical volumes created previously by Gparted within that volume group folder. Conrm and activate the Volume Group (substitute your volume group name for VolGroup00):
sudo modprobe dm-mod sudo vgscan sudo vgchange -ay VolGroup00
Place the ext3 lesystem (or whichever lesystem you are using) on each logical volume (substitute each logical volume name for LogVol00):
sudo mkfs -t ext3 /dev/VolGroup00/LogVol00
Create a mount folder for each logical volume, with desired permissions (substitute your desired mount name for each logical volume for logdrv0).
sudo mkdir /media/logdrv0
Permissions should be owner:root:create and delete les, group:users:create and delete les, others:access. Make sure you have the users group created and with appropriate members. Add entries to /etc/fstab so that the logical volumes are mounted each time at bootup.
sudo gedit /etc/fstab
114 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to install software RAID Read #General Notes Read RAID HOWTO (http://tldp.org/HOWTO/Software-RAID-HOWTO.html) . Read #Install EVMS GUI for LVM2 and RAID RAID controls hard drive access when logical volume partitions are spread over two or more hard drives. A logical volume can span multiple drives, and therefore can be expanded by adding hard drives to your system. Although you can use RAID on a single hard drive, there is no advantage to doing so unless you anticipate expanding in the future. RAID is similar to LVM2 (discussed above). There are RAID "levels" or schemes of storing data that allow for distribution of data across drives, and mirroring of data as a backup across drives, to protect against loss of data in the event of a single hard drive failure. See this discussion (http://tldp.org/HOWTO /Software-RAID-HOWTO-1.html#ss1.4) for more details. Again, a single hard drive user would not benet from these levels. Any hardware RAID controller on a hard drive can be used with the Linux RAID software manager, except for Windows-based "pseudo-RAID" drivers (such as WinModem). RAID partitions under Ubuntu can be created with the Ubuntu Installation Live CD. The Ubuntu installation Live CD is used. The Partman partition manager included on the Ubuntu Installation Live CD will be used to create the RAID partitions. Start installation with the "Install to the Hard Disk option." Go through the initial steps until you come to the partioning options. When asked about disk partitioning, select "Manual" Delete any undesired partitions. (Be careful if this is a multi-boot system!) Select Free Space and create a 'partition' of Type = "physical disk for RAID". It is recommended that your base system (root or /) remain on an ext3 partition. However, you may put a second boot system on a RAID partition, and you may put other mount points (e.g. /tmp and /home) on the RAID partitions. If you are not installing a new system at this time, you may write the partition changes to disk and then abort the installation. Your previous system should remain intact (except for the partition changes, of course). If you are installing a new system, you may continue as normal. Install EVMS GUI for LVM2 and RAID EVMS (Enterprise Volume Management System) (http://evms.sourceforge.net/) . This is an ocial Ubuntu package which manages your LVM and RAID logical drives from a menu. Install evms-gui from Synaptic Package Manager, or from the command line:
115 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Other GUIs for LVM2 and RAID LVM GUI Project (http://www.xs4all.nl/~mmj/lvm/) . Java based. Not updated since 2001. How to Increase ext3 and ReiserFS lesystems Performance Read #General Notes Read: Step By Step Tutorial How to Increase ext3 and ReiserFS lesystems Performance (http://www.ubuntugeek.com/how-to-increase-ext3-and-reiserfslesystems-performance.html) How to backup/mirror/synchronize directories using rsync Read also #How to copy les/folders from local machine into remote Ubuntu machine (rsync) Read also #How to copy les/folders from remote Ubuntu machine into local machine (rsync) Read also #Rsync Daemon Read this tutorial (http://everythinglinux.org/rsync/) . Note: To merely update the les from one directory to another directory, use:
cp -u <source> <destination>
The -u or --update ag means to copy only when the SOURCE le is newer than the destination le or when the destination le is missing.
USB
How to list USB devices Read #General Notes
lsusb
Workaround for random device disconnections Random disconnection is a kernel bug that is not xed yet. Some users report randomly disconnecting USB devices, especially external hard drives. One solution is to start the system with the option "irqpoll" in grub, but this doesn't work for everybody, and is believed to make the whole system slower. The other solution is to disable USB 2.0. This will result in way slower read/write, but the connection remains stable. To disable USB 2.0, type this in the terminal:
116 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Test if the copy/write process is stable, and if you want to disable USB 2.0 upon boot, type:
sudo sh -c 'echo blacklist ehci_hcd > /etc/modprobe.d/blacklist-ehci' sudo update-initramfs -u -k `uname -r`
How to recover lost disk space This error appears to be related to deleting les outside of Ubuntu, and has several Bug listings. If the free disk space on your USB drive is being reported as less than actual, try this: Unmount the volume (if the device is a Sony PSP or other device where the USB port must be enabled, leave the port enabled)
sudo umount /media/disk
Run Dosfsck
sudo dosfsck -a /dev/sda1
How to Add Logitech USB audio device The USB audio device can be easily added and set as default audio device using the following steps.
cat /proc/asound/modules
This displays the available audio devices. Please check if your USB audio device is listed in here. Assuming your in-built audio card is the default device (audio) . First check if the USB audio is working.
cat /bin/bash > /dev/audio1
117 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Save the le and restart the Alsa using the following command
sudo /etc/init.d/alsa-utils restart
Optical Drives
How to speed up CD/DVD-ROM Read #General Notes 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 gksudo gedit /etc/hdparm.conf
Save the edited le How to mount/unmount CD/DVD-ROM manually, and show all hidden and associated les/folders Read #General Notes e.g. Assumed that /media/cdrom0/ is the location of CD/DVD-ROM To mount CD/DVD-ROM
sudo mount /media/cdrom0/ -o unhide
To unmount CD/DVD-ROM
sudo umount /media/cdrom0/
118 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Read #General Notes e.g. Assumed that /media/cdrom0/ is the location of CD/DVD-ROM
sudo umount /media/cdrom0/ -l
Monitors / Displays
How to enable Large Widescreen Support 24/23" widescreen monitors sometimes have issues running 1920x1200. Examples include: Dell 2405, HP 2335 or an Apple Cinema Display.
gksudo gedit /etc/X11/xorg.conf
CAUTION: Feisty has something called Desktop Eects which can recongure your xorg.conf le automatically. If you manually edit the le, Desktop Eects may not work properly. (Always make a copy of the xorg.conf le before editing: cp /etc/X11 /xorg.conf /etc/X11/xorg.conf.bak ) Add the following line to the appropriate "Monitor" section:
Modeline "1920x1200" 154 1920 1968 2000 2080 1200 1203 1209 1235
"hp L2335" "DPMS" "1920x1200" 154 1920 1968 2000 2080 1200 1203 1209 1235
How to enable CRT output (external monitor/projector) for notebooks (Intel) Note: Valid for Intel graphics controller-based products only Read #General Notes Read #How to add extra repositories
sudo apt-get install i810switch
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to make sound work with Intel Integrated Sound Cards Read #General Notes Edit the le /etc/modprobe.d/alsa-base:
gksudo gedit /etc/modprobe.d/alsa-base
Add the following line to the end of the le, replacing '3stack' with your avor (see below)
options snd-hda-intel model=3stack
If this doesn`t work for you, see the other avours and options in the source of this information: https://help.ubuntu.com/community/HdaIntelSoundHowto How to setup and test surround-sound speakers (5.1 and others) with ALSA Read #General Notes Edit the ~/.asoundrc le (create it if it doesn't exist):
gksudo gedit ~/.asoundrc
This will play the surround output by duplicating the stereo output to all 6 channels (not only the front ones).
120 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to change the default soundcard Read #General Notes View available soundcards:
gksudo asoundconf list
Set the default soundcard (use your desired soundcard in place of example_soundcard):
gksudo asoundconf set-default-card example_sndcard
How to setup PulseAudio Sound Server PulseAudio, previously known as Polypaudio, is a proxy for your sound applications. It allows you to do advanced operations on your sound data, like transferring the audio to a dierent machine, changing the sample format or channel count and mixing several sounds into one. For more info: http://pulseaudio.org/ Install:
sudo apt-get install "pulseaudio-*" paman padevchooser paprefs pavucontrol
121 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Here is an alternative mirror for the package in case the link above dies: libashsupport_1.0-2219-1_i386.deb (http://www.divshare.com/download/454409-e7c) Edit the ALSA conguration le:
sudo mv /etc/asound.conf /etc/asound.conf.backup gksudo gedit /etc/asound.conf
Go to System->Preferences->Sounds and check Enable Software Mixing Mixer screenshot (http://apollo.divshare.com/apollo2/les/2007/04/22/454225 /pulseaudio1.jpg) Go to Applications->Sound & Video->PulseAudio Preferences (or in a terminal type):
paprefs
Set the following settings: Settings screenshot (http://apollo.divshare.com/apollo2/les/2007/04/22/456554 /pulseaudio2.jpg) Make sure that Multicast/RTP is o or else youll have problems with skipping and latency. Reboot or in a terminal type:
pulseaudio
Go to Applications->Sound & Video->PulseAudio Device Chooser if you have more than one PC with this setup. Youll be able to choose which computer to send the
122 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Check everyone in the list. Otherwise, youll get weird no-sound errors and lockups. Users screenshot (http://apollo.divshare.com/apollo2/les/2007/04/22/456555 /pulseaudio3.jpg) To control the volume:
Applications->Sound & Video->PulseAudio Volume Control
Volume screenshot (http://apollo.divshare.com/apollo2/les/2007/04/22/456557 /pulseaudio4.jpg) Final Notes PulseAudio still has some bugs. Skype doesn't work well with PulseAudio (it's better to killall pulseaudio before trying to make a Skype call, although I did get it working through OSS and padsp). More info: The Perfect Setup (http://pulseaudio.org/wiki/PerfectSetup) Revolution Linux wiki (http://pulseaudio.revolutionlinux.com/PulseAudio) http://blog.paulbetts.org (http://blog.paulbetts.org/index.php/2007/04/15/pulseaudio-in-ubuntu-feisty-play-soundover-the-network/)
Printers
Read #Print Server (cupsd) Which default printer drivers are provided in Ubuntu Linux? Search through the OpenPrinting database (http://www.openprinting.org /printer_list.cgi) . How to add a printer Introductory basic instructions are available at https://help.ubuntu.com/7.04/printing /C/printing.html#local. Then read #Print Server (cupsd) Hewlett Packard (HP) Printers / Scanners / Copiers To install the drivers for any HP printer or "All in one" machines, follow the
123 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
instructions at http://hplip.sourceforge.net/install/install/index.html. Brother Printers / Scanners / Copiers Brother provides Linux drivers for both lpr and CUPS for their printer and MFC models. Debian/Ubuntu installation packages are provided. They provide fax, scanning, and printing functions for local use as well as network use. See their Linux driver website at http://solutions.brother.com/linux/en_us/index.html.
Misc
How to list PCI devices Read #General Notes
lspci
How to install a Wacom tablet Read #General Notes For a detailed guide (Dapper) with screenshots about how to congure the "Extended input devices" in your graphic applications, see https://wiki.ubuntu.com//Wacom With the version of the Linux Wacom driver (0.7.2) in Ubuntu 6.06 Dapper Drake, if you unplug you tablet, it won't function when you plug it back in and you will have to restart X. For this reason, it is best to leave the tablet plugged in. This limitation will be removed when the 0.7.4 version of the driver is included in Ubuntu. Using Synaptic package manager, check if the packages xserver-xorg-input-wacom and wacom-tools are already installed - if not, install them. Or, from the command line:
sudo apt-get install xserver-xorg-input-wacom wacom-tools
Edit xorg.conf:
gksudo gedit /etc/X11/xorg.conf
124 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Restart. restarted X. Remember to congure the "Extended input devices" in your graphic applications (Gimp, Inkscape). You can already check if it's working by moving your stylus on the tablet: the mouse cursor should go across the whole screen. How to x strange mouse behavior when using a KVM switch Read #General Notes Some 2-way KVM switches with PS/2 connectors (Keyboard-Video-Mouse switches which allow sharing of these peripherals between dierent machines) do not function properly. The mouse may jump around on the screen and randomly activate functions. When the KVM switch is activated, power is briey lost to the mouse. This resets the kernel's mouse driver (psmouse) to 'basic (base)' mode even if it had been set to 'advanced' mode previously (imps or exps protocols). Check whether your psmouse kernel driver supports the options needed:
modinfo psmouse
The resetafter parameter tells the mouse driver how many bad packets are accepted before the mouse is told again which protocol to use. In this case you want to change from the default (= never) behavior. The proto parameter tells the mouse driver how deep to probe the mouse interface. In some cases you will want to change this depth to bare. Edit the /etc/modprobe.d/options le:
gksudo gedit /etc/modprobe.d/options
Add:
options psmouse resetafter=1 options psmouse proto=bare
125 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
CD/DVD Burning
How to blank CD-RW/DVD-RW Read #General Notes e.g. Assumed that /dev/cdrom is the location of CD/DVD-ROM
sudo umount /dev/cdrom cdrecord dev=/dev/cdrom blank=fast
How to burn Image (ISO) les into CD/DVD Read #General Notes
Right click on Image (ISO) file -> Write to Disc... -> Write
How to duplicate CD/DVD Read #General Notes Read #How to create Image (ISO) les from CD/DVD Read #How to burn Image (ISO) les into CD/DVD How to create Image (ISO) les from CD/DVD Read #General Notes e.g. Assumed that /dev/cdrom is the location of CD/DVD-ROM
sudo umount /dev/cdrom readcd dev=/dev/cdrom f=file.iso
126 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to create Image (ISO) les from folders Read #General Notes
mkisofs -r -o file.iso /location_of_folder/
How to check MD5 checksum of les Read #General Notes e.g. Assumed that le.iso and le.iso.md5 are in the same folder
md5sum -c file.iso.md5
How to mount/unmount Image (ISO) les without burning Read #General Notes To mount Image (ISO) le
sudo mkdir /media/iso sudo modprobe loop sudo mount -t iso9660 -o loop file.iso /media/iso/
If you want to mount/unmount your ISO image directly right-clicking on it, you can do this from your home dir:
cd .gnome2/nautilus-scripts/ gksudo gedit Mount
127 of 242
10/14/2011 02:47 PM
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to set/change the burn speed for CD/DVD Burner Read #General Notes Applications -> System Tools -> Conguration Editor Conguration Editor
/ -> apps -> nautilus-cd-burner -> default_speed (set/change the burn speed)
How to enable burnproof for CD/DVD Burner Read #General Notes Applications -> System Tools -> Conguration Editor Conguration Editor
/ -> apps -> nautilus-cd-burner -> burnproof (Checked)
128 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to enable overburn for CD/DVD Burner Read #General Notes Applications -> System Tools -> Conguration Editor Conguration Editor
/ -> apps -> nautilus-cd-burner -> overburn (Checked)
How to install K3b (CD/DVD burning software) Read #General Notes Read #How to add extra repositories
sudo aptitude install k3b
How to Burn .img DVD Images First, Install the udftools package:
sudo apt-get install udftools
Networking
Complete Ubuntu Networking Tutorial (http://www.debianadmin.com/ubuntunetworking-for-basic-and-advanced-users.html) This is Step By Step Ubuntu Networking Guide for Beginners and Advanced Users
How to activate/deactivate network connections Read #General Notes System -> Administration -> Network Network settings
129 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Note: in Feisty, the network names have changed. Instead of "Ethernet connection", you may have "Wireless connection", "Wired connection" and "Modem connection". Also, they don't have an Activate/Deactivate option. Instead, go to "Properties", and activate or deactivate from there. How to congure network connections Read #General Notes System -> Administration -> Networking Network settings
Connections Tab -> Select "Ethernet connection" -> Properties Connection -> Enable this connection (Checked) Connection Settings -> Configuration: Select "DHCP/Static IP address"
Read #How to activate/deactivate network connections How to congure dialup connections Read #General Notes To congure dialup
sudo pppconfig
To connect dialup
pon provider_name
To disconnect dialup
poff
How to change computer name Read #General Notes System -> Administration -> Networking
130 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Network settings
General Tab -> Host Settings -> Hostname: Specify the computer name
Change your hostname Also take a look at /etc/hosts. And change your old name to your new one too. How to change computer descriptions Read #General Notes Read #How to install Samba Server for les/folders sharing service
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
How to change computer Domain/Workgroup Read #General Notes Read #How to install Samba Server for les/folders sharing service
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
131 of 242
10/14/2011 02:47 PM
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to use dynamic IP addressing for your host using the free DynDNS service Read #General Notes Read #How to add extra repositories Register a free account at Dynamic DNS (http://www.dyndns.com/services /dns/dyndns) (http://www.dyndns.com/services/dns/dyndns). You can register up to 5 free URLs, or more for a monthly fee.
Maintain Dynamic IP address with IPcheck utility
Insert the following lines into the new le, replacing "myusername" and "mypassword" with your unique username and password.
#!/bin/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
Install ddclient from Synaptic Package manager or from the command line:
132 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Restart ddclient:
sudo /etc/init.d/ddclient restart
How to share folders the easy way Read #General Notes Read #How to install Samba Server for les/folders sharing service
Right click on folder -> Share folder
Shared folder -> Share with: Select "SMB" Share properties -> Name: Specify the share name
How to browse network computers Read #General Notes Read #How to access network folders without mounting
Places -> Network Servers
How to access network folders without mounting Read #General Notes In this example: Network computer's IP: 192.168.0.2
133 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Shared folder's name: linux Press 'Alt+F2' (Run Application...) and enter:
smb://192.168.0.2/linux
How to mount/unmount network folders manually, and allow all users to read Read #General Notes Read #How to install Samba Server for les/folders sharing service In this example: Network computer's IP: 192.168.0.2 Network computer's Username: myusername Network computer's Password: mypassword Shared folder's name: linux Local mount folder: /media/sharename To mount network folder:
sudo mkdir /media/sharename sudo mount //192.168.0.2/linux /media/sharename/ -o username=myusername,password=mypassword
How to mount/unmount network folders manually, and allow all users to read/write Read #General Notes Read #How to install Samba Server for les/folders sharing service In this example: Network computer's IP: 192.168.0.2 Network computer's Username: myusername Network computer's Password: mypassword Shared folder's name: linux Local mount folder: /media/sharename To mount network folder:
sudo mkdir /media/sharename sudo mount //192.168.0.2/linux /media/sharename/ -o username=myusername,password=mypassword,dmask=777,fmask=777
134 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to mount network folders on boot-up, and allow all users to read Read #General Notes Read #How to install Samba Server for les/folders sharing service If you do not have smbfs installed yet, install that rst:
apt-get install smbfs
In this example: Network computer's IP: 192.168.0.2 Network computer's Username: myusername Network computer's Password: mypassword Shared folder's name: linux Local mount folder: /media/sharename
sudo mkdir /media/sharename gksudo gedit /root/.smbcredentials
Copy a backup of the fstab le then edit the fstab le with the mounting options:
sudo cp /etc/fstab /etc/fstab_backup gksudo gedit /etc/fstab
Read #How to remount /etc/fstab without rebooting How to mount network folders on boot-up, and allow all users to read/write Read #General Notes Read #How to install Samba Server for les/folders sharing service In this example:
135 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Network computer's IP: 192.168.0.2 Network computer's Username: myusername Network computer's Password: mypassword Shared folder's name: linux Local mount folder: /media/sharename
sudo mkdir /media/sharename gksudo gedit /root/.smbcredentials
Make a backup copy and then edit the fstab le (which has the mounting options):
sudo cp /etc/fstab /etc/fstab_backup gksudo gedit /etc/fstab
Read #How to remount /etc/fstab without rebooting How to get ipw2200 and WPA to work Under Feisty, WPA works right out of the box with network manager. How to get ipw3945 and wep/wpa to work Under Feisty, the driver for Intels ipw3945 is loaded by default, no conguration is needed. How to get Broadcom BCM4318 wireless card to work Install the driver::
sudo apt-get install bcm43xx-fwcutter
How to Congure and start PPTP tunnels (VPN) Read #General Notes
136 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
You can use NetworkManager which comes with Feisty. Congure VPN with Network Manager In a terminal
sudo apt-get install network-manager-pptp
More info: Edgy VPN tutorial (http://customisinglife.wordpress.com/2006/11/20/vpnconnection-in-edgy/) Alternative programs: Automatically install PPTP Clients (http://pptpclient.sourceforge.net/howtoubuntu.phtml) OR Install manually
wget -c http://linux.edu.lv/uploads/content/pptp.tar.gz tar zxvf pptp.tar.gz cd ./pptp/ sudo sh install cd ..
137 of 242
10/14/2011 02:47 PM
http://ubuntuguide.org/wiki/Ubuntu:Feisty
The above lines change the default le in three ways: the application is placed in the Application/Internet category, gksudo will make the application run as superuser and an icon appears in the menu. Start the client:
Applications -> Internet -> PPTP Client
How to setup a PGP key with Seahorse and Evolution Read #General Notes Install:
apt-get install seahorse
Applications --> Accessories --> Passwords and Encryption Keys Key --> Create New Key
Select "PGP Key", then ll out information. Ensure that you use your real email address. Right-click on the key entry to export, sync or publish your key. Evolution should now hopefully see the key transparently. How to Setup BIND DNS Server The BIND DNS Server is installed as a meta-package in Feisty.
System-->Administration-->Synaptic Package Manager-->Mark packages by task-->DNS server
This will install all dependencies and conguration les. Alternatively, you can install from the command line (see this reference (http://ubuntuforums.org/showthread.php?t=236093:) ):
sudo apt-get install bind9
Congure the main Bind les. Usually, if you install Bind from the source code, you will have to edit the le named.conf. However, Ubuntu provides you with a pre-congured Bind, so we will edit another le:
138 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
A zone is a domain name that is referenced in the DNS server. Insert the zones in the named.conf.local le:
# This is the zone definition. replace example.com with your domain name zone "example.com" { type master; file "/etc/bind/zones/example.com.db"; }; # This is the zone definition for reverse DNS. replace 0.168.192 with your # network address in reverse notation - e.g my network address is 192.168.0 zone "0.168.192.in-addr.arpa" { type master; file "/etc/bind/zones/rev.0.168.192.in-addr.arpa"; };
We need to modify the forwarder. This is the DNS server to which your own DNS will forward the requests he cannot process.
forwarders { # Replace the address below with the address of your provider's DNS server 123.123.123.123; };
Now, let's add the zone denition les (replace example.com with your domain name):
sudo mkdir /etc/bind/zones sudo -e /etc/bind/zones/example.com.db
The zone denition le is where we will put all the addresses / machine names that our DNS server will know. You can take the following example:
; replace example.com with your domain name. do not forget the . after the domain name! ; Also, replace ns1 with the name of your DNS server example.com. IN SOA ns1.example.com. admin.example.com. ( ; Do not modify the following lines! 2006081401 28800 3600 604800 38400 ) ; ; Replace the following line as necessary: ; ns1 = DNS Server name ; mta = mail server name ; example.com = domain name example.com. IN NS ns1.example.com. example.com. IN MX 10 mta.example.com. ; ; Replace the IP address with the right IP addresses.
139 of 242
10/14/2011 02:47 PM
http://ubuntuguide.org/wiki/Ubuntu:Feisty
;replace example.com with yoour domain name, ns1 with your DNS server name. ; The number before IN PTR example.com is the machine address of the DNS server. in my case, it's 4, as my IP address is 192 @ IN SOA ns1.example.com. admin.example.com. ( 2006081401; 28800; 604800; 604800; 86400 ) ; IN NS ns1.example.com. 4 IN PTR example.com
Restart bind:
sudo /etc/init.d/bind9 restart
Test the new DNS server... Modify the le resolv.conf with the following settings:
sudo -e /etc/resolv.conf
Connect to Internet using mobile phone/GPRS/EDGE Read Ubuntu:Feisty/Hardware#Using_mobile_phone.2FGPRS.2FEDGE_as_Internet_modem How to set up internet connection sharing http://doc.gwos.org/index.php/Share_Internet_Connection
140 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to resolve Netbios hostnames Read #General Notes System -> Administration -> Network Network settings
sudo gedit /etc/nsswitch.conf
Remote Access
Note: By themselves, neither XDMCP nor Remote Desktop sharing (VNC) are secure methods of sharing. Both send unencrypted data. They are recommended only for use within your rewall-protected LAN, or coupled with secure tunnels such as SSH or VPN. Remote Login via XDMCP
What is XDMCP?
Gnome (like other display managers) supports multiple simultaneous users. XDMCP is a thin client that allows multiple remote Gnome (and other display manager) users to log into a host machine, even if a local user is signed in there. There is no screen sharing with the local user; each login has their own session. (This is in contrast to VNCviewer (Remote Desktop), which merely duplicates the host screen for display on the remote client and provides screen sharing capabilities with the remote computer.) The thin client features of XDMCP allows users on the LAN to login to a host to use CPU-intensive applications on a host server. XDMCP uses UDP port 177 and TCP port 6000. You should make sure that your router does not allow these ports to be accessed from the Internet, or your system will be potentially accessible from the Internet. If you have Firestarter installed as a local rewall, make sure that you open the ports for your LAN only by specifying incoming/outgoing trac on these ports for your LAN: 192.168.0.1/24 (if your LAN is on 192.168.0.1-192.168.0.255, for example).
141 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
You are strongly urged to learn how to use IPTables (or the Firestarter GUI which manages IPTables) before using XDMCP .
How to turn on the XDMCP feature
You can reach the same conguration panel by typing in the console:
sudo gdmsetup
Note: XDMCP is not encrypted and is not secure outside of a rewall-protected LAN. If you are attempting to use XDMCP over the Internet, it should be used with VPN secure tunneling. Unfortunately, UDP port forwarding is not available with SSH, so XDMCP cannot be used with SSH. At the login screen:
Options-->Remote Login via XDMCP
Type in the host name or IP address (example: 192.168.0.2) of the remote computer. Run an Ubuntu host from a Windows Client machine You can run a screen-sharing-only solution (through an SSH tunnel) using VNC (remote desktop). Read #How to connect into a remote Ubuntu desktop host from a Windows machine Xming is a full X-client for the Windows platform, that allows a windows user to access applications on a Linux host. For full information, see the Xming website (http://www.straightrunning.com/XmingNotes/) . Cygwin/X is a miniature Linux installation on your Windows machine that runs Linux applications, including an X-server. See the Cygwin/X website (http://x.cygwin.com/) for more information. Also Read Installing OpenSSH with Cygwin (http://pigtail.net /LRP/printsrv/cygwin-sshd.html) . Remote Desktop Sharing/Duplication using VNC
142 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Unlike the Gnome thin-client XDMCP VNC (Remote Desktop) is merely a screen sharing , solution. It allows a remote user to view and manipulate the desktop of a single user logged into the host computer. Combined with an SSH tunnel, however, it can allow secure remote access to the host computer's Gnome (or other GUI) desktop.
How to congure a Remote Desktop host
Note: By itself, Remote Desktop (VNC) hosting is not a secure method of sharing your desktop because communications are not encrypted. Simple password authentication is also used (which can be broken by simple hacking programs). It should therefore not be used outside of a rewall-protected LAN unless it is coupled with a secure SSH or VPN data tunnel. Remote Desktop will only work if a user is currently logged in to Gnome Leaving a computer with an unattended Gnome session is not secure. It is recommended to use System-->Lock Screen and switch o the monitor when the computer is left unattended. Enable Remote Desktop (VNC):
System --> Preferences --> Remote Desktop Remote Desktop Preferences
Sharing -> 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
How to connect into remote desktop or VNC host from a Ubuntu/Linux machine
Read #General Notes If the remote host is an Ubuntu machine, it must have Remote Desktop congured (read #How to congure a Remote Desktop host) If the remote host is a Windows machine, it must be running a VNC server such as TightVNC server (http://www.tightvnc.com/download.html) . In this example, the remote host computer has an IP address on the LAN of 192.168.0.2.
vncviewer -fullscreen 192.168.0.2
The -fullscreen option creates a fullscreen replica of the remote computer's screen on your screen. To run the viewer in a window, do not add this option. To quit vncviewer
143 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to connect into a remote Ubuntu desktop host from a Windows machine
Read #General Notes The remote Ubuntu host must have Remote Desktop congured (read #How to congure a Remote Desktop host) Note: This method is not encrypted and should not be used outside of a LAN unless secured through an SSH (or VPN) tunnel. Opening a VNC server on port 5900 to the Internet is very risky. Port 5900 should be opened for use within your LAN only. If more than one VNC/Remote Desktop session is to be used, you must open more ports (5901, 5902, etc.) In Firestarter, this can be done by selecting the appropriate ports (5900-5904, for example) and restricting this port range for incoming and outgoing usage to your LAN, 192.168.0.1/24 for example). See Wikipedia port forwarding (http://en.wikipedia.org/wiki/Port_forwarding) and the Firestarter instructions. Several VNC clients are available for Windows. Download and install one. Tight VNC: http://www.tightvnc.com/ (Recommended. Best for low bandwidth solutions such as DSL or wireless.) RealVNC: http://www.realvnc.com/products/personal/ (The original VNC. Also available in an enterprise edition.) DotNetVNC: http://dotnetvnc.sourceforge.net/ (Requires the Microsoft DotNet framework (http://msdn.microsoft.com/netframework/) .) Run the VNC application. You can enter the IP address of your remote computer (192.168.0.2 in the example) in any of these formats: 192.168.0.2 192.168.0.2:0 (assuming this is the rst connection. Use 192.168.0.2:1 for the second connection, and so on.) 192.168.0.2:5900 (assuming this is the rst connection. Use 192.168.0.2:5901 for the second connection, and so on.) If you wish to connect with VNC over the Internet, you must tunnel VNC through SSH (or VPN). Ubuntu has the OpenSSH server installed by default, but the service must be started. PuTTY (http://www.chiark.greenend.org.uk/~sgtatham/putty/) is an SSH client for Windows that will connect to OpenSSH. Once an SSH tunnel is established, VNC can be run through the SSH tunnel port (and not port 5900) in an encrypted, secure fashion.
How to connect into a remote Ubuntu desktop host from OS X
Read #General Notes Remote Ubuntu host machine must have Remote Desktop congured (read #How to congure a Remote Desktop host) Note: This method is not encrypted and should not be used outside of a LAN unless secured through an SSH (or VPN) tunnel. Opening a VNC server on port 5900 to the Internet is very risky.
144 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Port 5900 should be opened for use within your LAN only. If more than one VNC/Remote Desktop session is to be used, you must open more ports (5901, 5902, etc.) In Firestarter, this can be done by selecting the appropriate ports (5900-5904, for example) and restricting this port range for incoming and outgoing usage to your LAN, 192.168.0.1/24 for example). See Wikipedia port forwarding (http://en.wikipedia.org/wiki/Port_forwarding) and the Firestarter instructions. Download and install: ChickenOfTheVNC: http://sourceforge.net/projects/cotvnc/ Run the VNC application. You can enter the IP address of your remote computer (192.168.0.2 in the example) in any of these formats: 192.168.0.2 192.168.0.2:0 (assuming this is the rst connection. Use 192.168.0.2:1 for the second connection, and so on.) 192.168.0.2:5900 (assuming this is the rst connection. Use 192.168.0.2:5901 for the second connection, and so on.) If you wish to connect with VNC over the Internet, you must tunnel VNC through SSH (or VPN). Ubuntu has the OpenSSH server installed by default, but the service must be started. MacSSH (http://pros.orange.fr/chombier/) is an SSH client for OS X that will connect to OpenSSH. Once an SSH tunnel is established, ChickenOfTheVNC can be run through the SSH tunnel port (and not port 5900) in an encrypted, secure fashion.
How to Run a Windows machine from Ubuntu securely using VNC
By itself, VNC is not a secure solution over the internet. SSH (or VPN) tunneling is recommended in combination with VNC. OpenSSH is the SSH hosting/tunneling package used for both Ubuntu and Windows. OpenSSH is installed by default in Ubuntu, but must be installed (with Cygwin) on a Windows machine. To set up a secure SSH tunnel on a Windows machine, you should set up Cygwin (a mini-Linux installation for Windows) rst, selecting OpenSSH under Cygwin as part of the installation process. Read Installing OpenSSH and Cygwin on Windows (http://pigtail.net/LRP/printsrv/cygwin-sshd.html) . Follow the instructions exactly. Make sure you open the appropriate ports in IPTables (using Firestarter, for example) for SSH tunneling on your Ubuntu client. Also open the port in the Windows Firewall for your Windows host. Port 22 is the standard SSH port, but if you want extra security, you can change the SSH port (see the OpenSSH conguration instructions) to an alternate port number. Make sure the router on your host LAN forwards the chosen SSH port (e.g. 22) to the Windows host computer. For example, if your Windows SSH host on your LAN is at 192.168.0.71, your router must forward port 22 to 192.168.0.71. (If you have multiple SSH hosts on your LAN, each individual host can have its own dedicated SSH port to be forwarded by the router. Change the OpenSSH conguration le on each host to reect the chosen dedicated alternate SSH port number.) Read #How to SSH into remote Ubuntu host. When you request an SSH tunnel from
145 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
your remote Ubuntu client, you must SSH to the IP address of the router, not the host. If the router's IP address changes dynamically, you must set up Dynamic DNS addressing for the host LAN through a service such as DynDNS (http://www.dyndns.com/services/dns/dyndns) . You would then create the SSH tunnel to the DynDNS URL assigned to your LAN instead of to the actual IP address (which constantly changes with dynamic IP addressing). When the SSH tunnel has been conrmed as working all the way to your Windows host on your LAN, install a VNC server on the Windows host machine. TightVNC Server (http://www.tightvnc.com/) is recommended. Read the TightVNC instructions for tunneling over SSH (http://members.shaw.ca/nicholas.fong/vnc/) . Read #Using SSH to Port Forward. Create a tunnel over SSH for port 5900 (the port that VNC uses by default) to either your host LAN's static IP or to the DynDNS URL you have set up. This will direct any calls to port 5900 from the remote Ubuntu client through the SSH tunnel, instead of sending them over the Internet directly over port 5900 (a risky proposition).
ssh -L <local port>:<remote computer>:<remote port> <user>@<remote ip>
In this example, port 5900 is used locally for VNC on both the host and client computers, but data is passed through the SSH tunnel (on port 22 by default). The user named foowho has an account on the host computer. The host is on a LAN that has dynamic IP addressing through the DynDNS service and has a URL foobar.dyndns.org. The router forwards port 22 to the host, where the TightVNC server is listening on remote port 5900.
ssh -L 5900:foobar.dyndns.org:5900 foowho
In this example, port 5900 is again used by VNC on both sides of the tunnel. This time the host LAN has a static IP address of 94.97.2.18. The host OpenSSH is set to listen on port 11022 in the ssdh_cong le. The TightVNC server is listening on remote port 5900.
ssh -L 5900:94.97.2.18:5900 foowho -p 11022
VNCViewer will then (by default) look for local port 5900 in the loopback, on which the SSH tunnel is running from the previous step. The Ubuntu SSH client will now send the VNC connection data over port 22 (instead of over port 5900) to the Windows OpenSSH host server, which is listening on port 22 (unless you have changed it). The Windows OpenSSH server (in Cygwin) will then internally redirect port 5900 communications to the TightVNC server on your Windows host. By using this tunnel for all VNC/port 5900 communications, port 5900 on your router needs never be open to the Internet, since all port 5900 communications are handled only locally on each end, and sent over the internet
146 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
through the tunnel. In fact, port 5900 ought to be remain closed on your router, to prevent non-secure VNC connection attempts from the Internet (by hackers/crackers). Routine usage requires starting the SSH tunnel to your Windows host rst, then starting the vnc client (vncviewer 127.0.0.1). You can write a simple two line script le to automate the process.
Windows
How to Mount Windows Partitions
How to Mount NTFS Partitions Step By Step Guide How to Mount Windows Partitions in Feisty (http://www.ubuntugeek.com/widows-ntfs-partitions-readwrite-support-made-easyin-ubuntu-feisty.html) How to mount/unmount Windows partitions (NTFS) manually, and allow all users to read only Read #General Notes Read #How to list partition tables In this example: /dev/hda1 is the location of Windows partition (NTFS) Local mount folder: /media/windows To mount a Windows partition:
sudo mkdir /media/windows sudo mount /dev/hda1 /media/windows/ -t ntfs -o nls=utf8,umask=0222
How to mount/unmount Windows partitions (FAT) manually, and allow all users to read/write Read #General Notes Read #How to list partition tables In this example: /dev/hda1 is the location of the Windows partition (FAT) Local mount folder: /media/windows To mount a Windows partition
147 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to mount Windows partitions (NTFS) on boot-up, and allow all users to read only Read #General Notes Read #How to list partition tables In this example: /dev/hda1 is the location of the Windows partition (NTFS) Local mount folder: /media/windows
sudo mkdir /media/windows sudo cp /etc/fstab /etc/fstab_backup gksudo gedit /etc/fstab
Read #How to remount /etc/fstab without rebooting How to mount Windows partitions (FAT) on boot-up, and allow all users to read/write Read #General Notes Read #How to list partition tables In this example: /dev/hda1 is the location of Windows partition (FAT) Local mount folder: /media/windows
sudo mkdir /media/windows sudo cp /etc/fstab /etc/fstab_backup gksudo gedit /etc/fstab
148 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to mount Windows partitions (NTFS) on boot-up, and allow users read and write access Warning: The software you will use is still in Beta. You should not enable it on production machines Read #General Notes Enable universe. Read #How to apt-get the easy way (Synaptic) Applications -> Add/Remove -> search for 'NTFS', you should nd NTFS Conguration Tool, install it. Applications -> System Tools -> NTFS Conguration Tool -> Enable Write Support (depending on your device internal/external) Further troubleshooting is listed at this comprehensive howto thread (http://www.ubuntuforums.org/showthread.php?t=217009) .
Security
What are the basic things I need to know about securing my Ubuntu Read #General Notes Ensure hard drive is rst in BIOS boot-up sequence To prevent trespassers from using Linux Installation CD which allows them to gain root user access To prevent trespassers from using Linux Live CD (e.g. UBUNTU/KNOPPIX /MEPIS) which allows them to destroy/browse/share the entire hard drive To prevent trespassers from installing another Operating System Ensure a password is set for BIOS To prevent trespassers from changing the BIOS boot-up sequence Ensure computer is located at a secured place To prevent trespassers from removing computer's hard drive which allows them to destroy/browse/share the entire hard drive from a dierent computer To prevent trespassers from removing computer's on-board battery which resets the BIOS password Ensure passwords used on the system cannot be easily guessed To prevent trespassers from cracking password le using brute force attacks (e.g. John the Ripper) Create password with minimum length of 8 characters Create password with mixture of characters/numbers, and upper/lower case Not create a password with just a single or just a typical union of main languages (english, german, french, spanish...) dictionary words Ensure interactive editing control for GRUB menu is disabled To prevent trespassers from modifying kernel boot-up arguments which allows them to have root user access Read #How to disable all interactive editing control for GRUB menu Ensure history listing is disabled in Console mode
149 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
To prevent trespassers from seeing previously issued commands Read #How to disable history listing in Console mode Ensure Ctrl+Alt+Del is disabled in Console mode To prevent trespassers from restarting the system without permission in Console mode Read #How to disable Ctrl+Alt+Del from restarting computer in Console mode Ensure interactive option is set for remove, copy and move of les/folders in Console mode To prevent accidental removal/overwritten of les/folders Read #How to enable prompt before removal/overwritten of les/folders in Console mode For day to day usage, login as a normal user To prevent accidental deletion/modication of system les/folders Read #How to add/edit/delete system users Disable root user account, use "sudo" instead To reduce the amount of time spent with root privileges, and thus the risk of inadvertently executing a command as root "sudo" provides a more useful audit trail (/var/log/auth.log) Read #How to disable root user account Install a Firewall A rewall does not guarantee security but it is in most environments the rst line of defense against network based attacks Read #How to install Firewall (Firestarter) Perform vulnerability test Nessus is a great tool designed to automate the testing and discovery of known security problems Read #How to install Vulnerability Scanner (Nessus) How to disable all interactive editing control for GRUB menu Read #General Notes Run This:
grub-md5-crypt
150 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
## 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$tumnZ1$xB/shuXs7MlawZXkLiBDV/ # password topsecret ...
This will make it so your grub console will require a password to edit the lines, and the recovery modes won't work unless the password is typed. To access the other grub options at the menu, follow the instructions at the bottom of the screen. It will be something like pressing p and typing your password. How to disable history listing in Console mode Read #General Notes From Gentoo Wiki (http://gentoo-wiki.com /SECURITY_Adjusting_The_Way_Bash_History_Funtions) :
rm -f .bash_history gedit ~/.bash_profile
151 of 242
10/14/2011 02:47 PM
http://ubuntuguide.org/wiki/Ubuntu:Feisty
# Change this to a reasonable number of lines to save, I like to save only 100. export HISTSIZE=1 # Ignores duplicate lines next to each other export HISTCONTROL=ignoredups
This will disable Bash history for the user, retaining keystroke history and recall to use while limiting recall history to 100 lines. This will also not record duplicate lines next to each other. How to disable recently used documents Read #General Notes From Disabling recently-used documents. (http://ubuntuforums.org /showpost.php?p=3005775&postcount=4) To disable run this in your user directory. Example: /home/username/
sudo rm ~/.recently-used ~/.recently-used.xbel && mkdir ~/.recently-used.xbel
This will just clear your current history. How to disable Ctrl+Alt+Del from restarting computer in Console mode Read #General Notes
sudo cp /etc/inittab /etc/inittab_backup gksudo gedit /etc/inittab
152 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
sudo telinit q
How to enable prompt before removal/overwritten of les/folders in Console mode Read #General Notes
sudo cp /etc/bash.bashrc /etc/bash.bashrc_backup gksudo gedit /etc/bash.bashrc
Save the edited le How to setup a LoJack (http://en.wikipedia.org/wiki/Lojack) system for your laptop Read #General Notes Read #How to add extra repositories Read #How to use dynamic IP addressing for your host using the free DynDNS service Read #Maintain Dynamic IP address with ddclient utility If your laptop is stolen and then subsequently connected to the Internet, you will be able to nd out from which IP address it connects to the Internet, by this method. Get a free dynamic IP account from one of the many providers, such as DynDNS (https://www.dyndns.com/) . Read #How to use dynamic IP addressing for your host using the free DynDNS service. Remember the hostname you set up, such as yourhostname.dyndns.org. Install ddclient. Read #Maintain Dynamic IP address with ddclient utility. Ddclient updates the IP address at DynDNS every 5 minutes by default (unless you change it). The hostname (yourhostname.dyndns.org in the example) that you registered with your dynamic IP service (i.e. DynDNS) should be updated whenever someone runs your computer, stolen or not. You can nd out from which IP address the computer was last run by using the ping command:
ping yourhostname.dyndns.org
You can then look up the IP address with a reverse IP service and at least get an idea in what city your laptop is in. Of course, if the IP address resolves to one of a large bank of addresses used by an ISP provider, such as AT&T, you may not be helped much by this method.
153 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to get advanced protection against buer overows with grsecurity (http://www.grsecurity.net) You can get advanced protection against buer overows by using a PaX/grsecurity enabled kernel. You can get a precompiled version for Ubuntu at kernelsec (http://kernelsec.cr0.org) How to add Access Control Lists (ACLs) You can obtain ner control of permissions over les and folders similar to NTFS in Windows by installing acl. Additionally, Eiciel (http://ro.roger-ferrer.org/eiciel/) will add an Access Control List tab to le and folder properties in Nautilus. Original instructions were found here (http://tlug.dnho.net/?q=node/171) . See the serfacl command manual (http://www.linuxcommand.org/man_pages/setfacl1.html) for information on setting ACLs from the console.
sudo apt-get install acl
After installing, modify your /etc/fstab to add the "acl" option to each device/partition you want to have ACL functionality. It should look like something similar to this:
# /dev/hda3 UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx # /dev/hda4 UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ...
/ /home
ext3 ext3
defaults,acl,errors=remount-ro defaults,acl 0 2
Install Eiciel:
sudo apt-get install eiciel
Restart Nautilus (may need to be manually restarted). See Eiciel installation page (http://ro.roger-ferrer.org/eiciel/?s=4) for more details.
nautilus -q
Firewall Ubuntu has a built-in rewall system called IPtables (netlter) that is enabled by default. At installation all ports are open and there is eectively no ltering/protection. To close the ports and leave only the ones you want open, you must either manually edit the iptables or use a GUI (such as Firestarter). Once you edit the iptables conguration, your
154 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Read UbuntuHelp Iptables (https://help.ubuntu.com/community/IptablesHowTo) Read Netlter's documentation for iptables (http://www.netlter.org/documentation /HOWTO//packet-ltering-HOWTO-7.html) Read the manual:
man iptables
Read #General Notes Firetarter is a Gnome GUI. For KDE (Kubuntu) users, try fwbuilder, guarddog, guidedog, kmyrewall, or knetlter. You are strongly recommended to learn and use Firestarter for managing iptables/netlter. For more information: http://www.fs-security.com/ Firestarter is the easiest GUI to change the IPtables and alter the rewall functions. Firestarter itself does not perform these rewall functions. It is only a method for changing your IPtables rewall settings. When Firestarter is installed from the package, it integrates with iptables, which runs in the background as a system service. After running Firestarter's initial setup wizard, your iptables will be changed and most ports closed. Firestarter then needs to be run only when you wish to change settings. To install the package, the universe repository must be enabled. Read #How to add extra repositories. Then install the package:
System-->Administration-->Synaptic Package Manager-->Search-->firestarter-->Mark for Installation
Run Firestarter:
System-->Administration-->Firestarter
Note: Once you have setup the iptables rewall the rst time using Firestarter, you do
155 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
not need to have Firestarter running to be protected by the IPtables rewall (which is then always enabled in Ubuntu). Firestarter is only the GUI for changing the settings of the rewall; it only needs to be started when doing so. The following step is therefore unnecessary for most users.
System -> Preferences -> Sessions -> Startup Programs -> New Name: Firestarter --start-hidden
Read #Security Warning: This is NOT secure. It is unnecessary for most users. The original instructions can be found at the Firestarter FAQ website (http://www.fssecurity.com/docs/faq.php) . Edit the conguration le:
sudo gedit /etc/sudoers
In the Defaults section of the le, comment out this line with a with a hashmark (#) at the beginning of the line (optional):
#Defaults !lecture,tty_tickets,!fqdn
Replace 'your_user_name' with your actual username. Reboot. Using Shorewall to manage iptables Shorewall is an alternative to Firestarter. It allows more options to be set, but is more dicult to use. It can be administered from a GUI using Webmin (http://www.webmin.com/) .
156 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Anti-virus
ClamAV AntiVirus Server Read #General Notes Read #How to add extra repositories Although viruses and spyware are less common in Linux systems, they do exist. Furthermore, many users share les with Windows users, either on their own computer or on LANs. ClamAV is useful for checking these les. Install ClamAV AntiVirus Server:
sudo apt-get install clamav
Virus denition updates are provided by the clamav-freshclam module, which is installed as part of clamav. Run freshclam manually:
sudo freshclam
The clamav daemon will run freshclam automatically to keep denitions up-to-date. It will also run e-mail server checking modules for e-mail attachments.
sudo apt-get install clamav-daemon
ClamTk can be accessed from the Menu: Applications--> Accessories-->Virus Scanner Note: As of August 1, 2007, the Ubuntu repository version of ClamTk is 0.31, which
157 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
has a bug that does not allow it to run. Obtain and install the current version of ClamTk 0.99, which functions ne in Ubuntu Feisty:
wget -c http://downloads.sourceforge.net/clamtk/clamtk_2.99-1_all.deb sudo dpkg -i clamtk_2.99-1_all.deb
Read #General Notes Read #How to install ClamAV AntiVirus Server This method is used to automatically scan les/folders for viruses at a scheduled time. * * * * * means: minute hour date month year Edit the crontab le:
EDITOR=gedit sudo crontab -e
comment: sure? - (its work?) Append a line similar to the following line at the end of le. In this example, scanning will be done at 02:04am every day of every month of every year.
04 02 * * * sudo clamscan -r /location_of_files_or_folders
Boot Menu
How to gain root user access without login Read #General Notes Easiest method (will not work if GRUB menu password is set) Boot-up computer If GRUB menu is hidden, press 'Esc' to enter the GRUB menu Select
Ubuntu, kernel 2.6.10-5-386 (recovery mode)
Press 'Enter' to boot Other methods Read #How to modify kernel boot-up arguments, to gain root user access
158 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Read #How to use Ubuntu Installation CD, to gain root user access How to modify kernel boot-up arguments, to gain root user access Read #General Notes Boot-up computer If GRUB menu is hidden, press 'Esc' to enter the GRUB menu If GRUB password is set, press 'p' to unlock the GRUB menu Select
Ubuntu, kernel 2.6.10-5-386
Press 'e' to edit the selected command in the boot sequence Add "rw init=/bin/bash" to the end of the arguments
grub edit> kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro quiet splash rw init=/bin/bash
Press 'b' to boot How to use Ubuntu Installation CD, to gain root user access Read #General Notes Boot-up computer into Ubuntu Installation CD At "boot:" prompt, add "rescue" to the argument
boot: rescue
Follow the instructions on screen How to change root user/main user password if forgotten Read #General Notes Read #How to gain root user access without login To change root user password
# passwd root
159 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
grub> md5crypt Password: ****** (ubuntu) Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password) grub> quit
Save the edited le How to restore GRUB menu after Windows installation
Super Grub Disk
Use Super Grub Disk (http://geocities.com/supergrubdisk/) More info on how to use it here (http://users.bigpond.net.au/hermanzone /SuperGrubDiskPage.html)
Grub
If you have booted your linux distro with Super Grub Disk, or a live CD and want to restore your grub, follow the below instructions: As root (or with sudo), type grub When at the grub prompt, type find /boot/grub/stage2 This will return something like (hd0,2) To setup the boot partition boot type root (hd0,2). This is the harddrive and the partition your linux is installed on... And then to congure grub type setup (hd0) Now you're done, so exit with quit How to identify the name of the boot drive (hd0, hd1, hd2, etc)
160 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Press "c" on boot menu. If you don't see a boot menu, press ESC key rst when booting to show the boot menu. Type:
root (hd0,0)
Most likely you will get "(hd0,0) ext2fs", which should be your current Linux drive. Now change hd0 to hd1 to see what is there.
root (hd1,0)
If you get "(hd1,0) lesystem type unknown, partition type 0x7", then hd1 is a Windows drive. Now change hd1 to hd2, keep going until you reach hd7. OR In a terminal you can type:
cat /boot/grub/device.map
(hd0) (hd1)
/dev/hda /dev/sda
This represents that grub recognizes your IDE drive and assigned it the value hd0; and also your SATA drive and assigned it the value hd1. Note that grub assigns ALL hard disks, be they IDE or SATA, by hd* where * is a number. This is useful if you are editing your /boot/grub/menu.lst from a terminal in Ubuntu and need to know what grub is seeing. Use
sudo fdisk -l
to nd which drives are bootable How to add Windows entry into GRUB menu Read #General Notes Read #How to list partition tables
161 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
+1
Save the edited le How to boot into Windows installed on a seperate SATA drive Read #General Notes Read #How to identify the name of the boot drive (hd0, hd1, hd2, etc) This conguration applies to people who have Linux installed on a IDE drive, and Windows installed on a seperate SATA. The IDE drive boots rst, so we need to add an entry to the boot menu on the Linux disk. Here we assume the name of your Windows drive is hd1. If you are not sure, click the link above to nd out.
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gksudo gedit /boot/grub/menu.lst
This will update the grub bootloader and nalize any changes you made
162 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
10
Replace it with the following line, where X_seconds is a number representing the number of seconds before the menu should timeout.
timeout X_seconds
Replace with the following line, where X_sequence is a number representing the number of the Grub menu item you want to be the default operating system.
default X_sequence
To gure out which number corresponds to the desired operating system, scroll to the bottom of the menu.lst le in gedit and look for lines that begin with the word title. The rst "title" is 0, the second is 1, etc. Count "title" entries to nd the number of the desired
163 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
operating system and enter that number in place of X_sequence in the line above. Save the edited le
Where 1 means to keep the last kernel, 2 to keep the last 2 kernels, etc. Do not delete the # symbol. The menu will be updated once a new kernel will be updated by the system, not before. Save the edited le Update /boot/grub/menu.lst
164 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
sudo update-grub
How to read Linux partitions (ext2, ext3) in Windows machine Read #General Notes Download Explore2fs: Here (http://easylinux.info/uploads/explore2fs-1.07.zip) OR See www.fs-driver.org (http://www.fs-driver.org/index.html)
How to Boot Ubuntu from the Windows Bootloader You may choose to have the Windows bootloader set as the default, and use that to boot into your Windows install or to load GRUB so you can boot into Ubuntu from there. While in Ubuntu setup, at the very last prompt before the actual installation/copying process begins there will be a button labeled "Advanced" that presents you with an option to change the location of GRUB. The default is the MBR of the boot drive. You should change this to point to your Ubuntu partition instead. For instance, the second partition of the rst hard-drive would be hd(0,1). If you've already installed Ubuntu, you'll have to use grub-install to install GRUB to the bootsector of the Ubuntu partition. There are two methods of adding Ubuntu to the Windows bootloader. The easiest method is if you are using Windows Vista, by using EasyBCD (http://neosmart.net/dl.php?id=1) and simply pointing EasyBCD to the Ubuntu partition and asking it to create an entry there. Full instructions available at NeoSmart Technologies (http://neosmart.net/wiki/display /EBCD/Linux) . If you're using Windows XP the process is slightly more involved and requires that you use , the `dd` command to copy the rst 512 bytes of the Ubuntu partition: dd if=/dev/sda2 of=~/Desktop/Ubuntu.mbr bs=512 count=1 Then copy the resulting Ubuntu.mbr le to C:\ of your Windows drive, and add an entry C:\Ubunutu.mbr Ubuntu in the Windows' Boot.ini le.
165 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
If during the make it dies at 'x264.c:147: error: `struct <anonymous>` has no member name `i_rf_constant` you need to do the following. Open libavcodec/x264.c and goto line 147. Change 'i_rf_constant' to 'f_rf_constant' and retry. If an application you are using employs FFMPEG to encode FLV, it should now work properly. You can also call FFMPEG directly from the command line. The extension/sux of the outle tells FFMPEG which audio or video format to encode to.
ffmpeg [-i infile] [outfile]
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
gedit ~/.fonts.conf
Paste in this text after the declaration <?xml version='1.0' ?><!DOCTYPE fontcong SYSTEM "fonts.dtd">:
<fontconfig> <match target='font' > <edit name='autohint' mode='assign' > <bool>true</bool> </edit> </match> </fontconfig>
Save the edited le Read #How to restart GNOME without rebooting computer
167 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
to
s/keycode 58 = Caps_Lock/keycode 58 = Control/;
Add this:
keycode 66 = Control_L clear Lock add Control = Control_L
In all cases
gedit ~/.xinitrc
168 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
xmodmap ~/.Xmodmap
Restart X-Windows Log In, a dialog should pop up, add .Xmodmap to the left side with the add button, and Save.
169 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
"DontZap"
"yes"
Save the edited le Read #How to restart GNOME without rebooting computer
170 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Views Tab -> Default View -> Show hidden and backup files (Checked)
Save the edited le Read #How to refresh GNOME panel To browse les/folders as root user in Nautilus Applications -> System Tools -> File Browser (Root)
Read #How to refresh GNOME desktop Nautilus -> Right-click on folder or background -> Open in Terminal
171 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to change backspace behavior in Mozilla Firefox to do page back instead of page up
In the adress bar in Firefox type:
172 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
about:config
Search for 'browser.backspace_action' in the list Change the value from 1 to 0 by doubleclicking on the number Restart Firefox
Open your refox. Type as url: about:cong Now just right click somewhere into the main window. A little box with options to choose will appear. Choose "new", then "string". Then copy the following line into the appearing text eld:
network.protocol-handler.app.mms
Now you do the same thing again, but this time you do not choose "string" but "boolean", and the line to copy is:
network.protocol-handler.external.mms
Then set
true
Open your refox. Type as url: about:cong Now just right click somewhere into the main window. A little box with options to choose will appear. Choose "new", then "string". Then copy the following line into the appearing text eld:
173 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
network.protocol-handler.app.rtsp
Now you do the same thing again, but this time you do not choose "string" but "boolean", and the line to copy is:
network.protocol-handler.external.rtsp
Then set
true
Filter: -> network.dns.disableIPv6 -> true network.http.pipelining -> true network.http.pipelining.maxrequests -> 8 network.http.proxy.pipelining -> true
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
web-browser-in-ubuntu.html)
To uninstall .deb le
sudo dpkg -r package_name
In the directory where you have extracted the source, after you have run ./congure and make you can create a .deb le and install it with either of the following commands. The second -D option creates a .deb le in the directory that you can share with others or install without needing the source.
sudo checkinstall
or
sudo checkinstall -D
175 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
For more info go to CheckInstall home page (http://asic-linux.com.mx/~izto /checkinstall/index.php) and the Installing software on Ubuntu page (http://www.psychocats.net/ubuntu/installingsoftware.php) . Autodeb (https://wiki.ubuntu.com/AutoDeb) uses a modied version of AutoApt (https://wiki.ubuntu.com/AutoApt) to complete the entire process above including extraction from the .tar.gz le, however it is still in an early stage of development.
Append the System-wide Environment Variables at the end of le Save the edited le
176 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
System -> Administration -> Login Window -> Accessibility Now make sure the "Login Screen Ready" check mark is checked. Click on the folder icon and navigate to your home folder and select "foo.wav".
rm foo.wav
177 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Method 1 uses a simple Python script named change-wallpaper.py: Download and rename the python script change-background-py and make it executable:
wget http://oracle.bridgewayconsulting.com.au/~davyd/misc/change-background-py.html mv change-background-py.html change-background.py chmod +x change-background.py
Create a folder for your wallpapers and make a link (in your home directory) to it named .backgrounds:
mkdir ~/wallpapers gksudo ln -s ~wallpapers ~/.backgrounds
or make a link (in your home directory) named .backgrounds to your /usr/share /backgrounds folder:
gksudo ln -s /usr/share/backgrounds ~/.backgrounds
178 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
1 as X would mean: every hour:01. For every minute, just use * as X. To exit: press ctrl+x, y Method 2 uses a more complex Python script named wallpaperchanger.py: To install the script into a dierent location than your home directory, replace "~" with your path
cd ~ wget http://members.chello.at/horst.jens/files/wallpaperchanger.py chmod +x wallpaperchanger.py ~/wallpaperchanger.py gedit ~/.wallpaperchanger/wallpaperchangerconfig.py
1 as X would mean: every hour:01. For every minute, just use * as X. To exit: press ctrl+x, y
179 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
les on
/etc/X11/xkb/rules
to select 2nd_laguage_code
you can add it to a startup le, which will be set to be executed on startup, with the following lines (remember to 'chmod +x' the le):
#!/bin/tcsh setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,il
180 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
The key marked ['"] is now a dead key. When you press it, nothing happens. However if you press a consonant immediately afterwards, the consonant appears with an accent. '+a= '+e= and so on for i-, o-, y-, c-, z-, n-, l-, u-, r- "+a= "+e= and so on for y-, u-, i-, o- Similarly, ` and a consonant generates , , , , . Similarly, ~ and a consonant generates , , , , . To type ' and ", press RightAlt+' and RightAlt+" respectively. To type ' and ", you may also press '+<space> and "+<space> respectively. There are more characters available by keeping RightAlt pressed and typing a character. Therefore, RightAlt+q = RightAlt+w = RightAlt+e = RightAlt+r = RightAlt+t = RightAlt+y = RightAlt+u = RightAlt+i = RightAlt+o = RightAlt+p = RightAlt+[ and ] for and respectively. RightAlt+a = RightAlt+s = RightAlt+d = RightAlt+l = RightAlt+; = RightAlt+: = RightAlt+z = RightAlt+c = RightAlt+n = RightAlt+m = RightAlt+, = RightAlt+/ = RightAlt+1 RightAlt+2 RightAlt+3 RightAlt+4 RightAlt+5 RightAlt+6 RightAlt+7
181 of 242
= = = = = = =
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
RightAlt+8 = RightAlt+9 = RightAlt+0 = RightAlt+- = RightAlt+= = RightAlt+! = RightAlt+@, then o = (and ). RightAlt+#, then a = (and ). Similarly for , , , . RightAlt+$ = RightAlt+% = RightAlt+^ = RightAlt+& = RightAlt+*, then a = (and ). Similarly for , . RightAlt+(, then a = (and ) RightAlt+(, then g = (and ) RightAlt+), then a = (and ) RightAlt+_ = RightAlt++ =
182 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
183 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
gedit pdftk_cat
open Nautilus (Places -> Desktop) and browse to a .pdf le right-click the .pdf le, select Properties, go to the Open With tab, click Add, click Use a Custom Command, click Browse, browse to pdftk_burst. Do the same with pdftk_cat. Now, when you right-click on a .pdf le, you'll get two extra options: Open With -> pdftk_burst which will convert a 30 page pdf le to 30 x 1 page pdf les Open With -> pdftk_cat which will join together all the pdf les in the same directory, and create a le called 00out.pdf Note: this won't work with pdfs with any type of protection - read man pdftk for more command line options.
How to remove jedit when Synaptic package manager fails after install
Read #How to install jedit
sudo dpkg --remove --force-depends --force-remove-reinstreq jedit
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
'r' - Turns o keyboard raw mode and sets it to XLATE. 'k' - Secure Access Key (SAK) Kills all programs on the current virtual console. 'b' - Will immediately reboot the system without syncing or unmounting your disks. 'c' - Will perform a kexec reboot in order to take a crashdump. 'o' - Will shut your system o (if congured and supported). 's' - Will attempt to sync all mounted lesystems. 'u' - Will attempt to remount all mounted lesystems read-only. 'p' - Will dump the current registers and ags to your console. 't' - Will dump a list of current tasks and their information to your console. 'm' - Will dump current memory info to your console. 'v' - Dumps Voyager SMP processor info to your console. '0'-'9' - Sets the console log level, controlling which kernel messages will be printed to your console. ('0', for example would make it so that only emergency messages like PANICs or OOPSes would make it to your console.) 'f' - Will call oom_kill to kill a memory hog process 'e' - Send a SIGTERM to all processes, except for init. 'i' - Send a SIGKILL to all processes, except for init. 'l' - Send a SIGKILL to all processes, INCLUDING init. (Your system will be non-functional after this.) 'h' - Will display help ( actually any other key than those listed above will display help. but 'h' is easy to remember :-) Note that you may have to enable system requests. Read "/usr/src/linux/Documentation /sysrq.txt" for details. By default it is enabled though.
This example shows all Russian (ru) and English (en) locales being chosen. Look through /usr/share/i18n/SUPPORTED to nd the ones for you, then put them in a list, replacing en\|ru and separating each language with a \| (backslash, bar). If you only want one language, just put it in quotes. Then regenerate all of the locales:
dpkg-reconfigure locales
185 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
update-locale LANG=en_US.UTF-8
In this step, make sure to choose the language and country that you would like your computer to think it is in. Here, I choose en_US, the United States version of English. Once again, look at your /var/lib/locales/supported.d/local or /usr/share/i18n/SUPPORTED for the one right for you. You may also want to research locales, using the Internet. That was easy, now the command
lxterm
will open up the Unicode version of xterm or your translated software will display things properly, like vim.
Other way is to change this parameter globaly for all gnome-terminal launcher's. Go to /usr/share/applications/gnome-terminal.desktop and edit the EXEC line like this:
Exec=gnome-terminal --geometry=120x30
Using VI editor
A few very simple tricks of using basic but strong unix editor called vi can be found here (http://unixhelp.ed.ac.uk/vi/index.html) .
186 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Install LinDVD: Get the latest version from here: http://rpm.pbone.net Use Alien to convert .rpm le to .deb
sudo apt-get install alien sudo alien -d lindvd*.rpm sudo dpkg -i lindvd*.deb
Restart LinDVD
Go to 'System/Preferences/Sessions/Startup Programs' and add the following path to start notier automatically
File:Sessions.png
Sessions windows
/usr/bin/checkgmail
187 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
click 'Add' button. Install 'Beagle' packet to enable data indexing on your computer
188 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
so select it and click 'Forward' "STEP 2of3" Select "Generic" as the manufacturer and "PostScript" as the printer. Now click 'Forward' "STEP 3of3" Give the printer a sensible description and location and click 'Apply' The "CUPS/PostScript" printer should now exist in the print dialogue of you applications and will save the output PDF le to the /HOME/PDF folder. It may be possible to change the destination by editing /etc/cups/cups-pdf.conf
Then delete any printers that need to print in letter size and reinstall printers. System --> Administration --> Printing
Servers
Monitoring Server
Read #General Notes Read #How to add extra repositories If you want to monitor your Ubuntu servers and clients like memory usage,CPU usage,Load average,Disk usage,Mysql monitoring, Network Monitoring,Processes Monitoring this is for you Monitor your Ubuntu Servers and Clients using Munin (http://www.debianadmin.com /monitor-servers-and-clients-using-munin-in-ubuntu.html)
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to install cupsd Cupsd should be automatically installed during standard installation. Checkout if there is a le "/etc/init.d/cupsys". If you want to manually install it, do
sudo apt-get install cupsys*
How to add a printer Go to System -> Administration -> Printing. Choose "Add printer". "Add printer wizard" should start and tell you what to do. How to remove a printer
sudo lpadmin -x printernamewhere
printername is the name of the printer you want to remove How to print on remote Ubuntu machine from another Ubuntu machine Make sure your local printer is well congured. Enable local printer sharing - System -> Administration -> Printing -> Global Settings menu -> Share printers Server ip address: 192.168.0.1 Client ip address: 192.168.0.23 Server conguration
sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.backup gksudo gedit /etc/cups/cupsd.conf
nd the block
<Location /> ... Allow localhost ... </Location>
Restart cups.
190 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Client conguration
sudo cp /etc/cups/client.conf /etc/cups/client.conf.backup gksudo gedit /etc/cups/client.conf
Restart cups.
sudo /etc/init.d/cupsys restart
How to print on remote Ubuntu machine from a Windows machine Read #How to install Samba Server for les/folders sharing service Read #How to print on remote Ubuntu machine via samba 1.19.4.5 How to set up 4 port printer server Setting up COMPUSA print server on Ubuntu (1) go to System, Administration, Printing. (2) Then Add a printer (3) Network Printer and choose HP JetDirect (4) Where it says Host you put in the IP Address of the Print server. You can nd it with Smb4k (5) Where it says Port you put 9100 for USB port 1. 9101 for USB port 2. 9102 for USB port 3. and 9103 for USB port 4. (6) Then click on forward and install your printer
NFS Server
191 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Read #General Notes Read #How to add extra repositories Read NFS Server and Client Setup Guide (http://www.ubuntugeek.com/nfs-serverand-client-conguration-in-ubuntu.html) Installing NFS Server
sudo apt-get install nfs-kernel-server nfs-common portmap
Add share (export) denitions: This will export path to all IP addresses between 192.168.1.1 and 192.168.1.254 with Read/Write access:
/path/to/shared/files 192.168.1.0/24(rw,no_root_squash,async)
This will export path to all IP addresses between 192.168.1.1 and 192.168.1.254 with Read Only access:
/path/to/shared/files 192.168.1.0/24(ro,async)
Mounting Manually
cd ~
192 of 242
10/14/2011 02:47 PM
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Mounting Automatically
Create mountpoint:
sudo mkdir /mnt/files
Edit conguration:
gksudo gedit /etc/fstab
Samba Server
Using Samba book (http://us4.samba.org/samba/docs/using_samba/toc.html) How to install Samba Server for les/folders sharing service Read #General Notes Read #How to add extra repositories
sudo apt-get install samba smbfs
You must also open the ports for incoming/outgoing use by Samba in the IPTables (rewall). This can be done using the Firestarter GUI, for example. Read #Firewall How to add/edit/delete network users Read #General Notes Read #How to install Samba Server for les/folders sharing service
193 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to share home folders with read only permission (Authentication=Yes) Read #General Notes Read #How to install Samba Server for les/folders sharing service
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
194 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to share home folders with read/write permissions (Authentication=Yes) Read #General Notes Read #How to install Samba Server for les/folders sharing service
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
How to share group folders with read only permission (Authentication=Yes) Read #General Notes Read #How to install Samba Server for les/folders sharing service
sudo mkdir /home/group sudo chmod 777 /home/group/
195 of 242
10/14/2011 02:47 PM
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to share group folders with read/write permissions (Authentication=Yes) Read #General Notes Read #How to install Samba Server for les/folders sharing service
sudo mkdir /home/group sudo chmod 777 /home/group/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
196 of 242
10/14/2011 02:47 PM
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to share public folders with read only permission (Authentication=Yes) Read #General Notes Read [[#How to install Samba Server for les/folders sharing service]
sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
197 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to share public folders with read/write permissions (Authentication=Yes) Read #General Notes Read #How to install Samba Server for les/folders sharing service If sharing a FAT32 partition, read #How to mount Windows partitions (FAT) on boot-up, and allow all users to read/write
sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
How to share public folders with read only permission (Authentication=No) Read #General Notes Read #How to install Samba Server for les/folders sharing service
198 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
Replace with the following line (make sure it does not begin with a semicolon)
security = share
How to share public folders with read/write permissions (Authentication=No) Read #General Notes Read #How to install Samba Server for les/folders sharing service If sharing a FAT32 partition, read #How to mount Windows partitions (FAT) on boot-up, and allow all users to read/write
sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
Replace with the following line (make sure it does not begin with a semicolon)
199 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
security = share
How to print on remote Ubuntu machine via samba Read #Print Server (cupsd) Make sure your Ubuntu printers are congured properly.
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup gedit /etc/samba/smb.conf
Now printers working on your Ubuntu machine should be acessible via samba. Windows networking error: "The account is not authorized to log in from this station." When accessing the Samba server from a locked down Windows computer, the following
200 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
error may occur: "\\hostname\sharename is not accessible. You might not have permission to use this network resource. The account is not authorized to log in from this station." This is sometimes caused by the Windows computer requiring digitally signed communications. The local Global Security Policy on the Windows computer needs to be changed. The following policies need to be disabled under Computer Conguration\Windows Settings\Security Settings\Local Policies\Security Options:</p> Microsoft network client: Digitally sign communications (always) (http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us /568.mspx) Microsoft network server: Digitally sign communications (always) (http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us /570.mspx) Samba Web Administration Tool (SWAT)
How to install INETD Superserver
#General Notes #How to add extra repositories #How to install Samba Server for les/folders sharing service #How to install INETD Superserver
If string is:
<#off#> swat stream tcp nowait.400 root /usr/sbin/tcpd /usr/sbin/swat
Restart daemon
201 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
If you have not set root password, do it, because you'll need it to access swat for editing Read #How to set/change/enable root user password
http://localhost:901/
SSH Server
SSH stands for secure shell. It is a method for establishing encrypted communications over a data channel (a "tunnel") between a remote host and a local client. It is similar to, but simpler than, a VPN connection. How to install SSH Server for remote administration service Read #General Notes Read #How to add extra repositories
sudo apt-get install ssh
How to SSH into remote Ubuntu host Read #General Notes The Ubuntu host must be running the SSH Server. Read #How to install SSH Server for remote administration service. In this example: Remote Ubuntu machine: 192.168.0.2 username is a valid user on the remote host
ssh username@192.168.0.2
If your LAN uses a dynamic IP to connect to the Internet, you can use a Dynamic IP service (such as DynDNS) to assign a static URL to your LAN (foobar.dyndns.org, for example). An SSH request over the Internet to your URL (e.g. foobar.dyndns.org) would then be routed by the DynDNS service to your modem/router. Your router must then be set to forward the port used for the SSH tunnel to your host machine on the LAN. (SSH tunnels generally occur by default over port 22, but it can be changed (see below)). For some humor: Read Etymology of foobar (http://en.wikipedia.org/wiki/Foo_bar) .
202 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
You can explicitly select the port number (instead of port 22) for the SSH tunnel:
ssh username@foobar.dyndns.org:11022
However, if you do this, the host SSH server must be listening on the same port (port 11022 in the example). The port to listen to can be set in the ssdh_cong le of the OpenSSH server (provided in Ubuntu) on your host. Also, your router must be congured to forward port 11022 to your OpenSSH host. How to copy les/folders from remote Ubuntu host into local machine (scp) Read #General Notes The Ubuntu host must be running the SSH Server. Read #How to install SSH Server for remote administration service. In this example: Remote Ubuntu machine: 192.168.0.2 Remote les/folders location: /home/username/remotele.txt Local machine save location: . (current directory)
scp -r username@192.168.0.2:/home/username/remotefile.txt
How to copy les/folders from local machine into remote Ubuntu host (scp) Read #General Notes The Ubuntu host must be running the SSH Server. Read #How to install SSH Server for remote administration service. In this example: Local les/folders location: localle.txt Remote Ubuntu machine: 192.168.0.2 Remote Ubuntu machine save location: /home/username/
scp -r localfile.txt username@192.168.0.2:/home/username/
How to copy les/folders from remote Ubuntu host into local machine (rsync) Read #General Notes The Ubuntu host must be running the SSH Server. Read #How to install SSH Server for remote administration service. In this example: Remote Ubuntu machine: 192.168.0.2 Remote les/folders location: /home/username/remotele.txt Local machine save location: . (current directory)
203 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to copy les/folders from local machine into a remote Ubuntu host (rsync) Read #General Notes The Ubuntu host must be running the SSH Server. Read #How to install SSH Server for remote administration service. For this example: Local les/folders location: localle.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 username@192.168.0.1:/home/username/
How to mount remote host folders into local Ubuntu machine (sshfs) Read #General Notes The remote Ubuntu host must be running the SSH Server service. Read #How to install SSH Server for remote administration service. For this example: Remote machine: 192.168.0.2 Remote machine folder location: /media/music Install sshfs
sudo apt-get install sshfs
204 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
mkdir ~/remote_music
How to SSH into a remote Ubuntu host from a Windows client Read #General Notes The Ubuntu host must have an SSH Server running. Read #How to install SSH Server for remote administration service. Download PuTTY from the PuTTY website (http://www.chiark.greenend.org.uk /~sgtatham/putty/) onto your Windows client. How to copy les/folders from/into a host Ubuntu machine from a Windows client Read #General Notes The Ubuntu host must be running the SSH Server. Read #How to install SSH Server for remote administration service. Download FileZilla from the FileZilla website (http://sourceforge.net/project /showles.php?group_id=21558) . How to limit the user accounts that can connect through ssh remotely See Limit the user accounts that can connect through OpenSSH remotely Using SSH to Port Forward Read #General Notes The Ubuntu host must be running the SSH Server. Read #How to install SSH Server for remote administration service. The format of the client command to create an SSH tunnel to an OpenSSH host listening on the default port 22 is:
ssh -L <local port>:<remote computer>:<remote port> <user>@<remote ip>
An example is:
ssh -L 6669:94.92.10.15:6667 foowho
In this example, local port 6669 on the local client computer is tunneled by encrypted SSH over the default port 22 to the router at 94.92.10.15. The router must be set up to forward port 22 to whatever the internal LAN IP (such as 192.168.0.56) of the SSH host is. The host is running OpenSSH (ssdh service) and is set to listen to port 22. It then routes the incoming data to the host port 6667, where presumably some other program is waiting for
205 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
data. foowho has an account on the host running the OpenSSH server. SSH tunnels can also be established using URLs and even alternate ports. An example is:
ssh -L 5900:foobar.dyndns.org:5900 foowho -p 11022
In this example, local port 5900 on the client is forwarded through an SSH tunnel on port 11022 to foobar.dyndns.org. The DNS service translates foobar.dyndns.org into the appropriate WAN (Internet) IP address, where the router is listening. The router is set up to forward port 11022 to the LAN machine hosting the OpenSSH server, which is listening on port 11022. It then sends the data to whatever program is running on port 5900 on the host. You can forward a local port to a dierent port on the remote host. Example: Make port 80 (web server/browser) on the remote host at 10.0.2.10 available locally as port 81
ssh -L 81:10.0.2.10:80 user@office.net
You can create secure SSH tunnels to multiple hosts using multiple ports.
ssh -L 81:10.0.2.10:80 -L 82:10.0.2.20:80 -L 83:10.0.2.30:80 user@office.net
Now, local port 81 locally forwards to port 80 on the host at 10.0.2.10, local port 82 forwards to port 80 on the host at 10.0.2.20 and local port 83 forwards to port 80 on the host at 10.0.2.30. In this example, user has an account on all three host machines at 10.0.2.10, 10.0.2.20, and 10.0.2.30. Once port forwarding is set up by ssh, an application is directed to the SSH tunnel for port usage by using the loopback as the destination. Example 1:
ssh -L 81:10.0.2.10:80 user@office.net
http://localhost:81 or http://127.0.0.1/:81
will direct a web browser to use port 81 locally, which is being redirected by SSH to port 80 on the remote host at 10.0.2.10. Example 2:
ssh -L 5900:foobar.dyndns.org:5900 foowho vncviewer 127.0.0.1 or vncviewer localhost
will direct vncviewer (which uses port 5900 by default) to direct its trac through the ssh tunnel to the host at foobar.dyndns.org, where, presumably, a VNC server is listening on port 5900.
206 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Protecting SSH from brute force attack Read #General Notes Read #How to add extra repositories It is possible to easily protect SSH from a password brute force attack with a pam_abl module. You can install it by the two ways: Manually according to pam_abl documentation (http://www.hexten.net/pam_abl/) and manually apply patch for a bug 405041 (http://lists.debian.org/debian-ssh/2006 /12/msg00160.html) onto openssh-server Automatically by the repository from tolero.org To install from a repository: Add a repository for your distribution listed on the ssh brute force protection (http://tech.tolero.org/blog/en/linux/ssh-password-brute-force-protection) page And execute the following commands:
sudo sudo sudo sudo apt-get update apt-get upgrade apt-get install libpam-abl /etc/init.d/ssh restart
First command is to fetch the repository listing. Second is to upgrade the openssh-server package to patched version (openssh-client will be also updated). Third is to set up a protection plugin. And the fourth is to restart a server with a new security plugin.
Rsync Daemon
Rsync (http://en.wikipedia.org/wiki/Rsync) is a backup/mirroring/synchronization tool to keep two directories, local or remote, synchronized. Read this brief tutorial (http://everythinglinux.org/rsync/) . How to install the Rsync Daemon for remote backup and restoration of les Read #General Notes Usually by default Ubuntu will have rsync installed but not enabled. But to make sure run this command:
sudo apt-get install rsync
Now we need to create the conguration le. This tells the daemon what to do:
sudo gedit /etc/rsyncd.conf
Copy and paste the following into the le but make sure to replace all instances of "username" with your username:
207 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
[usernamebackup] path = /home/username/backup comment = Backup uid = username gid = username read only = false auth users = username secrets file = /etc/rsyncd.secrets
And set:
RSYNC_ENABLE=false
To:
RSYNC_ENABLE=true
This allows the daemon to become active and lets you back up your data! To kickstart the change, restart the daemon:
sudo /etc/init.d/rsync restart
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Find:
#Banner /etc/issue.net
Replace:
Banner /etc/issue.net
Restart SSHD:
sudo /etc/init.d/ssh restart
DHCP Server
How to install DHCP Server for automatic IP addresses assignment Read #General Notes Read #How to add extra repositories In this example: "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.1
sudo apt-get install dhcp3-server sudo cp /etc/default/dhcp3-server /etc/default/dhcp3-server_backup gksudo gedit /etc/default/dhcp3-server
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
... INTERFACES=""
210 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty 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; }
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to further setup your LAMP server by creating and using MySQL databases, etc, go here (http://www.linuxforums.org/servers/setting_up_a_server.html) . If you want to do a manual installation (much more complex), it can be found at Ubuntu Feisty LAMP Server Installation with Screenshots (http://www.ubuntugeek.com/ubuntu-704-feisty-fawn-lamp-server-setup.html) . From the command line, the LAMP server package can be installed using:
211 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
or
sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server
Database Server
How to install MYSQL Database Server Read #General Notes Note: The MySQL server can be installed separately or as part of a LAMP integrated server package (Linux, Apache2, MySql, PHP). To install the integrated package, read #Ubuntu Feisty LAMP Server. Read #How to add extra repositories
sudo apt-get install mysql-server
MySQL initially only allows connections from the localhost (127.0.0.1). We'll need to remove that restriction if you wish to make it accessible to everyone on the internet. Open the le /etc/mysql/my.cnf
gksudo gedit /etc/mysql/my.cnf
= 127.0.0.1
MySQL comes with no root password as default. This is a huge security risk. You'll need to set one. So that the local computer gets root access as well, you'll need to set a password for that too. The local-machine-name is the name of the computer you're working on. For more information see here (http://dev.mysql.com/doc/mysql /en/default-privileges.html)
mysqladmin -u root password your-new-password mysqladmin -h local-machine-name -u root -p password your-new-password sudo /etc/init.d/mysql restart
212 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
touch /var/run/mysqld/mysqld.sock
MySQL Database backup using AutoMySQLBackup Read #General Notes Read #How to add extra repositories Read #How to install MYSQL Database Server AutoMySQLBackup is a script to take daily, weekly and monthly backups of your MySQL databases using mysqldump. AutoMySQLBackup Script Features Backup mutiple MySQL databases with one script. (Now able to backup ALL databases on a server easily. no longer need to specify each database seperately) Backup all databases to a single backup le or to a seperate directory and le for each database. Automatically compress the backup les to save disk space using either gzip or bzip2 compression. Can backup remote MySQL servers to a central server. Runs automatically using cron or can be run manually. Can e-mail the backup log to any specied e-mail address instead of root. (Great for hosted websites and databases). Can email the compressed database backup les to the specied email address. Can specify maximun size backup to email. Can be set to run PRE and POST backup commands. Choose which day of the week to run weekly backups. Download from here (http://sourceforge.net/projects/automysqlbackup/) AutoMySQLBackup Requirements The AutoMySQLBackup script only requires mysqldump (A standard utility provided with the mysql client) and gzip or bzip2 for compression of the backup les. If you would like to have the log emailed to you then you will need to have permission to execute the mail program. If you want the compressed backup les mailed to you then Mutt must be available on the server. Finally you will need a bash shell and the standard system tools and utilities (all these requirements should be the default on most linux system.) What AutoMySQLBackup does Every day AutoMySQLBackup will run (if setup in /etc/cron.daily) and using mysqldump and gzip will dump your specied databases to the /backups/daily directory, it will rotate daily backups weekly so you should never have more than 7 backups in there.. Every Saturday AutoMySQLBackup will again backup the databases you have chosen but they will be placed into /backups/weekly, these will be rotated every 5 weeks so there should never be more than 5 backups in there.. Every 1st of the month AutoMySQLBackup will create a backup of all databases and place them into /backups/monthly. These will never be rotated so it will be up to you to do your own house keeping. I would suggest taking a copy of this oine every month or two so
213 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
that if you have a hard drive failure you will be able to restore your database AutoMySQLBackup Installation The install is as simple as editing a few variables in the AutoMySQLBackup le. The full setup is documented in the AutoMySQLBackup script le below the variables section. Download automysqlbackup.sh and place it into your /etc/cron.daily directory or your home directory. Edit (at least) the following lines :
... USERNAME=dbuser PASSWORD=password DBNAMES=DB1 DB2 DB3 ...
Note:The user must have at least select privileges to the databases and make sure to keep the quotes otherwise it wont work Make the le executable :
sudo chmod u+rwx
Thats it...Now you can run it using the command line ./automysqlbackup.sh or if it is in /etc/cron.daily it will run each day when cron How to install MYSQL Administrator Read #General Notes Read #How to add extra repositories Read #How to install MYSQL Database Server
sudo apt-get install mysql-admin
Read #How to refresh GNOME panel Applications -> System Tools -> MySQL Administrator How to install MySQL Query Browser (SQL Client) Read #General Notes Read #How to add extra repositories Read #How to install MYSQL Database Server
sudo apt-get install mysql-query-browser
214 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Read #How to refresh GNOME panel Applications -> Programming -> MySQL Query Browser How to install Oracle Database XE Read #General Notes Read #How to add extra repositories Read http://www.oracle.com/technology/tech/linux/install/xe-on-kubuntu.html Add the following repository to your /etc/apt/sources.list:
deb http://oss.oracle.com/debian unstable main non-free
Add your login to the 'dba' group (where your login name is username)
sudo usermod -G dba -a username
You can congure any ports you want as long as they don't interfere with any other services listening on ports. You can choose the defaults by pressing enter instead of entering something in.
215 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Access:
http://localhost
Depending on how you setup apache, you may need to run a command to map public_html directories (inside user home directories) to ~. like, http://localhost/~chris. The optional command is:
sudo a2enmod userdir
How to install PHP for Apache HTTP Server Note: PHP can be installed separately or as part of a LAMP integrated server package (Linux, Apache2, MySql, PHP). To install the integrated package, read #Ubuntu Feisty LAMP Server.
How to install PHP5
Note: PHP4 is no longer supported in Feisty. Read #General Notes Read #How to add extra repositories Read #How to install Apache HTTP Server for HTTP (Web) Server service
sudo apt-get install php5 sudo apt-get install libapache2-mod-php5 sudo /etc/init.d/apache2 restart
Save the edited le http://localhost/testphp.php Be sure to remove the le afterwards, as it may pose a security risk If that didn't work (for example, if your browser prompted you to save the testphp.php page), try these commands:
sudo a2enmod php5 sudo /etc/init.d/apache2 force-reload
216 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Read #General Notes Read #How to add extra repositories Install recommended PHP5 modules which are PEAR, GD, XSL, and cURL.
sudo apt-get install php-pear php5-gd php5-xsl curl libcurl3 libcurl3-dev php5-curl
(Optional) The ability to use the mail() function is also recommended. You need a package that enables you to use the sendmail command and Postx is a good one. If you do not want to install this, then go to the Restart Apache step and you're nished.
sudo apt-get install postfix
After running that, you will be prompted to congure postx. Restart Apache
sudo /etc/init.d/apache2 restart
Many PHP applications use XSLT technology as well as server-side graphic manipulation (via GD). Also, PEAR provides access to PHP's module repository. cURL is a way to simulate a user's actions at a web browser. One can use it to get content o a website such as to create dynamic statistics. How to install MYSQL for Apache HTTP Server Note: MySQL can be installed separately or as part of a LAMP integrated server package (Linux, Apache2, MySql, Perl). To install the integrated package, read #Ubuntu Feisty LAMP Server. Read #General Notes Read #How to add extra repositories Read #How to install Apache HTTP Server for HTTP (Web) Server service Read #How to install PHP for Apache HTTP Server Read #How to install MYSQL Database Server
sudo apt-get install libapache2-mod-auth-mysql
Select either php4-mysql or php5-mysql depending on which version of PHP you installed
sudo apt-get install php<version-number>-mysql sudo apt-get install phpmyadmin
If you installed phpmyadmin using apt-get and cannot log in, run sudo apt-get purge
217 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
phpmyadmin and then sudo apt-get install phpmyadmin. To get PHP to work with MySQL, open the le (where <version> is either 4 or 5 depending on which PHP you installed)
sudo gedit /etc/php<version>/apache2/php.ini
You'll need to uncomment the ";extension=mysql.so" line so that it looks like this
... extension=mysql.so ...
Alternative if the above doesn't work (which it probably won't and this probably will):
sudo apt-get install mysql-server
How to install Python for Apache 2 Read #General Notes Read #How to install Apache HTTP Server for HTTP (Web) Server service
sudo apt-get install python sudo apt-get install libapache2-mod-python sudo gedit /etc/apache2/mods-available/mod_python.conf
save
cd /etc/apache2/mods-enabled sudo ln -s ../mods-available/mod_python.conf mod_python.conf sudo /etc/init.d/apache2 restart
218 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to map URLs to folders outside /var/www/ Read #General Notes Read #How to install Apache HTTP Server for HTTP (Web) Server service
gksudo gedit /etc/apache2/conf.d/alias
<Directory /location_of_folder/> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory>
http://localhost/URL-path When you get "403 - Permission denied", you might try:
chmod o+x /location_of_folder/
How to change the default port number for Apache HTTP Server Read #General Notes Read #How to install Apache HTTP Server for HTTP (Web) Server service For this example: The new port number will be 78
sudo cp /etc/apache2/ports.conf /etc/apache2/ports.conf_backup gksudo gedit /etc/apache2/ports.conf
219 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Restart Apache:
sudo /etc/init.d/apache2 restart
Check to see if you can access the Apache web site on the new port:
http://localhost:78
How to parse RSS into PHP for Apache HTTP Server Read #General Notes Read #How to install Apache HTTP Server for HTTP (Web) Server service Read #How to install PHP for Apache HTTP Server For this example: RSS is DistroWatch.com - News
wget -c http://easylinux.info/uploads/magpierss-0.71.1.tar.gz sudo mkdir /var/www/feeds sudo tar zxvf magpierss-0.71.1.tar.gz -C /var/www/feeds/ sudo mv /var/www/feeds/magpierss-0.71.1/* /var/www/feeds/ sudo rm -fr /var/www/feeds/magpierss-0.71.1/ sudo chown -R www-data:root /var/www/feeds/ gksudo gedit /var/www/feeds/index.php
220 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty font-size: 15pt; } /*]]>*/ </style> </head> <body> <?php require_once 'rss_fetch.inc'; error_reporting(E_ERROR); $url = 'http://distrowatch.com/news/dw.xml'; $rss = fetch_rss($url); if ($rss) { echo "<h1>"; echo "<a href=$url>", $rss->channel[title], "</a><br/>"; echo "</h1>"; foreach ($rss->items as $item ) { $url = $item[link]; $title = $item[title]; $description = $item[description]; echo "<li>"; echo "<b>Topic:</b> <a href=$url><b><u>$title</u></b></a><br/><br/>"; echo "$description<br/><br/>"; echo "</li>"; } } else { echo "<a href=$url>", $url, "</a> - Server Down!<br/>"; } ?> </body> </html>
http://ubuntuguide.org/wiki/Ubuntu:Feisty
FTP Server
How to install FTP Server for File Transfer service Read #General Notes Read #How to add extra repositories
sudo apt-get install proftpd
How to congure FTP user to be "jailed" (chrooted) into their home directory Read #General Notes
221 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
\*.*/
How to congure FTP Server to allow anonymous FTP user to read only Read #General Notes Read #How to install FTP Server for File Transfer service ProftpD Server Setup in Ubuntu Tutorial (http://www.ubuntugeek.com/settingupan-ftp-server-on-ubuntu-with-proftpd.html)
sudo cp /etc/proftpd/proftpd.conf /etc/proftpd/proftpd.conf_backup gksudo gedit /etc/proftpd/proftpd.conf
222 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to congure FTP Server to allow anonymous FTP user to read/write Read #General Notes Read #How to install FTP Server for File Transfer service
sudo cp /etc/proftpd/proftpd.conf /etc/proftpd/proftpd.conf_backup gksudo gedit /etc/proftpd/proftpd.conf
How to map anonymous FTP user to folders outside /home/ftp/ Read #General Notes Read #How to install FTP Server for File Transfer service
sudo cp /etc/proftpd/proftpd.conf /etc/proftpd/proftpd.conf_backup gksudo gedit /etc/proftpd/proftpd.conf
223 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to change the default port number for FTP Server Read #General Notes Read #How to install FTP Server for File Transfer service For this example: The new port number will be 77
sudo cp /etc/proftpd/proftpd.conf /etc/proftpd/proftpd.conf_backup gksudo gedit /etc/proftpd/proftpd.conf
How to ftp into remote Ubuntu host from a Windows client machine Read #General Notes Warning: An unsecured FTP server is a security risk. FTP servers should be used either within a rewall-protected LAN only or in conjunction with SSH or VPN over the Internet. The remote Ubuntu host machine must have the FTP Server service running. Read #How to install FTP Server for File Transfer service Download and install FileZilla for Windows: Here (http://prdownloads.sourceforge.net /lezilla/FileZilla_2_2_18_setup.exe?download) FTP addresses take the form:
ftp://[username]:[password]@[hostname].[domain].[tld]:[portnumber]/[directory]/
Note: the username and password are optional. If they are not given and the server is not congured for anonymous access, then they will be requested. How to FTP to a remote Windows host from an Ubuntu client machine
224 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Warning: An unsecured FTP server is a security risk. FTP servers should be used either within a rewall-protected LAN only or in conjunction with SSH or VPN over the Internet. Install FTP Server on your main le host. You can use FileZilla Server for Windows (http://sourceforge.net/project/showles.php?group_id=21558) or CrossFTP Server for all platforms (http://www.crossftp.com/crossftpserver.htm) (CrossFTP Server Tutorial (http://www.crossftp.com/tutorials/tutorial_server_setup_demo /tutorial_server_setup_demo.htm) ), which requires Java. Install an FTP client on your local client machine. Again, you can use FileZilla (http://sourceforge.net/project/showles.php?group_id=21558) or CrossFTP (http://www.crossftp.com/) . FileZilla is available as a package by enabling the universe repository and obtaining lezilla from Synaptic Package Manager, or:
apt-get install filezilla
How to congure your NAT/router/gateway/rewall for FTP server Read #General Notes The host machine must be running the FTP Server service. Read #How to install FTP Server for File Transfer service Congure your FTP server with a limited passive port range so that TCP range can be opened in the incoming rewall. For proftpd, edit /etc/proftpd/proftpd.conf:
gksudo gedit /etc/proftpd/proftpd.conf
and edit this line with the desire port range to use for FTP transfers:
PassivePorts xx-yy
For security, it's a good idea to operate the server at a non-standard port, see #How to change the default port number for FTP Server. For proftpd, edit the /etc/proftpd/proftpd.conf le on line:
Port x
where x is the port over which you wish FTP trac to be directed.
225 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
The NAT/router/gateway/rewall devices or software must be congured to allow the congured incoming TCP ports (port x in the example) to be forwarded to your host on the LAN.
226 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Updating Repository Simply copy or download ".deb" les to /somewhere/apt/archives/binary/ and then update the Packages list:
cd /somewhere/apt/archives dpkg-scanpackages binary /dev/null | gzip -9c > binary/Packages.gz
http://localhost:8888 Streaming Media Server Guide (http://www.ubuntugeek.com/streaming-media-serverin-ubuntu-gnulinux-using-gnump3d.html) How to change the default directory containing multimedia les for GNUMP3d Read #General Notes Read #How to install GNUMP3d for Streaming Media Server service In this example: The new directory containing multimedia les is /home/music/
sudo cp /etc/gnump3d/gnump3d.conf /etc/gnump3d/gnump3d.conf_backup gksudo gedit /etc/gnump3d/gnump3d.conf
227 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
root = /var/music
How to change the default port number for GNUMP3d Read #General Notes Read #How to install GNUMP3d for Streaming Media Server service e.g. Assumed that new port number is 7878
sudo cp /etc/gnump3d/gnump3d.conf /etc/gnump3d/gnump3d.conf_backup gksudo gedit /etc/gnump3d/gnump3d.conf
228 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
http://localhost:7878 How to enable downmixing support (for streaming outside your LAN) Read #General Notes Read #How to install GNUMP3d for Streaming Media Server service
sudo cp /etc/gnump3d/gnump3d.conf /etc/gnump3d/gnump3d.conf_backup gksudo gedit /etc/gnump3d/gnump3d.conf
Uncomment the line (remove the '#' hash symbol) so it looks like this
downsample_enabled = 1
= /usr/bin/sox -t ogg $FILENAME -t raw - | oggenc --raw --downmix -b 96 = /usr/bin/sox -t ogg $FILENAME -t raw - | oggenc --raw --downmix -b 64 = /usr/bin/sox -t ogg $FILENAME -t raw - | oggenc --raw --downmix --resample 22050 -b 32 -
And uncomment them as well (remove all the '#' hash symbols) so they look like this
downsample_high_mp3 = /usr/bin/lame downsample_medium_mp3 = /usr/bin/lame downsample_low_mp3 = /usr/bin/lame --mp3input -b 56 $FILENAME --mp3input -b 32 $FILENAME --mp3input -b 16 $FILENAME -
downsample_high_ogg = /usr/bin/sox -t ogg $FILENAME -t raw - | oggenc --raw --downmix -b 96 downsample_medium_ogg = /usr/bin/sox -t ogg $FILENAME -t raw - | oggenc --raw --downmix -b 64 downsample_low_ogg = /usr/bin/sox -t ogg $FILENAME -t raw - | oggenc --raw --downmix --resample 22050 -b 32 -
229 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to downmix MP3 to Ogg Vorbis (better quality) Read #General Notes Read #How to install GNUMP3d for Streaming Media Server service Read #How to enable downmixing support (for streaming outside your LAN)
sudo cp /etc/gnump3d/gnump3d.conf /etc/gnump3d/gnump3d.conf_backup gksudo gedit /etc/gnump3d/gnump3d.conf
How to add downmixing support for FLAC audio Read #General Notes Read #How to install GNUMP3d for Streaming Media Server service Read #How to enable downmixing support (for streaming outside your LAN)
sudo apt-get install flac
230 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
How to add downmixing support for AAC/MPEG-4 audio Read #General Notes Read #How to install GNUMP3d for Streaming Media Server service Read #How to enable downmixing support (for streaming outside your LAN)
sudo apt-get install faad
Groupware (Email/Calendaring)
How to install Meldware Communication Suite Read #General Notes Read #How_to_install_Java_Development_Kit_.28JDK.29_v5.0 Meldware Communication Suite provides a multi-platform alternative to popular groupware like Exchange or Lotus Notes including Email(SMTP/POP/IMAP) and Calendaring(iCAL,WCAP). It depends on Java and, optionally, for the webmail/webcal client, Flash.
sudo apt-get install sun-java5-jdk sudo update-java-alternatives -s java-1.5.0-sun
Download the jar le for a recent milestone or build here (http://www.buni.org /mediawiki/index.php/Downloads#Milestone_Builds) Open a new terminal (capture java path updates) change directory to your download directory replace below lename with correct version based on your download
231 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
A series of conguration questions are asked, for destination directory specify /opt/mcs
sudo cp /etc/init.d/skeleton /etc/init.d/meldware-cs gksudo gedit /etc/init.d/meldware-cs
Replace the value in the line beginning with PATH with "/usr/sbin:/usr/bin:/sbin: /bin:/opt/mcs/bin" excluding quotes (assuming you specied /opt/mcs as the destination directory to the installer) Replace the value in the line beginning with DESC with "Meldware Communication Suite" including quotes Replace the value in the line beginning with NAME with "run.sh" excluding quotes Replace the value in the line beginning with DAEMON with "/opt/mcs/bin/$NAME" excluding quotes Replace the value in the line beginning with DAEMON_ARGS with "-c meldware" excluding quotes Replace the value in the line beginning with SCRIPTNAME with "/etc/init.d /meldware-cs" excluding quotes save (ESC):wq
sudo sudo sudo sudo chmod ln -s ln -s ln -s 755 /etc/init.d/meldware-cs /etc/init.d/meldware-cs /etc/rc3.d/S21meldware-cs /etc/init.d/meldware-cs /etc/rc6.d/K21meldware-cs /etc/init.d/meldware-cs /etc/rc4.d/S21meldware-cs
start MCS
sudo /etc/init.d/meldware-cs restart
#General Notes #How to add extra repositories #How to install Apache HTTP Server for HTTP (Web) Server service #How to install PHP for Apache HTTP Server
232 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
apt-get install gallery (when prompted to restart Apache, choose No or Cancel) apt-get install imagemagick apt-get install jhead apt-get install libjpeg-progs /etc/init.d/apache2 restart sh /usr/share/gallery/configure.sh
Gallery Configuration Wizard: Step 2 General settings Tab -> Admin password: Specify the password Locations and URLs Tab -> Album directory: /var/www/albums/ Temporary directory: /tmp/ Gallery URL: http://localhost/gallery Albums URL: http://localhost/albums Next Step -->
http://localhost/gallery/albums.php
How to congure Gallery1 to be accessible via Internet (Hostname or x IP) or LAN (x IP)
Read #General Notes Read #How to install Gallery1 for Image Gallery Server service In this example: The host's Internet URL is http://www.url.com
sudo cp /etc/gallery/config.php /etc/gallery/config.php_backup gksudo gedit /etc/gallery/config.php
233 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Read #General Notes Read #How to install Gallery1 for Image Gallery Server service For this example: the host running Gallery 1 is located on the LAN at (dynamic IP): 192.168.0.2
sudo cp /etc/gallery/config.php /etc/gallery/config.php_backup gksudo gedit /etc/gallery/config.php
Gallery2
234 of 242 10/14/2011 02:47 PM
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Congure Apache 2
sudo nano /etc/apache2/mods-enabled/dav_svn.conf
235 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Restart Apache 2
sudo /etc/init.d/apache2 restart
Working with the new repository Open a terminal window and paste:
svn checkout http://username@localhost/svn lucky
You will be prompted to enter the password. Now you have a working copy in the directory 'lucky'. Now lets create a le and commit it.
cd lucky
mousepad Hello.txt
Now you added the le but it won't appear in the repository yet, you have to commit it. To commit, its as easy as doing the following:
svn commit
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
service svn { port = 3690 socket_type = stream protocol = tcp wait = no user = svn server = /usr/bin/svnserve server_args = -i -r /var/svn }
Restart xinetd
sudo /etc/init.d/xinetd restart
PhpGedView Server
PhpGedView allows you to view and edit your genealogy (family tree) on your website. How to install PhpGedView Server Read #Ubuntu Feisty LAMP Server Read #How to install MYSQL for Apache HTTP Server
sudo apt-get install phpgedview
I made $DBUSER the same as $DBNAME because it is easier to create user and database privileges using phpMyAdmin.
237 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
http://localhost/phpmyadmin
Log into phpMyAdmin as root with no password if you have not changed the root password for MySQL yet. Click on "Privileges" (fourth from the bottom in the middle column). Click "Add a new User".
Login Information User name: [Use text field:] phpgedview_my_family (same as $DBUSER above) Host: [Local] localhost Password: [Use text field:] password_for_dbuser (same as $DBPASS above) Re-type: password_for_dbuser (same as $DBPASS above) Database for user [x] Create database with same name and grant all privileges
Click "Go". MySQL should now have your new PhpGedView user and database. Go back to phpMyAdmin's home page and "Reload privileges". Add PhpGedView to Apache.
sudo ln -s /etc/phpgedview/apache.conf /etc/apache2/sites-available/phpgedview sudo a2ensite phpgedview #equivalent to 'ln -s /etc/apache2/sites-available/phpgedview phpgedview' sudo /etc/init.d/apache2 restart
Create the initial administrator account for your new PhpGedView server.
http://localhost/phpgedview
Continue creating users, uploading your existing GEDCOM le, or start creating your family tree.
http://wiki.phpgedview.net/en/index.php/Installation_Guide
Troubleshooting
How to disable system time/date from being reset to UTC (GMT)
238 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Save the edited le System -> Administration -> Time and Date Set the correct time/date
sudo /etc/init.d/hwclock.sh restart
How to congure sound to work properly in GNOME Read #General Notes Read #How to add extra repositories
sudo killall esd sudo cp /etc/esound/esd.conf /etc/esound/esd.conf_backup gksudo gedit /etc/esound/esd.conf
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
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 } }
Save and close all opened applications, Reboot computer How to forcefully empty Trash in GNOME Read #General Notes
sudo rm -fr $HOME/.Trash/*
How to remove duplicate menu/menu items in GNOME Read #General Notes Type "rm -f $HOME/.cong/menus/applications.menu" in a terminal window Read Ubuntu:Edgy/TipsAndTricks#How to refresh GNOME panel How to refresh Places menu in GNOME (if mounts to /media/ in /etc/fstab does not show up) Read #General Notes
240 of 242
10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
Requests
If you have requests that you would like to be part of this guide, put them here. How to run Windows Live Messenger or MSN Messenger under wine. How to connect to mobile phones. How to connect to a mobile phone via infrared to use phone as an IR modem. How to produce an update cd/dvd similar to the install cd which can be used as a repository How to upgrade to new release from an ISO le (without burning) How to enable bluetooth and bluetooth internet connection sharing How to install SElinux on ubuntu 7.04 Server? How to install (and use) a Intel 536ep modem? How to enable sound on a Toshiba Satellite A110-103? How to enable optical audio out via IEC958, aka. S/PDIF? How to set up Spam Assasin to lter emails on a client machine? How to emulate an iPod device when have just a simple MP3 player attached via rewire or USB device? How to get a very simple text editor for the konsole that compares to MS-DOS EDIT style editors / Ncurses interface? How to install low saxon support for feisty How to install and congure OpenVPN server and client How to change default applications from archive manager to Package Installer How to stop your cat from walking on your keyboard while you type. Guide Development Place ideas here to increase the look and performance of this guide. Add a new section for Gnome Themes from http://art.gnome.org and KDE Themes
241 of 242 10/14/2011 02:47 PM
Ubuntu:Feisty -
http://ubuntuguide.org/wiki/Ubuntu:Feisty
from http://www.kde-look.org/. Make headings (categories) stand out more visually. Have entries under their headings in alphabetical order. Try to keep the guide neat and clutter free. Possible "Short Version" Table of contents without each "How to". Add a [top] link to the end of each article. Reference (http://www.michaelpundit.com/tech/TiggerScript.htm) . If possible, include a 'nd/search' function to easily access queries. Retrieved from "http://ubuntuguide.org/wiki/Ubuntu:Feisty" This page was last modied on 8 October 2009, at 12:26. Content is available under Creative Commons Attribution-ShareAlike License. Supported by Download Knoppix.
242 of 242
10/14/2011 02:47 PM