<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://easylinux.info/skins/common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title> - User contributions [en]</title>
		<link>http://easylinux.info/wiki/Special:Contributions/Perspectoff</link>
		<description>From </description>
		<language>en</language>
		<generator>MediaWiki 1.15.1</generator>
		<lastBuildDate>Thu, 23 May 2013 13:50:51 GMT</lastBuildDate>
		<item>
			<title>Template:U Quantal/Networking</title>
			<link>http://easylinux.info/wiki/Template:U_Quantal/Networking</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Prevent unauthorized boots and system access */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Networking =&lt;br /&gt;
Only one network manager and GUI interface can be enabled. Network-Manager is installed by default, but many users prefer [http://wicd.sourceforge.net/ Wicd Network Manager].&lt;br /&gt;
&lt;br /&gt;
== Network Manager ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/NetworkManager Network Manager] is the network manager installed by default in (K)Ubuntu. It has a tray applet that allows you to switch between Internet connections (such as wireless APs or wired connection). &lt;br /&gt;
&lt;br /&gt;
== Wicd Network Manager ==&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://wicd.sourceforge.net/ Wicd Network Manager] is a GTK-dependent networking manager written in Python that can be used in all variants of (K)Ubuntu. Many users (including me) report it to be faster and more stable than Network Manager. To avoid networking conflicts, Wicd requires the removal of Network Manager prior to installation (replace ''network-manager-kde'' with ''network-manager'' if using Ubuntu instead of Kubuntu).&lt;br /&gt;
 sudo apt-get remove network-manager-kde&lt;br /&gt;
 sudo reboot&lt;br /&gt;
 sudo apt-get install wicd&lt;br /&gt;
&lt;br /&gt;
== Set a static IP address ==&lt;br /&gt;
I have never been able to get Network Manager to accept my static IP address settings. If you only use only a wired interface, you do not need a network manager and it can be removed.&lt;br /&gt;
&lt;br /&gt;
*Remove Network Manager (replace ''network-manager-kde'' with ''network-manager'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo apt-get remove network-manager-kde&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
*Edit the /etc/network/interfaces file (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo kate /etc/network/interfaces&lt;br /&gt;
&lt;br /&gt;
*and replace the line (ok if line is missing)&lt;br /&gt;
 iface eth0 inet dhcp&lt;br /&gt;
&lt;br /&gt;
*with the following lines (using your own LAN settings, of course):&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 address 192.168.0.35&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 network 192.168.0.0&lt;br /&gt;
 broadcast 192.168.0.255&lt;br /&gt;
 gateway 192.168.0.1&lt;br /&gt;
&lt;br /&gt;
*Then restart networking:&lt;br /&gt;
 sudo /etc/init.d/networking restart&lt;br /&gt;
&lt;br /&gt;
*Check to see if your settings are now correct:&lt;br /&gt;
 ifconfig&lt;br /&gt;
&lt;br /&gt;
*If you need a static IP address and have a wireless connection, Wicd Network Manager works:&lt;br /&gt;
&lt;br /&gt;
:*Uninstall Network Manager and install Wicd instead (replace ''network-manager-kde'' with ''network-manager'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo apt-get remove network-manager-kde&lt;br /&gt;
 sudo reboot&lt;br /&gt;
 sudo apt-get install wicd&lt;br /&gt;
&lt;br /&gt;
=== Manual configuration from the command-line ===&lt;br /&gt;
&lt;br /&gt;
3 steps for WEP:&lt;br /&gt;
&lt;br /&gt;
 sudo iwconfig eth[N] essid [SSID]&lt;br /&gt;
 sudo iwconfig eth[N] key restricted s:[PASSWORD]&lt;br /&gt;
 sudo dhclient&lt;br /&gt;
&lt;br /&gt;
WPA is more complicated:&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir /etc/wpa_supplicant&lt;br /&gt;
 cd /etc/wpa_supplicant&lt;br /&gt;
 sudo echo network = { &amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo ssid=&amp;quot;SSID&amp;quot; &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo key_mgmt=WPA-PSK &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo psk=&amp;quot;PRESHAREDKEY&amp;quot; &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo } &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 cd /etc/network&lt;br /&gt;
 sudo gedit interfaces&lt;br /&gt;
&lt;br /&gt;
Now add after &amp;quot;auto eth[N] ...&amp;quot; &amp;amp; &amp;quot;iface eth[N] ..&amp;quot; :&lt;br /&gt;
&lt;br /&gt;
 wpa-driver wext # or whatever driver your network card needs&lt;br /&gt;
 wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf&lt;br /&gt;
&lt;br /&gt;
Save the file and restart your system.&lt;br /&gt;
&lt;br /&gt;
== Internet connection sharing (DHCP server) ==&lt;br /&gt;
In most LANs, an inexpensive router is used to provide [http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol DHCP] functions (internet connection sharing). &lt;br /&gt;
&lt;br /&gt;
However, DHCP services can also be provided by a single host computer on your [http://en.wikipedia.org/wiki/Local_area_network LAN] if it is directly connected to the Internet. (This is useful, for instance, if you have a 3G or other wireless EVDO connection to your computer which you want to share with the other computers on your LAN). Other client computers on your LAN would then connect to the Internet through your host computer's Internet connection. The host computer now essentially performs the DHCP functions of a router.&lt;br /&gt;
&lt;br /&gt;
All &amp;quot;client&amp;quot; computers on the LAN ought to be connected to a central LAN switch or router. (If using a router, it should have its own DHCP functions disabled -- you shouldn't have 2 DHCP servers on a LAN unless you know how to [[#Using a nested wireless LAN router|nest LANs]]). They should all be set up to obtain DHCP-assigned dynamic IP addresses and use the same LAN subnet settings (which in the example below is LAN IP range ''10.0.0.1 - 10.0.0.250'' with netmask ''255.255.255.0'' and gateway ''10.0.0.1''). The host computer to be used as the gateway/DHCP server is then connected (through its own ethernet port) either to one to the ports of the switch (if used), or to a LAN port of a router (don't use the WAN port). The host computer then connects directly to the Internet ([http://en.wikipedia.org/wiki/Wide_area_network WAN]) through a second port (which in the example below will be a wireless (wifi) port (wlan0)). &lt;br /&gt;
&lt;br /&gt;
(Note: This setup is easiest if you connect all computers on the LAN with Ethernet cables to the central switch or router. But also see [[#Using a nested wireless LAN router|using a nested wireless LAN router]] below.)&lt;br /&gt;
&lt;br /&gt;
(Note: If you want your LAN to use the same subnet as your WAN, see [[#Network Interfaces Bridging|network interface bridging]].)&lt;br /&gt;
&lt;br /&gt;
*Install the DHCP server and firewall programs:&lt;br /&gt;
 sudo apt-get install dhcp3-server firestarter&lt;br /&gt;
&lt;br /&gt;
*Rename the startup command (through a symbolic link) for the DHCP server. This is required or Firestarter will not know where to find it:&lt;br /&gt;
 sudo ln -sf /etc/init.d/dhcp3-server /etc/init.d/dhcpd&lt;br /&gt;
&lt;br /&gt;
*Edit the DHCP server configuration file:&lt;br /&gt;
 sudo nano -w /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
::Change the line&lt;br /&gt;
 INTERFACES=&amp;quot;&amp;quot;&lt;br /&gt;
::to&lt;br /&gt;
 INTERFACES=&amp;quot;eth0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
*Restart the DHCP server:&lt;br /&gt;
 sudo dhcpd restart&lt;br /&gt;
&lt;br /&gt;
*Right click on Network-Manager -&amp;gt; Edit Connections... -&amp;gt; Wired -&amp;gt; Add&lt;br /&gt;
: -&amp;gt; Connection name: ''Shared internet connection''&lt;br /&gt;
: -&amp;gt; IPv4 Settings -&amp;gt; Method: Manual -&amp;gt; Add&lt;br /&gt;
: -&amp;gt; Address: ''10.0.0.1'' -&amp;gt; Netmask: ''255.255.255.0'' -&amp;gt; Gateway: 0.0.0.0&lt;br /&gt;
: -&amp;gt; Available to all users: [x]&lt;br /&gt;
&lt;br /&gt;
*Attach the ethernet cable to (eth0).&lt;br /&gt;
:Network-Manager -&amp;gt; Wired Networks -&amp;gt; ''Shared internet connection''&lt;br /&gt;
&lt;br /&gt;
*Adjust your firewall to allow the internet connection sharing. Start Firestarter: &lt;br /&gt;
 sudo firestarter&lt;br /&gt;
&lt;br /&gt;
:*Tell the firewall which port is your direct Internet Connection:&lt;br /&gt;
Firestarter -&amp;gt; Preferences -&amp;gt; Firewall -&amp;gt; Network Settings -&amp;gt; &lt;br /&gt;
Internet connected network device: (wlan0)&lt;br /&gt;
:-&amp;gt; IP address is assigned by DHCP: [x]&lt;br /&gt;
&lt;br /&gt;
:*Tell the firewall which port is for the LAN, and specify the details for the LAN:&lt;br /&gt;
Firestarter -&amp;gt; Preferences -&amp;gt; Firewall -&amp;gt; Network Settings -&amp;gt; &lt;br /&gt;
Local network connected device: (eth0) &lt;br /&gt;
:-&amp;gt; Enable internet connection sharing: [x]&lt;br /&gt;
:-&amp;gt; Enable DHCP for the local network: [x]&lt;br /&gt;
:: -&amp;gt; DHCP server details -&amp;gt; Create new DHCP configuration -&amp;gt; Lowest IP address to assign: ''10.0.0.2''&lt;br /&gt;
:: -&amp;gt; Highest IP address to assign: ''10.0.0.250'' -&amp;gt; Name server: &amp;lt;dynamic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Note: Use your own desired LAN settings (internal [http://en.wikipedia.org/wiki/Static_IP#Static_and_dynamic_IP_addresses DHCP-assigned dynamic IP] address range), of course. In this example I don't use the full IP range ''10.0.0.2 - 10.0.0.255'' for dynamic IP addresses because I want to reserve some LAN addresses (''10.0.0.251 - 10.0.0.255'') to be used as static IP addresses).&lt;br /&gt;
&lt;br /&gt;
*Notes:&lt;br /&gt;
:*If you wish to use this setup all the time, make the &amp;quot;''Shared internet connection''&amp;quot; profile your default connection profile in Network Manager.&lt;br /&gt;
&lt;br /&gt;
=== Using a nested wireless LAN router ===&lt;br /&gt;
Many users will already have an established LAN that uses an existing wireless router and has client computers that are setup to connect wirelessly to the router. Here's how to maintain this setup and still use the internet connection sharing method of a single host computer as described above. This method is known as '''nested LANs'''. The wireless router will serve as a nested LAN for its wireless clients (only), but in turn will appear as a single device to the main LAN. The two LANs must have different IP ranges. For example, the main LAN may have an IP range ''10.0.0.1 - 10.0.0.255'' (with netmask ''255.255.255.0''), as in the above example. The router's nested wireless LAN must then use a different IP range (for example ''192.168.0.1 - 192.168.0.255'' with netmask ''255.255.255.0''). &lt;br /&gt;
&lt;br /&gt;
*Do not use your wireless router's WAN (Internet) port.&lt;br /&gt;
*Connect the host computer (to be used as your main LAN gateway/router) to a LAN port (not the WAN/Internet port) of the wireless LAN router.&lt;br /&gt;
*Configure your wireless router's LAN so that it appears to be a ''single device'' to the main LAN:&lt;br /&gt;
:*Setup your wireless router so that the Internet Connection type is &amp;quot;Static IP&amp;quot; (often in the &amp;quot;Internet Setup&amp;quot; section). Configure the settings so that its &amp;quot;Internet IP address&amp;quot; is within the static IP address range of your main LAN (e.g. ''10.0.0.254''), and make sure the subnet mask matches the one you chose for your main LAN (e.g. ''255.255.255.0''). The gateway setting should be set to match the IP address of your host computer of the main LAN (e.g. ''10.0.0.1'' in the example of the preceding section). Now the wireless router will appear to the host computer as just another device on the main LAN. &lt;br /&gt;
:*If your wireless LAN is already functioning, you probably don't have to change any settings, but double-check to make sure the schema are compatible. Configure the wireless router's settings for the nested wireless LAN. This is done by enabling the router's DHCP server functions (in &amp;quot;Network Setup&amp;quot; or some similar configuration section of the router). The router ought to have as its own wireless LAN gateway address a &amp;quot;local IP address&amp;quot; (or &amp;quot;LAN IP address&amp;quot;) of ''192.168.0.1'' (for the IP address range used in this example), and a &amp;quot;starting IP address&amp;quot; (for the DHCP-assigned dynamic IP address range to be used for the wireless clients) to be ''192.168.0.2'' or greater. (Some routers ask you to specify the entire range (such as ''192.168.0.2 - 192.168.0.255''.)&lt;br /&gt;
*Make sure all your wireless client computers are set to obtain their DHCP-assigned dynamic IP addresses from the wireless router (gateway IP ''192.168.0.1'') instead of from the main LAN gateway. &lt;br /&gt;
*Now all communications from the wireless client computers will be routed to the wireless LAN router first, which will then in turn route them to the host computer (which is acting as the main LAN gateway/router), which will then in turn route them to the Internet (WAN). &lt;br /&gt;
*Note: The host computer for the main LAN must have a static IP address (e.g. ''10.0.0.1'' as in the example of the preceding section) and it must match the gateway IP address configured in the wireless LAN router settings.&lt;br /&gt;
&lt;br /&gt;
=== Network Interfaces Bridging ===&lt;br /&gt;
*Install bridge-utils to be able to create network bridges:&lt;br /&gt;
 sudo apt-get install bridge-utils&lt;br /&gt;
&lt;br /&gt;
*Edit /etc/network/interfaces:&lt;br /&gt;
 sudo nano /etc/network/interfaces&lt;br /&gt;
&lt;br /&gt;
The interfaces file should look like this after editing it:&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet manual&lt;br /&gt;
 #&lt;br /&gt;
 auto br0&lt;br /&gt;
 iface br0 inet dhcp&lt;br /&gt;
 #&lt;br /&gt;
 bridge_ports eth0 wlan0&lt;br /&gt;
 #&lt;br /&gt;
 # The loopback network interface&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
&lt;br /&gt;
*Restart networking with:&lt;br /&gt;
 sudo /etc/init.d/networking restart&lt;br /&gt;
&lt;br /&gt;
== Using Dynamic IP addresses for a webserver ==&lt;br /&gt;
Normally, domain name servers (DNS) that are used publicly on the Internet match a web server's URL name with the IP address of the server's host computer. If your computer has a [http://en.wikipedia.org/wiki/IP_address#IP_address_assignment static IP address], then you can publish your own web server's URL as belonging to the static, unchanging IP address of your computer.&lt;br /&gt;
&lt;br /&gt;
However, if your IP address is [http://en.wikipedia.org/wiki/IP_address#IP_address_assignment dynamic] (always changing) because you use an ISP (Internet Service Provider) that constantly changes your IP address (using DHCP), then you will need a Dynamic DNS service to constantly keep track of your dynamically changing IP address and match it to of your web server's URL. Fortunately, there are a few Dynamic DNS services that will do this for you, either for a small fee or even for free. For more info, see [https://help.ubuntu.com/community/DynamicDNS this Ubuntu Community help] article.&lt;br /&gt;
&lt;br /&gt;
For specific tips on setting up Dynamic DNS, see [[Dynamic IP servers|this article]].&lt;br /&gt;
&lt;br /&gt;
== Filesharing ==&lt;br /&gt;
=== NFS ===&lt;br /&gt;
NFS is the default networking protocol for network file sharing in *nix systems (including (K)Ubuntu Linux). Here are some tips for setting up NFS from the [http://mostlylinux.wordpress.com/network/nfshowto/ Little Girl's Mostly Linux Blog].&lt;br /&gt;
&lt;br /&gt;
=== Samba File Sharing ===&lt;br /&gt;
==== Samba client ====&lt;br /&gt;
Samba is a networking protocol that allows compatibility with Windows-based networks. The Samba client is installed by default in Ubuntu and should work seamlessly (unless you have have a firewall blocking the ports).&lt;br /&gt;
&lt;br /&gt;
==== Samba server ====&lt;br /&gt;
[http://www.samba.org/ Samba] provides file/print services for the SMB/CIFS protocol used in Windows-based networks. See the [https://help.ubuntu.com/10.10/serverguide/C/windows-networking.html official Ubuntu documentation] for more information about providing services in a Windows network. A Samba server can be installed using the tasksel option during installation of the Ubuntu [[Ubuntu:Quantal#Servers|server]] from the LiveCD, or at any time using:&lt;br /&gt;
 sudo tasksel install samba-server&lt;br /&gt;
&lt;br /&gt;
* An alternative method of installation is:&lt;br /&gt;
 sudo apt-get install samba samba-tools system-config-samba smbfs&lt;br /&gt;
&lt;br /&gt;
:Note: samba-tools, system-config-samba, and smbfs are optional.&lt;br /&gt;
&lt;br /&gt;
*Modify Samba settings.&lt;br /&gt;
:*Method 1:&lt;br /&gt;
&lt;br /&gt;
:Menu -&amp;gt; System -&amp;gt; Administration -&amp;gt; Samba&lt;br /&gt;
:(Note: this is available only if you installed system-config-samba.)&lt;br /&gt;
&lt;br /&gt;
It is recommended that your user be a member of the sambashare [[Ubuntu:Quantal#Change your user groups|group]], as well.&lt;br /&gt;
&lt;br /&gt;
:*Method 2:&lt;br /&gt;
:Enable File Sharing Server With User Login (Very Reliable Method)&lt;br /&gt;
&lt;br /&gt;
:Do the following on the machine that has the files to be shared:&lt;br /&gt;
&lt;br /&gt;
::*Add current user to Samba:&lt;br /&gt;
 sudo smbpasswd -a username&lt;br /&gt;
::(replacing username with your login username)&lt;br /&gt;
&lt;br /&gt;
::*Open the samba config file:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/samba/smb.conf&lt;br /&gt;
&lt;br /&gt;
::*Add the directories to be added (right at the end) in the following format:&lt;br /&gt;
&lt;br /&gt;
 [Pictures]&lt;br /&gt;
 path = /home/username/&amp;lt;folder_to_be_shared&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::(Replace username with your username and &amp;lt;folder_to_be_shared&amp;gt; with the folder you want to share)&lt;br /&gt;
&lt;br /&gt;
::Press CTRL+X and then Y to save.&lt;br /&gt;
&lt;br /&gt;
::*Restart Samba:&lt;br /&gt;
 sudo service smbd restart&lt;br /&gt;
 sudo service nmbd restart&lt;br /&gt;
&lt;br /&gt;
:::Note: Prior versions used:&lt;br /&gt;
 sudo /etc/init.d/samba restart&lt;br /&gt;
&lt;br /&gt;
*On Windows access the folder in the following format in Windows Explorer:&lt;br /&gt;
 \\192.168.x.x&lt;br /&gt;
::(replace 192.168.x.x with the actual IP address of your server which is serving the folder)&lt;br /&gt;
&lt;br /&gt;
*On Linux type the following in Konqueror or Nautilus:&lt;br /&gt;
 smb://192.168.x.x&lt;br /&gt;
::(replace 192.168.x.x with the actual IP address of your server serving the folder)&lt;br /&gt;
&lt;br /&gt;
Note: If you use Sharing in KDE's System Settings panel, be aware that there is a small bug, reported [https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/95452 here]. In brief, you need to comment out/delete any instances of these two lines in /etc/smb.conf :&lt;br /&gt;
 case sensitive&lt;br /&gt;
 msdfs proxy&lt;br /&gt;
&lt;br /&gt;
==== Change your Workgroup ====&lt;br /&gt;
To change your Samba (Windows network) workgroup:&lt;br /&gt;
 sudo nano /etc/samba/smb.conf&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 workgroup = WORKGROUUP&lt;br /&gt;
&lt;br /&gt;
and change the setting to whatever your LAN workgroup is.&lt;br /&gt;
&lt;br /&gt;
==== Recognizing Win98 machines ====&lt;br /&gt;
Microsoft networking is extremely quirky. To enable recognition of PCs with Windows 98, edit your Samba configuration file:&lt;br /&gt;
 sudo nano /etc/samba/smb.conf&lt;br /&gt;
Then add the following lines to the file:&lt;br /&gt;
 [global]&lt;br /&gt;
 # THE LANMAN FIX&lt;br /&gt;
 client lanman auth = yes&lt;br /&gt;
 client ntlmv2 auth = no&lt;br /&gt;
&lt;br /&gt;
=== Integrating into Mac OS X Network ===&lt;br /&gt;
See [http://www.zaphu.com/2008/04/30/five-guides-on-how-to-integrate-ubuntu-into-a-mac-os-x-network/ this guide] for information on integrating Ubuntu into an existing Mac OS X Appletalk network.&lt;br /&gt;
&lt;br /&gt;
=== FTP Server ===&lt;br /&gt;
An FTP server allows the easy transfer of files between systems over the network. Clients such as [[Ubuntu:Quantal#Filezilla|Filezilla]] can be used to interact with an FTP server. Also see these [[FTP_tips|FTP tips]].&lt;br /&gt;
==== vsftpd ==== &lt;br /&gt;
[http://vsftpd.beasts.org/ vsftpd] is an FTP server available in (K)Ubuntu. For configuration information, see the [https://help.ubuntu.com/11.10/serverguide/C/ftp-server.html official Ubuntu documentation]. Install:&lt;br /&gt;
 sudo apt-get install vsftpd&lt;br /&gt;
&lt;br /&gt;
==== proftpd ====&lt;br /&gt;
[http://www.proftpd.org/ Proftpd] is an FTP server available in (K)Ubuntu that can be used with either the MySQL or PostgreSQL database. Also see the [https://help.ubuntu.com/community/ProFTPD Ubuntu Community documentation]. Install:&lt;br /&gt;
 sudo apt-get install proftpd-basic&lt;br /&gt;
&lt;br /&gt;
=== WebDAV ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://en.wikipedia.org/wiki/WebDAV WebDAV] is a method for allowing remote access to local folders via an HTTP-based web browser or file manager. This can be combined with user authentication (using LDAP or other password mechanism).&lt;br /&gt;
&lt;br /&gt;
* See [[WebDAV|this page]] for instructions.&lt;br /&gt;
&lt;br /&gt;
== Local Area Network ==&lt;br /&gt;
== Modems / Dial-up ==&lt;br /&gt;
Network Manager does not accept modem connections. See [https://help.ubuntu.com/10.10/internet/C/modem.html Ubuntu help] for information on identifying and connecting with a modem. These instructions require gnome-network-admin (install while connected to a wired ethernet connection):&lt;br /&gt;
 sudo apt-get install gnome-network-admin&lt;br /&gt;
&lt;br /&gt;
=== Gnome PPP and wvdial ===&lt;br /&gt;
[http://en.wikipedia.org/wiki/Gnome-ppp Gnome PPP] is a discontinued GUI frontend for the [http://alumnit.ca/wiki/index.php?page=WvDial wvdial] PPP modem dialer. It is still available as a package. Install:&lt;br /&gt;
 sudo apt-get install gnome-ppp wvdial&lt;br /&gt;
&lt;br /&gt;
See [http://ubuntuforums.org/showthread.php?t=931872 this forum thread] for tweaks required to make Gnome PPP and wvdial operational in Lucid.&lt;br /&gt;
&lt;br /&gt;
=== GPPP ===&lt;br /&gt;
GPPP was the default modem dialing application in previous versions of Ubuntu.&lt;br /&gt;
&lt;br /&gt;
:Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; GPPP Internet Dial-up&lt;br /&gt;
&lt;br /&gt;
= Remote Access =&lt;br /&gt;
There are several methods of remote access. VNC sharing allows you to view and control a remote computer's desktop. (Windows users use a similar proprietary protocol called remote desktop protocol (RDP)). XDMCP allows a complete remote X-windows based login. Remote connections are hazardous unless proper security precautions are taken to prevent unauthorized logins and to ensure encryption of transmitted data.&lt;br /&gt;
&lt;br /&gt;
== SSH ==&lt;br /&gt;
Secure Shell or SSH is a network protocol that allows data to be exchanged over a secure channel (or &amp;quot;tunnel&amp;quot;)  between two computers. Encryption provides confidentiality and integrity of data. The OpenSSH client is installed by default in Ubuntu so you can connect to another computer that is running an SSH server.&lt;br /&gt;
&lt;br /&gt;
=== Connect to a remote SSH server ===&lt;br /&gt;
==== From the command-line terminal ====&lt;br /&gt;
Install the [http://www.openbsd.org/cgi-bin/man.cgi?query=ssh&amp;amp;sektion=1 OpenSSH] client (if not already installed):&lt;br /&gt;
 sudo apt-get install openssh-client&lt;br /&gt;
&lt;br /&gt;
From the command-line Terminal type:&lt;br /&gt;
&lt;br /&gt;
 ssh -C &amp;lt;username&amp;gt;@&amp;lt;computer name or IP address&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Note: The -C option indicates compression, which speeds up transmission through the tunnel.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
 ssh -C joe@remote.computer.xyz&lt;br /&gt;
&lt;br /&gt;
:or:&lt;br /&gt;
&lt;br /&gt;
 ssh -C mike@192.168.1.1&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
 ssh -C 192.168.1.1 -l mike&lt;br /&gt;
&lt;br /&gt;
:Note: -l specifies the login id.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the SSH server is listening on a port other than port 22 (the default), you can specify that in your connection (with the -p option). For example, if the SSH server is listening on port 11022, connect:&lt;br /&gt;
&lt;br /&gt;
 ssh -C joe.friday@remote.computer.xyz:11022&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
&lt;br /&gt;
 ssh -C remote.computer.xyz -p 11022 -l joe.friday&lt;br /&gt;
&lt;br /&gt;
If you have made a public/private key using ssh-keygen, the private key must be stored in /home/''user''/.ssh. The key should be accessible only to ''user''&lt;br /&gt;
 sudo chmod 600 /home/''user''/.ssh/identity&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
&lt;br /&gt;
 sudo chmod 600 /home/''user''/.ssh/id_rsa &lt;br /&gt;
&lt;br /&gt;
To login with the key:&lt;br /&gt;
&lt;br /&gt;
 ssh -C remote.computer.xyz -p 11022 -l joe.friday&lt;br /&gt;
&lt;br /&gt;
Note: You can run the command as a menu item, but the command must be &amp;quot;run in terminal.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Port forwarding through SSH ====&lt;br /&gt;
* See [[Using_SSH_to_Port_Forward|Using SSH to Port Forward]] for full details. &lt;br /&gt;
&lt;br /&gt;
* In brief, use &lt;br /&gt;
 ssh -C &amp;lt;remote ip&amp;gt; -p &amp;lt;SSH tunnel port&amp;gt; -L &amp;lt;local port&amp;gt;:&amp;lt;remote computer&amp;gt;:&amp;lt;remote port&amp;gt; -l &amp;lt;user&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This specifies that any communications from your computer (localhost) going out through &amp;lt;local port&amp;gt; will be transmitted securely through the the SSH tunnel port.&lt;br /&gt;
To use VNC through the tunnel, you would use an application like Krdc or Vinagre:&lt;br /&gt;
 krdc vnc://localhost:&amp;lt;local port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: ''localhost'' is equivalent to (and interchangeable with) ''127.0.0.1''. Either can be used.&lt;br /&gt;
&lt;br /&gt;
Note that for VNC, the default &amp;lt;local port&amp;gt; is 5900. In general, a remote VNC server (such as [[#X11VNC_Server|X11VNC]]) is also listening on the default &amp;lt;remote port&amp;gt; 5900 as well. The default &amp;lt;SSH tunnel port&amp;gt; is 22, as discussed above. All these can be changed, however, if you desire greater security. &lt;br /&gt;
&lt;br /&gt;
For me, I noticed that I had to set &amp;lt;remote computer&amp;gt; to be the internal LAN IP address of the remote '''computer''' (such as 192.168.1.155) instead of the remote '''router''''s IP address, which is specified in &amp;lt;remote IP&amp;gt;. (If the remote computer has a static IP address (i.e. is directly connected to the Internet without an intervening router), then &amp;lt;remote computer&amp;gt; and &amp;lt;remote ip&amp;gt; would be the same.)&lt;br /&gt;
&lt;br /&gt;
''Example'':&lt;br /&gt;
For extra security, my SSH Server uses &amp;lt;SSH tunnel port&amp;gt;=11022. I want to VNC to a remote computer on a remote LAN with a router whose IP address is &amp;lt;remote ip&amp;gt; = 244.205.123.123. The remote computer to which I want to connect has a static IP address within the remote LAN of &amp;lt;remote computer&amp;gt; = 192.168.1.155.  I have set up an [[#X11VNC_Server|X11VNC server]] on this computer that is listening on &amp;lt;remote port&amp;gt; = 6912 (instead of the default 5900). I setup port forwarding on the router of this remote LAN to forward port 6912 to this server computer. I want to VNC to this remote computer from my laptop, through the Internet. My laptop VNC client (Krdc) will use the default &amp;lt;local port&amp;gt; = 5900. My name is &amp;lt;user&amp;gt; = joe.friday. This is my story. &lt;br /&gt;
&lt;br /&gt;
 ssh -C 244.205.123.123 -p 11022 -L 5900:192.168.1.155:6912 -l joe.friday&lt;br /&gt;
 krdc vnc://localhost:5900&lt;br /&gt;
&lt;br /&gt;
If you have set up a private/ public key pair with a passphrase, or if your SSH server requires a passphrase, of course, you will be prompted for the passphrase after issuing the SSH command.&lt;br /&gt;
&lt;br /&gt;
Note: Port forwarding assumes that the ports are also forwarded through the router(s) and through any firewalls. See the documentation for your router(s) and firewall to learn how to do this. The advantage of SSH tunneling is that only the &amp;lt;SSH tunnel port&amp;gt; needs to be open and forwarded by a router. All encrypted communications will go through your router using this single port. This is what makes the communications secure.&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
[http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY] is a GTK-based GUI client-interface for SSH connections and eases the setup for port forwarding, SSH public key authentication, and automated login. A user would run Putty to create the SSH tunnel (instead of the ssh command) and then run a program such as Krdc or Vinagre. PuTTY is available for both Linux and Windows (but for routine Linux usage [[#OpenSSH Public Key Authentication|OpenSSH]] is generally recommended instead).&lt;br /&gt;
 sudo apt-get install putty putty-tools&lt;br /&gt;
&lt;br /&gt;
*To create a 2048-bit RSA key pair compatible with OpenSSH, it is possible to use [http://linux.die.net/man/1/puttygen Puttygen] (part of Putty-tools). (For me the Linux version of Puttygen is occasionally buggy, however, so I recommend [[#OpenSSH Public Key Authentication|OpenSSH keygen]] for routine usage instead):&lt;br /&gt;
 puttygen -t rsa -b 2048 -O private -o putty_rsa.ppk&lt;br /&gt;
 puttygen putty_rsa.ppk -O public-openssh -o id_rsa.pub&lt;br /&gt;
 puttygen putty_rsa.ppk -O private-openssh -o id_rsa&lt;br /&gt;
&lt;br /&gt;
*Move the OpenSSH-compatible keys to the ~/.ssh (i.e. the /home/''user''/.ssh) folder&lt;br /&gt;
 mv id_rsa* ~/.ssh&lt;br /&gt;
&lt;br /&gt;
*[[#OpenSSH Public Key Authentication|Copy the public key]] ( /home/''user''/.ssh/id_rsa.pub ) to the server that is hosting the OpenSSH server, into the /home/''serveruser''/.ssh (for whichever user is the administrative user for the server -- generally the user that installed the server initially). If the SSH tunnel is (still) set at default port 22, you can copy the key using the utility: &lt;br /&gt;
&lt;br /&gt;
 ssh-copy-id ''serveruser''@''remoteserver.computer.xyz''&lt;br /&gt;
&lt;br /&gt;
*Connect a VNC client (such as Krdc) through SSH using the command-line:&lt;br /&gt;
 putty -ssh -i ~/.ssh/id_rsa -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -P ''22''&lt;br /&gt;
 krdc vnc://127.0.0.1:5900&lt;br /&gt;
&lt;br /&gt;
:or as a single command:&lt;br /&gt;
 putty -ssh -i ~/.ssh/id_rsa -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -P ''22'' sleep 5; krdc vnc://127.0.0.1::5900&lt;br /&gt;
&lt;br /&gt;
*Alternatively, the PuTTY SSH Client GUI can be run (from Menu -&amp;gt; Internet -&amp;gt; PuTTY SSH Client) and options configured from there.&lt;br /&gt;
&lt;br /&gt;
==== Using keys created by Puttygen in OpenSSH ====&lt;br /&gt;
The public security key generated by Puttygen in Windows is generally not compatible with OpenSSH security keys unless it is edited. For example, the default OpenSSH key is 2048-bit RSA (SSH-2). When a 2048-bit RSA (SSH-2) PuTTY public/private key pair is generated (by Puttygen) in Windows (see [http://unixwiz.net/techtips/putty-openssh.html this tutorial]), the public key looks like:&lt;br /&gt;
 ---- BEGIN SSH2 PUBLIC KEY ----&lt;br /&gt;
 Comment: &amp;quot;rsa-key-20100302&amp;quot;&lt;br /&gt;
 AAAAB3NzaC1yc2EAAAABJQAAAQEAjdp567qxsGkhELlMQup2mXHdsveCWq/maU6k&lt;br /&gt;
 unPpbkwEuhkasuOrhkAWgv5v3d8S857zdHcfnXWi2FkEaJuFxqpJ2IkFuvqRdqYD&lt;br /&gt;
 ZCcASj2S0LoXdWpC4uon6VH8oBT31r+wkDfmI2a+K74jgXjtm1BWWxwOpKaWQHi9&lt;br /&gt;
 YItbY/06renRex34n3ejO20JRqD/BxnFU7ND41Szo3ZMKoa0yzhevU2ntt74BCvC&lt;br /&gt;
 bYFHdSoRbi3AH8qGInzFfhXPdrG8qA382ZKEh5Bmy8Qxb9Uen/+jjP51YxN/ykee&lt;br /&gt;
 RwSrdSCZekB6jN6uuTLNDEXJSJizqlPU8tROqf3pYv1kxzD9bw==&lt;br /&gt;
 ---- END SSH2 PUBLIC KEY ----&lt;br /&gt;
&lt;br /&gt;
* To be used by OpenSSH, the saved public key must be edited. &lt;br /&gt;
:* Delete the first two lines (with the BEGIN and Comment: in them) and the last line.&lt;br /&gt;
:* Join the remaining lines into a single line.&lt;br /&gt;
:* Place ssh-rsa at the beginning.&lt;br /&gt;
:* It should end up looking like:&lt;br /&gt;
 ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAjdp567qxsGkhELlMQup2mXHdsveCWq/maU6kunPpbkwEuhkasuOrhkAWgv5v3d8S857zdHcfnXWi2FkEaJuFxqpJ2IkFuvqRdqYDZCcASj2S0LoXdWpC4uon6VH8oBT31r+wkDfmI2a+K74jgXjtm1BWWxwOpKaWQHi9YItbY/06renRex34n3ejO20JRqD/BxnFU7ND41Szo3ZMKoa0yzhevU2ntt74BCvCbYFHdSoRbi3AH8qGInzFfhXPdrG8qA382ZKEh5Bmy8Qxb9Uen/+jjP51YxN/ykeeRwSrdSCZekB6jN6uuTLNDEXJSJizqlPU8tROqf3pYv1kxzD9bw==&lt;br /&gt;
&lt;br /&gt;
*Once the PuTTY public key is in this format, it can be appended to the ~/.ssh/authorized_keys file on the OpenSSH server. (The private key stays on the client computer, of course). PuTTY can then connect (from Windows or Linux) to an OpenSSH server using the public/private key method.&lt;br /&gt;
&lt;br /&gt;
=== Connect using SSH Agent ===&lt;br /&gt;
With SSH Agent you can automate the use of public key authentication and open an XDM or VNC session using a script. See [http://kimmo.suominen.com/docs/ssh/#ssh-agent this tutorial].&lt;br /&gt;
&lt;br /&gt;
Also see this alternative simple approach: [[#Connect with SSH and start an application with a single command|Connect with SSH and start an application with a single command]].&lt;br /&gt;
&lt;br /&gt;
=== Setup an SSH server ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Install the [https://help.ubuntu.com/10.10/serverguide/C/openssh-server.html OpenSSH] server:&lt;br /&gt;
 sudo apt-get install openssh-server&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
 sudo apt-get install tasksel&lt;br /&gt;
 sudo tasksel install openssh-server&lt;br /&gt;
&lt;br /&gt;
Note: The OpenSSH server can also be installed when doing a [[Ubuntu:Quantal#Servers|server]] installation as an option from the LiveCD.&lt;br /&gt;
&lt;br /&gt;
Note: An OpenSSH server can also be set up on a Windows server using Cygwin. See [http://pigtail.net/LRP/printsrv/cygwin-sshd.html these instructions].&lt;br /&gt;
&lt;br /&gt;
* Don't forget to forward the port on which your OpenSSH server is listening. The default SSH port is 22; if the default is used, the router should therefore forward port 22 to the computer on the LAN that is hosting the OpenSSH server. The OpenSSH listening port can be changed; in fact, each computer on the LAN can listen on its own unique SSH port, if desired. The router must forward each specified listening port to the correct computer. Therefore, if computer 1 has its OpenSSH server set to listen on port 22221, then the router should forward port 22221 to computer 1's LAN IP address. If computer 2 has its OpenSSH listening port set to 22222, then obviously the router must forward port 22222 to computer 2's LAN IP address. To change the listening port of the OpenSSH server, edit the /etc/ssh/sshd_config file (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo kate /etc/ssh/sshd_config&lt;br /&gt;
&lt;br /&gt;
and change the listening port from 22 to your desired listening port:&lt;br /&gt;
 Port ''22221''&lt;br /&gt;
&lt;br /&gt;
then restart the OpenSSH server:&lt;br /&gt;
 sudo /etc/init.d/ssh restart&lt;br /&gt;
&lt;br /&gt;
:* For greater port security (and to minimize [http://en.wikipedia.org/wiki/Brute-force_attack brute-force attacks]), consider using [[Ubuntu:Quantal#Knockd_.28Port_security.29|Knockd]].&lt;br /&gt;
&lt;br /&gt;
==== Limit authorized SSH users ====&lt;br /&gt;
* See [[Limit_the_user_accounts_that_can_connect_through_OpenSSH_remotely|Limit the user accounts that can connect through OpenSSH remotely]]&lt;br /&gt;
&lt;br /&gt;
==== OpenSSH Public Key Authentication ====&lt;br /&gt;
See this [http://sial.org/howto/openssh/publickey-auth/ OpenSSH Public Key Authentication Tutorial].&lt;br /&gt;
&lt;br /&gt;
In brief, it is necessary to generate a public / private key pair. On your client machine, generate the pair:&lt;br /&gt;
 ssh-keygen&lt;br /&gt;
&lt;br /&gt;
A prompt asks for a passphrase. If you wish to use OpenSSH without a password from a secure client (to which no one but you has access), leave the passphrase blank. If you enter a passphrase, you will be asked for this passphrase each time you use the SSH client.  By default, a 2048-bit RSA SSH-2 key pair is generated and stored in the /home/''user''/.ssh folder. The private key is named id_rsa and is meant to stay in that folder. (The public key is id_rsa.pub and is meant to be copied to the OpenSSH server.)&lt;br /&gt;
&lt;br /&gt;
:*The private key must only be accessible (and should be read-only) to ''user'', the owner of the file:&lt;br /&gt;
 chmod 600 /home/''user''/.ssh/id_rsa&lt;br /&gt;
&lt;br /&gt;
::You could also make the entire .ssh folder accessible only to ''user'':&lt;br /&gt;
&lt;br /&gt;
 chmod 700 /home/''user''/.ssh&lt;br /&gt;
&lt;br /&gt;
*Copy the public key ( /home/''user''/.ssh/id_rsa.pub ) to the server that is hosting the OpenSSH server, into the /home/''serveruser''/.ssh (for whichever user is the administrative user for the server -- generally the user that installed the server initially). If the SSH tunnel is (still) set at default port 22, you can copy the key using the utility:&lt;br /&gt;
 ssh-copy-id ''serveruser''@''remoteserver.computer.xyz''&lt;br /&gt;
&lt;br /&gt;
:*The ssh-copy-id utility only works over port 22. An alternative if you have changed your SSH port is to copy the /home/''user''/.ssh/id_rsa.pub key to the server manually. On the server make sure the directory /home/''serveruser''/.ssh exists and that there is a file authorized_keys (with write privileges) in that folder. If not, create such a file while logged into the server as ''serveruser'' (the touch command creates an empty file):&lt;br /&gt;
 mkdir ~/.ssh&lt;br /&gt;
 cd ~/.ssh&lt;br /&gt;
 touch authorized_keys&lt;br /&gt;
Then concatenate the id_rsa.pub key you have copied to the ~/.ssh folder. (Make sure the owner of id_rsa.pub, after copying, is ''serveruser''.):&lt;br /&gt;
 cd ~/.ssh&lt;br /&gt;
 chown ''serveruser'' id_rsa.pub&lt;br /&gt;
 cat authorized_keys id_rsa.pub &amp;gt;&amp;gt; authorized_keys&lt;br /&gt;
&lt;br /&gt;
*Make sure the OpenSSH server knows to look for the key file. On the remote server, edit the OpenSSH configuration file:&lt;br /&gt;
 sudo nano /etc/ssh/sshd_config&lt;br /&gt;
&lt;br /&gt;
:*Uncomment the line (i.e. remove the # at the beginning of the line):&lt;br /&gt;
 #AuthorizedKeysFile %h/.ssh/authorized_keys&lt;br /&gt;
&lt;br /&gt;
*Remove the ability to login to the OpenSSH server using password authentication:&lt;br /&gt;
  sudo nano /etc/ssh/sshd_config&lt;br /&gt;
&lt;br /&gt;
:*Change the line&lt;br /&gt;
 #PasswordAuthentication yes&lt;br /&gt;
:to&lt;br /&gt;
 PasswordAuthentication no&lt;br /&gt;
&lt;br /&gt;
*Restart the OpenSSH server:&lt;br /&gt;
 sudo /etc/init.d/ssh restart&lt;br /&gt;
&lt;br /&gt;
*Now you can connect securely with an SSH tunnel without requiring a password, logging in as ''serveruser''.&lt;br /&gt;
&lt;br /&gt;
 ssh -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -p ''22''&lt;br /&gt;
&lt;br /&gt;
==== Connect with SSH and start an application with a single command ====&lt;br /&gt;
* If you have created an [[#OpenSSH Public Key Authentication|OpenSSH key pair]] (without a password), you can start both the SSH tunnel and a VNC program (such as Krdc or Vinagre) to run through the SSH tunnel with a single command:&lt;br /&gt;
 ssh -f -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -p 22 sleep 5; krdc vnc://127.0.0.1::5900&lt;br /&gt;
:*Alternatively (and probably preferably) you can create a Menu Item / Shortcut with the above command.&lt;br /&gt;
&lt;br /&gt;
Note: This command is a command-line mini-script. The SSH option -f option tells the SSH client to fork into the background after starting. (This option is not available in the PuTTY client.) This allows the command line to continue to proceed to the next command(s) listed on the command line mini-script. The 5 second wait (&amp;quot;sleep&amp;quot;) timeout allows time for the SSH tunnel to be created before proceeding to the next command. (This can be lengthened if necessary.) After the wait period, the program (Krdc VNC in this example) is started.&lt;br /&gt;
&lt;br /&gt;
* Of course, any program could be started (to be run through the SSH tunnel) in this fashion, not just a VNC program.&lt;br /&gt;
&lt;br /&gt;
==== Automate SSH connections that require a password ====&lt;br /&gt;
This method is strongly advised against. Transmitting an unencrypted password through the Internet (in order to establish an SSH connection) invites password sniffing. Use the [[#OpenSSH Public Key Authentication|OpenSSH key pair]] methods described above, instead. This method is listed here for reference.&lt;br /&gt;
&lt;br /&gt;
*Terminal interactions (such as the SSH password challenge) can be automated using the [http://linux.die.net/man/1/expect expect] utility. Install:&lt;br /&gt;
 sudo apt-get install expect&lt;br /&gt;
&lt;br /&gt;
* If, for example, your SSH client ID is ''clientuserID'', yourpassword is ''not#1sostrong'', and the remote SSH server is ''remoteserver.computer.xyz'' (using the default SSH port of ''22''), then use this command to start the SSH tunnel:&lt;br /&gt;
&lt;br /&gt;
 expect -c 'spawn ssh -l clientuserID -L 5900:127.0.0.1:5901 remoteserver.computer.xyz -p 22; expect assword ; send &amp;quot;not#1sostrong\n&amp;quot; ; interact'&lt;br /&gt;
&lt;br /&gt;
There are other parameters in this example. ''5900'' and ''5901'' are the ports to be used on either side of the tunnel (port ''5900'' is used for VNC, for example). See [[#Port_forwarding_through_SSH|Port forwarding through SSH]] for more details. &lt;br /&gt;
&lt;br /&gt;
You can use the entire command as a menu item (must be &amp;quot;Run in terminal&amp;quot; in the Advanced menu options).&lt;br /&gt;
&lt;br /&gt;
== VNC ==&lt;br /&gt;
Virtual Network Computing (VNC) mirrors the desktop of a remote (&amp;quot;server&amp;quot;) computer on your local (&amp;quot;client&amp;quot;) computer (it is not a separate remote login, as is XDMCP). A user on the remote desktop must be logged in and running a VNC server (such as [[#X11VNC_Server|X11VNC]], [[#Vino Remote Desktop VNC server|Vino]], or Krfb). Keyboard and mouse events are transmitted between the two computers. VNC is platform-independent —- a VNC viewer on one operating system can usually connect to a VNC server on any other operating system. (Windows users can use one of several clients such as [http://www.uvnc.com/docs/uvnc-viewer.html UltraVNC Viewer].)&lt;br /&gt;
&lt;br /&gt;
=== Vino Remote Desktop VNC server ===&lt;br /&gt;
Vino-server (the Gnome VNC server) is included by default in Ubuntu. Start:&lt;br /&gt;
&lt;br /&gt;
:Menu -&amp;gt; System -&amp;gt; Preferences -&amp;gt; Remote Desktop&lt;br /&gt;
&lt;br /&gt;
*You can accept uninvited connections in the Security section. You can require a password for these connections.&lt;br /&gt;
*This implementation of Vino does not allow changing the default listening ports (which start at 5900). If you wish to customize your VNC connection, use [[#X11VNC_Server|X11VNC]] instead.&lt;br /&gt;
&lt;br /&gt;
*A user can connect using [[#Vinagre VNC client|Vinagre]], the [[#Terminal Server Client|Terminal Server Client]], or any other VNC client.&lt;br /&gt;
&lt;br /&gt;
==== How to securely use VNC with SSH tunneling ====&lt;br /&gt;
It is less secure to leave the VNC listening port open to the Internet, even with a password. (This can expose you to password cracking attempts.)&lt;br /&gt;
&lt;br /&gt;
It is more secure to use SSH to tunnel your VNC connection. Under [[#Port forwarding through SSH|SSH port forwarding]], the VNC listening port is the &amp;lt;remote port&amp;gt;. To increase security, this listening port can be changed from the default 5900. Only the VNC server and the SSH client need to specify the &amp;lt;remote port&amp;gt; in a secure connection.&lt;br /&gt;
&lt;br /&gt;
=== X11VNC Server ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] While Vino is easy to use, X11VNC allows far more customization and therefore can be used more in situations where greater security is needed.&lt;br /&gt;
*Install an X11VNC server to share your desktop with other computer:&lt;br /&gt;
    sudo apt-get install x11vnc&lt;br /&gt;
&lt;br /&gt;
*Run X11VNC without a password:&lt;br /&gt;
 x11vnc -forever -rfbport 5900&lt;br /&gt;
&lt;br /&gt;
:Note: -rfbport 5900 specifies the port to listen on. The port number can be changed. This option is not required if the default port 5900 will be used. Don't forget to open/forward this port in your firewall/router. By default X11VNC server exits after the first client disconnects. To keep it running (and allow future connections), use the -forever option. See [http://www.karlrunge.com/x11vnc/x11vnc_opts.html here] for more command line options.&lt;br /&gt;
&lt;br /&gt;
*Create a password to use with X11VNC:&lt;br /&gt;
 mkdir ~/.vnc&lt;br /&gt;
 x11vnc -storepasswd YOUR_PASSWORD ~/.vnc/x11vnc.pass&lt;br /&gt;
&lt;br /&gt;
*X11VNC can then be started with a password:&lt;br /&gt;
 x11vnc -forever -rfbport 5900 -rfbauth ~/.vnc/x11vnc.pass -o ~/.vnc/x11vnc.log -loopbg -display :0&lt;br /&gt;
&lt;br /&gt;
*You can create a startup script so that X11VNC is automatically loaded at startup (with password settings):&lt;br /&gt;
 echo &amp;quot;/usr/bin/x11vnc -forever -rfbport 5900 -rfbauth ~/.vnc/x11vnc.pass -o ~/.vnc/x11vnc.log -loopbg -display :0&amp;quot; &amp;gt; ~/.config/autostart/x11vnc.sh&lt;br /&gt;
 chmod +x ~/.config/autostart/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
:*You can test the startup script:&lt;br /&gt;
 ~/.config/autostart/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
==== Using VNC with SSH ====&lt;br /&gt;
See [[#Port forwarding through SSH|Port forwarding through SSH]] for additional information.&lt;br /&gt;
&lt;br /&gt;
=== Vinagre VNC client ===&lt;br /&gt;
[http://library.gnome.org/users/vinagre/stable/index.html.en Vinagre] is the default Gnome-based VNC client used in Ubuntu.&lt;br /&gt;
*Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; Remote Desktop Viewer&lt;br /&gt;
&lt;br /&gt;
=== Terminal Server Client ===&lt;br /&gt;
The Terminal Server Client is an Ubuntu/Gnome frontend for [http://www.rdesktop.org/ rdesktop] (for RDP connections to Windows computers) and one of several vncviewer clients (for VNC connections). In can be used instead of Vinagre.&lt;br /&gt;
*Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; Terminal Server Client&lt;br /&gt;
&lt;br /&gt;
*To use it with VNC, one of the VNC clients must be installed first. For example, install the [http://www.tightvnc.com/ TightVNC] client:&lt;br /&gt;
 sudo apt-get install xtightvncviewer&lt;br /&gt;
&lt;br /&gt;
:*Note that the TightVNC client can be used from the command line (or as a menu item) directly:&lt;br /&gt;
 vncviewer ''192.168.0.12''::''5900''&lt;br /&gt;
&lt;br /&gt;
:where ''192.168.0.12'' is an example ''host'' location that is running a VNC server on port 5900. For more command-line options, use&lt;br /&gt;
 man vncviewer&lt;br /&gt;
&lt;br /&gt;
=== Krdc VNC client ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Krdc is the default VNC client in Kubuntu/KDE but can be used in GNOME. It can be used for both VNC and RDP connections. Installing it will also install the Qt platform and many KDE utilities (a large download).&lt;br /&gt;
 sudo apt-get install krdc&lt;br /&gt;
&lt;br /&gt;
*Run:&lt;br /&gt;
:Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; Krdc&lt;br /&gt;
&lt;br /&gt;
*The command-line connection (for use as a menu-item, for example) is:&lt;br /&gt;
 krdc vnc://&amp;lt;remote IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If the remote (Krfp) VNC server is using a &amp;lt;remote port&amp;gt; other than the default 5900 port, use&lt;br /&gt;
 krdc vnc://&amp;lt;remote IP&amp;gt;:&amp;lt;remote port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Krdc can also connect to a Windows server using RDP (Remote Desktop Protocol). &lt;br /&gt;
 krdc rdp://&amp;lt;remote IP&amp;gt;:&amp;lt;remote port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using a VNC client with SSH ====&lt;br /&gt;
See [http://jeltsch.org/node/209 this howto] for an automated setup using a script (it did not work for me, but it might for you).&lt;br /&gt;
&lt;br /&gt;
In brief, you would initiate an [[#Port forwarding through SSH|SSH tunnel with port forwarding]] using Putty or the command line:&lt;br /&gt;
 ssh -C &amp;lt;remote ip&amp;gt; -p &amp;lt;SSH tunnel port&amp;gt; -L &amp;lt;local port&amp;gt;:&amp;lt;remote computer&amp;gt;:&amp;lt;remote port&amp;gt; -l &amp;lt;user&amp;gt;&lt;br /&gt;
::then you would start a VNC client such as Krdc:&lt;br /&gt;
 krdc vnc://localhost:&amp;lt;local port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;local port&amp;gt; will usually be the default 5900, in which case you could simply use&lt;br /&gt;
 krdc vnc://localhost&lt;br /&gt;
&lt;br /&gt;
=== XVNC4Viewer VNC Client ===&lt;br /&gt;
XVNC4Viewer is an alternative to Vinagre or the Terminal Server Client (vncviewer). Install:&lt;br /&gt;
 sudo apt-get install xvnc4viewer&lt;br /&gt;
&lt;br /&gt;
=== Automatic user login (for use with VNC) ===&lt;br /&gt;
VNC only works if a user is logged in. When a computer (hosting one or more servers) is intended to start up unattended and VNC (with or without SSH tunneling) is to be used, the computer ought to start with the primary user logged in. To accomplish this:&lt;br /&gt;
:Menu -&amp;gt; System -&amp;gt; System Settings -&amp;gt; Login Manager -&amp;gt; Convenience -&amp;gt; Enable Auto-Login (''ticked'') -&amp;gt; Lock session (''ticked'')&lt;br /&gt;
::-&amp;gt; Pre-select user: Specified: ''Choose primary user'' (i.e. the user hosting the SSH tunnel, if any, and the VNC server)&lt;br /&gt;
::-&amp;gt; Automatically log in again after X server crash (''ticked'')&lt;br /&gt;
&lt;br /&gt;
*Also make sure the VNC server is set to Autostart at bootup.&lt;br /&gt;
&lt;br /&gt;
== FreeNX ==&lt;br /&gt;
[https://help.ubuntu.com/community/FreeNX FreeNX] is a remote desktop display server/client solution that natively incorporates SSH tunneling (unlike VNC). It is therefore more secure than VNC (unless VNC is coupled with SSH tunneling).&lt;br /&gt;
&lt;br /&gt;
=== FreeNX Server ===&lt;br /&gt;
The Free server .deb package can be downloaded from [http://www.nomachine.com/select-package.php?os=linux&amp;amp;id=1 No Machine free server downloads].&lt;br /&gt;
&lt;br /&gt;
*Alternatively, [[Ubuntu:Quantal#Add Extra (K)Ubuntu Repositories|add the following repositories]]:&lt;br /&gt;
 &amp;lt;del&amp;gt;sudo add-apt-repository ppa:freenx-team&amp;lt;/del&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Install the package:&lt;br /&gt;
 &amp;lt;del&amp;gt;sudo apt-get update&amp;lt;/del&amp;gt;&lt;br /&gt;
 &amp;lt;del&amp;gt;sudo apt-get install freenx&amp;lt;/del&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A FreeNX package / repository is not currently available for Quantal.&lt;br /&gt;
&lt;br /&gt;
=== FreeNX Client ===&lt;br /&gt;
Download the self-installing .deb file from [http://www.nomachine.com/select-package-client.php No Machine Client downloads].&lt;br /&gt;
&lt;br /&gt;
== XDMCP ==&lt;br /&gt;
[http://www.tldp.org/HOWTO/XDMCP-HOWTO/index.html XDMCP] allows a separate remote login by an authorized user. This login is separate from the local user.&lt;br /&gt;
*XDMCP is not secure over the Internet and should only be used within a LAN. It cannot be tunnelled through SSH. It is turned off by default in Ubuntu. To enable it, edit the configuration file:&lt;br /&gt;
&lt;br /&gt;
 gedit /etc/gdm/custom.conf&lt;br /&gt;
&lt;br /&gt;
*Find and change (or add) the line from false to true so that it reads:&lt;br /&gt;
&lt;br /&gt;
 [Xdmcp]&lt;br /&gt;
 Enable=true&lt;br /&gt;
&lt;br /&gt;
=== Telnet ===&lt;br /&gt;
SSH is, basically, secure Telnet.&lt;br /&gt;
&lt;br /&gt;
== VPN clients ==&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Virtual_private_network VPN] (Virtual Private Network) allows a secure encrypted  connection (&amp;quot;tunnelling&amp;quot;) over the Internet between a client (either standalone or on a separate LAN) and a home or corporate LAN server.&lt;br /&gt;
=== VPN through Network Manager ===&lt;br /&gt;
*The default Network Manager in Ubuntu/Kubuntu has a VPN client available. This includes support for IPSec and Cisco-compliant VPN connections. Install:&lt;br /&gt;
 sudo apt-get install network-manager-vpnc&lt;br /&gt;
&lt;br /&gt;
*To connect to a VPN network using OpenVPN (SSL), install the plugin:&lt;br /&gt;
  sudo apt-get install network-manager-openvpn&lt;br /&gt;
&lt;br /&gt;
*To connect to a VPN network using PPTP (MS Windows servers), install the plugin:&lt;br /&gt;
 sudo apt-get install network-manager-pptp&lt;br /&gt;
&lt;br /&gt;
*Configure:&lt;br /&gt;
::Network Manager icon (in system tray) -&amp;gt; VPN Connections -&amp;gt; Configure VPN&lt;br /&gt;
&lt;br /&gt;
=== vpnautoconnect (vpn daemon) ===&lt;br /&gt;
[http://sourceforge.net/projects/vpnautoconnect/ vpnautoconnect] is a daemon to allow automatic vpn connections through Network Manager. [http://sourceforge.net/projects/vpnautoconnect/files/ Download] and install the .deb package for your OS version.&lt;br /&gt;
&lt;br /&gt;
=== Other VPN clients ===&lt;br /&gt;
Standalone VPN clients based on protocol are available (but not necessary if using Network Manager):&lt;br /&gt;
:*[http://www.debuntu.org/how-to-connect-to-a-cisco-vpn-using-vpnc vpnc], [http://grml.org/online-docs/grml-vpn.8.html grml-vpn] -- for Cisco-compliant (IPSec) VPN networks&lt;br /&gt;
:*[http://www.openswan.org/ openswan] -- for IPSec (OpenSwan) VPN networks&lt;br /&gt;
:*[http://pptpclient.sourceforge.net/ pptp-linux] -- for PPTP (MS Windows-compliant) VPN networks&lt;br /&gt;
:*[http://openvpn.net/ openvpn], gadmin-openvpn-client -- for OpenSSL (OpenVPN) VPN networks&lt;br /&gt;
&lt;br /&gt;
== VPN servers ==&lt;br /&gt;
=== OpenVPN ===&lt;br /&gt;
[http://openvpn.net/ OpenVPN] is a free, GPL-licensed open-source cross-platform VPN solution based on OpenSSL (not IPSec). Install the server (then see the website for further installation instructions):&lt;br /&gt;
 sudo apt-get install openvpn bridge-utils&lt;br /&gt;
&lt;br /&gt;
A GUI configuration utility (GTK-based) is available:&lt;br /&gt;
 sudo apt-get install gadmin-openvpn-server&lt;br /&gt;
&lt;br /&gt;
Also see [[OpenVPN_server|these installation tips]].&lt;br /&gt;
&lt;br /&gt;
=== Poptop (PPTP Server) ===&lt;br /&gt;
[http://poptop.sourceforge.net/ Poptop] is a free open-source PPTP-based VPN server compatible with MS-windows PPTP clients. Install:&lt;br /&gt;
 sudo apt-get install pptpd&lt;br /&gt;
&lt;br /&gt;
=== OpenSwan ===&lt;br /&gt;
[http://www.openswan.org/ OpenSwan] is the open source implementation of IPSec-based VPN connections for Linux (and is a successor to FreeSwan). Install:&lt;br /&gt;
 sudo apt-get install openswan linux-patch-openswan&lt;br /&gt;
&lt;br /&gt;
= Security =&lt;br /&gt;
Ubuntu by default is a fairly safe system. However, if you intend to use Ubuntu as a server, or for critical applications in which loss of data (by accident or by malicious intrusion) would be disastrous, you should learn how to make Ubuntu more secure. A good introduction to [http://www.psychocats.net/ubuntu/security#bestpractices Ubuntu Security Best Practices] is available. Recommended reading includes the book ''[http://www.harpercollins.com/books/9780061962233/Cyber_War/index.aspx Cyber War]'' by [http://en.wikipedia.org/wiki/Richard_A._Clarke Richard Clark] and [http://news.cnet.com/8301-27080_3-20004505-245.html this interview] with Joe Weiss (IT advisor for the energy-sector smart grid). Also read [http://money.cnn.com/2013/04/08/technology/security/shodan/index.html?iid=HP_LN read this CNN Money article].&lt;br /&gt;
 &lt;br /&gt;
== Firewall ==&lt;br /&gt;
Network communications go through &amp;quot;channels&amp;quot; called ports. You can restrict which ports are available (&amp;quot;open&amp;quot;) for network communications, creating a barricade to unwanted network intrusion. Firewalls do this job for you. But I guarantee that if you install one before you know how to use it that one or more networking programs on your system will stop working. Read every bit of documentation about a firewall before installing it -- you won't regret the time invested. All of these packages modify [http://en.wikipedia.org/wiki/Iptables iptables], which is the set of rules that controls network access in and out of your computer. (You can modify iptables manually from the command line, as well, but if you are that much of an expert, you probably don't need this guide.) Also see the [https://help.ubuntu.com/12.04/serverguide/firewall.html official Ubuntu documentation].&lt;br /&gt;
&lt;br /&gt;
=== Firestarter ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://www.fs-security.com/ Firestarter] is an intuitive firewall manager used to set the iptables values which provide firewall capabilities in Linux (including Ubuntu). It has a very easy-to-use GUI. &lt;br /&gt;
 sudo apt-get install firestarter&lt;br /&gt;
&lt;br /&gt;
==== Firestarter fails to open system log ====&lt;br /&gt;
This is a problem in Quantal. See the [[Syslogd_to_rsyslog|solution here]].&lt;br /&gt;
&lt;br /&gt;
=== Guarddog ===&lt;br /&gt;
[http://www.simonzone.com/software/guarddog/ Guarddog] is a GUI firewall configuration utility that has been used for KDE. It has a complex array of configuration, and is difficult to use for some beginners. &lt;br /&gt;
 sudo apt-get install guarddog&lt;br /&gt;
&lt;br /&gt;
=== Uncomplicated Firewall ===&lt;br /&gt;
[http://wiki.ubuntu.com/UncomplicatedFirewall Uncomplicated Firewall] is installed in (K)Ubuntu by default, but all ports are open initially. It is configurable through the [[Ubuntu_Quantal_Introduction#General_Notes|command-line interface]]. See [http://ubuntuforums.org/showthread.php?t=823741 this forum thread], [http://www.ubuntu-unleashed.com/2008/05/howto-take-use-setup-and-advantage-of.html or this usage tutorial], or [https://help.ubuntu.com/community/UFW Ubuntu community help] for tips on how to set up and use it.&lt;br /&gt;
If not installed, it can be installed:&lt;br /&gt;
 apt-get install ufw&lt;br /&gt;
&lt;br /&gt;
==== Gufw ====&lt;br /&gt;
[http://gufw.tuxfamily.org/index.html Gufw] is a graphical user interface for Uncomplicated Firewall. Install:&lt;br /&gt;
 sudo apt-get install gufw&lt;br /&gt;
&lt;br /&gt;
== Anti-virus ==&lt;br /&gt;
* If you are running a file server, interface frequently with Windows drives or share files with Windows users, or use virtualization, you will want a virus checker for your Windows files.&lt;br /&gt;
&lt;br /&gt;
* Despite extensive minsinformation, Linux is not immune from malware (witness the explosion of malware being created for the Linux-based Google Android systems). The malware is not usually spread within the OS itself (as long as the OS is a well-respected distribution obtained through official channels), but in trojan programs downloaded and installed by users outside of the normal software distribution channels (i.e. repositories) of the OS. There is always a danger to using programs downloaded from the Internet from sources other than respected repositories -- it is the primary reason that Debian and (K)Ubuntu retain tight control over their software repositories. &lt;br /&gt;
&lt;br /&gt;
* Any file can have malware embedded in it (which is trivial to achieve by concatenation, for example: ''cat originalfile.avi malware.exe &amp;gt; originalfileplusmalware.avi''). The question is whether a user will try to open a file with a program (such as a media player) that has been compromised in a way that allows it to execute the code found in the infected media (e.g. .avi) file. This can occur not only for Windows users but for any OS (including Mac OSX and Linux) with a compromised program (e.g. media player). An example is the extensive problems the Mac OS community is currently having with the Flash player.&lt;br /&gt;
&lt;br /&gt;
* Routine scanning of any file downloaded from the Internet, any file imported from another user's computer (even a trusted source, since their attention to virus prevention may not be as compulsive as yours), or any attachment received in an email (even from a trusted sender) should be done with an anti-virus program.&lt;br /&gt;
&lt;br /&gt;
=== ClamAV ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://www.clamav.net/ ClamAV] is the open source virus tool for Linux. To install ClamAV:&lt;br /&gt;
 sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
* If an error is returned: &amp;quot;The database directory must be writable for UID 1000 or GID 1000&amp;quot; in order for the virus database to be updated, then change the ownership of the installation directory (/var/lib/clamav):&lt;br /&gt;
 sudo chown 1000 /var/lib/clamav&lt;br /&gt;
&lt;br /&gt;
==== ClamTk (ClamAV GUI) ====&lt;br /&gt;
[http://clamtk.sourceforge.net/ ClamTk] is a GTK-based GUI frontend for ClamAV. Install:&lt;br /&gt;
 sudo apt-get install clamtk&lt;br /&gt;
&lt;br /&gt;
=== AVG ===&lt;br /&gt;
[http://free.avg.com/us-en/download.prd-afl AVG] offers a free virus scanner for Linux in a .deb package. Download and install from the website.&lt;br /&gt;
=== Avast ===&lt;br /&gt;
[http://www.avast.com/linux-home-edition Avast] offers a Linux edition (for home users only) in a .deb package. Download and install from the website.&lt;br /&gt;
&lt;br /&gt;
== Anti-spam ==&lt;br /&gt;
=== Spam Assasin ===&lt;br /&gt;
[http://spamassassin.apache.org/ SpamAssasin] is written in perl, and is mostly for use with a server (such as a groupware server or Apache). Install:&lt;br /&gt;
 sudo apt-get spamassassin&lt;br /&gt;
&lt;br /&gt;
== Rootkit checkers ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/Rootkit Rootkits] are malicious [http://en.wikipedia.org/wiki/Trojan_horse_(computing) trojan]-like programs to allow an intruder to become a root user and therefore have complete administrative control over the system. There aren't many rootkits in the wild for Linux. Still, this is a growing security problem (especially in other operating systems) and it is a matter of time before more rootkits appear in Linux. Checking for rootkits isn't always successful from a system that is already infected. Your rootkit checker should therefore be run from another system, or a [[Ubuntu:Quantal#Run (K)Ubuntu LiveCD from a USB pendrive|USB pendrive with an Ubuntu LiveCD installation]]. See the rootkit checker manuals for instructions how to do this. If you are infected with a rootkit, you must backup all your files and re-install your system. (Thank goodness this is easy with Ubuntu, unlike with other operating systems).&lt;br /&gt;
=== Chkrootkit ===&lt;br /&gt;
[http://www.chkrootkit.org/ Chkrootkit] checks locally for signs of a rootkit. See the [http://www.chkrootkit.org/README chkrootkit manual] for usage instructions.&lt;br /&gt;
:Install:&lt;br /&gt;
 sudo apt-get install chkrootkit&lt;br /&gt;
:Run:&lt;br /&gt;
 sudo chkrootkit&lt;br /&gt;
&lt;br /&gt;
=== Rootkit Hunter ===&lt;br /&gt;
[http://www.rootkit.nl/projects/rootkit_hunter.html Rootkit Hunter] is compatible with (K)Ubuntu systems. See the [http://sourceforge.net/docman/display_doc.php?docid=35179&amp;amp;group_id=155034 usage instructions].&lt;br /&gt;
:Install:&lt;br /&gt;
 sudo apt-get install rkhunter&lt;br /&gt;
:Run:&lt;br /&gt;
 sudo rkhunter&lt;br /&gt;
&lt;br /&gt;
=== Malicious commands to avoid ===&lt;br /&gt;
There are many [[Malicious_Linux_Commands|malicious commands]] to be avoided in Linux (as in all operating systems). It is worthwhile to be aware of these dangerous commands so that they are not executed by accident or by malicious advice.&lt;br /&gt;
&lt;br /&gt;
== USB drives ==&lt;br /&gt;
USB drives are a major source of security risk and means of data theft.&lt;br /&gt;
&lt;br /&gt;
* An administrator password should be set for the computer BIOS and booting from a USB drive or CD/DVD should be disabled. (Otherwise, any passerby can boot their own OS and then use it to steal data from the hard drive.)&lt;br /&gt;
&lt;br /&gt;
* See [http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/ this article] for methods of restricting USB usage to authorized users.&lt;br /&gt;
&lt;br /&gt;
== Prevent unauthorized boots and system access ==&lt;br /&gt;
Many computers are kept in places where casual passersby may have an opportunity to access the computer, unobserved for short periods. In addition to physical precautions to prevent or slow computer theft (such as locked cases, alarms, and security cables similar to those used to slow bicycle theft), [http://www.pcworld.com/article/114727/lock_down_your_pc.html precautions] should be taken to prevent an unauthorized operating system from being booted using an external device (such as USB drive). Once such as external OS is booted, it can be used to access most hard drive(s) on the computer and the contents copied to a second external device (to be examined or unencrypted later). This is a common means of data theft that is fast and easy to accomplish, and means to deter it should be taken on any public or semi-public computer.&lt;br /&gt;
&lt;br /&gt;
* Set BIOS to restrict bootup to the hard drive only.&lt;br /&gt;
:* Set a Supervisor/Administrator password for your computer's BIOS. (I recommend writing it down and taping it to the inside cover of the computer case prior to locking the computer case.) Disable booting from all devices except the hard drive. Setting the hard drive as the first priority boot device is not enough, as most current BIOS menus allow manual selection of any enabled boot devices. Only the hard drive should be left enabled.&lt;br /&gt;
&lt;br /&gt;
* Enable Hard Drive locking, if your computer's BIOS allows it. Most hard drives allow a password to be set by the BIOS and stored in a chip on the hard drive controller which can only be reset by disassembling the hard drive. (Some manufacturers provide a backdoor security key, however.) BIOS versions found on newer computers/laptops allow this password to be set in the BIOS, so that only a BIOS containing the correct password can unlock the hard drive. (If the hard drive is then removed from the computer, it cannot be accessed by any BIOS that does not have the correct password or backdoor security key.) Note, however, that this precaution does not protect against booting from external devices if the BIOS is still set to allow that.&lt;br /&gt;
:*There is a risk to this security measure. If you forget the password and the BIOS passwords somehow get reset, the hard drive would become inaccessible. The BIOS and Hard Drive password(s) should always be stored in a safe location.&lt;br /&gt;
&lt;br /&gt;
* Password protect the Grub bootloader. Without password protection, Grub can be used to circumvent BIOS restrictions. See this section for [[Ubuntu_Quantal_System_Administration#Protecting_Grub_Legacy_from_cracking|Grub Legacy]] and this section for [[Ubuntu_Quantal_System_Administration#Protecting_Grub2_from_cracking|Grub2]].&lt;br /&gt;
&lt;br /&gt;
* Make sure all user accounts are protected by a [[Ubuntu_Quantal_Privacy#Passwords_and_file_authentication|password]], and always require passwords for login. Never create an &amp;quot;administrator&amp;quot; user account (hidden or not) and leave it unprotected by a password. Never enable automatic login without a password to any user account.&lt;br /&gt;
:*It is possible to enable [[Ubuntu_Quantal_Tips#Automatic_user_login|automatic login]] to a preferred password-protected user account while simultaneously enabling a password-protected screensaver (the password for which must still be entered even before initial user access). This is a reasonable solution that offers protection while still allowing automatic login.&lt;br /&gt;
&lt;br /&gt;
* Make sure a password-protected [[Ubuntu_Quantal_Utilities#Screensavers|screensaver]] is always enabled (that will engage after a reasonably short period of inactivity).&lt;/div&gt;</description>
			<pubDate>Sun, 19 May 2013 12:29:43 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:U_Quantal/Networking</comments>		</item>
		<item>
			<title>Template:U Precise/Networking</title>
			<link>http://easylinux.info/wiki/Template:U_Precise/Networking</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Prevent unauthorized boots and system access */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Networking =&lt;br /&gt;
Only one network manager and GUI interface can be enabled. Network-Manager is installed by default, but many users prefer [http://wicd.sourceforge.net/ Wicd Network Manager].&lt;br /&gt;
&lt;br /&gt;
== Network Manager ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/NetworkManager Network Manager] is the network manager installed by default in (K)Ubuntu. It has a tray applet that allows you to switch between Internet connections (such as wireless APs or wired connection). &lt;br /&gt;
&lt;br /&gt;
== Wicd Network Manager ==&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://wicd.sourceforge.net/ Wicd Network Manager] is a GTK-dependent networking manager written in Python that can be used in all variants of (K)Ubuntu. Many users (including me) report it to be faster and more stable than Network Manager. To avoid networking conflicts, Wicd requires the removal of Network Manager prior to installation (replace ''network-manager-kde'' with ''network-manager'' if using Ubuntu instead of Kubuntu).&lt;br /&gt;
 sudo apt-get remove network-manager-kde&lt;br /&gt;
 sudo reboot&lt;br /&gt;
 sudo apt-get install wicd&lt;br /&gt;
&lt;br /&gt;
== Set a static IP address ==&lt;br /&gt;
I have never been able to get Network Manager to accept my static IP address settings. If you only use only a wired interface, you do not need a network manager and it can be removed.&lt;br /&gt;
&lt;br /&gt;
*Remove Network Manager (replace ''network-manager-kde'' with ''network-manager'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo apt-get remove network-manager-kde&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
*Edit the /etc/network/interfaces file (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo kate /etc/network/interfaces&lt;br /&gt;
&lt;br /&gt;
*and replace the line (ok if line is missing)&lt;br /&gt;
 iface eth0 inet dhcp&lt;br /&gt;
&lt;br /&gt;
*with the following lines (using your own LAN settings, of course):&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 address 192.168.0.35&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 network 192.168.0.0&lt;br /&gt;
 broadcast 192.168.0.255&lt;br /&gt;
 gateway 192.168.0.1&lt;br /&gt;
&lt;br /&gt;
*Then restart networking:&lt;br /&gt;
 sudo /etc/init.d/networking restart&lt;br /&gt;
&lt;br /&gt;
*Check to see if your settings are now correct:&lt;br /&gt;
 ifconfig&lt;br /&gt;
&lt;br /&gt;
*If you need a static IP address and have a wireless connection, Wicd Network Manager works:&lt;br /&gt;
&lt;br /&gt;
:*Uninstall Network Manager and install Wicd instead (replace ''network-manager-kde'' with ''network-manager'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo apt-get remove network-manager-kde&lt;br /&gt;
 sudo reboot&lt;br /&gt;
 sudo apt-get install wicd&lt;br /&gt;
&lt;br /&gt;
=== Manual configuration from the command-line ===&lt;br /&gt;
&lt;br /&gt;
3 steps for WEP:&lt;br /&gt;
&lt;br /&gt;
 sudo iwconfig eth[N] essid [SSID]&lt;br /&gt;
 sudo iwconfig eth[N] key restricted s:[PASSWORD]&lt;br /&gt;
 sudo dhclient&lt;br /&gt;
&lt;br /&gt;
WPA is more complicated:&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir /etc/wpa_supplicant&lt;br /&gt;
 cd /etc/wpa_supplicant&lt;br /&gt;
 sudo echo network = { &amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo ssid=&amp;quot;SSID&amp;quot; &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo key_mgmt=WPA-PSK &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo psk=&amp;quot;PRESHAREDKEY&amp;quot; &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo } &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 cd /etc/network&lt;br /&gt;
 sudo gedit interfaces&lt;br /&gt;
&lt;br /&gt;
Now add after &amp;quot;auto eth[N] ...&amp;quot; &amp;amp; &amp;quot;iface eth[N] ..&amp;quot; :&lt;br /&gt;
&lt;br /&gt;
 wpa-driver wext # or whatever driver your network card needs&lt;br /&gt;
 wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf&lt;br /&gt;
&lt;br /&gt;
Save the file and restart your system.&lt;br /&gt;
&lt;br /&gt;
== Internet connection sharing (DHCP server) ==&lt;br /&gt;
In most LANs, an inexpensive router is used to provide [http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol DHCP] functions (internet connection sharing). &lt;br /&gt;
&lt;br /&gt;
However, DHCP services can also be provided by a single host computer on your [http://en.wikipedia.org/wiki/Local_area_network LAN] if it is directly connected to the Internet. (This is useful, for instance, if you have a 3G or other wireless EVDO connection to your computer which you want to share with the other computers on your LAN). Other client computers on your LAN would then connect to the Internet through your host computer's Internet connection. The host computer now essentially performs the DHCP functions of a router.&lt;br /&gt;
&lt;br /&gt;
All &amp;quot;client&amp;quot; computers on the LAN ought to be connected to a central LAN switch or router. (If using a router, it should have its own DHCP functions disabled -- you shouldn't have 2 DHCP servers on a LAN unless you know how to [[#Using a nested wireless LAN router|nest LANs]]). They should all be set up to obtain DHCP-assigned dynamic IP addresses and use the same LAN subnet settings (which in the example below is LAN IP range ''10.0.0.1 - 10.0.0.250'' with netmask ''255.255.255.0'' and gateway ''10.0.0.1''). The host computer to be used as the gateway/DHCP server is then connected (through its own ethernet port) either to one to the ports of the switch (if used), or to a LAN port of a router (don't use the WAN port). The host computer then connects directly to the Internet ([http://en.wikipedia.org/wiki/Wide_area_network WAN]) through a second port (which in the example below will be a wireless (wifi) port (wlan0)). &lt;br /&gt;
&lt;br /&gt;
(Note: This setup is easiest if you connect all computers on the LAN with Ethernet cables to the central switch or router. But also see [[#Using a nested wireless LAN router|using a nested wireless LAN router]] below.)&lt;br /&gt;
&lt;br /&gt;
(Note: If you want your LAN to use the same subnet as your WAN, see [[#Network Interfaces Bridging|network interface bridging]].)&lt;br /&gt;
&lt;br /&gt;
*Install the DHCP server and firewall programs:&lt;br /&gt;
 sudo apt-get install dhcp3-server firestarter&lt;br /&gt;
&lt;br /&gt;
*Rename the startup command (through a symbolic link) for the DHCP server. This is required or Firestarter will not know where to find it:&lt;br /&gt;
 sudo ln -sf /etc/init.d/dhcp3-server /etc/init.d/dhcpd&lt;br /&gt;
&lt;br /&gt;
*Edit the DHCP server configuration file:&lt;br /&gt;
 sudo nano -w /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
::Change the line&lt;br /&gt;
 INTERFACES=&amp;quot;&amp;quot;&lt;br /&gt;
::to&lt;br /&gt;
 INTERFACES=&amp;quot;eth0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
*Restart the DHCP server:&lt;br /&gt;
 sudo dhcpd restart&lt;br /&gt;
&lt;br /&gt;
*Right click on Network-Manager -&amp;gt; Edit Connections... -&amp;gt; Wired -&amp;gt; Add&lt;br /&gt;
: -&amp;gt; Connection name: ''Shared internet connection''&lt;br /&gt;
: -&amp;gt; IPv4 Settings -&amp;gt; Method: Manual -&amp;gt; Add&lt;br /&gt;
: -&amp;gt; Address: ''10.0.0.1'' -&amp;gt; Netmask: ''255.255.255.0'' -&amp;gt; Gateway: 0.0.0.0&lt;br /&gt;
: -&amp;gt; Available to all users: [x]&lt;br /&gt;
&lt;br /&gt;
*Attach the ethernet cable to (eth0).&lt;br /&gt;
:Network-Manager -&amp;gt; Wired Networks -&amp;gt; ''Shared internet connection''&lt;br /&gt;
&lt;br /&gt;
*Adjust your firewall to allow the internet connection sharing. Start Firestarter: &lt;br /&gt;
 sudo firestarter&lt;br /&gt;
&lt;br /&gt;
:*Tell the firewall which port is your direct Internet Connection:&lt;br /&gt;
Firestarter -&amp;gt; Preferences -&amp;gt; Firewall -&amp;gt; Network Settings -&amp;gt; &lt;br /&gt;
Internet connected network device: (wlan0)&lt;br /&gt;
:-&amp;gt; IP address is assigned by DHCP: [x]&lt;br /&gt;
&lt;br /&gt;
:*Tell the firewall which port is for the LAN, and specify the details for the LAN:&lt;br /&gt;
Firestarter -&amp;gt; Preferences -&amp;gt; Firewall -&amp;gt; Network Settings -&amp;gt; &lt;br /&gt;
Local network connected device: (eth0) &lt;br /&gt;
:-&amp;gt; Enable internet connection sharing: [x]&lt;br /&gt;
:-&amp;gt; Enable DHCP for the local network: [x]&lt;br /&gt;
:: -&amp;gt; DHCP server details -&amp;gt; Create new DHCP configuration -&amp;gt; Lowest IP address to assign: ''10.0.0.2''&lt;br /&gt;
:: -&amp;gt; Highest IP address to assign: ''10.0.0.250'' -&amp;gt; Name server: &amp;lt;dynamic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Note: Use your own desired LAN settings (internal [http://en.wikipedia.org/wiki/Static_IP#Static_and_dynamic_IP_addresses DHCP-assigned dynamic IP] address range), of course. In this example I don't use the full IP range ''10.0.0.2 - 10.0.0.255'' for dynamic IP addresses because I want to reserve some LAN addresses (''10.0.0.251 - 10.0.0.255'') to be used as static IP addresses).&lt;br /&gt;
&lt;br /&gt;
*Notes:&lt;br /&gt;
:*If you wish to use this setup all the time, make the &amp;quot;''Shared internet connection''&amp;quot; profile your default connection profile in Network Manager.&lt;br /&gt;
&lt;br /&gt;
=== Using a nested wireless LAN router ===&lt;br /&gt;
Many users will already have an established LAN that uses an existing wireless router and has client computers that are setup to connect wirelessly to the router. Here's how to maintain this setup and still use the internet connection sharing method of a single host computer as described above. This method is known as '''nested LANs'''. The wireless router will serve as a nested LAN for its wireless clients (only), but in turn will appear as a single device to the main LAN. The two LANs must have different IP ranges. For example, the main LAN may have an IP range ''10.0.0.1 - 10.0.0.255'' (with netmask ''255.255.255.0''), as in the above example. The router's nested wireless LAN must then use a different IP range (for example ''192.168.0.1 - 192.168.0.255'' with netmask ''255.255.255.0''). &lt;br /&gt;
&lt;br /&gt;
*Do not use your wireless router's WAN (Internet) port.&lt;br /&gt;
*Connect the host computer (to be used as your main LAN gateway/router) to a LAN port (not the WAN/Internet port) of the wireless LAN router.&lt;br /&gt;
*Configure your wireless router's LAN so that it appears to be a ''single device'' to the main LAN:&lt;br /&gt;
:*Setup your wireless router so that the Internet Connection type is &amp;quot;Static IP&amp;quot; (often in the &amp;quot;Internet Setup&amp;quot; section). Configure the settings so that its &amp;quot;Internet IP address&amp;quot; is within the static IP address range of your main LAN (e.g. ''10.0.0.254''), and make sure the subnet mask matches the one you chose for your main LAN (e.g. ''255.255.255.0''). The gateway setting should be set to match the IP address of your host computer of the main LAN (e.g. ''10.0.0.1'' in the example of the preceding section). Now the wireless router will appear to the host computer as just another device on the main LAN. &lt;br /&gt;
:*If your wireless LAN is already functioning, you probably don't have to change any settings, but double-check to make sure the schema are compatible. Configure the wireless router's settings for the nested wireless LAN. This is done by enabling the router's DHCP server functions (in &amp;quot;Network Setup&amp;quot; or some similar configuration section of the router). The router ought to have as its own wireless LAN gateway address a &amp;quot;local IP address&amp;quot; (or &amp;quot;LAN IP address&amp;quot;) of ''192.168.0.1'' (for the IP address range used in this example), and a &amp;quot;starting IP address&amp;quot; (for the DHCP-assigned dynamic IP address range to be used for the wireless clients) to be ''192.168.0.2'' or greater. (Some routers ask you to specify the entire range (such as ''192.168.0.2 - 192.168.0.255''.)&lt;br /&gt;
*Make sure all your wireless client computers are set to obtain their DHCP-assigned dynamic IP addresses from the wireless router (gateway IP ''192.168.0.1'') instead of from the main LAN gateway. &lt;br /&gt;
*Now all communications from the wireless client computers will be routed to the wireless LAN router first, which will then in turn route them to the host computer (which is acting as the main LAN gateway/router), which will then in turn route them to the Internet (WAN). &lt;br /&gt;
*Note: The host computer for the main LAN must have a static IP address (e.g. ''10.0.0.1'' as in the example of the preceding section) and it must match the gateway IP address configured in the wireless LAN router settings.&lt;br /&gt;
&lt;br /&gt;
=== Network Interfaces Bridging ===&lt;br /&gt;
*Install bridge-utils to be able to create network bridges:&lt;br /&gt;
 sudo apt-get install bridge-utils&lt;br /&gt;
&lt;br /&gt;
*Edit /etc/network/interfaces:&lt;br /&gt;
 sudo nano /etc/network/interfaces&lt;br /&gt;
&lt;br /&gt;
The interfaces file should look like this after editing it:&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet manual&lt;br /&gt;
 #&lt;br /&gt;
 auto br0&lt;br /&gt;
 iface br0 inet dhcp&lt;br /&gt;
 #&lt;br /&gt;
 bridge_ports eth0 wlan0&lt;br /&gt;
 #&lt;br /&gt;
 # The loopback network interface&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
&lt;br /&gt;
*Restart networking with:&lt;br /&gt;
 sudo /etc/init.d/networking restart&lt;br /&gt;
&lt;br /&gt;
== Using Dynamic IP addresses for a webserver ==&lt;br /&gt;
Normally, domain name servers (DNS) that are used publicly on the Internet match a web server's URL name with the IP address of the server's host computer. If your computer has a [http://en.wikipedia.org/wiki/IP_address#IP_address_assignment static IP address], then you can publish your own web server's URL as belonging to the static, unchanging IP address of your computer.&lt;br /&gt;
&lt;br /&gt;
However, if your IP address is [http://en.wikipedia.org/wiki/IP_address#IP_address_assignment dynamic] (always changing) because you use an ISP (Internet Service Provider) that constantly changes your IP address (using DHCP), then you will need a Dynamic DNS service to constantly keep track of your dynamically changing IP address and match it to of your web server's URL. Fortunately, there are a few Dynamic DNS services that will do this for you, either for a small fee or even for free. For more info, see [https://help.ubuntu.com/community/DynamicDNS this Ubuntu Community help] article.&lt;br /&gt;
&lt;br /&gt;
For specific tips on setting up Dynamic DNS, see [[Dynamic IP servers|this article]].&lt;br /&gt;
&lt;br /&gt;
== Filesharing ==&lt;br /&gt;
=== NFS ===&lt;br /&gt;
NFS is the default networking protocol for network file sharing in *nix systems (including (K)Ubuntu Linux). Here are some tips for setting up NFS from the [http://mostlylinux.wordpress.com/network/nfshowto/ Little Girl's Mostly Linux Blog].&lt;br /&gt;
&lt;br /&gt;
=== Samba File Sharing ===&lt;br /&gt;
==== Samba client ====&lt;br /&gt;
Samba is a networking protocol that allows compatibility with Windows-based networks. The Samba client is installed by default in Ubuntu and should work seamlessly (unless you have have a firewall blocking the ports).&lt;br /&gt;
&lt;br /&gt;
==== Samba server ====&lt;br /&gt;
[http://www.samba.org/ Samba] provides file/print services for the SMB/CIFS protocol used in Windows-based networks. See the [https://help.ubuntu.com/10.10/serverguide/C/windows-networking.html official Ubuntu documentation] for more information about providing services in a Windows network. A Samba server can be installed using the tasksel option during installation of the Ubuntu [[Ubuntu:Precise#Servers|server]] from the LiveCD, or at any time using:&lt;br /&gt;
 sudo tasksel install samba-server&lt;br /&gt;
&lt;br /&gt;
* An alternative method of installation is:&lt;br /&gt;
 sudo apt-get install samba samba-tools system-config-samba smbfs&lt;br /&gt;
&lt;br /&gt;
:Note: samba-tools, system-config-samba, and smbfs are optional.&lt;br /&gt;
&lt;br /&gt;
*Modify Samba settings.&lt;br /&gt;
:*Method 1:&lt;br /&gt;
&lt;br /&gt;
:Menu -&amp;gt; System -&amp;gt; Administration -&amp;gt; Samba&lt;br /&gt;
:(Note: this is available only if you installed system-config-samba.)&lt;br /&gt;
&lt;br /&gt;
It is recommended that your user be a member of the sambashare [[Ubuntu:Precise#Change your user groups|group]], as well.&lt;br /&gt;
&lt;br /&gt;
:*Method 2:&lt;br /&gt;
:Enable File Sharing Server With User Login (Very Reliable Method)&lt;br /&gt;
&lt;br /&gt;
:Do the following on the machine that has the files to be shared:&lt;br /&gt;
&lt;br /&gt;
::*Add current user to Samba:&lt;br /&gt;
 sudo smbpasswd -a username&lt;br /&gt;
::(replacing username with your login username)&lt;br /&gt;
&lt;br /&gt;
::*Open the samba config file:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/samba/smb.conf&lt;br /&gt;
&lt;br /&gt;
::*Add the directories to be added (right at the end) in the following format:&lt;br /&gt;
&lt;br /&gt;
 [Pictures]&lt;br /&gt;
 path = /home/username/&amp;lt;folder_to_be_shared&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::(Replace username with your username and &amp;lt;folder_to_be_shared&amp;gt; with the folder you want to share)&lt;br /&gt;
&lt;br /&gt;
::Press CTRL+X and then Y to save.&lt;br /&gt;
&lt;br /&gt;
::*Restart Samba:&lt;br /&gt;
 sudo service smbd restart&lt;br /&gt;
 sudo service nmbd restart&lt;br /&gt;
&lt;br /&gt;
:::Note: Prior versions used:&lt;br /&gt;
 sudo /etc/init.d/samba restart&lt;br /&gt;
&lt;br /&gt;
*On Windows access the folder in the following format in Windows Explorer:&lt;br /&gt;
 \\192.168.x.x&lt;br /&gt;
::(replace 192.168.x.x with the actual IP address of your server which is serving the folder)&lt;br /&gt;
&lt;br /&gt;
*On Linux type the following in Konqueror or Nautilus:&lt;br /&gt;
 smb://192.168.x.x&lt;br /&gt;
::(replace 192.168.x.x with the actual IP address of your server serving the folder)&lt;br /&gt;
&lt;br /&gt;
Note: If you use Sharing in KDE's System Settings panel, be aware that there is a small bug, reported [https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/95452 here]. In brief, you need to comment out/delete any instances of these two lines in /etc/smb.conf :&lt;br /&gt;
 case sensitive&lt;br /&gt;
 msdfs proxy&lt;br /&gt;
&lt;br /&gt;
==== Change your Workgroup ====&lt;br /&gt;
To change your Samba (Windows network) workgroup:&lt;br /&gt;
 sudo nano /etc/samba/smb.conf&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 workgroup = WORKGROUUP&lt;br /&gt;
&lt;br /&gt;
and change the setting to whatever your LAN workgroup is.&lt;br /&gt;
&lt;br /&gt;
==== Recognizing Win98 machines ====&lt;br /&gt;
Microsoft networking is extremely quirky. To enable recognition of PCs with Windows 98, edit your Samba configuration file:&lt;br /&gt;
 sudo nano /etc/samba/smb.conf&lt;br /&gt;
Then add the following lines to the file:&lt;br /&gt;
 [global]&lt;br /&gt;
 # THE LANMAN FIX&lt;br /&gt;
 client lanman auth = yes&lt;br /&gt;
 client ntlmv2 auth = no&lt;br /&gt;
&lt;br /&gt;
=== Integrating into Mac OS X Network ===&lt;br /&gt;
See [http://www.zaphu.com/2008/04/30/five-guides-on-how-to-integrate-ubuntu-into-a-mac-os-x-network/ this guide] for information on integrating Ubuntu into an existing Mac OS X Appletalk network.&lt;br /&gt;
&lt;br /&gt;
=== FTP Server ===&lt;br /&gt;
An FTP server allows the easy transfer of files between systems over the network. Clients such as [[Ubuntu:Precise#Filezilla|Filezilla]] can be used to interact with an FTP server. Also see these [[FTP_tips|FTP tips]].&lt;br /&gt;
==== vsftpd ==== &lt;br /&gt;
[http://vsftpd.beasts.org/ vsftpd] is an FTP server available in (K)Ubuntu. For configuration information, see the [https://help.ubuntu.com/11.10/serverguide/C/ftp-server.html official Ubuntu documentation]. Install:&lt;br /&gt;
 sudo apt-get install vsftpd&lt;br /&gt;
&lt;br /&gt;
==== proftpd ====&lt;br /&gt;
[http://www.proftpd.org/ Proftpd] is an FTP server available in (K)Ubuntu that can be used with either the MySQL or PostgreSQL database. Also see the [https://help.ubuntu.com/community/ProFTPD Ubuntu Community documentation]. Install:&lt;br /&gt;
 sudo apt-get install proftpd-basic&lt;br /&gt;
&lt;br /&gt;
=== WebDAV ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://en.wikipedia.org/wiki/WebDAV WebDAV] is a method for allowing remote access to local folders via an HTTP-based web browser or file manager. This can be combined with user authentication (using LDAP or other password mechanism).&lt;br /&gt;
&lt;br /&gt;
* See [[WebDAV|this page]] for instructions.&lt;br /&gt;
&lt;br /&gt;
== Local Area Network ==&lt;br /&gt;
== Modems / Dial-up ==&lt;br /&gt;
Network Manager does not accept modem connections. See [https://help.ubuntu.com/10.10/internet/C/modem.html Ubuntu help] for information on identifying and connecting with a modem. These instructions require gnome-network-admin (install while connected to a wired ethernet connection):&lt;br /&gt;
 sudo apt-get install gnome-network-admin&lt;br /&gt;
&lt;br /&gt;
=== Gnome PPP and wvdial ===&lt;br /&gt;
[http://en.wikipedia.org/wiki/Gnome-ppp Gnome PPP] is a discontinued GUI frontend for the [http://alumnit.ca/wiki/index.php?page=WvDial wvdial] PPP modem dialer. It is still available as a package. Install:&lt;br /&gt;
 sudo apt-get install gnome-ppp wvdial&lt;br /&gt;
&lt;br /&gt;
See [http://ubuntuforums.org/showthread.php?t=931872 this forum thread] for tweaks required to make Gnome PPP and wvdial operational in Lucid.&lt;br /&gt;
&lt;br /&gt;
=== GPPP ===&lt;br /&gt;
GPPP was the default modem dialing application in previous versions of Ubuntu.&lt;br /&gt;
&lt;br /&gt;
:Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; GPPP Internet Dial-up&lt;br /&gt;
&lt;br /&gt;
= Remote Access =&lt;br /&gt;
There are several methods of remote access. VNC sharing allows you to view and control a remote computer's desktop. (Windows users use a similar proprietary protocol called remote desktop protocol (RDP)). XDMCP allows a complete remote X-windows based login. Remote connections are hazardous unless proper security precautions are taken to prevent unauthorized logins and to ensure encryption of transmitted data.&lt;br /&gt;
&lt;br /&gt;
== SSH ==&lt;br /&gt;
Secure Shell or SSH is a network protocol that allows data to be exchanged over a secure channel (or &amp;quot;tunnel&amp;quot;)  between two computers. Encryption provides confidentiality and integrity of data. The OpenSSH client is installed by default in Ubuntu so you can connect to another computer that is running an SSH server.&lt;br /&gt;
&lt;br /&gt;
=== Connect to a remote SSH server ===&lt;br /&gt;
==== From the command-line terminal ====&lt;br /&gt;
Install the [http://www.openbsd.org/cgi-bin/man.cgi?query=ssh&amp;amp;sektion=1 OpenSSH] client (if not already installed):&lt;br /&gt;
 sudo apt-get install openssh-client&lt;br /&gt;
&lt;br /&gt;
From the command-line Terminal type:&lt;br /&gt;
&lt;br /&gt;
 ssh -C &amp;lt;username&amp;gt;@&amp;lt;computer name or IP address&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Note: The -C option indicates compression, which speeds up transmission through the tunnel.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
 ssh -C joe@remote.computer.xyz&lt;br /&gt;
&lt;br /&gt;
:or:&lt;br /&gt;
&lt;br /&gt;
 ssh -C mike@192.168.1.1&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
 ssh -C 192.168.1.1 -l mike&lt;br /&gt;
&lt;br /&gt;
:Note: -l specifies the login id.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the SSH server is listening on a port other than port 22 (the default), you can specify that in your connection (with the -p option). For example, if the SSH server is listening on port 11022, connect:&lt;br /&gt;
&lt;br /&gt;
 ssh -C joe.friday@remote.computer.xyz:11022&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
&lt;br /&gt;
 ssh -C remote.computer.xyz -p 11022 -l joe.friday&lt;br /&gt;
&lt;br /&gt;
If you have made a public/private key using ssh-keygen, the private key must be stored in /home/''user''/.ssh. The key should be accessible only to ''user''&lt;br /&gt;
 sudo chmod 600 /home/''user''/.ssh/identity&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
&lt;br /&gt;
 sudo chmod 600 /home/''user''/.ssh/id_rsa &lt;br /&gt;
&lt;br /&gt;
To login with the key:&lt;br /&gt;
&lt;br /&gt;
 ssh -C remote.computer.xyz -p 11022 -l joe.friday&lt;br /&gt;
&lt;br /&gt;
Note: You can run the command as a menu item, but the command must be &amp;quot;run in terminal.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Port forwarding through SSH ====&lt;br /&gt;
* See [[Using_SSH_to_Port_Forward|Using SSH to Port Forward]] for full details. &lt;br /&gt;
&lt;br /&gt;
* In brief, use &lt;br /&gt;
 ssh -C &amp;lt;remote ip&amp;gt; -p &amp;lt;SSH tunnel port&amp;gt; -L &amp;lt;local port&amp;gt;:&amp;lt;remote computer&amp;gt;:&amp;lt;remote port&amp;gt; -l &amp;lt;user&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This specifies that any communications from your computer (localhost) going out through &amp;lt;local port&amp;gt; will be transmitted securely through the the SSH tunnel port.&lt;br /&gt;
To use VNC through the tunnel, you would use an application like Krdc or Vinagre:&lt;br /&gt;
 krdc vnc://localhost:&amp;lt;local port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: ''localhost'' is equivalent to (and interchangeable with) ''127.0.0.1''. Either can be used.&lt;br /&gt;
&lt;br /&gt;
Note that for VNC, the default &amp;lt;local port&amp;gt; is 5900. In general, a remote VNC server (such as [[#X11VNC_Server|X11VNC]]) is also listening on the default &amp;lt;remote port&amp;gt; 5900 as well. The default &amp;lt;SSH tunnel port&amp;gt; is 22, as discussed above. All these can be changed, however, if you desire greater security. &lt;br /&gt;
&lt;br /&gt;
For me, I noticed that I had to set &amp;lt;remote computer&amp;gt; to be the internal LAN IP address of the remote '''computer''' (such as 192.168.1.155) instead of the remote '''router''''s IP address, which is specified in &amp;lt;remote IP&amp;gt;. (If the remote computer has a static IP address (i.e. is directly connected to the Internet without an intervening router), then &amp;lt;remote computer&amp;gt; and &amp;lt;remote ip&amp;gt; would be the same.)&lt;br /&gt;
&lt;br /&gt;
''Example'':&lt;br /&gt;
For extra security, my SSH Server uses &amp;lt;SSH tunnel port&amp;gt;=11022. I want to VNC to a remote computer on a remote LAN with a router whose IP address is &amp;lt;remote ip&amp;gt; = 244.205.123.123. The remote computer to which I want to connect has a static IP address within the remote LAN of &amp;lt;remote computer&amp;gt; = 192.168.1.155.  I have set up an [[#X11VNC_Server|X11VNC server]] on this computer that is listening on &amp;lt;remote port&amp;gt; = 6912 (instead of the default 5900). I setup port forwarding on the router of this remote LAN to forward port 6912 to this server computer. I want to VNC to this remote computer from my laptop, through the Internet. My laptop VNC client (Krdc) will use the default &amp;lt;local port&amp;gt; = 5900. My name is &amp;lt;user&amp;gt; = joe.friday. This is my story. &lt;br /&gt;
&lt;br /&gt;
 ssh -C 244.205.123.123 -p 11022 -L 5900:192.168.1.155:6912 -l joe.friday&lt;br /&gt;
 krdc vnc://localhost:5900&lt;br /&gt;
&lt;br /&gt;
If you have set up a private/ public key pair with a passphrase, or if your SSH server requires a passphrase, of course, you will be prompted for the passphrase after issuing the SSH command.&lt;br /&gt;
&lt;br /&gt;
Note: Port forwarding assumes that the ports are also forwarded through the router(s) and through any firewalls. See the documentation for your router(s) and firewall to learn how to do this. The advantage of SSH tunneling is that only the &amp;lt;SSH tunnel port&amp;gt; needs to be open and forwarded by a router. All encrypted communications will go through your router using this single port. This is what makes the communications secure.&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
[http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY] is a GTK-based GUI client-interface for SSH connections and eases the setup for port forwarding, SSH public key authentication, and automated login. A user would run Putty to create the SSH tunnel (instead of the ssh command) and then run a program such as Krdc or Vinagre. PuTTY is available for both Linux and Windows (but for routine Linux usage [[#OpenSSH Public Key Authentication|OpenSSH]] is generally recommended instead).&lt;br /&gt;
 sudo apt-get install putty putty-tools&lt;br /&gt;
&lt;br /&gt;
*To create a 2048-bit RSA key pair compatible with OpenSSH, it is possible to use [http://linux.die.net/man/1/puttygen Puttygen] (part of Putty-tools). (For me the Linux version of Puttygen is occasionally buggy, however, so I recommend [[#OpenSSH Public Key Authentication|OpenSSH keygen]] for routine usage instead):&lt;br /&gt;
 puttygen -t rsa -b 2048 -O private -o putty_rsa.ppk&lt;br /&gt;
 puttygen putty_rsa.ppk -O public-openssh -o id_rsa.pub&lt;br /&gt;
 puttygen putty_rsa.ppk -O private-openssh -o id_rsa&lt;br /&gt;
&lt;br /&gt;
*Move the OpenSSH-compatible keys to the ~/.ssh (i.e. the /home/''user''/.ssh) folder&lt;br /&gt;
 mv id_rsa* ~/.ssh&lt;br /&gt;
&lt;br /&gt;
*[[#OpenSSH Public Key Authentication|Copy the public key]] ( /home/''user''/.ssh/id_rsa.pub ) to the server that is hosting the OpenSSH server, into the /home/''serveruser''/.ssh (for whichever user is the administrative user for the server -- generally the user that installed the server initially). If the SSH tunnel is (still) set at default port 22, you can copy the key using the utility: &lt;br /&gt;
&lt;br /&gt;
 ssh-copy-id ''serveruser''@''remoteserver.computer.xyz''&lt;br /&gt;
&lt;br /&gt;
*Connect a VNC client (such as Krdc) through SSH using the command-line:&lt;br /&gt;
 putty -ssh -i ~/.ssh/id_rsa -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -P ''22''&lt;br /&gt;
 krdc vnc://127.0.0.1:5900&lt;br /&gt;
&lt;br /&gt;
:or as a single command:&lt;br /&gt;
 putty -ssh -i ~/.ssh/id_rsa -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -P ''22'' sleep 5; krdc vnc://127.0.0.1::5900&lt;br /&gt;
&lt;br /&gt;
*Alternatively, the PuTTY SSH Client GUI can be run (from Menu -&amp;gt; Internet -&amp;gt; PuTTY SSH Client) and options configured from there.&lt;br /&gt;
&lt;br /&gt;
==== Using keys created by Puttygen in OpenSSH ====&lt;br /&gt;
The public security key generated by Puttygen in Windows is generally not compatible with OpenSSH security keys unless it is edited. For example, the default OpenSSH key is 2048-bit RSA (SSH-2). When a 2048-bit RSA (SSH-2) PuTTY public/private key pair is generated (by Puttygen) in Windows (see [http://unixwiz.net/techtips/putty-openssh.html this tutorial]), the public key looks like:&lt;br /&gt;
 ---- BEGIN SSH2 PUBLIC KEY ----&lt;br /&gt;
 Comment: &amp;quot;rsa-key-20100302&amp;quot;&lt;br /&gt;
 AAAAB3NzaC1yc2EAAAABJQAAAQEAjdp567qxsGkhELlMQup2mXHdsveCWq/maU6k&lt;br /&gt;
 unPpbkwEuhkasuOrhkAWgv5v3d8S857zdHcfnXWi2FkEaJuFxqpJ2IkFuvqRdqYD&lt;br /&gt;
 ZCcASj2S0LoXdWpC4uon6VH8oBT31r+wkDfmI2a+K74jgXjtm1BWWxwOpKaWQHi9&lt;br /&gt;
 YItbY/06renRex34n3ejO20JRqD/BxnFU7ND41Szo3ZMKoa0yzhevU2ntt74BCvC&lt;br /&gt;
 bYFHdSoRbi3AH8qGInzFfhXPdrG8qA382ZKEh5Bmy8Qxb9Uen/+jjP51YxN/ykee&lt;br /&gt;
 RwSrdSCZekB6jN6uuTLNDEXJSJizqlPU8tROqf3pYv1kxzD9bw==&lt;br /&gt;
 ---- END SSH2 PUBLIC KEY ----&lt;br /&gt;
&lt;br /&gt;
* To be used by OpenSSH, the saved public key must be edited. &lt;br /&gt;
:* Delete the first two lines (with the BEGIN and Comment: in them) and the last line.&lt;br /&gt;
:* Join the remaining lines into a single line.&lt;br /&gt;
:* Place ssh-rsa at the beginning.&lt;br /&gt;
:* It should end up looking like:&lt;br /&gt;
 ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAjdp567qxsGkhELlMQup2mXHdsveCWq/maU6kunPpbkwEuhkasuOrhkAWgv5v3d8S857zdHcfnXWi2FkEaJuFxqpJ2IkFuvqRdqYDZCcASj2S0LoXdWpC4uon6VH8oBT31r+wkDfmI2a+K74jgXjtm1BWWxwOpKaWQHi9YItbY/06renRex34n3ejO20JRqD/BxnFU7ND41Szo3ZMKoa0yzhevU2ntt74BCvCbYFHdSoRbi3AH8qGInzFfhXPdrG8qA382ZKEh5Bmy8Qxb9Uen/+jjP51YxN/ykeeRwSrdSCZekB6jN6uuTLNDEXJSJizqlPU8tROqf3pYv1kxzD9bw==&lt;br /&gt;
&lt;br /&gt;
*Once the PuTTY public key is in this format, it can be appended to the ~/.ssh/authorized_keys file on the OpenSSH server. (The private key stays on the client computer, of course). PuTTY can then connect (from Windows or Linux) to an OpenSSH server using the public/private key method.&lt;br /&gt;
&lt;br /&gt;
=== Connect using SSH Agent ===&lt;br /&gt;
With SSH Agent you can automate the use of public key authentication and open an XDM or VNC session using a script. See [http://kimmo.suominen.com/docs/ssh/#ssh-agent this tutorial].&lt;br /&gt;
&lt;br /&gt;
Also see this alternative simple approach: [[#Connect with SSH and start an application with a single command|Connect with SSH and start an application with a single command]].&lt;br /&gt;
&lt;br /&gt;
=== Setup an SSH server ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Install the [https://help.ubuntu.com/10.10/serverguide/C/openssh-server.html OpenSSH] server:&lt;br /&gt;
 sudo apt-get install openssh-server&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
 sudo apt-get install tasksel&lt;br /&gt;
 sudo tasksel install openssh-server&lt;br /&gt;
&lt;br /&gt;
Note: The OpenSSH server can also be installed when doing a [[Ubuntu:Precise#Servers|server]] installation as an option from the LiveCD.&lt;br /&gt;
&lt;br /&gt;
Note: An OpenSSH server can also be set up on a Windows server using Cygwin. See [http://pigtail.net/LRP/printsrv/cygwin-sshd.html these instructions].&lt;br /&gt;
&lt;br /&gt;
* Don't forget to forward the port on which your OpenSSH server is listening. The default SSH port is 22; if the default is used, the router should therefore forward port 22 to the computer on the LAN that is hosting the OpenSSH server. The OpenSSH listening port can be changed; in fact, each computer on the LAN can listen on its own unique SSH port, if desired. The router must forward each specified listening port to the correct computer. Therefore, if computer 1 has its OpenSSH server set to listen on port 22221, then the router should forward port 22221 to computer 1's LAN IP address. If computer 2 has its OpenSSH listening port set to 22222, then obviously the router must forward port 22222 to computer 2's LAN IP address. To change the listening port of the OpenSSH server, edit the /etc/ssh/sshd_config file (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo kate /etc/ssh/sshd_config&lt;br /&gt;
&lt;br /&gt;
and change the listening port from 22 to your desired listening port:&lt;br /&gt;
 Port ''22221''&lt;br /&gt;
&lt;br /&gt;
then restart the OpenSSH server:&lt;br /&gt;
 sudo /etc/init.d/ssh restart&lt;br /&gt;
&lt;br /&gt;
:* For greater port security (and to minimize [http://en.wikipedia.org/wiki/Brute-force_attack brute-force attacks]), consider using [[Ubuntu:Precise#Knockd_.28Port_security.29|Knockd]].&lt;br /&gt;
&lt;br /&gt;
==== Limit authorized SSH users ====&lt;br /&gt;
* See [[Limit_the_user_accounts_that_can_connect_through_OpenSSH_remotely|Limit the user accounts that can connect through OpenSSH remotely]]&lt;br /&gt;
&lt;br /&gt;
==== OpenSSH Public Key Authentication ====&lt;br /&gt;
See this [http://sial.org/howto/openssh/publickey-auth/ OpenSSH Public Key Authentication Tutorial].&lt;br /&gt;
&lt;br /&gt;
In brief, it is necessary to generate a public / private key pair. On your client machine, generate the pair:&lt;br /&gt;
 ssh-keygen&lt;br /&gt;
&lt;br /&gt;
A prompt asks for a passphrase. If you wish to use OpenSSH without a password from a secure client (to which no one but you has access), leave the passphrase blank. If you enter a passphrase, you will be asked for this passphrase each time you use the SSH client.  By default, a 2048-bit RSA SSH-2 key pair is generated and stored in the /home/''user''/.ssh folder. The private key is named id_rsa and is meant to stay in that folder. (The public key is id_rsa.pub and is meant to be copied to the OpenSSH server.)&lt;br /&gt;
&lt;br /&gt;
:*The private key must only be accessible (and should be read-only) to ''user'', the owner of the file:&lt;br /&gt;
 chmod 600 /home/''user''/.ssh/id_rsa&lt;br /&gt;
&lt;br /&gt;
::You could also make the entire .ssh folder accessible only to ''user'':&lt;br /&gt;
&lt;br /&gt;
 chmod 700 /home/''user''/.ssh&lt;br /&gt;
&lt;br /&gt;
*Copy the public key ( /home/''user''/.ssh/id_rsa.pub ) to the server that is hosting the OpenSSH server, into the /home/''serveruser''/.ssh (for whichever user is the administrative user for the server -- generally the user that installed the server initially). If the SSH tunnel is (still) set at default port 22, you can copy the key using the utility:&lt;br /&gt;
 ssh-copy-id ''serveruser''@''remoteserver.computer.xyz''&lt;br /&gt;
&lt;br /&gt;
:*The ssh-copy-id utility only works over port 22. An alternative if you have changed your SSH port is to copy the /home/''user''/.ssh/id_rsa.pub key to the server manually. On the server make sure the directory /home/''serveruser''/.ssh exists and that there is a file authorized_keys (with write privileges) in that folder. If not, create such a file while logged into the server as ''serveruser'' (the touch command creates an empty file):&lt;br /&gt;
 mkdir ~/.ssh&lt;br /&gt;
 cd ~/.ssh&lt;br /&gt;
 touch authorized_keys&lt;br /&gt;
Then concatenate the id_rsa.pub key you have copied to the ~/.ssh folder. (Make sure the owner of id_rsa.pub, after copying, is ''serveruser''.):&lt;br /&gt;
 cd ~/.ssh&lt;br /&gt;
 chown ''serveruser'' id_rsa.pub&lt;br /&gt;
 cat authorized_keys id_rsa.pub &amp;gt;&amp;gt; authorized_keys&lt;br /&gt;
&lt;br /&gt;
*Make sure the OpenSSH server knows to look for the key file. On the remote server, edit the OpenSSH configuration file:&lt;br /&gt;
 sudo nano /etc/ssh/sshd_config&lt;br /&gt;
&lt;br /&gt;
:*Uncomment the line (i.e. remove the # at the beginning of the line):&lt;br /&gt;
 #AuthorizedKeysFile %h/.ssh/authorized_keys&lt;br /&gt;
&lt;br /&gt;
*Remove the ability to login to the OpenSSH server using password authentication:&lt;br /&gt;
  sudo nano /etc/ssh/sshd_config&lt;br /&gt;
&lt;br /&gt;
:*Change the line&lt;br /&gt;
 #PasswordAuthentication yes&lt;br /&gt;
:to&lt;br /&gt;
 PasswordAuthentication no&lt;br /&gt;
&lt;br /&gt;
*Restart the OpenSSH server:&lt;br /&gt;
 sudo /etc/init.d/ssh restart&lt;br /&gt;
&lt;br /&gt;
*Now you can connect securely with an SSH tunnel without requiring a password, logging in as ''serveruser''.&lt;br /&gt;
&lt;br /&gt;
 ssh -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -p ''22''&lt;br /&gt;
&lt;br /&gt;
==== Connect with SSH and start an application with a single command ====&lt;br /&gt;
* If you have created an [[#OpenSSH Public Key Authentication|OpenSSH key pair]] (without a password), you can start both the SSH tunnel and a VNC program (such as Krdc or Vinagre) to run through the SSH tunnel with a single command:&lt;br /&gt;
 ssh -f -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -p 22 sleep 5; krdc vnc://127.0.0.1::5900&lt;br /&gt;
:*Alternatively (and probably preferably) you can create a Menu Item / Shortcut with the above command.&lt;br /&gt;
&lt;br /&gt;
Note: This command is a command-line mini-script. The SSH option -f option tells the SSH client to fork into the background after starting. (This option is not available in the PuTTY client.) This allows the command line to continue to proceed to the next command(s) listed on the command line mini-script. The 5 second wait (&amp;quot;sleep&amp;quot;) timeout allows time for the SSH tunnel to be created before proceeding to the next command. (This can be lengthened if necessary.) After the wait period, the program (Krdc VNC in this example) is started.&lt;br /&gt;
&lt;br /&gt;
* Of course, any program could be started (to be run through the SSH tunnel) in this fashion, not just a VNC program.&lt;br /&gt;
&lt;br /&gt;
==== Automate SSH connections that require a password ====&lt;br /&gt;
This method is strongly advised against. Transmitting an unencrypted password through the Internet (in order to establish an SSH connection) invites password sniffing. Use the [[#OpenSSH Public Key Authentication|OpenSSH key pair]] methods described above, instead. This method is listed here for reference.&lt;br /&gt;
&lt;br /&gt;
*Terminal interactions (such as the SSH password challenge) can be automated using the [http://linux.die.net/man/1/expect expect] utility. Install:&lt;br /&gt;
 sudo apt-get install expect&lt;br /&gt;
&lt;br /&gt;
* If, for example, your SSH client ID is ''clientuserID'', yourpassword is ''not#1sostrong'', and the remote SSH server is ''remoteserver.computer.xyz'' (using the default SSH port of ''22''), then use this command to start the SSH tunnel:&lt;br /&gt;
&lt;br /&gt;
 expect -c 'spawn ssh -l clientuserID -L 5900:127.0.0.1:5901 remoteserver.computer.xyz -p 22; expect assword ; send &amp;quot;not#1sostrong\n&amp;quot; ; interact'&lt;br /&gt;
&lt;br /&gt;
There are other parameters in this example. ''5900'' and ''5901'' are the ports to be used on either side of the tunnel (port ''5900'' is used for VNC, for example). See [[#Port_forwarding_through_SSH|Port forwarding through SSH]] for more details. &lt;br /&gt;
&lt;br /&gt;
You can use the entire command as a menu item (must be &amp;quot;Run in terminal&amp;quot; in the Advanced menu options).&lt;br /&gt;
&lt;br /&gt;
== VNC ==&lt;br /&gt;
Virtual Network Computing (VNC) mirrors the desktop of a remote (&amp;quot;server&amp;quot;) computer on your local (&amp;quot;client&amp;quot;) computer (it is not a separate remote login, as is XDMCP). A user on the remote desktop must be logged in and running a VNC server (such as [[#X11VNC_Server|X11VNC]], [[#Vino Remote Desktop VNC server|Vino]], or Krfb). Keyboard and mouse events are transmitted between the two computers. VNC is platform-independent —- a VNC viewer on one operating system can usually connect to a VNC server on any other operating system. (Windows users can use one of several clients such as [http://www.uvnc.com/docs/uvnc-viewer.html UltraVNC Viewer].)&lt;br /&gt;
&lt;br /&gt;
=== Vino Remote Desktop VNC server ===&lt;br /&gt;
Vino-server (the Gnome VNC server) is included by default in Ubuntu. Start:&lt;br /&gt;
&lt;br /&gt;
:Menu -&amp;gt; System -&amp;gt; Preferences -&amp;gt; Remote Desktop&lt;br /&gt;
&lt;br /&gt;
*You can accept uninvited connections in the Security section. You can require a password for these connections.&lt;br /&gt;
*This implementation of Vino does not allow changing the default listening ports (which start at 5900). If you wish to customize your VNC connection, use [[#X11VNC_Server|X11VNC]] instead.&lt;br /&gt;
&lt;br /&gt;
*A user can connect using [[#Vinagre VNC client|Vinagre]], the [[#Terminal Server Client|Terminal Server Client]], or any other VNC client.&lt;br /&gt;
&lt;br /&gt;
==== How to securely use VNC with SSH tunneling ====&lt;br /&gt;
It is less secure to leave the VNC listening port open to the Internet, even with a password. (This can expose you to password cracking attempts.)&lt;br /&gt;
&lt;br /&gt;
It is more secure to use SSH to tunnel your VNC connection. Under [[#Port forwarding through SSH|SSH port forwarding]], the VNC listening port is the &amp;lt;remote port&amp;gt;. To increase security, this listening port can be changed from the default 5900. Only the VNC server and the SSH client need to specify the &amp;lt;remote port&amp;gt; in a secure connection.&lt;br /&gt;
&lt;br /&gt;
=== X11VNC Server ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] While Vino is easy to use, X11VNC allows far more customization and therefore can be used more in situations where greater security is needed.&lt;br /&gt;
*Install an X11VNC server to share your desktop with other computer:&lt;br /&gt;
    sudo apt-get install x11vnc&lt;br /&gt;
&lt;br /&gt;
*Run X11VNC without a password:&lt;br /&gt;
 x11vnc -forever -rfbport 5900&lt;br /&gt;
&lt;br /&gt;
:Note: -rfbport 5900 specifies the port to listen on. The port number can be changed. This option is not required if the default port 5900 will be used. Don't forget to open/forward this port in your firewall/router. By default X11VNC server exits after the first client disconnects. To keep it running (and allow future connections), use the -forever option. See [http://www.karlrunge.com/x11vnc/x11vnc_opts.html here] for more command line options.&lt;br /&gt;
&lt;br /&gt;
*Create a password to use with X11VNC:&lt;br /&gt;
 mkdir ~/.vnc&lt;br /&gt;
 x11vnc -storepasswd YOUR_PASSWORD ~/.vnc/x11vnc.pass&lt;br /&gt;
&lt;br /&gt;
*X11VNC can then be started with a password:&lt;br /&gt;
 x11vnc -forever -rfbport 5900 -rfbauth ~/.vnc/x11vnc.pass -o ~/.vnc/x11vnc.log -loopbg -display :0&lt;br /&gt;
&lt;br /&gt;
*You can create a startup script so that X11VNC is automatically loaded at startup (with password settings):&lt;br /&gt;
 echo &amp;quot;/usr/bin/x11vnc -forever -rfbport 5900 -rfbauth ~/.vnc/x11vnc.pass -o ~/.vnc/x11vnc.log -loopbg -display :0&amp;quot; &amp;gt; ~/.config/autostart/x11vnc.sh&lt;br /&gt;
 chmod +x ~/.config/autostart/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
:*You can test the startup script:&lt;br /&gt;
 ~/.config/autostart/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
==== Using VNC with SSH ====&lt;br /&gt;
See [[#Port forwarding through SSH|Port forwarding through SSH]] for additional information.&lt;br /&gt;
&lt;br /&gt;
=== Vinagre VNC client ===&lt;br /&gt;
[http://library.gnome.org/users/vinagre/stable/index.html.en Vinagre] is the default Gnome-based VNC client used in Ubuntu.&lt;br /&gt;
*Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; Remote Desktop Viewer&lt;br /&gt;
&lt;br /&gt;
=== Terminal Server Client ===&lt;br /&gt;
The Terminal Server Client is an Ubuntu/Gnome frontend for [http://www.rdesktop.org/ rdesktop] (for RDP connections to Windows computers) and one of several vncviewer clients (for VNC connections). In can be used instead of Vinagre.&lt;br /&gt;
*Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; Terminal Server Client&lt;br /&gt;
&lt;br /&gt;
*To use it with VNC, one of the VNC clients must be installed first. For example, install the [http://www.tightvnc.com/ TightVNC] client:&lt;br /&gt;
 sudo apt-get install xtightvncviewer&lt;br /&gt;
&lt;br /&gt;
:*Note that the TightVNC client can be used from the command line (or as a menu item) directly:&lt;br /&gt;
 vncviewer ''192.168.0.12''::''5900''&lt;br /&gt;
&lt;br /&gt;
:where ''192.168.0.12'' is an example ''host'' location that is running a VNC server on port 5900. For more command-line options, use&lt;br /&gt;
 man vncviewer&lt;br /&gt;
&lt;br /&gt;
=== Krdc VNC client ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Krdc is the default VNC client in Kubuntu/KDE but can be used in GNOME. It can be used for both VNC and RDP connections. Installing it will also install the Qt platform and many KDE utilities (a large download).&lt;br /&gt;
 sudo apt-get install krdc&lt;br /&gt;
&lt;br /&gt;
*Run:&lt;br /&gt;
:Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; Krdc&lt;br /&gt;
&lt;br /&gt;
*The command-line connection (for use as a menu-item, for example) is:&lt;br /&gt;
 krdc vnc://&amp;lt;remote IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If the remote (Krfp) VNC server is using a &amp;lt;remote port&amp;gt; other than the default 5900 port, use&lt;br /&gt;
 krdc vnc://&amp;lt;remote IP&amp;gt;:&amp;lt;remote port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Krdc can also connect to a Windows server using RDP (Remote Desktop Protocol). &lt;br /&gt;
 krdc rdp://&amp;lt;remote IP&amp;gt;:&amp;lt;remote port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using a VNC client with SSH ====&lt;br /&gt;
See [http://jeltsch.org/node/209 this howto] for an automated setup using a script (it did not work for me, but it might for you).&lt;br /&gt;
&lt;br /&gt;
In brief, you would initiate an [[#Port forwarding through SSH|SSH tunnel with port forwarding]] using Putty or the command line:&lt;br /&gt;
 ssh -C &amp;lt;remote ip&amp;gt; -p &amp;lt;SSH tunnel port&amp;gt; -L &amp;lt;local port&amp;gt;:&amp;lt;remote computer&amp;gt;:&amp;lt;remote port&amp;gt; -l &amp;lt;user&amp;gt;&lt;br /&gt;
::then you would start a VNC client such as Krdc:&lt;br /&gt;
 krdc vnc://localhost:&amp;lt;local port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;local port&amp;gt; will usually be the default 5900, in which case you could simply use&lt;br /&gt;
 krdc vnc://localhost&lt;br /&gt;
&lt;br /&gt;
=== XVNC4Viewer VNC Client ===&lt;br /&gt;
XVNC4Viewer is an alternative to Vinagre or the Terminal Server Client (vncviewer). Install:&lt;br /&gt;
 sudo apt-get install xvnc4viewer&lt;br /&gt;
&lt;br /&gt;
=== Automatic user login (for use with VNC) ===&lt;br /&gt;
VNC only works if a user is logged in. When a computer (hosting one or more servers) is intended to start up unattended and VNC (with or without SSH tunneling) is to be used, the computer ought to start with the primary user logged in. To accomplish this:&lt;br /&gt;
:Menu -&amp;gt; System -&amp;gt; System Settings -&amp;gt; Login Manager -&amp;gt; Convenience -&amp;gt; Enable Auto-Login (''ticked'') -&amp;gt; Lock session (''ticked'')&lt;br /&gt;
::-&amp;gt; Pre-select user: Specified: ''Choose primary user'' (i.e. the user hosting the SSH tunnel, if any, and the VNC server)&lt;br /&gt;
::-&amp;gt; Automatically log in again after X server crash (''ticked'')&lt;br /&gt;
&lt;br /&gt;
*Also make sure the VNC server is set to Autostart at bootup.&lt;br /&gt;
&lt;br /&gt;
== FreeNX ==&lt;br /&gt;
[https://help.ubuntu.com/community/FreeNX FreeNX] is a remote desktop display server/client solution that natively incorporates SSH tunneling (unlike VNC). It is therefore more secure than VNC (unless VNC is coupled with SSH tunneling).&lt;br /&gt;
&lt;br /&gt;
=== FreeNX Server ===&lt;br /&gt;
The Free server .deb package can be downloaded from [http://www.nomachine.com/select-package.php?os=linux&amp;amp;id=1 No Machine free server downloads].&lt;br /&gt;
&lt;br /&gt;
*Alternatively, [[Ubuntu:Precise#Add Extra (K)Ubuntu Repositories|add the following repositories]]:&lt;br /&gt;
 sudo add-apt-repository ppa:freenx-team&lt;br /&gt;
&lt;br /&gt;
*Install the package:&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install freenx&lt;br /&gt;
&lt;br /&gt;
=== FreeNX Client ===&lt;br /&gt;
Download the self-installing .deb file from [http://www.nomachine.com/select-package-client.php No Machine Client downloads].&lt;br /&gt;
&lt;br /&gt;
== XDMCP ==&lt;br /&gt;
[http://www.tldp.org/HOWTO/XDMCP-HOWTO/index.html XDMCP] allows a separate remote login by an authorized user. This login is separate from the local user.&lt;br /&gt;
*XDMCP is not secure over the Internet and should only be used within a LAN. It cannot be tunnelled through SSH. It is turned off by default in Ubuntu. To enable it, edit the configuration file:&lt;br /&gt;
&lt;br /&gt;
 gedit /etc/gdm/custom.conf&lt;br /&gt;
&lt;br /&gt;
*Find and change (or add) the line from false to true so that it reads:&lt;br /&gt;
&lt;br /&gt;
 [Xdmcp]&lt;br /&gt;
 Enable=true&lt;br /&gt;
&lt;br /&gt;
=== Telnet ===&lt;br /&gt;
SSH is, basically, secure Telnet.&lt;br /&gt;
&lt;br /&gt;
== VPN clients ==&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Virtual_private_network VPN] (Virtual Private Network) allows a secure encrypted  connection (&amp;quot;tunnelling&amp;quot;) over the Internet between a client (either standalone or on a separate LAN) and a home or corporate LAN server.&lt;br /&gt;
=== VPN through Network Manager ===&lt;br /&gt;
*The default Network Manager in Ubuntu/Kubuntu has a VPN client available. This includes support for IPSec and Cisco-compliant VPN connections. Install:&lt;br /&gt;
 sudo apt-get install network-manager-vpnc&lt;br /&gt;
&lt;br /&gt;
*To connect to a VPN network using OpenVPN (SSL), install the plugin:&lt;br /&gt;
  sudo apt-get install network-manager-openvpn&lt;br /&gt;
&lt;br /&gt;
*To connect to a VPN network using PPTP (MS Windows servers), install the plugin:&lt;br /&gt;
 sudo apt-get install network-manager-pptp&lt;br /&gt;
&lt;br /&gt;
*Configure:&lt;br /&gt;
::Network Manager icon (in system tray) -&amp;gt; VPN Connections -&amp;gt; Configure VPN&lt;br /&gt;
&lt;br /&gt;
=== vpnautoconnect (vpn daemon) ===&lt;br /&gt;
[http://sourceforge.net/projects/vpnautoconnect/ vpnautoconnect] is a daemon to allow automatic vpn connections through Network Manager. [http://sourceforge.net/projects/vpnautoconnect/files/ Download] and install the .deb package for your OS version.&lt;br /&gt;
&lt;br /&gt;
=== Other VPN clients ===&lt;br /&gt;
Standalone VPN clients based on protocol are available (but not necessary if using Network Manager):&lt;br /&gt;
:*[http://www.debuntu.org/how-to-connect-to-a-cisco-vpn-using-vpnc vpnc], [http://grml.org/online-docs/grml-vpn.8.html grml-vpn] -- for Cisco-compliant (IPSec) VPN networks&lt;br /&gt;
:*[http://www.openswan.org/ openswan] -- for IPSec (OpenSwan) VPN networks&lt;br /&gt;
:*[http://pptpclient.sourceforge.net/ pptp-linux] -- for PPTP (MS Windows-compliant) VPN networks&lt;br /&gt;
:*[http://openvpn.net/ openvpn], gadmin-openvpn-client -- for OpenSSL (OpenVPN) VPN networks&lt;br /&gt;
&lt;br /&gt;
== VPN servers ==&lt;br /&gt;
=== OpenVPN ===&lt;br /&gt;
[http://openvpn.net/ OpenVPN] is a free, GPL-licensed open-source cross-platform VPN solution based on OpenSSL (not IPSec). Install the server (then see the website for further installation instructions):&lt;br /&gt;
 sudo apt-get install openvpn bridge-utils&lt;br /&gt;
&lt;br /&gt;
A GUI configuration utility (GTK-based) is available:&lt;br /&gt;
 sudo apt-get install gadmin-openvpn-server&lt;br /&gt;
&lt;br /&gt;
Also see [[OpenVPN_server|these installation tips]].&lt;br /&gt;
&lt;br /&gt;
=== Poptop (PPTP Server) ===&lt;br /&gt;
[http://poptop.sourceforge.net/ Poptop] is a free open-source PPTP-based VPN server compatible with MS-windows PPTP clients. Install:&lt;br /&gt;
 sudo apt-get install pptpd&lt;br /&gt;
&lt;br /&gt;
=== OpenSwan ===&lt;br /&gt;
[http://www.openswan.org/ OpenSwan] is the open source implementation of IPSec-based VPN connections for Linux (and is a successor to FreeSwan). Install:&lt;br /&gt;
 sudo apt-get install openswan linux-patch-openswan&lt;br /&gt;
&lt;br /&gt;
= Security =&lt;br /&gt;
Ubuntu by default is a fairly safe system. However, if you intend to use Ubuntu as a server, or for critical applications in which loss of data (by accident or by malicious intrusion) would be disastrous, you should learn how to make Ubuntu more secure. A good introduction to [http://www.psychocats.net/ubuntu/security#bestpractices Ubuntu Security Best Practices] is available. Recommended reading includes the book ''[http://www.harpercollins.com/books/9780061962233/Cyber_War/index.aspx Cyber War]'' by [http://en.wikipedia.org/wiki/Richard_A._Clarke Richard Clark] and [http://news.cnet.com/8301-27080_3-20004505-245.html this interview] with Joe Weiss (IT advisor for the energy-sector smart grid). Also read [http://money.cnn.com/2013/04/08/technology/security/shodan/index.html?iid=HP_LN read this CNN Money article].&lt;br /&gt;
 &lt;br /&gt;
== Firewall ==&lt;br /&gt;
Network communications go through &amp;quot;channels&amp;quot; called ports. You can restrict which ports are available (&amp;quot;open&amp;quot;) for network communications, creating a barricade to unwanted network intrusion. Firewalls do this job for you. But I guarantee that if you install one before you know how to use it that one or more networking programs on your system will stop working. Read every bit of documentation about a firewall before installing it -- you won't regret the time invested. All of these packages modify [http://en.wikipedia.org/wiki/Iptables iptables], which is the set of rules that controls network access in and out of your computer. (You can modify iptables manually from the command line, as well, but if you are that much of an expert, you probably don't need this guide.) Also see the [https://help.ubuntu.com/12.04/serverguide/firewall.html official Ubuntu documentation].&lt;br /&gt;
&lt;br /&gt;
=== Firestarter ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://www.fs-security.com/ Firestarter] is an intuitive firewall manager used to set the iptables values which provide firewall capabilities in Linux (including Ubuntu). It has a very easy-to-use GUI. &lt;br /&gt;
 sudo apt-get install firestarter&lt;br /&gt;
&lt;br /&gt;
==== Firestarter fails to open system log ====&lt;br /&gt;
This is a problem in Precise. See the [[Syslogd_to_rsyslog|solution here]].&lt;br /&gt;
&lt;br /&gt;
=== Guarddog ===&lt;br /&gt;
[http://www.simonzone.com/software/guarddog/ Guarddog] is a GUI firewall configuration utility that has been used for KDE. It has a complex array of configuration, and is difficult to use for some beginners. &lt;br /&gt;
 sudo apt-get install guarddog&lt;br /&gt;
&lt;br /&gt;
=== Uncomplicated Firewall ===&lt;br /&gt;
[http://wiki.ubuntu.com/UncomplicatedFirewall Uncomplicated Firewall] is installed in (K)Ubuntu by default, but all ports are open initially. It is configurable through the [[Ubuntu_Precise_Introduction#General_Notes|command-line interface]]. See [http://ubuntuforums.org/showthread.php?t=823741 this forum thread], [http://www.ubuntu-unleashed.com/2008/05/howto-take-use-setup-and-advantage-of.html or this usage tutorial], or [https://help.ubuntu.com/community/UFW Ubuntu community help] for tips on how to set up and use it.&lt;br /&gt;
If not installed, it can be installed:&lt;br /&gt;
 apt-get install ufw&lt;br /&gt;
&lt;br /&gt;
==== Gufw ====&lt;br /&gt;
[http://gufw.tuxfamily.org/index.html Gufw] is a graphical user interface for Uncomplicated Firewall. Install:&lt;br /&gt;
 sudo apt-get install gufw&lt;br /&gt;
&lt;br /&gt;
== Anti-virus ==&lt;br /&gt;
* If you are running a file server, interface frequently with Windows drives or share files with Windows users, or use virtualization, you will want a virus checker for your Windows files.&lt;br /&gt;
&lt;br /&gt;
* Despite extensive minsinformation, Linux is not immune from malware (witness the explosion of malware being created for the Linux-based Google Android systems). The malware is not usually spread within the OS itself (as long as the OS is a well-respected distribution obtained through official channels), but in trojan programs downloaded and installed by users outside of the normal software distribution channels (i.e. repositories) of the OS. There is always a danger to using programs downloaded from the Internet from sources other than respected repositories -- it is the primary reason that Debian and (K)Ubuntu retain tight control over their software repositories. &lt;br /&gt;
&lt;br /&gt;
* Any file can have malware embedded in it (which is trivial to achieve by concatenation, for example: ''cat originalfile.avi malware.exe &amp;gt; originalfileplusmalware.avi''). The question is whether a user will try to open a file with a program (such as a media player) that has been compromised in a way that allows it to execute the code found in the infected media (e.g. .avi) file. This can occur not only for Windows users but for any OS (including Mac OSX and Linux) with a compromised program (e.g. media player). An example is the extensive problems the Mac OS community is currently having with the Flash player.&lt;br /&gt;
&lt;br /&gt;
* Routine scanning of any file downloaded from the Internet, any file imported from another user's computer (even a trusted source, since their attention to virus prevention may not be as compulsive as yours), or any attachment received in an email (even from a trusted sender) should be done with an anti-virus program.&lt;br /&gt;
&lt;br /&gt;
=== ClamAV ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://www.clamav.net/ ClamAV] is the open source virus tool for Linux. To install ClamAV:&lt;br /&gt;
 sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
* If an error is returned: &amp;quot;The database directory must be writable for UID 1000 or GID 1000&amp;quot; in order for the virus database to be updated, then change the ownership of the installation directory (/var/lib/clamav):&lt;br /&gt;
 sudo chown 1000 /var/lib/clamav&lt;br /&gt;
&lt;br /&gt;
==== ClamTk (ClamAV GUI) ====&lt;br /&gt;
[http://clamtk.sourceforge.net/ ClamTk] is a GTK-based GUI frontend for ClamAV. Install:&lt;br /&gt;
 sudo apt-get install clamtk&lt;br /&gt;
&lt;br /&gt;
=== AVG ===&lt;br /&gt;
[http://free.avg.com/us-en/download.prd-afl AVG] offers a free virus scanner for Linux in a .deb package. Download and install from the website.&lt;br /&gt;
=== Avast ===&lt;br /&gt;
[http://www.avast.com/linux-home-edition Avast] offers a Linux edition (for home users only) in a .deb package. Download and install from the website.&lt;br /&gt;
&lt;br /&gt;
== Anti-spam ==&lt;br /&gt;
=== Spam Assasin ===&lt;br /&gt;
[http://spamassassin.apache.org/ SpamAssasin] is written in perl, and is mostly for use with a server (such as a groupware server or Apache). Install:&lt;br /&gt;
 sudo apt-get spamassassin&lt;br /&gt;
&lt;br /&gt;
== Rootkit checkers ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/Rootkit Rootkits] are malicious [http://en.wikipedia.org/wiki/Trojan_horse_(computing) trojan]-like programs to allow an intruder to become a root user and therefore have complete administrative control over the system. There aren't many rootkits in the wild for Linux. Still, this is a growing security problem (especially in other operating systems) and it is a matter of time before more rootkits appear in Linux. Checking for rootkits isn't always successful from a system that is already infected. Your rootkit checker should therefore be run from another system, or a [[Ubuntu:Precise#Run (K)Ubuntu LiveCD from a USB pendrive|USB pendrive with an Ubuntu LiveCD installation]]. See the rootkit checker manuals for instructions how to do this. If you are infected with a rootkit, you must backup all your files and re-install your system. (Thank goodness this is easy with Ubuntu, unlike with other operating systems).&lt;br /&gt;
=== Chkrootkit ===&lt;br /&gt;
[http://www.chkrootkit.org/ Chkrootkit] checks locally for signs of a rootkit. See the [http://www.chkrootkit.org/README chkrootkit manual] for usage instructions.&lt;br /&gt;
:Install:&lt;br /&gt;
 sudo apt-get install chkrootkit&lt;br /&gt;
:Run:&lt;br /&gt;
 sudo chkrootkit&lt;br /&gt;
&lt;br /&gt;
=== Rootkit Hunter ===&lt;br /&gt;
[http://www.rootkit.nl/projects/rootkit_hunter.html Rootkit Hunter] is compatible with (K)Ubuntu systems. See the [http://sourceforge.net/docman/display_doc.php?docid=35179&amp;amp;group_id=155034 usage instructions].&lt;br /&gt;
:Install:&lt;br /&gt;
 sudo apt-get install rkhunter&lt;br /&gt;
:Run:&lt;br /&gt;
 sudo rkhunter&lt;br /&gt;
&lt;br /&gt;
=== Malicious commands to avoid ===&lt;br /&gt;
There are many [[Malicious_Linux_Commands|malicious commands]] to be avoided in Linux (as in all operating systems). It is worthwhile to be aware of these dangerous commands so that they are not executed by accident or by malicious advice.&lt;br /&gt;
&lt;br /&gt;
== USB drives ==&lt;br /&gt;
USB drives are a major source of security risk and means of data theft.&lt;br /&gt;
&lt;br /&gt;
* An administrator password should be set for the computer BIOS and booting from a USB drive or CD/DVD should be disabled. (Otherwise, any passerby can boot their own OS and then use it to steal data from the hard drive.)&lt;br /&gt;
&lt;br /&gt;
* See [http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/ this article] for methods of restricting USB usage to authorized users.&lt;br /&gt;
&lt;br /&gt;
== Prevent unauthorized boots and system access ==&lt;br /&gt;
Many computers are kept in places where casual passersby may have an opportunity to access the computer, unobserved for short periods. In addition to physical precautions to prevent or slow computer theft (such as locked cases, alarms, and security cables similar to those used to slow bicycle theft), [http://www.pcworld.com/article/114727/lock_down_your_pc.html precautions] should be taken to prevent an unauthorized operating system from being booted using an external device (such as USB drive). Once such as external OS is booted, it can be used to access most hard drive(s) on the computer and the contents copied to a second external device (to be examined or unencrypted later). This is a common means of data theft that is fast and easy to accomplish, and means to deter it should be taken on any public or semi-public computer.&lt;br /&gt;
&lt;br /&gt;
* Set BIOS to restrict bootup to the hard drive only.&lt;br /&gt;
:* Set a Supervisor/Administrator password for your computer's BIOS. (I recommend writing it down and taping it to the inside cover of the computer case prior to locking the computer case.) Disable booting from all devices except the hard drive. Setting the hard drive as the first priority boot device is not enough, as most current BIOS menus allow manual selection of any enabled boot devices. Only the hard drive should be left enabled.&lt;br /&gt;
&lt;br /&gt;
* Enable Hard Drive locking, if your computer's BIOS allows it. Most hard drives allow a password to be set by the BIOS and stored in a chip on the hard drive controller which can only be reset by disassembling the hard drive. (Some manufacturers provide a backdoor security key, however.) BIOS versions found on newer computers/laptops allow this password to be set in the BIOS, so that only a BIOS containing the correct password can unlock the hard drive. (If the hard drive is then removed from the computer, it cannot be accessed by any BIOS that does not have the correct password or backdoor security key.) Note, however, that this precaution does not protect against booting from external devices if the BIOS is still set to allow that.&lt;br /&gt;
:*There is a risk to this security measure. If you forget the password and the BIOS passwords somehow get reset, the hard drive would become inaccessible. The BIOS and Hard Drive password(s) should always be stored in a safe location.&lt;br /&gt;
&lt;br /&gt;
* Password protect the Grub bootloader. Without password protection, Grub can be used to circumvent BIOS restrictions. See this section for [[Ubuntu_Precise_System_Administration#Protecting_Grub_Legacy_from_cracking|Grub Legacy]] and this section for [[Ubuntu_Precise_System_Administration#Protecting_Grub2_from_cracking|Grub2]].&lt;br /&gt;
&lt;br /&gt;
* Make sure all user accounts are protected by a [[Ubuntu_Precise_Privacy#Passwords_and_file_authentication|password]], and always require passwords for login. Never create an &amp;quot;administrator&amp;quot; user account (hidden or not) and leave it unprotected by a password. Never enable automatic login without a password to any user account.&lt;br /&gt;
:*It is possible to enable [[Ubuntu_Precise_Tips#Automatic_user_login|automatic login]] to a preferred password-protected user account while simultaneously enabling a password-protected screensaver (the password for which must still be entered even before initial user access). This is a reasonable solution that offers protection while still allowing automatic login.&lt;br /&gt;
&lt;br /&gt;
* Make sure a password-protected [[Ubuntu_Precise_Utilities#Screensavers|screensaver]] is always enabled (that will engage after a reasonably short period of inactivity).&lt;/div&gt;</description>
			<pubDate>Sun, 19 May 2013 12:27:16 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:U_Precise/Networking</comments>		</item>
		<item>
			<title>Template:K Precise/Networking</title>
			<link>http://easylinux.info/wiki/Template:K_Precise/Networking</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Prevent unauthorized boots and system access */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Networking =&lt;br /&gt;
Only one network manager and GUI interface can be enabled. Network-Manager is installed by default and works for both wired and wireless connections, and for both static and dynamic (DHCP-assigned) IP addresses. In the past, some users have preferred the [http://wicd.sourceforge.net/ Wicd] network manager, however, and it can be installed instead.&lt;br /&gt;
&lt;br /&gt;
== Network Manager ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/NetworkManager Network Manager] is the network manager installed by default in (K)Ubuntu. It has a tray applet that allows you to switch between Internet connections (such as wireless APs or a wired connection).&lt;br /&gt;
&lt;br /&gt;
* After installation on my system with a wired ethernet connection and manual settings for /etc/network/interfaces, Network Manager was disabled by default (&amp;quot;unmanaged&amp;quot;) at installation. To activate Network Manager and allow it to manage networking settings, I edited a file (following the advice in [http://ubuntuforums.org/showthread.php?t=1451064 this thread]):&lt;br /&gt;
 kdesudo kate /etc/NetworkManager/NetworkManager.conf&lt;br /&gt;
&lt;br /&gt;
and changed the following section so that it read ''true'' instead of ''false'':&lt;br /&gt;
 [ifupdown]&lt;br /&gt;
 managed=true&lt;br /&gt;
&lt;br /&gt;
Also, I double checked the /var/lib/NetworkManager/NetworkManager.state file to make sure that Networking was enabled: &lt;br /&gt;
 [main]&lt;br /&gt;
 NetworkingEnabled=true&lt;br /&gt;
&lt;br /&gt;
I then restarted Network Manager:&lt;br /&gt;
 sudo /etc/init.d/network-manager restart&lt;br /&gt;
&lt;br /&gt;
* When using Network Manager to manage the settings, the default setting is to obtain an IP address from the DHCP server on the network. However, I customised the Wired Connection to accept my static IP address as a &amp;quot;manual&amp;quot; (IPv4) IP address and set my custom DNS servers (I don't use the DNS servers of my ISP for security reasons) and a random MAC address (which I change periodically to limit tracking). &lt;br /&gt;
&lt;br /&gt;
* Precise is the first version of Kubuntu in which Network Manager reliably worked for me on both wired and wireless connections. When installing on a laptop with a wireless connection, it worked (in DHCP mode) without any additional configuration. Settings could then be set through the Network Manager plasma widget on the panel bar, including the ability to manually configure a static IP address for the wireless connection, as well.&lt;br /&gt;
&lt;br /&gt;
== Wicd Network Manager ==&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://wicd.sourceforge.net/ Wicd Network Manager] is a GTK-dependent networking manager written in Python that can be used in all variants of (K)Ubuntu. To avoid networking conflicts, Wicd requires the removal of Network Manager prior to installation.&lt;br /&gt;
 sudo apt-get remove network-manager network-manager-pptp plasma-widget-networkmanagement network-manager-kde  &lt;br /&gt;
 sudo reboot&lt;br /&gt;
 sudo apt-get install wicd&lt;br /&gt;
&lt;br /&gt;
Note: You must have a wired connection in order to install Wicd. Either install it prior to removing Network Manager or be sure the /etc/network/interfaces configuration file is properly configured manually so the default network interface allows you to access the Internet through a wired connection:&lt;br /&gt;
 kdesudo kate /etc/network/interfaces&lt;br /&gt;
&lt;br /&gt;
and remove the ''#NetworkManager#'' comments, if present and makes sure the file contents resemble:&lt;br /&gt;
&lt;br /&gt;
 # The loopback network interface&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
 #&lt;br /&gt;
 # The primary network interface&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet dhcp&lt;br /&gt;
&lt;br /&gt;
Then restart networking:&lt;br /&gt;
 sudo /etc/init.d/networking restart&lt;br /&gt;
&lt;br /&gt;
This restores the default networking, and then Wicd can be installed. Once Wicd is installed, the connection settings can be changed through Wicd.&lt;br /&gt;
&lt;br /&gt;
== Set a static IP address ==&lt;br /&gt;
* Precise is the first version of Kubuntu in which I have been able to get Network Manager to accept my static IP address settings (for both wired and wireless connections).&lt;br /&gt;
:Network Manager -&amp;gt; Manage Connections... -&amp;gt; ''connection'' -&amp;gt; Edit... -&amp;gt; IPv4 address -&amp;gt; Method: Manual -&amp;gt; IP Address: ''192.168.0.111'' -&amp;gt; Subnet Mask: ''255.255.255.0'' -&amp;gt; Gateway: ''192.168.0.1'' -&amp;gt; OK&lt;br /&gt;
&lt;br /&gt;
:I also add the DNS servers I like to use (I don't use the DNS servers of my ISP for [[Kubuntu_Precise_Privacy#DNS_Servers_and_Search_engines|security]] reasons).&lt;br /&gt;
&lt;br /&gt;
* If you only use only a wired interface, you do not need a network manager and it can be removed if desired. Doing so requires configuring the networking settings manually.&lt;br /&gt;
&lt;br /&gt;
:* &amp;lt;!---&amp;gt;Remove Network Manager (replace ''network-manager-kde'' with ''network-manager'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo apt-get remove network-manager-kde plasma-widget-networkmanager network-manager network-manager-pptp&lt;br /&gt;
 sudo reboot&amp;lt;---&amp;gt;In Precise, Network Manager does not need to be removed if manual settings are used in /etc/network/interfaces. To allow the settings to take effect (and the network connection to be &amp;quot;unmanaged&amp;quot; by Network Manager), edit /etc/NetworkManager/NetworkManager.conf:&lt;br /&gt;
&lt;br /&gt;
 sudo kate /etc/NetworkManager/NetworkManager.conf&lt;br /&gt;
&lt;br /&gt;
and change the following section so that it reads ''false'':&lt;br /&gt;
 [ifupdown]&lt;br /&gt;
 managed=''false''&lt;br /&gt;
&lt;br /&gt;
Then restart Network Manager:&lt;br /&gt;
 sudo /etc/init.d/network-manager restart&lt;br /&gt;
&lt;br /&gt;
:* Edit the /etc/network/interfaces file (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo kate /etc/network/interfaces&lt;br /&gt;
&lt;br /&gt;
:* and replace the line (ok if line is missing)&lt;br /&gt;
 iface eth0 inet dhcp&lt;br /&gt;
&lt;br /&gt;
:* with the following lines (using your own LAN settings and desired DNS-nameservers, of course):&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 address 192.168.0.35&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 network 192.168.0.0&lt;br /&gt;
 broadcast 192.168.0.255&lt;br /&gt;
 gateway 192.168.0.1&lt;br /&gt;
 dns-nameservers 8.26.56.26 208.67.222.222 8.20.247.20 208.67.220.220 8.8.8.8 8.8.4.4&lt;br /&gt;
&lt;br /&gt;
:* Then restart networking:&lt;br /&gt;
 sudo /etc/init.d/networking restart&lt;br /&gt;
&lt;br /&gt;
:* Check to see if your settings are now correct:&lt;br /&gt;
 ifconfig&lt;br /&gt;
&lt;br /&gt;
* The [[#Wicd_Network_Manager|Wicd]] network manager also allows a wireless connection to have a static IP.&lt;br /&gt;
&lt;br /&gt;
=== Manual configuration from the command-line ===&lt;br /&gt;
&lt;br /&gt;
3 steps for WEP:&lt;br /&gt;
&lt;br /&gt;
 sudo iwconfig eth[N] essid [SSID]&lt;br /&gt;
 sudo iwconfig eth[N] key restricted s:[PASSWORD]&lt;br /&gt;
 sudo dhclient&lt;br /&gt;
&lt;br /&gt;
WPA is more complicated:&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir /etc/wpa_supplicant&lt;br /&gt;
 cd /etc/wpa_supplicant&lt;br /&gt;
 sudo echo network = { &amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo ssid=&amp;quot;SSID&amp;quot; &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo key_mgmt=WPA-PSK &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo psk=&amp;quot;PRESHAREDKEY&amp;quot; &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo } &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 cd /etc/network&lt;br /&gt;
 sudo gedit interfaces&lt;br /&gt;
&lt;br /&gt;
Now add after &amp;quot;auto eth[N] ...&amp;quot; &amp;amp; &amp;quot;iface eth[N] ..&amp;quot; :&lt;br /&gt;
&lt;br /&gt;
 wpa-driver wext # or whatever driver your network card needs&lt;br /&gt;
 wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf&lt;br /&gt;
&lt;br /&gt;
Save the file and restart your system.&lt;br /&gt;
&lt;br /&gt;
== Internet connection sharing (DHCP server) ==&lt;br /&gt;
In most LANs, an inexpensive router is used to provide [http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol DHCP] functions (internet connection sharing). &lt;br /&gt;
&lt;br /&gt;
However, DHCP services can also be provided by a single host computer on your [http://en.wikipedia.org/wiki/Local_area_network LAN] if it is directly connected to the Internet. (This is useful, for instance, if you have a 3G or other wireless EVDO connection to your computer which you want to share with the other computers on your LAN). Other client computers on your LAN would then connect to the Internet through your host computer's Internet connection. The host computer now essentially performs the DHCP functions of a router.&lt;br /&gt;
&lt;br /&gt;
All &amp;quot;client&amp;quot; computers on the LAN ought to be connected to a central LAN switch or router. (If using a router, it should have its own DHCP functions disabled -- you shouldn't have 2 DHCP servers on a LAN unless you know how to [[#Using a nested wireless LAN router|nest LANs]]). They should all be set up to obtain DHCP-assigned dynamic IP addresses and use the same LAN subnet settings (which in the example below is LAN IP range ''10.0.0.1 - 10.0.0.250'' with netmask ''255.255.255.0'' and gateway ''10.0.0.1''). The host computer to be used as the gateway/DHCP server is then connected (through its own ethernet port) either to one to the ports of the switch (if used), or to a LAN port of a router (don't use the WAN port). The host computer then connects directly to the Internet ([http://en.wikipedia.org/wiki/Wide_area_network WAN]) through a second port (which in the example below will be a wireless (wifi) port (wlan0)). &lt;br /&gt;
&lt;br /&gt;
(Note: This setup is easiest if you connect all computers on the LAN with Ethernet cables to the central switch or router. But also see [[#Using a nested wireless LAN router|using a nested wireless LAN router]] below.)&lt;br /&gt;
&lt;br /&gt;
(Note: If you want your LAN to use the same subnet as your WAN, see [[#Network Interfaces Bridging|network interface bridging]].)&lt;br /&gt;
&lt;br /&gt;
* Install the DHCP server and firewall programs:&lt;br /&gt;
 sudo apt-get install dhcp3-server firestarter&lt;br /&gt;
&lt;br /&gt;
* Rename the startup command (through a symbolic link) for the DHCP server. This is required or Firestarter will not know where to find it:&lt;br /&gt;
 sudo ln -sf /etc/init.d/dhcp3-server /etc/init.d/dhcpd&lt;br /&gt;
&lt;br /&gt;
* Edit the DHCP server configuration file:&lt;br /&gt;
 sudo nano -w /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
::Change the line&lt;br /&gt;
 INTERFACES=&amp;quot;&amp;quot;&lt;br /&gt;
::to&lt;br /&gt;
 INTERFACES=&amp;quot;eth0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Restart the DHCP server:&lt;br /&gt;
 sudo dhcpd restart&lt;br /&gt;
&lt;br /&gt;
* Right click on Network-Manager -&amp;gt; Edit Connections... -&amp;gt; Wired -&amp;gt; Add&lt;br /&gt;
: -&amp;gt; Connection name: ''Shared internet connection''&lt;br /&gt;
: -&amp;gt; IPv4 Settings -&amp;gt; Method: Manual -&amp;gt; Add&lt;br /&gt;
: -&amp;gt; Address: ''10.0.0.1'' -&amp;gt; Netmask: ''255.255.255.0'' -&amp;gt; Gateway: 0.0.0.0&lt;br /&gt;
: -&amp;gt; Available to all users: [x]&lt;br /&gt;
&lt;br /&gt;
* Attach the ethernet cable to (eth0).&lt;br /&gt;
:Network-Manager -&amp;gt; Wired Networks -&amp;gt; ''Shared internet connection''&lt;br /&gt;
&lt;br /&gt;
* Adjust your firewall to allow the internet connection sharing. Start Firestarter: &lt;br /&gt;
 sudo firestarter&lt;br /&gt;
&lt;br /&gt;
:* Tell the firewall which port is your direct Internet Connection:&lt;br /&gt;
Firestarter -&amp;gt; Preferences -&amp;gt; Firewall -&amp;gt; Network Settings -&amp;gt; &lt;br /&gt;
Internet connected network device: (wlan0)&lt;br /&gt;
:-&amp;gt; IP address is assigned by DHCP: [x]&lt;br /&gt;
&lt;br /&gt;
:* Tell the firewall which port is for the LAN, and specify the details for the LAN:&lt;br /&gt;
Firestarter -&amp;gt; Preferences -&amp;gt; Firewall -&amp;gt; Network Settings -&amp;gt; &lt;br /&gt;
Local network connected device: (eth0) &lt;br /&gt;
:-&amp;gt; Enable internet connection sharing: [x]&lt;br /&gt;
:-&amp;gt; Enable DHCP for the local network: [x]&lt;br /&gt;
:: -&amp;gt; DHCP server details -&amp;gt; Create new DHCP configuration -&amp;gt; Lowest IP address to assign: ''10.0.0.2''&lt;br /&gt;
:: -&amp;gt; Highest IP address to assign: ''10.0.0.250'' -&amp;gt; Name server: &amp;lt;dynamic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Note: Use your own desired LAN settings (internal [http://en.wikipedia.org/wiki/Static_IP#Static_and_dynamic_IP_addresses DHCP-assigned dynamic IP] address range), of course. In this example I don't use the full IP range ''10.0.0.2 - 10.0.0.255'' for dynamic IP addresses because I want to reserve some LAN addresses (''10.0.0.251 - 10.0.0.255'') to be used as static IP addresses).&lt;br /&gt;
&lt;br /&gt;
* Notes:&lt;br /&gt;
:* If you wish to use this setup all the time, make the &amp;quot;''Shared internet connection''&amp;quot; profile your default connection profile in Network Manager.&lt;br /&gt;
&lt;br /&gt;
=== Using a nested wireless LAN router ===&lt;br /&gt;
Many users will already have an established LAN that uses an existing wireless router and has client computers that are setup to connect wirelessly to the router. Here's how to maintain this setup and still use the internet connection sharing method of a single host computer as described above. This method is known as '''nested LANs'''. The wireless router will serve as a nested LAN for its wireless clients (only), but in turn will appear as a single device to the main LAN. The two LANs must have different IP ranges. For example, the main LAN may have an IP range ''10.0.0.1 - 10.0.0.255'' (with netmask ''255.255.255.0''), as in the above example. The router's nested wireless LAN must then use a different IP range (for example ''192.168.0.1 - 192.168.0.255'' with netmask ''255.255.255.0''). &lt;br /&gt;
&lt;br /&gt;
* Do not use your wireless router's WAN (Internet) port.&lt;br /&gt;
* Connect the host computer (to be used as your main LAN gateway/router) to a LAN port (not the WAN/Internet port) of the wireless LAN router.&lt;br /&gt;
* Configure your wireless router's LAN so that it appears to be a ''single device'' to the main LAN:&lt;br /&gt;
:* Setup your wireless router so that the Internet Connection type is &amp;quot;Static IP&amp;quot; (often in the &amp;quot;Internet Setup&amp;quot; section). Configure the settings so that its &amp;quot;Internet IP address&amp;quot; is within the static IP address range of your main LAN (e.g. ''10.0.0.254''), and make sure the subnet mask matches the one you chose for your main LAN (e.g. ''255.255.255.0''). The gateway setting should be set to match the IP address of your host computer of the main LAN (e.g. ''10.0.0.1'' in the example of the preceding section). Now the wireless router will appear to the host computer as just another device on the main LAN. &lt;br /&gt;
:* If your wireless LAN is already functioning, you probably don't have to change any settings, but double-check to make sure the schema are compatible. Configure the wireless router's settings for the nested wireless LAN. This is done by enabling the router's DHCP server functions (in &amp;quot;Network Setup&amp;quot; or some similar configuration section of the router). The router ought to have as its own wireless LAN gateway address a &amp;quot;local IP address&amp;quot; (or &amp;quot;LAN IP address&amp;quot;) of ''192.168.0.1'' (for the IP address range used in this example), and a &amp;quot;starting IP address&amp;quot; (for the DHCP-assigned dynamic IP address range to be used for the wireless clients) to be ''192.168.0.2'' or greater. (Some routers ask you to specify the entire range (such as ''192.168.0.2 - 192.168.0.255''.)&lt;br /&gt;
* Make sure all your wireless client computers are set to obtain their DHCP-assigned dynamic IP addresses from the wireless router (gateway IP ''192.168.0.1'') instead of from the main LAN gateway. &lt;br /&gt;
* Now all communications from the wireless client computers will be routed to the wireless LAN router first, which will then in turn route them to the host computer (which is acting as the main LAN gateway/router), which will then in turn route them to the Internet (WAN). &lt;br /&gt;
* Note: The host computer for the main LAN must have a static IP address (e.g. ''10.0.0.1'' as in the example of the preceding section) and it must match the gateway IP address configured in the wireless LAN router settings.&lt;br /&gt;
&lt;br /&gt;
=== Network Interfaces Bridging ===&lt;br /&gt;
* Install bridge-utils to be able to create network bridges:&lt;br /&gt;
 sudo apt-get install bridge-utils&lt;br /&gt;
&lt;br /&gt;
* Edit /etc/network/interfaces:&lt;br /&gt;
 sudo nano /etc/network/interfaces&lt;br /&gt;
&lt;br /&gt;
The interfaces file should look like this after editing it:&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet manual&lt;br /&gt;
 #&lt;br /&gt;
 auto br0&lt;br /&gt;
 iface br0 inet dhcp&lt;br /&gt;
 #&lt;br /&gt;
 bridge_ports eth0 wlan0&lt;br /&gt;
 #&lt;br /&gt;
 # The loopback network interface&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
&lt;br /&gt;
* Restart networking with:&lt;br /&gt;
 sudo /etc/init.d/networking restart&lt;br /&gt;
&lt;br /&gt;
== Using Dynamic IP addresses for a webserver ==&lt;br /&gt;
Normally, domain name servers (DNS) that are used publicly on the Internet match a web server's URL name with the IP address of the server's host computer. If your computer has a [http://en.wikipedia.org/wiki/IP_address#IP_address_assignment static IP address], then you can publish your own web server's URL as belonging to the static, unchanging IP address of your computer.&lt;br /&gt;
&lt;br /&gt;
However, if your IP address is [http://en.wikipedia.org/wiki/IP_address#IP_address_assignment dynamic] (always changing) because you use an ISP (Internet Service Provider) that constantly changes your IP address (using DHCP), then you will need a Dynamic DNS service to constantly keep track of your dynamically changing IP address and match it to of your web server's URL. Fortunately, there are a few Dynamic DNS services that will do this for you, either for a small fee or even for free. For more info, see [https://help.ubuntu.com/community/DynamicDNS this Ubuntu Community help] article.&lt;br /&gt;
&lt;br /&gt;
For specific tips on setting up Dynamic DNS, see [[Dynamic IP servers|this article]].&lt;br /&gt;
&lt;br /&gt;
== Filesharing ==&lt;br /&gt;
=== NFS ===&lt;br /&gt;
NFS is the default networking protocol for network file sharing in *nix systems (including (K)Ubuntu Linux). Here are some tips for setting up NFS from the [http://mostlylinux.wordpress.com/network/nfshowto/ Little Girl's Mostly Linux Blog].&lt;br /&gt;
&lt;br /&gt;
=== Samba File Sharing ===&lt;br /&gt;
==== Samba client ====&lt;br /&gt;
Samba is a networking protocol that allows compatibility with Windows-based networks. The Samba client is installed by default in Ubuntu and should work seamlessly (unless you have have a firewall blocking the ports).&lt;br /&gt;
&lt;br /&gt;
==== Samba server ====&lt;br /&gt;
[http://www.samba.org/ Samba] provides file/print services for the SMB/CIFS protocol used in Windows-based networks. See the [https://help.ubuntu.com/10.10/serverguide/C/windows-networking.html official Ubuntu documentation] for more information about providing services in a Windows network. A Samba server can be installed using the tasksel option during installation of the Ubuntu [[Kubuntu_Precise_Servers#Servers|server]] from the LiveCD, or at any time using:&lt;br /&gt;
 sudo tasksel install samba-server&lt;br /&gt;
&lt;br /&gt;
* An alternative method of installation is:&lt;br /&gt;
 sudo apt-get install samba samba-tools system-config-samba smbfs&lt;br /&gt;
&lt;br /&gt;
:Note: samba-tools, system-config-samba, and smbfs are optional.&lt;br /&gt;
&lt;br /&gt;
* Modify Samba settings.&lt;br /&gt;
:*Method 1:&lt;br /&gt;
&lt;br /&gt;
:Menu -&amp;gt; System -&amp;gt; Administration -&amp;gt; Samba&lt;br /&gt;
:(Note: this is available only if you installed system-config-samba.)&lt;br /&gt;
&lt;br /&gt;
It is recommended that your user be a member of the sambashare [[Kubuntu_Precise_User_Administration#Users_and_Groups|group]], as well.&lt;br /&gt;
&lt;br /&gt;
:* Method 2:&lt;br /&gt;
:Enable File Sharing Server With User Login (Very Reliable Method)&lt;br /&gt;
&lt;br /&gt;
:Do the following on the machine that has the files to be shared:&lt;br /&gt;
&lt;br /&gt;
::* Add current user to Samba:&lt;br /&gt;
 sudo smbpasswd -a username&lt;br /&gt;
::(replacing username with your login username)&lt;br /&gt;
&lt;br /&gt;
::* Open the samba config file:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/samba/smb.conf&lt;br /&gt;
&lt;br /&gt;
::* Add the directories to be added (right at the end) in the following format:&lt;br /&gt;
&lt;br /&gt;
 [Pictures]&lt;br /&gt;
 path = /home/username/&amp;lt;folder_to_be_shared&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::(Replace username with your username and &amp;lt;folder_to_be_shared&amp;gt; with the folder you want to share)&lt;br /&gt;
&lt;br /&gt;
::Press CTRL+X and then Y to save.&lt;br /&gt;
&lt;br /&gt;
::* Restart Samba:&lt;br /&gt;
 sudo service smbd restart&lt;br /&gt;
 sudo service nmbd restart&lt;br /&gt;
&lt;br /&gt;
:::Note: Prior versions used:&lt;br /&gt;
 sudo /etc/init.d/samba restart&lt;br /&gt;
&lt;br /&gt;
* On Windows access the folder in the following format in Windows Explorer:&lt;br /&gt;
 \\192.168.x.x&lt;br /&gt;
::(replace 192.168.x.x with the actual IP address of your server which is serving the folder)&lt;br /&gt;
&lt;br /&gt;
* On Linux type the following in Konqueror or Nautilus:&lt;br /&gt;
 smb://192.168.x.x&lt;br /&gt;
::(replace 192.168.x.x with the actual IP address of your server serving the folder)&lt;br /&gt;
&lt;br /&gt;
Note: If you use Sharing in KDE's System Settings panel, be aware that there is a small bug, reported [https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/95452 here]. In brief, you need to comment out/delete any instances of these two lines in /etc/smb.conf :&lt;br /&gt;
 case sensitive&lt;br /&gt;
 msdfs proxy&lt;br /&gt;
&lt;br /&gt;
==== Change your Workgroup ====&lt;br /&gt;
To change your Samba (Windows network) workgroup:&lt;br /&gt;
 sudo nano /etc/samba/smb.conf&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 workgroup = WORKGROUUP&lt;br /&gt;
&lt;br /&gt;
and change the setting to whatever your LAN workgroup is.&lt;br /&gt;
&lt;br /&gt;
==== Recognizing Win98 machines ====&lt;br /&gt;
Microsoft networking is extremely quirky. To enable recognition of PCs with Windows 98, edit your Samba configuration file:&lt;br /&gt;
 sudo nano /etc/samba/smb.conf&lt;br /&gt;
Then add the following lines to the file:&lt;br /&gt;
 [global]&lt;br /&gt;
 # THE LANMAN FIX&lt;br /&gt;
 client lanman auth = yes&lt;br /&gt;
 client ntlmv2 auth = no&lt;br /&gt;
&lt;br /&gt;
=== Integrating into Mac OS X Network ===&lt;br /&gt;
See [http://www.zaphu.com/2008/04/30/five-guides-on-how-to-integrate-ubuntu-into-a-mac-os-x-network/ this guide] for information on integrating Ubuntu into an existing Mac OS X Appletalk network.&lt;br /&gt;
&lt;br /&gt;
=== FTP Server ===&lt;br /&gt;
An FTP server allows the easy transfer of files between systems over the network. Clients such as [[Kubuntu_Precise_Internet#Filezilla|Filezilla]] can be used to interact with an FTP server. Also see these [[FTP_tips|FTP tips]].&lt;br /&gt;
&lt;br /&gt;
==== vsftpd ==== &lt;br /&gt;
[http://vsftpd.beasts.org/ vsftpd] is an FTP server available in (K)Ubuntu. For configuration information, see the [https://help.ubuntu.com/11.10/serverguide/C/ftp-server.html official Ubuntu documentation]. Install:&lt;br /&gt;
 sudo apt-get install vsftpd&lt;br /&gt;
&lt;br /&gt;
==== proftpd ====&lt;br /&gt;
[http://www.proftpd.org/ Proftpd] is an FTP server available in (K)Ubuntu that can be used with either the MySQL or PostgreSQL database. Also see the [https://help.ubuntu.com/community/ProFTPD Ubuntu Community documentation]. Install:&lt;br /&gt;
 sudo apt-get install proftpd-basic&lt;br /&gt;
&lt;br /&gt;
=== WebDAV ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://en.wikipedia.org/wiki/WebDAV WebDAV] is a method for allowing remote access to local folders via an HTTP-based web browser or file manager. This can be combined with user authentication (using LDAP or other password mechanism).&lt;br /&gt;
&lt;br /&gt;
* See [[WebDAV|this page]] for instructions.&lt;br /&gt;
&lt;br /&gt;
== Local Area Network ==&lt;br /&gt;
&lt;br /&gt;
== Modems / Dial-up ==&lt;br /&gt;
Network Manager does not accept modem connections. See [https://help.ubuntu.com/10.10/internet/C/modem.html Ubuntu help] for information on identifying and connecting with a modem. These instructions require gnome-network-admin (install while connected to a wired ethernet connection):&lt;br /&gt;
 sudo apt-get install gnome-network-admin&lt;br /&gt;
&lt;br /&gt;
=== Gnome PPP and wvdial ===&lt;br /&gt;
[http://en.wikipedia.org/wiki/Gnome-ppp Gnome PPP] is a discontinued GUI frontend for the [http://alumnit.ca/wiki/index.php?page=WvDial wvdial] PPP modem dialer. It is still available as a package. Install:&lt;br /&gt;
 sudo apt-get install gnome-ppp wvdial&lt;br /&gt;
&lt;br /&gt;
See [http://ubuntuforums.org/showthread.php?t=931872 this forum thread] for tweaks required to make Gnome PPP and wvdial operational in Lucid.&lt;br /&gt;
&lt;br /&gt;
=== GPPP ===&lt;br /&gt;
GPPP was the default modem dialing application in previous versions of Ubuntu.&lt;br /&gt;
&lt;br /&gt;
:Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; GPPP Internet Dial-up&lt;br /&gt;
&lt;br /&gt;
= Remote Access =&lt;br /&gt;
There are several methods of remote access. VNC sharing allows you to view and control a remote computer's desktop. (Windows users use a similar proprietary protocol called remote desktop protocol (RDP)). XDMCP allows a complete remote X-windows based login. Remote connections are hazardous unless proper security precautions are taken to prevent unauthorized logins and to ensure encryption of transmitted data.&lt;br /&gt;
&lt;br /&gt;
== SSH ==&lt;br /&gt;
Secure Shell or SSH is a network protocol that allows data to be exchanged over a secure channel (or &amp;quot;tunnel&amp;quot;)  between two computers. Encryption provides confidentiality and integrity of data. The OpenSSH client is installed by default in Ubuntu so you can connect to another computer that is running an SSH server.&lt;br /&gt;
&lt;br /&gt;
=== Connect to a remote SSH server ===&lt;br /&gt;
&lt;br /&gt;
==== From the command-line terminal ====&lt;br /&gt;
Install the [http://www.openbsd.org/cgi-bin/man.cgi?query=ssh&amp;amp;sektion=1 OpenSSH] client (if not already installed):&lt;br /&gt;
 sudo apt-get install openssh-client&lt;br /&gt;
&lt;br /&gt;
From the command-line Terminal type:&lt;br /&gt;
&lt;br /&gt;
 ssh -C &amp;lt;username&amp;gt;@&amp;lt;computer name or IP address&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Note: The -C option indicates compression, which speeds up transmission through the tunnel.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
 ssh -C joe@remote.computer.xyz&lt;br /&gt;
&lt;br /&gt;
:or:&lt;br /&gt;
&lt;br /&gt;
 ssh -C mike@192.168.1.1&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
 ssh -C 192.168.1.1 -l mike&lt;br /&gt;
&lt;br /&gt;
:Note: -l specifies the login id.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the SSH server is listening on a port other than port 22 (the default), you can specify that in your connection (with the -p option). For example, if the SSH server is listening on port 11022, connect:&lt;br /&gt;
&lt;br /&gt;
 ssh -C joe.friday@remote.computer.xyz:11022&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
&lt;br /&gt;
 ssh -C remote.computer.xyz -p 11022 -l joe.friday&lt;br /&gt;
&lt;br /&gt;
If you have made a public/private key using ssh-keygen, the private key must be stored in /home/''user''/.ssh. The key should be accessible only to ''user''&lt;br /&gt;
 sudo chmod 600 /home/''user''/.ssh/identity&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
&lt;br /&gt;
 sudo chmod 600 /home/''user''/.ssh/id_rsa &lt;br /&gt;
&lt;br /&gt;
To login with the key:&lt;br /&gt;
&lt;br /&gt;
 ssh -C remote.computer.xyz -p 11022 -l joe.friday&lt;br /&gt;
&lt;br /&gt;
Note: You can run the command as a menu item, but the command must be &amp;quot;run in terminal.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Port forwarding through SSH ====&lt;br /&gt;
* See [[Using_SSH_to_Port_Forward|Using SSH to Port Forward]] for full details. &lt;br /&gt;
&lt;br /&gt;
* In brief, use &lt;br /&gt;
 ssh -C &amp;lt;remote ip&amp;gt; -p &amp;lt;SSH tunnel port&amp;gt; -L &amp;lt;local port&amp;gt;:&amp;lt;remote computer&amp;gt;:&amp;lt;remote port&amp;gt; -l &amp;lt;user&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This specifies that any communications from your computer (localhost) going out through &amp;lt;local port&amp;gt; will be transmitted securely through the the SSH tunnel port.&lt;br /&gt;
To use VNC through the tunnel, you would use an application like Krdc or Vinagre:&lt;br /&gt;
 krdc vnc://localhost:&amp;lt;local port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: ''localhost'' is equivalent to (and interchangeable with) ''127.0.0.1''. Either can be used.&lt;br /&gt;
&lt;br /&gt;
Note that for VNC, the default &amp;lt;local port&amp;gt; is 5900. In general, a remote VNC server (such as [[#X11VNC_Server|X11VNC]]) is also listening on the default &amp;lt;remote port&amp;gt; 5900 as well. The default &amp;lt;SSH tunnel port&amp;gt; is 22, as discussed above. All these can be changed, however, if you desire greater security. &lt;br /&gt;
&lt;br /&gt;
For me, I noticed that I had to set &amp;lt;remote computer&amp;gt; to be the internal LAN IP address of the remote '''computer''' (such as 192.168.1.155) instead of the remote '''router''''s IP address, which is specified in &amp;lt;remote IP&amp;gt;. (If the remote computer has a static IP address (i.e. is directly connected to the Internet without an intervening router), then &amp;lt;remote computer&amp;gt; and &amp;lt;remote ip&amp;gt; would be the same.)&lt;br /&gt;
&lt;br /&gt;
''Example'':&lt;br /&gt;
For extra security, my SSH Server uses &amp;lt;SSH tunnel port&amp;gt;=11022. I want to VNC to a remote computer on a remote LAN with a router whose IP address is &amp;lt;remote ip&amp;gt; = 244.205.123.123. The remote computer to which I want to connect has a static IP address within the remote LAN of &amp;lt;remote computer&amp;gt; = 192.168.1.155.  I have set up an [[#X11VNC_Server|X11VNC server]] on this computer that is listening on &amp;lt;remote port&amp;gt; = 6912 (instead of the default 5900). I setup port forwarding on the router of this remote LAN to forward port 6912 to this server computer. I want to VNC to this remote computer from my laptop, through the Internet. My laptop VNC client (Krdc) will use the default &amp;lt;local port&amp;gt; = 5900. My name is &amp;lt;user&amp;gt; = joe.friday. This is my story. &lt;br /&gt;
&lt;br /&gt;
 ssh -C 244.205.123.123 -p 11022 -L 5900:192.168.1.155:6912 -l joe.friday&lt;br /&gt;
 krdc vnc://localhost:5900&lt;br /&gt;
&lt;br /&gt;
If you have set up a private/ public key pair with a passphrase, or if your SSH server requires a passphrase, of course, you will be prompted for the passphrase after issuing the SSH command.&lt;br /&gt;
&lt;br /&gt;
Note: Port forwarding assumes that the ports are also forwarded through the router(s) and through any firewalls. See the documentation for your router(s) and firewall to learn how to do this. The advantage of SSH tunneling is that only the &amp;lt;SSH tunnel port&amp;gt; needs to be open and forwarded by a router. All encrypted communications will go through your router using this single port. This is what makes the communications secure.&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
[http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY] is a GTK-based GUI client-interface for SSH connections and eases the setup for port forwarding, SSH public key authentication, and automated login. A user would run Putty to create the SSH tunnel (instead of the ssh command) and then run a program such as Krdc or Vinagre. PuTTY is available for both Linux and Windows (but for routine Linux usage [[#OpenSSH Public Key Authentication|OpenSSH]] is generally recommended instead).&lt;br /&gt;
 sudo apt-get install putty putty-tools&lt;br /&gt;
&lt;br /&gt;
* To create a 2048-bit RSA key pair compatible with OpenSSH, it is possible to use [http://linux.die.net/man/1/puttygen Puttygen] (part of Putty-tools). (For me the Linux version of Puttygen is occasionally buggy, however, so I recommend [[#OpenSSH Public Key Authentication|OpenSSH keygen]] for routine usage instead):&lt;br /&gt;
 puttygen -t rsa -b 2048 -O private -o putty_rsa.ppk&lt;br /&gt;
 puttygen putty_rsa.ppk -O public-openssh -o id_rsa.pub&lt;br /&gt;
 puttygen putty_rsa.ppk -O private-openssh -o id_rsa&lt;br /&gt;
&lt;br /&gt;
* Move the OpenSSH-compatible keys to the ~/.ssh (i.e. the /home/''user''/.ssh) folder&lt;br /&gt;
 mv id_rsa* ~/.ssh&lt;br /&gt;
&lt;br /&gt;
* [[#OpenSSH Public Key Authentication|Copy the public key]] ( /home/''user''/.ssh/id_rsa.pub ) to the server that is hosting the OpenSSH server, into the /home/''serveruser''/.ssh (for whichever user is the administrative user for the server -- generally the user that installed the server initially). If the SSH tunnel is (still) set at default port 22, you can copy the key using the utility: &lt;br /&gt;
&lt;br /&gt;
 ssh-copy-id ''serveruser''@''remoteserver.computer.xyz''&lt;br /&gt;
&lt;br /&gt;
* Connect a VNC client (such as Krdc) through SSH using the command-line:&lt;br /&gt;
 putty -ssh -i ~/.ssh/id_rsa -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -P ''22''&lt;br /&gt;
 krdc vnc://127.0.0.1:5900&lt;br /&gt;
&lt;br /&gt;
:or as a single command:&lt;br /&gt;
 putty -ssh -i ~/.ssh/id_rsa -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -P ''22'' sleep 5; krdc vnc://127.0.0.1::5900&lt;br /&gt;
&lt;br /&gt;
* Alternatively, the PuTTY SSH Client GUI can be run (from Menu -&amp;gt; Internet -&amp;gt; PuTTY SSH Client) and options configured from there.&lt;br /&gt;
&lt;br /&gt;
==== Using keys created by Puttygen in OpenSSH ====&lt;br /&gt;
The public security key generated by Puttygen in Windows is generally not compatible with OpenSSH security keys unless it is edited. For example, the default OpenSSH key is 2048-bit RSA (SSH-2). When a 2048-bit RSA (SSH-2) PuTTY public/private key pair is generated (by Puttygen) in Windows (see [http://unixwiz.net/techtips/putty-openssh.html this tutorial]), the public key looks like:&lt;br /&gt;
 ---- BEGIN SSH2 PUBLIC KEY ----&lt;br /&gt;
 Comment: &amp;quot;rsa-key-20100302&amp;quot;&lt;br /&gt;
 AAAAB3NzaC1yc2EAAAABJQAAAQEAjdp567qxsGkhELlMQup2mXHdsveCWq/maU6k&lt;br /&gt;
 unPpbkwEuhkasuOrhkAWgv5v3d8S857zdHcfnXWi2FkEaJuFxqpJ2IkFuvqRdqYD&lt;br /&gt;
 ZCcASj2S0LoXdWpC4uon6VH8oBT31r+wkDfmI2a+K74jgXjtm1BWWxwOpKaWQHi9&lt;br /&gt;
 YItbY/06renRex34n3ejO20JRqD/BxnFU7ND41Szo3ZMKoa0yzhevU2ntt74BCvC&lt;br /&gt;
 bYFHdSoRbi3AH8qGInzFfhXPdrG8qA382ZKEh5Bmy8Qxb9Uen/+jjP51YxN/ykee&lt;br /&gt;
 RwSrdSCZekB6jN6uuTLNDEXJSJizqlPU8tROqf3pYv1kxzD9bw==&lt;br /&gt;
 ---- END SSH2 PUBLIC KEY ----&lt;br /&gt;
&lt;br /&gt;
* To be used by OpenSSH, the saved public key must be edited. &lt;br /&gt;
:* Delete the first two lines (with the BEGIN and Comment: in them) and the last line.&lt;br /&gt;
:* Join the remaining lines into a single line.&lt;br /&gt;
:* Place ssh-rsa at the beginning.&lt;br /&gt;
:* It should end up looking like:&lt;br /&gt;
 ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAjdp567qxsGkhELlMQup2mXHdsveCWq/maU6kunPpbkwEuhkasuOrhkAWgv5v3d8S857zdHcfnXWi2FkEaJuFxqpJ2IkFuvqRdqYDZCcASj2S0LoXdWpC4uon6VH8oBT31r+wkDfmI2a+K74jgXjtm1BWWxwOpKaWQHi9YItbY/06renRex34n3ejO20JRqD/BxnFU7ND41Szo3ZMKoa0yzhevU2ntt74BCvCbYFHdSoRbi3AH8qGInzFfhXPdrG8qA382ZKEh5Bmy8Qxb9Uen/+jjP51YxN/ykeeRwSrdSCZekB6jN6uuTLNDEXJSJizqlPU8tROqf3pYv1kxzD9bw==&lt;br /&gt;
&lt;br /&gt;
* Once the PuTTY public key is in this format, it can be appended to the ~/.ssh/authorized_keys file on the OpenSSH server. (The private key stays on the client computer, of course). PuTTY can then connect (from Windows or Linux) to an OpenSSH server using the public/private key method.&lt;br /&gt;
&lt;br /&gt;
=== Connect using SSH Agent ===&lt;br /&gt;
With SSH Agent you can automate the use of public key authentication and open an XDM or VNC session using a script. See [http://kimmo.suominen.com/docs/ssh/#ssh-agent this tutorial].&lt;br /&gt;
&lt;br /&gt;
Also see this alternative simple approach: [[#Connect with SSH and start an application with a single command|Connect with SSH and start an application with a single command]].&lt;br /&gt;
&lt;br /&gt;
=== Setup an SSH server ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Install the [https://help.ubuntu.com/10.10/serverguide/C/openssh-server.html OpenSSH] server:&lt;br /&gt;
 sudo apt-get install openssh-server&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
 sudo apt-get install tasksel&lt;br /&gt;
 sudo tasksel install openssh-server&lt;br /&gt;
&lt;br /&gt;
Note: The OpenSSH server can also be installed when doing a [[Kubuntu_Precise_Servers#Servers|server]] installation as an option from the LiveCD.&lt;br /&gt;
&lt;br /&gt;
Note: An OpenSSH server can also be set up on a Windows server using Cygwin. See [http://pigtail.net/LRP/printsrv/cygwin-sshd.html these instructions].&lt;br /&gt;
&lt;br /&gt;
* Don't forget to forward the port on which your OpenSSH server is listening. The default SSH port is 22; if the default is used, the router should therefore forward port 22 to the computer on the LAN that is hosting the OpenSSH server. The OpenSSH listening port can be changed; in fact, each computer on the LAN can listen on its own unique SSH port, if desired. The router must forward each specified listening port to the correct computer. Therefore, if computer 1 has its OpenSSH server set to listen on port 22221, then the router should forward port 22221 to computer 1's LAN IP address. If computer 2 has its OpenSSH listening port set to 22222, then obviously the router must forward port 22222 to computer 2's LAN IP address. To change the listening port of the OpenSSH server, edit the /etc/ssh/sshd_config file (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo kate /etc/ssh/sshd_config&lt;br /&gt;
&lt;br /&gt;
and change the listening port from 22 to your desired listening port:&lt;br /&gt;
 Port ''22221''&lt;br /&gt;
&lt;br /&gt;
then restart the OpenSSH server:&lt;br /&gt;
 sudo /etc/init.d/ssh restart&lt;br /&gt;
&lt;br /&gt;
:* For greater port security (and to minimize [http://en.wikipedia.org/wiki/Brute-force_attack brute-force attacks]), consider using [[Kubuntu_Precise_Network_Management#Knockd_.28Port_security.29|Knockd]].&lt;br /&gt;
&lt;br /&gt;
==== Limit authorized SSH users ====&lt;br /&gt;
* See [[Limit_the_user_accounts_that_can_connect_through_OpenSSH_remotely|Limit the user accounts that can connect through OpenSSH remotely]]&lt;br /&gt;
&lt;br /&gt;
==== OpenSSH Public Key Authentication ====&lt;br /&gt;
See this [http://sial.org/howto/openssh/publickey-auth/ OpenSSH Public Key Authentication Tutorial].&lt;br /&gt;
&lt;br /&gt;
In brief, it is necessary to generate a public / private key pair. On your client machine, generate the pair:&lt;br /&gt;
 ssh-keygen&lt;br /&gt;
&lt;br /&gt;
A prompt asks for a passphrase. If you wish to use OpenSSH without a password from a secure client (to which no one but you has access), leave the passphrase blank. If you enter a passphrase, you will be asked for this passphrase each time you use the SSH client.  By default, a 2048-bit RSA SSH-2 key pair is generated and stored in the /home/''user''/.ssh folder. The private key is named id_rsa and is meant to stay in that folder. (The public key is id_rsa.pub and is meant to be copied to the OpenSSH server.)&lt;br /&gt;
&lt;br /&gt;
:* The private key must only be accessible (and should be read-only) to ''user'', the owner of the file:&lt;br /&gt;
 chmod 600 /home/''user''/.ssh/id_rsa&lt;br /&gt;
&lt;br /&gt;
::You could also make the entire .ssh folder accessible only to ''user'':&lt;br /&gt;
&lt;br /&gt;
 chmod 700 /home/''user''/.ssh&lt;br /&gt;
&lt;br /&gt;
* Copy the public key ( /home/''user''/.ssh/id_rsa.pub ) to the server that is hosting the OpenSSH server, into the /home/''serveruser''/.ssh (for whichever user is the administrative user for the server -- generally the user that installed the server initially). If the SSH tunnel is (still) set at default port 22, you can copy the key using the utility:&lt;br /&gt;
 ssh-copy-id ''serveruser''@''remoteserver.computer.xyz''&lt;br /&gt;
&lt;br /&gt;
:* The ssh-copy-id utility only works over port 22. An alternative if you have changed your SSH port is to copy the /home/''user''/.ssh/id_rsa.pub key to the server manually. On the server make sure the directory /home/''serveruser''/.ssh exists and that there is a file authorized_keys (with write privileges) in that folder. If not, create such a file while logged into the server as ''serveruser'' (the touch command creates an empty file):&lt;br /&gt;
 mkdir ~/.ssh&lt;br /&gt;
 cd ~/.ssh&lt;br /&gt;
 touch authorized_keys&lt;br /&gt;
Then concatenate the id_rsa.pub key you have copied to the ~/.ssh folder. (Make sure the owner of id_rsa.pub, after copying, is ''serveruser''.):&lt;br /&gt;
 cd ~/.ssh&lt;br /&gt;
 chown ''serveruser'' id_rsa.pub&lt;br /&gt;
 cat authorized_keys id_rsa.pub &amp;gt;&amp;gt; authorized_keys&lt;br /&gt;
&lt;br /&gt;
* Make sure the OpenSSH server knows to look for the key file. On the remote server, edit the OpenSSH configuration file:&lt;br /&gt;
 sudo nano /etc/ssh/sshd_config&lt;br /&gt;
&lt;br /&gt;
:*Uncomment the line (i.e. remove the # at the beginning of the line):&lt;br /&gt;
 #AuthorizedKeysFile %h/.ssh/authorized_keys&lt;br /&gt;
&lt;br /&gt;
* Remove the ability to login to the OpenSSH server using password authentication:&lt;br /&gt;
  sudo nano /etc/ssh/sshd_config&lt;br /&gt;
&lt;br /&gt;
:* Change the line&lt;br /&gt;
 #PasswordAuthentication yes&lt;br /&gt;
:to&lt;br /&gt;
 PasswordAuthentication no&lt;br /&gt;
&lt;br /&gt;
* Restart the OpenSSH server:&lt;br /&gt;
 sudo /etc/init.d/ssh restart&lt;br /&gt;
&lt;br /&gt;
* Now you can connect securely with an SSH tunnel without requiring a password, logging in as ''serveruser''.&lt;br /&gt;
&lt;br /&gt;
 ssh -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -p ''22''&lt;br /&gt;
&lt;br /&gt;
==== Connect with SSH and start an application with a single command ====&lt;br /&gt;
* If you have created an [[#OpenSSH Public Key Authentication|OpenSSH key pair]] (without a password), you can start both the SSH tunnel and a VNC program (such as Krdc or Vinagre) to run through the SSH tunnel with a single command:&lt;br /&gt;
 ssh -f -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -p 22 sleep 5; krdc vnc://127.0.0.1::5900&lt;br /&gt;
:* Alternatively (and probably preferably) you can create a Menu Item / Shortcut with the above command.&lt;br /&gt;
&lt;br /&gt;
Note: This command is a command-line mini-script. The SSH option -f option tells the SSH client to fork into the background after starting. (This option is not available in the PuTTY client.) This allows the command line to continue to proceed to the next command(s) listed on the command line mini-script. The 5 second wait (&amp;quot;sleep&amp;quot;) timeout allows time for the SSH tunnel to be created before proceeding to the next command. (This can be lengthened if necessary.) After the wait period, the program (Krdc VNC in this example) is started.&lt;br /&gt;
&lt;br /&gt;
* Of course, any program could be started (to be run through the SSH tunnel) in this fashion, not just a VNC program.&lt;br /&gt;
&lt;br /&gt;
==== Automate SSH connections that require a password ====&lt;br /&gt;
This method is strongly advised against. Transmitting an unencrypted password through the Internet (in order to establish an SSH connection) invites password sniffing. Use the [[#OpenSSH Public Key Authentication|OpenSSH key pair]] methods described above, instead. This method is listed here for reference.&lt;br /&gt;
&lt;br /&gt;
* Terminal interactions (such as the SSH password challenge) can be automated using the [http://linux.die.net/man/1/expect expect] utility. Install:&lt;br /&gt;
 sudo apt-get install expect&lt;br /&gt;
&lt;br /&gt;
* If, for example, your SSH client ID is ''clientuserID'', yourpassword is ''not#1sostrong'', and the remote SSH server is ''remoteserver.computer.xyz'' (using the default SSH port of ''22''), then use this command to start the SSH tunnel:&lt;br /&gt;
&lt;br /&gt;
 expect -c 'spawn ssh -l clientuserID -L 5900:127.0.0.1:5901 remoteserver.computer.xyz -p 22; expect assword ; send &amp;quot;not#1sostrong\n&amp;quot; ; interact'&lt;br /&gt;
&lt;br /&gt;
There are other parameters in this example. ''5900'' and ''5901'' are the ports to be used on either side of the tunnel (port ''5900'' is used for VNC, for example). See [[#Port_forwarding_through_SSH|Port forwarding through SSH]] for more details. &lt;br /&gt;
&lt;br /&gt;
You can use the entire command as a menu item (must be &amp;quot;Run in terminal&amp;quot; in the Advanced menu options).&lt;br /&gt;
&lt;br /&gt;
== VNC ==&lt;br /&gt;
Virtual Network Computing (VNC) mirrors the desktop of a remote (&amp;quot;server&amp;quot;) computer on your local (&amp;quot;client&amp;quot;) computer (it is not a separate remote login, as is XDMCP). A user on the remote desktop must be logged in and running a VNC server (such as [[#X11VNC_Server|X11VNC]], [[#Vino Remote Desktop VNC server|Vino]], or Krfb). Keyboard and mouse events are transmitted between the two computers. VNC is platform-independent —- a VNC viewer on one operating system can usually connect to a VNC server on any other operating system. (Windows users can use one of several clients such as [http://www.uvnc.com/docs/uvnc-viewer.html UltraVNC Viewer].)&lt;br /&gt;
&lt;br /&gt;
=== Vino Remote Desktop VNC server ===&lt;br /&gt;
Vino-server (the Gnome VNC server) is included by default in Ubuntu. Start:&lt;br /&gt;
&lt;br /&gt;
:Menu -&amp;gt; System -&amp;gt; Preferences -&amp;gt; Remote Desktop&lt;br /&gt;
&lt;br /&gt;
* You can accept uninvited connections in the Security section. You can require a password for these connections.&lt;br /&gt;
* This implementation of Vino does not allow changing the default listening ports (which start at 5900). If you wish to customize your VNC connection, use [[#X11VNC_Server|X11VNC]] instead.&lt;br /&gt;
&lt;br /&gt;
* A user can connect using [[#Vinagre VNC client|Vinagre]], the [[#Terminal Server Client|Terminal Server Client]], or any other VNC client.&lt;br /&gt;
&lt;br /&gt;
==== How to securely use VNC with SSH tunneling ====&lt;br /&gt;
It is less secure to leave the VNC listening port open to the Internet, even with a password. (This can expose you to password cracking attempts.)&lt;br /&gt;
&lt;br /&gt;
It is more secure to use SSH to tunnel your VNC connection. Under [[#Port forwarding through SSH|SSH port forwarding]], the VNC listening port is the &amp;lt;remote port&amp;gt;. To increase security, this listening port can be changed from the default 5900. Only the VNC server and the SSH client need to specify the &amp;lt;remote port&amp;gt; in a secure connection.&lt;br /&gt;
&lt;br /&gt;
=== X11VNC Server ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] While Vino is easy to use, X11VNC allows far more customization and therefore can be used more in situations where greater security is needed.&lt;br /&gt;
* Install an X11VNC server to share your desktop with other computer:&lt;br /&gt;
    sudo apt-get install x11vnc&lt;br /&gt;
&lt;br /&gt;
* Run X11VNC without a password:&lt;br /&gt;
 x11vnc -forever -rfbport 5900&lt;br /&gt;
&lt;br /&gt;
:Note: -rfbport 5900 specifies the port to listen on. The port number can be changed. This option is not required if the default port 5900 will be used. Don't forget to open/forward this port in your firewall/router. By default X11VNC server exits after the first client disconnects. To keep it running (and allow future connections), use the -forever option. See [http://www.karlrunge.com/x11vnc/x11vnc_opts.html here] for more command line options.&lt;br /&gt;
&lt;br /&gt;
* Create a password to use with X11VNC:&lt;br /&gt;
 mkdir ~/.vnc&lt;br /&gt;
 x11vnc -storepasswd YOUR_PASSWORD ~/.vnc/x11vnc.pass&lt;br /&gt;
&lt;br /&gt;
* X11VNC can then be started with a password:&lt;br /&gt;
 x11vnc -forever -rfbport 5900 -rfbauth ~/.vnc/x11vnc.pass -o ~/.vnc/x11vnc.log -loopbg -display :0&lt;br /&gt;
&lt;br /&gt;
* You can create a startup script so that X11VNC is automatically loaded at startup (with password settings):&lt;br /&gt;
 echo &amp;quot;/usr/bin/x11vnc -forever -rfbport 5900 -rfbauth ~/.vnc/x11vnc.pass -o ~/.vnc/x11vnc.log -loopbg -display :0&amp;quot; &amp;gt; ~/.config/autostart/x11vnc.sh&lt;br /&gt;
 chmod +x ~/.config/autostart/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
:* You can test the startup script:&lt;br /&gt;
 ~/.config/autostart/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
==== Using VNC with SSH ====&lt;br /&gt;
See [[#Port forwarding through SSH|Port forwarding through SSH]] for additional information.&lt;br /&gt;
&lt;br /&gt;
=== Vinagre VNC client ===&lt;br /&gt;
[http://library.gnome.org/users/vinagre/stable/index.html.en Vinagre] is the default Gnome-based VNC client used in Ubuntu.&lt;br /&gt;
* Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; Remote Desktop Viewer&lt;br /&gt;
&lt;br /&gt;
=== Terminal Server Client ===&lt;br /&gt;
The Terminal Server Client is an Ubuntu/Gnome frontend for [http://www.rdesktop.org/ rdesktop] (for RDP connections to Windows computers) and one of several vncviewer clients (for VNC connections). In can be used instead of Vinagre.&lt;br /&gt;
* Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; Terminal Server Client&lt;br /&gt;
&lt;br /&gt;
* To use it with VNC, one of the VNC clients must be installed first. For example, install the [http://www.tightvnc.com/ TightVNC] client:&lt;br /&gt;
 sudo apt-get install xtightvncviewer&lt;br /&gt;
&lt;br /&gt;
:*Note that the TightVNC client can be used from the command line (or as a menu item) directly:&lt;br /&gt;
 vncviewer ''192.168.0.12''::''5900''&lt;br /&gt;
&lt;br /&gt;
:where ''192.168.0.12'' is an example ''host'' location that is running a VNC server on port 5900. For more command-line options, use&lt;br /&gt;
 man vncviewer&lt;br /&gt;
&lt;br /&gt;
=== Krdc VNC client ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Krdc is the default VNC client in Kubuntu/KDE but can be used in GNOME. It can be used for both VNC and RDP connections. Installing it will also install the Qt platform and many KDE utilities (a large download).&lt;br /&gt;
 sudo apt-get install krdc&lt;br /&gt;
&lt;br /&gt;
* Run:&lt;br /&gt;
:Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; Krdc&lt;br /&gt;
&lt;br /&gt;
* The command-line connection (for use as a menu-item, for example) is:&lt;br /&gt;
 krdc vnc://&amp;lt;remote IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If the remote (Krfp) VNC server is using a &amp;lt;remote port&amp;gt; other than the default 5900 port, use&lt;br /&gt;
 krdc vnc://&amp;lt;remote IP&amp;gt;:&amp;lt;remote port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Krdc can also connect to a Windows server using RDP (Remote Desktop Protocol). &lt;br /&gt;
 krdc rdp://&amp;lt;remote IP&amp;gt;:&amp;lt;remote port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using a VNC client with SSH ====&lt;br /&gt;
See [http://jeltsch.org/node/209 this howto] for an automated setup using a script (it did not work for me, but it might for you).&lt;br /&gt;
&lt;br /&gt;
In brief, you would initiate an [[#Port forwarding through SSH|SSH tunnel with port forwarding]] using Putty or the command line:&lt;br /&gt;
 ssh -C &amp;lt;remote ip&amp;gt; -p &amp;lt;SSH tunnel port&amp;gt; -L &amp;lt;local port&amp;gt;:&amp;lt;remote computer&amp;gt;:&amp;lt;remote port&amp;gt; -l &amp;lt;user&amp;gt;&lt;br /&gt;
::then you would start a VNC client such as Krdc:&lt;br /&gt;
 krdc vnc://localhost:&amp;lt;local port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;local port&amp;gt; will usually be the default 5900, in which case you could simply use&lt;br /&gt;
 krdc vnc://localhost&lt;br /&gt;
&lt;br /&gt;
=== XVNC4Viewer VNC Client ===&lt;br /&gt;
XVNC4Viewer is an alternative to Vinagre or the Terminal Server Client (vncviewer). Install:&lt;br /&gt;
 sudo apt-get install xvnc4viewer&lt;br /&gt;
&lt;br /&gt;
=== Automatic user login (for use with VNC) ===&lt;br /&gt;
VNC only works if a user is logged in. When a computer (hosting one or more servers) is intended to start up unattended and VNC (with or without SSH tunneling) is to be used, the computer ought to start with the primary user logged in. To accomplish this:&lt;br /&gt;
:Menu -&amp;gt; System -&amp;gt; System Settings -&amp;gt; Login Manager -&amp;gt; Convenience -&amp;gt; Enable Auto-Login (''ticked'') -&amp;gt; Lock session (''ticked'')&lt;br /&gt;
::-&amp;gt; Pre-select user: Specified: ''Choose primary user'' (i.e. the user hosting the SSH tunnel, if any, and the VNC server)&lt;br /&gt;
::-&amp;gt; Automatically log in again after X server crash (''ticked'')&lt;br /&gt;
&lt;br /&gt;
* Also make sure the VNC server is set to Autostart at bootup.&lt;br /&gt;
&lt;br /&gt;
== FreeNX ==&lt;br /&gt;
[https://help.ubuntu.com/community/FreeNX FreeNX] is a remote desktop display server/client solution that natively incorporates SSH tunneling (unlike VNC). It is therefore more secure than VNC (unless VNC is coupled with SSH tunneling).&lt;br /&gt;
&lt;br /&gt;
=== FreeNX Server ===&lt;br /&gt;
The Free server .deb package can be downloaded from [http://www.nomachine.com/select-package.php?os=linux&amp;amp;id=1 No Machine free server downloads].&lt;br /&gt;
&lt;br /&gt;
* Alternatively, [[Kubuntu_Precise_Repositories#Add_Extra_Repositories|add the following repositories]]:&lt;br /&gt;
 sudo add-apt-repository ppa:freenx-team&lt;br /&gt;
&lt;br /&gt;
* Install the package:&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install freenx&lt;br /&gt;
&lt;br /&gt;
=== FreeNX Client ===&lt;br /&gt;
Download the self-installing .deb file from [http://www.nomachine.com/select-package-client.php No Machine Client downloads].&lt;br /&gt;
&lt;br /&gt;
== XDMCP ==&lt;br /&gt;
[http://www.tldp.org/HOWTO/XDMCP-HOWTO/index.html XDMCP] allows a separate remote login by an authorized user. This login is separate from the local user.&lt;br /&gt;
*XDMCP is not secure over the Internet and should only be used within a LAN. It cannot be tunnelled through SSH. It is turned off by default in Ubuntu. To enable it, edit the configuration file:&lt;br /&gt;
&lt;br /&gt;
 gedit /etc/gdm/custom.conf&lt;br /&gt;
&lt;br /&gt;
* Find and change (or add) the line from false to true so that it reads:&lt;br /&gt;
&lt;br /&gt;
 [Xdmcp]&lt;br /&gt;
 Enable=true&lt;br /&gt;
&lt;br /&gt;
=== Telnet ===&lt;br /&gt;
SSH is, basically, secure Telnet.&lt;br /&gt;
&lt;br /&gt;
== VPN clients ==&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Virtual_private_network VPN] (Virtual Private Network) allows a secure encrypted  connection (&amp;quot;tunnelling&amp;quot;) over the Internet between a client (either standalone or on a separate LAN) and a home or corporate LAN server.&lt;br /&gt;
&lt;br /&gt;
=== VPN through Network Manager ===&lt;br /&gt;
* The default Network Manager in Ubuntu/Kubuntu has a VPN client available. This includes support for IPSec and Cisco-compliant VPN connections. Install:&lt;br /&gt;
 sudo apt-get install network-manager-vpnc&lt;br /&gt;
&lt;br /&gt;
* To connect to a VPN network using OpenVPN (SSL), install the plugin:&lt;br /&gt;
  sudo apt-get install network-manager-openvpn&lt;br /&gt;
&lt;br /&gt;
* To connect to a VPN network using PPTP (MS Windows servers), install the plugin:&lt;br /&gt;
 sudo apt-get install network-manager-pptp&lt;br /&gt;
&lt;br /&gt;
* Configure:&lt;br /&gt;
::Network Manager icon (in system tray) -&amp;gt; VPN Connections -&amp;gt; Configure VPN&lt;br /&gt;
&lt;br /&gt;
=== vpnautoconnect (vpn daemon) ===&lt;br /&gt;
[http://sourceforge.net/projects/vpnautoconnect/ vpnautoconnect] is a daemon to allow automatic vpn connections through Network Manager. [http://sourceforge.net/projects/vpnautoconnect/files/ Download] and install the .deb package for your OS version.&lt;br /&gt;
&lt;br /&gt;
=== Other VPN clients ===&lt;br /&gt;
Standalone VPN clients based on protocol are available (but not necessary if using Network Manager):&lt;br /&gt;
:* [http://www.debuntu.org/how-to-connect-to-a-cisco-vpn-using-vpnc vpnc], [http://grml.org/online-docs/grml-vpn.8.html grml-vpn] -- for Cisco-compliant (IPSec) VPN networks&lt;br /&gt;
:* [http://www.openswan.org/ openswan] -- for IPSec (OpenSwan) VPN networks&lt;br /&gt;
:* [http://pptpclient.sourceforge.net/ pptp-linux] -- for PPTP (MS Windows-compliant) VPN networks&lt;br /&gt;
:* [http://openvpn.net/ openvpn], gadmin-openvpn-client -- for OpenSSL (OpenVPN) VPN networks&lt;br /&gt;
&lt;br /&gt;
== VPN servers ==&lt;br /&gt;
=== OpenVPN ===&lt;br /&gt;
[http://openvpn.net/ OpenVPN] is a free, GPL-licensed open-source cross-platform VPN solution based on OpenSSL (not IPSec). Install the server (then see the website for further installation instructions):&lt;br /&gt;
 sudo apt-get install openvpn bridge-utils&lt;br /&gt;
&lt;br /&gt;
A GUI configuration utility (GTK-based) is available:&lt;br /&gt;
 sudo apt-get install gadmin-openvpn-server&lt;br /&gt;
&lt;br /&gt;
Also see [[OpenVPN_server|these installation tips]].&lt;br /&gt;
&lt;br /&gt;
=== Poptop (PPTP Server) ===&lt;br /&gt;
[http://poptop.sourceforge.net/ Poptop] is a free open-source PPTP-based VPN server compatible with MS-windows PPTP clients. Install:&lt;br /&gt;
 sudo apt-get install pptpd&lt;br /&gt;
&lt;br /&gt;
=== OpenSwan ===&lt;br /&gt;
[http://www.openswan.org/ OpenSwan] is the open source implementation of IPSec-based VPN connections for Linux (and is a successor to FreeSwan). Install:&lt;br /&gt;
 sudo apt-get install openswan linux-patch-openswan&lt;br /&gt;
&lt;br /&gt;
= Security =&lt;br /&gt;
Ubuntu by default is a fairly safe system. However, if you intend to use Ubuntu as a server, or for critical applications in which loss of data (by accident or by malicious intrusion) would be disastrous, you should learn how to make Ubuntu more secure. A good introduction to [http://www.psychocats.net/ubuntu/security#bestpractices Ubuntu Security Best Practices] is available. Recommended reading includes the book ''[http://www.harpercollins.com/books/9780061962233/Cyber_War/index.aspx Cyber War]'' by [http://en.wikipedia.org/wiki/Richard_A._Clarke Richard Clark] and [http://news.cnet.com/8301-27080_3-20004505-245.html this interview] with Joe Weiss (IT advisor for the energy-sector smart grid). Also read [http://money.cnn.com/2013/04/08/technology/security/shodan/index.html?iid=HP_LN read this CNN Money article].&lt;br /&gt;
 &lt;br /&gt;
== Firewall ==&lt;br /&gt;
Network communications go through &amp;quot;channels&amp;quot; called ports. You can restrict which ports are available (&amp;quot;open&amp;quot;) for network communications, creating a barricade to unwanted network intrusion. Firewalls do this job for you. But I guarantee that if you install one before you know how to use it that one or more networking programs on your system will stop working. Read every bit of documentation about a firewall before installing it -- you won't regret the time invested. All of these packages modify [http://en.wikipedia.org/wiki/Iptables iptables], which is the set of rules that controls network access in and out of your computer. (You can modify iptables manually from the command line, as well, but if you are that much of an expert, you probably don't need this guide.) Also see the [https://help.ubuntu.com/12.04/serverguide/firewall.html official Ubuntu documentation].&lt;br /&gt;
&lt;br /&gt;
=== Firestarter ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://www.fs-security.com/ Firestarter] is an intuitive firewall manager used to set the iptables values which provide firewall capabilities in Linux (including Ubuntu). It has a very easy-to-use GUI. &lt;br /&gt;
 sudo apt-get install firestarter&lt;br /&gt;
&lt;br /&gt;
==== Firestarter fails to open system log ====&lt;br /&gt;
This is a problem in Precise. See the [[Syslogd_to_rsyslog|solution here]].&lt;br /&gt;
&lt;br /&gt;
=== Guarddog ===&lt;br /&gt;
[http://www.simonzone.com/software/guarddog/ Guarddog] is a GUI firewall configuration utility that has been used for KDE. It has a complex array of configuration, and is difficult to use for some beginners. &lt;br /&gt;
 sudo apt-get install guarddog&lt;br /&gt;
&lt;br /&gt;
=== Uncomplicated Firewall ===&lt;br /&gt;
[http://wiki.ubuntu.com/UncomplicatedFirewall Uncomplicated Firewall] is installed in (K)Ubuntu by default, but all ports are open initially. It is configurable through the [[Kubuntu_Precise_Introduction#General_Notes|command-line interface]]. See [http://ubuntuforums.org/showthread.php?t=823741 this forum thread], [http://www.ubuntu-unleashed.com/2008/05/howto-take-use-setup-and-advantage-of.html or this usage tutorial], or [https://help.ubuntu.com/community/UFW Ubuntu community help] for tips on how to set up and use it.&lt;br /&gt;
If not installed, it can be installed:&lt;br /&gt;
 apt-get install ufw&lt;br /&gt;
&lt;br /&gt;
==== Gufw ====&lt;br /&gt;
[http://gufw.tuxfamily.org/index.html Gufw] is a graphical user interface for Uncomplicated Firewall. Install:&lt;br /&gt;
 sudo apt-get install gufw&lt;br /&gt;
&lt;br /&gt;
== Anti-virus ==&lt;br /&gt;
* If you are running a file server, interface frequently with Windows drives or share files with Windows users, or use virtualization, you will want a virus checker for your Windows files.&lt;br /&gt;
&lt;br /&gt;
* Despite extensive minsinformation, Linux is not immune from malware (witness the explosion of malware being created for the Linux-based Google Android systems). The malware is not usually spread within the OS itself (as long as the OS is a well-respected distribution obtained through official channels), but in trojan programs downloaded and installed by users outside of the normal software distribution channels (i.e. repositories) of the OS. There is always a danger to using programs downloaded from the Internet from sources other than respected repositories -- it is the primary reason that Debian and (K)Ubuntu retain tight control over their software repositories. &lt;br /&gt;
&lt;br /&gt;
* Any file can have malware embedded in it (which is trivial to achieve by concatenation, for example: ''cat originalfile.avi malware.exe &amp;gt; originalfileplusmalware.avi''). The question is whether a user will try to open a file with a program (such as a media player) that has been compromised in a way that allows it to execute the code found in the infected media (e.g. .avi) file. This can occur not only for Windows users but for any OS (including Mac OSX and Linux) with a compromised program (e.g. media player). An example is the extensive problems the Mac OS community is currently having with the Flash player.&lt;br /&gt;
&lt;br /&gt;
* Routine scanning of any file downloaded from the Internet, any file imported from another user's computer (even a trusted source, since their attention to virus prevention may not be as compulsive as yours), or any attachment received in an email (even from a trusted sender) should be done with an anti-virus program.&lt;br /&gt;
&lt;br /&gt;
=== ClamAV ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://www.clamav.net/ ClamAV] is the open source virus tool for Linux. To install ClamAV:&lt;br /&gt;
 sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
* If an error is returned: &amp;quot;The database directory must be writable for UID 1000 or GID 1000&amp;quot; in order for the virus database to be updated, then change the ownership of the installation directory (/var/lib/clamav):&lt;br /&gt;
 sudo chown 1000 /var/lib/clamav&lt;br /&gt;
&lt;br /&gt;
==== ClamTk (ClamAV GUI) ====&lt;br /&gt;
[http://clamtk.sourceforge.net/ ClamTk] is a GTK-based GUI frontend for ClamAV. Install:&lt;br /&gt;
 sudo apt-get install clamtk&lt;br /&gt;
&lt;br /&gt;
=== AVG ===&lt;br /&gt;
[http://free.avg.com/us-en/download.prd-afl AVG] offers a free virus scanner for Linux in a .deb package. Download and install from the website.&lt;br /&gt;
=== Avast ===&lt;br /&gt;
[http://www.avast.com/linux-home-edition Avast] offers a Linux edition (for home users only) in a .deb package. Download and install from the website.&lt;br /&gt;
&lt;br /&gt;
== Anti-spam ==&lt;br /&gt;
&lt;br /&gt;
=== Spam Assasin ===&lt;br /&gt;
[http://spamassassin.apache.org/ SpamAssasin] is written in perl, and is mostly for use with a server (such as a groupware server or Apache). Install:&lt;br /&gt;
 sudo apt-get spamassassin&lt;br /&gt;
&lt;br /&gt;
== Rootkit checkers ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/Rootkit Rootkits] are malicious [http://en.wikipedia.org/wiki/Trojan_horse_(computing) trojan]-like programs to allow an intruder to become a root user and therefore have complete administrative control over the system. There aren't many rootkits in the wild for Linux. Still, this is a growing security problem (especially in other operating systems) and it is a matter of time before more rootkits appear in Linux. Checking for rootkits isn't always successful from a system that is already infected. Your rootkit checker should therefore be run from another system, or a [[Kubuntu_Precise_System_Backup#Run_.28K.29Ubuntu_LiveCD_from_a_USB_pendrive|USB pendrive with an Ubuntu LiveCD installation]]. See the rootkit checker manuals for instructions how to do this. If you are infected with a rootkit, you must backup all your files and re-install your system. (Thank goodness this is easy with Ubuntu, unlike with other operating systems).&lt;br /&gt;
&lt;br /&gt;
=== Chkrootkit ===&lt;br /&gt;
[http://www.chkrootkit.org/ Chkrootkit] checks locally for signs of a rootkit. See the [http://www.chkrootkit.org/README chkrootkit manual] for usage instructions.&lt;br /&gt;
:Install:&lt;br /&gt;
 sudo apt-get install chkrootkit&lt;br /&gt;
:Run:&lt;br /&gt;
 sudo chkrootkit&lt;br /&gt;
&lt;br /&gt;
=== Rootkit Hunter ===&lt;br /&gt;
[http://www.rootkit.nl/projects/rootkit_hunter.html Rootkit Hunter] is compatible with (K)Ubuntu systems. See the [http://sourceforge.net/docman/display_doc.php?docid=35179&amp;amp;group_id=155034 usage instructions].&lt;br /&gt;
:Install:&lt;br /&gt;
 sudo apt-get install rkhunter&lt;br /&gt;
:Run:&lt;br /&gt;
 sudo rkhunter&lt;br /&gt;
&lt;br /&gt;
=== Malicious commands to avoid ===&lt;br /&gt;
There are many [[Malicious_Linux_Commands|malicious commands]] to be avoided in Linux (as in all operating systems). It is worthwhile to be aware of these dangerous commands so that they are not executed by accident or by malicious advice.&lt;br /&gt;
&lt;br /&gt;
== USB drives ==&lt;br /&gt;
USB drives are a major source of security risk and means of data theft.&lt;br /&gt;
&lt;br /&gt;
* An administrator password should be set for the computer BIOS and booting from a USB drive or CD/DVD should be disabled. (Otherwise, any passerby can boot their own OS and then use it to steal data from the hard drive.)&lt;br /&gt;
&lt;br /&gt;
* See [http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/ this article] for methods of restricting USB usage to authorized users.&lt;br /&gt;
&lt;br /&gt;
== Prevent unauthorized boots and system access ==&lt;br /&gt;
Many computers are kept in places where casual passersby may have an opportunity to access the computer, unobserved for short periods. In addition to physical precautions to prevent or slow computer theft (such as locked cases, alarms, and security cables similar to those used to slow bicycle theft), [http://www.pcworld.com/article/114727/lock_down_your_pc.html precautions] should be taken to prevent an unauthorized operating system from being booted using an external device (such as USB drive). Once such as external OS is booted, it can be used to access most hard drive(s) on the computer and the contents copied to a second external device (to be examined or unencrypted later). This is a common means of data theft that is fast and easy to accomplish, and means to deter it should be taken on any public or semi-public computer.&lt;br /&gt;
&lt;br /&gt;
* Set BIOS to restrict bootup to the hard drive only.&lt;br /&gt;
:* Set a Supervisor/Administrator password for your computer's BIOS. (I recommend writing it down and taping it to the inside cover of the computer case prior to locking the computer case.) Disable booting from all devices except the hard drive. Setting the hard drive as the first priority boot device is not enough, as most current BIOS menus allow manual selection of any enabled boot devices. Only the hard drive should be left enabled.&lt;br /&gt;
&lt;br /&gt;
* Enable Hard Drive locking, if your computer's BIOS allows it. Most hard drives allow a password to be set by the BIOS and stored in a chip on the hard drive controller which can only be reset by disassembling the hard drive. (Some manufacturers provide a backdoor security key, however.) BIOS versions found on newer computers/laptops allow this password to be set in the BIOS, so that only a BIOS containing the correct password can unlock the hard drive. (If the hard drive is then removed from the computer, it cannot be accessed by any BIOS that does not have the correct password or backdoor security key.) Note, however, that this precaution does not protect against booting from external devices if the BIOS is still set to allow that.&lt;br /&gt;
:* There is a risk to this security measure. If you forget the password and the BIOS passwords somehow get reset, the hard drive would become inaccessible. The BIOS and Hard Drive password(s) should always be stored in a safe location.&lt;br /&gt;
&lt;br /&gt;
* Password protect the Grub bootloader. Without password protection, Grub can be used to circumvent BIOS restrictions. See this section for [[Kubuntu_Precise_System_Administration#Protecting_Grub2_from_cracking|Grub Legacy]] and this section for [[Kubuntu_Precise_System_Administration#Protecting_Grub2_from_cracking|Grub2]].&lt;br /&gt;
&lt;br /&gt;
* Make sure all user accounts are protected by a [[Kubuntu_Precise_Privacy#Passwords_and_file_authentication|password]], and always require passwords for login. Never create an &amp;quot;administrator&amp;quot; user account (hidden or not) and leave it unprotected by a password. Never enable automatic login without a password to any user account.&lt;br /&gt;
:* It is possible to enable [[Kubuntu_Precise_Tips#Automatic_user_login|automatic login]] to a preferred password-protected user account while simultaneously enabling a password-protected screensaver (the password for which must still be entered even before initial user access). This is a reasonable solution that offers protection while still allowing automatic login.&lt;br /&gt;
&lt;br /&gt;
* Make sure a password-protected [[Kubuntu_Precise_Utilities#Screensavers|screensaver]] is always enabled (that will engage after a reasonably short period of inactivity).&lt;/div&gt;</description>
			<pubDate>Sun, 19 May 2013 12:23:08 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:K_Precise/Networking</comments>		</item>
		<item>
			<title>Template:K Quantal/Networking</title>
			<link>http://easylinux.info/wiki/Template:K_Quantal/Networking</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Prevent unauthorized boots and system access */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Networking =&lt;br /&gt;
Only one network manager and GUI interface can be enabled. Network-Manager is installed by default and works for both wired and wireless connections, and for both static and dynamic (DHCP-assigned) IP addresses. In the past, some users have preferred the [http://wicd.sourceforge.net/ Wicd] network manager, however, and it can be installed instead.&lt;br /&gt;
&lt;br /&gt;
== Network Manager ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/NetworkManager Network Manager] is the network manager installed by default in (K)Ubuntu. It has a tray applet that allows you to switch between Internet connections (such as wireless APs or a wired connection).&lt;br /&gt;
&lt;br /&gt;
* After installation on my system with a wired ethernet connection and manual settings for /etc/network/interfaces, Network Manager was disabled by default (&amp;quot;unmanaged&amp;quot;) at installation. To activate Network Manager and allow it to manage networking settings, I edited a file (following the advice in [http://ubuntuforums.org/showthread.php?t=1451064 this thread]):&lt;br /&gt;
 kdesudo kate /etc/NetworkManager/NetworkManager.conf&lt;br /&gt;
&lt;br /&gt;
and changed the following section so that it read ''true'' instead of ''false'':&lt;br /&gt;
 [ifupdown]&lt;br /&gt;
 managed=true&lt;br /&gt;
&lt;br /&gt;
Also, I double checked the /var/lib/NetworkManager/NetworkManager.state file to make sure that Networking was enabled: &lt;br /&gt;
 [main]&lt;br /&gt;
 NetworkingEnabled=true&lt;br /&gt;
&lt;br /&gt;
I then restarted Network Manager:&lt;br /&gt;
 sudo /etc/init.d/network-manager restart&lt;br /&gt;
&lt;br /&gt;
* When using Network Manager to manage the settings, the default setting is to obtain an IP address from the DHCP server on the network. However, I customised the Wired Connection to accept my static IP address as a &amp;quot;manual&amp;quot; (IPv4) IP address and set my custom DNS servers (I don't use the DNS servers of my ISP for security reasons) and a random MAC address (which I change periodically to limit tracking). &lt;br /&gt;
&lt;br /&gt;
* Quantal is the first version of Kubuntu in which Network Manager reliably worked for me on both wired and wireless connections. When installing on a laptop with a wireless connection, it worked (in DHCP mode) without any additional configuration. Settings could then be set through the Network Manager plasma widget on the panel bar, including the ability to manually configure a static IP address for the wireless connection, as well.&lt;br /&gt;
&lt;br /&gt;
== Wicd Network Manager ==&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://wicd.sourceforge.net/ Wicd Network Manager] is a GTK-dependent networking manager written in Python that can be used in all variants of (K)Ubuntu. To avoid networking conflicts, Wicd requires the removal of Network Manager prior to installation.&lt;br /&gt;
 sudo apt-get remove network-manager network-manager-pptp plasma-widget-networkmanagement network-manager-kde  &lt;br /&gt;
 sudo reboot&lt;br /&gt;
 sudo apt-get install wicd&lt;br /&gt;
&lt;br /&gt;
Note: You must have a wired connection in order to install Wicd. Either install it prior to removing Network Manager or be sure the /etc/network/interfaces configuration file is properly configured manually so the default network interface allows you to access the Internet through a wired connection:&lt;br /&gt;
 kdesudo kate /etc/network/interfaces&lt;br /&gt;
&lt;br /&gt;
and remove the ''#NetworkManager#'' comments, if present and makes sure the file contents resemble:&lt;br /&gt;
&lt;br /&gt;
 # The loopback network interface&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
 #&lt;br /&gt;
 # The primary network interface&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet dhcp&lt;br /&gt;
&lt;br /&gt;
Then restart networking:&lt;br /&gt;
 sudo /etc/init.d/networking restart&lt;br /&gt;
&lt;br /&gt;
This restores the default networking, and then Wicd can be installed. Once Wicd is installed, the connection settings can be changed through Wicd.&lt;br /&gt;
&lt;br /&gt;
== Set a static IP address ==&lt;br /&gt;
* Quantal is the first version of Kubuntu in which I have been able to get Network Manager to accept my static IP address settings (for both wired and wireless connections).&lt;br /&gt;
:Network Manager -&amp;gt; Manage Connections... -&amp;gt; ''connection'' -&amp;gt; Edit... -&amp;gt; IPv4 address -&amp;gt; Method: Manual -&amp;gt; IP Address: ''192.168.0.111'' -&amp;gt; Subnet Mask: ''255.255.255.0'' -&amp;gt; Gateway: ''192.168.0.1'' -&amp;gt; OK&lt;br /&gt;
&lt;br /&gt;
:I also add the DNS servers I like to use (I don't use the DNS servers of my ISP for [[Kubuntu_Quantal_Privacy#DNS_Servers_and_Search_engines|security]] reasons).&lt;br /&gt;
&lt;br /&gt;
* If you only use only a wired interface, you do not need a network manager and it can be removed if desired. Doing so requires configuring the networking settings manually.&lt;br /&gt;
&lt;br /&gt;
:* &amp;lt;!---&amp;gt;Remove Network Manager (replace ''network-manager-kde'' with ''network-manager'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo apt-get remove network-manager-kde plasma-widget-networkmanager network-manager network-manager-pptp&lt;br /&gt;
 sudo reboot&amp;lt;---&amp;gt;In Quantal, Network Manager does not need to be removed if manual settings are used in /etc/network/interfaces. To allow the settings to take effect (and the network connection to be &amp;quot;unmanaged&amp;quot; by Network Manager), edit /etc/NetworkManager/NetworkManager.conf:&lt;br /&gt;
&lt;br /&gt;
 sudo kate /etc/NetworkManager/NetworkManager.conf&lt;br /&gt;
&lt;br /&gt;
and change the following section so that it reads ''false'':&lt;br /&gt;
 [ifupdown]&lt;br /&gt;
 managed=''false''&lt;br /&gt;
&lt;br /&gt;
Then restart Network Manager:&lt;br /&gt;
 sudo /etc/init.d/network-manager restart&lt;br /&gt;
&lt;br /&gt;
:* Edit the /etc/network/interfaces file (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo kate /etc/network/interfaces&lt;br /&gt;
&lt;br /&gt;
:* and replace the line (ok if line is missing)&lt;br /&gt;
 iface eth0 inet dhcp&lt;br /&gt;
&lt;br /&gt;
:* with the following lines (using your own LAN settings and desired DNS-nameservers, of course):&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 address 192.168.0.35&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 network 192.168.0.0&lt;br /&gt;
 broadcast 192.168.0.255&lt;br /&gt;
 gateway 192.168.0.1&lt;br /&gt;
 dns-nameservers 8.26.56.26 208.67.222.222 8.20.247.20 208.67.220.220 8.8.8.8 8.8.4.4&lt;br /&gt;
&lt;br /&gt;
:* Then restart networking:&lt;br /&gt;
 sudo /etc/init.d/networking restart&lt;br /&gt;
&lt;br /&gt;
:* Check to see if your settings are now correct:&lt;br /&gt;
 ifconfig&lt;br /&gt;
&lt;br /&gt;
* The [[#Wicd_Network_Manager|Wicd]] network manager also allows a wireless connection to have a static IP.&lt;br /&gt;
&lt;br /&gt;
=== Manual configuration from the command-line ===&lt;br /&gt;
&lt;br /&gt;
3 steps for WEP:&lt;br /&gt;
&lt;br /&gt;
 sudo iwconfig eth[N] essid [SSID]&lt;br /&gt;
 sudo iwconfig eth[N] key restricted s:[PASSWORD]&lt;br /&gt;
 sudo dhclient&lt;br /&gt;
&lt;br /&gt;
WPA is more complicated:&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir /etc/wpa_supplicant&lt;br /&gt;
 cd /etc/wpa_supplicant&lt;br /&gt;
 sudo echo network = { &amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo ssid=&amp;quot;SSID&amp;quot; &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo key_mgmt=WPA-PSK &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo psk=&amp;quot;PRESHAREDKEY&amp;quot; &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo } &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 cd /etc/network&lt;br /&gt;
 sudo gedit interfaces&lt;br /&gt;
&lt;br /&gt;
Now add after &amp;quot;auto eth[N] ...&amp;quot; &amp;amp; &amp;quot;iface eth[N] ..&amp;quot; :&lt;br /&gt;
&lt;br /&gt;
 wpa-driver wext # or whatever driver your network card needs&lt;br /&gt;
 wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf&lt;br /&gt;
&lt;br /&gt;
Save the file and restart your system.&lt;br /&gt;
&lt;br /&gt;
== Internet connection sharing (DHCP server) ==&lt;br /&gt;
In most LANs, an inexpensive router is used to provide [http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol DHCP] functions (internet connection sharing). &lt;br /&gt;
&lt;br /&gt;
However, DHCP services can also be provided by a single host computer on your [http://en.wikipedia.org/wiki/Local_area_network LAN] if it is directly connected to the Internet. (This is useful, for instance, if you have a 3G or other wireless EVDO connection to your computer which you want to share with the other computers on your LAN). Other client computers on your LAN would then connect to the Internet through your host computer's Internet connection. The host computer now essentially performs the DHCP functions of a router.&lt;br /&gt;
&lt;br /&gt;
All &amp;quot;client&amp;quot; computers on the LAN ought to be connected to a central LAN switch or router. (If using a router, it should have its own DHCP functions disabled -- you shouldn't have 2 DHCP servers on a LAN unless you know how to [[#Using a nested wireless LAN router|nest LANs]]). They should all be set up to obtain DHCP-assigned dynamic IP addresses and use the same LAN subnet settings (which in the example below is LAN IP range ''10.0.0.1 - 10.0.0.250'' with netmask ''255.255.255.0'' and gateway ''10.0.0.1''). The host computer to be used as the gateway/DHCP server is then connected (through its own ethernet port) either to one to the ports of the switch (if used), or to a LAN port of a router (don't use the WAN port). The host computer then connects directly to the Internet ([http://en.wikipedia.org/wiki/Wide_area_network WAN]) through a second port (which in the example below will be a wireless (wifi) port (wlan0)). &lt;br /&gt;
&lt;br /&gt;
(Note: This setup is easiest if you connect all computers on the LAN with Ethernet cables to the central switch or router. But also see [[#Using a nested wireless LAN router|using a nested wireless LAN router]] below.)&lt;br /&gt;
&lt;br /&gt;
(Note: If you want your LAN to use the same subnet as your WAN, see [[#Network Interfaces Bridging|network interface bridging]].)&lt;br /&gt;
&lt;br /&gt;
* Install the DHCP server and firewall programs:&lt;br /&gt;
 sudo apt-get install dhcp3-server firestarter&lt;br /&gt;
&lt;br /&gt;
* Rename the startup command (through a symbolic link) for the DHCP server. This is required or Firestarter will not know where to find it:&lt;br /&gt;
 sudo ln -sf /etc/init.d/dhcp3-server /etc/init.d/dhcpd&lt;br /&gt;
&lt;br /&gt;
* Edit the DHCP server configuration file:&lt;br /&gt;
 sudo nano -w /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
::Change the line&lt;br /&gt;
 INTERFACES=&amp;quot;&amp;quot;&lt;br /&gt;
::to&lt;br /&gt;
 INTERFACES=&amp;quot;eth0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Restart the DHCP server:&lt;br /&gt;
 sudo dhcpd restart&lt;br /&gt;
&lt;br /&gt;
* Right click on Network-Manager -&amp;gt; Edit Connections... -&amp;gt; Wired -&amp;gt; Add&lt;br /&gt;
: -&amp;gt; Connection name: ''Shared internet connection''&lt;br /&gt;
: -&amp;gt; IPv4 Settings -&amp;gt; Method: Manual -&amp;gt; Add&lt;br /&gt;
: -&amp;gt; Address: ''10.0.0.1'' -&amp;gt; Netmask: ''255.255.255.0'' -&amp;gt; Gateway: 0.0.0.0&lt;br /&gt;
: -&amp;gt; Available to all users: [x]&lt;br /&gt;
&lt;br /&gt;
* Attach the ethernet cable to (eth0).&lt;br /&gt;
:Network-Manager -&amp;gt; Wired Networks -&amp;gt; ''Shared internet connection''&lt;br /&gt;
&lt;br /&gt;
* Adjust your firewall to allow the internet connection sharing. Start Firestarter: &lt;br /&gt;
 sudo firestarter&lt;br /&gt;
&lt;br /&gt;
:* Tell the firewall which port is your direct Internet Connection:&lt;br /&gt;
Firestarter -&amp;gt; Preferences -&amp;gt; Firewall -&amp;gt; Network Settings -&amp;gt; &lt;br /&gt;
Internet connected network device: (wlan0)&lt;br /&gt;
:-&amp;gt; IP address is assigned by DHCP: [x]&lt;br /&gt;
&lt;br /&gt;
:* Tell the firewall which port is for the LAN, and specify the details for the LAN:&lt;br /&gt;
Firestarter -&amp;gt; Preferences -&amp;gt; Firewall -&amp;gt; Network Settings -&amp;gt; &lt;br /&gt;
Local network connected device: (eth0) &lt;br /&gt;
:-&amp;gt; Enable internet connection sharing: [x]&lt;br /&gt;
:-&amp;gt; Enable DHCP for the local network: [x]&lt;br /&gt;
:: -&amp;gt; DHCP server details -&amp;gt; Create new DHCP configuration -&amp;gt; Lowest IP address to assign: ''10.0.0.2''&lt;br /&gt;
:: -&amp;gt; Highest IP address to assign: ''10.0.0.250'' -&amp;gt; Name server: &amp;lt;dynamic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Note: Use your own desired LAN settings (internal [http://en.wikipedia.org/wiki/Static_IP#Static_and_dynamic_IP_addresses DHCP-assigned dynamic IP] address range), of course. In this example I don't use the full IP range ''10.0.0.2 - 10.0.0.255'' for dynamic IP addresses because I want to reserve some LAN addresses (''10.0.0.251 - 10.0.0.255'') to be used as static IP addresses).&lt;br /&gt;
&lt;br /&gt;
* Notes:&lt;br /&gt;
:* If you wish to use this setup all the time, make the &amp;quot;''Shared internet connection''&amp;quot; profile your default connection profile in Network Manager.&lt;br /&gt;
&lt;br /&gt;
=== Using a nested wireless LAN router ===&lt;br /&gt;
Many users will already have an established LAN that uses an existing wireless router and has client computers that are setup to connect wirelessly to the router. Here's how to maintain this setup and still use the internet connection sharing method of a single host computer as described above. This method is known as '''nested LANs'''. The wireless router will serve as a nested LAN for its wireless clients (only), but in turn will appear as a single device to the main LAN. The two LANs must have different IP ranges. For example, the main LAN may have an IP range ''10.0.0.1 - 10.0.0.255'' (with netmask ''255.255.255.0''), as in the above example. The router's nested wireless LAN must then use a different IP range (for example ''192.168.0.1 - 192.168.0.255'' with netmask ''255.255.255.0''). &lt;br /&gt;
&lt;br /&gt;
* Do not use your wireless router's WAN (Internet) port.&lt;br /&gt;
* Connect the host computer (to be used as your main LAN gateway/router) to a LAN port (not the WAN/Internet port) of the wireless LAN router.&lt;br /&gt;
* Configure your wireless router's LAN so that it appears to be a ''single device'' to the main LAN:&lt;br /&gt;
:* Setup your wireless router so that the Internet Connection type is &amp;quot;Static IP&amp;quot; (often in the &amp;quot;Internet Setup&amp;quot; section). Configure the settings so that its &amp;quot;Internet IP address&amp;quot; is within the static IP address range of your main LAN (e.g. ''10.0.0.254''), and make sure the subnet mask matches the one you chose for your main LAN (e.g. ''255.255.255.0''). The gateway setting should be set to match the IP address of your host computer of the main LAN (e.g. ''10.0.0.1'' in the example of the preceding section). Now the wireless router will appear to the host computer as just another device on the main LAN. &lt;br /&gt;
:* If your wireless LAN is already functioning, you probably don't have to change any settings, but double-check to make sure the schema are compatible. Configure the wireless router's settings for the nested wireless LAN. This is done by enabling the router's DHCP server functions (in &amp;quot;Network Setup&amp;quot; or some similar configuration section of the router). The router ought to have as its own wireless LAN gateway address a &amp;quot;local IP address&amp;quot; (or &amp;quot;LAN IP address&amp;quot;) of ''192.168.0.1'' (for the IP address range used in this example), and a &amp;quot;starting IP address&amp;quot; (for the DHCP-assigned dynamic IP address range to be used for the wireless clients) to be ''192.168.0.2'' or greater. (Some routers ask you to specify the entire range (such as ''192.168.0.2 - 192.168.0.255''.)&lt;br /&gt;
* Make sure all your wireless client computers are set to obtain their DHCP-assigned dynamic IP addresses from the wireless router (gateway IP ''192.168.0.1'') instead of from the main LAN gateway. &lt;br /&gt;
* Now all communications from the wireless client computers will be routed to the wireless LAN router first, which will then in turn route them to the host computer (which is acting as the main LAN gateway/router), which will then in turn route them to the Internet (WAN). &lt;br /&gt;
* Note: The host computer for the main LAN must have a static IP address (e.g. ''10.0.0.1'' as in the example of the preceding section) and it must match the gateway IP address configured in the wireless LAN router settings.&lt;br /&gt;
&lt;br /&gt;
=== Network Interfaces Bridging ===&lt;br /&gt;
* Install bridge-utils to be able to create network bridges:&lt;br /&gt;
 sudo apt-get install bridge-utils&lt;br /&gt;
&lt;br /&gt;
* Edit /etc/network/interfaces:&lt;br /&gt;
 sudo nano /etc/network/interfaces&lt;br /&gt;
&lt;br /&gt;
The interfaces file should look like this after editing it:&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet manual&lt;br /&gt;
 #&lt;br /&gt;
 auto br0&lt;br /&gt;
 iface br0 inet dhcp&lt;br /&gt;
 #&lt;br /&gt;
 bridge_ports eth0 wlan0&lt;br /&gt;
 #&lt;br /&gt;
 # The loopback network interface&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
&lt;br /&gt;
* Restart networking with:&lt;br /&gt;
 sudo /etc/init.d/networking restart&lt;br /&gt;
&lt;br /&gt;
== Using Dynamic IP addresses for a webserver ==&lt;br /&gt;
Normally, domain name servers (DNS) that are used publicly on the Internet match a web server's URL name with the IP address of the server's host computer. If your computer has a [http://en.wikipedia.org/wiki/IP_address#IP_address_assignment static IP address], then you can publish your own web server's URL as belonging to the static, unchanging IP address of your computer.&lt;br /&gt;
&lt;br /&gt;
However, if your IP address is [http://en.wikipedia.org/wiki/IP_address#IP_address_assignment dynamic] (always changing) because you use an ISP (Internet Service Provider) that constantly changes your IP address (using DHCP), then you will need a Dynamic DNS service to constantly keep track of your dynamically changing IP address and match it to of your web server's URL. Fortunately, there are a few Dynamic DNS services that will do this for you, either for a small fee or even for free. For more info, see [https://help.ubuntu.com/community/DynamicDNS this Ubuntu Community help] article.&lt;br /&gt;
&lt;br /&gt;
For specific tips on setting up Dynamic DNS, see [[Dynamic IP servers|this article]].&lt;br /&gt;
&lt;br /&gt;
== Filesharing ==&lt;br /&gt;
=== NFS ===&lt;br /&gt;
NFS is the default networking protocol for network file sharing in *nix systems (including (K)Ubuntu Linux). Here are some tips for setting up NFS from the [http://mostlylinux.wordpress.com/network/nfshowto/ Little Girl's Mostly Linux Blog].&lt;br /&gt;
&lt;br /&gt;
=== Samba File Sharing ===&lt;br /&gt;
==== Samba client ====&lt;br /&gt;
Samba is a networking protocol that allows compatibility with Windows-based networks. The Samba client is installed by default in Ubuntu and should work seamlessly (unless you have have a firewall blocking the ports).&lt;br /&gt;
&lt;br /&gt;
==== Samba server ====&lt;br /&gt;
[http://www.samba.org/ Samba] provides file/print services for the SMB/CIFS protocol used in Windows-based networks. See the [https://help.ubuntu.com/10.10/serverguide/C/windows-networking.html official Ubuntu documentation] for more information about providing services in a Windows network. A Samba server can be installed using the tasksel option during installation of the Ubuntu [[Kubuntu_Quantal_Servers#Servers|server]] from the LiveCD, or at any time using:&lt;br /&gt;
 sudo tasksel install samba-server&lt;br /&gt;
&lt;br /&gt;
* An alternative method of installation is:&lt;br /&gt;
 sudo apt-get install samba samba-tools system-config-samba smbfs&lt;br /&gt;
&lt;br /&gt;
:Note: samba-tools, system-config-samba, and smbfs are optional.&lt;br /&gt;
&lt;br /&gt;
* Modify Samba settings.&lt;br /&gt;
:*Method 1:&lt;br /&gt;
&lt;br /&gt;
:Menu -&amp;gt; System -&amp;gt; Administration -&amp;gt; Samba&lt;br /&gt;
:(Note: this is available only if you installed system-config-samba.)&lt;br /&gt;
&lt;br /&gt;
It is recommended that your user be a member of the sambashare [[Kubuntu_Quantal_User_Administration#Users_and_Groups|group]], as well.&lt;br /&gt;
&lt;br /&gt;
:* Method 2:&lt;br /&gt;
:Enable File Sharing Server With User Login (Very Reliable Method)&lt;br /&gt;
&lt;br /&gt;
:Do the following on the machine that has the files to be shared:&lt;br /&gt;
&lt;br /&gt;
::* Add current user to Samba:&lt;br /&gt;
 sudo smbpasswd -a username&lt;br /&gt;
::(replacing username with your login username)&lt;br /&gt;
&lt;br /&gt;
::* Open the samba config file:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/samba/smb.conf&lt;br /&gt;
&lt;br /&gt;
::* Add the directories to be added (right at the end) in the following format:&lt;br /&gt;
&lt;br /&gt;
 [Pictures]&lt;br /&gt;
 path = /home/username/&amp;lt;folder_to_be_shared&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::(Replace username with your username and &amp;lt;folder_to_be_shared&amp;gt; with the folder you want to share)&lt;br /&gt;
&lt;br /&gt;
::Press CTRL+X and then Y to save.&lt;br /&gt;
&lt;br /&gt;
::* Restart Samba:&lt;br /&gt;
 sudo service smbd restart&lt;br /&gt;
 sudo service nmbd restart&lt;br /&gt;
&lt;br /&gt;
:::Note: Prior versions used:&lt;br /&gt;
 sudo /etc/init.d/samba restart&lt;br /&gt;
&lt;br /&gt;
* On Windows access the folder in the following format in Windows Explorer:&lt;br /&gt;
 \\192.168.x.x&lt;br /&gt;
::(replace 192.168.x.x with the actual IP address of your server which is serving the folder)&lt;br /&gt;
&lt;br /&gt;
* On Linux type the following in Konqueror or Nautilus:&lt;br /&gt;
 smb://192.168.x.x&lt;br /&gt;
::(replace 192.168.x.x with the actual IP address of your server serving the folder)&lt;br /&gt;
&lt;br /&gt;
Note: If you use Sharing in KDE's System Settings panel, be aware that there is a small bug, reported [https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/95452 here]. In brief, you need to comment out/delete any instances of these two lines in /etc/smb.conf :&lt;br /&gt;
 case sensitive&lt;br /&gt;
 msdfs proxy&lt;br /&gt;
&lt;br /&gt;
==== Change your Workgroup ====&lt;br /&gt;
To change your Samba (Windows network) workgroup:&lt;br /&gt;
 sudo nano /etc/samba/smb.conf&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 workgroup = WORKGROUUP&lt;br /&gt;
&lt;br /&gt;
and change the setting to whatever your LAN workgroup is.&lt;br /&gt;
&lt;br /&gt;
==== Recognizing Win98 machines ====&lt;br /&gt;
Microsoft networking is extremely quirky. To enable recognition of PCs with Windows 98, edit your Samba configuration file:&lt;br /&gt;
 sudo nano /etc/samba/smb.conf&lt;br /&gt;
Then add the following lines to the file:&lt;br /&gt;
 [global]&lt;br /&gt;
 # THE LANMAN FIX&lt;br /&gt;
 client lanman auth = yes&lt;br /&gt;
 client ntlmv2 auth = no&lt;br /&gt;
&lt;br /&gt;
=== Integrating into Mac OS X Network ===&lt;br /&gt;
See [http://www.zaphu.com/2008/04/30/five-guides-on-how-to-integrate-ubuntu-into-a-mac-os-x-network/ this guide] for information on integrating Ubuntu into an existing Mac OS X Appletalk network.&lt;br /&gt;
&lt;br /&gt;
=== FTP Server ===&lt;br /&gt;
An FTP server allows the easy transfer of files between systems over the network. Clients such as [[Kubuntu_Quantal_Internet#Filezilla|Filezilla]] can be used to interact with an FTP server. Also see these [[FTP_tips|FTP tips]].&lt;br /&gt;
&lt;br /&gt;
==== vsftpd ==== &lt;br /&gt;
[http://vsftpd.beasts.org/ vsftpd] is an FTP server available in (K)Ubuntu. For configuration information, see the [https://help.ubuntu.com/12.10/serverguide/C/ftp-server.html official Ubuntu documentation]. Install:&lt;br /&gt;
 sudo apt-get install vsftpd&lt;br /&gt;
&lt;br /&gt;
==== proftpd ====&lt;br /&gt;
[http://www.proftpd.org/ Proftpd] is an FTP server available in (K)Ubuntu that can be used with either the MySQL or PostgreSQL database. Also see the [https://help.ubuntu.com/community/ProFTPD Ubuntu Community documentation]. Install:&lt;br /&gt;
 sudo apt-get install proftpd-basic&lt;br /&gt;
&lt;br /&gt;
=== WebDAV ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://en.wikipedia.org/wiki/WebDAV WebDAV] is a method for allowing remote access to local folders via an HTTP-based web browser or file manager. This can be combined with user authentication (using LDAP or other password mechanism).&lt;br /&gt;
&lt;br /&gt;
* See [[WebDAV|this page]] for instructions.&lt;br /&gt;
&lt;br /&gt;
== Local Area Network ==&lt;br /&gt;
== Modems / Dial-up ==&lt;br /&gt;
Network Manager does not accept modem connections. See [https://help.ubuntu.com/10.10/internet/C/modem.html Ubuntu help] for information on identifying and connecting with a modem. These instructions require gnome-network-admin (install while connected to a wired ethernet connection):&lt;br /&gt;
 sudo apt-get install gnome-network-admin&lt;br /&gt;
&lt;br /&gt;
=== Gnome PPP and wvdial ===&lt;br /&gt;
[http://en.wikipedia.org/wiki/Gnome-ppp Gnome PPP] is a discontinued GUI frontend for the [http://alumnit.ca/wiki/index.php?page=WvDial wvdial] PPP modem dialer. It is still available as a package. Install:&lt;br /&gt;
 sudo apt-get install gnome-ppp wvdial&lt;br /&gt;
&lt;br /&gt;
See [http://ubuntuforums.org/showthread.php?t=931872 this forum thread] for tweaks required to make Gnome PPP and wvdial operational in Lucid.&lt;br /&gt;
&lt;br /&gt;
=== GPPP ===&lt;br /&gt;
GPPP was the default modem dialing application in previous versions of Ubuntu.&lt;br /&gt;
&lt;br /&gt;
:Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; GPPP Internet Dial-up&lt;br /&gt;
&lt;br /&gt;
= Remote Access =&lt;br /&gt;
There are several methods of remote access. VNC sharing allows you to view and control a remote computer's desktop. (Windows users use a similar proprietary protocol called remote desktop protocol (RDP)). XDMCP allows a complete remote X-windows based login. Remote connections are hazardous unless proper security precautions are taken to prevent unauthorized logins and to ensure encryption of transmitted data.&lt;br /&gt;
&lt;br /&gt;
== SSH ==&lt;br /&gt;
Secure Shell or SSH is a network protocol that allows data to be exchanged over a secure channel (or &amp;quot;tunnel&amp;quot;)  between two computers. Encryption provides confidentiality and integrity of data. The OpenSSH client is installed by default in Ubuntu so you can connect to another computer that is running an SSH server.&lt;br /&gt;
&lt;br /&gt;
=== Connect to a remote SSH server ===&lt;br /&gt;
==== From the command-line terminal ====&lt;br /&gt;
Install the [http://www.openbsd.org/cgi-bin/man.cgi?query=ssh&amp;amp;sektion=1 OpenSSH] client (if not already installed):&lt;br /&gt;
 sudo apt-get install openssh-client&lt;br /&gt;
&lt;br /&gt;
From the command-line Terminal type:&lt;br /&gt;
&lt;br /&gt;
 ssh -C &amp;lt;username&amp;gt;@&amp;lt;computer name or IP address&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Note: The -C option indicates compression, which speeds up transmission through the tunnel.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
 ssh -C joe@remote.computer.xyz&lt;br /&gt;
&lt;br /&gt;
:or:&lt;br /&gt;
&lt;br /&gt;
 ssh -C mike@192.168.1.1&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
 ssh -C 192.168.1.1 -l mike&lt;br /&gt;
&lt;br /&gt;
:Note: -l specifies the login id.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the SSH server is listening on a port other than port 22 (the default), you can specify that in your connection (with the -p option). For example, if the SSH server is listening on port 11022, connect:&lt;br /&gt;
&lt;br /&gt;
 ssh -C joe.friday@remote.computer.xyz:11022&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
&lt;br /&gt;
 ssh -C remote.computer.xyz -p 11022 -l joe.friday&lt;br /&gt;
&lt;br /&gt;
If you have made a public/private key using ssh-keygen, the private key must be stored in /home/''user''/.ssh. The key should be accessible only to ''user''&lt;br /&gt;
 sudo chmod 600 /home/''user''/.ssh/identity&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
&lt;br /&gt;
 sudo chmod 600 /home/''user''/.ssh/id_rsa &lt;br /&gt;
&lt;br /&gt;
To login with the key:&lt;br /&gt;
&lt;br /&gt;
 ssh -C remote.computer.xyz -p 11022 -l joe.friday&lt;br /&gt;
&lt;br /&gt;
Note: You can run the command as a menu item, but the command must be &amp;quot;run in terminal.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Port forwarding through SSH ====&lt;br /&gt;
* See [[Using_SSH_to_Port_Forward|Using SSH to Port Forward]] for full details. &lt;br /&gt;
&lt;br /&gt;
* In brief, use &lt;br /&gt;
 ssh -C &amp;lt;remote ip&amp;gt; -p &amp;lt;SSH tunnel port&amp;gt; -L &amp;lt;local port&amp;gt;:&amp;lt;remote computer&amp;gt;:&amp;lt;remote port&amp;gt; -l &amp;lt;user&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This specifies that any communications from your computer (localhost) going out through &amp;lt;local port&amp;gt; will be transmitted securely through the the SSH tunnel port.&lt;br /&gt;
To use VNC through the tunnel, you would use an application like Krdc or Vinagre:&lt;br /&gt;
 krdc vnc://localhost:&amp;lt;local port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: ''localhost'' is equivalent to (and interchangeable with) ''127.0.0.1''. Either can be used.&lt;br /&gt;
&lt;br /&gt;
Note that for VNC, the default &amp;lt;local port&amp;gt; is 5900. In general, a remote VNC server (such as [[#X11VNC_Server|X11VNC]]) is also listening on the default &amp;lt;remote port&amp;gt; 5900 as well. The default &amp;lt;SSH tunnel port&amp;gt; is 22, as discussed above. All these can be changed, however, if you desire greater security. &lt;br /&gt;
&lt;br /&gt;
For me, I noticed that I had to set &amp;lt;remote computer&amp;gt; to be the internal LAN IP address of the remote '''computer''' (such as 192.168.1.155) instead of the remote '''router''''s IP address, which is specified in &amp;lt;remote IP&amp;gt;. (If the remote computer has a static IP address (i.e. is directly connected to the Internet without an intervening router), then &amp;lt;remote computer&amp;gt; and &amp;lt;remote ip&amp;gt; would be the same.)&lt;br /&gt;
&lt;br /&gt;
''Example'':&lt;br /&gt;
For extra security, my SSH Server uses &amp;lt;SSH tunnel port&amp;gt;=11022. I want to VNC to a remote computer on a remote LAN with a router whose IP address is &amp;lt;remote ip&amp;gt; = 244.205.123.123. The remote computer to which I want to connect has a static IP address within the remote LAN of &amp;lt;remote computer&amp;gt; = 192.168.1.155.  I have set up an [[#X11VNC_Server|X11VNC server]] on this computer that is listening on &amp;lt;remote port&amp;gt; = 6912 (instead of the default 5900). I setup port forwarding on the router of this remote LAN to forward port 6912 to this server computer. I want to VNC to this remote computer from my laptop, through the Internet. My laptop VNC client (Krdc) will use the default &amp;lt;local port&amp;gt; = 5900. My name is &amp;lt;user&amp;gt; = joe.friday. This is my story. &lt;br /&gt;
&lt;br /&gt;
 ssh -C 244.205.123.123 -p 11022 -L 5900:192.168.1.155:6912 -l joe.friday&lt;br /&gt;
 krdc vnc://localhost:5900&lt;br /&gt;
&lt;br /&gt;
If you have set up a private/ public key pair with a passphrase, or if your SSH server requires a passphrase, of course, you will be prompted for the passphrase after issuing the SSH command.&lt;br /&gt;
&lt;br /&gt;
Note: Port forwarding assumes that the ports are also forwarded through the router(s) and through any firewalls. See the documentation for your router(s) and firewall to learn how to do this. The advantage of SSH tunneling is that only the &amp;lt;SSH tunnel port&amp;gt; needs to be open and forwarded by a router. All encrypted communications will go through your router using this single port. This is what makes the communications secure.&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
[http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY] is a GTK-based GUI client-interface for SSH connections and eases the setup for port forwarding, SSH public key authentication, and automated login. A user would run Putty to create the SSH tunnel (instead of the ssh command) and then run a program such as Krdc or Vinagre. PuTTY is available for both Linux and Windows (but for routine Linux usage [[#OpenSSH Public Key Authentication|OpenSSH]] is generally recommended instead).&lt;br /&gt;
 sudo apt-get install putty putty-tools&lt;br /&gt;
&lt;br /&gt;
* To create a 2048-bit RSA key pair compatible with OpenSSH, it is possible to use [http://linux.die.net/man/1/puttygen Puttygen] (part of Putty-tools). (For me the Linux version of Puttygen is occasionally buggy, however, so I recommend [[#OpenSSH Public Key Authentication|OpenSSH keygen]] for routine usage instead):&lt;br /&gt;
 puttygen -t rsa -b 2048 -O private -o putty_rsa.ppk&lt;br /&gt;
 puttygen putty_rsa.ppk -O public-openssh -o id_rsa.pub&lt;br /&gt;
 puttygen putty_rsa.ppk -O private-openssh -o id_rsa&lt;br /&gt;
&lt;br /&gt;
* Move the OpenSSH-compatible keys to the ~/.ssh (i.e. the /home/''user''/.ssh) folder&lt;br /&gt;
 mv id_rsa* ~/.ssh&lt;br /&gt;
&lt;br /&gt;
* [[#OpenSSH Public Key Authentication|Copy the public key]] ( /home/''user''/.ssh/id_rsa.pub ) to the server that is hosting the OpenSSH server, into the /home/''serveruser''/.ssh (for whichever user is the administrative user for the server -- generally the user that installed the server initially). If the SSH tunnel is (still) set at default port 22, you can copy the key using the utility: &lt;br /&gt;
&lt;br /&gt;
 ssh-copy-id ''serveruser''@''remoteserver.computer.xyz''&lt;br /&gt;
&lt;br /&gt;
* Connect a VNC client (such as Krdc) through SSH using the command-line:&lt;br /&gt;
 putty -ssh -i ~/.ssh/id_rsa -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -P ''22''&lt;br /&gt;
 krdc vnc://127.0.0.1:5900&lt;br /&gt;
&lt;br /&gt;
:or as a single command:&lt;br /&gt;
 putty -ssh -i ~/.ssh/id_rsa -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -P ''22'' sleep 5; krdc vnc://127.0.0.1::5900&lt;br /&gt;
&lt;br /&gt;
* Alternatively, the PuTTY SSH Client GUI can be run (from Menu -&amp;gt; Internet -&amp;gt; PuTTY SSH Client) and options configured from there.&lt;br /&gt;
&lt;br /&gt;
==== Using keys created by Puttygen in OpenSSH ====&lt;br /&gt;
The public security key generated by Puttygen in Windows is generally not compatible with OpenSSH security keys unless it is edited. For example, the default OpenSSH key is 2048-bit RSA (SSH-2). When a 2048-bit RSA (SSH-2) PuTTY public/private key pair is generated (by Puttygen) in Windows (see [http://unixwiz.net/techtips/putty-openssh.html this tutorial]), the public key looks like:&lt;br /&gt;
 ---- BEGIN SSH2 PUBLIC KEY ----&lt;br /&gt;
 Comment: &amp;quot;rsa-key-20100302&amp;quot;&lt;br /&gt;
 AAAAB3NzaC1yc2EAAAABJQAAAQEAjdp567qxsGkhELlMQup2mXHdsveCWq/maU6k&lt;br /&gt;
 unPpbkwEuhkasuOrhkAWgv5v3d8S857zdHcfnXWi2FkEaJuFxqpJ2IkFuvqRdqYD&lt;br /&gt;
 ZCcASj2S0LoXdWpC4uon6VH8oBT31r+wkDfmI2a+K74jgXjtm1BWWxwOpKaWQHi9&lt;br /&gt;
 YItbY/06renRex34n3ejO20JRqD/BxnFU7ND41Szo3ZMKoa0yzhevU2ntt74BCvC&lt;br /&gt;
 bYFHdSoRbi3AH8qGInzFfhXPdrG8qA382ZKEh5Bmy8Qxb9Uen/+jjP51YxN/ykee&lt;br /&gt;
 RwSrdSCZekB6jN6uuTLNDEXJSJizqlPU8tROqf3pYv1kxzD9bw==&lt;br /&gt;
 ---- END SSH2 PUBLIC KEY ----&lt;br /&gt;
&lt;br /&gt;
* To be used by OpenSSH, the saved public key must be edited. &lt;br /&gt;
:* Delete the first two lines (with the BEGIN and Comment: in them) and the last line.&lt;br /&gt;
:* Join the remaining lines into a single line.&lt;br /&gt;
:* Place ssh-rsa at the beginning.&lt;br /&gt;
:* It should end up looking like:&lt;br /&gt;
 ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAjdp567qxsGkhELlMQup2mXHdsveCWq/maU6kunPpbkwEuhkasuOrhkAWgv5v3d8S857zdHcfnXWi2FkEaJuFxqpJ2IkFuvqRdqYDZCcASj2S0LoXdWpC4uon6VH8oBT31r+wkDfmI2a+K74jgXjtm1BWWxwOpKaWQHi9YItbY/06renRex34n3ejO20JRqD/BxnFU7ND41Szo3ZMKoa0yzhevU2ntt74BCvCbYFHdSoRbi3AH8qGInzFfhXPdrG8qA382ZKEh5Bmy8Qxb9Uen/+jjP51YxN/ykeeRwSrdSCZekB6jN6uuTLNDEXJSJizqlPU8tROqf3pYv1kxzD9bw==&lt;br /&gt;
&lt;br /&gt;
* Once the PuTTY public key is in this format, it can be appended to the ~/.ssh/authorized_keys file on the OpenSSH server. (The private key stays on the client computer, of course). PuTTY can then connect (from Windows or Linux) to an OpenSSH server using the public/private key method.&lt;br /&gt;
&lt;br /&gt;
=== Connect using SSH Agent ===&lt;br /&gt;
With SSH Agent you can automate the use of public key authentication and open an XDM or VNC session using a script. See [http://kimmo.suominen.com/docs/ssh/#ssh-agent this tutorial].&lt;br /&gt;
&lt;br /&gt;
Also see this alternative simple approach: [[#Connect with SSH and start an application with a single command|Connect with SSH and start an application with a single command]].&lt;br /&gt;
&lt;br /&gt;
=== Setup an SSH server ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Install the [https://help.ubuntu.com/10.10/serverguide/C/openssh-server.html OpenSSH] server:&lt;br /&gt;
 sudo apt-get install openssh-server&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
 sudo apt-get install tasksel&lt;br /&gt;
 sudo tasksel install openssh-server&lt;br /&gt;
&lt;br /&gt;
Note: The OpenSSH server can also be installed when doing a [[Kubuntu_Quantal_Servers#Servers|server]] installation as an option from the LiveCD.&lt;br /&gt;
&lt;br /&gt;
Note: An OpenSSH server can also be set up on a Windows server using Cygwin. See [http://pigtail.net/LRP/printsrv/cygwin-sshd.html these instructions].&lt;br /&gt;
&lt;br /&gt;
* Don't forget to forward the port on which your OpenSSH server is listening. The default SSH port is 22; if the default is used, the router should therefore forward port 22 to the computer on the LAN that is hosting the OpenSSH server. The OpenSSH listening port can be changed; in fact, each computer on the LAN can listen on its own unique SSH port, if desired. The router must forward each specified listening port to the correct computer. Therefore, if computer 1 has its OpenSSH server set to listen on port 22221, then the router should forward port 22221 to computer 1's LAN IP address. If computer 2 has its OpenSSH listening port set to 22222, then obviously the router must forward port 22222 to computer 2's LAN IP address. To change the listening port of the OpenSSH server, edit the /etc/ssh/sshd_config file (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo kate /etc/ssh/sshd_config&lt;br /&gt;
&lt;br /&gt;
and change the listening port from 22 to your desired listening port:&lt;br /&gt;
 Port ''22221''&lt;br /&gt;
&lt;br /&gt;
then restart the OpenSSH server:&lt;br /&gt;
 sudo /etc/init.d/ssh restart&lt;br /&gt;
&lt;br /&gt;
:* For greater port security (and to minimize [http://en.wikipedia.org/wiki/Brute-force_attack brute-force attacks]), consider using [[Kubuntu_Quantal_Network_Management#Knockd_.28Port_security.29|Knockd]].&lt;br /&gt;
&lt;br /&gt;
==== Limit authorized SSH users ====&lt;br /&gt;
* See [[Limit_the_user_accounts_that_can_connect_through_OpenSSH_remotely|Limit the user accounts that can connect through OpenSSH remotely]]&lt;br /&gt;
&lt;br /&gt;
==== OpenSSH Public Key Authentication ====&lt;br /&gt;
See this [http://sial.org/howto/openssh/publickey-auth/ OpenSSH Public Key Authentication Tutorial].&lt;br /&gt;
&lt;br /&gt;
In brief, it is necessary to generate a public / private key pair. On your client machine, generate the pair:&lt;br /&gt;
 ssh-keygen&lt;br /&gt;
&lt;br /&gt;
A prompt asks for a passphrase. If you wish to use OpenSSH without a password from a secure client (to which no one but you has access), leave the passphrase blank. If you enter a passphrase, you will be asked for this passphrase each time you use the SSH client.  By default, a 2048-bit RSA SSH-2 key pair is generated and stored in the /home/''user''/.ssh folder. The private key is named id_rsa and is meant to stay in that folder. (The public key is id_rsa.pub and is meant to be copied to the OpenSSH server.)&lt;br /&gt;
&lt;br /&gt;
:*The private key must only be accessible (and should be read-only) to ''user'', the owner of the file:&lt;br /&gt;
 chmod 600 /home/''user''/.ssh/id_rsa&lt;br /&gt;
&lt;br /&gt;
::You could also make the entire .ssh folder accessible only to ''user'':&lt;br /&gt;
&lt;br /&gt;
 chmod 700 /home/''user''/.ssh&lt;br /&gt;
&lt;br /&gt;
* Copy the public key ( /home/''user''/.ssh/id_rsa.pub ) to the server that is hosting the OpenSSH server, into the /home/''serveruser''/.ssh (for whichever user is the administrative user for the server -- generally the user that installed the server initially). If the SSH tunnel is (still) set at default port 22, you can copy the key using the utility:&lt;br /&gt;
 ssh-copy-id ''serveruser''@''remoteserver.computer.xyz''&lt;br /&gt;
&lt;br /&gt;
:* The ssh-copy-id utility only works over port 22. An alternative if you have changed your SSH port is to copy the /home/''user''/.ssh/id_rsa.pub key to the server manually. On the server make sure the directory /home/''serveruser''/.ssh exists and that there is a file authorized_keys (with write privileges) in that folder. If not, create such a file while logged into the server as ''serveruser'' (the touch command creates an empty file):&lt;br /&gt;
 mkdir ~/.ssh&lt;br /&gt;
 cd ~/.ssh&lt;br /&gt;
 touch authorized_keys&lt;br /&gt;
Then concatenate the id_rsa.pub key you have copied to the ~/.ssh folder. (Make sure the owner of id_rsa.pub, after copying, is ''serveruser''.):&lt;br /&gt;
 cd ~/.ssh&lt;br /&gt;
 chown ''serveruser'' id_rsa.pub&lt;br /&gt;
 cat authorized_keys id_rsa.pub &amp;gt;&amp;gt; authorized_keys&lt;br /&gt;
&lt;br /&gt;
* Make sure the OpenSSH server knows to look for the key file. On the remote server, edit the OpenSSH configuration file:&lt;br /&gt;
 sudo nano /etc/ssh/sshd_config&lt;br /&gt;
&lt;br /&gt;
:*Uncomment the line (i.e. remove the # at the beginning of the line):&lt;br /&gt;
 #AuthorizedKeysFile %h/.ssh/authorized_keys&lt;br /&gt;
&lt;br /&gt;
* Remove the ability to login to the OpenSSH server using password authentication:&lt;br /&gt;
  sudo nano /etc/ssh/sshd_config&lt;br /&gt;
&lt;br /&gt;
:*Change the line&lt;br /&gt;
 #PasswordAuthentication yes&lt;br /&gt;
:to&lt;br /&gt;
 PasswordAuthentication no&lt;br /&gt;
&lt;br /&gt;
* Restart the OpenSSH server:&lt;br /&gt;
 sudo /etc/init.d/ssh restart&lt;br /&gt;
&lt;br /&gt;
* Now you can connect securely with an SSH tunnel without requiring a password, logging in as ''serveruser''.&lt;br /&gt;
&lt;br /&gt;
 ssh -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -p ''22''&lt;br /&gt;
&lt;br /&gt;
==== Connect with SSH and start an application with a single command ====&lt;br /&gt;
* If you have created an [[#OpenSSH Public Key Authentication|OpenSSH key pair]] (without a password), you can start both the SSH tunnel and a VNC program (such as Krdc or Vinagre) to run through the SSH tunnel with a single command:&lt;br /&gt;
 ssh -f -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -p 22 sleep 5; krdc vnc://127.0.0.1::5900&lt;br /&gt;
:* Alternatively (and probably preferably) you can create a Menu Item / Shortcut with the above command.&lt;br /&gt;
&lt;br /&gt;
Note: This command is a command-line mini-script. The SSH option -f option tells the SSH client to fork into the background after starting. (This option is not available in the PuTTY client.) This allows the command line to continue to proceed to the next command(s) listed on the command line mini-script. The 5 second wait (&amp;quot;sleep&amp;quot;) timeout allows time for the SSH tunnel to be created before proceeding to the next command. (This can be lengthened if necessary.) After the wait period, the program (Krdc VNC in this example) is started.&lt;br /&gt;
&lt;br /&gt;
* Of course, any program could be started (to be run through the SSH tunnel) in this fashion, not just a VNC program.&lt;br /&gt;
&lt;br /&gt;
==== Automate SSH connections that require a password ====&lt;br /&gt;
This method is strongly advised against. Transmitting an unencrypted password through the Internet (in order to establish an SSH connection) invites password sniffing. Use the [[#OpenSSH Public Key Authentication|OpenSSH key pair]] methods described above, instead. This method is listed here for reference.&lt;br /&gt;
&lt;br /&gt;
* Terminal interactions (such as the SSH password challenge) can be automated using the [http://linux.die.net/man/1/expect expect] utility. Install:&lt;br /&gt;
 sudo apt-get install expect&lt;br /&gt;
&lt;br /&gt;
* If, for example, your SSH client ID is ''clientuserID'', yourpassword is ''not#1sostrong'', and the remote SSH server is ''remoteserver.computer.xyz'' (using the default SSH port of ''22''), then use this command to start the SSH tunnel:&lt;br /&gt;
&lt;br /&gt;
 expect -c 'spawn ssh -l clientuserID -L 5900:127.0.0.1:5901 remoteserver.computer.xyz -p 22; expect assword ; send &amp;quot;not#1sostrong\n&amp;quot; ; interact'&lt;br /&gt;
&lt;br /&gt;
There are other parameters in this example. ''5900'' and ''5901'' are the ports to be used on either side of the tunnel (port ''5900'' is used for VNC, for example). See [[#Port_forwarding_through_SSH|Port forwarding through SSH]] for more details. &lt;br /&gt;
&lt;br /&gt;
You can use the entire command as a menu item (must be &amp;quot;Run in terminal&amp;quot; in the Advanced menu options).&lt;br /&gt;
&lt;br /&gt;
== VNC ==&lt;br /&gt;
Virtual Network Computing (VNC) mirrors the desktop of a remote (&amp;quot;server&amp;quot;) computer on your local (&amp;quot;client&amp;quot;) computer (it is not a separate remote login, as is XDMCP). A user on the remote desktop must be logged in and running a VNC server (such as [[#X11VNC_Server|X11VNC]], [[#Vino Remote Desktop VNC server|Vino]], or Krfb). Keyboard and mouse events are transmitted between the two computers. VNC is platform-independent —- a VNC viewer on one operating system can usually connect to a VNC server on any other operating system. (Windows users can use one of several clients such as [http://www.uvnc.com/docs/uvnc-viewer.html UltraVNC Viewer].)&lt;br /&gt;
&lt;br /&gt;
=== Vino Remote Desktop VNC server ===&lt;br /&gt;
Vino-server (the Gnome VNC server) is included by default in Ubuntu. Start:&lt;br /&gt;
&lt;br /&gt;
:Menu -&amp;gt; System -&amp;gt; Preferences -&amp;gt; Remote Desktop&lt;br /&gt;
&lt;br /&gt;
* You can accept uninvited connections in the Security section. You can require a password for these connections.&lt;br /&gt;
* This implementation of Vino does not allow changing the default listening ports (which start at 5900). If you wish to customize your VNC connection, use [[#X11VNC_Server|X11VNC]] instead.&lt;br /&gt;
&lt;br /&gt;
* A user can connect using [[#Vinagre VNC client|Vinagre]], the [[#Terminal Server Client|Terminal Server Client]], or any other VNC client.&lt;br /&gt;
&lt;br /&gt;
==== How to securely use VNC with SSH tunneling ====&lt;br /&gt;
It is less secure to leave the VNC listening port open to the Internet, even with a password. (This can expose you to password cracking attempts.)&lt;br /&gt;
&lt;br /&gt;
It is more secure to use SSH to tunnel your VNC connection. Under [[#Port forwarding through SSH|SSH port forwarding]], the VNC listening port is the &amp;lt;remote port&amp;gt;. To increase security, this listening port can be changed from the default 5900. Only the VNC server and the SSH client need to specify the &amp;lt;remote port&amp;gt; in a secure connection.&lt;br /&gt;
&lt;br /&gt;
=== X11VNC Server ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] While Vino is easy to use, X11VNC allows far more customization and therefore can be used more in situations where greater security is needed.&lt;br /&gt;
* Install an X11VNC server to share your desktop with other computer:&lt;br /&gt;
    sudo apt-get install x11vnc&lt;br /&gt;
&lt;br /&gt;
* Run X11VNC without a password:&lt;br /&gt;
 x11vnc -forever -rfbport 5900&lt;br /&gt;
&lt;br /&gt;
:Note: -rfbport 5900 specifies the port to listen on. The port number can be changed. This option is not required if the default port 5900 will be used. Don't forget to open/forward this port in your firewall/router. By default X11VNC server exits after the first client disconnects. To keep it running (and allow future connections), use the -forever option. See [http://www.karlrunge.com/x11vnc/x11vnc_opts.html here] for more command line options.&lt;br /&gt;
&lt;br /&gt;
* Create a password to use with X11VNC:&lt;br /&gt;
 mkdir ~/.vnc&lt;br /&gt;
 x11vnc -storepasswd YOUR_PASSWORD ~/.vnc/x11vnc.pass&lt;br /&gt;
&lt;br /&gt;
* X11VNC can then be started with a password:&lt;br /&gt;
 x11vnc -forever -rfbport 5900 -rfbauth ~/.vnc/x11vnc.pass -o ~/.vnc/x11vnc.log -loopbg -display :0&lt;br /&gt;
&lt;br /&gt;
* You can create a startup script so that X11VNC is automatically loaded at startup (with password settings):&lt;br /&gt;
 echo &amp;quot;/usr/bin/x11vnc -forever -rfbport 5900 -rfbauth ~/.vnc/x11vnc.pass -o ~/.vnc/x11vnc.log -loopbg -display :0&amp;quot; &amp;gt; ~/.config/autostart/x11vnc.sh&lt;br /&gt;
 chmod +x ~/.config/autostart/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
:* You can test the startup script:&lt;br /&gt;
 ~/.config/autostart/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
==== Using VNC with SSH ====&lt;br /&gt;
See [[#Port forwarding through SSH|Port forwarding through SSH]] for additional information.&lt;br /&gt;
&lt;br /&gt;
=== Vinagre VNC client ===&lt;br /&gt;
[http://library.gnome.org/users/vinagre/stable/index.html.en Vinagre] is the default Gnome-based VNC client used in Ubuntu.&lt;br /&gt;
* Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; Remote Desktop Viewer&lt;br /&gt;
&lt;br /&gt;
=== Terminal Server Client ===&lt;br /&gt;
The Terminal Server Client is an Ubuntu/Gnome frontend for [http://www.rdesktop.org/ rdesktop] (for RDP connections to Windows computers) and one of several vncviewer clients (for VNC connections). In can be used instead of Vinagre.&lt;br /&gt;
* Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; Terminal Server Client&lt;br /&gt;
&lt;br /&gt;
* To use it with VNC, one of the VNC clients must be installed first. For example, install the [http://www.tightvnc.com/ TightVNC] client:&lt;br /&gt;
 sudo apt-get install xtightvncviewer&lt;br /&gt;
&lt;br /&gt;
:*Note that the TightVNC client can be used from the command line (or as a menu item) directly:&lt;br /&gt;
 vncviewer ''192.168.0.12''::''5900''&lt;br /&gt;
&lt;br /&gt;
:where ''192.168.0.12'' is an example ''host'' location that is running a VNC server on port 5900. For more command-line options, use&lt;br /&gt;
 man vncviewer&lt;br /&gt;
&lt;br /&gt;
=== Krdc VNC client ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Krdc is the default VNC client in Kubuntu/KDE but can be used in GNOME. It can be used for both VNC and RDP connections. Installing it will also install the Qt platform and many KDE utilities (a large download).&lt;br /&gt;
 sudo apt-get install krdc&lt;br /&gt;
&lt;br /&gt;
* Run:&lt;br /&gt;
:Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; Krdc&lt;br /&gt;
&lt;br /&gt;
* The command-line connection (for use as a menu-item, for example) is:&lt;br /&gt;
 krdc vnc://&amp;lt;remote IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If the remote (Krfp) VNC server is using a &amp;lt;remote port&amp;gt; other than the default 5900 port, use&lt;br /&gt;
 krdc vnc://&amp;lt;remote IP&amp;gt;:&amp;lt;remote port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Krdc can also connect to a Windows server using RDP (Remote Desktop Protocol). &lt;br /&gt;
 krdc rdp://&amp;lt;remote IP&amp;gt;:&amp;lt;remote port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using a VNC client with SSH ====&lt;br /&gt;
See [http://jeltsch.org/node/209 this howto] for an automated setup using a script (it did not work for me, but it might for you).&lt;br /&gt;
&lt;br /&gt;
In brief, you would initiate an [[#Port forwarding through SSH|SSH tunnel with port forwarding]] using Putty or the command line:&lt;br /&gt;
 ssh -C &amp;lt;remote ip&amp;gt; -p &amp;lt;SSH tunnel port&amp;gt; -L &amp;lt;local port&amp;gt;:&amp;lt;remote computer&amp;gt;:&amp;lt;remote port&amp;gt; -l &amp;lt;user&amp;gt;&lt;br /&gt;
::then you would start a VNC client such as Krdc:&lt;br /&gt;
 krdc vnc://localhost:&amp;lt;local port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;local port&amp;gt; will usually be the default 5900, in which case you could simply use&lt;br /&gt;
 krdc vnc://localhost&lt;br /&gt;
&lt;br /&gt;
=== XVNC4Viewer VNC Client ===&lt;br /&gt;
XVNC4Viewer is an alternative to Vinagre or the Terminal Server Client (vncviewer). Install:&lt;br /&gt;
 sudo apt-get install xvnc4viewer&lt;br /&gt;
&lt;br /&gt;
=== Automatic user login (for use with VNC) ===&lt;br /&gt;
VNC only works if a user is logged in. When a computer (hosting one or more servers) is intended to start up unattended and VNC (with or without SSH tunneling) is to be used, the computer ought to start with the primary user logged in. To accomplish this:&lt;br /&gt;
:Menu -&amp;gt; System -&amp;gt; System Settings -&amp;gt; Login Manager -&amp;gt; Convenience -&amp;gt; Enable Auto-Login (''ticked'') -&amp;gt; Lock session (''ticked'')&lt;br /&gt;
::-&amp;gt; Pre-select user: Specified: ''Choose primary user'' (i.e. the user hosting the SSH tunnel, if any, and the VNC server)&lt;br /&gt;
::-&amp;gt; Automatically log in again after X server crash (''ticked'')&lt;br /&gt;
&lt;br /&gt;
* Also make sure the VNC server is set to Autostart at bootup.&lt;br /&gt;
&lt;br /&gt;
== FreeNX ==&lt;br /&gt;
[https://help.ubuntu.com/community/FreeNX FreeNX] is a remote desktop display server/client solution that natively incorporates SSH tunneling (unlike VNC). It is therefore more secure than VNC (unless VNC is coupled with SSH tunneling).&lt;br /&gt;
&lt;br /&gt;
=== FreeNX Server ===&lt;br /&gt;
The Free server .deb package can be downloaded from [http://www.nomachine.com/select-package.php?os=linux&amp;amp;id=1 No Machine free server downloads].&lt;br /&gt;
&lt;br /&gt;
* Alternatively, [[Ubuntu:Quantal#Add Extra (K)Ubuntu Repositories|add the following repositories]]:&lt;br /&gt;
 &amp;lt;del&amp;gt;sudo add-apt-repository ppa:freenx-team&amp;lt;/del&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install the package:&lt;br /&gt;
 &amp;lt;del&amp;gt;sudo apt-get update&amp;lt;/del&amp;gt;&lt;br /&gt;
 &amp;lt;del&amp;gt;sudo apt-get install freenx&amp;lt;/del&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A FreeNX package / repository is not currently available for Quantal.&lt;br /&gt;
&lt;br /&gt;
=== FreeNX Client ===&lt;br /&gt;
Download the self-installing .deb file from [http://www.nomachine.com/select-package-client.php No Machine Client downloads].&lt;br /&gt;
&lt;br /&gt;
== XDMCP ==&lt;br /&gt;
[http://www.tldp.org/HOWTO/XDMCP-HOWTO/index.html XDMCP] allows a separate remote login by an authorized user. This login is separate from the local user.&lt;br /&gt;
*XDMCP is not secure over the Internet and should only be used within a LAN. It cannot be tunnelled through SSH. It is turned off by default in Ubuntu. To enable it, edit the configuration file:&lt;br /&gt;
&lt;br /&gt;
 gedit /etc/gdm/custom.conf&lt;br /&gt;
&lt;br /&gt;
* Find and change (or add) the line from false to true so that it reads:&lt;br /&gt;
&lt;br /&gt;
 [Xdmcp]&lt;br /&gt;
 Enable=true&lt;br /&gt;
&lt;br /&gt;
=== Telnet ===&lt;br /&gt;
SSH is, basically, secure Telnet.&lt;br /&gt;
&lt;br /&gt;
== VPN clients ==&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Virtual_private_network VPN] (Virtual Private Network) allows a secure encrypted  connection (&amp;quot;tunnelling&amp;quot;) over the Internet between a client (either standalone or on a separate LAN) and a home or corporate LAN server.&lt;br /&gt;
=== VPN through Network Manager ===&lt;br /&gt;
* The default Network Manager in Ubuntu/Kubuntu has a VPN client available. This includes support for IPSec and Cisco-compliant VPN connections. Install:&lt;br /&gt;
 sudo apt-get install network-manager-vpnc&lt;br /&gt;
&lt;br /&gt;
* To connect to a VPN network using OpenVPN (SSL), install the plugin:&lt;br /&gt;
  sudo apt-get install network-manager-openvpn&lt;br /&gt;
&lt;br /&gt;
* To connect to a VPN network using PPTP (MS Windows servers), install the plugin:&lt;br /&gt;
 sudo apt-get install network-manager-pptp&lt;br /&gt;
&lt;br /&gt;
* Configure:&lt;br /&gt;
::Network Manager icon (in system tray) -&amp;gt; VPN Connections -&amp;gt; Configure VPN&lt;br /&gt;
&lt;br /&gt;
=== vpnautoconnect (vpn daemon) ===&lt;br /&gt;
[http://sourceforge.net/projects/vpnautoconnect/ vpnautoconnect] is a daemon to allow automatic vpn connections through Network Manager. [http://sourceforge.net/projects/vpnautoconnect/files/ Download] and install the .deb package for your OS version.&lt;br /&gt;
&lt;br /&gt;
=== Other VPN clients ===&lt;br /&gt;
Standalone VPN clients based on protocol are available (but not necessary if using Network Manager):&lt;br /&gt;
:* [http://www.debuntu.org/how-to-connect-to-a-cisco-vpn-using-vpnc vpnc], [http://grml.org/online-docs/grml-vpn.8.html grml-vpn] -- for Cisco-compliant (IPSec) VPN networks&lt;br /&gt;
:* [http://www.openswan.org/ openswan] -- for IPSec (OpenSwan) VPN networks&lt;br /&gt;
:* [http://pptpclient.sourceforge.net/ pptp-linux] -- for PPTP (MS Windows-compliant) VPN networks&lt;br /&gt;
:* [http://openvpn.net/ openvpn], gadmin-openvpn-client -- for OpenSSL (OpenVPN) VPN networks&lt;br /&gt;
&lt;br /&gt;
== VPN servers ==&lt;br /&gt;
=== OpenVPN ===&lt;br /&gt;
[http://openvpn.net/ OpenVPN] is a free, GPL-licensed open-source cross-platform VPN solution based on OpenSSL (not IPSec). Install the server (then see the website for further installation instructions):&lt;br /&gt;
 sudo apt-get install openvpn bridge-utils&lt;br /&gt;
&lt;br /&gt;
A GUI configuration utility (GTK-based) is available:&lt;br /&gt;
 sudo apt-get install gadmin-openvpn-server&lt;br /&gt;
&lt;br /&gt;
Also see [[OpenVPN_server|these installation tips]].&lt;br /&gt;
&lt;br /&gt;
=== Poptop (PPTP Server) ===&lt;br /&gt;
[http://poptop.sourceforge.net/ Poptop] is a free open-source PPTP-based VPN server compatible with MS-windows PPTP clients. Install:&lt;br /&gt;
 sudo apt-get install pptpd&lt;br /&gt;
&lt;br /&gt;
=== OpenSwan ===&lt;br /&gt;
[http://www.openswan.org/ OpenSwan] is the open source implementation of IPSec-based VPN connections for Linux (and is a successor to FreeSwan). Install:&lt;br /&gt;
 sudo apt-get install openswan linux-patch-openswan&lt;br /&gt;
&lt;br /&gt;
= Security =&lt;br /&gt;
Ubuntu by default is a fairly safe system. However, if you intend to use Ubuntu as a server, or for critical applications in which loss of data (by accident or by malicious intrusion) would be disastrous, you should learn how to make Ubuntu more secure. A good introduction to [http://www.psychocats.net/ubuntu/security#bestpractices Ubuntu Security Best Practices] is available. Recommended reading includes the book ''[http://www.harpercollins.com/books/9780061962233/Cyber_War/index.aspx Cyber War]'' by [http://en.wikipedia.org/wiki/Richard_A._Clarke Richard Clark] and [http://news.cnet.com/8301-27080_3-20004505-245.html this interview] with Joe Weiss (IT advisor for the energy-sector smart grid). Also read [http://money.cnn.com/2013/04/08/technology/security/shodan/index.html?iid=HP_LN read this CNN Money article].&lt;br /&gt;
 &lt;br /&gt;
== Firewall ==&lt;br /&gt;
Network communications go through &amp;quot;channels&amp;quot; called ports. You can restrict which ports are available (&amp;quot;open&amp;quot;) for network communications, creating a barricade to unwanted network intrusion. Firewalls do this job for you. But I guarantee that if you install one before you know how to use it that one or more networking programs on your system will stop working. Read every bit of documentation about a firewall before installing it -- you won't regret the time invested. All of these packages modify [http://en.wikipedia.org/wiki/Iptables iptables], which is the set of rules that controls network access in and out of your computer. (You can modify iptables manually from the command line, as well, but if you are that much of an expert, you probably don't need this guide.) Also see the [https://help.ubuntu.com/12.04/serverguide/firewall.html official Ubuntu documentation].&lt;br /&gt;
&lt;br /&gt;
=== Firestarter ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://www.fs-security.com/ Firestarter] is an intuitive firewall manager used to set the iptables values which provide firewall capabilities in Linux (including Ubuntu). It has a very easy-to-use GUI. &lt;br /&gt;
 sudo apt-get install firestarter&lt;br /&gt;
&lt;br /&gt;
==== Firestarter fails to open system log ====&lt;br /&gt;
This is a problem in Quantal. See the [[Syslogd_to_rsyslog|solution here]].&lt;br /&gt;
&lt;br /&gt;
=== Guarddog ===&lt;br /&gt;
[http://www.simonzone.com/software/guarddog/ Guarddog] is a GUI firewall configuration utility that has been used for KDE. It has a complex array of configuration, and is difficult to use for some beginners. &lt;br /&gt;
 sudo apt-get install guarddog&lt;br /&gt;
&lt;br /&gt;
=== Uncomplicated Firewall ===&lt;br /&gt;
[http://wiki.ubuntu.com/UncomplicatedFirewall Uncomplicated Firewall] is installed in (K)Ubuntu by default, but all ports are open initially. It is configurable through the [[Kubuntu_Quantal_Introduction#General_Notes|command-line interface]]. See [http://ubuntuforums.org/showthread.php?t=823741 this forum thread], [http://www.ubuntu-unleashed.com/2008/05/howto-take-use-setup-and-advantage-of.html or this usage tutorial], or [https://help.ubuntu.com/community/UFW Ubuntu community help] for tips on how to set up and use it.&lt;br /&gt;
If not installed, it can be installed:&lt;br /&gt;
 apt-get install ufw&lt;br /&gt;
&lt;br /&gt;
==== Gufw ====&lt;br /&gt;
[http://gufw.tuxfamily.org/index.html Gufw] is a graphical user interface for Uncomplicated Firewall. Install:&lt;br /&gt;
 sudo apt-get install gufw&lt;br /&gt;
&lt;br /&gt;
== Anti-virus ==&lt;br /&gt;
* If you are running a file server, interface frequently with Windows drives or share files with Windows users, or use virtualization, you will want a virus checker for your Windows files.&lt;br /&gt;
&lt;br /&gt;
* Despite extensive minsinformation, Linux is not immune from malware (witness the explosion of malware being created for the Linux-based Google Android systems). The malware is not usually spread within the OS itself (as long as the OS is a well-respected distribution obtained through official channels), but in trojan programs downloaded and installed by users outside of the normal software distribution channels (i.e. repositories) of the OS. There is always a danger to using programs downloaded from the Internet from sources other than respected repositories -- it is the primary reason that Debian and (K)Ubuntu retain tight control over their software repositories. &lt;br /&gt;
&lt;br /&gt;
* Any file can have malware embedded in it (which is trivial to achieve by concatenation, for example: ''cat originalfile.avi malware.exe &amp;gt; originalfileplusmalware.avi''). The question is whether a user will try to open a file with a program (such as a media player) that has been compromised in a way that allows it to execute the code found in the infected media (e.g. .avi) file. This can occur not only for Windows users but for any OS (including Mac OSX and Linux) with a compromised program (e.g. media player). An example is the extensive problems the Mac OS community is currently having with the Flash player.&lt;br /&gt;
&lt;br /&gt;
* Routine scanning of any file downloaded from the Internet, any file imported from another user's computer (even a trusted source, since their attention to virus prevention may not be as compulsive as yours), or any attachment received in an email (even from a trusted sender) should be done with an anti-virus program.&lt;br /&gt;
&lt;br /&gt;
=== ClamAV ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://www.clamav.net/ ClamAV] is the open source virus tool for Linux. To install ClamAV:&lt;br /&gt;
 sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
* If an error is returned: &amp;quot;The database directory must be writable for UID 1000 or GID 1000&amp;quot; in order for the virus database to be updated, then change the ownership of the installation directory (/var/lib/clamav):&lt;br /&gt;
 sudo chown 1000 /var/lib/clamav&lt;br /&gt;
&lt;br /&gt;
==== ClamTk (ClamAV GUI) ====&lt;br /&gt;
[http://clamtk.sourceforge.net/ ClamTk] is a GTK-based GUI frontend for ClamAV. Install:&lt;br /&gt;
 sudo apt-get install clamtk&lt;br /&gt;
&lt;br /&gt;
=== AVG ===&lt;br /&gt;
[http://free.avg.com/us-en/download.prd-afl AVG] offers a free virus scanner for Linux in a .deb package. Download and install from the website.&lt;br /&gt;
=== Avast ===&lt;br /&gt;
[http://www.avast.com/linux-home-edition Avast] offers a Linux edition (for home users only) in a .deb package. Download and install from the website.&lt;br /&gt;
&lt;br /&gt;
== Anti-spam ==&lt;br /&gt;
=== Spam Assasin ===&lt;br /&gt;
[http://spamassassin.apache.org/ SpamAssasin] is written in perl, and is mostly for use with a server (such as a groupware server or Apache). Install:&lt;br /&gt;
 sudo apt-get spamassassin&lt;br /&gt;
&lt;br /&gt;
== Rootkit checkers ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/Rootkit Rootkits] are malicious [http://en.wikipedia.org/wiki/Trojan_horse_(computing) trojan]-like programs to allow an intruder to become a root user and therefore have complete administrative control over the system. There aren't many rootkits in the wild for Linux. Still, this is a growing security problem (especially in other operating systems) and it is a matter of time before more rootkits appear in Linux. Checking for rootkits isn't always successful from a system that is already infected. Your rootkit checker should therefore be run from another system, or a [[Kubuntu_Quantal_System_Backup#Run_.28K.29Ubuntu_LiveCD_from_a_USB_pendrive|USB pendrive with an Ubuntu LiveCD installation]]. See the rootkit checker manuals for instructions how to do this. If you are infected with a rootkit, you must backup all your files and re-install your system. (Thank goodness this is easy with Ubuntu, unlike with other operating systems).&lt;br /&gt;
=== Chkrootkit ===&lt;br /&gt;
[http://www.chkrootkit.org/ Chkrootkit] checks locally for signs of a rootkit. See the [http://www.chkrootkit.org/README chkrootkit manual] for usage instructions.&lt;br /&gt;
:Install:&lt;br /&gt;
 sudo apt-get install chkrootkit&lt;br /&gt;
:Run:&lt;br /&gt;
 sudo chkrootkit&lt;br /&gt;
&lt;br /&gt;
=== Rootkit Hunter ===&lt;br /&gt;
[http://www.rootkit.nl/projects/rootkit_hunter.html Rootkit Hunter] is compatible with (K)Ubuntu systems. See the [http://sourceforge.net/docman/display_doc.php?docid=35179&amp;amp;group_id=155034 usage instructions].&lt;br /&gt;
:Install:&lt;br /&gt;
 sudo apt-get install rkhunter&lt;br /&gt;
:Run:&lt;br /&gt;
 sudo rkhunter&lt;br /&gt;
&lt;br /&gt;
=== Malicious commands to avoid ===&lt;br /&gt;
There are many [[Malicious_Linux_Commands|malicious commands]] to be avoided in Linux (as in all operating systems). It is worthwhile to be aware of these dangerous commands so that they are not executed by accident or by malicious advice.&lt;br /&gt;
&lt;br /&gt;
== USB drives ==&lt;br /&gt;
USB drives are a major source of security risk and means of data theft.&lt;br /&gt;
&lt;br /&gt;
* An administrator password should be set for the computer BIOS and booting from a USB drive or CD/DVD should be disabled. (Otherwise, any passerby can boot their own OS and then use it to steal data from the hard drive.)&lt;br /&gt;
&lt;br /&gt;
* See [http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/ this article] for methods of restricting USB usage to authorized users.&lt;br /&gt;
&lt;br /&gt;
== Prevent unauthorized boots and system access ==&lt;br /&gt;
Many computers are kept in places where casual passersby may have an opportunity to access the computer, unobserved for short periods. In addition to physical precautions to prevent or slow computer theft (such as locked cases, alarms, and security cables similar to those used to slow bicycle theft), [http://www.pcworld.com/article/114727/lock_down_your_pc.html precautions] should be taken to prevent an unauthorized operating system from being booted using an external device (such as USB drive). Once such as external OS is booted, it can be used to access most hard drive(s) on the computer and the contents copied to a second external device (to be examined or unencrypted later). This is a common means of data theft that is fast and easy to accomplish, and means to deter it should be taken on any public or semi-public computer.&lt;br /&gt;
&lt;br /&gt;
* Set BIOS to restrict bootup to the hard drive only.&lt;br /&gt;
:* Set a Supervisor/Administrator password for your computer's BIOS. (I recommend writing it down and taping it to the inside cover of the computer case prior to locking the computer case.) Disable booting from all devices except the hard drive. Setting the hard drive as the first priority boot device is not enough, as most current BIOS menus allow manual selection of any enabled boot devices. Only the hard drive should be left enabled.&lt;br /&gt;
&lt;br /&gt;
* Enable Hard Drive locking, if your computer's BIOS allows it. Most hard drives allow a password to be set by the BIOS and stored in a chip on the hard drive controller which can only be reset by disassembling the hard drive. (Some manufacturers provide a backdoor security key, however.) BIOS versions found on newer computers/laptops allow this password to be set in the BIOS, so that only a BIOS containing the correct password can unlock the hard drive. (If the hard drive is then removed from the computer, it cannot be accessed by any BIOS that does not have the correct password or backdoor security key.) Note, however, that this precaution does not protect against booting from external devices if the BIOS is still set to allow that.&lt;br /&gt;
:* There is a risk to this security measure. If you forget the password and the BIOS passwords somehow get reset, the hard drive would become inaccessible. The BIOS and Hard Drive password(s) should always be stored in a safe location.&lt;br /&gt;
&lt;br /&gt;
* Password protect the Grub bootloader. Without password protection, Grub can be used to circumvent BIOS restrictions. See this section for [[Kubuntu_Quantal_System_Administration#Protecting_Grub_Legacy_from_cracking|Grub Legacy]] and this section for [[Kubuntu_Quantal_System_Administration#Protecting_Grub2_from_cracking|Grub2]].&lt;br /&gt;
&lt;br /&gt;
* Make sure all user accounts are protected by a [[Kubuntu_Quantal_Privacy#Passwords_and_file_authentication|password]], and always require passwords for login. Never create an &amp;quot;administrator&amp;quot; user account (hidden or not) and leave it unprotected by a password. Never enable automatic login without a password to any user account.&lt;br /&gt;
:* It is possible to enable [[Kubuntu_Quantal_Tips#Automatic_user_login|automatic login]] to a preferred password-protected user account while simultaneously enabling a password-protected screensaver (the password for which must still be entered even before initial user access). This is a reasonable solution that offers protection while still allowing automatic login.&lt;br /&gt;
&lt;br /&gt;
* Make sure a password-protected [[Kubuntu_Quantal_Utilities#Screensavers|screensaver]] is always enabled (that will engage after a reasonably short period of inactivity).&lt;/div&gt;</description>
			<pubDate>Sun, 19 May 2013 12:22:16 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:K_Quantal/Networking</comments>		</item>
		<item>
			<title>Template:K Raring/Networking</title>
			<link>http://easylinux.info/wiki/Template:K_Raring/Networking</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Prevent unauthorized boots and system access */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Networking =&lt;br /&gt;
Only one network manager and GUI interface can be enabled. Network-Manager is installed by default and works for both wired and wireless connections, and for both static and dynamic (DHCP-assigned) IP addresses. In the past, some users have preferred the [http://wicd.sourceforge.net/ Wicd] network manager, however, and it can be installed instead.&lt;br /&gt;
&lt;br /&gt;
== Network Manager ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/NetworkManager Network Manager] is the network manager installed by default in (K)Ubuntu. It has a tray applet that allows you to switch between Internet connections (such as wireless APs or a wired connection).&lt;br /&gt;
&lt;br /&gt;
* After installation on my system with a wired ethernet connection and manual settings for /etc/network/interfaces, Network Manager was disabled by default (&amp;quot;unmanaged&amp;quot;) at installation. To activate Network Manager and allow it to manage networking settings, I edited a file (following the advice in [http://ubuntuforums.org/showthread.php?t=1451064 this thread]):&lt;br /&gt;
 kdesudo kate /etc/NetworkManager/NetworkManager.conf&lt;br /&gt;
&lt;br /&gt;
and changed the following section so that it read ''true'' instead of ''false'':&lt;br /&gt;
 [ifupdown]&lt;br /&gt;
 managed=true&lt;br /&gt;
&lt;br /&gt;
Also, I double checked the /var/lib/NetworkManager/NetworkManager.state file to make sure that Networking was enabled: &lt;br /&gt;
 [main]&lt;br /&gt;
 NetworkingEnabled=true&lt;br /&gt;
&lt;br /&gt;
I then restarted Network Manager:&lt;br /&gt;
 sudo /etc/init.d/network-manager restart&lt;br /&gt;
&lt;br /&gt;
* When using Network Manager to manage the settings, the default setting is to obtain an IP address from the DHCP server on the network. However, I customised the Wired Connection to accept my static IP address as a &amp;quot;manual&amp;quot; (IPv4) IP address and set my custom DNS servers (I don't use the DNS servers of my ISP for security reasons) and a random MAC address (which I change periodically to limit tracking). &lt;br /&gt;
&lt;br /&gt;
* Raring is the first version of Kubuntu in which Network Manager reliably worked for me on both wired and wireless connections. When installing on a laptop with a wireless connection, it worked (in DHCP mode) without any additional configuration. Settings could then be set through the Network Manager plasma widget on the panel bar, including the ability to manually configure a static IP address for the wireless connection, as well.&lt;br /&gt;
&lt;br /&gt;
== Wicd Network Manager ==&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://wicd.sourceforge.net/ Wicd Network Manager] is a GTK-dependent networking manager written in Python that can be used in all variants of (K)Ubuntu. To avoid networking conflicts, Wicd requires the removal of Network Manager prior to installation.&lt;br /&gt;
 sudo apt-get remove network-manager network-manager-pptp plasma-widget-networkmanagement network-manager-kde  &lt;br /&gt;
 sudo reboot&lt;br /&gt;
 sudo apt-get install wicd&lt;br /&gt;
&lt;br /&gt;
Note: You must have a wired connection in order to install Wicd. Either install it prior to removing Network Manager or be sure the /etc/network/interfaces configuration file is properly configured manually so the default network interface allows you to access the Internet through a wired connection:&lt;br /&gt;
 kdesudo kate /etc/network/interfaces&lt;br /&gt;
&lt;br /&gt;
and remove the ''#NetworkManager#'' comments, if present and makes sure the file contents resemble:&lt;br /&gt;
&lt;br /&gt;
 # The loopback network interface&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
 #&lt;br /&gt;
 # The primary network interface&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet dhcp&lt;br /&gt;
&lt;br /&gt;
Then restart networking:&lt;br /&gt;
 sudo /etc/init.d/networking restart&lt;br /&gt;
&lt;br /&gt;
This restores the default networking, and then Wicd can be installed. Once Wicd is installed, the connection settings can be changed through Wicd.&lt;br /&gt;
&lt;br /&gt;
== Set a static IP address ==&lt;br /&gt;
* Raring is the first version of Kubuntu in which I have been able to get Network Manager to accept my static IP address settings (for both wired and wireless connections).&lt;br /&gt;
:Network Manager -&amp;gt; Manage Connections... -&amp;gt; ''connection'' -&amp;gt; Edit... -&amp;gt; IPv4 address -&amp;gt; Method: Manual -&amp;gt; IP Address: ''192.168.0.111'' -&amp;gt; Subnet Mask: ''255.255.255.0'' -&amp;gt; Gateway: ''192.168.0.1'' -&amp;gt; OK&lt;br /&gt;
&lt;br /&gt;
:I also add the DNS servers I like to use (I don't use the DNS servers of my ISP for [[Kubuntu_Raring_Privacy#DNS_Servers_and_Search_engines|security]] reasons).&lt;br /&gt;
&lt;br /&gt;
* If you only use only a wired interface, you do not need a network manager and it can be removed if desired. Doing so requires configuring the networking settings manually.&lt;br /&gt;
&lt;br /&gt;
:* &amp;lt;!---&amp;gt;Remove Network Manager (replace ''network-manager-kde'' with ''network-manager'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo apt-get remove network-manager-kde plasma-widget-networkmanager network-manager network-manager-pptp&lt;br /&gt;
 sudo reboot&amp;lt;---&amp;gt;In Raring, Network Manager does not need to be removed if manual settings are used in /etc/network/interfaces. To allow the settings to take effect (and the network connection to be &amp;quot;unmanaged&amp;quot; by Network Manager), edit /etc/NetworkManager/NetworkManager.conf:&lt;br /&gt;
&lt;br /&gt;
 sudo kate /etc/NetworkManager/NetworkManager.conf&lt;br /&gt;
&lt;br /&gt;
and change the following section so that it reads ''false'':&lt;br /&gt;
 [ifupdown]&lt;br /&gt;
 managed=''false''&lt;br /&gt;
&lt;br /&gt;
Then restart Network Manager:&lt;br /&gt;
 sudo /etc/init.d/network-manager restart&lt;br /&gt;
&lt;br /&gt;
:* Edit the /etc/network/interfaces file (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo kate /etc/network/interfaces&lt;br /&gt;
&lt;br /&gt;
:* and replace the line (ok if line is missing)&lt;br /&gt;
 iface eth0 inet dhcp&lt;br /&gt;
&lt;br /&gt;
:* with the following lines (using your own LAN settings and desired DNS-nameservers, of course):&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 address 192.168.0.35&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 network 192.168.0.0&lt;br /&gt;
 broadcast 192.168.0.255&lt;br /&gt;
 gateway 192.168.0.1&lt;br /&gt;
 dns-nameservers 8.26.56.26 208.67.222.222 8.20.247.20 208.67.220.220 8.8.8.8 8.8.4.4&lt;br /&gt;
&lt;br /&gt;
:* Then restart networking:&lt;br /&gt;
 sudo /etc/init.d/networking restart&lt;br /&gt;
&lt;br /&gt;
:* Check to see if your settings are now correct:&lt;br /&gt;
 ifconfig&lt;br /&gt;
&lt;br /&gt;
* The [[#Wicd_Network_Manager|Wicd]] network manager also allows a wireless connection to have a static IP.&lt;br /&gt;
&lt;br /&gt;
=== Manual configuration from the command-line ===&lt;br /&gt;
&lt;br /&gt;
3 steps for WEP:&lt;br /&gt;
&lt;br /&gt;
 sudo iwconfig eth[N] essid [SSID]&lt;br /&gt;
 sudo iwconfig eth[N] key restricted s:[PASSWORD]&lt;br /&gt;
 sudo dhclient&lt;br /&gt;
&lt;br /&gt;
WPA is more complicated:&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir /etc/wpa_supplicant&lt;br /&gt;
 cd /etc/wpa_supplicant&lt;br /&gt;
 sudo echo network = { &amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo ssid=&amp;quot;SSID&amp;quot; &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo key_mgmt=WPA-PSK &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo psk=&amp;quot;PRESHAREDKEY&amp;quot; &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 sudo echo } &amp;gt;&amp;gt; wpa_supplicant.conf&lt;br /&gt;
 cd /etc/network&lt;br /&gt;
 sudo gedit interfaces&lt;br /&gt;
&lt;br /&gt;
Now add after &amp;quot;auto eth[N] ...&amp;quot; &amp;amp; &amp;quot;iface eth[N] ..&amp;quot; :&lt;br /&gt;
&lt;br /&gt;
 wpa-driver wext # or whatever driver your network card needs&lt;br /&gt;
 wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf&lt;br /&gt;
&lt;br /&gt;
Save the file and restart your system.&lt;br /&gt;
&lt;br /&gt;
== Internet connection sharing (DHCP server) ==&lt;br /&gt;
In most LANs, an inexpensive router is used to provide [http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol DHCP] functions (internet connection sharing). &lt;br /&gt;
&lt;br /&gt;
However, DHCP services can also be provided by a single host computer on your [http://en.wikipedia.org/wiki/Local_area_network LAN] if it is directly connected to the Internet. (This is useful, for instance, if you have a 3G or other wireless EVDO connection to your computer which you want to share with the other computers on your LAN). Other client computers on your LAN would then connect to the Internet through your host computer's Internet connection. The host computer now essentially performs the DHCP functions of a router.&lt;br /&gt;
&lt;br /&gt;
All &amp;quot;client&amp;quot; computers on the LAN ought to be connected to a central LAN switch or router. (If using a router, it should have its own DHCP functions disabled -- you shouldn't have 2 DHCP servers on a LAN unless you know how to [[#Using a nested wireless LAN router|nest LANs]]). They should all be set up to obtain DHCP-assigned dynamic IP addresses and use the same LAN subnet settings (which in the example below is LAN IP range ''10.0.0.1 - 10.0.0.250'' with netmask ''255.255.255.0'' and gateway ''10.0.0.1''). The host computer to be used as the gateway/DHCP server is then connected (through its own ethernet port) either to one to the ports of the switch (if used), or to a LAN port of a router (don't use the WAN port). The host computer then connects directly to the Internet ([http://en.wikipedia.org/wiki/Wide_area_network WAN]) through a second port (which in the example below will be a wireless (wifi) port (wlan0)). &lt;br /&gt;
&lt;br /&gt;
(Note: This setup is easiest if you connect all computers on the LAN with Ethernet cables to the central switch or router. But also see [[#Using a nested wireless LAN router|using a nested wireless LAN router]] below.)&lt;br /&gt;
&lt;br /&gt;
(Note: If you want your LAN to use the same subnet as your WAN, see [[#Network Interfaces Bridging|network interface bridging]].)&lt;br /&gt;
&lt;br /&gt;
* Install the DHCP server and firewall programs:&lt;br /&gt;
 sudo apt-get install dhcp3-server firestarter&lt;br /&gt;
&lt;br /&gt;
* Rename the startup command (through a symbolic link) for the DHCP server. This is required or Firestarter will not know where to find it:&lt;br /&gt;
 sudo ln -sf /etc/init.d/dhcp3-server /etc/init.d/dhcpd&lt;br /&gt;
&lt;br /&gt;
* Edit the DHCP server configuration file:&lt;br /&gt;
 sudo nano -w /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
::Change the line&lt;br /&gt;
 INTERFACES=&amp;quot;&amp;quot;&lt;br /&gt;
::to&lt;br /&gt;
 INTERFACES=&amp;quot;eth0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Restart the DHCP server:&lt;br /&gt;
 sudo dhcpd restart&lt;br /&gt;
&lt;br /&gt;
* Right click on Network-Manager -&amp;gt; Edit Connections... -&amp;gt; Wired -&amp;gt; Add&lt;br /&gt;
: -&amp;gt; Connection name: ''Shared internet connection''&lt;br /&gt;
: -&amp;gt; IPv4 Settings -&amp;gt; Method: Manual -&amp;gt; Add&lt;br /&gt;
: -&amp;gt; Address: ''10.0.0.1'' -&amp;gt; Netmask: ''255.255.255.0'' -&amp;gt; Gateway: 0.0.0.0&lt;br /&gt;
: -&amp;gt; Available to all users: [x]&lt;br /&gt;
&lt;br /&gt;
* Attach the ethernet cable to (eth0).&lt;br /&gt;
:Network-Manager -&amp;gt; Wired Networks -&amp;gt; ''Shared internet connection''&lt;br /&gt;
&lt;br /&gt;
* Adjust your firewall to allow the internet connection sharing. Start Firestarter: &lt;br /&gt;
 sudo firestarter&lt;br /&gt;
&lt;br /&gt;
:* Tell the firewall which port is your direct Internet Connection:&lt;br /&gt;
Firestarter -&amp;gt; Preferences -&amp;gt; Firewall -&amp;gt; Network Settings -&amp;gt; &lt;br /&gt;
Internet connected network device: (wlan0)&lt;br /&gt;
:-&amp;gt; IP address is assigned by DHCP: [x]&lt;br /&gt;
&lt;br /&gt;
:* Tell the firewall which port is for the LAN, and specify the details for the LAN:&lt;br /&gt;
Firestarter -&amp;gt; Preferences -&amp;gt; Firewall -&amp;gt; Network Settings -&amp;gt; &lt;br /&gt;
Local network connected device: (eth0) &lt;br /&gt;
:-&amp;gt; Enable internet connection sharing: [x]&lt;br /&gt;
:-&amp;gt; Enable DHCP for the local network: [x]&lt;br /&gt;
:: -&amp;gt; DHCP server details -&amp;gt; Create new DHCP configuration -&amp;gt; Lowest IP address to assign: ''10.0.0.2''&lt;br /&gt;
:: -&amp;gt; Highest IP address to assign: ''10.0.0.250'' -&amp;gt; Name server: &amp;lt;dynamic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Note: Use your own desired LAN settings (internal [http://en.wikipedia.org/wiki/Static_IP#Static_and_dynamic_IP_addresses DHCP-assigned dynamic IP] address range), of course. In this example I don't use the full IP range ''10.0.0.2 - 10.0.0.255'' for dynamic IP addresses because I want to reserve some LAN addresses (''10.0.0.251 - 10.0.0.255'') to be used as static IP addresses).&lt;br /&gt;
&lt;br /&gt;
* Notes:&lt;br /&gt;
:* If you wish to use this setup all the time, make the &amp;quot;''Shared internet connection''&amp;quot; profile your default connection profile in Network Manager.&lt;br /&gt;
&lt;br /&gt;
=== Using a nested wireless LAN router ===&lt;br /&gt;
Many users will already have an established LAN that uses an existing wireless router and has client computers that are setup to connect wirelessly to the router. Here's how to maintain this setup and still use the internet connection sharing method of a single host computer as described above. This method is known as '''nested LANs'''. The wireless router will serve as a nested LAN for its wireless clients (only), but in turn will appear as a single device to the main LAN. The two LANs must have different IP ranges. For example, the main LAN may have an IP range ''10.0.0.1 - 10.0.0.255'' (with netmask ''255.255.255.0''), as in the above example. The router's nested wireless LAN must then use a different IP range (for example ''192.168.0.1 - 192.168.0.255'' with netmask ''255.255.255.0''). &lt;br /&gt;
&lt;br /&gt;
* Do not use your wireless router's WAN (Internet) port.&lt;br /&gt;
* Connect the host computer (to be used as your main LAN gateway/router) to a LAN port (not the WAN/Internet port) of the wireless LAN router.&lt;br /&gt;
* Configure your wireless router's LAN so that it appears to be a ''single device'' to the main LAN:&lt;br /&gt;
:* Setup your wireless router so that the Internet Connection type is &amp;quot;Static IP&amp;quot; (often in the &amp;quot;Internet Setup&amp;quot; section). Configure the settings so that its &amp;quot;Internet IP address&amp;quot; is within the static IP address range of your main LAN (e.g. ''10.0.0.254''), and make sure the subnet mask matches the one you chose for your main LAN (e.g. ''255.255.255.0''). The gateway setting should be set to match the IP address of your host computer of the main LAN (e.g. ''10.0.0.1'' in the example of the preceding section). Now the wireless router will appear to the host computer as just another device on the main LAN. &lt;br /&gt;
:* If your wireless LAN is already functioning, you probably don't have to change any settings, but double-check to make sure the schema are compatible. Configure the wireless router's settings for the nested wireless LAN. This is done by enabling the router's DHCP server functions (in &amp;quot;Network Setup&amp;quot; or some similar configuration section of the router). The router ought to have as its own wireless LAN gateway address a &amp;quot;local IP address&amp;quot; (or &amp;quot;LAN IP address&amp;quot;) of ''192.168.0.1'' (for the IP address range used in this example), and a &amp;quot;starting IP address&amp;quot; (for the DHCP-assigned dynamic IP address range to be used for the wireless clients) to be ''192.168.0.2'' or greater. (Some routers ask you to specify the entire range (such as ''192.168.0.2 - 192.168.0.255''.)&lt;br /&gt;
* Make sure all your wireless client computers are set to obtain their DHCP-assigned dynamic IP addresses from the wireless router (gateway IP ''192.168.0.1'') instead of from the main LAN gateway. &lt;br /&gt;
* Now all communications from the wireless client computers will be routed to the wireless LAN router first, which will then in turn route them to the host computer (which is acting as the main LAN gateway/router), which will then in turn route them to the Internet (WAN). &lt;br /&gt;
* Note: The host computer for the main LAN must have a static IP address (e.g. ''10.0.0.1'' as in the example of the preceding section) and it must match the gateway IP address configured in the wireless LAN router settings.&lt;br /&gt;
&lt;br /&gt;
=== Network Interfaces Bridging ===&lt;br /&gt;
* Install bridge-utils to be able to create network bridges:&lt;br /&gt;
 sudo apt-get install bridge-utils&lt;br /&gt;
&lt;br /&gt;
* Edit /etc/network/interfaces:&lt;br /&gt;
 sudo nano /etc/network/interfaces&lt;br /&gt;
&lt;br /&gt;
The interfaces file should look like this after editing it:&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet manual&lt;br /&gt;
 #&lt;br /&gt;
 auto br0&lt;br /&gt;
 iface br0 inet dhcp&lt;br /&gt;
 #&lt;br /&gt;
 bridge_ports eth0 wlan0&lt;br /&gt;
 #&lt;br /&gt;
 # The loopback network interface&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
&lt;br /&gt;
* Restart networking with:&lt;br /&gt;
 sudo /etc/init.d/networking restart&lt;br /&gt;
&lt;br /&gt;
== Using Dynamic IP addresses for a webserver ==&lt;br /&gt;
Normally, domain name servers (DNS) that are used publicly on the Internet match a web server's URL name with the IP address of the server's host computer. If your computer has a [http://en.wikipedia.org/wiki/IP_address#IP_address_assignment static IP address], then you can publish your own web server's URL as belonging to the static, unchanging IP address of your computer.&lt;br /&gt;
&lt;br /&gt;
However, if your IP address is [http://en.wikipedia.org/wiki/IP_address#IP_address_assignment dynamic] (always changing) because you use an ISP (Internet Service Provider) that constantly changes your IP address (using DHCP), then you will need a Dynamic DNS service to constantly keep track of your dynamically changing IP address and match it to of your web server's URL. Fortunately, there are a few Dynamic DNS services that will do this for you, either for a small fee or even for free. For more info, see [https://help.ubuntu.com/community/DynamicDNS this Ubuntu Community help] article.&lt;br /&gt;
&lt;br /&gt;
For specific tips on setting up Dynamic DNS, see [[Dynamic IP servers|this article]].&lt;br /&gt;
&lt;br /&gt;
== Filesharing ==&lt;br /&gt;
&lt;br /&gt;
=== NFS ===&lt;br /&gt;
NFS is the default networking protocol for network file sharing in *nix systems (including (K)Ubuntu Linux). Here are some tips for setting up NFS from the [http://mostlylinux.wordpress.com/network/nfshowto/ Little Girl's Mostly Linux Blog].&lt;br /&gt;
&lt;br /&gt;
=== Samba File Sharing ===&lt;br /&gt;
&lt;br /&gt;
==== Samba client ====&lt;br /&gt;
Samba is a networking protocol that allows compatibility with Windows-based networks. The Samba client is installed by default in Ubuntu and should work seamlessly (unless you have have a firewall blocking the ports).&lt;br /&gt;
&lt;br /&gt;
==== Samba server ====&lt;br /&gt;
[http://www.samba.org/ Samba] provides file/print services for the SMB/CIFS protocol used in Windows-based networks. See the [https://help.ubuntu.com/10.10/serverguide/C/windows-networking.html official Ubuntu documentation] for more information about providing services in a Windows network. A Samba server can be installed using the tasksel option during installation of the Ubuntu [[Kubuntu_Raring_Servers#Servers|server]] from the LiveCD, or at any time using:&lt;br /&gt;
 sudo tasksel install samba-server&lt;br /&gt;
&lt;br /&gt;
* An alternative method of installation is:&lt;br /&gt;
 sudo apt-get install samba samba-tools system-config-samba smbfs&lt;br /&gt;
&lt;br /&gt;
:Note: samba-tools, system-config-samba, and smbfs are optional.&lt;br /&gt;
&lt;br /&gt;
* Modify Samba settings.&lt;br /&gt;
:*Method 1:&lt;br /&gt;
&lt;br /&gt;
:Menu -&amp;gt; System -&amp;gt; Administration -&amp;gt; Samba&lt;br /&gt;
:(Note: this is available only if you installed system-config-samba.)&lt;br /&gt;
&lt;br /&gt;
It is recommended that your user be a member of the sambashare [[Kubuntu_Raring_User_Administration#Users_and_Groups|group]], as well.&lt;br /&gt;
&lt;br /&gt;
:* Method 2:&lt;br /&gt;
:Enable File Sharing Server With User Login (Very Reliable Method)&lt;br /&gt;
&lt;br /&gt;
:Do the following on the machine that has the files to be shared:&lt;br /&gt;
&lt;br /&gt;
::* Add current user to Samba:&lt;br /&gt;
 sudo smbpasswd -a username&lt;br /&gt;
::(replacing username with your login username)&lt;br /&gt;
&lt;br /&gt;
::* Open the samba config file:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/samba/smb.conf&lt;br /&gt;
&lt;br /&gt;
::* Add the directories to be added (right at the end) in the following format:&lt;br /&gt;
&lt;br /&gt;
 [Pictures]&lt;br /&gt;
 path = /home/username/&amp;lt;folder_to_be_shared&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::(Replace username with your username and &amp;lt;folder_to_be_shared&amp;gt; with the folder you want to share)&lt;br /&gt;
&lt;br /&gt;
::Press CTRL+X and then Y to save.&lt;br /&gt;
&lt;br /&gt;
::* Restart Samba:&lt;br /&gt;
 sudo service smbd restart&lt;br /&gt;
 sudo service nmbd restart&lt;br /&gt;
&lt;br /&gt;
:::Note: Prior versions used:&lt;br /&gt;
 sudo /etc/init.d/samba restart&lt;br /&gt;
&lt;br /&gt;
* On Windows access the folder in the following format in Windows Explorer:&lt;br /&gt;
 \\192.168.x.x&lt;br /&gt;
::(replace 192.168.x.x with the actual IP address of your server which is serving the folder)&lt;br /&gt;
&lt;br /&gt;
* On Linux type the following in Konqueror or Nautilus:&lt;br /&gt;
 smb://192.168.x.x&lt;br /&gt;
::(replace 192.168.x.x with the actual IP address of your server serving the folder)&lt;br /&gt;
&lt;br /&gt;
Note: If you use Sharing in KDE's System Settings panel, be aware that there is a small bug, reported [https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/95452 here]. In brief, you need to comment out/delete any instances of these two lines in /etc/smb.conf :&lt;br /&gt;
 case sensitive&lt;br /&gt;
 msdfs proxy&lt;br /&gt;
&lt;br /&gt;
==== Change your Workgroup ====&lt;br /&gt;
To change your Samba (Windows network) workgroup:&lt;br /&gt;
 sudo nano /etc/samba/smb.conf&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 workgroup = WORKGROUUP&lt;br /&gt;
&lt;br /&gt;
and change the setting to whatever your LAN workgroup is.&lt;br /&gt;
&lt;br /&gt;
==== Recognizing Win98 machines ====&lt;br /&gt;
Microsoft networking is extremely quirky. To enable recognition of PCs with Windows 98, edit your Samba configuration file:&lt;br /&gt;
 sudo nano /etc/samba/smb.conf&lt;br /&gt;
Then add the following lines to the file:&lt;br /&gt;
 [global]&lt;br /&gt;
 # THE LANMAN FIX&lt;br /&gt;
 client lanman auth = yes&lt;br /&gt;
 client ntlmv2 auth = no&lt;br /&gt;
&lt;br /&gt;
=== Integrating into Mac OS X Network ===&lt;br /&gt;
See [http://www.zaphu.com/2008/04/30/five-guides-on-how-to-integrate-ubuntu-into-a-mac-os-x-network/ this guide] for information on integrating Ubuntu into an existing Mac OS X Appletalk network.&lt;br /&gt;
&lt;br /&gt;
=== FTP Server ===&lt;br /&gt;
An FTP server allows the easy transfer of files between systems over the network. Clients such as [[Kubuntu_Raring_Internet#Filezilla|Filezilla]] can be used to interact with an FTP server. Also see these [[FTP_tips|FTP tips]].&lt;br /&gt;
&lt;br /&gt;
==== vsftpd ==== &lt;br /&gt;
[http://vsftpd.beasts.org/ vsftpd] is an FTP server available in (K)Ubuntu. For configuration information, see the [https://help.ubuntu.com/12.10/serverguide/C/ftp-server.html official Ubuntu documentation]. Install:&lt;br /&gt;
 sudo apt-get install vsftpd&lt;br /&gt;
&lt;br /&gt;
==== proftpd ====&lt;br /&gt;
[http://www.proftpd.org/ Proftpd] is an FTP server available in (K)Ubuntu that can be used with either the MySQL or PostgreSQL database. Also see the [https://help.ubuntu.com/community/ProFTPD Ubuntu Community documentation]. Install:&lt;br /&gt;
 sudo apt-get install proftpd-basic&lt;br /&gt;
&lt;br /&gt;
=== WebDAV ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://en.wikipedia.org/wiki/WebDAV WebDAV] is a method for allowing remote access to local folders via an HTTP-based web browser or file manager. This can be combined with user authentication (using LDAP or other password mechanism).&lt;br /&gt;
&lt;br /&gt;
* See [[WebDAV|this page]] for instructions.&lt;br /&gt;
&lt;br /&gt;
== Local Area Network ==&lt;br /&gt;
&lt;br /&gt;
== Modems / Dial-up ==&lt;br /&gt;
Network Manager does not accept modem connections. See [https://help.ubuntu.com/10.10/internet/C/modem.html Ubuntu help] for information on identifying and connecting with a modem. These instructions require gnome-network-admin (install while connected to a wired ethernet connection):&lt;br /&gt;
 sudo apt-get install gnome-network-admin&lt;br /&gt;
&lt;br /&gt;
=== Gnome PPP and wvdial ===&lt;br /&gt;
[http://en.wikipedia.org/wiki/Gnome-ppp Gnome PPP] is a discontinued GUI frontend for the [http://alumnit.ca/wiki/index.php?page=WvDial wvdial] PPP modem dialer. It is still available as a package. Install:&lt;br /&gt;
 sudo apt-get install gnome-ppp wvdial&lt;br /&gt;
&lt;br /&gt;
See [http://ubuntuforums.org/showthread.php?t=931872 this forum thread] for tweaks required to make Gnome PPP and wvdial operational in Lucid.&lt;br /&gt;
&lt;br /&gt;
=== GPPP ===&lt;br /&gt;
GPPP was the default modem dialing application in previous versions of Ubuntu.&lt;br /&gt;
&lt;br /&gt;
:Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; GPPP Internet Dial-up&lt;br /&gt;
&lt;br /&gt;
= Remote Access =&lt;br /&gt;
There are several methods of remote access. VNC sharing allows you to view and control a remote computer's desktop. (Windows users use a similar proprietary protocol called remote desktop protocol (RDP)). XDMCP allows a complete remote X-windows based login. Remote connections are hazardous unless proper security precautions are taken to prevent unauthorized logins and to ensure encryption of transmitted data.&lt;br /&gt;
&lt;br /&gt;
== SSH ==&lt;br /&gt;
Secure Shell or SSH is a network protocol that allows data to be exchanged over a secure channel (or &amp;quot;tunnel&amp;quot;)  between two computers. Encryption provides confidentiality and integrity of data. The OpenSSH client is installed by default in Ubuntu so you can connect to another computer that is running an SSH server.&lt;br /&gt;
&lt;br /&gt;
=== Connect to a remote SSH server ===&lt;br /&gt;
&lt;br /&gt;
==== From the command-line terminal ====&lt;br /&gt;
Install the [http://www.openbsd.org/cgi-bin/man.cgi?query=ssh&amp;amp;sektion=1 OpenSSH] client (if not already installed):&lt;br /&gt;
 sudo apt-get install openssh-client&lt;br /&gt;
&lt;br /&gt;
From the command-line Terminal type:&lt;br /&gt;
&lt;br /&gt;
 ssh -C &amp;lt;username&amp;gt;@&amp;lt;computer name or IP address&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Note: The -C option indicates compression, which speeds up transmission through the tunnel.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
 ssh -C joe@remote.computer.xyz&lt;br /&gt;
&lt;br /&gt;
:or:&lt;br /&gt;
&lt;br /&gt;
 ssh -C mike@192.168.1.1&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
 ssh -C 192.168.1.1 -l mike&lt;br /&gt;
&lt;br /&gt;
:Note: -l specifies the login id.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the SSH server is listening on a port other than port 22 (the default), you can specify that in your connection (with the -p option). For example, if the SSH server is listening on port 11022, connect:&lt;br /&gt;
&lt;br /&gt;
 ssh -C joe.friday@remote.computer.xyz:11022&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
&lt;br /&gt;
 ssh -C remote.computer.xyz -p 11022 -l joe.friday&lt;br /&gt;
&lt;br /&gt;
If you have made a public/private key using ssh-keygen, the private key must be stored in /home/''user''/.ssh. The key should be accessible only to ''user''&lt;br /&gt;
 sudo chmod 600 /home/''user''/.ssh/identity&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
&lt;br /&gt;
 sudo chmod 600 /home/''user''/.ssh/id_rsa &lt;br /&gt;
&lt;br /&gt;
To login with the key:&lt;br /&gt;
&lt;br /&gt;
 ssh -C remote.computer.xyz -p 11022 -l joe.friday&lt;br /&gt;
&lt;br /&gt;
Note: You can run the command as a menu item, but the command must be &amp;quot;run in terminal.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Port forwarding through SSH ====&lt;br /&gt;
* See [[Using_SSH_to_Port_Forward|Using SSH to Port Forward]] for full details. &lt;br /&gt;
&lt;br /&gt;
* In brief, use &lt;br /&gt;
 ssh -C &amp;lt;remote ip&amp;gt; -p &amp;lt;SSH tunnel port&amp;gt; -L &amp;lt;local port&amp;gt;:&amp;lt;remote computer&amp;gt;:&amp;lt;remote port&amp;gt; -l &amp;lt;user&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This specifies that any communications from your computer (localhost) going out through &amp;lt;local port&amp;gt; will be transmitted securely through the the SSH tunnel port.&lt;br /&gt;
To use VNC through the tunnel, you would use an application like Krdc or Vinagre:&lt;br /&gt;
 krdc vnc://localhost:&amp;lt;local port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: ''localhost'' is equivalent to (and interchangeable with) ''127.0.0.1''. Either can be used.&lt;br /&gt;
&lt;br /&gt;
Note that for VNC, the default &amp;lt;local port&amp;gt; is 5900. In general, a remote VNC server (such as [[#X11VNC_Server|X11VNC]]) is also listening on the default &amp;lt;remote port&amp;gt; 5900 as well. The default &amp;lt;SSH tunnel port&amp;gt; is 22, as discussed above. All these can be changed, however, if you desire greater security. &lt;br /&gt;
&lt;br /&gt;
For me, I noticed that I had to set &amp;lt;remote computer&amp;gt; to be the internal LAN IP address of the remote '''computer''' (such as 192.168.1.155) instead of the remote '''router''''s IP address, which is specified in &amp;lt;remote IP&amp;gt;. (If the remote computer has a static IP address (i.e. is directly connected to the Internet without an intervening router), then &amp;lt;remote computer&amp;gt; and &amp;lt;remote ip&amp;gt; would be the same.)&lt;br /&gt;
&lt;br /&gt;
''Example'':&lt;br /&gt;
For extra security, my SSH Server uses &amp;lt;SSH tunnel port&amp;gt;=11022. I want to VNC to a remote computer on a remote LAN with a router whose IP address is &amp;lt;remote ip&amp;gt; = 244.205.123.123. The remote computer to which I want to connect has a static IP address within the remote LAN of &amp;lt;remote computer&amp;gt; = 192.168.1.155.  I have set up an [[#X11VNC_Server|X11VNC server]] on this computer that is listening on &amp;lt;remote port&amp;gt; = 6912 (instead of the default 5900). I setup port forwarding on the router of this remote LAN to forward port 6912 to this server computer. I want to VNC to this remote computer from my laptop, through the Internet. My laptop VNC client (Krdc) will use the default &amp;lt;local port&amp;gt; = 5900. My name is &amp;lt;user&amp;gt; = joe.friday. This is my story. &lt;br /&gt;
&lt;br /&gt;
 ssh -C 244.205.123.123 -p 11022 -L 5900:192.168.1.155:6912 -l joe.friday&lt;br /&gt;
 krdc vnc://localhost:5900&lt;br /&gt;
&lt;br /&gt;
If you have set up a private/ public key pair with a passphrase, or if your SSH server requires a passphrase, of course, you will be prompted for the passphrase after issuing the SSH command.&lt;br /&gt;
&lt;br /&gt;
Note: Port forwarding assumes that the ports are also forwarded through the router(s) and through any firewalls. See the documentation for your router(s) and firewall to learn how to do this. The advantage of SSH tunneling is that only the &amp;lt;SSH tunnel port&amp;gt; needs to be open and forwarded by a router. All encrypted communications will go through your router using this single port. This is what makes the communications secure.&lt;br /&gt;
&lt;br /&gt;
=== PuTTY ===&lt;br /&gt;
[http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY] is a GTK-based GUI client-interface for SSH connections and eases the setup for port forwarding, SSH public key authentication, and automated login. A user would run Putty to create the SSH tunnel (instead of the ssh command) and then run a program such as Krdc or Vinagre. PuTTY is available for both Linux and Windows (but for routine Linux usage [[#OpenSSH Public Key Authentication|OpenSSH]] is generally recommended instead).&lt;br /&gt;
 sudo apt-get install putty putty-tools&lt;br /&gt;
&lt;br /&gt;
* To create a 2048-bit RSA key pair compatible with OpenSSH, it is possible to use [http://linux.die.net/man/1/puttygen Puttygen] (part of Putty-tools). (For me the Linux version of Puttygen is occasionally buggy, however, so I recommend [[#OpenSSH Public Key Authentication|OpenSSH keygen]] for routine usage instead):&lt;br /&gt;
 puttygen -t rsa -b 2048 -O private -o putty_rsa.ppk&lt;br /&gt;
 puttygen putty_rsa.ppk -O public-openssh -o id_rsa.pub&lt;br /&gt;
 puttygen putty_rsa.ppk -O private-openssh -o id_rsa&lt;br /&gt;
&lt;br /&gt;
* Move the OpenSSH-compatible keys to the ~/.ssh (i.e. the /home/''user''/.ssh) folder&lt;br /&gt;
 mv id_rsa* ~/.ssh&lt;br /&gt;
&lt;br /&gt;
* [[#OpenSSH Public Key Authentication|Copy the public key]] ( /home/''user''/.ssh/id_rsa.pub ) to the server that is hosting the OpenSSH server, into the /home/''serveruser''/.ssh (for whichever user is the administrative user for the server -- generally the user that installed the server initially). If the SSH tunnel is (still) set at default port 22, you can copy the key using the utility: &lt;br /&gt;
&lt;br /&gt;
 ssh-copy-id ''serveruser''@''remoteserver.computer.xyz''&lt;br /&gt;
&lt;br /&gt;
* Connect a VNC client (such as Krdc) through SSH using the command-line:&lt;br /&gt;
 putty -ssh -i ~/.ssh/id_rsa -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -P ''22''&lt;br /&gt;
 krdc vnc://127.0.0.1:5900&lt;br /&gt;
&lt;br /&gt;
:or as a single command:&lt;br /&gt;
 putty -ssh -i ~/.ssh/id_rsa -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -P ''22'' sleep 5; krdc vnc://127.0.0.1::5900&lt;br /&gt;
&lt;br /&gt;
* Alternatively, the PuTTY SSH Client GUI can be run (from Menu -&amp;gt; Internet -&amp;gt; PuTTY SSH Client) and options configured from there.&lt;br /&gt;
&lt;br /&gt;
==== Using keys created by Puttygen in OpenSSH ====&lt;br /&gt;
The public security key generated by Puttygen in Windows is generally not compatible with OpenSSH security keys unless it is edited. For example, the default OpenSSH key is 2048-bit RSA (SSH-2). When a 2048-bit RSA (SSH-2) PuTTY public/private key pair is generated (by Puttygen) in Windows (see [http://unixwiz.net/techtips/putty-openssh.html this tutorial]), the public key looks like:&lt;br /&gt;
 ---- BEGIN SSH2 PUBLIC KEY ----&lt;br /&gt;
 Comment: &amp;quot;rsa-key-20100302&amp;quot;&lt;br /&gt;
 AAAAB3NzaC1yc2EAAAABJQAAAQEAjdp567qxsGkhELlMQup2mXHdsveCWq/maU6k&lt;br /&gt;
 unPpbkwEuhkasuOrhkAWgv5v3d8S857zdHcfnXWi2FkEaJuFxqpJ2IkFuvqRdqYD&lt;br /&gt;
 ZCcASj2S0LoXdWpC4uon6VH8oBT31r+wkDfmI2a+K74jgXjtm1BWWxwOpKaWQHi9&lt;br /&gt;
 YItbY/06renRex34n3ejO20JRqD/BxnFU7ND41Szo3ZMKoa0yzhevU2ntt74BCvC&lt;br /&gt;
 bYFHdSoRbi3AH8qGInzFfhXPdrG8qA382ZKEh5Bmy8Qxb9Uen/+jjP51YxN/ykee&lt;br /&gt;
 RwSrdSCZekB6jN6uuTLNDEXJSJizqlPU8tROqf3pYv1kxzD9bw==&lt;br /&gt;
 ---- END SSH2 PUBLIC KEY ----&lt;br /&gt;
&lt;br /&gt;
* To be used by OpenSSH, the saved public key must be edited. &lt;br /&gt;
:* Delete the first two lines (with the BEGIN and Comment: in them) and the last line.&lt;br /&gt;
:* Join the remaining lines into a single line.&lt;br /&gt;
:* Place ssh-rsa at the beginning.&lt;br /&gt;
:* It should end up looking like:&lt;br /&gt;
 ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAjdp567qxsGkhELlMQup2mXHdsveCWq/maU6kunPpbkwEuhkasuOrhkAWgv5v3d8S857zdHcfnXWi2FkEaJuFxqpJ2IkFuvqRdqYDZCcASj2S0LoXdWpC4uon6VH8oBT31r+wkDfmI2a+K74jgXjtm1BWWxwOpKaWQHi9YItbY/06renRex34n3ejO20JRqD/BxnFU7ND41Szo3ZMKoa0yzhevU2ntt74BCvCbYFHdSoRbi3AH8qGInzFfhXPdrG8qA382ZKEh5Bmy8Qxb9Uen/+jjP51YxN/ykeeRwSrdSCZekB6jN6uuTLNDEXJSJizqlPU8tROqf3pYv1kxzD9bw==&lt;br /&gt;
&lt;br /&gt;
* Once the PuTTY public key is in this format, it can be appended to the ~/.ssh/authorized_keys file on the OpenSSH server. (The private key stays on the client computer, of course). PuTTY can then connect (from Windows or Linux) to an OpenSSH server using the public/private key method.&lt;br /&gt;
&lt;br /&gt;
=== Connect using SSH Agent ===&lt;br /&gt;
With SSH Agent you can automate the use of public key authentication and open an XDM or VNC session using a script. See [http://kimmo.suominen.com/docs/ssh/#ssh-agent this tutorial].&lt;br /&gt;
&lt;br /&gt;
Also see this alternative simple approach: [[#Connect with SSH and start an application with a single command|Connect with SSH and start an application with a single command]].&lt;br /&gt;
&lt;br /&gt;
=== Setup an SSH server ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Install the [https://help.ubuntu.com/10.10/serverguide/C/openssh-server.html OpenSSH] server:&lt;br /&gt;
 sudo apt-get install openssh-server&lt;br /&gt;
&lt;br /&gt;
:or&lt;br /&gt;
 sudo apt-get install tasksel&lt;br /&gt;
 sudo tasksel install openssh-server&lt;br /&gt;
&lt;br /&gt;
Note: The OpenSSH server can also be installed when doing a [[Kubuntu_Raring_Servers#Servers|server]] installation as an option from the LiveCD.&lt;br /&gt;
&lt;br /&gt;
Note: An OpenSSH server can also be set up on a Windows server using Cygwin. See [http://pigtail.net/LRP/printsrv/cygwin-sshd.html these instructions].&lt;br /&gt;
&lt;br /&gt;
* Don't forget to forward the port on which your OpenSSH server is listening. The default SSH port is 22; if the default is used, the router should therefore forward port 22 to the computer on the LAN that is hosting the OpenSSH server. The OpenSSH listening port can be changed; in fact, each computer on the LAN can listen on its own unique SSH port, if desired. The router must forward each specified listening port to the correct computer. Therefore, if computer 1 has its OpenSSH server set to listen on port 22221, then the router should forward port 22221 to computer 1's LAN IP address. If computer 2 has its OpenSSH listening port set to 22222, then obviously the router must forward port 22222 to computer 2's LAN IP address. To change the listening port of the OpenSSH server, edit the /etc/ssh/sshd_config file (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo kate /etc/ssh/sshd_config&lt;br /&gt;
&lt;br /&gt;
and change the listening port from 22 to your desired listening port:&lt;br /&gt;
 Port ''22221''&lt;br /&gt;
&lt;br /&gt;
then restart the OpenSSH server:&lt;br /&gt;
 sudo /etc/init.d/ssh restart&lt;br /&gt;
&lt;br /&gt;
:* For greater port security (and to minimize [http://en.wikipedia.org/wiki/Brute-force_attack brute-force attacks]), consider using [[Kubuntu_Raring_Network_Management#Knockd_.28Port_security.29|Knockd]].&lt;br /&gt;
&lt;br /&gt;
==== Limit authorized SSH users ====&lt;br /&gt;
* See [[Limit_the_user_accounts_that_can_connect_through_OpenSSH_remotely|Limit the user accounts that can connect through OpenSSH remotely]]&lt;br /&gt;
&lt;br /&gt;
==== OpenSSH Public Key Authentication ====&lt;br /&gt;
See this [http://sial.org/howto/openssh/publickey-auth/ OpenSSH Public Key Authentication Tutorial].&lt;br /&gt;
&lt;br /&gt;
In brief, it is necessary to generate a public / private key pair. On your client machine, generate the pair:&lt;br /&gt;
 ssh-keygen&lt;br /&gt;
&lt;br /&gt;
A prompt asks for a passphrase. If you wish to use OpenSSH without a password from a secure client (to which no one but you has access), leave the passphrase blank. If you enter a passphrase, you will be asked for this passphrase each time you use the SSH client.  By default, a 2048-bit RSA SSH-2 key pair is generated and stored in the /home/''user''/.ssh folder. The private key is named id_rsa and is meant to stay in that folder. (The public key is id_rsa.pub and is meant to be copied to the OpenSSH server.)&lt;br /&gt;
&lt;br /&gt;
:*The private key must only be accessible (and should be read-only) to ''user'', the owner of the file:&lt;br /&gt;
 chmod 600 /home/''user''/.ssh/id_rsa&lt;br /&gt;
&lt;br /&gt;
::You could also make the entire .ssh folder accessible only to ''user'':&lt;br /&gt;
&lt;br /&gt;
 chmod 700 /home/''user''/.ssh&lt;br /&gt;
&lt;br /&gt;
* Copy the public key ( /home/''user''/.ssh/id_rsa.pub ) to the server that is hosting the OpenSSH server, into the /home/''serveruser''/.ssh (for whichever user is the administrative user for the server -- generally the user that installed the server initially). If the SSH tunnel is (still) set at default port 22, you can copy the key using the utility:&lt;br /&gt;
 ssh-copy-id ''serveruser''@''remoteserver.computer.xyz''&lt;br /&gt;
&lt;br /&gt;
:* The ssh-copy-id utility only works over port 22. An alternative if you have changed your SSH port is to copy the /home/''user''/.ssh/id_rsa.pub key to the server manually. On the server make sure the directory /home/''serveruser''/.ssh exists and that there is a file authorized_keys (with write privileges) in that folder. If not, create such a file while logged into the server as ''serveruser'' (the touch command creates an empty file):&lt;br /&gt;
 mkdir ~/.ssh&lt;br /&gt;
 cd ~/.ssh&lt;br /&gt;
 touch authorized_keys&lt;br /&gt;
Then concatenate the id_rsa.pub key you have copied to the ~/.ssh folder. (Make sure the owner of id_rsa.pub, after copying, is ''serveruser''.):&lt;br /&gt;
 cd ~/.ssh&lt;br /&gt;
 chown ''serveruser'' id_rsa.pub&lt;br /&gt;
 cat authorized_keys id_rsa.pub &amp;gt;&amp;gt; authorized_keys&lt;br /&gt;
&lt;br /&gt;
* Make sure the OpenSSH server knows to look for the key file. On the remote server, edit the OpenSSH configuration file:&lt;br /&gt;
 sudo nano /etc/ssh/sshd_config&lt;br /&gt;
&lt;br /&gt;
:*Uncomment the line (i.e. remove the # at the beginning of the line):&lt;br /&gt;
 #AuthorizedKeysFile %h/.ssh/authorized_keys&lt;br /&gt;
&lt;br /&gt;
* Remove the ability to login to the OpenSSH server using password authentication:&lt;br /&gt;
  sudo nano /etc/ssh/sshd_config&lt;br /&gt;
&lt;br /&gt;
:*Change the line&lt;br /&gt;
 #PasswordAuthentication yes&lt;br /&gt;
:to&lt;br /&gt;
 PasswordAuthentication no&lt;br /&gt;
&lt;br /&gt;
* Restart the OpenSSH server:&lt;br /&gt;
 sudo /etc/init.d/ssh restart&lt;br /&gt;
&lt;br /&gt;
* Now you can connect securely with an SSH tunnel without requiring a password, logging in as ''serveruser''.&lt;br /&gt;
&lt;br /&gt;
 ssh -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -p ''22''&lt;br /&gt;
&lt;br /&gt;
==== Connect with SSH and start an application with a single command ====&lt;br /&gt;
* If you have created an [[#OpenSSH Public Key Authentication|OpenSSH key pair]] (without a password), you can start both the SSH tunnel and a VNC program (such as Krdc or Vinagre) to run through the SSH tunnel with a single command:&lt;br /&gt;
 ssh -f -l ''serveruser'' -L 5900:127.0.0.1:5900 ''remoteserver.computer.xyz'' -p 22 sleep 5; krdc vnc://127.0.0.1::5900&lt;br /&gt;
:* Alternatively (and probably preferably) you can create a Menu Item / Shortcut with the above command.&lt;br /&gt;
&lt;br /&gt;
Note: This command is a command-line mini-script. The SSH option -f option tells the SSH client to fork into the background after starting. (This option is not available in the PuTTY client.) This allows the command line to continue to proceed to the next command(s) listed on the command line mini-script. The 5 second wait (&amp;quot;sleep&amp;quot;) timeout allows time for the SSH tunnel to be created before proceeding to the next command. (This can be lengthened if necessary.) After the wait period, the program (Krdc VNC in this example) is started.&lt;br /&gt;
&lt;br /&gt;
* Of course, any program could be started (to be run through the SSH tunnel) in this fashion, not just a VNC program.&lt;br /&gt;
&lt;br /&gt;
==== Automate SSH connections that require a password ====&lt;br /&gt;
This method is strongly advised against. Transmitting an unencrypted password through the Internet (in order to establish an SSH connection) invites password sniffing. Use the [[#OpenSSH Public Key Authentication|OpenSSH key pair]] methods described above, instead. This method is listed here for reference.&lt;br /&gt;
&lt;br /&gt;
* Terminal interactions (such as the SSH password challenge) can be automated using the [http://linux.die.net/man/1/expect expect] utility. Install:&lt;br /&gt;
 sudo apt-get install expect&lt;br /&gt;
&lt;br /&gt;
* If, for example, your SSH client ID is ''clientuserID'', yourpassword is ''not#1sostrong'', and the remote SSH server is ''remoteserver.computer.xyz'' (using the default SSH port of ''22''), then use this command to start the SSH tunnel:&lt;br /&gt;
&lt;br /&gt;
 expect -c 'spawn ssh -l clientuserID -L 5900:127.0.0.1:5901 remoteserver.computer.xyz -p 22; expect assword ; send &amp;quot;not#1sostrong\n&amp;quot; ; interact'&lt;br /&gt;
&lt;br /&gt;
There are other parameters in this example. ''5900'' and ''5901'' are the ports to be used on either side of the tunnel (port ''5900'' is used for VNC, for example). See [[#Port_forwarding_through_SSH|Port forwarding through SSH]] for more details. &lt;br /&gt;
&lt;br /&gt;
You can use the entire command as a menu item (must be &amp;quot;Run in terminal&amp;quot; in the Advanced menu options).&lt;br /&gt;
&lt;br /&gt;
== VNC ==&lt;br /&gt;
Virtual Network Computing (VNC) mirrors the desktop of a remote (&amp;quot;server&amp;quot;) computer on your local (&amp;quot;client&amp;quot;) computer (it is not a separate remote login, as is XDMCP). A user on the remote desktop must be logged in and running a VNC server (such as [[#X11VNC_Server|X11VNC]], [[#Vino Remote Desktop VNC server|Vino]], or Krfb). Keyboard and mouse events are transmitted between the two computers. VNC is platform-independent —- a VNC viewer on one operating system can usually connect to a VNC server on any other operating system. (Windows users can use one of several clients such as [http://www.uvnc.com/docs/uvnc-viewer.html UltraVNC Viewer].)&lt;br /&gt;
&lt;br /&gt;
=== Vino Remote Desktop VNC server ===&lt;br /&gt;
Vino-server (the Gnome VNC server) is included by default in Ubuntu. Start:&lt;br /&gt;
&lt;br /&gt;
:Menu -&amp;gt; System -&amp;gt; Preferences -&amp;gt; Remote Desktop&lt;br /&gt;
&lt;br /&gt;
* You can accept uninvited connections in the Security section. You can require a password for these connections.&lt;br /&gt;
* This implementation of Vino does not allow changing the default listening ports (which start at 5900). If you wish to customize your VNC connection, use [[#X11VNC_Server|X11VNC]] instead.&lt;br /&gt;
&lt;br /&gt;
* A user can connect using [[#Vinagre VNC client|Vinagre]], the [[#Terminal Server Client|Terminal Server Client]], or any other VNC client.&lt;br /&gt;
&lt;br /&gt;
==== How to securely use VNC with SSH tunneling ====&lt;br /&gt;
It is less secure to leave the VNC listening port open to the Internet, even with a password. (This can expose you to password cracking attempts.)&lt;br /&gt;
&lt;br /&gt;
It is more secure to use SSH to tunnel your VNC connection. Under [[#Port forwarding through SSH|SSH port forwarding]], the VNC listening port is the &amp;lt;remote port&amp;gt;. To increase security, this listening port can be changed from the default 5900. Only the VNC server and the SSH client need to specify the &amp;lt;remote port&amp;gt; in a secure connection.&lt;br /&gt;
&lt;br /&gt;
=== X11VNC Server ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] While Vino is easy to use, X11VNC allows far more customization and therefore can be used more in situations where greater security is needed.&lt;br /&gt;
* Install an X11VNC server to share your desktop with other computer:&lt;br /&gt;
    sudo apt-get install x11vnc&lt;br /&gt;
&lt;br /&gt;
* Run X11VNC without a password:&lt;br /&gt;
 x11vnc -forever -rfbport 5900&lt;br /&gt;
&lt;br /&gt;
:Note: -rfbport 5900 specifies the port to listen on. The port number can be changed. This option is not required if the default port 5900 will be used. Don't forget to open/forward this port in your firewall/router. By default X11VNC server exits after the first client disconnects. To keep it running (and allow future connections), use the -forever option. See [http://www.karlrunge.com/x11vnc/x11vnc_opts.html here] for more command line options.&lt;br /&gt;
&lt;br /&gt;
* Create a password to use with X11VNC:&lt;br /&gt;
 mkdir ~/.vnc&lt;br /&gt;
 x11vnc -storepasswd YOUR_PASSWORD ~/.vnc/x11vnc.pass&lt;br /&gt;
&lt;br /&gt;
* X11VNC can then be started with a password:&lt;br /&gt;
 x11vnc -forever -rfbport 5900 -rfbauth ~/.vnc/x11vnc.pass -o ~/.vnc/x11vnc.log -loopbg -display :0&lt;br /&gt;
&lt;br /&gt;
* You can create a startup script so that X11VNC is automatically loaded at startup (with password settings):&lt;br /&gt;
 echo &amp;quot;/usr/bin/x11vnc -forever -rfbport 5900 -rfbauth ~/.vnc/x11vnc.pass -o ~/.vnc/x11vnc.log -loopbg -display :0&amp;quot; &amp;gt; ~/.config/autostart/x11vnc.sh&lt;br /&gt;
 chmod +x ~/.config/autostart/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
:* You can test the startup script:&lt;br /&gt;
 ~/.config/autostart/x11vnc.sh&lt;br /&gt;
&lt;br /&gt;
==== Using VNC with SSH ====&lt;br /&gt;
See [[#Port forwarding through SSH|Port forwarding through SSH]] for additional information.&lt;br /&gt;
&lt;br /&gt;
=== Vinagre VNC client ===&lt;br /&gt;
[http://library.gnome.org/users/vinagre/stable/index.html.en Vinagre] is the default Gnome-based VNC client used in Ubuntu.&lt;br /&gt;
* Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; Remote Desktop Viewer&lt;br /&gt;
&lt;br /&gt;
=== Terminal Server Client ===&lt;br /&gt;
The Terminal Server Client is an Ubuntu/Gnome frontend for [http://www.rdesktop.org/ rdesktop] (for RDP connections to Windows computers) and one of several vncviewer clients (for VNC connections). In can be used instead of Vinagre.&lt;br /&gt;
* Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; Terminal Server Client&lt;br /&gt;
&lt;br /&gt;
* To use it with VNC, one of the VNC clients must be installed first. For example, install the [http://www.tightvnc.com/ TightVNC] client:&lt;br /&gt;
 sudo apt-get install xtightvncviewer&lt;br /&gt;
&lt;br /&gt;
:*Note that the TightVNC client can be used from the command line (or as a menu item) directly:&lt;br /&gt;
 vncviewer ''192.168.0.12''::''5900''&lt;br /&gt;
&lt;br /&gt;
:where ''192.168.0.12'' is an example ''host'' location that is running a VNC server on port 5900. For more command-line options, use&lt;br /&gt;
 man vncviewer&lt;br /&gt;
&lt;br /&gt;
=== Krdc VNC client ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Krdc is the default VNC client in Kubuntu/KDE but can be used in GNOME. It can be used for both VNC and RDP connections. Installing it will also install the Qt platform and many KDE utilities (a large download).&lt;br /&gt;
 sudo apt-get install krdc&lt;br /&gt;
&lt;br /&gt;
* Run:&lt;br /&gt;
:Menu -&amp;gt; Applications -&amp;gt; Internet -&amp;gt; Krdc&lt;br /&gt;
&lt;br /&gt;
* The command-line connection (for use as a menu-item, for example) is:&lt;br /&gt;
 krdc vnc://&amp;lt;remote IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If the remote (Krfp) VNC server is using a &amp;lt;remote port&amp;gt; other than the default 5900 port, use&lt;br /&gt;
 krdc vnc://&amp;lt;remote IP&amp;gt;:&amp;lt;remote port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Krdc can also connect to a Windows server using RDP (Remote Desktop Protocol). &lt;br /&gt;
 krdc rdp://&amp;lt;remote IP&amp;gt;:&amp;lt;remote port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using a VNC client with SSH ====&lt;br /&gt;
See [http://jeltsch.org/node/209 this howto] for an automated setup using a script (it did not work for me, but it might for you).&lt;br /&gt;
&lt;br /&gt;
In brief, you would initiate an [[#Port forwarding through SSH|SSH tunnel with port forwarding]] using Putty or the command line:&lt;br /&gt;
 ssh -C &amp;lt;remote ip&amp;gt; -p &amp;lt;SSH tunnel port&amp;gt; -L &amp;lt;local port&amp;gt;:&amp;lt;remote computer&amp;gt;:&amp;lt;remote port&amp;gt; -l &amp;lt;user&amp;gt;&lt;br /&gt;
::then you would start a VNC client such as Krdc:&lt;br /&gt;
 krdc vnc://localhost:&amp;lt;local port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;local port&amp;gt; will usually be the default 5900, in which case you could simply use&lt;br /&gt;
 krdc vnc://localhost&lt;br /&gt;
&lt;br /&gt;
=== XVNC4Viewer VNC Client ===&lt;br /&gt;
XVNC4Viewer is an alternative to Vinagre or the Terminal Server Client (vncviewer). Install:&lt;br /&gt;
 sudo apt-get install xvnc4viewer&lt;br /&gt;
&lt;br /&gt;
=== Automatic user login (for use with VNC) ===&lt;br /&gt;
VNC only works if a user is logged in. When a computer (hosting one or more servers) is intended to start up unattended and VNC (with or without SSH tunneling) is to be used, the computer ought to start with the primary user logged in. To accomplish this:&lt;br /&gt;
:Menu -&amp;gt; System -&amp;gt; System Settings -&amp;gt; Login Manager -&amp;gt; Convenience -&amp;gt; Enable Auto-Login (''ticked'') -&amp;gt; Lock session (''ticked'')&lt;br /&gt;
::-&amp;gt; Pre-select user: Specified: ''Choose primary user'' (i.e. the user hosting the SSH tunnel, if any, and the VNC server)&lt;br /&gt;
::-&amp;gt; Automatically log in again after X server crash (''ticked'')&lt;br /&gt;
&lt;br /&gt;
* Also make sure the VNC server is set to Autostart at bootup.&lt;br /&gt;
&lt;br /&gt;
== FreeNX ==&lt;br /&gt;
[https://help.ubuntu.com/community/FreeNX FreeNX] is a remote desktop display server/client solution that natively incorporates SSH tunneling (unlike VNC). It is therefore more secure than VNC (unless VNC is coupled with SSH tunneling).&lt;br /&gt;
&lt;br /&gt;
=== FreeNX Server ===&lt;br /&gt;
The Free server .deb package can be downloaded from [http://www.nomachine.com/select-package.php?os=linux&amp;amp;id=1 No Machine free server downloads].&lt;br /&gt;
&lt;br /&gt;
* Alternatively, [[Ubuntu:Raring#Add Extra (K)Ubuntu Repositories|add the following repositories]]:&lt;br /&gt;
 &amp;lt;del&amp;gt;sudo add-apt-repository ppa:freenx-team&amp;lt;/del&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install the package:&lt;br /&gt;
 &amp;lt;del&amp;gt;sudo apt-get update&amp;lt;/del&amp;gt;&lt;br /&gt;
 &amp;lt;del&amp;gt;sudo apt-get install freenx&amp;lt;/del&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A FreeNX package / repository is not currently available for Raring.&lt;br /&gt;
&lt;br /&gt;
=== FreeNX Client ===&lt;br /&gt;
Download the self-installing .deb file from [http://www.nomachine.com/select-package-client.php No Machine Client downloads].&lt;br /&gt;
&lt;br /&gt;
== XDMCP ==&lt;br /&gt;
[http://www.tldp.org/HOWTO/XDMCP-HOWTO/index.html XDMCP] allows a separate remote login by an authorized user. This login is separate from the local user.&lt;br /&gt;
*XDMCP is not secure over the Internet and should only be used within a LAN. It cannot be tunnelled through SSH. It is turned off by default in Ubuntu. To enable it, edit the configuration file:&lt;br /&gt;
&lt;br /&gt;
 gedit /etc/gdm/custom.conf&lt;br /&gt;
&lt;br /&gt;
* Find and change (or add) the line from false to true so that it reads:&lt;br /&gt;
&lt;br /&gt;
 [Xdmcp]&lt;br /&gt;
 Enable=true&lt;br /&gt;
&lt;br /&gt;
=== Telnet ===&lt;br /&gt;
SSH is, basically, secure Telnet.&lt;br /&gt;
&lt;br /&gt;
== VPN clients ==&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Virtual_private_network VPN] (Virtual Private Network) allows a secure encrypted  connection (&amp;quot;tunnelling&amp;quot;) over the Internet between a client (either standalone or on a separate LAN) and a home or corporate LAN server.&lt;br /&gt;
=== VPN through Network Manager ===&lt;br /&gt;
* The default Network Manager in Ubuntu/Kubuntu has a VPN client available. This includes support for IPSec and Cisco-compliant VPN connections. Install:&lt;br /&gt;
 sudo apt-get install network-manager-vpnc&lt;br /&gt;
&lt;br /&gt;
* To connect to a VPN network using OpenVPN (SSL), install the plugin:&lt;br /&gt;
  sudo apt-get install network-manager-openvpn&lt;br /&gt;
&lt;br /&gt;
* To connect to a VPN network using PPTP (MS Windows servers), install the plugin:&lt;br /&gt;
 sudo apt-get install network-manager-pptp&lt;br /&gt;
&lt;br /&gt;
* Configure:&lt;br /&gt;
::Network Manager icon (in system tray) -&amp;gt; VPN Connections -&amp;gt; Configure VPN&lt;br /&gt;
&lt;br /&gt;
=== vpnautoconnect (vpn daemon) ===&lt;br /&gt;
[http://sourceforge.net/projects/vpnautoconnect/ vpnautoconnect] is a daemon to allow automatic vpn connections through Network Manager. [http://sourceforge.net/projects/vpnautoconnect/files/ Download] and install the .deb package for your OS version.&lt;br /&gt;
&lt;br /&gt;
=== Other VPN clients ===&lt;br /&gt;
Standalone VPN clients based on protocol are available (but not necessary if using Network Manager):&lt;br /&gt;
:* [http://www.debuntu.org/how-to-connect-to-a-cisco-vpn-using-vpnc vpnc], [http://grml.org/online-docs/grml-vpn.8.html grml-vpn] -- for Cisco-compliant (IPSec) VPN networks&lt;br /&gt;
:* [http://www.openswan.org/ openswan] -- for IPSec (OpenSwan) VPN networks&lt;br /&gt;
:* [http://pptpclient.sourceforge.net/ pptp-linux] -- for PPTP (MS Windows-compliant) VPN networks&lt;br /&gt;
:* [http://openvpn.net/ openvpn], gadmin-openvpn-client -- for OpenSSL (OpenVPN) VPN networks&lt;br /&gt;
&lt;br /&gt;
== VPN servers ==&lt;br /&gt;
&lt;br /&gt;
=== OpenVPN ===&lt;br /&gt;
[http://openvpn.net/ OpenVPN] is a free, GPL-licensed open-source cross-platform VPN solution based on OpenSSL (not IPSec). Install the server (then see the website for further installation instructions):&lt;br /&gt;
 sudo apt-get install openvpn bridge-utils&lt;br /&gt;
&lt;br /&gt;
A GUI configuration utility (GTK-based) is available:&lt;br /&gt;
 sudo apt-get install gadmin-openvpn-server&lt;br /&gt;
&lt;br /&gt;
Also see [[OpenVPN_server|these installation tips]].&lt;br /&gt;
&lt;br /&gt;
=== Poptop (PPTP Server) ===&lt;br /&gt;
[http://poptop.sourceforge.net/ Poptop] is a free open-source PPTP-based VPN server compatible with MS-windows PPTP clients. Install:&lt;br /&gt;
 sudo apt-get install pptpd&lt;br /&gt;
&lt;br /&gt;
=== OpenSwan ===&lt;br /&gt;
[http://www.openswan.org/ OpenSwan] is the open source implementation of IPSec-based VPN connections for Linux (and is a successor to FreeSwan). Install:&lt;br /&gt;
 sudo apt-get install openswan linux-patch-openswan&lt;br /&gt;
&lt;br /&gt;
= Security =&lt;br /&gt;
Ubuntu by default is a fairly safe system. However, if you intend to use Ubuntu as a server, or for critical applications in which loss of data (by accident or by malicious intrusion) would be disastrous, you should learn how to make Ubuntu more secure. A good introduction to [http://www.psychocats.net/ubuntu/security#bestpractices Ubuntu Security Best Practices] is available. Recommended reading includes the book ''[http://www.harpercollins.com/books/9780061962233/Cyber_War/index.aspx Cyber War]'' by [http://en.wikipedia.org/wiki/Richard_A._Clarke Richard Clark] and [http://news.cnet.com/8301-27080_3-20004505-245.html this interview] with Joe Weiss (IT advisor for the energy-sector smart grid). Also read [http://money.cnn.com/2013/04/08/technology/security/shodan/index.html?iid=HP_LN read this CNN Money article].&lt;br /&gt;
 &lt;br /&gt;
== Firewall ==&lt;br /&gt;
Network communications go through &amp;quot;channels&amp;quot; called ports. You can restrict which ports are available (&amp;quot;open&amp;quot;) for network communications, creating a barricade to unwanted network intrusion. Firewalls do this job for you. But I guarantee that if you install one before you know how to use it that one or more networking programs on your system will stop working. Read every bit of documentation about a firewall before installing it -- you won't regret the time invested. All of these packages modify [http://en.wikipedia.org/wiki/Iptables iptables], which is the set of rules that controls network access in and out of your computer. (You can modify iptables manually from the command line, as well, but if you are that much of an expert, you probably don't need this guide.) Also see the [https://help.ubuntu.com/12.04/serverguide/firewall.html official Ubuntu documentation].&lt;br /&gt;
&lt;br /&gt;
=== Firestarter ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://www.fs-security.com/ Firestarter] is an intuitive firewall manager used to set the iptables values which provide firewall capabilities in Linux (including Ubuntu). It has a very easy-to-use GUI. &lt;br /&gt;
 sudo apt-get install firestarter&lt;br /&gt;
&lt;br /&gt;
==== Firestarter fails to open system log ====&lt;br /&gt;
This is a problem in Raring. See the [[Syslogd_to_rsyslog|solution here]].&lt;br /&gt;
&lt;br /&gt;
=== Guarddog ===&lt;br /&gt;
[http://www.simonzone.com/software/guarddog/ Guarddog] is a GUI firewall configuration utility that has been used for KDE. It has a complex array of configuration, and is difficult to use for some beginners. &lt;br /&gt;
 sudo apt-get install guarddog&lt;br /&gt;
&lt;br /&gt;
=== Uncomplicated Firewall ===&lt;br /&gt;
[http://wiki.ubuntu.com/UncomplicatedFirewall Uncomplicated Firewall] is installed in (K)Ubuntu by default, but all ports are open initially. It is configurable through the [[Kubuntu_Raring_Introduction#General_Notes|command-line interface]]. See [http://ubuntuforums.org/showthread.php?t=823741 this forum thread], [http://www.ubuntu-unleashed.com/2008/05/howto-take-use-setup-and-advantage-of.html or this usage tutorial], or [https://help.ubuntu.com/community/UFW Ubuntu community help] for tips on how to set up and use it.&lt;br /&gt;
If not installed, it can be installed:&lt;br /&gt;
 apt-get install ufw&lt;br /&gt;
&lt;br /&gt;
==== Gufw ====&lt;br /&gt;
[http://gufw.tuxfamily.org/index.html Gufw] is a graphical user interface for Uncomplicated Firewall. Install:&lt;br /&gt;
 sudo apt-get install gufw&lt;br /&gt;
&lt;br /&gt;
== Anti-virus ==&lt;br /&gt;
* If you are running a file server, interface frequently with Windows drives or share files with Windows users, or use virtualization, you will want a virus checker for your Windows files.&lt;br /&gt;
&lt;br /&gt;
* Despite extensive minsinformation, Linux is not immune from malware (witness the explosion of malware being created for the Linux-based Google Android systems). The malware is not usually spread within the OS itself (as long as the OS is a well-respected distribution obtained through official channels), but in trojan programs downloaded and installed by users outside of the normal software distribution channels (i.e. repositories) of the OS. There is always a danger to using programs downloaded from the Internet from sources other than respected repositories -- it is the primary reason that Debian and (K)Ubuntu retain tight control over their software repositories. &lt;br /&gt;
&lt;br /&gt;
* Any file can have malware embedded in it (which is trivial to achieve by concatenation, for example: ''cat originalfile.avi malware.exe &amp;gt; originalfileplusmalware.avi''). The question is whether a user will try to open a file with a program (such as a media player) that has been compromised in a way that allows it to execute the code found in the infected media (e.g. .avi) file. This can occur not only for Windows users but for any OS (including Mac OSX and Linux) with a compromised program (e.g. media player). An example is the extensive problems the Mac OS community is currently having with the Flash player.&lt;br /&gt;
&lt;br /&gt;
* Routine scanning of any file downloaded from the Internet, any file imported from another user's computer (even a trusted source, since their attention to virus prevention may not be as compulsive as yours), or any attachment received in an email (even from a trusted sender) should be done with an anti-virus program.&lt;br /&gt;
&lt;br /&gt;
=== ClamAV ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://www.clamav.net/ ClamAV] is the open source virus tool for Linux. To install ClamAV:&lt;br /&gt;
 sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
* If an error is returned: &amp;quot;The database directory must be writable for UID 1000 or GID 1000&amp;quot; in order for the virus database to be updated, then change the ownership of the installation directory (/var/lib/clamav):&lt;br /&gt;
 sudo chown 1000 /var/lib/clamav&lt;br /&gt;
&lt;br /&gt;
==== ClamTk (ClamAV GUI) ====&lt;br /&gt;
[http://clamtk.sourceforge.net/ ClamTk] is a GTK-based GUI frontend for ClamAV. Install:&lt;br /&gt;
 sudo apt-get install clamtk&lt;br /&gt;
&lt;br /&gt;
=== AVG ===&lt;br /&gt;
[http://free.avg.com/us-en/download.prd-afl AVG] offers a free virus scanner for Linux in a .deb package. Download and install from the website.&lt;br /&gt;
&lt;br /&gt;
=== Avast ===&lt;br /&gt;
[http://www.avast.com/linux-home-edition Avast] offers a Linux edition (for home users only) in a .deb package. Download and install from the website.&lt;br /&gt;
&lt;br /&gt;
== Anti-spam ==&lt;br /&gt;
&lt;br /&gt;
=== Spam Assasin ===&lt;br /&gt;
[http://spamassassin.apache.org/ SpamAssasin] is written in perl, and is mostly for use with a server (such as a groupware server or Apache). Install:&lt;br /&gt;
 sudo apt-get spamassassin&lt;br /&gt;
&lt;br /&gt;
== Rootkit checkers ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/Rootkit Rootkits] are malicious [http://en.wikipedia.org/wiki/Trojan_horse_(computing) trojan]-like programs to allow an intruder to become a root user and therefore have complete administrative control over the system. There aren't many rootkits in the wild for Linux. Still, this is a growing security problem (especially in other operating systems) and it is a matter of time before more rootkits appear in Linux. Checking for rootkits isn't always successful from a system that is already infected. Your rootkit checker should therefore be run from another system, or a [[Kubuntu_Raring_System_Backup#Run_.28K.29Ubuntu_LiveCD_from_a_USB_pendrive|USB pendrive with an Ubuntu LiveCD installation]]. See the rootkit checker manuals for instructions how to do this. If you are infected with a rootkit, you must backup all your files and re-install your system. (Thank goodness this is easy with Ubuntu, unlike with other operating systems).&lt;br /&gt;
&lt;br /&gt;
=== Chkrootkit ===&lt;br /&gt;
[http://www.chkrootkit.org/ Chkrootkit] checks locally for signs of a rootkit. See the [http://www.chkrootkit.org/README chkrootkit manual] for usage instructions.&lt;br /&gt;
:Install:&lt;br /&gt;
 sudo apt-get install chkrootkit&lt;br /&gt;
:Run:&lt;br /&gt;
 sudo chkrootkit&lt;br /&gt;
&lt;br /&gt;
=== Rootkit Hunter ===&lt;br /&gt;
[http://www.rootkit.nl/projects/rootkit_hunter.html Rootkit Hunter] is compatible with (K)Ubuntu systems. See the [http://sourceforge.net/docman/display_doc.php?docid=35179&amp;amp;group_id=155034 usage instructions].&lt;br /&gt;
:Install:&lt;br /&gt;
 sudo apt-get install rkhunter&lt;br /&gt;
:Run:&lt;br /&gt;
 sudo rkhunter&lt;br /&gt;
&lt;br /&gt;
=== Malicious commands to avoid ===&lt;br /&gt;
There are many [[Malicious_Linux_Commands|malicious commands]] to be avoided in Linux (as in all operating systems). It is worthwhile to be aware of these dangerous commands so that they are not executed by accident or by malicious advice.&lt;br /&gt;
&lt;br /&gt;
== USB drives ==&lt;br /&gt;
USB drives are a major source of security risk and means of data theft.&lt;br /&gt;
&lt;br /&gt;
* An administrator password should be set for the computer BIOS and booting from a USB drive or CD/DVD should be disabled. (Otherwise, any passerby can boot their own OS and then use it to steal data from the hard drive.)&lt;br /&gt;
&lt;br /&gt;
* See [http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/ this article] for methods of restricting USB usage to authorized users.&lt;br /&gt;
&lt;br /&gt;
== Prevent unauthorized boots and system access ==&lt;br /&gt;
Many computers are kept in places where casual passersby may have an opportunity to access the computer, unobserved for short periods. In addition to physical precautions to prevent or slow computer theft (such as locked cases, alarms, and security cables similar to those used to slow bicycle theft), [http://www.pcworld.com/article/114727/lock_down_your_pc.html precautions] should be taken to prevent an unauthorized operating system from being booted using an external device (such as USB drive). Once such as external OS is booted, it can be used to access most hard drive(s) on the computer and the contents copied to a second external device (to be examined or unencrypted later). This is a common means of data theft that is fast and easy to accomplish, and means to deter it should be taken on any public or semi-public computer.&lt;br /&gt;
&lt;br /&gt;
* Set BIOS to restrict bootup to the hard drive only.&lt;br /&gt;
:* Set a Supervisor/Administrator password for your computer's BIOS. (I recommend writing it down and taping it to the inside cover of the computer case prior to locking the computer case.) Disable booting from all devices except the hard drive. Setting the hard drive as the first priority boot device is not enough, as most current BIOS menus allow manual selection of any enabled boot devices. Only the hard drive should be left enabled.&lt;br /&gt;
&lt;br /&gt;
* Enable Hard Drive locking, if your computer's BIOS allows it. Most hard drives allow a password to be set by the BIOS and stored in a chip on the hard drive controller which can only be reset by disassembling the hard drive. (Some manufacturers provide a backdoor security key, however.) BIOS versions found on newer computers/laptops allow this password to be set in the BIOS, so that only a BIOS containing the correct password can unlock the hard drive. (If the hard drive is then removed from the computer, it cannot be accessed by any BIOS that does not have the correct password or backdoor security key.) Note, however, that this precaution does not protect against booting from external devices if the BIOS is still set to allow that.&lt;br /&gt;
:* There is a risk to this security measure. If you forget the password and the BIOS passwords somehow get reset, the hard drive would become inaccessible. The BIOS and Hard Drive password(s) should always be stored in a safe location.&lt;br /&gt;
&lt;br /&gt;
* Password protect the Grub bootloader. Without password protection, Grub can be used to circumvent BIOS restrictions. See this section for [[Kubuntu_Raring_System_Administration#Protecting_Grub_Legacy_from_cracking|Grub Legacy]] and this section for [[Kubuntu_Raring_System_Administration#Protecting_Grub2_from_cracking|Grub2]].&lt;br /&gt;
&lt;br /&gt;
* Make sure all user accounts are protected by a [[Kubuntu_Raring_Privacy#Passwords_and_file_authentication|password]], and always require passwords for login. Never create an &amp;quot;administrator&amp;quot; user account (hidden or not) and leave it unprotected by a password. Never enable automatic login without a password to any user account.&lt;br /&gt;
:* It is possible to enable [[Kubuntu_Raring_Tips#Automatic_user_login|automatic login]] to a preferred password-protected user account while simultaneously enabling a password-protected screensaver (the password for which must still be entered even before initial user access). This is a reasonable solution that offers protection while still allowing automatic login.&lt;br /&gt;
&lt;br /&gt;
* Make sure a password-protected [[Kubuntu_Raring_Utilities#Screensavers|screensaver]] is always enabled (that will engage after a reasonably short period of inactivity).&lt;/div&gt;</description>
			<pubDate>Sun, 19 May 2013 12:20:32 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:K_Raring/Networking</comments>		</item>
		<item>
			<title>User:Perspectoff</title>
			<link>http://easylinux.info/wiki/User:Perspectoff</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Background */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Science tux.png]]&lt;br /&gt;
&lt;br /&gt;
From 2007 - 2012 I edited the English editions (grammar, spelling, and wiki appearance) of [http://ubuntuguide.org Ubuntuguide] and [http://ubuntuguide.org/wiki/Kubuntuguide Kubuntuguide], with the help of the excellent contributions by the users who added them. In 2012 I merged KubuntuGuide.org / Kubuntuguide.info with UbuntuGuide.org. During the same period I also ran a website called [http://ubuntudoctorsguild.dyndns.org Ubuntu Doctors Guild]. In early 2012 I moved several of my systems to [http://www.debian.org Debian] (with a KDE desktop) while maintaining multiple Kubuntu installations.&lt;br /&gt;
&lt;br /&gt;
As of late 2012 I am only intermittently involved&amp;lt;!---&amp;gt; formally&amp;lt;---&amp;gt; with the maintenance of this website&amp;lt;!---&amp;gt; (due to a financial dispute with the administrator)&amp;lt;---&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
I have been interested in distributed networks (&amp;quot;cloud computing&amp;quot;) using Debian/Ubuntu/Kubuntu, especially using the Logical Volume Manager, RAID, and datacenter management tools that are useful for small and medium size businesses.&lt;br /&gt;
&lt;br /&gt;
I am also an advocate for open-source (GPL-licensed) software solutions in health care, as a basis for a United States national health care system. I have served on a national standards committee regarding Health Information Technology in the US. A few years ago I created the (K)Ubuntu-derived [http://sourceforge.net/projects/ubuntu-med/ Ubuntu-Med] system (which is no longer maintained in its original form) and have now decided to focus on the [http://debian-med.alioth.debian.org/tasks/ Debian-Med] toolset instead, incorporating generic server functions into it.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
I originally wrote software and software documentation for a large aerospace project and then for several military projects.&lt;br /&gt;
&lt;br /&gt;
I was a UNIX and VMS user in the 1980s and networked two large organizations during the network protocol (TCP/IP) standardization period of the late 80s. I then made a detour to MS Windows for 10 years. Recently I have used Debian/(K)ubuntu over the past several years, on a network of triple boot systems (which includes multiple Windows-based boxes).&lt;br /&gt;
&lt;br /&gt;
My home is wired using LinuxMCE (Media Center Edition) 7.10 running on Kubuntu 7.10 (Gutsy), X10 controllers, surveillance cameras and motion detectors, and distributed multimedia.&lt;br /&gt;
&lt;br /&gt;
My medium-large organization (which is healthcare-related) uses Debian/Ubuntu servers with Kolab for groupware, Drupal for collaborative web content, MediaWiki as a wiki, and WorldVistA as an electronic medical record system. We have also used DAViCal as a group calendar server, with Mozilla Thunderbird/Lightning and Sunbird as clients. I have several advanced medical certifications, as well as several other degrees. I regularly collaborate with state and national governmental agencies (in the US) regarding health information technology.&lt;br /&gt;
&lt;br /&gt;
I also regularly contribute to Wikipedia, especially on specialized software topics, including electronic medical records. Most of my philosophy in life comes from [[User:Buckaroo_Banzai|Buckaroo Banzai]]. I currently live and work in Northern California.&lt;br /&gt;
&lt;br /&gt;
== Contact ==&lt;br /&gt;
My e-mail is [[File:Perpsectiveoffice_email.png|link=User:Perspectoff#Contact]].&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;center&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;!---&amp;gt;You can also leave me a message [[User_talk:Perspectoff|here on my talk page]]. &amp;lt;---&amp;gt;My involvement with this website is intermittent; my response time may be slow.&amp;lt;!---&amp;gt;I am no longer involved formally with this website.&amp;lt;---&amp;gt; Please contact one of the other [[Administrators]]. However, if you are having trouble making a submission to the 'guide, send it to me by email and I'll put it in for you (in a few days). I will also respond to sponsorship requests.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Wisdom ==&lt;br /&gt;
&amp;lt;bashfr /&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Until the Case is Sol-ved! ==&lt;br /&gt;
&amp;lt;!---&amp;gt;&lt;br /&gt;
=== Sponsor1 ===&lt;br /&gt;
{{Sponsors_LeftJust}}&lt;br /&gt;
&lt;br /&gt;
=== Sponsor2 ===&lt;br /&gt;
{{Sponsors_Centered}}&lt;br /&gt;
&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Clouseau270.jpg]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''Police Chief Lundallah''': He pulled himself across the floor using this wire. How else could he have avoided our radar field?&amp;lt;br&amp;gt;&lt;br /&gt;
'''Inspector Clouseau''': Yes, how else? Hmm. Of course, he would have needed a very slippery floor to do that...&amp;lt;br&amp;gt;&lt;br /&gt;
'''Police Chief Lundallah''': Therefore the wax.&amp;lt;br&amp;gt;&lt;br /&gt;
'''Inspector Clouseau''': The wax? ... AGHH! ''[Clouseau slips on the waxed floor and falls to the ground]''&amp;lt;br&amp;gt;&lt;br /&gt;
'''Col. Sharky''': Are you all right, Inspector?&amp;lt;br&amp;gt;&lt;br /&gt;
'''Inspector Clouseau''': ''[on his knees]'' Of course I'm alright. I'm... examining the wax. ''[sniffs the wax on the floor]'' Have you taken a sample of this wax?&amp;lt;br&amp;gt;&lt;br /&gt;
'''Police Chief Lundallah''': Wax is wax!&amp;lt;br&amp;gt;&lt;br /&gt;
'''Inspector Clouseau''': See, this is where you are wrong. Wax is NOT just wax. In this case it is a clue. Domestic wax, Belgian Wax, French Wax, English Wax...&amp;lt;br&amp;gt;&lt;br /&gt;
'''Col. Sharky''': Ah, the Inspector is right. Have the wax tested immediately.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Sandbox ==&lt;br /&gt;
A secluded beach on [http://en.wikipedia.org/wiki/Palau#Environment Palau]... or the desert of Black Rock City during [http://www.burningman.com/ Burning Man]...  sand is not just sand.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;!---&amp;gt;&lt;br /&gt;
== Table of Content with Icons (Testing) ==&lt;br /&gt;
__NOTOC__&lt;br /&gt;
-----------------------------------------------------------------------------&lt;br /&gt;
&amp;lt;center&amp;gt;[http://ubuntuguide.org/wiki/Kubuntu:Oneiric Full page] | [http://ubuntuguide.org/images/KubuntuGuideOneiricPt1.epub eBook Version]&amp;lt;/center&amp;gt;&lt;br /&gt;
-----------------------------------------------------------------------------&lt;br /&gt;
{|&lt;br /&gt;
|style=&amp;quot;width: 5%; border-width: 0px;&amp;quot;|[[File:Megaphone48.png|link=Kubuntu:Oneiric#General_Notes|Introduction]]||style=&amp;quot;width: 20%; border-width: 0px;&amp;quot;|[[Kubuntu:Oneiric#General_Notes|Introduction]]||style=&amp;quot;width: 5%; border-width: 0px;&amp;quot;|[[File:DownloadArrow48.png|link=Kubuntu:Oneiric#Installing_Kubuntu|Installation]] ||style=&amp;quot;width: 20%; border-width: 0px;&amp;quot;|[[Kubuntu:Oneiric#Installing_Kubuntu|Installation]]||style=&amp;quot;width: 5%; border-width: 0px;&amp;quot;|[[File:FullBox48.png|link=Kubuntu:Oneiric#Add_Extra_Repositories|Repositories]]||style=&amp;quot;width: 20%; border-width: 0px;&amp;quot;|[[Kubuntu:Oneiric#Add_Extra_Repositories|Repositories]]||style=&amp;quot;width: 5%; border-width: 0px;&amp;quot;|[[File:EmptyBox48.png|link=Kubuntu:Oneiric#Package_Installation_and_Updates|Hardware]]||style=&amp;quot;width: 20%; border-width: 0px;&amp;quot;|[[Kubuntu:Oneiric#Package_Installation_and_Updates|Packages]]&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Landscape36.png|link=Kubuntu:Oneiric#Desktop_Add-ons|Desktop Add-ons]] || [[Kubuntu:Oneiric#Desktop_Add-ons|Desktop Add-ons]] || [[File:VirtualPC48.png|link=Kubuntu:Oneiric#Virtualization|Virtual Machines]] || [[Kubuntu:Oneiric#Virtualization|Virtual Machines]] || [[File:Games48.png|link=Kubuntu:Oneiric#Edutainment_Applications|Games and Entertainment]] || [[Kubuntu:Oneiric#Edutainment_Applications|Games and&amp;lt;br&amp;gt; Entertainment]]|| [[File:WebBrowser48.png|link=Kubuntu:Oneiric#Internet_Applications|Internet]] || [[Kubuntu:Oneiric#Internet_Applications|Internet]]&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Privacy48.png|link=Kubuntu:Oneiric#Privacy|Privacy]] || [[Kubuntu:Oneiric#Privacy|Privacy]] || [[File:Tux-jail48.png|link=Kubuntu:Oneiric#Proprietary_Extras|Restricted Extras]] || [[Kubuntu:Oneiric#Proprietary_Extras|Restricted Extras]] || [[File:Cameraslr48.png|link=Kubuntu:Oneiric#Photos_and_Graphics|Photos and Graphics]] || [[Kubuntu:Oneiric#Photos_and_Graphics|Photos and&amp;lt;br&amp;gt; Graphics]]|| [[File:Screencast48.png|link=Kubuntu:Oneiric#Screencasts_and_Desktop_Recording|Screencapture]] || [[Kubuntu:Oneiric#Screencasts_and_Desktop_Recording|Screencapture]]&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Film48.png|link=Kubuntu:Oneiric#Video_Applications|Video]] || [[Kubuntu:Oneiric#Video_Applications|Video]] || [[File:Speaker48.png|link=Kubuntu:Oneiric#Audio_Applications|Audio]] || [[Kubuntu:Oneiric#Audio_Applications|Audio]] || [[File:MovieFilms48.png|link=Kubuntu:Oneiric#Audio_.2F_Video_conversion|Audio/Video Conversion]] || [[Kubuntu:Oneiric#Audio_.2F_Video_conversion|Audio/Video&amp;lt;br&amp;gt; Conversion]]|| [[File:Projector48.png|link=Kubuntu:Oneiric#Music_Players|Media Players]] || [[Kubuntu:Oneiric#Music_Players|Media Players]]&lt;br /&gt;
|-&lt;br /&gt;
|[[File:HouseWhite48.png|link=Kubuntu:Oneiric#Home_Automation_.2F_Home_Theater_.2F_Home_Security|Home Security and Automation]] || [[Kubuntu:Oneiric#Home_Automation_.2F_Home_Theater_.2F_Home_Security|Home Security&amp;lt;br&amp;gt; and Automation]] || [[File:CalcNote48.png|link=Kubuntu:Oneiric#Office_Suites|Office]] || [[Kubuntu:Oneiric#Office_Suites|Office]] || [[File:DigGold48.png|link=Kubuntu:Oneiric#Financial_Software|Financial]] || [[Kubuntu:Oneiric#Financial_Software|Financial]]|| [[File:Maps48.png|link=Kubuntu:Oneiric#Maps_and_GPS|Maps and GPS]] || [[Kubuntu:Oneiric#Maps_and_GPS|Maps and GPS]]&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Telescope48.png|link=Kubuntu:Oneiric#Science.2C_Technology.2C_and_Engineering_Applications|Science and Technology]] || [[Kubuntu:Oneiric#Science.2C_Technology.2C_and_Engineering_Applications|Science and&amp;lt;br&amp;gt; Technology]] || [[File:LanguageTools48.png|link=Kubuntu:Oneiric#Software_Development|Software Development and Online Storage]] || [[Kubuntu:Oneiric#Software_Development|Software Development&amp;lt;br&amp;gt; and Online Storage]] || [[File:CloudPlanet48.png|link=Kubuntu:Oneiric#Cluster_.28cloud.29_computing|Cloud Computing]] || [[Kubuntu:Oneiric#Cluster_.28cloud.29_computing|Cloud Computing]] || [[File:Groupware48.png|link=Kubuntu:Oneiric#Groupware|Groupware and Web Publishing]] || [[Kubuntu:Oneiric#Groupware|Groupware and&amp;lt;br&amp;gt; Web Publishing]]&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Pipe48.png|link=Kubuntu:Oneiric#Networking|Networking]] || [[Kubuntu:Oneiric#Networking|Networking]] || [[File:Remote48.png|link=Kubuntu:Oneiric#Remote_Access|Remote Access]] || [[Kubuntu:Oneiric#Remote_Access|Remote Access]] || [[File:HandWorldComp48.png|link=Kubuntu:Oneiric#Servers|Servers]] || [[Kubuntu:Oneiric#Servers|Servers]] || [[File:PlanetTool48.png|link=Kubuntu:Oneiric#Security|Network Management and Security]] || [[Kubuntu:Oneiric#Security|Network Management&amp;lt;br&amp;gt; and Security]]&lt;br /&gt;
|-&lt;br /&gt;
|[[File:People48.png|link=Kubuntu:Oneiric#User_Administration|User Admin]] || [[Kubuntu:Oneiric#User_Administration|User Admin]] || [[File:SysAdmin48.png|link=Kubuntu:Oneiric#System_Administration|System Admin]] || [[Kubuntu:Oneiric#System_Administration|System Admin]] || [[File:Utils48.png|link=Kubuntu:Oneiric#Utilities|Utilities]] || [[Kubuntu:Oneiric#Utilities|Utilities]] || [[File:LifePreserver48.png|link=Kubuntu:Oneiric#System_Backup_and_Recovery|System Backup and Rescue]] || [[Kubuntu:Oneiric#System_Backup_and_Recovery|System Backup&amp;lt;br&amp;gt; and Rescue]] || &lt;br /&gt;
|-&lt;br /&gt;
|[[File:Database48.png|link=Kubuntu:Oneiric#Databases|Databases]] || [[Kubuntu:Oneiric#Databases|Databases]] || [[File:RaidLVM48.png|link=Kubuntu:Oneiric#Setup_RAID_in_Ubuntu.2FKubuntu|RAID and LVM]] || [[Kubuntu:Oneiric#Setup_RAID_in_Ubuntu.2FKubuntu|RAID and LVM]] || [[File:Hardware48.png|link=Kubuntu:Oneiric#Hardware|Hardware]] || [[Kubuntu:Oneiric#Hardware|Hardware]] || [[File:Idea48.png|link=Kubuntu:Oneiric#Tips_.26_Tricks|Tips and Troubleshooting]] || [[Kubuntu:Oneiric#Tips_.26_Tricks|Tips and&amp;lt;br&amp;gt; Troubleshooting]] ||&lt;br /&gt;
|-&lt;br /&gt;
|[[File:NewsNote48.png|link=Kubuntu:Oneiric#Reviews|Reviews]] || [[Kubuntu:Oneiric#Reviews|Reviews]] || [[File:Mic48.png|link=Kubuntu:Oneiric#Requests|Requests]] || [[Kubuntu:Oneiric#Requests|Requests]]&lt;br /&gt;
|[[File:Books48.png|link=EBooks|eBooks]] || [[EBooks|eBooks]] || [[File:Santasteal48.png|link=Kubuntuguide_XML_exports|Steal this Guide]] || [[Kubuntuguide_XML_exports|Steal this Guide]] ||&lt;br /&gt;
|-&lt;br /&gt;
!colspan=&amp;quot;8&amp;quot;|[[File:AddressBook48.png|link=Kubuntu:Oneiric#Introduction|Table of Contents]] [[Kubuntu:Oneiric#Introduction|Table of Contents]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|style=&amp;quot;width: 5%; border-width: 0px;&amp;quot;|[[File:EmptyBox48.png|link=http://ubuntuguide.org/wiki/Kubuntu:Oneiric|Kubuntu Oneiric]]||style=&amp;quot;width: 45%; border-width: 0px;&amp;quot;|[http://ubuntuguide.org/wiki/Kubuntu:Oneiric Full page]||style=&amp;quot;width: 5%; border-width: 0px;&amp;quot;|[[File:EmptyBox48.png|link=http://ubuntuguide.org/images/KubuntuGuideOneiricPt1.epub|Kubuntu Oneiric eBook]]||style=&amp;quot;width: 45%; border-width: 0px;&amp;quot;|[http://ubuntuguide.org/images/KubuntuGuideOneiricPt1.epub eBook Version]&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;form action=&amp;quot;https://www.paypal.com/cgi-bin/webscr&amp;quot; method=&amp;quot;post&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;cmd&amp;quot; value=&amp;quot;_s-xclick&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;hosted_button_id&amp;quot; value=&amp;quot;10303877&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;image&amp;quot; src=&amp;quot;https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif&amp;quot; border=&amp;quot;0&amp;quot; name=&amp;quot;submit&amp;quot; alt=&amp;quot;PayPal - The safer, easier way to pay online!&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;img alt=&amp;quot;&amp;quot; border=&amp;quot;0&amp;quot; src=&amp;quot;https://www.paypal.com/en_US/i/scr/pixel.gif&amp;quot; width=&amp;quot;1&amp;quot; height=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;---&amp;gt;&lt;br /&gt;
-----------------------------------------------------------------------------&lt;/div&gt;</description>
			<pubDate>Sat, 18 May 2013 14:06:26 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/User_talk:Perspectoff</comments>		</item>
		<item>
			<title>User:Perspectoff</title>
			<link>http://easylinux.info/wiki/User:Perspectoff</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Science tux.png]]&lt;br /&gt;
&lt;br /&gt;
From 2007 - 2012 I edited the English editions (grammar, spelling, and wiki appearance) of [http://ubuntuguide.org Ubuntuguide] and [http://ubuntuguide.org/wiki/Kubuntuguide Kubuntuguide], with the help of the excellent contributions by the users who added them. In 2012 I merged KubuntuGuide.org / Kubuntuguide.info with UbuntuGuide.org. During the same period I also ran a website called [http://ubuntudoctorsguild.dyndns.org Ubuntu Doctors Guild]. In early 2012 I moved several of my systems to [http://www.debian.org Debian] (with a KDE desktop) while maintaining multiple Kubuntu installations.&lt;br /&gt;
&lt;br /&gt;
As of late 2012 I am only intermittently involved&amp;lt;!---&amp;gt; formally&amp;lt;---&amp;gt; with the maintenance of this website&amp;lt;!---&amp;gt; (due to a financial dispute with the administrator)&amp;lt;---&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
I have been interested in distributed networks (&amp;quot;cloud computing&amp;quot;) using Debian/Ubuntu/Kubuntu, especially using the Logical Volume Manager, RAID, and datacenter management tools that are useful for small and medium size businesses.&lt;br /&gt;
&lt;br /&gt;
I am also an advocate for open-source (GPL-licensed) software solutions in health care, as a basis for a United States national health care system. I have served on a national standards committee regarding Health Information Technology in the US. A few years ago I created the (K)Ubuntu-derived [http://sourceforge.net/projects/ubuntu-med/ Ubuntu-Med] system (which is no longer maintained in its original form) and have now decided to focus on the [http://debian-med.alioth.debian.org/tasks/ Debian-Med] toolset instead, incorporating generic server functions into it.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
I originally wrote software and software documentation for a large aerospace project and then for several military projects.&lt;br /&gt;
&lt;br /&gt;
I was a UNIX and VMS user in the 1980s and networked two large organizations during the network protocol (TCP/IP) standardization period of the late 80s. I then made a detour to MS Windows for 10 years. Recently I have used Debian/(K)ubuntu over the past several years, on a network of triple boot systems (which includes multiple Windows-based boxes).&lt;br /&gt;
&lt;br /&gt;
My home is wired using LinuxMCE (Media Center Edition) 7.10 running on Kubuntu 7.10 (Gutsy), X10 controllers, surveillance cameras and motion detectors, and distributed multimedia.&lt;br /&gt;
&lt;br /&gt;
My medium-large organization (which is healthcare-related) uses Debian/Ubuntu servers with Kolab for groupware, Drupal for collaborative web content, MediaWiki as a wiki, and WorldVistA as an electronic medical record system. We have also used DAViCal as a group calendar server, with Mozilla Thunderbird/Lightning and Sunbird as clients. I have several advanced medical certifications, as well as several other degrees. I regularly collaborate with state and national governmental agencies (in the US) regarding health information technology.&lt;br /&gt;
&lt;br /&gt;
I also regularly contribute to Wikipedia, especially on specialized software topics, including electronic medical records. Most of my philosophy in life comes from [[User:Buckaroo_Banzai|Buckaroo Banzai]]. I currently live in Northern California.&lt;br /&gt;
&lt;br /&gt;
== Contact ==&lt;br /&gt;
My e-mail is [[File:Perpsectiveoffice_email.png|link=User:Perspectoff#Contact]].&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;center&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;!---&amp;gt;You can also leave me a message [[User_talk:Perspectoff|here on my talk page]]. &amp;lt;---&amp;gt;My involvement with this website is intermittent; my response time may be slow.&amp;lt;!---&amp;gt;I am no longer involved formally with this website.&amp;lt;---&amp;gt; Please contact one of the other [[Administrators]]. However, if you are having trouble making a submission to the 'guide, send it to me by email and I'll put it in for you (in a few days). I will also respond to sponsorship requests.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Wisdom ==&lt;br /&gt;
&amp;lt;bashfr /&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Until the Case is Sol-ved! ==&lt;br /&gt;
&amp;lt;!---&amp;gt;&lt;br /&gt;
=== Sponsor1 ===&lt;br /&gt;
{{Sponsors_LeftJust}}&lt;br /&gt;
&lt;br /&gt;
=== Sponsor2 ===&lt;br /&gt;
{{Sponsors_Centered}}&lt;br /&gt;
&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Clouseau270.jpg]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''Police Chief Lundallah''': He pulled himself across the floor using this wire. How else could he have avoided our radar field?&amp;lt;br&amp;gt;&lt;br /&gt;
'''Inspector Clouseau''': Yes, how else? Hmm. Of course, he would have needed a very slippery floor to do that...&amp;lt;br&amp;gt;&lt;br /&gt;
'''Police Chief Lundallah''': Therefore the wax.&amp;lt;br&amp;gt;&lt;br /&gt;
'''Inspector Clouseau''': The wax? ... AGHH! ''[Clouseau slips on the waxed floor and falls to the ground]''&amp;lt;br&amp;gt;&lt;br /&gt;
'''Col. Sharky''': Are you all right, Inspector?&amp;lt;br&amp;gt;&lt;br /&gt;
'''Inspector Clouseau''': ''[on his knees]'' Of course I'm alright. I'm... examining the wax. ''[sniffs the wax on the floor]'' Have you taken a sample of this wax?&amp;lt;br&amp;gt;&lt;br /&gt;
'''Police Chief Lundallah''': Wax is wax!&amp;lt;br&amp;gt;&lt;br /&gt;
'''Inspector Clouseau''': See, this is where you are wrong. Wax is NOT just wax. In this case it is a clue. Domestic wax, Belgian Wax, French Wax, English Wax...&amp;lt;br&amp;gt;&lt;br /&gt;
'''Col. Sharky''': Ah, the Inspector is right. Have the wax tested immediately.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Sandbox ==&lt;br /&gt;
A secluded beach on [http://en.wikipedia.org/wiki/Palau#Environment Palau]... or the desert of Black Rock City during [http://www.burningman.com/ Burning Man]...  sand is not just sand.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;!---&amp;gt;&lt;br /&gt;
== Table of Content with Icons (Testing) ==&lt;br /&gt;
__NOTOC__&lt;br /&gt;
-----------------------------------------------------------------------------&lt;br /&gt;
&amp;lt;center&amp;gt;[http://ubuntuguide.org/wiki/Kubuntu:Oneiric Full page] | [http://ubuntuguide.org/images/KubuntuGuideOneiricPt1.epub eBook Version]&amp;lt;/center&amp;gt;&lt;br /&gt;
-----------------------------------------------------------------------------&lt;br /&gt;
{|&lt;br /&gt;
|style=&amp;quot;width: 5%; border-width: 0px;&amp;quot;|[[File:Megaphone48.png|link=Kubuntu:Oneiric#General_Notes|Introduction]]||style=&amp;quot;width: 20%; border-width: 0px;&amp;quot;|[[Kubuntu:Oneiric#General_Notes|Introduction]]||style=&amp;quot;width: 5%; border-width: 0px;&amp;quot;|[[File:DownloadArrow48.png|link=Kubuntu:Oneiric#Installing_Kubuntu|Installation]] ||style=&amp;quot;width: 20%; border-width: 0px;&amp;quot;|[[Kubuntu:Oneiric#Installing_Kubuntu|Installation]]||style=&amp;quot;width: 5%; border-width: 0px;&amp;quot;|[[File:FullBox48.png|link=Kubuntu:Oneiric#Add_Extra_Repositories|Repositories]]||style=&amp;quot;width: 20%; border-width: 0px;&amp;quot;|[[Kubuntu:Oneiric#Add_Extra_Repositories|Repositories]]||style=&amp;quot;width: 5%; border-width: 0px;&amp;quot;|[[File:EmptyBox48.png|link=Kubuntu:Oneiric#Package_Installation_and_Updates|Hardware]]||style=&amp;quot;width: 20%; border-width: 0px;&amp;quot;|[[Kubuntu:Oneiric#Package_Installation_and_Updates|Packages]]&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Landscape36.png|link=Kubuntu:Oneiric#Desktop_Add-ons|Desktop Add-ons]] || [[Kubuntu:Oneiric#Desktop_Add-ons|Desktop Add-ons]] || [[File:VirtualPC48.png|link=Kubuntu:Oneiric#Virtualization|Virtual Machines]] || [[Kubuntu:Oneiric#Virtualization|Virtual Machines]] || [[File:Games48.png|link=Kubuntu:Oneiric#Edutainment_Applications|Games and Entertainment]] || [[Kubuntu:Oneiric#Edutainment_Applications|Games and&amp;lt;br&amp;gt; Entertainment]]|| [[File:WebBrowser48.png|link=Kubuntu:Oneiric#Internet_Applications|Internet]] || [[Kubuntu:Oneiric#Internet_Applications|Internet]]&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Privacy48.png|link=Kubuntu:Oneiric#Privacy|Privacy]] || [[Kubuntu:Oneiric#Privacy|Privacy]] || [[File:Tux-jail48.png|link=Kubuntu:Oneiric#Proprietary_Extras|Restricted Extras]] || [[Kubuntu:Oneiric#Proprietary_Extras|Restricted Extras]] || [[File:Cameraslr48.png|link=Kubuntu:Oneiric#Photos_and_Graphics|Photos and Graphics]] || [[Kubuntu:Oneiric#Photos_and_Graphics|Photos and&amp;lt;br&amp;gt; Graphics]]|| [[File:Screencast48.png|link=Kubuntu:Oneiric#Screencasts_and_Desktop_Recording|Screencapture]] || [[Kubuntu:Oneiric#Screencasts_and_Desktop_Recording|Screencapture]]&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Film48.png|link=Kubuntu:Oneiric#Video_Applications|Video]] || [[Kubuntu:Oneiric#Video_Applications|Video]] || [[File:Speaker48.png|link=Kubuntu:Oneiric#Audio_Applications|Audio]] || [[Kubuntu:Oneiric#Audio_Applications|Audio]] || [[File:MovieFilms48.png|link=Kubuntu:Oneiric#Audio_.2F_Video_conversion|Audio/Video Conversion]] || [[Kubuntu:Oneiric#Audio_.2F_Video_conversion|Audio/Video&amp;lt;br&amp;gt; Conversion]]|| [[File:Projector48.png|link=Kubuntu:Oneiric#Music_Players|Media Players]] || [[Kubuntu:Oneiric#Music_Players|Media Players]]&lt;br /&gt;
|-&lt;br /&gt;
|[[File:HouseWhite48.png|link=Kubuntu:Oneiric#Home_Automation_.2F_Home_Theater_.2F_Home_Security|Home Security and Automation]] || [[Kubuntu:Oneiric#Home_Automation_.2F_Home_Theater_.2F_Home_Security|Home Security&amp;lt;br&amp;gt; and Automation]] || [[File:CalcNote48.png|link=Kubuntu:Oneiric#Office_Suites|Office]] || [[Kubuntu:Oneiric#Office_Suites|Office]] || [[File:DigGold48.png|link=Kubuntu:Oneiric#Financial_Software|Financial]] || [[Kubuntu:Oneiric#Financial_Software|Financial]]|| [[File:Maps48.png|link=Kubuntu:Oneiric#Maps_and_GPS|Maps and GPS]] || [[Kubuntu:Oneiric#Maps_and_GPS|Maps and GPS]]&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Telescope48.png|link=Kubuntu:Oneiric#Science.2C_Technology.2C_and_Engineering_Applications|Science and Technology]] || [[Kubuntu:Oneiric#Science.2C_Technology.2C_and_Engineering_Applications|Science and&amp;lt;br&amp;gt; Technology]] || [[File:LanguageTools48.png|link=Kubuntu:Oneiric#Software_Development|Software Development and Online Storage]] || [[Kubuntu:Oneiric#Software_Development|Software Development&amp;lt;br&amp;gt; and Online Storage]] || [[File:CloudPlanet48.png|link=Kubuntu:Oneiric#Cluster_.28cloud.29_computing|Cloud Computing]] || [[Kubuntu:Oneiric#Cluster_.28cloud.29_computing|Cloud Computing]] || [[File:Groupware48.png|link=Kubuntu:Oneiric#Groupware|Groupware and Web Publishing]] || [[Kubuntu:Oneiric#Groupware|Groupware and&amp;lt;br&amp;gt; Web Publishing]]&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Pipe48.png|link=Kubuntu:Oneiric#Networking|Networking]] || [[Kubuntu:Oneiric#Networking|Networking]] || [[File:Remote48.png|link=Kubuntu:Oneiric#Remote_Access|Remote Access]] || [[Kubuntu:Oneiric#Remote_Access|Remote Access]] || [[File:HandWorldComp48.png|link=Kubuntu:Oneiric#Servers|Servers]] || [[Kubuntu:Oneiric#Servers|Servers]] || [[File:PlanetTool48.png|link=Kubuntu:Oneiric#Security|Network Management and Security]] || [[Kubuntu:Oneiric#Security|Network Management&amp;lt;br&amp;gt; and Security]]&lt;br /&gt;
|-&lt;br /&gt;
|[[File:People48.png|link=Kubuntu:Oneiric#User_Administration|User Admin]] || [[Kubuntu:Oneiric#User_Administration|User Admin]] || [[File:SysAdmin48.png|link=Kubuntu:Oneiric#System_Administration|System Admin]] || [[Kubuntu:Oneiric#System_Administration|System Admin]] || [[File:Utils48.png|link=Kubuntu:Oneiric#Utilities|Utilities]] || [[Kubuntu:Oneiric#Utilities|Utilities]] || [[File:LifePreserver48.png|link=Kubuntu:Oneiric#System_Backup_and_Recovery|System Backup and Rescue]] || [[Kubuntu:Oneiric#System_Backup_and_Recovery|System Backup&amp;lt;br&amp;gt; and Rescue]] || &lt;br /&gt;
|-&lt;br /&gt;
|[[File:Database48.png|link=Kubuntu:Oneiric#Databases|Databases]] || [[Kubuntu:Oneiric#Databases|Databases]] || [[File:RaidLVM48.png|link=Kubuntu:Oneiric#Setup_RAID_in_Ubuntu.2FKubuntu|RAID and LVM]] || [[Kubuntu:Oneiric#Setup_RAID_in_Ubuntu.2FKubuntu|RAID and LVM]] || [[File:Hardware48.png|link=Kubuntu:Oneiric#Hardware|Hardware]] || [[Kubuntu:Oneiric#Hardware|Hardware]] || [[File:Idea48.png|link=Kubuntu:Oneiric#Tips_.26_Tricks|Tips and Troubleshooting]] || [[Kubuntu:Oneiric#Tips_.26_Tricks|Tips and&amp;lt;br&amp;gt; Troubleshooting]] ||&lt;br /&gt;
|-&lt;br /&gt;
|[[File:NewsNote48.png|link=Kubuntu:Oneiric#Reviews|Reviews]] || [[Kubuntu:Oneiric#Reviews|Reviews]] || [[File:Mic48.png|link=Kubuntu:Oneiric#Requests|Requests]] || [[Kubuntu:Oneiric#Requests|Requests]]&lt;br /&gt;
|[[File:Books48.png|link=EBooks|eBooks]] || [[EBooks|eBooks]] || [[File:Santasteal48.png|link=Kubuntuguide_XML_exports|Steal this Guide]] || [[Kubuntuguide_XML_exports|Steal this Guide]] ||&lt;br /&gt;
|-&lt;br /&gt;
!colspan=&amp;quot;8&amp;quot;|[[File:AddressBook48.png|link=Kubuntu:Oneiric#Introduction|Table of Contents]] [[Kubuntu:Oneiric#Introduction|Table of Contents]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|style=&amp;quot;width: 5%; border-width: 0px;&amp;quot;|[[File:EmptyBox48.png|link=http://ubuntuguide.org/wiki/Kubuntu:Oneiric|Kubuntu Oneiric]]||style=&amp;quot;width: 45%; border-width: 0px;&amp;quot;|[http://ubuntuguide.org/wiki/Kubuntu:Oneiric Full page]||style=&amp;quot;width: 5%; border-width: 0px;&amp;quot;|[[File:EmptyBox48.png|link=http://ubuntuguide.org/images/KubuntuGuideOneiricPt1.epub|Kubuntu Oneiric eBook]]||style=&amp;quot;width: 45%; border-width: 0px;&amp;quot;|[http://ubuntuguide.org/images/KubuntuGuideOneiricPt1.epub eBook Version]&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;form action=&amp;quot;https://www.paypal.com/cgi-bin/webscr&amp;quot; method=&amp;quot;post&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;cmd&amp;quot; value=&amp;quot;_s-xclick&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;hosted_button_id&amp;quot; value=&amp;quot;10303877&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;image&amp;quot; src=&amp;quot;https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif&amp;quot; border=&amp;quot;0&amp;quot; name=&amp;quot;submit&amp;quot; alt=&amp;quot;PayPal - The safer, easier way to pay online!&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;img alt=&amp;quot;&amp;quot; border=&amp;quot;0&amp;quot; src=&amp;quot;https://www.paypal.com/en_US/i/scr/pixel.gif&amp;quot; width=&amp;quot;1&amp;quot; height=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;---&amp;gt;&lt;br /&gt;
-----------------------------------------------------------------------------&lt;/div&gt;</description>
			<pubDate>Sat, 18 May 2013 14:04:37 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/User_talk:Perspectoff</comments>		</item>
		<item>
			<title>Talk:Apache2 reverse proxies</title>
			<link>http://easylinux.info/wiki/Talk:Apache2_reverse_proxies</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains errors.&lt;br /&gt;
&lt;br /&gt;
Activate the virtual host file by making a symbolic link to the Apache2 sites-enabled folder then restarting Apache2:&lt;br /&gt;
&lt;br /&gt;
 sudo ln -s /etc/apache2/''sites-available''/proxiedhosts /etc/apache2/''sites-enabled''&lt;br /&gt;
&lt;br /&gt;
:not&lt;br /&gt;
&lt;br /&gt;
 sudo ln -s /etc/apache2/''sites-enabled''/proxiedhosts /etc/apache2/''sites-enabled''&lt;br /&gt;
&lt;br /&gt;
There's another step above it where the ''proxiedhosts'' file is created in sites-available. [[User:Jebbushell|Jebbushell]] 11:32, 14 May 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
: Thank you, thank you for being so observant! That is a critical error. I have made the changes exactly as you pointed out. [[User:Perspectoff|Perspectoff]] 22:34, 17 May 2013 (UTC)&lt;/div&gt;</description>
			<pubDate>Fri, 17 May 2013 22:39:37 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Talk:Apache2_reverse_proxies</comments>		</item>
		<item>
			<title>Talk:Apache2 reverse proxies</title>
			<link>http://easylinux.info/wiki/Talk:Apache2_reverse_proxies</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains errors.&lt;br /&gt;
&lt;br /&gt;
Activate the virtual host file by making a symbolic link to the Apache2 sites-enabled folder then restarting Apache2:&lt;br /&gt;
&lt;br /&gt;
 sudo ln -s /etc/apache2/''sites-available''/proxiedhosts /etc/apache2/''sites-enabled''&lt;br /&gt;
&lt;br /&gt;
:not&lt;br /&gt;
&lt;br /&gt;
 sudo ln -s /etc/apache2/''sites-enabled''/proxiedhosts /etc/apache2/''sites-enabled''&lt;br /&gt;
&lt;br /&gt;
There's another step above it where the ''proxiedhosts'' file is created in sites-available. [[User:Perspectoff|Perspectoff]] 11:32, 14 May 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
: Thank you, thank you for being so observant! That is a critical error. I have made the changes exactly as you pointed out. [[User:Perspectoff|Perspectoff]] 22:34, 17 May 2013 (UTC)&lt;/div&gt;</description>
			<pubDate>Fri, 17 May 2013 22:38:50 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Talk:Apache2_reverse_proxies</comments>		</item>
		<item>
			<title>Talk:Apache2 reverse proxies</title>
			<link>http://easylinux.info/wiki/Talk:Apache2_reverse_proxies</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains errors.&lt;br /&gt;
&lt;br /&gt;
Activate the virtual host file by making a symbolic link to the Apache2 sites-enabled folder then restarting Apache2:&lt;br /&gt;
&lt;br /&gt;
 sudo ln -s /etc/apache2/''sites-available''/proxiedhosts /etc/apache2/''sites-enabled''&lt;br /&gt;
&lt;br /&gt;
:not&lt;br /&gt;
&lt;br /&gt;
 sudo ln -s /etc/apache2/''sites-enabled''/proxiedhosts /etc/apache2/''sites-enabled''&lt;br /&gt;
&lt;br /&gt;
There's another step above it where the ''proxiedhosts'' file is created in sites-available.&lt;br /&gt;
&lt;br /&gt;
: Thank you, thank you for being so observant! That is a critical error. I have made the changes exactly as you pointed out. [[User:Perspectoff|Perspectoff]] 22:34, 17 May 2013 (UTC)&lt;/div&gt;</description>
			<pubDate>Fri, 17 May 2013 22:37:38 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Talk:Apache2_reverse_proxies</comments>		</item>
		<item>
			<title>Talk:Apache2 reverse proxies</title>
			<link>http://easylinux.info/wiki/Talk:Apache2_reverse_proxies</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains errors.&lt;br /&gt;
&lt;br /&gt;
Activate the virtual host file by making a symbolic link to the Apache2 sites-enabled folder then restarting Apache2:&lt;br /&gt;
&lt;br /&gt;
    sudo ln -s /etc/apache2/''sites-available''/proxiedhosts /etc/apache2/''sites-enabled''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There's another step above it where the ''proxiedhosts'' file is created in sites-available.&lt;br /&gt;
&lt;br /&gt;
: Thank you, thank you for being so observant! That is a critical error. I have made the changes exactly as you pointed out. [[User:Perspectoff|Perspectoff]] 22:34, 17 May 2013 (UTC)&lt;/div&gt;</description>
			<pubDate>Fri, 17 May 2013 22:36:26 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Talk:Apache2_reverse_proxies</comments>		</item>
		<item>
			<title>Talk:Apache2 reverse proxies</title>
			<link>http://easylinux.info/wiki/Talk:Apache2_reverse_proxies</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains errors.&lt;br /&gt;
&lt;br /&gt;
Activate the virtual host file by making a symbolic link to the Apache2 sites-enabled folder then restarting Apache2:&lt;br /&gt;
&lt;br /&gt;
    sudo ln -s /etc/apache2/''sites-enabled''/proxiedhosts /etc/apache2/''sites-enabled''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There's another above it where the proxiedhosts file is created in sites-enabled, not sites-available.&lt;br /&gt;
&lt;br /&gt;
: Thank you, thank you for being so observant! That is a critical error. I have made the changes exactly as you pointed out. [[User:Perspectoff|Perspectoff]] 22:34, 17 May 2013 (UTC)&lt;/div&gt;</description>
			<pubDate>Fri, 17 May 2013 22:34:55 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Talk:Apache2_reverse_proxies</comments>		</item>
		<item>
			<title>User talk:Jebbushell</title>
			<link>http://easylinux.info/wiki/User_talk:Jebbushell</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;Created page with 'Thank you VERY much for your correction (regarding Apache reverse proxies)! That was an important one!  So glad you read that far and corrected the significant error. I have made…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Thank you VERY much for your correction (regarding Apache reverse proxies)! That was an important one!&lt;br /&gt;
&lt;br /&gt;
So glad you read that far and corrected the significant error. I have made the changes exactly as you said. I noticed you even kept my nomenclature, which is quite observant. Thank you again. [[User:Perspectoff|Perspectoff]] 22:33, 17 May 2013 (UTC)&lt;/div&gt;</description>
			<pubDate>Fri, 17 May 2013 22:33:38 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/User_talk:Jebbushell</comments>		</item>
		<item>
			<title>Template:Apache2 reverse proxies</title>
			<link>http://easylinux.info/wiki/Template:Apache2_reverse_proxies</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Apache2 reverse proxies */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Apache2 reverse proxies =&lt;br /&gt;
This solution solves the problem of having multiple servers on a LAN which has a single router connected to the Internet. The router forwards all port 80 traffic to a single primary server. That server will then be required to act as a proxy for the other servers on the LAN, redirecting incoming traffic addressed to the URLs of those other servers to their respective LAN IP addresses.&lt;br /&gt;
&lt;br /&gt;
This increases the amount of traffic passing through the primary server, so is not a recommended solution for high volume situations unless the primary server is a dedicated gateway/proxy server. (For high volume situations, a [[Ubuntu:All#Reverse_proxy_Servers_and_Load_Balancers|load balancer]] such as Pound should be used.)&lt;br /&gt;
&lt;br /&gt;
This method uses Apache2 virtual host configuration files on the primary server (to which the router sends port 80 traffic).&lt;br /&gt;
&lt;br /&gt;
*On the primary server (which will act as the proxy), create a symbolic link to enable the proxy modules in Apache2, then restart Apache2:&lt;br /&gt;
 sudo ln -s /etc/apache2/mods-available/proxy.load /etc/apache2/mods-enabled&lt;br /&gt;
 sudo ln -s /etc/apache2/mods-available/proxy_http.load /etc/apache2/mods-enabled&lt;br /&gt;
 sudo /etc/init.d/apache2 restart&lt;br /&gt;
&lt;br /&gt;
*Edit a virtual host file for all secondary servers (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo kate /etc/apache2/sites-available/''proxiedhosts''&lt;br /&gt;
&lt;br /&gt;
:and edit the file so that it resembles:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 ServerName ''internalserver2.mydomain.org''&lt;br /&gt;
 #&lt;br /&gt;
     ProxyPreserveHost On&lt;br /&gt;
     ProxyRequests off&lt;br /&gt;
     ProxyPass / http://''192.168.1.192''/&lt;br /&gt;
     ProxyPassReverse / http://''192.168.1.192''/&lt;br /&gt;
 #&lt;br /&gt;
 &amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 #&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 #ServerName ''internalserver3.mydomain.org''&lt;br /&gt;
 #&lt;br /&gt;
 #     ProxyPreserveHost On&lt;br /&gt;
 #     ProxyRequests off&lt;br /&gt;
 #     ProxyPass / http://''192.168.1.193''/&lt;br /&gt;
 #     ProxyPassReverse / http://''192.168.1.193''/&lt;br /&gt;
 #&lt;br /&gt;
 #&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 #&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 #ServerName ''internalserver4.mydomain.org''&lt;br /&gt;
 #&lt;br /&gt;
 #     ProxyPreserveHost On&lt;br /&gt;
 #     ProxyRequests off&lt;br /&gt;
 #     ProxyPass / http://''192.168.1.194''/&lt;br /&gt;
 #     ProxyPassReverse / http://''192.168.1.194''/&lt;br /&gt;
 #&lt;br /&gt;
 #&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Make sure that each URL for each server has an entry (and obviously remove the hashmarks for each one that is active).&lt;br /&gt;
&lt;br /&gt;
*Activate the virtual host file by making a symbolic link to the Apache2 sites-enabled folder then restarting Apache2:&lt;br /&gt;
 sudo ln -s /etc/apache2/sites-available/''proxiedhosts'' /etc/apache2/sites-enabled&lt;br /&gt;
 sudo /etc/init.d/apache2 restart&lt;br /&gt;
&lt;br /&gt;
== Other resources ==&lt;br /&gt;
The information for this page was synthesized from these sources:&lt;br /&gt;
*[http://jeffbaier.com/articles/configuring-apache-virtual-hosts-for-nat/ Configuring Apache virtual hosts for NAT] -- blog tutorial for Apache ProxyPass&lt;br /&gt;
*[http://www.raskas.be/blog/2006/04/21/reverse-proxy-of-virtual-hosts-with-apache-2/ Reverse proxy of virtual hosts with apache 2] (no longer available)&lt;br /&gt;
*[http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass Apache2 mod_proxy instructions]&lt;/div&gt;</description>
			<pubDate>Fri, 17 May 2013 22:30:58 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Apache2_reverse_proxies</comments>		</item>
		<item>
			<title>Template:Apache2 reverse proxies</title>
			<link>http://easylinux.info/wiki/Template:Apache2_reverse_proxies</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Apache2 reverse proxies */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Apache2 reverse proxies =&lt;br /&gt;
This solution solves the problem of having multiple servers on a LAN which has a single router connected to the Internet. The router forwards all port 80 traffic to a single primary server. That server will then be required to act as a proxy for the other servers on the LAN, redirecting incoming traffic addressed to the URLs of those other servers to their respective LAN IP addresses.&lt;br /&gt;
&lt;br /&gt;
This increases the amount of traffic passing through the primary server, so is not a recommended solution for high volume situations unless the primary server is a dedicated gateway/proxy server. (For high volume situations, a [[Ubuntu:All#Reverse_proxy_Servers_and_Load_Balancers|load balancer]] such as Pound should be used.)&lt;br /&gt;
&lt;br /&gt;
This method uses Apache2 virtual host configuration files on the primary server (to which the router sends port 80 traffic).&lt;br /&gt;
&lt;br /&gt;
*On the primary server (which will act as the proxy), create a symbolic link to enable the proxy modules in Apache2, then restart Apache2:&lt;br /&gt;
 sudo ln -s /etc/apache2/mods-available/proxy.load /etc/apache2/mods-enabled&lt;br /&gt;
 sudo ln -s /etc/apache2/mods-available/proxy_http.load /etc/apache2/mods-enabled&lt;br /&gt;
 sudo /etc/init.d/apache2 restart&lt;br /&gt;
&lt;br /&gt;
*Edit a virtual host file for all secondary servers (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo kate /etc/apache2/sites-available/proxiedhosts&lt;br /&gt;
&lt;br /&gt;
:and edit the file so that it resembles:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 ServerName ''internalserver2.mydomain.org''&lt;br /&gt;
 #&lt;br /&gt;
     ProxyPreserveHost On&lt;br /&gt;
     ProxyRequests off&lt;br /&gt;
     ProxyPass / http://''192.168.1.192''/&lt;br /&gt;
     ProxyPassReverse / http://''192.168.1.192''/&lt;br /&gt;
 #&lt;br /&gt;
 &amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 #&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 #ServerName ''internalserver3.mydomain.org''&lt;br /&gt;
 #&lt;br /&gt;
 #     ProxyPreserveHost On&lt;br /&gt;
 #     ProxyRequests off&lt;br /&gt;
 #     ProxyPass / http://''192.168.1.193''/&lt;br /&gt;
 #     ProxyPassReverse / http://''192.168.1.193''/&lt;br /&gt;
 #&lt;br /&gt;
 #&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 #&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 #ServerName ''internalserver4.mydomain.org''&lt;br /&gt;
 #&lt;br /&gt;
 #     ProxyPreserveHost On&lt;br /&gt;
 #     ProxyRequests off&lt;br /&gt;
 #     ProxyPass / http://''192.168.1.194''/&lt;br /&gt;
 #     ProxyPassReverse / http://''192.168.1.194''/&lt;br /&gt;
 #&lt;br /&gt;
 #&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Make sure that each URL for each server has an entry (and obviously remove the hashmarks for each one that is active).&lt;br /&gt;
&lt;br /&gt;
*Activate the virtual host file by making a symbolic link to the Apache2 sites-enabled folder then restarting Apache2:&lt;br /&gt;
 sudo ln -s /etc/apache2/sites-available/proxiedhosts /etc/apache2/sites-enabled&lt;br /&gt;
 sudo /etc/init.d/apache2 restart&lt;br /&gt;
&lt;br /&gt;
== Other resources ==&lt;br /&gt;
The information for this page was synthesized from these sources:&lt;br /&gt;
*[http://jeffbaier.com/articles/configuring-apache-virtual-hosts-for-nat/ Configuring Apache virtual hosts for NAT] -- blog tutorial for Apache ProxyPass&lt;br /&gt;
*[http://www.raskas.be/blog/2006/04/21/reverse-proxy-of-virtual-hosts-with-apache-2/ Reverse proxy of virtual hosts with apache 2] (no longer available)&lt;br /&gt;
*[http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass Apache2 mod_proxy instructions]&lt;/div&gt;</description>
			<pubDate>Fri, 17 May 2013 22:29:31 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Apache2_reverse_proxies</comments>		</item>
		<item>
			<title>Template:Public Service Announcement</title>
			<link>http://easylinux.info/wiki/Template:Public_Service_Announcement</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Public Service Announcement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Public Service Announcement ==&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* Support [http://en.wikipedia.org/wiki/Earth_Day Earth Day] all year long and do your part to reduce energy consumption (and CO2 emissions) and help reduce the rate of global warming. Perhaps consider a low-power computer, such as those from [http://aleutia.com/products Aleutia] or [http://www.fit-pc.com Fit-PC]. Maybe browse a news website dedicated to energy efficiency, such as [http://www.environmentalleader.com/category/smart-grid/ Enviornmental Leader]...&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; ... and plant some trees. &lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* In the United States, two legislative bills, [https://en.wikipedia.org/wiki/Stop_Online_Piracy_Act SOPA] and [https://en.wikipedia.org/wiki/PROTECT_IP_Act PIPA], were defeated after close examination and widespread public outcry against them. In response, a new legislative bill with even more ominous consequences to the usage and functioning of the Internet, [https://en.wikipedia.org/wiki/Cyber_Intelligence_Sharing_and_Protection_Act CISPA], has been drafted. This bill allows [http://en.wikipedia.org/wiki/Big_Brother_%28Nineteen_Eighty-Four%29 Big Brother] monitoring of every citizen not only by government but also by private agencies. If you are a US citizen, review the implications of this bill and write to your congressperson about the unnecessarily broad and intrusive nature of this bill. Hopefully your representative has more than a 6th-grade education (if you live [http://www.guardian.co.uk/commentisfree/2013/apr/18/cispa-2013-house-vote-internet-privacy in Michigan] you may be out of luck).&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;/div&gt;</description>
			<pubDate>Sat, 04 May 2013 04:14:19 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Public_Service_Announcement</comments>		</item>
		<item>
			<title>Template:Tor</title>
			<link>http://easylinux.info/wiki/Template:Tor</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Using Konversation with Tor */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Tor =&lt;br /&gt;
[http://www.torproject.org/ Tor] is a project to allow privacy while using the Internet and to limit usage tracking. It routes your traffic through several anonymous nodes, so that your usage appears to come from an IP other than your own. (There are always risks when using the Internet that even Tor can not help with, though. Read [http://www.torproject.org/download.html.en#Warning this].) Using Tor can slow down your Internet usage significantly, depending on how much traffic is being passed through the Tor network (routine file-sharing or large downloads will also significantly reduce performance of the Tor network.)&lt;br /&gt;
&lt;br /&gt;
* Tor network speed improves when there are more [https://www.torproject.org/getinvolved/volunteer.html.en volunteers] to run [https://www.torproject.org/docs/tor-doc-relay.html.en relays] (and relays have better anonymity), bridges, and exit nodes. Please consider being a relay or bridge node if your ISP does not filter Tor and you have good bandwidth. Additonally please consider configuring your relay as an [https://www.torproject.org/docs/faq.html.en#ExitPolicies exit node] (if you are in a favorable network and don't mind a little bit of potential [https://blog.torproject.org/blog/tips-running-exit-node-minimal-harassment hassle] for being an exit node).&lt;br /&gt;
&lt;br /&gt;
== Install Tor (Network privacy) ==&lt;br /&gt;
* Install Tor by following the instructions [https://www.torproject.org/docs/debian here]. Note that the instructions require port 11371 on your firewall to be open to use the gpg keyserver (and download the key for the debian package). Then see the [http://www.torproject.org/docs/tor-doc-unix.html Tor installation guide] for details. In general:&lt;br /&gt;
 sudo apt-get install tor&lt;br /&gt;
&lt;br /&gt;
* Tor can be run in its default configuration from the command-line (or from a menu item with the &amp;quot;Advanced -&amp;gt; Run in terminal&amp;quot; box ticked):&lt;br /&gt;
 tor&lt;br /&gt;
&lt;br /&gt;
:A separate menu item can be created to reliably shut down Tor:&lt;br /&gt;
 sudo killall tor &lt;br /&gt;
&lt;br /&gt;
* By default Tor listens for Socks5 traffic on port 9050. (Socks5 proxies are able to tunnel both UDP and HTTP traffic through them.) In general, applications (including other daisy-chained proxies) should be configured to use Tor as a Socks5 proxy on port 9050.&lt;br /&gt;
&lt;br /&gt;
* I don't like Tor to automatically start at boot, so I edit the /etc/tor/torrc configuration file (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo kate /etc/tor/torrc&lt;br /&gt;
&lt;br /&gt;
:and change the line so it looks like:&lt;br /&gt;
 #RunAsDaemon 1&lt;br /&gt;
 RunAsDaemon 0&lt;br /&gt;
&lt;br /&gt;
:then restart Tor:&lt;br /&gt;
 sudo /etc/init.d/tor restart&lt;br /&gt;
&lt;br /&gt;
== Using Tor with Firefox ==&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Tor acts as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy] on port 9050. Recent versions of Firefox allow direction of all traffic, including DNS resolution, through a Socks5 proxy. To enable this behaviour (after starting and running a previously installed version of Tor):&lt;br /&gt;
:Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Advanced -&amp;gt; Network -&amp;gt; Connection:Settings -&amp;gt; Manual proxy configuration (''ticked'') -&amp;gt; SOCKS Host: ''127.0.0.1'' (or ''localhost'') -&amp;gt; Port: ''9050'' -&amp;gt; SOCKSv5 (''ticked'') -&amp;gt; No Proxy for: ''127.0.0.1'' (or ''localhost'')&lt;br /&gt;
* To return to using Firefox without a proxy (such as Tor), choose &amp;quot;No proxy&amp;quot; in the Firefox Network settings: &lt;br /&gt;
:Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Advanced -&amp;gt; Network -&amp;gt; Connection:Settings -&amp;gt; No proxy (''ticked'')&lt;br /&gt;
&lt;br /&gt;
== Tor Browser Bundle ==&lt;br /&gt;
The [https://www.torproject.org/projects/torbrowser.html Tor Browser Bundle] (Tor, Vidalia GUI, a modified version of Firefox, and Torbutton) provides greater functionality and security than the stock Firefox version with the standalone Torbutton. Install from [https://www.torproject.org/projects/torbrowser.html here] the version for your language and unpack it. For example:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;https://www.torproject.org/dist/torbrowser/linux/&amp;lt;/nowiki&amp;gt;tor-browser-gnu-linux-x86_64-2.2.35-12-dev-en-US.tar.gz&lt;br /&gt;
 tar -xvzf tor-browser-gnu-linux-x86_64-2.2.35-12-dev-en-US.tar.gz&lt;br /&gt;
&lt;br /&gt;
Then change to the extracted directory and start the Tor Browser Bundle:&lt;br /&gt;
 cd tor-browser_en-US&lt;br /&gt;
 ./start-tor-browser&lt;br /&gt;
&lt;br /&gt;
A menu item can also be created with the command to start it.&lt;br /&gt;
&lt;br /&gt;
=== Torbutton (Firefox plug-in) ===&lt;br /&gt;
Once the [[#Tor_Browser_Bundle|Tor Browser Bundle]] is installed and Tor is running properly, [https://www.torproject.org/torbutton/ Torbutton] allows you to choose whether to use Firefox through the Tor anonymizing network or not. Updates to Torbutton can be installed using the .xpi extension found directly from the [https://www.torproject.org/torbutton/ website].&lt;br /&gt;
&lt;br /&gt;
* As of 2012, Torbutton only works with modified versions of Firefox found in the Tor Project's [https://www.torproject.org/projects/torbrowser.html Tor Browser Bundle] (Tor, Vidalia GUI, a modified version of Firefox, and Torbutton) or with some older (non-updated) versions of Firefox.&lt;br /&gt;
&lt;br /&gt;
* Newer versions of Firefox may refuse to start when Torbutton is installed. If this occurs, Firefox must be started in safe mode:&lt;br /&gt;
 firefox -safe-mode&lt;br /&gt;
&lt;br /&gt;
:Be sure to select &amp;quot;Start in Safe Mode&amp;quot; instead of &amp;quot;Reset Firefox&amp;quot; (unless you want to erase all your configuration settings and erase all your extensions/add-ons/plug-ins). Once in Safe Mode, the Torbutton extension can be disabled or removed (Firefox -&amp;gt; Tools -&amp;gt; Add-ons -&amp;gt; Extensions -&amp;gt; Torbutton -&amp;gt; Remove) and Firefox set to use &amp;quot;No proxy&amp;quot; in the Firefox Network settings: &lt;br /&gt;
::Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Advanced -&amp;gt; Network -&amp;gt; Connection:Settings -&amp;gt; No proxy (''ticked'') &lt;br /&gt;
&lt;br /&gt;
* The standalone Torbutton add-on for Firefox disables many functions of Firefox (when used with older unmodified versions of Firefox), such as the Drag and Drop function. It must therefore be disabled (Firefox -&amp;gt; Tools -&amp;gt; Add-ons -&amp;gt; Extensions -&amp;gt; Torbutton -&amp;gt; Disable) while using many of these Firefox functions.&lt;br /&gt;
&lt;br /&gt;
== Using Konversation with Tor ==&lt;br /&gt;
[[Kubuntu_Precise_Internet#Konversation_.28IRC_client.29|Konversation]] is an Internet Relay Chat client similar to [[MIRC|mIRC]]. Unfortunately, your IP address is easily determioned while using an IRC client. Konversation directly allows the use of a Socks proxy, however. If running Tor on port 9050, configure Konversation to use the Socks5 proxy on port 9050:&lt;br /&gt;
:Konversation -&amp;gt; Settings -&amp;gt; Configure Konversation... -&amp;gt; Behavior: Connection -&amp;gt; Proxy (''ticked'') -&amp;gt; Type: ''Socks v5'' -&amp;gt; Address: ''127.0.0.1'' (or ''localhost'') -&amp;gt; Port: ''9050''&lt;br /&gt;
&lt;br /&gt;
== Using proxies with Tor ==&lt;br /&gt;
=== usewithtor ===&lt;br /&gt;
* If you installed a recent version of Tor from the repositories, you will have installed the &amp;quot;[http://code.google.com/p/torsocks/ usewithtor]&amp;quot; package. A number of applications can be automatically redirected to the Torsocks proxy ([http://code.google.com/p/torsocks/ torsocks]) with this utility:&lt;br /&gt;
 usewithtor ''myapplication''&lt;br /&gt;
&lt;br /&gt;
A menu item with such a command can then be created.&lt;br /&gt;
&lt;br /&gt;
* By using torsocks, usewithtor will also block an application from sending UDP traffic (which is not anonymized by the Tor network).&lt;br /&gt;
&lt;br /&gt;
* Applications that you wish to &amp;quot;usewithtor&amp;quot; (with torsocks) or &amp;quot;torify&amp;quot; (with tsocks) should use port 8118 for the http proxy port and port 9050 for the socks port.&lt;br /&gt;
&lt;br /&gt;
=== torify ===&lt;br /&gt;
* Another method is to &amp;quot;[https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO torify]&amp;quot; an application with a different tor socks proxy ([http://tsocks.sourceforge.net/ tsocks]) if tsocks has been configured (edit /etc/tor/tor-tsocks.conf).&lt;br /&gt;
 torify ''myapplication''&lt;br /&gt;
&lt;br /&gt;
* tsocks does not explictly block UDP traffic, so if it is desirable to allow UDP traffic while anonymizing fttp traffic, use this method.&lt;br /&gt;
&lt;br /&gt;
=== Privoxy ===&lt;br /&gt;
* I use the Privoxy proxy to tunnel http traffic through Tor. Install the Privoxy http proxy:&lt;br /&gt;
 sudo apt-get install privoxy&lt;br /&gt;
&lt;br /&gt;
* Applications can be set to send their http traffic to Privoxy over port 8118; Privoxy will then in turn forward the http traffic to Tor over port 9050. (Use an IP address other than ''127.0.0.1'' if Privoxy and/or Tor are not on the local machine. Use ''localhost'' instead of ''127.0.0.1'' if using IPv6 addressing on your systems).&lt;br /&gt;
&lt;br /&gt;
Note: For some older versions of Privoxy, users have reported better success designating the address of the host computer as ''127.0.0.1'' instead of ''localhost'' in the configuration settings.&lt;br /&gt;
&lt;br /&gt;
* Edit configuration files.&lt;br /&gt;
:* In the configuration file Privoxy is configured by default to listen on port ''127.0.0.1'':8118. See [[#Firewall_considerations|Firewall considerations]]. Edit the Privoxy configuration file (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo kate /etc/privoxy/config&lt;br /&gt;
::Add the lines&lt;br /&gt;
 forward-socks5 / ''127.0.0.1'':9050 .&lt;br /&gt;
 forward-socks4a / ''127.0.0.1'':9050 .&lt;br /&gt;
&lt;br /&gt;
Note: socks5 allows more authentication choices, UDP for external DNS resolution, and accommodates IPv6. (By including both lines, socks4a is used as a fallback if a program does not support socks5.)&lt;br /&gt;
&lt;br /&gt;
:*Restart Privoxy:&lt;br /&gt;
 sudo /etc/init.d/privoxy restart&lt;br /&gt;
&lt;br /&gt;
=== Other proxies ===&lt;br /&gt;
Other proxies such as [http://www.dest-unreach.org/socat/doc/socat.html socat], [http://www.pps.jussieu.fr/~jch/software/polipo/ Polipo] can also be used with Tor instead or Privoxy. [http://www.squid-cache.org/ Squid] can also be daisy-chained to one of the proxies.&lt;br /&gt;
&lt;br /&gt;
=== Ensuring applications use the proxy ===&lt;br /&gt;
* See [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/Misc#UnixandLinuxConfiguration this advice]. (Note: this is labeled as &amp;quot;old advice.&amp;quot;) In (K)Ubuntu, the bash configuration files are at ~/.profile (i.e. /home/''user''/.profile) for the current user or at /etc/profile for system-wide usage. Using this advice, edit one of those two files and add the lines at the end of the file:&lt;br /&gt;
 http_proxy=&amp;lt;nowiki&amp;gt;http://127.0.0.1:8118/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 HTTP_PROXY=$http_proxy&lt;br /&gt;
 export http_proxy HTTP_PROXY&lt;br /&gt;
&lt;br /&gt;
==== Using specific applications with Tor ====&lt;br /&gt;
* [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/WebBrowsers Web Browsers]&lt;br /&gt;
* [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/EMail E-mail]&lt;br /&gt;
* [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/IrcSilc IRC/SILC]&lt;br /&gt;
* [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/TorifyHOWTO/FTP FTP]&lt;br /&gt;
* [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/Misc Misc]&lt;br /&gt;
* [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/InstantMessaging Instant Messaging]&lt;br /&gt;
:* Torchat can be used for IM through Tor. Install:&lt;br /&gt;
 sudo apt-get install torchat&lt;br /&gt;
&lt;br /&gt;
* Other applications may allow for the http proxy and the chainloaded socks services of Tor to be used independently (in parallel). Once Tor (and the relevant proxy or proxies) are running, the http proxy ''127.0.0.1'':8118 and the socks proxy ''127.0.0.1'':9050 can be specified in the configuration settings of an application that allows for this.&lt;br /&gt;
&lt;br /&gt;
== Tor GUIs ==&lt;br /&gt;
* It is not necessary to use a GUI with Tor.&lt;br /&gt;
&lt;br /&gt;
* If you will use Tor with a GUI interface (such as Vidalia or TorK), however, edit the Tor configuration file (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
&lt;br /&gt;
 sudo kate /etc/tor/torrc&lt;br /&gt;
&lt;br /&gt;
:* Add the line so that the GUI interface can control Tor over port 9051:&lt;br /&gt;
 ControlPort 9051&lt;br /&gt;
&lt;br /&gt;
:Note: There is some concern that allowing control of Tor over port 9051 is not secure. If you will not be using a GUI, this step is not advised.&lt;br /&gt;
&lt;br /&gt;
=== Vidalia (Tor interface) ===&lt;br /&gt;
[https://www.torproject.org/projects/vidalia.html Vidalia] is the recommended Qt4-based GUI frontend for Tor. If not installed with Tor, install:&lt;br /&gt;
 sudo apt-get install vidalia&lt;br /&gt;
&lt;br /&gt;
=== Tork (KDE Tor interface) ===&lt;br /&gt;
[http://sourceforge.net/projects/tork/ TorK] is a KDE interface for Tor that relied on the older Qt3 platform. It is no longer included in the (K)Ubuntu repositories (as of Natty 11.04). However, if desired it can still be installed (along with the required older Qt3 libraries) by adding the [http://packages.ubuntu.com/maverick/amd64/tork/download Maverick repository] (directly or using a package manager):&lt;br /&gt;
 deb &amp;lt;nowiki&amp;gt;http://ubuntu.mirror.cambrium.nl/ubuntu/&amp;lt;/nowiki&amp;gt; maverick main universe&lt;br /&gt;
&lt;br /&gt;
* Installing TorK also will install privoxy and unless you have also added the Tor repository directly, will also install an older version of Tor from the Ubuntu universe repositories. See [http://ubuntuforums.org/archive/index.php/t-800115.html these installation tips]. Install:&lt;br /&gt;
 sudo apt-get install tork privoxy&lt;br /&gt;
&lt;br /&gt;
* Run TorK (K menu -&amp;gt; Internet -&amp;gt; TorK Anonymity Manager) for the first time using the First Run Wizard (TorK -&amp;gt; Tools -&amp;gt; First Run Wizard).&lt;br /&gt;
::&amp;quot;No, tor is going to run on this PC&amp;quot; then &amp;quot;I have to start Tor manually&amp;quot; then &amp;quot;Run A Tor client with default settings&amp;quot; then &amp;quot;I want to use Privoxy...&amp;quot; then &amp;quot;Privoxy starts in the background when my computer boots up&amp;quot; then go through the remaining options.&lt;br /&gt;
::I then start (&amp;quot;Play&amp;quot;) TorK as a Client. I happen to like Konqueror for Anonymous browsing, since it worked the first time for me without a problem. I keep Firefox for non-Tor browsing (so I don't have to change any of its settings) or install Torbutton (see below). You may have to fiddle with your Network proxy settings in Konqueror or Firefox (if things don't work the way you expect them to). &lt;br /&gt;
* Allow the [[Ubuntu:All#Firewall|Firewall]] (like Firestarter) to allow ports 8118, 9050, 9051, or just turn off the firewall completely, until everything is working. Then turn the firewall back on. (You should monitor your firewall carefully. TorK has settings to automatically turn it off, if you aren't careful.) No ports are required to be left open in the firewall for Tor to work, as all traffic will be directed through the socks port 9050 (which avoids the firewall).&lt;br /&gt;
* Applications that you wish to &amp;quot;torify&amp;quot; (with tsocks) or &amp;quot;usewithtor&amp;quot; (with torsocks) should use port 8118 (i.e. 127.0.0.1:8118) for the http proxy and port 9050 (127.0.0.1:9050) for the socks port.&lt;br /&gt;
&lt;br /&gt;
* Once configured as a client successfully, if you have the bandwidth and a stable environment please enable the client/relay mode and/or server mode so that the Tor bandwidth is increased.&lt;br /&gt;
&lt;br /&gt;
* Note: Tork constantly monitors the network (both Tor and non-Tor traffic). This can cause slowing of the Tor traffic from your computer and even cause intermittent interruptions. (Tor runs in the background and does not require Tork to be running as a control module.) If Tor is running in a stable mode, it will be faster (and less problematic) to stop Tork (sudo killall tork) and allow Tor to run in the background.&lt;br /&gt;
&lt;br /&gt;
* Note: Traffic that is routed through Privoxy (and then presumably to Tor from Privoxy if configured correctly) will be logged as &amp;quot;non-Tor&amp;quot; traffic by Tork. As long as Privoxy is working correctly, however, this traffic is being forwarded through the Tor socket.&lt;br /&gt;
&lt;br /&gt;
* Tork does not start Privoxy properly. Privoxy must be started (prior to starting Tork) as a startup program (e.g. using the Bootup-Manager) or manually with the command:&lt;br /&gt;
 sudo /etc/init.d/privoxy start&lt;br /&gt;
&lt;br /&gt;
==== Prevent autostart of proxies and Tor ====&lt;br /&gt;
* Whenever I stopped the TorK GUI and then later wanted to start it again, I had to manually kill the Privoxy and Tor processes first.&lt;br /&gt;
 sudo killall privoxy&lt;br /&gt;
 sudo killall tor&lt;br /&gt;
&lt;br /&gt;
* Further, Tor, Privoxy, and Polipo install themselves as automatically started services at bootup. Preventing automatic startup (at boot) of Tor and Privoxy (and/or Polipo) can be accomplished by one of the methods in this [http://ubuntuforums.org/showthread.php?t=1277224 Ubuntu Forums thread]. Personally, I like using [[Ubuntu:All#Choose_Bootup.2FStartup_services|Bootup-Manager]]:&lt;br /&gt;
 sudo apt-get install bum&lt;br /&gt;
&lt;br /&gt;
:but another option is:&lt;br /&gt;
 sudo update-rc.d tor disable&lt;br /&gt;
 sudo update-rc.d privoxy disable&lt;br /&gt;
 sudo update-rc.d polipo disable&lt;br /&gt;
&lt;br /&gt;
which will also stop updates from re-installing the applications as startup services when updates are made.&lt;br /&gt;
&lt;br /&gt;
* If Privoxy is stopped, it must be re-started with the [[Ubuntu:All#Choose_Bootup.2FStartup_services|Bootup-Manager]] or using the command:&lt;br /&gt;
 sudo /etc/init.d/privoxy start&lt;br /&gt;
&lt;br /&gt;
== Firewall considerations ==&lt;br /&gt;
=== Single computer ===&lt;br /&gt;
If you have the Tor client, the proxy client (Privoxy, Polipo, or socat), and the browser client (or other application) on the same computer, you do not need to have any open ports in order to use Tor. In such a circumstance it is safest to block all ports that connect to the Internet. The socks proxy bypasses the firewall entirely (so there is no need to leave any ports open in order for it to communicate).&lt;br /&gt;
&lt;br /&gt;
By closing all ports (using a firewall), applications will be prevented from bypassing Tor (accidentally or unknowingly). Later, if you wish to have some of your traffic directed through Tor and some of your traffic traffic routed outside of Tor, you can open the ports for the traffic that will not go through Tor.&lt;br /&gt;
&lt;br /&gt;
=== Proxy on LAN ===&lt;br /&gt;
If the proxy (Privoxy, Polipo, socat, etc.) on your LAN is on a computer different from the computer(s) that have the end-user client applications, it is best to open the port (e.g. 8118) for communication only between computers on the LAN (with the end-application clients on them) and the computer on the LAN with the proxy on it. Port 8118 should then not be open to the Internet but only to the computers on the LAN that will use the proxy.&lt;br /&gt;
&lt;br /&gt;
If the Proxy and Tor client are on different computers as well, port 9050 should be open (on the LAN, not on the Internet) between the computer with the Proxy and the computer with the Tor client only, so that the Proxy can forward traffic to the Tor client (but not to the Internet). (Obviously, if the Proxy and the Tor client are on the same computer, there is no need to open the 9050 port at all.)&lt;br /&gt;
&lt;br /&gt;
=== Blocking all non-Tor traffic using iptables ===&lt;br /&gt;
To ensure that no unprotected traffic &amp;quot;leaks&amp;quot; from applications without your knowledge, it is possible to configure your firewall iptables to prevent all traffic except that which is transmitted through Tor.&lt;br /&gt;
* See [https://trac.torproject.org/projects/tor/wiki/doc/BlockNonTorTrafficDebian this page].&lt;br /&gt;
&lt;br /&gt;
=== Tor network initialization ===&lt;br /&gt;
It may be necessary to open port 443 (or less desirably port 80) to allow resolution of the nodes of the Tor network. Consider using [[Ubuntu:All#DNS_Servers_and_Search_engines|DNS privacy methods]].&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
*Some routers (including a certain version of the Linksys WRT54G) slow down when the incoming/outgoing connection log (cache) becomes full (which can happen with many Tor or P2P connections). Disable the Log if this problem occurs.&lt;br /&gt;
&lt;br /&gt;
* Although applicable to p2p traffic, [http://ktorrent.org/wiki/index.php/FAQ#Problem_solving this information] is generically applicable to Tor as well.&lt;br /&gt;
&lt;br /&gt;
== Other resources ==&lt;br /&gt;
* [http://www.torproject.org/docs/documentation.html Tor documentation]&lt;br /&gt;
* [https://www.torproject.org/projects/obfsproxy.html.en Obfsproxy] is a proxy to transform data between a client and a Bridge node into innocent looking data, in order to circumvent Deep Packet Inspection (DPI) censorship.&lt;br /&gt;
* [[Anonymous_email|Anonymous email]] tips -- setting up web-based email anonymously through the Tor network&lt;br /&gt;
&lt;br /&gt;
* [http://www.cypherpunk.at/onioncat/ OnionCat] transmits IP-based data transparently through the Tor network on a location hidden basis. (Also see [http://www.abenteuerland.at/onioncat/ this info]).&lt;br /&gt;
&lt;br /&gt;
Similar networks:&lt;br /&gt;
&lt;br /&gt;
* [http://www.i2p2.de I2P] is another anonymizing network similar to Tor. (See [http://www.i2p2.de/debian instructions] and [https://help.ubuntu.com/community/I2P Ubuntu community help].)&lt;br /&gt;
* [http://freenetproject.org/ Freenet] is another anonymizing network similar to Tor.&lt;br /&gt;
* [https://gnunet.org/ Gnunet] is another anonymizing network similar to Tor.&lt;br /&gt;
* [https://secure.wikimedia.org/wikipedia/en/wiki/Anonymous_P2P#List_of_anonymous_P2P_networks_and_clients List of similar networks at Wikipedia]&lt;/div&gt;</description>
			<pubDate>Mon, 29 Apr 2013 17:56:34 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Tor</comments>		</item>
		<item>
			<title>Template:Tor</title>
			<link>http://easylinux.info/wiki/Template:Tor</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Using Konversation with Tor */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Tor =&lt;br /&gt;
[http://www.torproject.org/ Tor] is a project to allow privacy while using the Internet and to limit usage tracking. It routes your traffic through several anonymous nodes, so that your usage appears to come from an IP other than your own. (There are always risks when using the Internet that even Tor can not help with, though. Read [http://www.torproject.org/download.html.en#Warning this].) Using Tor can slow down your Internet usage significantly, depending on how much traffic is being passed through the Tor network (routine file-sharing or large downloads will also significantly reduce performance of the Tor network.)&lt;br /&gt;
&lt;br /&gt;
* Tor network speed improves when there are more [https://www.torproject.org/getinvolved/volunteer.html.en volunteers] to run [https://www.torproject.org/docs/tor-doc-relay.html.en relays] (and relays have better anonymity), bridges, and exit nodes. Please consider being a relay or bridge node if your ISP does not filter Tor and you have good bandwidth. Additonally please consider configuring your relay as an [https://www.torproject.org/docs/faq.html.en#ExitPolicies exit node] (if you are in a favorable network and don't mind a little bit of potential [https://blog.torproject.org/blog/tips-running-exit-node-minimal-harassment hassle] for being an exit node).&lt;br /&gt;
&lt;br /&gt;
== Install Tor (Network privacy) ==&lt;br /&gt;
* Install Tor by following the instructions [https://www.torproject.org/docs/debian here]. Note that the instructions require port 11371 on your firewall to be open to use the gpg keyserver (and download the key for the debian package). Then see the [http://www.torproject.org/docs/tor-doc-unix.html Tor installation guide] for details. In general:&lt;br /&gt;
 sudo apt-get install tor&lt;br /&gt;
&lt;br /&gt;
* Tor can be run in its default configuration from the command-line (or from a menu item with the &amp;quot;Advanced -&amp;gt; Run in terminal&amp;quot; box ticked):&lt;br /&gt;
 tor&lt;br /&gt;
&lt;br /&gt;
:A separate menu item can be created to reliably shut down Tor:&lt;br /&gt;
 sudo killall tor &lt;br /&gt;
&lt;br /&gt;
* By default Tor listens for Socks5 traffic on port 9050. (Socks5 proxies are able to tunnel both UDP and HTTP traffic through them.) In general, applications (including other daisy-chained proxies) should be configured to use Tor as a Socks5 proxy on port 9050.&lt;br /&gt;
&lt;br /&gt;
* I don't like Tor to automatically start at boot, so I edit the /etc/tor/torrc configuration file (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo kate /etc/tor/torrc&lt;br /&gt;
&lt;br /&gt;
:and change the line so it looks like:&lt;br /&gt;
 #RunAsDaemon 1&lt;br /&gt;
 RunAsDaemon 0&lt;br /&gt;
&lt;br /&gt;
:then restart Tor:&lt;br /&gt;
 sudo /etc/init.d/tor restart&lt;br /&gt;
&lt;br /&gt;
== Using Tor with Firefox ==&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Tor acts as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy] on port 9050. Recent versions of Firefox allow direction of all traffic, including DNS resolution, through a Socks5 proxy. To enable this behaviour (after starting and running a previously installed version of Tor):&lt;br /&gt;
:Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Advanced -&amp;gt; Network -&amp;gt; Connection:Settings -&amp;gt; Manual proxy configuration (''ticked'') -&amp;gt; SOCKS Host: ''127.0.0.1'' (or ''localhost'') -&amp;gt; Port: ''9050'' -&amp;gt; SOCKSv5 (''ticked'') -&amp;gt; No Proxy for: ''127.0.0.1'' (or ''localhost'')&lt;br /&gt;
* To return to using Firefox without a proxy (such as Tor), choose &amp;quot;No proxy&amp;quot; in the Firefox Network settings: &lt;br /&gt;
:Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Advanced -&amp;gt; Network -&amp;gt; Connection:Settings -&amp;gt; No proxy (''ticked'')&lt;br /&gt;
&lt;br /&gt;
== Tor Browser Bundle ==&lt;br /&gt;
The [https://www.torproject.org/projects/torbrowser.html Tor Browser Bundle] (Tor, Vidalia GUI, a modified version of Firefox, and Torbutton) provides greater functionality and security than the stock Firefox version with the standalone Torbutton. Install from [https://www.torproject.org/projects/torbrowser.html here] the version for your language and unpack it. For example:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;https://www.torproject.org/dist/torbrowser/linux/&amp;lt;/nowiki&amp;gt;tor-browser-gnu-linux-x86_64-2.2.35-12-dev-en-US.tar.gz&lt;br /&gt;
 tar -xvzf tor-browser-gnu-linux-x86_64-2.2.35-12-dev-en-US.tar.gz&lt;br /&gt;
&lt;br /&gt;
Then change to the extracted directory and start the Tor Browser Bundle:&lt;br /&gt;
 cd tor-browser_en-US&lt;br /&gt;
 ./start-tor-browser&lt;br /&gt;
&lt;br /&gt;
A menu item can also be created with the command to start it.&lt;br /&gt;
&lt;br /&gt;
=== Torbutton (Firefox plug-in) ===&lt;br /&gt;
Once the [[#Tor_Browser_Bundle|Tor Browser Bundle]] is installed and Tor is running properly, [https://www.torproject.org/torbutton/ Torbutton] allows you to choose whether to use Firefox through the Tor anonymizing network or not. Updates to Torbutton can be installed using the .xpi extension found directly from the [https://www.torproject.org/torbutton/ website].&lt;br /&gt;
&lt;br /&gt;
* As of 2012, Torbutton only works with modified versions of Firefox found in the Tor Project's [https://www.torproject.org/projects/torbrowser.html Tor Browser Bundle] (Tor, Vidalia GUI, a modified version of Firefox, and Torbutton) or with some older (non-updated) versions of Firefox.&lt;br /&gt;
&lt;br /&gt;
* Newer versions of Firefox may refuse to start when Torbutton is installed. If this occurs, Firefox must be started in safe mode:&lt;br /&gt;
 firefox -safe-mode&lt;br /&gt;
&lt;br /&gt;
:Be sure to select &amp;quot;Start in Safe Mode&amp;quot; instead of &amp;quot;Reset Firefox&amp;quot; (unless you want to erase all your configuration settings and erase all your extensions/add-ons/plug-ins). Once in Safe Mode, the Torbutton extension can be disabled or removed (Firefox -&amp;gt; Tools -&amp;gt; Add-ons -&amp;gt; Extensions -&amp;gt; Torbutton -&amp;gt; Remove) and Firefox set to use &amp;quot;No proxy&amp;quot; in the Firefox Network settings: &lt;br /&gt;
::Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Advanced -&amp;gt; Network -&amp;gt; Connection:Settings -&amp;gt; No proxy (''ticked'') &lt;br /&gt;
&lt;br /&gt;
* The standalone Torbutton add-on for Firefox disables many functions of Firefox (when used with older unmodified versions of Firefox), such as the Drag and Drop function. It must therefore be disabled (Firefox -&amp;gt; Tools -&amp;gt; Add-ons -&amp;gt; Extensions -&amp;gt; Torbutton -&amp;gt; Disable) while using many of these Firefox functions.&lt;br /&gt;
&lt;br /&gt;
== Using Konversation with Tor ==&lt;br /&gt;
[[Kubuntu_Precise_Internet#Konversation_.28IRC_client.29|Konversation]] is an Internet Relay Chat client similar to [http://en.wikipedia.org/wiki/MIRC mIRC]. Unfortunately, your IP address is easily determioned while using an IRC client. Konversation directly allows the use of a Socks proxy, however. If running Tor on port 9050, configure Konversation to use the Socks5 proxy on port 9050:&lt;br /&gt;
:Konversation -&amp;gt; Settings -&amp;gt; Configure Konversation... -&amp;gt; Behavior: Connection -&amp;gt; Proxy (''ticked'') -&amp;gt; Type: ''Socks v5'' -&amp;gt; Address: ''127.0.0.1'' (or ''localhost'') -&amp;gt; Port: ''9050''&lt;br /&gt;
&lt;br /&gt;
== Using proxies with Tor ==&lt;br /&gt;
=== usewithtor ===&lt;br /&gt;
* If you installed a recent version of Tor from the repositories, you will have installed the &amp;quot;[http://code.google.com/p/torsocks/ usewithtor]&amp;quot; package. A number of applications can be automatically redirected to the Torsocks proxy ([http://code.google.com/p/torsocks/ torsocks]) with this utility:&lt;br /&gt;
 usewithtor ''myapplication''&lt;br /&gt;
&lt;br /&gt;
A menu item with such a command can then be created.&lt;br /&gt;
&lt;br /&gt;
* By using torsocks, usewithtor will also block an application from sending UDP traffic (which is not anonymized by the Tor network).&lt;br /&gt;
&lt;br /&gt;
* Applications that you wish to &amp;quot;usewithtor&amp;quot; (with torsocks) or &amp;quot;torify&amp;quot; (with tsocks) should use port 8118 for the http proxy port and port 9050 for the socks port.&lt;br /&gt;
&lt;br /&gt;
=== torify ===&lt;br /&gt;
* Another method is to &amp;quot;[https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO torify]&amp;quot; an application with a different tor socks proxy ([http://tsocks.sourceforge.net/ tsocks]) if tsocks has been configured (edit /etc/tor/tor-tsocks.conf).&lt;br /&gt;
 torify ''myapplication''&lt;br /&gt;
&lt;br /&gt;
* tsocks does not explictly block UDP traffic, so if it is desirable to allow UDP traffic while anonymizing fttp traffic, use this method.&lt;br /&gt;
&lt;br /&gt;
=== Privoxy ===&lt;br /&gt;
* I use the Privoxy proxy to tunnel http traffic through Tor. Install the Privoxy http proxy:&lt;br /&gt;
 sudo apt-get install privoxy&lt;br /&gt;
&lt;br /&gt;
* Applications can be set to send their http traffic to Privoxy over port 8118; Privoxy will then in turn forward the http traffic to Tor over port 9050. (Use an IP address other than ''127.0.0.1'' if Privoxy and/or Tor are not on the local machine. Use ''localhost'' instead of ''127.0.0.1'' if using IPv6 addressing on your systems).&lt;br /&gt;
&lt;br /&gt;
Note: For some older versions of Privoxy, users have reported better success designating the address of the host computer as ''127.0.0.1'' instead of ''localhost'' in the configuration settings.&lt;br /&gt;
&lt;br /&gt;
* Edit configuration files.&lt;br /&gt;
:* In the configuration file Privoxy is configured by default to listen on port ''127.0.0.1'':8118. See [[#Firewall_considerations|Firewall considerations]]. Edit the Privoxy configuration file (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo kate /etc/privoxy/config&lt;br /&gt;
::Add the lines&lt;br /&gt;
 forward-socks5 / ''127.0.0.1'':9050 .&lt;br /&gt;
 forward-socks4a / ''127.0.0.1'':9050 .&lt;br /&gt;
&lt;br /&gt;
Note: socks5 allows more authentication choices, UDP for external DNS resolution, and accommodates IPv6. (By including both lines, socks4a is used as a fallback if a program does not support socks5.)&lt;br /&gt;
&lt;br /&gt;
:*Restart Privoxy:&lt;br /&gt;
 sudo /etc/init.d/privoxy restart&lt;br /&gt;
&lt;br /&gt;
=== Other proxies ===&lt;br /&gt;
Other proxies such as [http://www.dest-unreach.org/socat/doc/socat.html socat], [http://www.pps.jussieu.fr/~jch/software/polipo/ Polipo] can also be used with Tor instead or Privoxy. [http://www.squid-cache.org/ Squid] can also be daisy-chained to one of the proxies.&lt;br /&gt;
&lt;br /&gt;
=== Ensuring applications use the proxy ===&lt;br /&gt;
* See [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/Misc#UnixandLinuxConfiguration this advice]. (Note: this is labeled as &amp;quot;old advice.&amp;quot;) In (K)Ubuntu, the bash configuration files are at ~/.profile (i.e. /home/''user''/.profile) for the current user or at /etc/profile for system-wide usage. Using this advice, edit one of those two files and add the lines at the end of the file:&lt;br /&gt;
 http_proxy=&amp;lt;nowiki&amp;gt;http://127.0.0.1:8118/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 HTTP_PROXY=$http_proxy&lt;br /&gt;
 export http_proxy HTTP_PROXY&lt;br /&gt;
&lt;br /&gt;
==== Using specific applications with Tor ====&lt;br /&gt;
* [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/WebBrowsers Web Browsers]&lt;br /&gt;
* [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/EMail E-mail]&lt;br /&gt;
* [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/IrcSilc IRC/SILC]&lt;br /&gt;
* [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/TorifyHOWTO/FTP FTP]&lt;br /&gt;
* [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/Misc Misc]&lt;br /&gt;
* [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/InstantMessaging Instant Messaging]&lt;br /&gt;
:* Torchat can be used for IM through Tor. Install:&lt;br /&gt;
 sudo apt-get install torchat&lt;br /&gt;
&lt;br /&gt;
* Other applications may allow for the http proxy and the chainloaded socks services of Tor to be used independently (in parallel). Once Tor (and the relevant proxy or proxies) are running, the http proxy ''127.0.0.1'':8118 and the socks proxy ''127.0.0.1'':9050 can be specified in the configuration settings of an application that allows for this.&lt;br /&gt;
&lt;br /&gt;
== Tor GUIs ==&lt;br /&gt;
* It is not necessary to use a GUI with Tor.&lt;br /&gt;
&lt;br /&gt;
* If you will use Tor with a GUI interface (such as Vidalia or TorK), however, edit the Tor configuration file (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
&lt;br /&gt;
 sudo kate /etc/tor/torrc&lt;br /&gt;
&lt;br /&gt;
:* Add the line so that the GUI interface can control Tor over port 9051:&lt;br /&gt;
 ControlPort 9051&lt;br /&gt;
&lt;br /&gt;
:Note: There is some concern that allowing control of Tor over port 9051 is not secure. If you will not be using a GUI, this step is not advised.&lt;br /&gt;
&lt;br /&gt;
=== Vidalia (Tor interface) ===&lt;br /&gt;
[https://www.torproject.org/projects/vidalia.html Vidalia] is the recommended Qt4-based GUI frontend for Tor. If not installed with Tor, install:&lt;br /&gt;
 sudo apt-get install vidalia&lt;br /&gt;
&lt;br /&gt;
=== Tork (KDE Tor interface) ===&lt;br /&gt;
[http://sourceforge.net/projects/tork/ TorK] is a KDE interface for Tor that relied on the older Qt3 platform. It is no longer included in the (K)Ubuntu repositories (as of Natty 11.04). However, if desired it can still be installed (along with the required older Qt3 libraries) by adding the [http://packages.ubuntu.com/maverick/amd64/tork/download Maverick repository] (directly or using a package manager):&lt;br /&gt;
 deb &amp;lt;nowiki&amp;gt;http://ubuntu.mirror.cambrium.nl/ubuntu/&amp;lt;/nowiki&amp;gt; maverick main universe&lt;br /&gt;
&lt;br /&gt;
* Installing TorK also will install privoxy and unless you have also added the Tor repository directly, will also install an older version of Tor from the Ubuntu universe repositories. See [http://ubuntuforums.org/archive/index.php/t-800115.html these installation tips]. Install:&lt;br /&gt;
 sudo apt-get install tork privoxy&lt;br /&gt;
&lt;br /&gt;
* Run TorK (K menu -&amp;gt; Internet -&amp;gt; TorK Anonymity Manager) for the first time using the First Run Wizard (TorK -&amp;gt; Tools -&amp;gt; First Run Wizard).&lt;br /&gt;
::&amp;quot;No, tor is going to run on this PC&amp;quot; then &amp;quot;I have to start Tor manually&amp;quot; then &amp;quot;Run A Tor client with default settings&amp;quot; then &amp;quot;I want to use Privoxy...&amp;quot; then &amp;quot;Privoxy starts in the background when my computer boots up&amp;quot; then go through the remaining options.&lt;br /&gt;
::I then start (&amp;quot;Play&amp;quot;) TorK as a Client. I happen to like Konqueror for Anonymous browsing, since it worked the first time for me without a problem. I keep Firefox for non-Tor browsing (so I don't have to change any of its settings) or install Torbutton (see below). You may have to fiddle with your Network proxy settings in Konqueror or Firefox (if things don't work the way you expect them to). &lt;br /&gt;
* Allow the [[Ubuntu:All#Firewall|Firewall]] (like Firestarter) to allow ports 8118, 9050, 9051, or just turn off the firewall completely, until everything is working. Then turn the firewall back on. (You should monitor your firewall carefully. TorK has settings to automatically turn it off, if you aren't careful.) No ports are required to be left open in the firewall for Tor to work, as all traffic will be directed through the socks port 9050 (which avoids the firewall).&lt;br /&gt;
* Applications that you wish to &amp;quot;torify&amp;quot; (with tsocks) or &amp;quot;usewithtor&amp;quot; (with torsocks) should use port 8118 (i.e. 127.0.0.1:8118) for the http proxy and port 9050 (127.0.0.1:9050) for the socks port.&lt;br /&gt;
&lt;br /&gt;
* Once configured as a client successfully, if you have the bandwidth and a stable environment please enable the client/relay mode and/or server mode so that the Tor bandwidth is increased.&lt;br /&gt;
&lt;br /&gt;
* Note: Tork constantly monitors the network (both Tor and non-Tor traffic). This can cause slowing of the Tor traffic from your computer and even cause intermittent interruptions. (Tor runs in the background and does not require Tork to be running as a control module.) If Tor is running in a stable mode, it will be faster (and less problematic) to stop Tork (sudo killall tork) and allow Tor to run in the background.&lt;br /&gt;
&lt;br /&gt;
* Note: Traffic that is routed through Privoxy (and then presumably to Tor from Privoxy if configured correctly) will be logged as &amp;quot;non-Tor&amp;quot; traffic by Tork. As long as Privoxy is working correctly, however, this traffic is being forwarded through the Tor socket.&lt;br /&gt;
&lt;br /&gt;
* Tork does not start Privoxy properly. Privoxy must be started (prior to starting Tork) as a startup program (e.g. using the Bootup-Manager) or manually with the command:&lt;br /&gt;
 sudo /etc/init.d/privoxy start&lt;br /&gt;
&lt;br /&gt;
==== Prevent autostart of proxies and Tor ====&lt;br /&gt;
* Whenever I stopped the TorK GUI and then later wanted to start it again, I had to manually kill the Privoxy and Tor processes first.&lt;br /&gt;
 sudo killall privoxy&lt;br /&gt;
 sudo killall tor&lt;br /&gt;
&lt;br /&gt;
* Further, Tor, Privoxy, and Polipo install themselves as automatically started services at bootup. Preventing automatic startup (at boot) of Tor and Privoxy (and/or Polipo) can be accomplished by one of the methods in this [http://ubuntuforums.org/showthread.php?t=1277224 Ubuntu Forums thread]. Personally, I like using [[Ubuntu:All#Choose_Bootup.2FStartup_services|Bootup-Manager]]:&lt;br /&gt;
 sudo apt-get install bum&lt;br /&gt;
&lt;br /&gt;
:but another option is:&lt;br /&gt;
 sudo update-rc.d tor disable&lt;br /&gt;
 sudo update-rc.d privoxy disable&lt;br /&gt;
 sudo update-rc.d polipo disable&lt;br /&gt;
&lt;br /&gt;
which will also stop updates from re-installing the applications as startup services when updates are made.&lt;br /&gt;
&lt;br /&gt;
* If Privoxy is stopped, it must be re-started with the [[Ubuntu:All#Choose_Bootup.2FStartup_services|Bootup-Manager]] or using the command:&lt;br /&gt;
 sudo /etc/init.d/privoxy start&lt;br /&gt;
&lt;br /&gt;
== Firewall considerations ==&lt;br /&gt;
=== Single computer ===&lt;br /&gt;
If you have the Tor client, the proxy client (Privoxy, Polipo, or socat), and the browser client (or other application) on the same computer, you do not need to have any open ports in order to use Tor. In such a circumstance it is safest to block all ports that connect to the Internet. The socks proxy bypasses the firewall entirely (so there is no need to leave any ports open in order for it to communicate).&lt;br /&gt;
&lt;br /&gt;
By closing all ports (using a firewall), applications will be prevented from bypassing Tor (accidentally or unknowingly). Later, if you wish to have some of your traffic directed through Tor and some of your traffic traffic routed outside of Tor, you can open the ports for the traffic that will not go through Tor.&lt;br /&gt;
&lt;br /&gt;
=== Proxy on LAN ===&lt;br /&gt;
If the proxy (Privoxy, Polipo, socat, etc.) on your LAN is on a computer different from the computer(s) that have the end-user client applications, it is best to open the port (e.g. 8118) for communication only between computers on the LAN (with the end-application clients on them) and the computer on the LAN with the proxy on it. Port 8118 should then not be open to the Internet but only to the computers on the LAN that will use the proxy.&lt;br /&gt;
&lt;br /&gt;
If the Proxy and Tor client are on different computers as well, port 9050 should be open (on the LAN, not on the Internet) between the computer with the Proxy and the computer with the Tor client only, so that the Proxy can forward traffic to the Tor client (but not to the Internet). (Obviously, if the Proxy and the Tor client are on the same computer, there is no need to open the 9050 port at all.)&lt;br /&gt;
&lt;br /&gt;
=== Blocking all non-Tor traffic using iptables ===&lt;br /&gt;
To ensure that no unprotected traffic &amp;quot;leaks&amp;quot; from applications without your knowledge, it is possible to configure your firewall iptables to prevent all traffic except that which is transmitted through Tor.&lt;br /&gt;
* See [https://trac.torproject.org/projects/tor/wiki/doc/BlockNonTorTrafficDebian this page].&lt;br /&gt;
&lt;br /&gt;
=== Tor network initialization ===&lt;br /&gt;
It may be necessary to open port 443 (or less desirably port 80) to allow resolution of the nodes of the Tor network. Consider using [[Ubuntu:All#DNS_Servers_and_Search_engines|DNS privacy methods]].&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
*Some routers (including a certain version of the Linksys WRT54G) slow down when the incoming/outgoing connection log (cache) becomes full (which can happen with many Tor or P2P connections). Disable the Log if this problem occurs.&lt;br /&gt;
&lt;br /&gt;
* Although applicable to p2p traffic, [http://ktorrent.org/wiki/index.php/FAQ#Problem_solving this information] is generically applicable to Tor as well.&lt;br /&gt;
&lt;br /&gt;
== Other resources ==&lt;br /&gt;
* [http://www.torproject.org/docs/documentation.html Tor documentation]&lt;br /&gt;
* [https://www.torproject.org/projects/obfsproxy.html.en Obfsproxy] is a proxy to transform data between a client and a Bridge node into innocent looking data, in order to circumvent Deep Packet Inspection (DPI) censorship.&lt;br /&gt;
* [[Anonymous_email|Anonymous email]] tips -- setting up web-based email anonymously through the Tor network&lt;br /&gt;
&lt;br /&gt;
* [http://www.cypherpunk.at/onioncat/ OnionCat] transmits IP-based data transparently through the Tor network on a location hidden basis. (Also see [http://www.abenteuerland.at/onioncat/ this info]).&lt;br /&gt;
&lt;br /&gt;
Similar networks:&lt;br /&gt;
&lt;br /&gt;
* [http://www.i2p2.de I2P] is another anonymizing network similar to Tor. (See [http://www.i2p2.de/debian instructions] and [https://help.ubuntu.com/community/I2P Ubuntu community help].)&lt;br /&gt;
* [http://freenetproject.org/ Freenet] is another anonymizing network similar to Tor.&lt;br /&gt;
* [https://gnunet.org/ Gnunet] is another anonymizing network similar to Tor.&lt;br /&gt;
* [https://secure.wikimedia.org/wikipedia/en/wiki/Anonymous_P2P#List_of_anonymous_P2P_networks_and_clients List of similar networks at Wikipedia]&lt;/div&gt;</description>
			<pubDate>Mon, 29 Apr 2013 17:54:11 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Tor</comments>		</item>
		<item>
			<title>Template:Tor</title>
			<link>http://easylinux.info/wiki/Template:Tor</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Using Konversation with Tor */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Tor =&lt;br /&gt;
[http://www.torproject.org/ Tor] is a project to allow privacy while using the Internet and to limit usage tracking. It routes your traffic through several anonymous nodes, so that your usage appears to come from an IP other than your own. (There are always risks when using the Internet that even Tor can not help with, though. Read [http://www.torproject.org/download.html.en#Warning this].) Using Tor can slow down your Internet usage significantly, depending on how much traffic is being passed through the Tor network (routine file-sharing or large downloads will also significantly reduce performance of the Tor network.)&lt;br /&gt;
&lt;br /&gt;
* Tor network speed improves when there are more [https://www.torproject.org/getinvolved/volunteer.html.en volunteers] to run [https://www.torproject.org/docs/tor-doc-relay.html.en relays] (and relays have better anonymity), bridges, and exit nodes. Please consider being a relay or bridge node if your ISP does not filter Tor and you have good bandwidth. Additonally please consider configuring your relay as an [https://www.torproject.org/docs/faq.html.en#ExitPolicies exit node] (if you are in a favorable network and don't mind a little bit of potential [https://blog.torproject.org/blog/tips-running-exit-node-minimal-harassment hassle] for being an exit node).&lt;br /&gt;
&lt;br /&gt;
== Install Tor (Network privacy) ==&lt;br /&gt;
* Install Tor by following the instructions [https://www.torproject.org/docs/debian here]. Note that the instructions require port 11371 on your firewall to be open to use the gpg keyserver (and download the key for the debian package). Then see the [http://www.torproject.org/docs/tor-doc-unix.html Tor installation guide] for details. In general:&lt;br /&gt;
 sudo apt-get install tor&lt;br /&gt;
&lt;br /&gt;
* Tor can be run in its default configuration from the command-line (or from a menu item with the &amp;quot;Advanced -&amp;gt; Run in terminal&amp;quot; box ticked):&lt;br /&gt;
 tor&lt;br /&gt;
&lt;br /&gt;
:A separate menu item can be created to reliably shut down Tor:&lt;br /&gt;
 sudo killall tor &lt;br /&gt;
&lt;br /&gt;
* By default Tor listens for Socks5 traffic on port 9050. (Socks5 proxies are able to tunnel both UDP and HTTP traffic through them.) In general, applications (including other daisy-chained proxies) should be configured to use Tor as a Socks5 proxy on port 9050.&lt;br /&gt;
&lt;br /&gt;
* I don't like Tor to automatically start at boot, so I edit the /etc/tor/torrc configuration file (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo kate /etc/tor/torrc&lt;br /&gt;
&lt;br /&gt;
:and change the line so it looks like:&lt;br /&gt;
 #RunAsDaemon 1&lt;br /&gt;
 RunAsDaemon 0&lt;br /&gt;
&lt;br /&gt;
:then restart Tor:&lt;br /&gt;
 sudo /etc/init.d/tor restart&lt;br /&gt;
&lt;br /&gt;
== Using Tor with Firefox ==&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Tor acts as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy] on port 9050. Recent versions of Firefox allow direction of all traffic, including DNS resolution, through a Socks5 proxy. To enable this behaviour (after starting and running a previously installed version of Tor):&lt;br /&gt;
:Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Advanced -&amp;gt; Network -&amp;gt; Connection:Settings -&amp;gt; Manual proxy configuration (''ticked'') -&amp;gt; SOCKS Host: ''127.0.0.1'' (or ''localhost'') -&amp;gt; Port: ''9050'' -&amp;gt; SOCKSv5 (''ticked'') -&amp;gt; No Proxy for: ''127.0.0.1'' (or ''localhost'')&lt;br /&gt;
* To return to using Firefox without a proxy (such as Tor), choose &amp;quot;No proxy&amp;quot; in the Firefox Network settings: &lt;br /&gt;
:Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Advanced -&amp;gt; Network -&amp;gt; Connection:Settings -&amp;gt; No proxy (''ticked'')&lt;br /&gt;
&lt;br /&gt;
== Tor Browser Bundle ==&lt;br /&gt;
The [https://www.torproject.org/projects/torbrowser.html Tor Browser Bundle] (Tor, Vidalia GUI, a modified version of Firefox, and Torbutton) provides greater functionality and security than the stock Firefox version with the standalone Torbutton. Install from [https://www.torproject.org/projects/torbrowser.html here] the version for your language and unpack it. For example:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;https://www.torproject.org/dist/torbrowser/linux/&amp;lt;/nowiki&amp;gt;tor-browser-gnu-linux-x86_64-2.2.35-12-dev-en-US.tar.gz&lt;br /&gt;
 tar -xvzf tor-browser-gnu-linux-x86_64-2.2.35-12-dev-en-US.tar.gz&lt;br /&gt;
&lt;br /&gt;
Then change to the extracted directory and start the Tor Browser Bundle:&lt;br /&gt;
 cd tor-browser_en-US&lt;br /&gt;
 ./start-tor-browser&lt;br /&gt;
&lt;br /&gt;
A menu item can also be created with the command to start it.&lt;br /&gt;
&lt;br /&gt;
=== Torbutton (Firefox plug-in) ===&lt;br /&gt;
Once the [[#Tor_Browser_Bundle|Tor Browser Bundle]] is installed and Tor is running properly, [https://www.torproject.org/torbutton/ Torbutton] allows you to choose whether to use Firefox through the Tor anonymizing network or not. Updates to Torbutton can be installed using the .xpi extension found directly from the [https://www.torproject.org/torbutton/ website].&lt;br /&gt;
&lt;br /&gt;
* As of 2012, Torbutton only works with modified versions of Firefox found in the Tor Project's [https://www.torproject.org/projects/torbrowser.html Tor Browser Bundle] (Tor, Vidalia GUI, a modified version of Firefox, and Torbutton) or with some older (non-updated) versions of Firefox.&lt;br /&gt;
&lt;br /&gt;
* Newer versions of Firefox may refuse to start when Torbutton is installed. If this occurs, Firefox must be started in safe mode:&lt;br /&gt;
 firefox -safe-mode&lt;br /&gt;
&lt;br /&gt;
:Be sure to select &amp;quot;Start in Safe Mode&amp;quot; instead of &amp;quot;Reset Firefox&amp;quot; (unless you want to erase all your configuration settings and erase all your extensions/add-ons/plug-ins). Once in Safe Mode, the Torbutton extension can be disabled or removed (Firefox -&amp;gt; Tools -&amp;gt; Add-ons -&amp;gt; Extensions -&amp;gt; Torbutton -&amp;gt; Remove) and Firefox set to use &amp;quot;No proxy&amp;quot; in the Firefox Network settings: &lt;br /&gt;
::Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Advanced -&amp;gt; Network -&amp;gt; Connection:Settings -&amp;gt; No proxy (''ticked'') &lt;br /&gt;
&lt;br /&gt;
* The standalone Torbutton add-on for Firefox disables many functions of Firefox (when used with older unmodified versions of Firefox), such as the Drag and Drop function. It must therefore be disabled (Firefox -&amp;gt; Tools -&amp;gt; Add-ons -&amp;gt; Extensions -&amp;gt; Torbutton -&amp;gt; Disable) while using many of these Firefox functions.&lt;br /&gt;
&lt;br /&gt;
== Using Konversation with Tor ==&lt;br /&gt;
[[Kubuntu_Precise_Internet#Konversation_.28IRC_client.29|Konversation]] is an Internet Relay Chat client similar to mIRC. Unfortunately, your IP address is easily determioned while using an IRC client. Konversation directly allows the use of a Socks proxy, however. If running Tor on port 9050, configure Konversation to use the Socks5 proxy on port 9050:&lt;br /&gt;
:Konversation -&amp;gt; Settings -&amp;gt; Configure Konversation... -&amp;gt; Behavior: Connection -&amp;gt; Proxy (''ticked'') -&amp;gt; Type: ''Socks v5'' -&amp;gt; Address: ''127.0.0.1'' (or ''localhost'') -&amp;gt; Port: ''9050''&lt;br /&gt;
&lt;br /&gt;
== Using proxies with Tor ==&lt;br /&gt;
=== usewithtor ===&lt;br /&gt;
* If you installed a recent version of Tor from the repositories, you will have installed the &amp;quot;[http://code.google.com/p/torsocks/ usewithtor]&amp;quot; package. A number of applications can be automatically redirected to the Torsocks proxy ([http://code.google.com/p/torsocks/ torsocks]) with this utility:&lt;br /&gt;
 usewithtor ''myapplication''&lt;br /&gt;
&lt;br /&gt;
A menu item with such a command can then be created.&lt;br /&gt;
&lt;br /&gt;
* By using torsocks, usewithtor will also block an application from sending UDP traffic (which is not anonymized by the Tor network).&lt;br /&gt;
&lt;br /&gt;
* Applications that you wish to &amp;quot;usewithtor&amp;quot; (with torsocks) or &amp;quot;torify&amp;quot; (with tsocks) should use port 8118 for the http proxy port and port 9050 for the socks port.&lt;br /&gt;
&lt;br /&gt;
=== torify ===&lt;br /&gt;
* Another method is to &amp;quot;[https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO torify]&amp;quot; an application with a different tor socks proxy ([http://tsocks.sourceforge.net/ tsocks]) if tsocks has been configured (edit /etc/tor/tor-tsocks.conf).&lt;br /&gt;
 torify ''myapplication''&lt;br /&gt;
&lt;br /&gt;
* tsocks does not explictly block UDP traffic, so if it is desirable to allow UDP traffic while anonymizing fttp traffic, use this method.&lt;br /&gt;
&lt;br /&gt;
=== Privoxy ===&lt;br /&gt;
* I use the Privoxy proxy to tunnel http traffic through Tor. Install the Privoxy http proxy:&lt;br /&gt;
 sudo apt-get install privoxy&lt;br /&gt;
&lt;br /&gt;
* Applications can be set to send their http traffic to Privoxy over port 8118; Privoxy will then in turn forward the http traffic to Tor over port 9050. (Use an IP address other than ''127.0.0.1'' if Privoxy and/or Tor are not on the local machine. Use ''localhost'' instead of ''127.0.0.1'' if using IPv6 addressing on your systems).&lt;br /&gt;
&lt;br /&gt;
Note: For some older versions of Privoxy, users have reported better success designating the address of the host computer as ''127.0.0.1'' instead of ''localhost'' in the configuration settings.&lt;br /&gt;
&lt;br /&gt;
* Edit configuration files.&lt;br /&gt;
:* In the configuration file Privoxy is configured by default to listen on port ''127.0.0.1'':8118. See [[#Firewall_considerations|Firewall considerations]]. Edit the Privoxy configuration file (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 sudo kate /etc/privoxy/config&lt;br /&gt;
::Add the lines&lt;br /&gt;
 forward-socks5 / ''127.0.0.1'':9050 .&lt;br /&gt;
 forward-socks4a / ''127.0.0.1'':9050 .&lt;br /&gt;
&lt;br /&gt;
Note: socks5 allows more authentication choices, UDP for external DNS resolution, and accommodates IPv6. (By including both lines, socks4a is used as a fallback if a program does not support socks5.)&lt;br /&gt;
&lt;br /&gt;
:*Restart Privoxy:&lt;br /&gt;
 sudo /etc/init.d/privoxy restart&lt;br /&gt;
&lt;br /&gt;
=== Other proxies ===&lt;br /&gt;
Other proxies such as [http://www.dest-unreach.org/socat/doc/socat.html socat], [http://www.pps.jussieu.fr/~jch/software/polipo/ Polipo] can also be used with Tor instead or Privoxy. [http://www.squid-cache.org/ Squid] can also be daisy-chained to one of the proxies.&lt;br /&gt;
&lt;br /&gt;
=== Ensuring applications use the proxy ===&lt;br /&gt;
* See [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/Misc#UnixandLinuxConfiguration this advice]. (Note: this is labeled as &amp;quot;old advice.&amp;quot;) In (K)Ubuntu, the bash configuration files are at ~/.profile (i.e. /home/''user''/.profile) for the current user or at /etc/profile for system-wide usage. Using this advice, edit one of those two files and add the lines at the end of the file:&lt;br /&gt;
 http_proxy=&amp;lt;nowiki&amp;gt;http://127.0.0.1:8118/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 HTTP_PROXY=$http_proxy&lt;br /&gt;
 export http_proxy HTTP_PROXY&lt;br /&gt;
&lt;br /&gt;
==== Using specific applications with Tor ====&lt;br /&gt;
* [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/WebBrowsers Web Browsers]&lt;br /&gt;
* [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/EMail E-mail]&lt;br /&gt;
* [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/IrcSilc IRC/SILC]&lt;br /&gt;
* [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/TorifyHOWTO/FTP FTP]&lt;br /&gt;
* [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/Misc Misc]&lt;br /&gt;
* [https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/InstantMessaging Instant Messaging]&lt;br /&gt;
:* Torchat can be used for IM through Tor. Install:&lt;br /&gt;
 sudo apt-get install torchat&lt;br /&gt;
&lt;br /&gt;
* Other applications may allow for the http proxy and the chainloaded socks services of Tor to be used independently (in parallel). Once Tor (and the relevant proxy or proxies) are running, the http proxy ''127.0.0.1'':8118 and the socks proxy ''127.0.0.1'':9050 can be specified in the configuration settings of an application that allows for this.&lt;br /&gt;
&lt;br /&gt;
== Tor GUIs ==&lt;br /&gt;
* It is not necessary to use a GUI with Tor.&lt;br /&gt;
&lt;br /&gt;
* If you will use Tor with a GUI interface (such as Vidalia or TorK), however, edit the Tor configuration file (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
&lt;br /&gt;
 sudo kate /etc/tor/torrc&lt;br /&gt;
&lt;br /&gt;
:* Add the line so that the GUI interface can control Tor over port 9051:&lt;br /&gt;
 ControlPort 9051&lt;br /&gt;
&lt;br /&gt;
:Note: There is some concern that allowing control of Tor over port 9051 is not secure. If you will not be using a GUI, this step is not advised.&lt;br /&gt;
&lt;br /&gt;
=== Vidalia (Tor interface) ===&lt;br /&gt;
[https://www.torproject.org/projects/vidalia.html Vidalia] is the recommended Qt4-based GUI frontend for Tor. If not installed with Tor, install:&lt;br /&gt;
 sudo apt-get install vidalia&lt;br /&gt;
&lt;br /&gt;
=== Tork (KDE Tor interface) ===&lt;br /&gt;
[http://sourceforge.net/projects/tork/ TorK] is a KDE interface for Tor that relied on the older Qt3 platform. It is no longer included in the (K)Ubuntu repositories (as of Natty 11.04). However, if desired it can still be installed (along with the required older Qt3 libraries) by adding the [http://packages.ubuntu.com/maverick/amd64/tork/download Maverick repository] (directly or using a package manager):&lt;br /&gt;
 deb &amp;lt;nowiki&amp;gt;http://ubuntu.mirror.cambrium.nl/ubuntu/&amp;lt;/nowiki&amp;gt; maverick main universe&lt;br /&gt;
&lt;br /&gt;
* Installing TorK also will install privoxy and unless you have also added the Tor repository directly, will also install an older version of Tor from the Ubuntu universe repositories. See [http://ubuntuforums.org/archive/index.php/t-800115.html these installation tips]. Install:&lt;br /&gt;
 sudo apt-get install tork privoxy&lt;br /&gt;
&lt;br /&gt;
* Run TorK (K menu -&amp;gt; Internet -&amp;gt; TorK Anonymity Manager) for the first time using the First Run Wizard (TorK -&amp;gt; Tools -&amp;gt; First Run Wizard).&lt;br /&gt;
::&amp;quot;No, tor is going to run on this PC&amp;quot; then &amp;quot;I have to start Tor manually&amp;quot; then &amp;quot;Run A Tor client with default settings&amp;quot; then &amp;quot;I want to use Privoxy...&amp;quot; then &amp;quot;Privoxy starts in the background when my computer boots up&amp;quot; then go through the remaining options.&lt;br /&gt;
::I then start (&amp;quot;Play&amp;quot;) TorK as a Client. I happen to like Konqueror for Anonymous browsing, since it worked the first time for me without a problem. I keep Firefox for non-Tor browsing (so I don't have to change any of its settings) or install Torbutton (see below). You may have to fiddle with your Network proxy settings in Konqueror or Firefox (if things don't work the way you expect them to). &lt;br /&gt;
* Allow the [[Ubuntu:All#Firewall|Firewall]] (like Firestarter) to allow ports 8118, 9050, 9051, or just turn off the firewall completely, until everything is working. Then turn the firewall back on. (You should monitor your firewall carefully. TorK has settings to automatically turn it off, if you aren't careful.) No ports are required to be left open in the firewall for Tor to work, as all traffic will be directed through the socks port 9050 (which avoids the firewall).&lt;br /&gt;
* Applications that you wish to &amp;quot;torify&amp;quot; (with tsocks) or &amp;quot;usewithtor&amp;quot; (with torsocks) should use port 8118 (i.e. 127.0.0.1:8118) for the http proxy and port 9050 (127.0.0.1:9050) for the socks port.&lt;br /&gt;
&lt;br /&gt;
* Once configured as a client successfully, if you have the bandwidth and a stable environment please enable the client/relay mode and/or server mode so that the Tor bandwidth is increased.&lt;br /&gt;
&lt;br /&gt;
* Note: Tork constantly monitors the network (both Tor and non-Tor traffic). This can cause slowing of the Tor traffic from your computer and even cause intermittent interruptions. (Tor runs in the background and does not require Tork to be running as a control module.) If Tor is running in a stable mode, it will be faster (and less problematic) to stop Tork (sudo killall tork) and allow Tor to run in the background.&lt;br /&gt;
&lt;br /&gt;
* Note: Traffic that is routed through Privoxy (and then presumably to Tor from Privoxy if configured correctly) will be logged as &amp;quot;non-Tor&amp;quot; traffic by Tork. As long as Privoxy is working correctly, however, this traffic is being forwarded through the Tor socket.&lt;br /&gt;
&lt;br /&gt;
* Tork does not start Privoxy properly. Privoxy must be started (prior to starting Tork) as a startup program (e.g. using the Bootup-Manager) or manually with the command:&lt;br /&gt;
 sudo /etc/init.d/privoxy start&lt;br /&gt;
&lt;br /&gt;
==== Prevent autostart of proxies and Tor ====&lt;br /&gt;
* Whenever I stopped the TorK GUI and then later wanted to start it again, I had to manually kill the Privoxy and Tor processes first.&lt;br /&gt;
 sudo killall privoxy&lt;br /&gt;
 sudo killall tor&lt;br /&gt;
&lt;br /&gt;
* Further, Tor, Privoxy, and Polipo install themselves as automatically started services at bootup. Preventing automatic startup (at boot) of Tor and Privoxy (and/or Polipo) can be accomplished by one of the methods in this [http://ubuntuforums.org/showthread.php?t=1277224 Ubuntu Forums thread]. Personally, I like using [[Ubuntu:All#Choose_Bootup.2FStartup_services|Bootup-Manager]]:&lt;br /&gt;
 sudo apt-get install bum&lt;br /&gt;
&lt;br /&gt;
:but another option is:&lt;br /&gt;
 sudo update-rc.d tor disable&lt;br /&gt;
 sudo update-rc.d privoxy disable&lt;br /&gt;
 sudo update-rc.d polipo disable&lt;br /&gt;
&lt;br /&gt;
which will also stop updates from re-installing the applications as startup services when updates are made.&lt;br /&gt;
&lt;br /&gt;
* If Privoxy is stopped, it must be re-started with the [[Ubuntu:All#Choose_Bootup.2FStartup_services|Bootup-Manager]] or using the command:&lt;br /&gt;
 sudo /etc/init.d/privoxy start&lt;br /&gt;
&lt;br /&gt;
== Firewall considerations ==&lt;br /&gt;
=== Single computer ===&lt;br /&gt;
If you have the Tor client, the proxy client (Privoxy, Polipo, or socat), and the browser client (or other application) on the same computer, you do not need to have any open ports in order to use Tor. In such a circumstance it is safest to block all ports that connect to the Internet. The socks proxy bypasses the firewall entirely (so there is no need to leave any ports open in order for it to communicate).&lt;br /&gt;
&lt;br /&gt;
By closing all ports (using a firewall), applications will be prevented from bypassing Tor (accidentally or unknowingly). Later, if you wish to have some of your traffic directed through Tor and some of your traffic traffic routed outside of Tor, you can open the ports for the traffic that will not go through Tor.&lt;br /&gt;
&lt;br /&gt;
=== Proxy on LAN ===&lt;br /&gt;
If the proxy (Privoxy, Polipo, socat, etc.) on your LAN is on a computer different from the computer(s) that have the end-user client applications, it is best to open the port (e.g. 8118) for communication only between computers on the LAN (with the end-application clients on them) and the computer on the LAN with the proxy on it. Port 8118 should then not be open to the Internet but only to the computers on the LAN that will use the proxy.&lt;br /&gt;
&lt;br /&gt;
If the Proxy and Tor client are on different computers as well, port 9050 should be open (on the LAN, not on the Internet) between the computer with the Proxy and the computer with the Tor client only, so that the Proxy can forward traffic to the Tor client (but not to the Internet). (Obviously, if the Proxy and the Tor client are on the same computer, there is no need to open the 9050 port at all.)&lt;br /&gt;
&lt;br /&gt;
=== Blocking all non-Tor traffic using iptables ===&lt;br /&gt;
To ensure that no unprotected traffic &amp;quot;leaks&amp;quot; from applications without your knowledge, it is possible to configure your firewall iptables to prevent all traffic except that which is transmitted through Tor.&lt;br /&gt;
* See [https://trac.torproject.org/projects/tor/wiki/doc/BlockNonTorTrafficDebian this page].&lt;br /&gt;
&lt;br /&gt;
=== Tor network initialization ===&lt;br /&gt;
It may be necessary to open port 443 (or less desirably port 80) to allow resolution of the nodes of the Tor network. Consider using [[Ubuntu:All#DNS_Servers_and_Search_engines|DNS privacy methods]].&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
*Some routers (including a certain version of the Linksys WRT54G) slow down when the incoming/outgoing connection log (cache) becomes full (which can happen with many Tor or P2P connections). Disable the Log if this problem occurs.&lt;br /&gt;
&lt;br /&gt;
* Although applicable to p2p traffic, [http://ktorrent.org/wiki/index.php/FAQ#Problem_solving this information] is generically applicable to Tor as well.&lt;br /&gt;
&lt;br /&gt;
== Other resources ==&lt;br /&gt;
* [http://www.torproject.org/docs/documentation.html Tor documentation]&lt;br /&gt;
* [https://www.torproject.org/projects/obfsproxy.html.en Obfsproxy] is a proxy to transform data between a client and a Bridge node into innocent looking data, in order to circumvent Deep Packet Inspection (DPI) censorship.&lt;br /&gt;
* [[Anonymous_email|Anonymous email]] tips -- setting up web-based email anonymously through the Tor network&lt;br /&gt;
&lt;br /&gt;
* [http://www.cypherpunk.at/onioncat/ OnionCat] transmits IP-based data transparently through the Tor network on a location hidden basis. (Also see [http://www.abenteuerland.at/onioncat/ this info]).&lt;br /&gt;
&lt;br /&gt;
Similar networks:&lt;br /&gt;
&lt;br /&gt;
* [http://www.i2p2.de I2P] is another anonymizing network similar to Tor. (See [http://www.i2p2.de/debian instructions] and [https://help.ubuntu.com/community/I2P Ubuntu community help].)&lt;br /&gt;
* [http://freenetproject.org/ Freenet] is another anonymizing network similar to Tor.&lt;br /&gt;
* [https://gnunet.org/ Gnunet] is another anonymizing network similar to Tor.&lt;br /&gt;
* [https://secure.wikimedia.org/wikipedia/en/wiki/Anonymous_P2P#List_of_anonymous_P2P_networks_and_clients List of similar networks at Wikipedia]&lt;/div&gt;</description>
			<pubDate>Mon, 29 Apr 2013 17:52:36 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Tor</comments>		</item>
		<item>
			<title>Anonymous email</title>
			<link>http://easylinux.info/wiki/Anonymous_email</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Anonymous blogging */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
== Long-term anonymous email accounts ==&lt;br /&gt;
Sometimes you just want a truly anonymous email account. Spammers already know how to do this -- why shouldn't you? The information below is largely from this [http://advocacy.globalvoicesonline.org/projects/guide/#email Global Voices Online article].&lt;br /&gt;
&lt;br /&gt;
* Set up Tor and run it. For truly anonymous access, run as a Tor relay.&lt;br /&gt;
&lt;br /&gt;
* With Tor running and your Torbutton on (I assume you're running Firefox with Noscript for blocking scripts), access the TorMail hidden service at http://jhiwjjlqpyawmpjx.onion/ . Create a free email account there. This account will be used only as your &amp;quot;verification email&amp;quot; account. &amp;lt;!---&amp;gt;(A similar alternative service is TorPM at http://4eiruntyxxbgfv7o.onion/pm/ .)&amp;lt;---&amp;gt;&lt;br /&gt;
:* [https://lavabit.com Lavabit.com] has a very good free email service that is similar and also works with Tor.&lt;br /&gt;
&lt;br /&gt;
* With Tor running and your Torbutton on (I assume you're running Firefox and [[Ubuntu_Precise_Internet#NoScript_plug-in_.28controls_scripts.29|Noscript]] is blocking scripts), access the Fastmail web-based email service at https://www.fastmail.fm/. Sign up for a free email account there, using the previously established TorMail account as your verification email address.&lt;br /&gt;
&lt;br /&gt;
* Voila! Now you have created an anonymous email account that is linked to another anonymous email account, all accomplished through the Tor network. That's pretty difficult to track, assuming you have the usual tracking mechanisms turned off (i.e. [[Ubuntu_Precise_Internet#NoScript_plug-in_.28controls_scripts.29|no scripts]], routine [[Ubuntu_Precise_Privacy#Changing_a_MAC_address|MAC address changes]], using a [[Ubuntu_Precise_Privacy#DNS_Servers_and_Search_engines|DNS server other than your own ISP's]], [[Ubuntu_Precise_Privacy#DNS_Servers_and_Search_engines|encrypted connections (https)]], and other routine security measures). &lt;br /&gt;
&lt;br /&gt;
:* Current password crackers (such as [[Ubuntu_Precise_Privacy#Password_checker_and_enforcement|John the Ripper]]) can run through millions of passwords in a few hours (see [http://www.h-online.com/open/news/item/John-the-Ripper-now-able-to-crack-office-files-and-use-GPUs-1631901.html this H-open article]). A random password can be generated using a [[Ubuntu_Precise_Privacy#Passwords_and_file_authentication|random password generator]] and used for your email password. Such passwords can be used for &amp;quot;secret questions&amp;quot; if those are required by the email service, as well. (An anonymous user suggests that even the usernames for the &amp;quot;verification&amp;quot; email accounts can consist of a randomly generated set of characters -- good idea!) &lt;br /&gt;
&lt;br /&gt;
:* It is relatively insecure to allow one email account to send passwords or password-reset links to a &amp;quot;verification&amp;quot; email account (such as the one set up at TorMail). If the &amp;quot;verification&amp;quot; email account were to become compromised, it would be trivial for the hacker to reset the password at the (main) Fastmail email account. Furthermore, it is difficult to know who is running an email server in the first place, and it is wise to assume that the email on an email server (such as TorMail) can be examined by the owners of the email server. Of course, that's why you're using email through Tor in the first place -- for deniability in case the email server is compromised (and your email is intercepted).&lt;br /&gt;
::* A solution is to daisy-chain the verification email accounts. In such a scenario, the TorMail account is set up first. Then (for example) a [https://accounts.zoho.com/register?serviceurl=https://www.zoho.com/signup-redirect.html Zoho account] is set up using the TorMail account for verification. The nice thing about a Zoho account is that the user ID/password for the Zoho account (which is a SSO account for all the Zoho services) is different from the Zoho email username/ID. This adds a level of security. Zoho is Tor-permissive. Once a Zoho account and Zoho email account is set up, the Zoho email account is then used as the verification email for the Fastmail account. &lt;br /&gt;
::* Any or all of the &amp;quot;verification&amp;quot; email accounts (such as the original TorMail account) can then be deleted, leaving only the Fastmail account (and optionally the Zoho account) remaining. It should be noted that TorMail, Zoho, and Fastmail are all in different countries, which lends an added level of security. &lt;br /&gt;
&lt;br /&gt;
Always use email through the Tor network or risk exposing your IP address(es). Always use an encrypted (https) connection as well, or risk exposing your data to a rogue Tor node. (All sensitive email should be encrypted using [[Ubuntu_Precise_Privacy#PGP_.28Message_Encryption.29|PGP]], of course, and never sent in cleartext.) &lt;br /&gt;
&lt;br /&gt;
* Fastmail is a robust, high-bandwidth mail server (unlike TorMail) and is Tor-transparent (unlike Yahoo Mail and other free email services), nor does it have the high level of tracking mechanisms that GMail has. It also allows IMAP and SMTP through Tor (in case you desire to use it in that way).&lt;br /&gt;
&lt;br /&gt;
* There are other Tor-permissive email services, however (including RiseUp.net). Want a review of the compatibility of other (free) email services with Tor? Then see this hidden service wiki (with Tor running and your Torbutton turned on): http://kpvz7ki2v5agwt35.onion/wiki/index.php/Email&lt;br /&gt;
&lt;br /&gt;
* You could use the TorMail (and/or Zoho) account as your verification email account for a variety of services and if those services were available through Tor as well, you could be anonymous with them, too! However, once you use the TorMail (and/or Zoho) account for anything other than a verification email account, the chances of cross-correlation go up. I therefore recommend reserving a single TorMail (and/or Zoho) account for that purpose (i.e. as a verification account) only.&lt;br /&gt;
&lt;br /&gt;
* Here's a moderated list of other Tor hidden services: http://nobody.zerodays.org/hidden-directory/&lt;br /&gt;
&lt;br /&gt;
== Temporary non-anonymous email accounts ==&lt;br /&gt;
* Sometimes you just need a temporary email account just to sign up for some commenting system or something. Perhaps they send a &amp;quot;click this link to verify account&amp;quot; email, which is all you really need. Such emails need not be secure or private, since passwords and other identifying information is usually not sent in such messages.&lt;br /&gt;
&lt;br /&gt;
:*[http://www.mailinator.com/ Mailinator] is the ideal solution for this type of temporary email account. It does not allow sending emails (and therefore is not apporpriate if you are trying to be a spammer), but it does allow you to receive one-time emails. You could use such an email account to receive a one-time message from some website (a coupon or something like that) which you know will generate endless spam in the future. With the temporary email account, you can &amp;quot;Let them eat spam!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
::*A random string of characters can be generated using a [[Ubuntu_Precise_Privacy#Passwords_and_file_authentication|random password generator]] and used as your email username. Mailinator allows a user ID up to 25 characters. (Mailinator can provide a random userID, as well.)&lt;br /&gt;
&lt;br /&gt;
::*This is a great service, and the guy who runs it is very well-educated and amusing. Note that there is no privacy whatsoever with this service, except in the obscurity of your chosen email name. All messages to the temporary email box are deleted within a day.&lt;br /&gt;
&lt;br /&gt;
::* Uh, yeah, of course you should access Mailinator through Tor, unless you particularly want your IP address to be identified with the temporary email account. The guy from Mailinator says he gets subpoena requests all the time. Stay protected. Use Tor when accessing Mailinator.&lt;br /&gt;
&lt;br /&gt;
:* [http://www.spamgourmet.com/ Spamgourmet] is another service that allows temporary, discardable email addresses. It allows forwarding of up to three messages to another email account (perhaps your longterm anonymous email account?) so that you can give a Spamgourmet email address to some website, have their reply forwarded to your regular email account, and then not worry about the subsequent spam (after the first 3 messages) that inevitably follows. Spamgourmet discards anything after the first 3 messages.&lt;br /&gt;
&lt;br /&gt;
== Anonymous blogging ==&lt;br /&gt;
&lt;br /&gt;
* Now that you have an anonymous email account, why not set up an [https://en.wikipedia.org/wiki/Anonymous_blog anonymous blog]? I mean, are you any less reliable than a paid &amp;quot;journalist&amp;quot; that posts their poorly written nonsense on online newspapers? Here are some sites that allow anonymous blogs:&lt;br /&gt;
&lt;br /&gt;
:* [http://www.blog.com/ Blog.com] allows free blogs.&lt;br /&gt;
:* [http://wordpress.com/ Wordpress] allows free blogs, but has a number of censorship rules and tends to remove sites quite quickly based on any complaint whatsoever. [http://www.dmoz.org/Computers/Internet/On_the_Web/Weblogs/Hosts/WordPress/Free/ Here] is a list of other hosts that allow free blogs using the Wordpress blogging software.&lt;br /&gt;
:* [http://www.blogger.com Blogger.com] was bought by Google and is available with a Google account. Anything hosted by Google must be assumed to be insecure, but for limited uses it may fit your needs. &lt;br /&gt;
:* [http://mashable.com/2007/08/06/free-blog-hosts/ Here] is a 2007 list of other free blog sites. I'm not sure how many are still functional.&lt;br /&gt;
&lt;br /&gt;
* There have been several high-profile lawsuits of anonymous bloggers being sued after being tracked through their IP address using Java-based scripts or by Google Analytics. You are using [[Ubuntu_Precise_Internet#NoScript_plug-in_.28controls_scripts.29|NoScript]] to block Google Analytics and Java scripts, aren't you? Of course, I KNOW you are accessing your blog only through Tor... right? See the [http://advocacy.globalvoicesonline.org/projects/guide/ Global Voices Online] article regarding anonymous blogging (with Tor).&lt;br /&gt;
&lt;br /&gt;
== Other considerations ==&lt;br /&gt;
&lt;br /&gt;
* Traditonal forensics have always used the evaluation of writing styles to identify authors. See [http://www.sciencedaily.com/releases/2011/03/110308124758.htm this article]. Frequent posts from the same author allow evaluation of writing patterns. One way to get around this is to use a translation service. Translate a message into another language, then translate the result back into the original language. This introduces random errors, making the writing style less consistently recognisable. (Be careful to use Tor when using [http://translate.google.com Google Tranlate] or other online services, of course, since Google and others use extensive tracking mechanisms.)&lt;br /&gt;
&amp;lt;!---&amp;gt;&lt;br /&gt;
* Many tracking mechanisms record the MAC address of your Internet connection. This is a good reason to frequently change your MAC address and to log in from public locations. Be careful of public locations with surveillance, however. If you log in at a public location, the surveillance tapes can be correlated to the timestamp of the message from that location. The wireless connection for many public locations extends outside the location itself (and outside the range surveillance cameras). &amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using an SMTP server ==&lt;br /&gt;
* You can easily send anonymous emails with your own SMTP server. This is how spammers and other malevolent Internet users accomplish it. See [http://tipsfromgeek.com/2008/03/send-anonymous-emails.html this article] for an example. Spammers suck, though. Heck, beating spam is the purpose of much of this page, isn't it? Why contribute to it?&lt;/div&gt;</description>
			<pubDate>Mon, 29 Apr 2013 17:48:30 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Talk:Anonymous_email</comments>		</item>
		<item>
			<title>Anonymous email</title>
			<link>http://easylinux.info/wiki/Anonymous_email</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Temporary non-anonymous email accounts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
== Long-term anonymous email accounts ==&lt;br /&gt;
Sometimes you just want a truly anonymous email account. Spammers already know how to do this -- why shouldn't you? The information below is largely from this [http://advocacy.globalvoicesonline.org/projects/guide/#email Global Voices Online article].&lt;br /&gt;
&lt;br /&gt;
* Set up Tor and run it. For truly anonymous access, run as a Tor relay.&lt;br /&gt;
&lt;br /&gt;
* With Tor running and your Torbutton on (I assume you're running Firefox with Noscript for blocking scripts), access the TorMail hidden service at http://jhiwjjlqpyawmpjx.onion/ . Create a free email account there. This account will be used only as your &amp;quot;verification email&amp;quot; account. &amp;lt;!---&amp;gt;(A similar alternative service is TorPM at http://4eiruntyxxbgfv7o.onion/pm/ .)&amp;lt;---&amp;gt;&lt;br /&gt;
:* [https://lavabit.com Lavabit.com] has a very good free email service that is similar and also works with Tor.&lt;br /&gt;
&lt;br /&gt;
* With Tor running and your Torbutton on (I assume you're running Firefox and [[Ubuntu_Precise_Internet#NoScript_plug-in_.28controls_scripts.29|Noscript]] is blocking scripts), access the Fastmail web-based email service at https://www.fastmail.fm/. Sign up for a free email account there, using the previously established TorMail account as your verification email address.&lt;br /&gt;
&lt;br /&gt;
* Voila! Now you have created an anonymous email account that is linked to another anonymous email account, all accomplished through the Tor network. That's pretty difficult to track, assuming you have the usual tracking mechanisms turned off (i.e. [[Ubuntu_Precise_Internet#NoScript_plug-in_.28controls_scripts.29|no scripts]], routine [[Ubuntu_Precise_Privacy#Changing_a_MAC_address|MAC address changes]], using a [[Ubuntu_Precise_Privacy#DNS_Servers_and_Search_engines|DNS server other than your own ISP's]], [[Ubuntu_Precise_Privacy#DNS_Servers_and_Search_engines|encrypted connections (https)]], and other routine security measures). &lt;br /&gt;
&lt;br /&gt;
:* Current password crackers (such as [[Ubuntu_Precise_Privacy#Password_checker_and_enforcement|John the Ripper]]) can run through millions of passwords in a few hours (see [http://www.h-online.com/open/news/item/John-the-Ripper-now-able-to-crack-office-files-and-use-GPUs-1631901.html this H-open article]). A random password can be generated using a [[Ubuntu_Precise_Privacy#Passwords_and_file_authentication|random password generator]] and used for your email password. Such passwords can be used for &amp;quot;secret questions&amp;quot; if those are required by the email service, as well. (An anonymous user suggests that even the usernames for the &amp;quot;verification&amp;quot; email accounts can consist of a randomly generated set of characters -- good idea!) &lt;br /&gt;
&lt;br /&gt;
:* It is relatively insecure to allow one email account to send passwords or password-reset links to a &amp;quot;verification&amp;quot; email account (such as the one set up at TorMail). If the &amp;quot;verification&amp;quot; email account were to become compromised, it would be trivial for the hacker to reset the password at the (main) Fastmail email account. Furthermore, it is difficult to know who is running an email server in the first place, and it is wise to assume that the email on an email server (such as TorMail) can be examined by the owners of the email server. Of course, that's why you're using email through Tor in the first place -- for deniability in case the email server is compromised (and your email is intercepted).&lt;br /&gt;
::* A solution is to daisy-chain the verification email accounts. In such a scenario, the TorMail account is set up first. Then (for example) a [https://accounts.zoho.com/register?serviceurl=https://www.zoho.com/signup-redirect.html Zoho account] is set up using the TorMail account for verification. The nice thing about a Zoho account is that the user ID/password for the Zoho account (which is a SSO account for all the Zoho services) is different from the Zoho email username/ID. This adds a level of security. Zoho is Tor-permissive. Once a Zoho account and Zoho email account is set up, the Zoho email account is then used as the verification email for the Fastmail account. &lt;br /&gt;
::* Any or all of the &amp;quot;verification&amp;quot; email accounts (such as the original TorMail account) can then be deleted, leaving only the Fastmail account (and optionally the Zoho account) remaining. It should be noted that TorMail, Zoho, and Fastmail are all in different countries, which lends an added level of security. &lt;br /&gt;
&lt;br /&gt;
Always use email through the Tor network or risk exposing your IP address(es). Always use an encrypted (https) connection as well, or risk exposing your data to a rogue Tor node. (All sensitive email should be encrypted using [[Ubuntu_Precise_Privacy#PGP_.28Message_Encryption.29|PGP]], of course, and never sent in cleartext.) &lt;br /&gt;
&lt;br /&gt;
* Fastmail is a robust, high-bandwidth mail server (unlike TorMail) and is Tor-transparent (unlike Yahoo Mail and other free email services), nor does it have the high level of tracking mechanisms that GMail has. It also allows IMAP and SMTP through Tor (in case you desire to use it in that way).&lt;br /&gt;
&lt;br /&gt;
* There are other Tor-permissive email services, however (including RiseUp.net). Want a review of the compatibility of other (free) email services with Tor? Then see this hidden service wiki (with Tor running and your Torbutton turned on): http://kpvz7ki2v5agwt35.onion/wiki/index.php/Email&lt;br /&gt;
&lt;br /&gt;
* You could use the TorMail (and/or Zoho) account as your verification email account for a variety of services and if those services were available through Tor as well, you could be anonymous with them, too! However, once you use the TorMail (and/or Zoho) account for anything other than a verification email account, the chances of cross-correlation go up. I therefore recommend reserving a single TorMail (and/or Zoho) account for that purpose (i.e. as a verification account) only.&lt;br /&gt;
&lt;br /&gt;
* Here's a moderated list of other Tor hidden services: http://nobody.zerodays.org/hidden-directory/&lt;br /&gt;
&lt;br /&gt;
== Temporary non-anonymous email accounts ==&lt;br /&gt;
* Sometimes you just need a temporary email account just to sign up for some commenting system or something. Perhaps they send a &amp;quot;click this link to verify account&amp;quot; email, which is all you really need. Such emails need not be secure or private, since passwords and other identifying information is usually not sent in such messages.&lt;br /&gt;
&lt;br /&gt;
:*[http://www.mailinator.com/ Mailinator] is the ideal solution for this type of temporary email account. It does not allow sending emails (and therefore is not apporpriate if you are trying to be a spammer), but it does allow you to receive one-time emails. You could use such an email account to receive a one-time message from some website (a coupon or something like that) which you know will generate endless spam in the future. With the temporary email account, you can &amp;quot;Let them eat spam!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
::*A random string of characters can be generated using a [[Ubuntu_Precise_Privacy#Passwords_and_file_authentication|random password generator]] and used as your email username. Mailinator allows a user ID up to 25 characters. (Mailinator can provide a random userID, as well.)&lt;br /&gt;
&lt;br /&gt;
::*This is a great service, and the guy who runs it is very well-educated and amusing. Note that there is no privacy whatsoever with this service, except in the obscurity of your chosen email name. All messages to the temporary email box are deleted within a day.&lt;br /&gt;
&lt;br /&gt;
::* Uh, yeah, of course you should access Mailinator through Tor, unless you particularly want your IP address to be identified with the temporary email account. The guy from Mailinator says he gets subpoena requests all the time. Stay protected. Use Tor when accessing Mailinator.&lt;br /&gt;
&lt;br /&gt;
:* [http://www.spamgourmet.com/ Spamgourmet] is another service that allows temporary, discardable email addresses. It allows forwarding of up to three messages to another email account (perhaps your longterm anonymous email account?) so that you can give a Spamgourmet email address to some website, have their reply forwarded to your regular email account, and then not worry about the subsequent spam (after the first 3 messages) that inevitably follows. Spamgourmet discards anything after the first 3 messages.&lt;br /&gt;
&lt;br /&gt;
== Anonymous blogging ==&lt;br /&gt;
&lt;br /&gt;
* Now that you have an anonymous email account, why not set up an [https://en.wikipedia.org/wiki/Anonymous_blog anonymous blog]? I mean, are you any less reliable than a paid &amp;quot;journalist&amp;quot; that posts their poorly written nonsense on online newspapers? Here are some sites that allow anonymous blogs:&lt;br /&gt;
&lt;br /&gt;
:* [http://www.blog.com/ Blog.com] allows free blogs.&lt;br /&gt;
:* [http://wordpress.com/ Wordpress] allows free blogs, but has a number of censorship rules and tends to remove sites quite quickly based on any complaint whatsoever. [http://www.dmoz.org/Computers/Internet/On_the_Web/Weblogs/Hosts/WordPress/Free/ Here] is a list of other hosts that allow free blogs using the Wordpress blogging software.&lt;br /&gt;
:* [http://www.blogger.com Blogger.com] was bought by Google and is available with a Google account. Anything hosted by Google must be assumed to be insecure, but for limited uses it may fit your needs. &lt;br /&gt;
:* [http://mashable.com/2007/08/06/free-blog-hosts/ Here] is a 2007 list of other free blog sites. I'm not sure how many are still functional.&lt;br /&gt;
&lt;br /&gt;
* There have been several high-profile lawsuits of anonymous bloggers being sued after being tracked through their IP address using Java-based scripts or by Google Analytics. You are using [[Kubuntu:All#NoScript_plug-in_.28controls_scripts.29|NoScript]] to block Google Analytics and Java scripts, aren't you? Of course, I KNOW you are accessing your blog only through Tor... right? See the [http://advocacy.globalvoicesonline.org/projects/guide/ Global Voices Online] article regarding anonymous blogging (with Tor).&lt;br /&gt;
&lt;br /&gt;
== Other considerations ==&lt;br /&gt;
&lt;br /&gt;
* Traditonal forensics have always used the evaluation of writing styles to identify authors. See [http://www.sciencedaily.com/releases/2011/03/110308124758.htm this article]. Frequent posts from the same author allow evaluation of writing patterns. One way to get around this is to use a translation service. Translate a message into another language, then translate the result back into the original language. This introduces random errors, making the writing style less consistently recognisable. (Be careful to use Tor when using [http://translate.google.com Google Tranlate] or other online services, of course, since Google and others use extensive tracking mechanisms.)&lt;br /&gt;
&amp;lt;!---&amp;gt;&lt;br /&gt;
* Many tracking mechanisms record the MAC address of your Internet connection. This is a good reason to frequently change your MAC address and to log in from public locations. Be careful of public locations with surveillance, however. If you log in at a public location, the surveillance tapes can be correlated to the timestamp of the message from that location. The wireless connection for many public locations extends outside the location itself (and outside the range surveillance cameras). &amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using an SMTP server ==&lt;br /&gt;
* You can easily send anonymous emails with your own SMTP server. This is how spammers and other malevolent Internet users accomplish it. See [http://tipsfromgeek.com/2008/03/send-anonymous-emails.html this article] for an example. Spammers suck, though. Heck, beating spam is the purpose of much of this page, isn't it? Why contribute to it?&lt;/div&gt;</description>
			<pubDate>Mon, 29 Apr 2013 17:46:31 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Talk:Anonymous_email</comments>		</item>
		<item>
			<title>Anonymous email</title>
			<link>http://easylinux.info/wiki/Anonymous_email</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Long-term anonymous email accounts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
== Long-term anonymous email accounts ==&lt;br /&gt;
Sometimes you just want a truly anonymous email account. Spammers already know how to do this -- why shouldn't you? The information below is largely from this [http://advocacy.globalvoicesonline.org/projects/guide/#email Global Voices Online article].&lt;br /&gt;
&lt;br /&gt;
* Set up Tor and run it. For truly anonymous access, run as a Tor relay.&lt;br /&gt;
&lt;br /&gt;
* With Tor running and your Torbutton on (I assume you're running Firefox with Noscript for blocking scripts), access the TorMail hidden service at http://jhiwjjlqpyawmpjx.onion/ . Create a free email account there. This account will be used only as your &amp;quot;verification email&amp;quot; account. &amp;lt;!---&amp;gt;(A similar alternative service is TorPM at http://4eiruntyxxbgfv7o.onion/pm/ .)&amp;lt;---&amp;gt;&lt;br /&gt;
:* [https://lavabit.com Lavabit.com] has a very good free email service that is similar and also works with Tor.&lt;br /&gt;
&lt;br /&gt;
* With Tor running and your Torbutton on (I assume you're running Firefox and [[Ubuntu_Precise_Internet#NoScript_plug-in_.28controls_scripts.29|Noscript]] is blocking scripts), access the Fastmail web-based email service at https://www.fastmail.fm/. Sign up for a free email account there, using the previously established TorMail account as your verification email address.&lt;br /&gt;
&lt;br /&gt;
* Voila! Now you have created an anonymous email account that is linked to another anonymous email account, all accomplished through the Tor network. That's pretty difficult to track, assuming you have the usual tracking mechanisms turned off (i.e. [[Ubuntu_Precise_Internet#NoScript_plug-in_.28controls_scripts.29|no scripts]], routine [[Ubuntu_Precise_Privacy#Changing_a_MAC_address|MAC address changes]], using a [[Ubuntu_Precise_Privacy#DNS_Servers_and_Search_engines|DNS server other than your own ISP's]], [[Ubuntu_Precise_Privacy#DNS_Servers_and_Search_engines|encrypted connections (https)]], and other routine security measures). &lt;br /&gt;
&lt;br /&gt;
:* Current password crackers (such as [[Ubuntu_Precise_Privacy#Password_checker_and_enforcement|John the Ripper]]) can run through millions of passwords in a few hours (see [http://www.h-online.com/open/news/item/John-the-Ripper-now-able-to-crack-office-files-and-use-GPUs-1631901.html this H-open article]). A random password can be generated using a [[Ubuntu_Precise_Privacy#Passwords_and_file_authentication|random password generator]] and used for your email password. Such passwords can be used for &amp;quot;secret questions&amp;quot; if those are required by the email service, as well. (An anonymous user suggests that even the usernames for the &amp;quot;verification&amp;quot; email accounts can consist of a randomly generated set of characters -- good idea!) &lt;br /&gt;
&lt;br /&gt;
:* It is relatively insecure to allow one email account to send passwords or password-reset links to a &amp;quot;verification&amp;quot; email account (such as the one set up at TorMail). If the &amp;quot;verification&amp;quot; email account were to become compromised, it would be trivial for the hacker to reset the password at the (main) Fastmail email account. Furthermore, it is difficult to know who is running an email server in the first place, and it is wise to assume that the email on an email server (such as TorMail) can be examined by the owners of the email server. Of course, that's why you're using email through Tor in the first place -- for deniability in case the email server is compromised (and your email is intercepted).&lt;br /&gt;
::* A solution is to daisy-chain the verification email accounts. In such a scenario, the TorMail account is set up first. Then (for example) a [https://accounts.zoho.com/register?serviceurl=https://www.zoho.com/signup-redirect.html Zoho account] is set up using the TorMail account for verification. The nice thing about a Zoho account is that the user ID/password for the Zoho account (which is a SSO account for all the Zoho services) is different from the Zoho email username/ID. This adds a level of security. Zoho is Tor-permissive. Once a Zoho account and Zoho email account is set up, the Zoho email account is then used as the verification email for the Fastmail account. &lt;br /&gt;
::* Any or all of the &amp;quot;verification&amp;quot; email accounts (such as the original TorMail account) can then be deleted, leaving only the Fastmail account (and optionally the Zoho account) remaining. It should be noted that TorMail, Zoho, and Fastmail are all in different countries, which lends an added level of security. &lt;br /&gt;
&lt;br /&gt;
Always use email through the Tor network or risk exposing your IP address(es). Always use an encrypted (https) connection as well, or risk exposing your data to a rogue Tor node. (All sensitive email should be encrypted using [[Ubuntu_Precise_Privacy#PGP_.28Message_Encryption.29|PGP]], of course, and never sent in cleartext.) &lt;br /&gt;
&lt;br /&gt;
* Fastmail is a robust, high-bandwidth mail server (unlike TorMail) and is Tor-transparent (unlike Yahoo Mail and other free email services), nor does it have the high level of tracking mechanisms that GMail has. It also allows IMAP and SMTP through Tor (in case you desire to use it in that way).&lt;br /&gt;
&lt;br /&gt;
* There are other Tor-permissive email services, however (including RiseUp.net). Want a review of the compatibility of other (free) email services with Tor? Then see this hidden service wiki (with Tor running and your Torbutton turned on): http://kpvz7ki2v5agwt35.onion/wiki/index.php/Email&lt;br /&gt;
&lt;br /&gt;
* You could use the TorMail (and/or Zoho) account as your verification email account for a variety of services and if those services were available through Tor as well, you could be anonymous with them, too! However, once you use the TorMail (and/or Zoho) account for anything other than a verification email account, the chances of cross-correlation go up. I therefore recommend reserving a single TorMail (and/or Zoho) account for that purpose (i.e. as a verification account) only.&lt;br /&gt;
&lt;br /&gt;
* Here's a moderated list of other Tor hidden services: http://nobody.zerodays.org/hidden-directory/&lt;br /&gt;
&lt;br /&gt;
== Temporary non-anonymous email accounts ==&lt;br /&gt;
* Sometimes you just need a temporary email account just to sign up for some commenting system or something. Perhaps they send a &amp;quot;click this link to verify account&amp;quot; email, which is all you really need. Such emails need not be secure or private, since passwords and other identifying information is usually not sent in such messages.&lt;br /&gt;
&lt;br /&gt;
:*[http://www.mailinator.com/ Mailinator] is the ideal solution for this type of temporary email account. It does not allow sending emails (and therefore is not apporpriate if you are trying to be a spammer), but it does allow you to receive one-time emails. You could use such an email account to receive a one-time message from some website (a coupon or something like that) which you know will generate endless spam in the future. With the temporary email account, you can &amp;quot;Let them eat spam!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
::*A random string of characters can be generated using a [[Ubuntu_Precise_Tips#Random_password_generator|random password generator]] and used as your email username. Mailinator allows a user ID up to 25 characters. (Mailinator can provide a random userID, as well.)&lt;br /&gt;
&lt;br /&gt;
::*This is a great service, and the guy who runs it is very well-educated and amusing. Note that there is no privacy whatsoever with this service, except in the obscurity of your chosen email name. All messages to the temporary email box are deleted within a day.&lt;br /&gt;
&lt;br /&gt;
::* Uh, yeah, of course you should access Mailinator through Tor, unless you particularly want your IP address to be identified with the temporary email account. The guy from Mailinator says he gets subpoena requests all the time. Stay protected. Use Tor when accessing Mailinator.&lt;br /&gt;
&lt;br /&gt;
:* [http://www.spamgourmet.com/ Spamgourmet] is another service that allows temporary, discardable email addresses. It allows forwarding of up to three messages to another email account (perhaps your longterm anonymous email account?) so that you can give a Spamgourmet email address to some website, have their reply forwarded to your regular email account, and then not worry about the subsequent spam (after the first 3 messages) that inevitably follows. Spamgourmet discards anything after the first 3 messages.&lt;br /&gt;
&lt;br /&gt;
== Anonymous blogging ==&lt;br /&gt;
&lt;br /&gt;
* Now that you have an anonymous email account, why not set up an [https://en.wikipedia.org/wiki/Anonymous_blog anonymous blog]? I mean, are you any less reliable than a paid &amp;quot;journalist&amp;quot; that posts their poorly written nonsense on online newspapers? Here are some sites that allow anonymous blogs:&lt;br /&gt;
&lt;br /&gt;
:* [http://www.blog.com/ Blog.com] allows free blogs.&lt;br /&gt;
:* [http://wordpress.com/ Wordpress] allows free blogs, but has a number of censorship rules and tends to remove sites quite quickly based on any complaint whatsoever. [http://www.dmoz.org/Computers/Internet/On_the_Web/Weblogs/Hosts/WordPress/Free/ Here] is a list of other hosts that allow free blogs using the Wordpress blogging software.&lt;br /&gt;
:* [http://www.blogger.com Blogger.com] was bought by Google and is available with a Google account. Anything hosted by Google must be assumed to be insecure, but for limited uses it may fit your needs. &lt;br /&gt;
:* [http://mashable.com/2007/08/06/free-blog-hosts/ Here] is a 2007 list of other free blog sites. I'm not sure how many are still functional.&lt;br /&gt;
&lt;br /&gt;
* There have been several high-profile lawsuits of anonymous bloggers being sued after being tracked through their IP address using Java-based scripts or by Google Analytics. You are using [[Kubuntu:All#NoScript_plug-in_.28controls_scripts.29|NoScript]] to block Google Analytics and Java scripts, aren't you? Of course, I KNOW you are accessing your blog only through Tor... right? See the [http://advocacy.globalvoicesonline.org/projects/guide/ Global Voices Online] article regarding anonymous blogging (with Tor).&lt;br /&gt;
&lt;br /&gt;
== Other considerations ==&lt;br /&gt;
&lt;br /&gt;
* Traditonal forensics have always used the evaluation of writing styles to identify authors. See [http://www.sciencedaily.com/releases/2011/03/110308124758.htm this article]. Frequent posts from the same author allow evaluation of writing patterns. One way to get around this is to use a translation service. Translate a message into another language, then translate the result back into the original language. This introduces random errors, making the writing style less consistently recognisable. (Be careful to use Tor when using [http://translate.google.com Google Tranlate] or other online services, of course, since Google and others use extensive tracking mechanisms.)&lt;br /&gt;
&amp;lt;!---&amp;gt;&lt;br /&gt;
* Many tracking mechanisms record the MAC address of your Internet connection. This is a good reason to frequently change your MAC address and to log in from public locations. Be careful of public locations with surveillance, however. If you log in at a public location, the surveillance tapes can be correlated to the timestamp of the message from that location. The wireless connection for many public locations extends outside the location itself (and outside the range surveillance cameras). &amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using an SMTP server ==&lt;br /&gt;
* You can easily send anonymous emails with your own SMTP server. This is how spammers and other malevolent Internet users accomplish it. See [http://tipsfromgeek.com/2008/03/send-anonymous-emails.html this article] for an example. Spammers suck, though. Heck, beating spam is the purpose of much of this page, isn't it? Why contribute to it?&lt;/div&gt;</description>
			<pubDate>Mon, 29 Apr 2013 17:44:08 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Talk:Anonymous_email</comments>		</item>
		<item>
			<title>Template:K Precise/Privacy</title>
			<link>http://easylinux.info/wiki/Template:K_Precise/Privacy</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Web browsing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Privacy =&lt;br /&gt;
An interesting perspective on Internet privacy techniques can be found [http://farid.hajji.name/blog/2009/06/20/circumventing-internet-censorship/ here].&lt;br /&gt;
&lt;br /&gt;
== PGP (Message Encryption) ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/GNU_Privacy_Guard GnuPG] is the free open source implementation of the OpenPGP standard for [http://en.wikipedia.org/wiki/Pretty_Good_Privacy PGP]. It is a tool to encrypt your messages (such as email) to be unlocked only by someone who has a key to unlock it. While gpg is the default OpenPGP tool for command-line usage, gpg2 is the utility generally used by GUI frontends.&lt;br /&gt;
&lt;br /&gt;
=== Enigmail with Thunderbird ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] By far the easiest method for encrypting email is using the [[Kubuntu_Precise_Internet#Enigmail|Enigmail]] add-on for the [[Kubuntu_Precise_Internet#Thunderbird|Thunderbird]] email client. It creates PGP key pairs, stores and retrieves keys from keyrings, and encrypts and decrypts messages automatically.&lt;br /&gt;
&lt;br /&gt;
=== Kleopatra (Cryptography and Certificate Manager) ===&lt;br /&gt;
[http://www.kde.org/applications/utilities/kleopatra/ Kleopatra] is a certificate manager and a universal crypto GUI for KDE. It supports managing X.509 and OpenPGP certificates in the GpgSM keybox and retrieving certificates from LDAP servers. Install:&lt;br /&gt;
 sudo apt-get install kleopatra&lt;br /&gt;
&lt;br /&gt;
* Create a new OpenPGP keypair:&lt;br /&gt;
:K menu -&amp;gt; Utilities -&amp;gt; Kleopatra -&amp;gt; File -&amp;gt; New Certificate... -&amp;gt; Create a personal OpenPGP key pair&lt;br /&gt;
&lt;br /&gt;
=== KGPG ===&lt;br /&gt;
[http://utils.kde.org/projects/kgpg/ KGpg] is the GUI for KDE to manage the key pairs and other options of [http://www.gnupg.org/ GnuPG]. It has fewer options than Kleopatra. Install:&lt;br /&gt;
 sudo apt-get install kgpg&lt;br /&gt;
&lt;br /&gt;
=== PGP Troubleshooting ===&lt;br /&gt;
If KGPG or Kleopatra gives an error, it is because of a problem with settings in the gpg.conf configuration file ( ~/.gnupg/gpg.conf). Edit the file (using either ~/ or /home/''user''/ ):&lt;br /&gt;
 kate /home/''user''/.gnupg/gpg.conf&lt;br /&gt;
&lt;br /&gt;
Comment out the two lines at the bottom:&lt;br /&gt;
 #debug-level basic&lt;br /&gt;
 #log-file socket:///home/''user''/.gnupg/log-socket&lt;br /&gt;
&lt;br /&gt;
== Web browsing ==&lt;br /&gt;
Web tracking, scripts, and advertisements are extremely intrusive on the Internet. A dossier of your online habits is created by a multitude of services, including every major portal such as Google and Yahoo, as well as a variety of tracking services on the Internet. This is accomplished through the use of the &amp;quot;cookies&amp;quot; in your browser and by a variety of web elements (sometimes called &amp;quot;web beacons&amp;quot;) embedded on the web pages you visit. Your behavior is monitored and correlated by recording the IP address of your computer, even when you turn off the cookies in your browser. Still, it is highly recommended to configure your web browser to erase your [http://support.mozilla.org/en-US/kb/Cookies cookies] and history every time the web browser is closed; otherwise, every website you subsequently visit can instantly see the long list of recent websites you have visited. In Firefox, for example, cookies can be accepted for the current session but erased upon closing:&lt;br /&gt;
:Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Privacy -&amp;gt; History -&amp;gt; Firefox will: ''Use custom settings for history''&lt;br /&gt;
:-&amp;gt; ''Always use private browsing mode'' (or customise the settings to your desired level of privacy)&lt;br /&gt;
* In addition, both [[Kubuntu_Precise_Internet#Adblock_Plus_plug-in_.28block_ads_in_a_web_page.29|Adblock Plus]] and [[Kubuntu_Precise_Internet#NoScript_plug-in_.28controls_scripts.29|NoScript]] are highly recommended as plug-ins for Firefox (and other Gecko-based browsers) to limit exposure to undesirable web elements, scripts, and tracking mechanisms.&lt;br /&gt;
&lt;br /&gt;
== Tor (Network privacy) ==&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://www.torproject.org/ Tor] is a project to allow privacy while using the Internet and to limit usage tracking. It routes your traffic through several anonymous nodes, so that your usage appears to come from an IP other than your own. (There are always risks when using the Internet that even Tor can not help with, though. Read [http://www.torproject.org/download.html.en#Warning this].) Using Tor can slow down your Internet usage significantly, depending on how much traffic is being passed through the Tor network (routine file-sharing or large downloads will also significantly reduce performance of the Tor network.)&lt;br /&gt;
&amp;lt;!---&amp;gt;&lt;br /&gt;
* Install the Privoxy http proxy (optional for most users):&lt;br /&gt;
 sudo apt-get install privoxy&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install Tor by following the instructions [https://www.torproject.org/docs/debian here]. Note that the instructions require port 11371 on your firewall to be open to use the gpg keyserver (and download the key for the debian package). Then see the [http://www.torproject.org/docs/tor-doc-unix.html Tor installation guide] for details.&lt;br /&gt;
&lt;br /&gt;
* By default Tor (once it is running) acts as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy] on port 9050. To send traffic from any application through Tor, configure the settings of that application to use a socks5 proxy on port 9050.&lt;br /&gt;
&lt;br /&gt;
* Also see these additional [[Tor|tips]].&lt;br /&gt;
&lt;br /&gt;
=== Vidalia (Tor interface) ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [https://www.torproject.org/projects/vidalia.html Vidalia] is the recommended Qt4-based GUI frontend for Tor. If not installed with Tor, install:&lt;br /&gt;
 sudo apt-get install vidalia&lt;br /&gt;
&lt;br /&gt;
=== Tork (KDE Tor interface) ===&lt;br /&gt;
[http://sourceforge.net/projects/tork/ TorK] is a KDE interface for Tor that relied on the older Qt3 platform. It is no longer included in the (K)Ubuntu repositories. However, if desired it can be installed (along with the older Qt3 libraries). See [[Tor#Tork_.28KDE_Tor_interface.29|this section]].&lt;br /&gt;
&lt;br /&gt;
=== Using Tor with Firefox ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Recent versions of Firefox allow direct use of Tor as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy], both for traffic and DNS resolution. See [[Tor#Using_Tor_with_Firefox|this section]] for information on configuring this.&lt;br /&gt;
&lt;br /&gt;
==== Torbutton (Firefox plug-in) ====&lt;br /&gt;
* Once Tor is installed and running properly, [https://www.torproject.org/torbutton/ Torbutton] allows you to choose whether to use Firefox through the Tor anonymizing network or not. Torbutton only works with older (non-updated) versions of Firefox or with modified versions of Firefox found in the [[Tor#Tor_Browser_Bundle|Tor Browser Bundle]]. Newer versions of Firefox may refuse to start if Torbutton is installed. See [[Tor#Torbutton_(Firefox_plug-in)|this section]] for more details.&lt;br /&gt;
&lt;br /&gt;
== DNS Servers and Search engines ==&lt;br /&gt;
* Most users rely on the [http://en.wikipedia.org/wiki/Domain_Name_System DNS] server of their ISP (Internet Service Provider). DNS queries can be recorded, however, and theoretically correlated by an ISP to the data traffic to/from a user's IP address serviced by that ISP. A somewhat less trackable solution is to use a DNS service that does not belong to your ISP. This can belong to another commercial ISP or to a third party service such as [http://www.opendns.com/ OpenDNS], [http://www.comodo.com/secure-dns/ Comodo], [http://www.scrubit.com/ ScrubIT], [http://code.google.com/speed/public-dns/ Google] (though slightly less secure due to Google's own tracking mechanisms), another [http://theos.in/windows-xp/free-fast-public-dns-server-list/ free DNS service], or (for maximum security) a publicly-available [http://portforward.com/networking/dns.htm international DNS server]. For example, a Verizon customer could use the [http://www.whatsmydns.net/dns/usa/att.html AT&amp;amp;T DNS servers] or the OpenDNS servers. An AT&amp;amp;T customer could use one of the [http://www.dslreports.com/faq/1591 Verizon servers] or the Google servers. It is important to use a reliable DNS provider, however, as [http://en.wikipedia.org/wiki/Man-in-the-middle_attack man-in-the-middle DNS redirection] and [http://en.wikipedia.org/wiki/DNS_cache_poisoning DNS cache poisoning] attacks are increasingly common. Stick to one of the major DNS services (just not your own ISP's DNS service). It is important to note that starting Feburary 25, 2013, 5 major ISPs (Internet Service Providers) in the US (Comcast, Verizon, AT&amp;amp;T, Time Warner Cable, and Cablevision) have agreed to IP address recording and reporting (to the [https://en.wikipedia.org/wiki/Center_for_Copyright_Information CCI]) on behalf of the [https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America MPAA] and [https://en.wikipedia.org/wiki/Recording_Industry_Association_of_America RIAA]. If using one of these ISPs, take extra efforts to ensure your privacy.&lt;br /&gt;
&lt;br /&gt;
The DNS server setting can be changed in the router's settings (recommended) or individually for each computer. If changing on an individual computer, use the Network Manager or Wicd settings, or if using a static IP address with manually configured settings, add a line to /etc/network/interfaces with a list of the desired dns-nameservers at the end of the iface stanza so that the file resembles:&lt;br /&gt;
&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 address 192.168.0.35&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 network 192.168.0.0&lt;br /&gt;
 broadcast 192.168.0.255&lt;br /&gt;
 gateway 192.168.0.1&lt;br /&gt;
 dns-nameservers 8.26.56.26 208.67.222.222 8.20.247.20 208.67.220.220 8.8.8.8 8.8.4.4&lt;br /&gt;
&lt;br /&gt;
* Many search engines track your search requests (notably Google, Bing, and Yahoo) and keep logs of the searches they receive from your IP address. [https://duckduckgo.com DuckDuckGo.com] is a filtered search engine that has made its reputation not only by promising not to track searches, but also by providing a secure (encrypted), Tor-capable and anonymized search portal. Point your browser to https://duckduckgo.com. (It can be used with your Torbutton turned on.)&lt;br /&gt;
&lt;br /&gt;
* Many censorship/filtering/tracking techniques (that use [https://secure.wikimedia.org/wikipedia/en/wiki/Deep_packet_inspection deep packet inspection]) cannot be used with secure ([https://secure.wikimedia.org/wikipedia/en/wiki/Transport_Layer_Security SSL/TLS] encrypted) websites (denoted by ''[https://secure.wikimedia.org/wikipedia/en/wiki/HTTP_Secure &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;]'' ). Use them whenever possible. For example, use the [https://secure.wikimedia.org/ secure Wikimedia portal] for Wikipedia (and other Wikimedia services) instead of the insecure portal(s).&lt;br /&gt;
&lt;br /&gt;
* Many websites keep logs of referring http headers (which can be correlated with cookies to track your browsing activities). To turn off the passage of referral headers in Firefox, see [http://cafe.elharo.com/privacy/privacy-tip-3-block-referer-headers-in-firefox/ this info].&lt;br /&gt;
&lt;br /&gt;
== Changing a MAC address ==&lt;br /&gt;
The MAC address of your network interface card is the &amp;quot;fingerprint&amp;quot; of your network connection. It is not possible to hide the MAC address and most tracking methods now use the MAC address to record user habits. To combat this, it is possible to change (&amp;quot;spoof&amp;quot;) your apparent MAC address using software. It is important to remember, however, that it is generally the MAC address of the router (not computers on a LAN) which is displayed to the Internet. If you change the MAC of your computer but not the MAC of your router, you will gain nothing. Be sure to change both frequently (but most importantly that of the router).&lt;br /&gt;
&lt;br /&gt;
* It is possible to set the MAC address to a random selection in the Network Manager configuration:&lt;br /&gt;
:Network Manager -&amp;gt;  Manage Connections... -&amp;gt; ''connection'' -&amp;gt; Edit... -&amp;gt; Ethernet -&amp;gt; Cloned MAC Address -&amp;gt; Random -&amp;gt; Ok&lt;br /&gt;
&lt;br /&gt;
* [http://www.alobbs.com/macchanger Macchanger] is a utility to change a MAC address. Install:&lt;br /&gt;
 suod apt-get install macchanger&lt;br /&gt;
&lt;br /&gt;
== Certificate verification ==&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Certificate_authority Certificate authorities] charge a fee to store and verify [http://en.wikipedia.org/wiki/Public_key_certificate certificates]. However, many websites use [http://en.wikipedia.org/wiki/Self-signed_certificate self-signed certificates] that are not registered with any certifying authority. A free system of certificate &amp;quot;network notaries&amp;quot; has emerged called [http://perspectives-project.org/ Perspectives]. A certificate's validity (even if self-signed) can be checked using a [https://addons.mozilla.org/en-US/firefox/addon/perspectives/ Firefox plugin]. For more info see [http://www.dedoimedo.com/computers/firefox-perspectives.html this article].&lt;br /&gt;
&lt;br /&gt;
* [https://secure.wikimedia.org/wikipedia/en/wiki/CAcert.org CAcert.org] is a free certifying authority that maintains weak certificates that are recognized by many open source operating systems, but not by Firefox or most browsers. (For browsers that do not include CAcert.org recognition, certificates appear to be self-signed certificates.) While Debian incorporates CACert.org's root certificate by default, Ubuntu derivatives do not ([https://secure.wikimedia.org/wikipedia/en/wiki/Canonical_Ltd. Canonical] was originally founded with funds earned from [https://secure.wikimedia.org/wikipedia/en/wiki/Thawte Thawte], a certifying authority founded by [https://secure.wikimedia.org/wikipedia/en/wiki/Mark_Shuttleworth Mark Shuttleworth].)&lt;br /&gt;
&lt;br /&gt;
== Passwords and file authentication ==&lt;br /&gt;
* See this excellent article at H-Online about [http://www.h-online.com/security/features/Password-protection-for-everyone-1795647.html password protection for everyone].&lt;br /&gt;
&lt;br /&gt;
=== Random password generator ===&lt;br /&gt;
* Pwgen is a command line utility to generate a block of random 8-digit alphanumeric passwords. Run it from Konsole (in Kubuntu) or Terminal (in Ubuntu). Install:&lt;br /&gt;
 sudo apt-get install pwgen&lt;br /&gt;
:* Run pwgen:&lt;br /&gt;
 pwgen&lt;br /&gt;
&lt;br /&gt;
* UUIDgen is a default utility to generate a random UUID (using only [http://en.wikipedia.org/wiki/Hexadecimal hex-digits]). Run:&lt;br /&gt;
 uuidgen&lt;br /&gt;
&lt;br /&gt;
The random UUID can also be used as a 32-digit password, if desired.&lt;br /&gt;
&lt;br /&gt;
=== Password checker and enforcement ===&lt;br /&gt;
[http://www.openwall.com/john/ John the Ripper] is a free open source password cracker that uses a dictionary of over 4 million commonly used passwords in many languages. Because this tool is widely available, it is useful for scanning and securing your own LAN and computers for password strength. Install:&lt;br /&gt;
 sudo apt-get install john&lt;br /&gt;
&lt;br /&gt;
* [http://www.openwall.com/passwdqc/ Passwdqc] is a module to enforce password strength. Install:&lt;br /&gt;
 sudo apt-get install passwdqc&lt;br /&gt;
&lt;br /&gt;
=== MD5Sum ===&lt;br /&gt;
To check the MD5 sum of a file, use this command in the command line:&lt;br /&gt;
 md5sum ''filename''&lt;br /&gt;
&lt;br /&gt;
== File archival and encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
&lt;br /&gt;
=== Archives with Passwords ===&lt;br /&gt;
* See [[Kubuntu_Precise_Utilities#Archiving_Utilities|this section]].&lt;br /&gt;
&lt;br /&gt;
== Disk and Storage Encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
* See the [http://help.ubuntu.com/community/FullDiskEncryptionHowto Ubuntu Community documentation] for methods of full disk encryption.&lt;br /&gt;
* See the [http://help.ubuntu.com/community/EncryptedFilesystems Ubuntu Community documentation] for methods of filesystem encryption.&lt;/div&gt;</description>
			<pubDate>Mon, 29 Apr 2013 17:34:45 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:K_Precise/Privacy</comments>		</item>
		<item>
			<title>Template:K Quantal/Privacy</title>
			<link>http://easylinux.info/wiki/Template:K_Quantal/Privacy</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Web browsing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Privacy =&lt;br /&gt;
An interesting perspective on Internet privacy techniques can be found [http://farid.hajji.name/blog/2009/06/20/circumventing-internet-censorship/ here].&lt;br /&gt;
&lt;br /&gt;
== PGP (Message Encryption) ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/GNU_Privacy_Guard GnuPG] is the free open source implementation of the OpenPGP standard for [http://en.wikipedia.org/wiki/Pretty_Good_Privacy PGP]. It is a tool to encrypt your messages (such as email) to be unlocked only by someone who has a key to unlock it. While gpg is the default OpenPGP tool for command-line usage, gpg2 is the utility generally used by GUI frontends.&lt;br /&gt;
&lt;br /&gt;
=== Enigmail with Thunderbird ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] By far the easiest method for encrypting email is using the [[Kubuntu_Quantal_Internet#Enigmail|Enigmail]] add-on for the [[Kubuntu_Quantal_Internet#Thunderbird|Thunderbird]] email client. It creates PGP key pairs, stores and retrieves keys from keyrings, and encrypts and decrypts messages automatically.&lt;br /&gt;
&lt;br /&gt;
=== Kleopatra (Cryptography and Certificate Manager) ===&lt;br /&gt;
[http://www.kde.org/applications/utilities/kleopatra/ Kleopatra] is a certificate manager and a universal crypto GUI for KDE. It supports managing X.509 and OpenPGP certificates in the GpgSM keybox and retrieving certificates from LDAP servers. Install:&lt;br /&gt;
 sudo apt-get install kleopatra&lt;br /&gt;
&lt;br /&gt;
* Create a new OpenPGP keypair:&lt;br /&gt;
:K menu -&amp;gt; Utilities -&amp;gt; Kleopatra -&amp;gt; File -&amp;gt; New Certificate... -&amp;gt; Create a personal OpenPGP key pair&lt;br /&gt;
&lt;br /&gt;
=== KGPG ===&lt;br /&gt;
[http://utils.kde.org/projects/kgpg/ KGpg] is the GUI for KDE to manage the key pairs and other options of [http://www.gnupg.org/ GnuPG]. It has fewer options than Kleopatra. Install:&lt;br /&gt;
 sudo apt-get install kgpg&lt;br /&gt;
&lt;br /&gt;
=== PGP Troubleshooting ===&lt;br /&gt;
If KGPG or Kleopatra gives an error, it is because of a problem with settings in the gpg.conf configuration file ( ~/.gnupg/gpg.conf). Edit the file (using either ~/ or /home/''user''/ ):&lt;br /&gt;
 kate /home/''user''/.gnupg/gpg.conf&lt;br /&gt;
&lt;br /&gt;
Comment out the two lines at the bottom:&lt;br /&gt;
 #debug-level basic&lt;br /&gt;
 #log-file socket:///home/''user''/.gnupg/log-socket&lt;br /&gt;
&lt;br /&gt;
== Web browsing ==&lt;br /&gt;
Web tracking, scripts, and advertisements are extremely intrusive on the Internet. A dossier of your online habits is created by a multitude of services, including every major portal such as Google and Yahoo, as well as a variety of tracking services on the Internet. This is accomplished through the use of the &amp;quot;cookies&amp;quot; in your browser and by a variety of web elements (sometimes called &amp;quot;web beacons&amp;quot;) embedded on the web pages you visit. Your behavior is monitored and correlated by recording the IP address of your computer, even when you turn off the cookies in your browser. Still, it is highly recommended to configure your web browser to erase your [http://support.mozilla.org/en-US/kb/Cookies cookies] and history every time the web browser is closed; otherwise, every website you subsequently visit can instantly see the long list of recent websites you have visited. In Firefox, for example, cookies can be accepted for the current session but erased upon closing:&lt;br /&gt;
:Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Privacy -&amp;gt; History -&amp;gt; Firefox will: ''Use custom settings for history''&lt;br /&gt;
:-&amp;gt; ''Always use private browsing mode'' (or customise the settings to your desired level of privacy)&lt;br /&gt;
* In addition, both [[Kubuntu_Quantal_Internet#Adblock_Plus_plug-in_.28block_ads_in_a_web_page.29|Adblock Plus]] and [[Kubuntu_Quantal_Internet#NoScript_plug-in_.28controls_scripts.29|NoScript]] are highly recommended as plug-ins for Firefox (and other Gecko-based browsers) to limit exposure to undesirable web elements, scripts, and tracking mechanisms.&lt;br /&gt;
&lt;br /&gt;
== Tor (Network privacy) ==&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://www.torproject.org/ Tor] is a project to allow privacy while using the Internet and to limit usage tracking. It routes your traffic through several anonymous nodes, so that your usage appears to come from an IP other than your own. (There are always risks when using the Internet that even Tor can not help with, though. Read [http://www.torproject.org/download.html.en#Warning this].) Using Tor can slow down your Internet usage significantly, depending on how much traffic is being passed through the Tor network (routine file-sharing or large downloads will also significantly reduce performance of the Tor network.)&lt;br /&gt;
&amp;lt;!---&amp;gt;&lt;br /&gt;
* Install the Privoxy http proxy (optional for most users):&lt;br /&gt;
 sudo apt-get install privoxy&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install Tor by following the instructions [https://www.torproject.org/docs/debian here]. Note that the instructions require port 11371 on your firewall to be open to use the gpg keyserver (and download the key for the debian package). Then see the [http://www.torproject.org/docs/tor-doc-unix.html Tor installation guide] for details.&lt;br /&gt;
&lt;br /&gt;
* By default Tor (once it is running) acts as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy] on port 9050. To send traffic from any application through Tor, configure the settings of that application to use a socks5 proxy on port 9050.&lt;br /&gt;
&lt;br /&gt;
* Also see these additional [[Tor|tips]].&lt;br /&gt;
&lt;br /&gt;
=== Vidalia (Tor interface) ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [https://www.torproject.org/projects/vidalia.html Vidalia] is the recommended Qt4-based GUI frontend for Tor. If not installed with Tor, install:&lt;br /&gt;
 sudo apt-get install vidalia&lt;br /&gt;
&lt;br /&gt;
=== Tork (KDE Tor interface) ===&lt;br /&gt;
[http://sourceforge.net/projects/tork/ TorK] is a KDE interface for Tor that relied on the older Qt3 platform. It is no longer included in the (K)Ubuntu repositories. However, if desired it can be installed (along with the older Qt3 libraries). See [[Tor#Tork_.28KDE_Tor_interface.29|this section]].&lt;br /&gt;
&lt;br /&gt;
=== Using Tor with Firefox ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Recent versions of Firefox allow direct use of Tor as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy], both for traffic and DNS resolution. See [[Tor#Using_Tor_with_Firefox|this section]] for information on configuring this.&lt;br /&gt;
&lt;br /&gt;
==== Torbutton (Firefox plug-in) ====&lt;br /&gt;
* Once Tor is installed and running properly, [https://www.torproject.org/torbutton/ Torbutton] allows you to choose whether to use Firefox through the Tor anonymizing network or not. Torbutton only works with older (non-updated) versions of Firefox or with modified versions of Firefox found in the [[Tor#Tor_Browser_Bundle|Tor Browser Bundle]]. Newer versions of Firefox may refuse to start if Torbutton is installed. See [[Tor#Torbutton_(Firefox_plug-in)|this section]] for more details.&lt;br /&gt;
&lt;br /&gt;
== DNS Servers and Search engines ==&lt;br /&gt;
* Most users rely on the [http://en.wikipedia.org/wiki/Domain_Name_System DNS] server of their ISP (Internet Service Provider). DNS queries can be recorded, however, and theoretically correlated by an ISP to the data traffic to/from a user's IP address serviced by that ISP. A somewhat less trackable solution is to use a DNS service that does not belong to your ISP. This can belong to another commercial ISP or to a third party service such as [http://www.opendns.com/ OpenDNS], [http://www.comodo.com/secure-dns/ Comodo], [http://www.scrubit.com/ ScrubIT], [http://code.google.com/speed/public-dns/ Google] (though slightly less secure due to Google's own tracking mechanisms), another [http://theos.in/windows-xp/free-fast-public-dns-server-list/ free DNS service], or (for maximum security) a publicly-available [http://portforward.com/networking/dns.htm international DNS server]. For example, a Verizon customer could use the [http://www.whatsmydns.net/dns/usa/att.html AT&amp;amp;T DNS servers] or the OpenDNS servers. An AT&amp;amp;T customer could use one of the [http://www.dslreports.com/faq/1591 Verizon servers] or the Google servers. It is important to use a reliable DNS provider, however, as [http://en.wikipedia.org/wiki/Man-in-the-middle_attack man-in-the-middle DNS redirection] and [http://en.wikipedia.org/wiki/DNS_cache_poisoning DNS cache poisoning] attacks are increasingly common. Stick to one of the major DNS services (just not your own ISP's DNS service). It is important to note that starting Feburary 25, 2013, 5 major ISPs (Internet Service Providers) in the US (Comcast, Verizon, AT&amp;amp;T, Time Warner Cable, and Cablevision) have agreed to IP address recording and reporting (to the [https://en.wikipedia.org/wiki/Center_for_Copyright_Information CCI]) on behalf of the [https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America MPAA] and [https://en.wikipedia.org/wiki/Recording_Industry_Association_of_America RIAA]. If using one of these ISPs, take extra efforts to ensure your privacy.&lt;br /&gt;
&lt;br /&gt;
The DNS server setting can be changed in the router's settings (recommended) or individually for each computer. If changing on an individual computer, use the Network Manager or Wicd settings, or if using a static IP address with manually configured settings, add a line to /etc/network/interfaces with a list of the desired dns-nameservers at the end of the iface stanza so that the file resembles:&lt;br /&gt;
&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 address 192.168.0.35&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 network 192.168.0.0&lt;br /&gt;
 broadcast 192.168.0.255&lt;br /&gt;
 gateway 192.168.0.1&lt;br /&gt;
 dns-nameservers 8.26.56.26 208.67.222.222 8.20.247.20 208.67.220.220 8.8.8.8 8.8.4.4&lt;br /&gt;
&lt;br /&gt;
* Many search engines track your search requests (notably Google, Bing, and Yahoo) and keep logs of the searches they receive from your IP address. [https://duckduckgo.com DuckDuckGo.com] is a filtered search engine that has made its reputation not only by promising not to track searches, but also by providing a secure (encrypted), Tor-capable and anonymized search portal. Point your browser to https://duckduckgo.com. (It can be used with your Torbutton turned on.)&lt;br /&gt;
&lt;br /&gt;
* Many censorship/filtering/tracking techniques (that use [https://secure.wikimedia.org/wikipedia/en/wiki/Deep_packet_inspection deep packet inspection]) cannot be used with secure ([https://secure.wikimedia.org/wikipedia/en/wiki/Transport_Layer_Security SSL/TLS] encrypted) websites (denoted by ''[https://secure.wikimedia.org/wikipedia/en/wiki/HTTP_Secure &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;]'' ). Use them whenever possible. For example, use the [https://secure.wikimedia.org/ secure Wikimedia portal] for Wikipedia (and other Wikimedia services) instead of the insecure portal(s).&lt;br /&gt;
&lt;br /&gt;
* Many websites keep logs of referring http headers (which can be correlated with cookies to track your browsing activities). To turn off the passage of referral headers in Firefox, see [http://cafe.elharo.com/privacy/privacy-tip-3-block-referer-headers-in-firefox/ this info].&lt;br /&gt;
&lt;br /&gt;
== Changing a MAC address ==&lt;br /&gt;
The MAC address of your network interface card is the &amp;quot;fingerprint&amp;quot; of your network connection. It is not possible to hide the MAC address and most tracking methods now use the MAC address to record user habits. To combat this, it is possible to change (&amp;quot;spoof&amp;quot;) your apparent MAC address using software. It is important to remember, however, that it is generally the MAC address of the router (not computers on a LAN) which is displayed to the Internet. If you change the MAC of your computer but not the MAC of your router, you will gain nothing. Be sure to change both frequently (but most importantly that of the router).&lt;br /&gt;
&lt;br /&gt;
* It is possible to set the MAC address to a random selection in the Network Manager configuration:&lt;br /&gt;
:Network Manager -&amp;gt;  Manage Connections... -&amp;gt; ''connection'' -&amp;gt; Edit... -&amp;gt; Ethernet -&amp;gt; Cloned MAC Address -&amp;gt; Random -&amp;gt; Ok&lt;br /&gt;
&lt;br /&gt;
* [http://www.alobbs.com/macchanger Macchanger] is a utility to change a MAC address. Install:&lt;br /&gt;
 suod apt-get install macchanger&lt;br /&gt;
&lt;br /&gt;
== Certificate verification ==&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Certificate_authority Certificate authorities] charge a fee to store and verify [http://en.wikipedia.org/wiki/Public_key_certificate certificates]. However, many websites use [http://en.wikipedia.org/wiki/Self-signed_certificate self-signed certificates] that are not registered with any certifying authority. A free system of certificate &amp;quot;network notaries&amp;quot; has emerged called [http://perspectives-project.org/ Perspectives]. A certificate's validity (even if self-signed) can be checked using a [https://addons.mozilla.org/en-US/firefox/addon/perspectives/ Firefox plugin]. For more info see [http://www.dedoimedo.com/computers/firefox-perspectives.html this article].&lt;br /&gt;
&lt;br /&gt;
* [https://secure.wikimedia.org/wikipedia/en/wiki/CAcert.org CAcert.org] is a free certifying authority that maintains weak certificates that are recognized by many open source operating systems, but not by Firefox or most browsers. (For browsers that do not include CAcert.org recognition, certificates appear to be self-signed certificates.) While Debian incorporates CACert.org's root certificate by default, Ubuntu derivatives do not ([https://secure.wikimedia.org/wikipedia/en/wiki/Canonical_Ltd. Canonical] was originally founded with funds earned from [https://secure.wikimedia.org/wikipedia/en/wiki/Thawte Thawte], a certifying authority founded by [https://secure.wikimedia.org/wikipedia/en/wiki/Mark_Shuttleworth Mark Shuttleworth].)&lt;br /&gt;
&lt;br /&gt;
== Passwords and file authentication ==&lt;br /&gt;
* See this excellent article at H-Online about [http://www.h-online.com/security/features/Password-protection-for-everyone-1795647.html password protection for everyone].&lt;br /&gt;
&lt;br /&gt;
=== Random password generator ===&lt;br /&gt;
* Pwgen is a command line utility to generate a block of random 8-digit alphanumeric passwords. Run it from Konsole (in Kubuntu) or Terminal (in Ubuntu). Install:&lt;br /&gt;
 sudo apt-get install pwgen&lt;br /&gt;
:* Run pwgen:&lt;br /&gt;
 pwgen&lt;br /&gt;
&lt;br /&gt;
* UUIDgen is a default utility to generate a random UUID (using only [http://en.wikipedia.org/wiki/Hexadecimal hex-digits]). Run:&lt;br /&gt;
 uuidgen&lt;br /&gt;
&lt;br /&gt;
The random UUID can also be used as a 32-digit password, if desired.&lt;br /&gt;
&lt;br /&gt;
=== Password checker and enforcement ===&lt;br /&gt;
[http://www.openwall.com/john/ John the Ripper] is a free open source password cracker that uses a dictionary of over 4 million commonly used passwords in many languages. Because this tool is widely available, it is useful for scanning and securing your own LAN and computers for password strength. Install:&lt;br /&gt;
 sudo apt-get install john&lt;br /&gt;
&lt;br /&gt;
* [http://www.openwall.com/passwdqc/ Passwdqc] is a module to enforce password strength. Install:&lt;br /&gt;
 sudo apt-get install passwdqc&lt;br /&gt;
&lt;br /&gt;
=== MD5Sum ===&lt;br /&gt;
To check the MD5 sum of a file, use this command in the command line:&lt;br /&gt;
 md5sum ''filename''&lt;br /&gt;
&lt;br /&gt;
== File archival and encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
&lt;br /&gt;
=== Archives with Passwords ===&lt;br /&gt;
* See [[Kubuntu_Quantal_Utilities#Archiving_Utilities|this section]].&lt;br /&gt;
&lt;br /&gt;
== Disk and Storage Encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
* See the [http://help.ubuntu.com/community/FullDiskEncryptionHowto Ubuntu Community documentation] for methods of full disk encryption.&lt;br /&gt;
* See the [http://help.ubuntu.com/community/EncryptedFilesystems Ubuntu Community documentation] for methods of filesystem encryption.&lt;/div&gt;</description>
			<pubDate>Mon, 29 Apr 2013 17:33:19 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:K_Quantal/Privacy</comments>		</item>
		<item>
			<title>Template:K Raring/Privacy</title>
			<link>http://easylinux.info/wiki/Template:K_Raring/Privacy</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Web browsing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Privacy =&lt;br /&gt;
An interesting perspective on Internet privacy techniques can be found [http://farid.hajji.name/blog/2009/06/20/circumventing-internet-censorship/ here].&lt;br /&gt;
&lt;br /&gt;
== PGP (Message Encryption) ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/GNU_Privacy_Guard GnuPG] is the free open source implementation of the OpenPGP standard for [http://en.wikipedia.org/wiki/Pretty_Good_Privacy PGP]. It is a tool to encrypt your messages (such as email) to be unlocked only by someone who has a key to unlock it. While gpg is the default OpenPGP tool for command-line usage, gpg2 is the utility generally used by GUI frontends.&lt;br /&gt;
&lt;br /&gt;
=== Enigmail with Thunderbird ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] By far the easiest method for encrypting email is using the [[Kubuntu_Raring_Internet#Enigmail|Enigmail]] add-on for the [[Kubuntu_Raring_Internet#Thunderbird|Thunderbird]] email client. It creates PGP key pairs, stores and retrieves keys from keyrings, and encrypts and decrypts messages automatically.&lt;br /&gt;
&lt;br /&gt;
=== Kleopatra (Cryptography and Certificate Manager) ===&lt;br /&gt;
[http://www.kde.org/applications/utilities/kleopatra/ Kleopatra] is a certificate manager and a universal crypto GUI for KDE. It supports managing X.509 and OpenPGP certificates in the GpgSM keybox and retrieving certificates from LDAP servers. Install:&lt;br /&gt;
 sudo apt-get install kleopatra&lt;br /&gt;
&lt;br /&gt;
* Create a new OpenPGP keypair:&lt;br /&gt;
:K menu -&amp;gt; Utilities -&amp;gt; Kleopatra -&amp;gt; File -&amp;gt; New Certificate... -&amp;gt; Create a personal OpenPGP key pair&lt;br /&gt;
&lt;br /&gt;
=== KGPG ===&lt;br /&gt;
[http://utils.kde.org/projects/kgpg/ KGpg] is the GUI for KDE to manage the key pairs and other options of [http://www.gnupg.org/ GnuPG]. It has fewer options than Kleopatra. Install:&lt;br /&gt;
 sudo apt-get install kgpg&lt;br /&gt;
&lt;br /&gt;
=== PGP Troubleshooting ===&lt;br /&gt;
If KGPG or Kleopatra gives an error, it is because of a problem with settings in the gpg.conf configuration file ( ~/.gnupg/gpg.conf). Edit the file (using either ~/ or /home/''user''/ ):&lt;br /&gt;
 kate /home/''user''/.gnupg/gpg.conf&lt;br /&gt;
&lt;br /&gt;
Comment out the two lines at the bottom:&lt;br /&gt;
 #debug-level basic&lt;br /&gt;
 #log-file socket:///home/''user''/.gnupg/log-socket&lt;br /&gt;
&lt;br /&gt;
== Web browsing ==&lt;br /&gt;
Web tracking, scripts, and advertisements are extremely intrusive on the Internet. A dossier of your online habits is created by a multitude of services, including every major portal such as Google and Yahoo, as well as a variety of tracking services on the Internet. This is accomplished through the use of the &amp;quot;cookies&amp;quot; in your browser and by a variety of web elements (sometimes called &amp;quot;web beacons&amp;quot;) embedded on the web pages you visit. Your behavior is monitored and correlated by recording the IP address of your computer, even when you turn off the cookies in your browser. Still, it is highly recommended to configure your web browser to erase your [http://support.mozilla.org/en-US/kb/Cookies cookies] and history every time the web browser is closed; otherwise, every website you subsequently visit can instantly see the long list of recent websites you have visited. In Firefox, for example, cookies can be accepted for the current session but erased upon closing:&lt;br /&gt;
:Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Privacy -&amp;gt; History -&amp;gt; Firefox will: ''Use custom settings for history''&lt;br /&gt;
:-&amp;gt; ''Always use private browsing mode'' (or customise the settings to your desired level of privacy)&lt;br /&gt;
* In addition, both [[Kubuntu_Raring_Internet#Adblock_Plus_plug-in_.28block_ads_in_a_web_page.29|Adblock Plus]] and [[Kubuntu_Raring_Internet#NoScript_plug-in_.28controls_scripts.29|NoScript]] are highly recommended as plug-ins for Firefox (and other Gecko-based browsers) to limit exposure to undesirable web elements, scripts, and tracking mechanisms.&lt;br /&gt;
&lt;br /&gt;
== Tor (Network privacy) ==&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://www.torproject.org/ Tor] is a project to allow privacy while using the Internet and to limit usage tracking. It routes your traffic through several anonymous nodes, so that your usage appears to come from an IP other than your own. (There are always risks when using the Internet that even Tor can not help with, though. Read [http://www.torproject.org/download.html.en#Warning this].) Using Tor can slow down your Internet usage significantly, depending on how much traffic is being passed through the Tor network (routine file-sharing or large downloads will also significantly reduce performance of the Tor network.)&lt;br /&gt;
&amp;lt;!---&amp;gt;&lt;br /&gt;
* Install the Privoxy http proxy (optional for most users):&lt;br /&gt;
 sudo apt-get install privoxy&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install Tor by following the instructions [https://www.torproject.org/docs/debian here]. Note that the instructions require port 11371 on your firewall to be open to use the gpg keyserver (and download the key for the debian package). Then see the [http://www.torproject.org/docs/tor-doc-unix.html Tor installation guide] for details.&lt;br /&gt;
&lt;br /&gt;
* By default Tor (once it is running) acts as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy] on port 9050. To send traffic from any application through Tor, configure the settings of that application to use a socks5 proxy on port 9050.&lt;br /&gt;
&lt;br /&gt;
* Also see these additional [[Tor|tips]].&lt;br /&gt;
&lt;br /&gt;
=== Vidalia (Tor interface) ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [https://www.torproject.org/projects/vidalia.html Vidalia] is the recommended Qt4-based GUI frontend for Tor. If not installed with Tor, install:&lt;br /&gt;
 sudo apt-get install vidalia&lt;br /&gt;
&lt;br /&gt;
=== Tork (KDE Tor interface) ===&lt;br /&gt;
[http://sourceforge.net/projects/tork/ TorK] is a KDE interface for Tor that relied on the older Qt3 platform. It is no longer included in the (K)Ubuntu repositories. However, if desired it can be installed (along with the older Qt3 libraries). See [[Tor#Tork_.28KDE_Tor_interface.29|this section]].&lt;br /&gt;
&lt;br /&gt;
=== Using Tor with Firefox ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Recent versions of Firefox allow direct use of Tor as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy], both for traffic and DNS resolution. See [[Tor#Using_Tor_with_Firefox|this section]] for information on configuring this.&lt;br /&gt;
&lt;br /&gt;
==== Torbutton (Firefox plug-in) ====&lt;br /&gt;
* Once Tor is installed and running properly, [https://www.torproject.org/torbutton/ Torbutton] allows you to choose whether to use Firefox through the Tor anonymizing network or not. Torbutton only works with older (non-updated) versions of Firefox or with modified versions of Firefox found in the [[Tor#Tor_Browser_Bundle|Tor Browser Bundle]]. Newer versions of Firefox may refuse to start if Torbutton is installed. See [[Tor#Torbutton_(Firefox_plug-in)|this section]] for more details.&lt;br /&gt;
&lt;br /&gt;
== DNS Servers and Search engines ==&lt;br /&gt;
* Most users rely on the [http://en.wikipedia.org/wiki/Domain_Name_System DNS] server of their ISP (Internet Service Provider). DNS queries can be recorded, however, and theoretically correlated by an ISP to the data traffic to/from a user's IP address serviced by that ISP. A somewhat less trackable solution is to use a DNS service that does not belong to your ISP. This can belong to another commercial ISP or to a third party service such as [http://www.opendns.com/ OpenDNS], [http://www.comodo.com/secure-dns/ Comodo], [http://www.scrubit.com/ ScrubIT], [http://code.google.com/speed/public-dns/ Google] (though slightly less secure due to Google's own tracking mechanisms), another [http://theos.in/windows-xp/free-fast-public-dns-server-list/ free DNS service], or (for maximum security) a publicly-available [http://portforward.com/networking/dns.htm international DNS server]. For example, a Verizon customer could use the [http://www.whatsmydns.net/dns/usa/att.html AT&amp;amp;T DNS servers] or the OpenDNS servers. An AT&amp;amp;T customer could use one of the [http://www.dslreports.com/faq/1591 Verizon servers] or the Google servers. It is important to use a reliable DNS provider, however, as [http://en.wikipedia.org/wiki/Man-in-the-middle_attack man-in-the-middle DNS redirection] and [http://en.wikipedia.org/wiki/DNS_cache_poisoning DNS cache poisoning] attacks are increasingly common. Stick to one of the major DNS services (just not your own ISP's DNS service). It is important to note that starting Feburary 25, 2013, 5 major ISPs (Internet Service Providers) in the US (Comcast, Verizon, AT&amp;amp;T, Time Warner Cable, and Cablevision) have agreed to IP address recording and reporting (to the [https://en.wikipedia.org/wiki/Center_for_Copyright_Information CCI]) on behalf of the [https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America MPAA] and [https://en.wikipedia.org/wiki/Recording_Industry_Association_of_America RIAA]. If using one of these ISPs, take extra efforts to ensure your privacy.&lt;br /&gt;
&lt;br /&gt;
The DNS server setting can be changed in the router's settings (recommended) or individually for each computer. If changing on an individual computer, use the Network Manager or Wicd settings, or if using a static IP address with manually configured settings, add a line to /etc/network/interfaces with a list of the desired dns-nameservers at the end of the iface stanza so that the file resembles:&lt;br /&gt;
&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 address 192.168.0.35&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 network 192.168.0.0&lt;br /&gt;
 broadcast 192.168.0.255&lt;br /&gt;
 gateway 192.168.0.1&lt;br /&gt;
 dns-nameservers 8.26.56.26 208.67.222.222 8.20.247.20 208.67.220.220 8.8.8.8 8.8.4.4&lt;br /&gt;
&lt;br /&gt;
* Many search engines track your search requests (notably Google, Bing, and Yahoo) and keep logs of the searches they receive from your IP address. [https://duckduckgo.com DuckDuckGo.com] is a filtered search engine that has made its reputation not only by promising not to track searches, but also by providing a secure (encrypted), Tor-capable and anonymized search portal. Point your browser to https://duckduckgo.com. (It can be used with your Torbutton turned on.)&lt;br /&gt;
&lt;br /&gt;
* Many censorship/filtering/tracking techniques (that use [https://secure.wikimedia.org/wikipedia/en/wiki/Deep_packet_inspection deep packet inspection]) cannot be used with secure ([https://secure.wikimedia.org/wikipedia/en/wiki/Transport_Layer_Security SSL/TLS] encrypted) websites (denoted by ''[https://secure.wikimedia.org/wikipedia/en/wiki/HTTP_Secure &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;]'' ). Use them whenever possible. For example, use the [https://secure.wikimedia.org/ secure Wikimedia portal] for Wikipedia (and other Wikimedia services) instead of the insecure portal(s).&lt;br /&gt;
&lt;br /&gt;
* Many websites keep logs of referring http headers (which can be correlated with cookies to track your browsing activities). To turn off the passage of referral headers in Firefox, see [http://cafe.elharo.com/privacy/privacy-tip-3-block-referer-headers-in-firefox/ this info].&lt;br /&gt;
&lt;br /&gt;
== Changing a MAC address ==&lt;br /&gt;
The MAC address of your network interface card is the &amp;quot;fingerprint&amp;quot; of your network connection. It is not possible to hide the MAC address and most tracking methods now use the MAC address to record user habits. To combat this, it is possible to change (&amp;quot;spoof&amp;quot;) your apparent MAC address using software. It is important to remember, however, that it is generally the MAC address of the router (not computers on a LAN) which is displayed to the Internet. If you change the MAC of your computer but not the MAC of your router, you will gain nothing. Be sure to change both frequently (but most importantly that of the router).&lt;br /&gt;
&lt;br /&gt;
* It is possible to set the MAC address to a random selection in the Network Manager configuration:&lt;br /&gt;
:Network Manager -&amp;gt;  Manage Connections... -&amp;gt; ''connection'' -&amp;gt; Edit... -&amp;gt; Ethernet -&amp;gt; Cloned MAC Address -&amp;gt; Random -&amp;gt; Ok&lt;br /&gt;
&lt;br /&gt;
* [http://www.alobbs.com/macchanger Macchanger] is a utility to change a MAC address. Install:&lt;br /&gt;
 suod apt-get install macchanger&lt;br /&gt;
&lt;br /&gt;
== Certificate verification ==&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Certificate_authority Certificate authorities] charge a fee to store and verify [http://en.wikipedia.org/wiki/Public_key_certificate certificates]. However, many websites use [http://en.wikipedia.org/wiki/Self-signed_certificate self-signed certificates] that are not registered with any certifying authority. A free system of certificate &amp;quot;network notaries&amp;quot; has emerged called [http://perspectives-project.org/ Perspectives]. A certificate's validity (even if self-signed) can be checked using a [https://addons.mozilla.org/en-US/firefox/addon/perspectives/ Firefox plugin]. For more info see [http://www.dedoimedo.com/computers/firefox-perspectives.html this article].&lt;br /&gt;
&lt;br /&gt;
* [https://secure.wikimedia.org/wikipedia/en/wiki/CAcert.org CAcert.org] is a free certifying authority that maintains weak certificates that are recognized by many open source operating systems, but not by Firefox or most browsers. (For browsers that do not include CAcert.org recognition, certificates appear to be self-signed certificates.) While Debian incorporates CACert.org's root certificate by default, Ubuntu derivatives do not ([https://secure.wikimedia.org/wikipedia/en/wiki/Canonical_Ltd. Canonical] was originally founded with funds earned from [https://secure.wikimedia.org/wikipedia/en/wiki/Thawte Thawte], a certifying authority founded by [https://secure.wikimedia.org/wikipedia/en/wiki/Mark_Shuttleworth Mark Shuttleworth].)&lt;br /&gt;
&lt;br /&gt;
== Passwords and file authentication ==&lt;br /&gt;
* See this excellent article at H-Online about [http://www.h-online.com/security/features/Password-protection-for-everyone-1795647.html password protection for everyone].&lt;br /&gt;
&lt;br /&gt;
=== Random password generator ===&lt;br /&gt;
* Pwgen is a command line utility to generate a block of random 8-digit alphanumeric passwords. Run it from Konsole (in Kubuntu) or Terminal (in Ubuntu). Install:&lt;br /&gt;
 sudo apt-get install pwgen&lt;br /&gt;
:* Run pwgen:&lt;br /&gt;
 pwgen&lt;br /&gt;
&lt;br /&gt;
* UUIDgen is a default utility to generate a random UUID (using only [http://en.wikipedia.org/wiki/Hexadecimal hex-digits]). Run:&lt;br /&gt;
 uuidgen&lt;br /&gt;
&lt;br /&gt;
The random UUID can also be used as a 32-digit password, if desired.&lt;br /&gt;
&lt;br /&gt;
=== Password checker and enforcement ===&lt;br /&gt;
[http://www.openwall.com/john/ John the Ripper] is a free open source password cracker that uses a dictionary of over 4 million commonly used passwords in many languages. Because this tool is widely available, it is useful for scanning and securing your own LAN and computers for password strength. Install:&lt;br /&gt;
 sudo apt-get install john&lt;br /&gt;
&lt;br /&gt;
* [http://www.openwall.com/passwdqc/ Passwdqc] is a module to enforce password strength. Install:&lt;br /&gt;
 sudo apt-get install passwdqc&lt;br /&gt;
&lt;br /&gt;
=== MD5Sum ===&lt;br /&gt;
To check the MD5 sum of a file, use this command in the command line:&lt;br /&gt;
 md5sum ''filename''&lt;br /&gt;
&lt;br /&gt;
== File archival and encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
&lt;br /&gt;
=== Archives with Passwords ===&lt;br /&gt;
* See [[Kubuntu_Raring_Utilities#Archiving_Utilities|this section]].&lt;br /&gt;
&lt;br /&gt;
== Disk and Storage Encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
* See the [http://help.ubuntu.com/community/FullDiskEncryptionHowto Ubuntu Community documentation] for methods of full disk encryption.&lt;br /&gt;
* See the [http://help.ubuntu.com/community/EncryptedFilesystems Ubuntu Community documentation] for methods of filesystem encryption.&lt;/div&gt;</description>
			<pubDate>Mon, 29 Apr 2013 17:32:00 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:K_Raring/Privacy</comments>		</item>
		<item>
			<title>Template:K Precise/Privacy</title>
			<link>http://easylinux.info/wiki/Template:K_Precise/Privacy</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Enigmail with Thunderbird */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Privacy =&lt;br /&gt;
An interesting perspective on Internet privacy techniques can be found [http://farid.hajji.name/blog/2009/06/20/circumventing-internet-censorship/ here].&lt;br /&gt;
&lt;br /&gt;
== PGP (Message Encryption) ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/GNU_Privacy_Guard GnuPG] is the free open source implementation of the OpenPGP standard for [http://en.wikipedia.org/wiki/Pretty_Good_Privacy PGP]. It is a tool to encrypt your messages (such as email) to be unlocked only by someone who has a key to unlock it. While gpg is the default OpenPGP tool for command-line usage, gpg2 is the utility generally used by GUI frontends.&lt;br /&gt;
&lt;br /&gt;
=== Enigmail with Thunderbird ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] By far the easiest method for encrypting email is using the [[Kubuntu_Precise_Internet#Enigmail|Enigmail]] add-on for the [[Kubuntu_Precise_Internet#Thunderbird|Thunderbird]] email client. It creates PGP key pairs, stores and retrieves keys from keyrings, and encrypts and decrypts messages automatically.&lt;br /&gt;
&lt;br /&gt;
=== Kleopatra (Cryptography and Certificate Manager) ===&lt;br /&gt;
[http://www.kde.org/applications/utilities/kleopatra/ Kleopatra] is a certificate manager and a universal crypto GUI for KDE. It supports managing X.509 and OpenPGP certificates in the GpgSM keybox and retrieving certificates from LDAP servers. Install:&lt;br /&gt;
 sudo apt-get install kleopatra&lt;br /&gt;
&lt;br /&gt;
* Create a new OpenPGP keypair:&lt;br /&gt;
:K menu -&amp;gt; Utilities -&amp;gt; Kleopatra -&amp;gt; File -&amp;gt; New Certificate... -&amp;gt; Create a personal OpenPGP key pair&lt;br /&gt;
&lt;br /&gt;
=== KGPG ===&lt;br /&gt;
[http://utils.kde.org/projects/kgpg/ KGpg] is the GUI for KDE to manage the key pairs and other options of [http://www.gnupg.org/ GnuPG]. It has fewer options than Kleopatra. Install:&lt;br /&gt;
 sudo apt-get install kgpg&lt;br /&gt;
&lt;br /&gt;
=== PGP Troubleshooting ===&lt;br /&gt;
If KGPG or Kleopatra gives an error, it is because of a problem with settings in the gpg.conf configuration file ( ~/.gnupg/gpg.conf). Edit the file (using either ~/ or /home/''user''/ ):&lt;br /&gt;
 kate /home/''user''/.gnupg/gpg.conf&lt;br /&gt;
&lt;br /&gt;
Comment out the two lines at the bottom:&lt;br /&gt;
 #debug-level basic&lt;br /&gt;
 #log-file socket:///home/''user''/.gnupg/log-socket&lt;br /&gt;
&lt;br /&gt;
== Web browsing ==&lt;br /&gt;
Web tracking, scripts, and advertisements are extremely intrusive on the Internet. A dossier of your online habits is created by a multitude of services, including every major portal such as Google and Yahoo, as well as a variety of tracking services on the Internet. This is accomplished through the use of the &amp;quot;cookies&amp;quot; in your browser and by a variety of web elements (sometimes called &amp;quot;web beacons&amp;quot;) embedded on the web pages you visit. Your behavior is monitored and correlated by recording the IP address of your computer, even when you turn off the cookies in your browser. Still, it is highly recommended to configure your web browser to erase your [http://support.mozilla.org/en-US/kb/Cookies cookies] and history every time the web browser is closed; otherwise, every website you subsequently visit can instantly see the long list of recent websites you have visited. In Firefox, for example, cookies can be accepted for the current session but erased upon closing:&lt;br /&gt;
:Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Privacy -&amp;gt; History -&amp;gt; Firefox will: ''Use custom settings for history''&lt;br /&gt;
:-&amp;gt; ''Always use private browsing mode'' (or customise the settings to your desired level of privacy)&lt;br /&gt;
* In addition, both [[Kubuntu:Precise#Adblock_Plus_plug-in_.28block_ads_in_a_web_page.29|Adblock Plus]] and [[Kubuntu:Precise#NoScript_plug-in_.28controls_scripts.29|NoScript]] are highly recommended as plug-ins for Firefox (and other Gecko-based browsers) to limit exposure to undesirable web elements, scripts, and tracking mechanisms.&lt;br /&gt;
&lt;br /&gt;
== Tor (Network privacy) ==&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://www.torproject.org/ Tor] is a project to allow privacy while using the Internet and to limit usage tracking. It routes your traffic through several anonymous nodes, so that your usage appears to come from an IP other than your own. (There are always risks when using the Internet that even Tor can not help with, though. Read [http://www.torproject.org/download.html.en#Warning this].) Using Tor can slow down your Internet usage significantly, depending on how much traffic is being passed through the Tor network (routine file-sharing or large downloads will also significantly reduce performance of the Tor network.)&lt;br /&gt;
&amp;lt;!---&amp;gt;&lt;br /&gt;
* Install the Privoxy http proxy (optional for most users):&lt;br /&gt;
 sudo apt-get install privoxy&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install Tor by following the instructions [https://www.torproject.org/docs/debian here]. Note that the instructions require port 11371 on your firewall to be open to use the gpg keyserver (and download the key for the debian package). Then see the [http://www.torproject.org/docs/tor-doc-unix.html Tor installation guide] for details.&lt;br /&gt;
&lt;br /&gt;
* By default Tor (once it is running) acts as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy] on port 9050. To send traffic from any application through Tor, configure the settings of that application to use a socks5 proxy on port 9050.&lt;br /&gt;
&lt;br /&gt;
* Also see these additional [[Tor|tips]].&lt;br /&gt;
&lt;br /&gt;
=== Vidalia (Tor interface) ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [https://www.torproject.org/projects/vidalia.html Vidalia] is the recommended Qt4-based GUI frontend for Tor. If not installed with Tor, install:&lt;br /&gt;
 sudo apt-get install vidalia&lt;br /&gt;
&lt;br /&gt;
=== Tork (KDE Tor interface) ===&lt;br /&gt;
[http://sourceforge.net/projects/tork/ TorK] is a KDE interface for Tor that relied on the older Qt3 platform. It is no longer included in the (K)Ubuntu repositories. However, if desired it can be installed (along with the older Qt3 libraries). See [[Tor#Tork_.28KDE_Tor_interface.29|this section]].&lt;br /&gt;
&lt;br /&gt;
=== Using Tor with Firefox ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Recent versions of Firefox allow direct use of Tor as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy], both for traffic and DNS resolution. See [[Tor#Using_Tor_with_Firefox|this section]] for information on configuring this.&lt;br /&gt;
&lt;br /&gt;
==== Torbutton (Firefox plug-in) ====&lt;br /&gt;
* Once Tor is installed and running properly, [https://www.torproject.org/torbutton/ Torbutton] allows you to choose whether to use Firefox through the Tor anonymizing network or not. Torbutton only works with older (non-updated) versions of Firefox or with modified versions of Firefox found in the [[Tor#Tor_Browser_Bundle|Tor Browser Bundle]]. Newer versions of Firefox may refuse to start if Torbutton is installed. See [[Tor#Torbutton_(Firefox_plug-in)|this section]] for more details.&lt;br /&gt;
&lt;br /&gt;
== DNS Servers and Search engines ==&lt;br /&gt;
* Most users rely on the [http://en.wikipedia.org/wiki/Domain_Name_System DNS] server of their ISP (Internet Service Provider). DNS queries can be recorded, however, and theoretically correlated by an ISP to the data traffic to/from a user's IP address serviced by that ISP. A somewhat less trackable solution is to use a DNS service that does not belong to your ISP. This can belong to another commercial ISP or to a third party service such as [http://www.opendns.com/ OpenDNS], [http://www.comodo.com/secure-dns/ Comodo], [http://www.scrubit.com/ ScrubIT], [http://code.google.com/speed/public-dns/ Google] (though slightly less secure due to Google's own tracking mechanisms), another [http://theos.in/windows-xp/free-fast-public-dns-server-list/ free DNS service], or (for maximum security) a publicly-available [http://portforward.com/networking/dns.htm international DNS server]. For example, a Verizon customer could use the [http://www.whatsmydns.net/dns/usa/att.html AT&amp;amp;T DNS servers] or the OpenDNS servers. An AT&amp;amp;T customer could use one of the [http://www.dslreports.com/faq/1591 Verizon servers] or the Google servers. It is important to use a reliable DNS provider, however, as [http://en.wikipedia.org/wiki/Man-in-the-middle_attack man-in-the-middle DNS redirection] and [http://en.wikipedia.org/wiki/DNS_cache_poisoning DNS cache poisoning] attacks are increasingly common. Stick to one of the major DNS services (just not your own ISP's DNS service). It is important to note that starting Feburary 25, 2013, 5 major ISPs (Internet Service Providers) in the US (Comcast, Verizon, AT&amp;amp;T, Time Warner Cable, and Cablevision) have agreed to IP address recording and reporting (to the [https://en.wikipedia.org/wiki/Center_for_Copyright_Information CCI]) on behalf of the [https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America MPAA] and [https://en.wikipedia.org/wiki/Recording_Industry_Association_of_America RIAA]. If using one of these ISPs, take extra efforts to ensure your privacy.&lt;br /&gt;
&lt;br /&gt;
The DNS server setting can be changed in the router's settings (recommended) or individually for each computer. If changing on an individual computer, use the Network Manager or Wicd settings, or if using a static IP address with manually configured settings, add a line to /etc/network/interfaces with a list of the desired dns-nameservers at the end of the iface stanza so that the file resembles:&lt;br /&gt;
&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 address 192.168.0.35&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 network 192.168.0.0&lt;br /&gt;
 broadcast 192.168.0.255&lt;br /&gt;
 gateway 192.168.0.1&lt;br /&gt;
 dns-nameservers 8.26.56.26 208.67.222.222 8.20.247.20 208.67.220.220 8.8.8.8 8.8.4.4&lt;br /&gt;
&lt;br /&gt;
* Many search engines track your search requests (notably Google, Bing, and Yahoo) and keep logs of the searches they receive from your IP address. [https://duckduckgo.com DuckDuckGo.com] is a filtered search engine that has made its reputation not only by promising not to track searches, but also by providing a secure (encrypted), Tor-capable and anonymized search portal. Point your browser to https://duckduckgo.com. (It can be used with your Torbutton turned on.)&lt;br /&gt;
&lt;br /&gt;
* Many censorship/filtering/tracking techniques (that use [https://secure.wikimedia.org/wikipedia/en/wiki/Deep_packet_inspection deep packet inspection]) cannot be used with secure ([https://secure.wikimedia.org/wikipedia/en/wiki/Transport_Layer_Security SSL/TLS] encrypted) websites (denoted by ''[https://secure.wikimedia.org/wikipedia/en/wiki/HTTP_Secure &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;]'' ). Use them whenever possible. For example, use the [https://secure.wikimedia.org/ secure Wikimedia portal] for Wikipedia (and other Wikimedia services) instead of the insecure portal(s).&lt;br /&gt;
&lt;br /&gt;
* Many websites keep logs of referring http headers (which can be correlated with cookies to track your browsing activities). To turn off the passage of referral headers in Firefox, see [http://cafe.elharo.com/privacy/privacy-tip-3-block-referer-headers-in-firefox/ this info].&lt;br /&gt;
&lt;br /&gt;
== Changing a MAC address ==&lt;br /&gt;
The MAC address of your network interface card is the &amp;quot;fingerprint&amp;quot; of your network connection. It is not possible to hide the MAC address and most tracking methods now use the MAC address to record user habits. To combat this, it is possible to change (&amp;quot;spoof&amp;quot;) your apparent MAC address using software. It is important to remember, however, that it is generally the MAC address of the router (not computers on a LAN) which is displayed to the Internet. If you change the MAC of your computer but not the MAC of your router, you will gain nothing. Be sure to change both frequently (but most importantly that of the router).&lt;br /&gt;
&lt;br /&gt;
* It is possible to set the MAC address to a random selection in the Network Manager configuration:&lt;br /&gt;
:Network Manager -&amp;gt;  Manage Connections... -&amp;gt; ''connection'' -&amp;gt; Edit... -&amp;gt; Ethernet -&amp;gt; Cloned MAC Address -&amp;gt; Random -&amp;gt; Ok&lt;br /&gt;
&lt;br /&gt;
* [http://www.alobbs.com/macchanger Macchanger] is a utility to change a MAC address. Install:&lt;br /&gt;
 suod apt-get install macchanger&lt;br /&gt;
&lt;br /&gt;
== Certificate verification ==&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Certificate_authority Certificate authorities] charge a fee to store and verify [http://en.wikipedia.org/wiki/Public_key_certificate certificates]. However, many websites use [http://en.wikipedia.org/wiki/Self-signed_certificate self-signed certificates] that are not registered with any certifying authority. A free system of certificate &amp;quot;network notaries&amp;quot; has emerged called [http://perspectives-project.org/ Perspectives]. A certificate's validity (even if self-signed) can be checked using a [https://addons.mozilla.org/en-US/firefox/addon/perspectives/ Firefox plugin]. For more info see [http://www.dedoimedo.com/computers/firefox-perspectives.html this article].&lt;br /&gt;
&lt;br /&gt;
* [https://secure.wikimedia.org/wikipedia/en/wiki/CAcert.org CAcert.org] is a free certifying authority that maintains weak certificates that are recognized by many open source operating systems, but not by Firefox or most browsers. (For browsers that do not include CAcert.org recognition, certificates appear to be self-signed certificates.) While Debian incorporates CACert.org's root certificate by default, Ubuntu derivatives do not ([https://secure.wikimedia.org/wikipedia/en/wiki/Canonical_Ltd. Canonical] was originally founded with funds earned from [https://secure.wikimedia.org/wikipedia/en/wiki/Thawte Thawte], a certifying authority founded by [https://secure.wikimedia.org/wikipedia/en/wiki/Mark_Shuttleworth Mark Shuttleworth].)&lt;br /&gt;
&lt;br /&gt;
== Passwords and file authentication ==&lt;br /&gt;
* See this excellent article at H-Online about [http://www.h-online.com/security/features/Password-protection-for-everyone-1795647.html password protection for everyone].&lt;br /&gt;
&lt;br /&gt;
=== Random password generator ===&lt;br /&gt;
* Pwgen is a command line utility to generate a block of random 8-digit alphanumeric passwords. Run it from Konsole (in Kubuntu) or Terminal (in Ubuntu). Install:&lt;br /&gt;
 sudo apt-get install pwgen&lt;br /&gt;
:* Run pwgen:&lt;br /&gt;
 pwgen&lt;br /&gt;
&lt;br /&gt;
* UUIDgen is a default utility to generate a random UUID (using only [http://en.wikipedia.org/wiki/Hexadecimal hex-digits]). Run:&lt;br /&gt;
 uuidgen&lt;br /&gt;
&lt;br /&gt;
The random UUID can also be used as a 32-digit password, if desired.&lt;br /&gt;
&lt;br /&gt;
=== Password checker and enforcement ===&lt;br /&gt;
[http://www.openwall.com/john/ John the Ripper] is a free open source password cracker that uses a dictionary of over 4 million commonly used passwords in many languages. Because this tool is widely available, it is useful for scanning and securing your own LAN and computers for password strength. Install:&lt;br /&gt;
 sudo apt-get install john&lt;br /&gt;
&lt;br /&gt;
* [http://www.openwall.com/passwdqc/ Passwdqc] is a module to enforce password strength. Install:&lt;br /&gt;
 sudo apt-get install passwdqc&lt;br /&gt;
&lt;br /&gt;
=== MD5Sum ===&lt;br /&gt;
To check the MD5 sum of a file, use this command in the command line:&lt;br /&gt;
 md5sum ''filename''&lt;br /&gt;
&lt;br /&gt;
== File archival and encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
&lt;br /&gt;
=== Archives with Passwords ===&lt;br /&gt;
* See [[Kubuntu_Precise_Utilities#Archiving_Utilities|this section]].&lt;br /&gt;
&lt;br /&gt;
== Disk and Storage Encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
* See the [http://help.ubuntu.com/community/FullDiskEncryptionHowto Ubuntu Community documentation] for methods of full disk encryption.&lt;br /&gt;
* See the [http://help.ubuntu.com/community/EncryptedFilesystems Ubuntu Community documentation] for methods of filesystem encryption.&lt;/div&gt;</description>
			<pubDate>Mon, 29 Apr 2013 17:23:00 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:K_Precise/Privacy</comments>		</item>
		<item>
			<title>Template:K Quantal/Privacy</title>
			<link>http://easylinux.info/wiki/Template:K_Quantal/Privacy</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Enigmail with Thunderbird */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Privacy =&lt;br /&gt;
An interesting perspective on Internet privacy techniques can be found [http://farid.hajji.name/blog/2009/06/20/circumventing-internet-censorship/ here].&lt;br /&gt;
&lt;br /&gt;
== PGP (Message Encryption) ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/GNU_Privacy_Guard GnuPG] is the free open source implementation of the OpenPGP standard for [http://en.wikipedia.org/wiki/Pretty_Good_Privacy PGP]. It is a tool to encrypt your messages (such as email) to be unlocked only by someone who has a key to unlock it. While gpg is the default OpenPGP tool for command-line usage, gpg2 is the utility generally used by GUI frontends.&lt;br /&gt;
&lt;br /&gt;
=== Enigmail with Thunderbird ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] By far the easiest method for encrypting email is using the [[Kubuntu_Quantal_Internet#Enigmail|Enigmail]] add-on for the [[Kubuntu_Quantal_Internet#Thunderbird|Thunderbird]] email client. It creates PGP key pairs, stores and retrieves keys from keyrings, and encrypts and decrypts messages automatically.&lt;br /&gt;
&lt;br /&gt;
=== Kleopatra (Cryptography and Certificate Manager) ===&lt;br /&gt;
[http://www.kde.org/applications/utilities/kleopatra/ Kleopatra] is a certificate manager and a universal crypto GUI for KDE. It supports managing X.509 and OpenPGP certificates in the GpgSM keybox and retrieving certificates from LDAP servers. Install:&lt;br /&gt;
 sudo apt-get install kleopatra&lt;br /&gt;
&lt;br /&gt;
* Create a new OpenPGP keypair:&lt;br /&gt;
:K menu -&amp;gt; Utilities -&amp;gt; Kleopatra -&amp;gt; File -&amp;gt; New Certificate... -&amp;gt; Create a personal OpenPGP key pair&lt;br /&gt;
&lt;br /&gt;
=== KGPG ===&lt;br /&gt;
[http://utils.kde.org/projects/kgpg/ KGpg] is the GUI for KDE to manage the key pairs and other options of [http://www.gnupg.org/ GnuPG]. It has fewer options than Kleopatra. Install:&lt;br /&gt;
 sudo apt-get install kgpg&lt;br /&gt;
&lt;br /&gt;
=== PGP Troubleshooting ===&lt;br /&gt;
If KGPG or Kleopatra gives an error, it is because of a problem with settings in the gpg.conf configuration file ( ~/.gnupg/gpg.conf). Edit the file (using either ~/ or /home/''user''/ ):&lt;br /&gt;
 kate /home/''user''/.gnupg/gpg.conf&lt;br /&gt;
&lt;br /&gt;
Comment out the two lines at the bottom:&lt;br /&gt;
 #debug-level basic&lt;br /&gt;
 #log-file socket:///home/''user''/.gnupg/log-socket&lt;br /&gt;
&lt;br /&gt;
== Web browsing ==&lt;br /&gt;
Web tracking, scripts, and advertisements are extremely intrusive on the Internet. A dossier of your online habits is created by a multitude of services, including every major portal such as Google and Yahoo, as well as a variety of tracking services on the Internet. This is accomplished through the use of the &amp;quot;cookies&amp;quot; in your browser and by a variety of web elements (sometimes called &amp;quot;web beacons&amp;quot;) embedded on the web pages you visit. Your behavior is monitored and correlated by recording the IP address of your computer, even when you turn off the cookies in your browser. Still, it is highly recommended to configure your web browser to erase your [http://support.mozilla.org/en-US/kb/Cookies cookies] and history every time the web browser is closed; otherwise, every website you subsequently visit can instantly see the long list of recent websites you have visited. In Firefox, for example, cookies can be accepted for the current session but erased upon closing:&lt;br /&gt;
:Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Privacy -&amp;gt; History -&amp;gt; Firefox will: ''Use custom settings for history''&lt;br /&gt;
:-&amp;gt; ''Always use private browsing mode'' (or customise the settings to your desired level of privacy)&lt;br /&gt;
* In addition, both [[Kubuntu:Quantal#Adblock_Plus_plug-in_.28block_ads_in_a_web_page.29|Adblock Plus]] and [[Kubuntu:Quantal#NoScript_plug-in_.28controls_scripts.29|NoScript]] are highly recommended as plug-ins for Firefox (and other Gecko-based browsers) to limit exposure to undesirable web elements, scripts, and tracking mechanisms.&lt;br /&gt;
&lt;br /&gt;
== Tor (Network privacy) ==&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://www.torproject.org/ Tor] is a project to allow privacy while using the Internet and to limit usage tracking. It routes your traffic through several anonymous nodes, so that your usage appears to come from an IP other than your own. (There are always risks when using the Internet that even Tor can not help with, though. Read [http://www.torproject.org/download.html.en#Warning this].) Using Tor can slow down your Internet usage significantly, depending on how much traffic is being passed through the Tor network (routine file-sharing or large downloads will also significantly reduce performance of the Tor network.)&lt;br /&gt;
&amp;lt;!---&amp;gt;&lt;br /&gt;
* Install the Privoxy http proxy (optional for most users):&lt;br /&gt;
 sudo apt-get install privoxy&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install Tor by following the instructions [https://www.torproject.org/docs/debian here]. Note that the instructions require port 11371 on your firewall to be open to use the gpg keyserver (and download the key for the debian package). Then see the [http://www.torproject.org/docs/tor-doc-unix.html Tor installation guide] for details.&lt;br /&gt;
&lt;br /&gt;
* By default Tor (once it is running) acts as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy] on port 9050. To send traffic from any application through Tor, configure the settings of that application to use a socks5 proxy on port 9050.&lt;br /&gt;
&lt;br /&gt;
* Also see these additional [[Tor|tips]].&lt;br /&gt;
&lt;br /&gt;
=== Vidalia (Tor interface) ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [https://www.torproject.org/projects/vidalia.html Vidalia] is the recommended Qt4-based GUI frontend for Tor. If not installed with Tor, install:&lt;br /&gt;
 sudo apt-get install vidalia&lt;br /&gt;
&lt;br /&gt;
=== Tork (KDE Tor interface) ===&lt;br /&gt;
[http://sourceforge.net/projects/tork/ TorK] is a KDE interface for Tor that relied on the older Qt3 platform. It is no longer included in the (K)Ubuntu repositories. However, if desired it can be installed (along with the older Qt3 libraries). See [[Tor#Tork_.28KDE_Tor_interface.29|this section]].&lt;br /&gt;
&lt;br /&gt;
=== Using Tor with Firefox ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Recent versions of Firefox allow direct use of Tor as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy], both for traffic and DNS resolution. See [[Tor#Using_Tor_with_Firefox|this section]] for information on configuring this.&lt;br /&gt;
&lt;br /&gt;
==== Torbutton (Firefox plug-in) ====&lt;br /&gt;
* Once Tor is installed and running properly, [https://www.torproject.org/torbutton/ Torbutton] allows you to choose whether to use Firefox through the Tor anonymizing network or not. Torbutton only works with older (non-updated) versions of Firefox or with modified versions of Firefox found in the [[Tor#Tor_Browser_Bundle|Tor Browser Bundle]]. Newer versions of Firefox may refuse to start if Torbutton is installed. See [[Tor#Torbutton_(Firefox_plug-in)|this section]] for more details.&lt;br /&gt;
&lt;br /&gt;
== DNS Servers and Search engines ==&lt;br /&gt;
* Most users rely on the [http://en.wikipedia.org/wiki/Domain_Name_System DNS] server of their ISP (Internet Service Provider). DNS queries can be recorded, however, and theoretically correlated by an ISP to the data traffic to/from a user's IP address serviced by that ISP. A somewhat less trackable solution is to use a DNS service that does not belong to your ISP. This can belong to another commercial ISP or to a third party service such as [http://www.opendns.com/ OpenDNS], [http://www.comodo.com/secure-dns/ Comodo], [http://www.scrubit.com/ ScrubIT], [http://code.google.com/speed/public-dns/ Google] (though slightly less secure due to Google's own tracking mechanisms), another [http://theos.in/windows-xp/free-fast-public-dns-server-list/ free DNS service], or (for maximum security) a publicly-available [http://portforward.com/networking/dns.htm international DNS server]. For example, a Verizon customer could use the [http://www.whatsmydns.net/dns/usa/att.html AT&amp;amp;T DNS servers] or the OpenDNS servers. An AT&amp;amp;T customer could use one of the [http://www.dslreports.com/faq/1591 Verizon servers] or the Google servers. It is important to use a reliable DNS provider, however, as [http://en.wikipedia.org/wiki/Man-in-the-middle_attack man-in-the-middle DNS redirection] and [http://en.wikipedia.org/wiki/DNS_cache_poisoning DNS cache poisoning] attacks are increasingly common. Stick to one of the major DNS services (just not your own ISP's DNS service). It is important to note that starting Feburary 25, 2013, 5 major ISPs (Internet Service Providers) in the US (Comcast, Verizon, AT&amp;amp;T, Time Warner Cable, and Cablevision) have agreed to IP address recording and reporting (to the [https://en.wikipedia.org/wiki/Center_for_Copyright_Information CCI]) on behalf of the [https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America MPAA] and [https://en.wikipedia.org/wiki/Recording_Industry_Association_of_America RIAA]. If using one of these ISPs, take extra efforts to ensure your privacy.&lt;br /&gt;
&lt;br /&gt;
The DNS server setting can be changed in the router's settings (recommended) or individually for each computer. If changing on an individual computer, use the Network Manager or Wicd settings, or if using a static IP address with manually configured settings, add a line to /etc/network/interfaces with a list of the desired dns-nameservers at the end of the iface stanza so that the file resembles:&lt;br /&gt;
&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 address 192.168.0.35&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 network 192.168.0.0&lt;br /&gt;
 broadcast 192.168.0.255&lt;br /&gt;
 gateway 192.168.0.1&lt;br /&gt;
 dns-nameservers 8.26.56.26 208.67.222.222 8.20.247.20 208.67.220.220 8.8.8.8 8.8.4.4&lt;br /&gt;
&lt;br /&gt;
* Many search engines track your search requests (notably Google, Bing, and Yahoo) and keep logs of the searches they receive from your IP address. [https://duckduckgo.com DuckDuckGo.com] is a filtered search engine that has made its reputation not only by promising not to track searches, but also by providing a secure (encrypted), Tor-capable and anonymized search portal. Point your browser to https://duckduckgo.com. (It can be used with your Torbutton turned on.)&lt;br /&gt;
&lt;br /&gt;
* Many censorship/filtering/tracking techniques (that use [https://secure.wikimedia.org/wikipedia/en/wiki/Deep_packet_inspection deep packet inspection]) cannot be used with secure ([https://secure.wikimedia.org/wikipedia/en/wiki/Transport_Layer_Security SSL/TLS] encrypted) websites (denoted by ''[https://secure.wikimedia.org/wikipedia/en/wiki/HTTP_Secure &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;]'' ). Use them whenever possible. For example, use the [https://secure.wikimedia.org/ secure Wikimedia portal] for Wikipedia (and other Wikimedia services) instead of the insecure portal(s).&lt;br /&gt;
&lt;br /&gt;
* Many websites keep logs of referring http headers (which can be correlated with cookies to track your browsing activities). To turn off the passage of referral headers in Firefox, see [http://cafe.elharo.com/privacy/privacy-tip-3-block-referer-headers-in-firefox/ this info].&lt;br /&gt;
&lt;br /&gt;
== Changing a MAC address ==&lt;br /&gt;
The MAC address of your network interface card is the &amp;quot;fingerprint&amp;quot; of your network connection. It is not possible to hide the MAC address and most tracking methods now use the MAC address to record user habits. To combat this, it is possible to change (&amp;quot;spoof&amp;quot;) your apparent MAC address using software. It is important to remember, however, that it is generally the MAC address of the router (not computers on a LAN) which is displayed to the Internet. If you change the MAC of your computer but not the MAC of your router, you will gain nothing. Be sure to change both frequently (but most importantly that of the router).&lt;br /&gt;
&lt;br /&gt;
* It is possible to set the MAC address to a random selection in the Network Manager configuration:&lt;br /&gt;
:Network Manager -&amp;gt;  Manage Connections... -&amp;gt; ''connection'' -&amp;gt; Edit... -&amp;gt; Ethernet -&amp;gt; Cloned MAC Address -&amp;gt; Random -&amp;gt; Ok&lt;br /&gt;
&lt;br /&gt;
* [http://www.alobbs.com/macchanger Macchanger] is a utility to change a MAC address. Install:&lt;br /&gt;
 suod apt-get install macchanger&lt;br /&gt;
&lt;br /&gt;
== Certificate verification ==&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Certificate_authority Certificate authorities] charge a fee to store and verify [http://en.wikipedia.org/wiki/Public_key_certificate certificates]. However, many websites use [http://en.wikipedia.org/wiki/Self-signed_certificate self-signed certificates] that are not registered with any certifying authority. A free system of certificate &amp;quot;network notaries&amp;quot; has emerged called [http://perspectives-project.org/ Perspectives]. A certificate's validity (even if self-signed) can be checked using a [https://addons.mozilla.org/en-US/firefox/addon/perspectives/ Firefox plugin]. For more info see [http://www.dedoimedo.com/computers/firefox-perspectives.html this article].&lt;br /&gt;
&lt;br /&gt;
* [https://secure.wikimedia.org/wikipedia/en/wiki/CAcert.org CAcert.org] is a free certifying authority that maintains weak certificates that are recognized by many open source operating systems, but not by Firefox or most browsers. (For browsers that do not include CAcert.org recognition, certificates appear to be self-signed certificates.) While Debian incorporates CACert.org's root certificate by default, Ubuntu derivatives do not ([https://secure.wikimedia.org/wikipedia/en/wiki/Canonical_Ltd. Canonical] was originally founded with funds earned from [https://secure.wikimedia.org/wikipedia/en/wiki/Thawte Thawte], a certifying authority founded by [https://secure.wikimedia.org/wikipedia/en/wiki/Mark_Shuttleworth Mark Shuttleworth].)&lt;br /&gt;
&lt;br /&gt;
== Passwords and file authentication ==&lt;br /&gt;
* See this excellent article at H-Online about [http://www.h-online.com/security/features/Password-protection-for-everyone-1795647.html password protection for everyone].&lt;br /&gt;
&lt;br /&gt;
=== Random password generator ===&lt;br /&gt;
* Pwgen is a command line utility to generate a block of random 8-digit alphanumeric passwords. Run it from Konsole (in Kubuntu) or Terminal (in Ubuntu). Install:&lt;br /&gt;
 sudo apt-get install pwgen&lt;br /&gt;
:* Run pwgen:&lt;br /&gt;
 pwgen&lt;br /&gt;
&lt;br /&gt;
* UUIDgen is a default utility to generate a random UUID (using only [http://en.wikipedia.org/wiki/Hexadecimal hex-digits]). Run:&lt;br /&gt;
 uuidgen&lt;br /&gt;
&lt;br /&gt;
The random UUID can also be used as a 32-digit password, if desired.&lt;br /&gt;
&lt;br /&gt;
=== Password checker and enforcement ===&lt;br /&gt;
[http://www.openwall.com/john/ John the Ripper] is a free open source password cracker that uses a dictionary of over 4 million commonly used passwords in many languages. Because this tool is widely available, it is useful for scanning and securing your own LAN and computers for password strength. Install:&lt;br /&gt;
 sudo apt-get install john&lt;br /&gt;
&lt;br /&gt;
* [http://www.openwall.com/passwdqc/ Passwdqc] is a module to enforce password strength. Install:&lt;br /&gt;
 sudo apt-get install passwdqc&lt;br /&gt;
&lt;br /&gt;
=== MD5Sum ===&lt;br /&gt;
To check the MD5 sum of a file, use this command in the command line:&lt;br /&gt;
 md5sum ''filename''&lt;br /&gt;
&lt;br /&gt;
== File archival and encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
&lt;br /&gt;
=== Archives with Passwords ===&lt;br /&gt;
* See [[Kubuntu_Quantal_Utilities#Archiving_Utilities|this section]].&lt;br /&gt;
&lt;br /&gt;
== Disk and Storage Encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
* See the [http://help.ubuntu.com/community/FullDiskEncryptionHowto Ubuntu Community documentation] for methods of full disk encryption.&lt;br /&gt;
* See the [http://help.ubuntu.com/community/EncryptedFilesystems Ubuntu Community documentation] for methods of filesystem encryption.&lt;/div&gt;</description>
			<pubDate>Mon, 29 Apr 2013 17:22:00 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:K_Quantal/Privacy</comments>		</item>
		<item>
			<title>Template:K Raring/Privacy</title>
			<link>http://easylinux.info/wiki/Template:K_Raring/Privacy</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Privacy =&lt;br /&gt;
An interesting perspective on Internet privacy techniques can be found [http://farid.hajji.name/blog/2009/06/20/circumventing-internet-censorship/ here].&lt;br /&gt;
&lt;br /&gt;
== PGP (Message Encryption) ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/GNU_Privacy_Guard GnuPG] is the free open source implementation of the OpenPGP standard for [http://en.wikipedia.org/wiki/Pretty_Good_Privacy PGP]. It is a tool to encrypt your messages (such as email) to be unlocked only by someone who has a key to unlock it. While gpg is the default OpenPGP tool for command-line usage, gpg2 is the utility generally used by GUI frontends.&lt;br /&gt;
&lt;br /&gt;
=== Enigmail with Thunderbird ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] By far the easiest method for encrypting email is using the [[Kubuntu_Raring_Internet#Enigmail|Enigmail]] add-on for the [[Kubuntu_Raring_Internet#Thunderbird|Thunderbird]] email client. It creates PGP key pairs, stores and retrieves keys from keyrings, and encrypts and decrypts messages automatically.&lt;br /&gt;
&lt;br /&gt;
=== Kleopatra (Cryptography and Certificate Manager) ===&lt;br /&gt;
[http://www.kde.org/applications/utilities/kleopatra/ Kleopatra] is a certificate manager and a universal crypto GUI for KDE. It supports managing X.509 and OpenPGP certificates in the GpgSM keybox and retrieving certificates from LDAP servers. Install:&lt;br /&gt;
 sudo apt-get install kleopatra&lt;br /&gt;
&lt;br /&gt;
* Create a new OpenPGP keypair:&lt;br /&gt;
:K menu -&amp;gt; Utilities -&amp;gt; Kleopatra -&amp;gt; File -&amp;gt; New Certificate... -&amp;gt; Create a personal OpenPGP key pair&lt;br /&gt;
&lt;br /&gt;
=== KGPG ===&lt;br /&gt;
[http://utils.kde.org/projects/kgpg/ KGpg] is the GUI for KDE to manage the key pairs and other options of [http://www.gnupg.org/ GnuPG]. It has fewer options than Kleopatra. Install:&lt;br /&gt;
 sudo apt-get install kgpg&lt;br /&gt;
&lt;br /&gt;
=== PGP Troubleshooting ===&lt;br /&gt;
If KGPG or Kleopatra gives an error, it is because of a problem with settings in the gpg.conf configuration file ( ~/.gnupg/gpg.conf). Edit the file (using either ~/ or /home/''user''/ ):&lt;br /&gt;
 kate /home/''user''/.gnupg/gpg.conf&lt;br /&gt;
&lt;br /&gt;
Comment out the two lines at the bottom:&lt;br /&gt;
 #debug-level basic&lt;br /&gt;
 #log-file socket:///home/''user''/.gnupg/log-socket&lt;br /&gt;
&lt;br /&gt;
== Web browsing ==&lt;br /&gt;
Web tracking, scripts, and advertisements are extremely intrusive on the Internet. A dossier of your online habits is created by a multitude of services, including every major portal such as Google and Yahoo, as well as a variety of tracking services on the Internet. This is accomplished through the use of the &amp;quot;cookies&amp;quot; in your browser and by a variety of web elements (sometimes called &amp;quot;web beacons&amp;quot;) embedded on the web pages you visit. Your behavior is monitored and correlated by recording the IP address of your computer, even when you turn off the cookies in your browser. Still, it is highly recommended to configure your web browser to erase your [http://support.mozilla.org/en-US/kb/Cookies cookies] and history every time the web browser is closed; otherwise, every website you subsequently visit can instantly see the long list of recent websites you have visited. In Firefox, for example, cookies can be accepted for the current session but erased upon closing:&lt;br /&gt;
:Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Privacy -&amp;gt; History -&amp;gt; Firefox will: ''Use custom settings for history''&lt;br /&gt;
:-&amp;gt; ''Always use private browsing mode'' (or customise the settings to your desired level of privacy)&lt;br /&gt;
* In addition, both [[Kubuntu:Raring#Adblock_Plus_plug-in_.28block_ads_in_a_web_page.29|Adblock Plus]] and [[Kubuntu:Raring#NoScript_plug-in_.28controls_scripts.29|NoScript]] are highly recommended as plug-ins for Firefox (and other Gecko-based browsers) to limit exposure to undesirable web elements, scripts, and tracking mechanisms.&lt;br /&gt;
&lt;br /&gt;
== Tor (Network privacy) ==&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://www.torproject.org/ Tor] is a project to allow privacy while using the Internet and to limit usage tracking. It routes your traffic through several anonymous nodes, so that your usage appears to come from an IP other than your own. (There are always risks when using the Internet that even Tor can not help with, though. Read [http://www.torproject.org/download.html.en#Warning this].) Using Tor can slow down your Internet usage significantly, depending on how much traffic is being passed through the Tor network (routine file-sharing or large downloads will also significantly reduce performance of the Tor network.)&lt;br /&gt;
&amp;lt;!---&amp;gt;&lt;br /&gt;
* Install the Privoxy http proxy (optional for most users):&lt;br /&gt;
 sudo apt-get install privoxy&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install Tor by following the instructions [https://www.torproject.org/docs/debian here]. Note that the instructions require port 11371 on your firewall to be open to use the gpg keyserver (and download the key for the debian package). Then see the [http://www.torproject.org/docs/tor-doc-unix.html Tor installation guide] for details.&lt;br /&gt;
&lt;br /&gt;
* By default Tor (once it is running) acts as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy] on port 9050. To send traffic from any application through Tor, configure the settings of that application to use a socks5 proxy on port 9050.&lt;br /&gt;
&lt;br /&gt;
* Also see these additional [[Tor|tips]].&lt;br /&gt;
&lt;br /&gt;
=== Vidalia (Tor interface) ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [https://www.torproject.org/projects/vidalia.html Vidalia] is the recommended Qt4-based GUI frontend for Tor. If not installed with Tor, install:&lt;br /&gt;
 sudo apt-get install vidalia&lt;br /&gt;
&lt;br /&gt;
=== Tork (KDE Tor interface) ===&lt;br /&gt;
[http://sourceforge.net/projects/tork/ TorK] is a KDE interface for Tor that relied on the older Qt3 platform. It is no longer included in the (K)Ubuntu repositories. However, if desired it can be installed (along with the older Qt3 libraries). See [[Tor#Tork_.28KDE_Tor_interface.29|this section]].&lt;br /&gt;
&lt;br /&gt;
=== Using Tor with Firefox ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Recent versions of Firefox allow direct use of Tor as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy], both for traffic and DNS resolution. See [[Tor#Using_Tor_with_Firefox|this section]] for information on configuring this.&lt;br /&gt;
&lt;br /&gt;
==== Torbutton (Firefox plug-in) ====&lt;br /&gt;
* Once Tor is installed and running properly, [https://www.torproject.org/torbutton/ Torbutton] allows you to choose whether to use Firefox through the Tor anonymizing network or not. Torbutton only works with older (non-updated) versions of Firefox or with modified versions of Firefox found in the [[Tor#Tor_Browser_Bundle|Tor Browser Bundle]]. Newer versions of Firefox may refuse to start if Torbutton is installed. See [[Tor#Torbutton_(Firefox_plug-in)|this section]] for more details.&lt;br /&gt;
&lt;br /&gt;
== DNS Servers and Search engines ==&lt;br /&gt;
* Most users rely on the [http://en.wikipedia.org/wiki/Domain_Name_System DNS] server of their ISP (Internet Service Provider). DNS queries can be recorded, however, and theoretically correlated by an ISP to the data traffic to/from a user's IP address serviced by that ISP. A somewhat less trackable solution is to use a DNS service that does not belong to your ISP. This can belong to another commercial ISP or to a third party service such as [http://www.opendns.com/ OpenDNS], [http://www.comodo.com/secure-dns/ Comodo], [http://www.scrubit.com/ ScrubIT], [http://code.google.com/speed/public-dns/ Google] (though slightly less secure due to Google's own tracking mechanisms), another [http://theos.in/windows-xp/free-fast-public-dns-server-list/ free DNS service], or (for maximum security) a publicly-available [http://portforward.com/networking/dns.htm international DNS server]. For example, a Verizon customer could use the [http://www.whatsmydns.net/dns/usa/att.html AT&amp;amp;T DNS servers] or the OpenDNS servers. An AT&amp;amp;T customer could use one of the [http://www.dslreports.com/faq/1591 Verizon servers] or the Google servers. It is important to use a reliable DNS provider, however, as [http://en.wikipedia.org/wiki/Man-in-the-middle_attack man-in-the-middle DNS redirection] and [http://en.wikipedia.org/wiki/DNS_cache_poisoning DNS cache poisoning] attacks are increasingly common. Stick to one of the major DNS services (just not your own ISP's DNS service). It is important to note that starting Feburary 25, 2013, 5 major ISPs (Internet Service Providers) in the US (Comcast, Verizon, AT&amp;amp;T, Time Warner Cable, and Cablevision) have agreed to IP address recording and reporting (to the [https://en.wikipedia.org/wiki/Center_for_Copyright_Information CCI]) on behalf of the [https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America MPAA] and [https://en.wikipedia.org/wiki/Recording_Industry_Association_of_America RIAA]. If using one of these ISPs, take extra efforts to ensure your privacy.&lt;br /&gt;
&lt;br /&gt;
The DNS server setting can be changed in the router's settings (recommended) or individually for each computer. If changing on an individual computer, use the Network Manager or Wicd settings, or if using a static IP address with manually configured settings, add a line to /etc/network/interfaces with a list of the desired dns-nameservers at the end of the iface stanza so that the file resembles:&lt;br /&gt;
&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 address 192.168.0.35&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 network 192.168.0.0&lt;br /&gt;
 broadcast 192.168.0.255&lt;br /&gt;
 gateway 192.168.0.1&lt;br /&gt;
 dns-nameservers 8.26.56.26 208.67.222.222 8.20.247.20 208.67.220.220 8.8.8.8 8.8.4.4&lt;br /&gt;
&lt;br /&gt;
* Many search engines track your search requests (notably Google, Bing, and Yahoo) and keep logs of the searches they receive from your IP address. [https://duckduckgo.com DuckDuckGo.com] is a filtered search engine that has made its reputation not only by promising not to track searches, but also by providing a secure (encrypted), Tor-capable and anonymized search portal. Point your browser to https://duckduckgo.com. (It can be used with your Torbutton turned on.)&lt;br /&gt;
&lt;br /&gt;
* Many censorship/filtering/tracking techniques (that use [https://secure.wikimedia.org/wikipedia/en/wiki/Deep_packet_inspection deep packet inspection]) cannot be used with secure ([https://secure.wikimedia.org/wikipedia/en/wiki/Transport_Layer_Security SSL/TLS] encrypted) websites (denoted by ''[https://secure.wikimedia.org/wikipedia/en/wiki/HTTP_Secure &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;]'' ). Use them whenever possible. For example, use the [https://secure.wikimedia.org/ secure Wikimedia portal] for Wikipedia (and other Wikimedia services) instead of the insecure portal(s).&lt;br /&gt;
&lt;br /&gt;
* Many websites keep logs of referring http headers (which can be correlated with cookies to track your browsing activities). To turn off the passage of referral headers in Firefox, see [http://cafe.elharo.com/privacy/privacy-tip-3-block-referer-headers-in-firefox/ this info].&lt;br /&gt;
&lt;br /&gt;
== Changing a MAC address ==&lt;br /&gt;
The MAC address of your network interface card is the &amp;quot;fingerprint&amp;quot; of your network connection. It is not possible to hide the MAC address and most tracking methods now use the MAC address to record user habits. To combat this, it is possible to change (&amp;quot;spoof&amp;quot;) your apparent MAC address using software. It is important to remember, however, that it is generally the MAC address of the router (not computers on a LAN) which is displayed to the Internet. If you change the MAC of your computer but not the MAC of your router, you will gain nothing. Be sure to change both frequently (but most importantly that of the router).&lt;br /&gt;
&lt;br /&gt;
* It is possible to set the MAC address to a random selection in the Network Manager configuration:&lt;br /&gt;
:Network Manager -&amp;gt;  Manage Connections... -&amp;gt; ''connection'' -&amp;gt; Edit... -&amp;gt; Ethernet -&amp;gt; Cloned MAC Address -&amp;gt; Random -&amp;gt; Ok&lt;br /&gt;
&lt;br /&gt;
* [http://www.alobbs.com/macchanger Macchanger] is a utility to change a MAC address. Install:&lt;br /&gt;
 suod apt-get install macchanger&lt;br /&gt;
&lt;br /&gt;
== Certificate verification ==&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Certificate_authority Certificate authorities] charge a fee to store and verify [http://en.wikipedia.org/wiki/Public_key_certificate certificates]. However, many websites use [http://en.wikipedia.org/wiki/Self-signed_certificate self-signed certificates] that are not registered with any certifying authority. A free system of certificate &amp;quot;network notaries&amp;quot; has emerged called [http://perspectives-project.org/ Perspectives]. A certificate's validity (even if self-signed) can be checked using a [https://addons.mozilla.org/en-US/firefox/addon/perspectives/ Firefox plugin]. For more info see [http://www.dedoimedo.com/computers/firefox-perspectives.html this article].&lt;br /&gt;
&lt;br /&gt;
* [https://secure.wikimedia.org/wikipedia/en/wiki/CAcert.org CAcert.org] is a free certifying authority that maintains weak certificates that are recognized by many open source operating systems, but not by Firefox or most browsers. (For browsers that do not include CAcert.org recognition, certificates appear to be self-signed certificates.) While Debian incorporates CACert.org's root certificate by default, Ubuntu derivatives do not ([https://secure.wikimedia.org/wikipedia/en/wiki/Canonical_Ltd. Canonical] was originally founded with funds earned from [https://secure.wikimedia.org/wikipedia/en/wiki/Thawte Thawte], a certifying authority founded by [https://secure.wikimedia.org/wikipedia/en/wiki/Mark_Shuttleworth Mark Shuttleworth].)&lt;br /&gt;
&lt;br /&gt;
== Passwords and file authentication ==&lt;br /&gt;
* See this excellent article at H-Online about [http://www.h-online.com/security/features/Password-protection-for-everyone-1795647.html password protection for everyone].&lt;br /&gt;
&lt;br /&gt;
=== Random password generator ===&lt;br /&gt;
* Pwgen is a command line utility to generate a block of random 8-digit alphanumeric passwords. Run it from Konsole (in Kubuntu) or Terminal (in Ubuntu). Install:&lt;br /&gt;
 sudo apt-get install pwgen&lt;br /&gt;
:* Run pwgen:&lt;br /&gt;
 pwgen&lt;br /&gt;
&lt;br /&gt;
* UUIDgen is a default utility to generate a random UUID (using only [http://en.wikipedia.org/wiki/Hexadecimal hex-digits]). Run:&lt;br /&gt;
 uuidgen&lt;br /&gt;
&lt;br /&gt;
The random UUID can also be used as a 32-digit password, if desired.&lt;br /&gt;
&lt;br /&gt;
=== Password checker and enforcement ===&lt;br /&gt;
[http://www.openwall.com/john/ John the Ripper] is a free open source password cracker that uses a dictionary of over 4 million commonly used passwords in many languages. Because this tool is widely available, it is useful for scanning and securing your own LAN and computers for password strength. Install:&lt;br /&gt;
 sudo apt-get install john&lt;br /&gt;
&lt;br /&gt;
* [http://www.openwall.com/passwdqc/ Passwdqc] is a module to enforce password strength. Install:&lt;br /&gt;
 sudo apt-get install passwdqc&lt;br /&gt;
&lt;br /&gt;
=== MD5Sum ===&lt;br /&gt;
To check the MD5 sum of a file, use this command in the command line:&lt;br /&gt;
 md5sum ''filename''&lt;br /&gt;
&lt;br /&gt;
== File archival and encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
&lt;br /&gt;
=== Archives with Passwords ===&lt;br /&gt;
* See [[Kubuntu_Raring_Utilities#Archiving_Utilities|this section]].&lt;br /&gt;
&lt;br /&gt;
== Disk and Storage Encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
* See the [http://help.ubuntu.com/community/FullDiskEncryptionHowto Ubuntu Community documentation] for methods of full disk encryption.&lt;br /&gt;
* See the [http://help.ubuntu.com/community/EncryptedFilesystems Ubuntu Community documentation] for methods of filesystem encryption.&lt;/div&gt;</description>
			<pubDate>Mon, 29 Apr 2013 17:20:35 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:K_Raring/Privacy</comments>		</item>
		<item>
			<title>Template:U Raring/Privacy</title>
			<link>http://easylinux.info/wiki/Template:U_Raring/Privacy</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* DNS Servers and Search engines */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Privacy =&lt;br /&gt;
An interesting perspective on Internet privacy techniques can be found [http://farid.hajji.name/blog/2009/06/20/circumventing-internet-censorship/ here].&lt;br /&gt;
&lt;br /&gt;
=== PGP (Message Encryption) ===&lt;br /&gt;
[http://en.wikipedia.org/wiki/Pretty_Good_Privacy PGP] (OpenPGP and [http://en.wikipedia.org/wiki/GNU_Privacy_Guard GnuPG]) is a tool to encrypt your messages (such as email) to be unlocked only by someone who has a key to unlock it.&lt;br /&gt;
&lt;br /&gt;
==== Enigmail with Thunderbird ====&lt;br /&gt;
By far the easiest method for encrypting email is using the [[Ubuntu_Raring_Internet#Enigmail|Enigmail]] add-on for the [[Ubuntu_Raring_Internet#Thunderbird|Thunderbird]] email client. It creates PGP key pairs, stores and retrieves keys from keyrings, and encrypts and decrypts messages automatically.&lt;br /&gt;
&lt;br /&gt;
==== Seahorse ====&lt;br /&gt;
[http://projects.gnome.org/seahorse/ Seahorse] is the GUI for Gnome to manage the key pairs and other options of [http://www.gnupg.org/ GnuPG]. It can also manage your [[#SSH|SSH]] keys. For more info see [http://ubuntu-tutorials.com/2007/08/14/privacy-and-encryption-with-pgp-signing-and-encrypting-email-files/ this tutorial]. Run:&lt;br /&gt;
:Menu -&amp;gt; Applications -&amp;gt; Accessories --&amp;gt; Passwords and Encryption Keys&lt;br /&gt;
&lt;br /&gt;
=== Web browsing ===&lt;br /&gt;
Web tracking, scripts, and advertisements are extremely intrusive on the Internet. A dossier of your online habits is created by a multitude of services, including every major portal such as Google and Yahoo, as well as a variety of tracking services on the Internet. This is accomplished through the use of the &amp;quot;cookies&amp;quot; in your browser and by a variety of web elements (sometimes called &amp;quot;web beacons&amp;quot;) embedded on the web pages you visit. Your behavior is monitored and correlated by recording the IP address of your computer, even when you turn off the cookies in your browser. Still, it is highly recommended to configure your web browser to erase your [http://support.mozilla.org/en-US/kb/Cookies cookies] and history every time the web browser is closed; otherwise, every website you subsequently visit can instantly see the long list of recent websites you have visited. In Firefox, for example, cookies can be accepted for the current session but erased upon closing:&lt;br /&gt;
:Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Privacy -&amp;gt; History -&amp;gt; Firefox will: ''Use custom settings for history''&lt;br /&gt;
:-&amp;gt; ''Always use private browsing mode'' (or customise the settings to your desired level of privacy)&lt;br /&gt;
* In addition, both [[Ubuntu_Raring_Internet#Adblock_Plus_plug-in_.28block_ads_in_a_web_page.29|Adblock Plus]] and [[Ubuntu_Raring_Internet#NoScript_plug-in_.28controls_scripts.29|NoScript]] are highly recommended as plug-ins for Firefox (and other Gecko-based browsers) to limit exposure to undesirable web elements, scripts, and tracking mechanisms.&lt;br /&gt;
&lt;br /&gt;
=== Tor (Network Privacy) ===&lt;br /&gt;
[http://www.torproject.org/ Tor] is a project to allow privacy while using the Internet and to limit usage tracking. It routes your traffic through several anonymous nodes, so that your usage appears to come from an IP other than your own. (There are always risks when using the Internet that even Tor can not help with, though. Read [http://www.torproject.org/download.html.en#Warning this].) Using Tor can slow down your Internet usage significantly, depending on how much traffic is being passed through the Tor network (routine file-sharing or large downloads will also significantly reduce performance of the Tor network.)&lt;br /&gt;
&amp;lt;!---&amp;gt;&lt;br /&gt;
* Install the Privoxy http proxy (optional for most users):&lt;br /&gt;
 sudo apt-get install privoxy&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install Tor by following the instructions [https://www.torproject.org/docs/debian here]. Note that the instructions require port 11371 on your firewall to be open to use the gpg keyserver (and download the key for the debian package). Then see the [http://www.torproject.org/docs/tor-doc-unix.html Tor installation guide] for details.&lt;br /&gt;
&lt;br /&gt;
* By default Tor (once it is running) acts as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy] on port 9050. To send traffic from any application through Tor, configure the settings of that application to use a socks5 proxy on port 9050.&lt;br /&gt;
&lt;br /&gt;
* Also see these additional [[Tor|tips]].&lt;br /&gt;
&lt;br /&gt;
==== Vidalia (Tor interface) ====&lt;br /&gt;
[https://www.torproject.org/projects/vidalia.html Vidalia] is the recommended Qt4-based GUI frontend for Tor. If not installed with Tor, install:&lt;br /&gt;
 sudo apt-get install vidalia&lt;br /&gt;
&lt;br /&gt;
==== Using Tor with Firefox ====&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Recent versions of Firefox allow direct use of Tor as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy], both for traffic and DNS resolution. See [[Tor#Using_Tor_with_Firefox|this section]] for information on configuring this.&lt;br /&gt;
&lt;br /&gt;
===== Torbutton (Firefox plug-in) =====&lt;br /&gt;
* Once Tor is installed and running properly, [https://www.torproject.org/torbutton/ Torbutton] allows you to choose whether to use Firefox through the Tor anonymizing network or not. Torbutton only works with older (non-updated) versions of Firefox or with modified versions of Firefox found in the [[Tor#Tor_Browser_Bundle|Tor Browser Bundle]]. Newer versions of Firefox may refuse to start if Torbutton is installed. See [[Tor#Torbutton_(Firefox_plug-in)|this section]] for more details.&lt;br /&gt;
&lt;br /&gt;
=== DNS Servers and Search engines ===&lt;br /&gt;
* Most users rely on the [http://en.wikipedia.org/wiki/Domain_Name_System DNS] server of their ISP (Internet Service Provider). DNS queries can be recorded, however, and theoretically correlated by an ISP to the data traffic to/from a user's IP address serviced by that ISP. A somewhat less trackable solution is to use a DNS service that does not belong to your ISP. This can belong to another commercial ISP or to a third party service such as [http://www.opendns.com/ OpenDNS], [http://www.comodo.com/secure-dns/ Comodo], [http://www.scrubit.com/ ScrubIT], [http://code.google.com/speed/public-dns/ Google] (though slightly less secure due to Google's own tracking mechanisms), another [http://theos.in/windows-xp/free-fast-public-dns-server-list/ free DNS service], or (for maximum security) a publicly-available [http://portforward.com/networking/dns.htm international DNS server]. For example, a Verizon customer could use the [http://www.whatsmydns.net/dns/usa/att.html AT&amp;amp;T DNS servers] or the OpenDNS servers. An AT&amp;amp;T customer could use one of the [http://www.dslreports.com/faq/1591 Verizon servers] or the Google servers. It is important to use a reliable DNS provider, however, as [http://en.wikipedia.org/wiki/Man-in-the-middle_attack man-in-the-middle DNS redirection] and [http://en.wikipedia.org/wiki/DNS_cache_poisoning DNS cache poisoning] attacks are increasingly common. Stick to one of the major DNS services (just not your own ISP's DNS service). It is important to note that starting Feburary 25, 2013, 5 major ISPs (Internet Service Providers) in the US (Comcast, Verizon, AT&amp;amp;T, Time Warner Cable, and Cablevision) have agreed to IP address recording and reporting (to the [https://en.wikipedia.org/wiki/Center_for_Copyright_Information CCI]) on behalf of the [https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America MPAA] and [https://en.wikipedia.org/wiki/Recording_Industry_Association_of_America RIAA]. If using one of these ISPs, take extra efforts to ensure your privacy.&lt;br /&gt;
&lt;br /&gt;
The DNS server setting can be changed in the router's settings (recommended) or individually for each computer. If changing on an individual computer, use the Network Manager or Wicd settings, or if using a static IP address with manually configured settings, add a line to /etc/network/interfaces with a list of the desired dns-nameservers at the end of the iface stanza so that the file resembles:&lt;br /&gt;
&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 address 192.168.0.35&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 network 192.168.0.0&lt;br /&gt;
 broadcast 192.168.0.255&lt;br /&gt;
 gateway 192.168.0.1&lt;br /&gt;
 dns-nameservers 8.26.56.26 208.67.222.222 8.20.247.20 208.67.220.220 8.8.8.8 8.8.4.4&lt;br /&gt;
&lt;br /&gt;
* Many search engines track your search requests (notably Google, Bing, and Yahoo) and keep logs of the searches they receive from your IP address. [https://duckduckgo.com DuckDuckGo.com] is a filtered search engine that has made its reputation not only by promising not to track searches, but also by providing a secure (encrypted), Tor-capable and anonymized search portal. Point your browser to https://duckduckgo.com. It can be used with your Torbutton turned on.&lt;br /&gt;
&lt;br /&gt;
* Many censorship/filtering/tracking techniques (that use [https://secure.wikimedia.org/wikipedia/en/wiki/Deep_packet_inspection deep packet inspection]) cannot be used with secure ([https://secure.wikimedia.org/wikipedia/en/wiki/Transport_Layer_Security SSL/TLS] encrypted) websites (denoted by ''[https://secure.wikimedia.org/wikipedia/en/wiki/HTTP_Secure &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;]'' ). Use them whenever possible. For example, use the [https://secure.wikimedia.org/ secure Wikimedia portal] for Wikipedia (and other Wikimedia services) instead of the insecure portal(s).&lt;br /&gt;
&lt;br /&gt;
* Many websites keep logs of referring http headers (which can be correlated with cookies to track your browsing activities). To turn off the passage of referral headers in Firefox, see [http://cafe.elharo.com/privacy/privacy-tip-3-block-referer-headers-in-firefox/ this info].&lt;br /&gt;
&lt;br /&gt;
=== Changing a MAC address ===&lt;br /&gt;
The MAC address of your network interface card is the &amp;quot;fingerprint&amp;quot; of your network connection. It is not possible to hide the MAC address and most tracking methods now use the MAC address to record user habits. To combat this, it is possible to change (&amp;quot;spoof&amp;quot;) your apparent MAC address using software. It is important to remember, however, that it is generally the MAC address of the router (not computers on a LAN) which is displayed to the Internet. If you change the MAC of your computer but not the MAC of your router, you will gain nothing. Be sure to change both frequently (but most importantly that of the router).&lt;br /&gt;
&lt;br /&gt;
* It is possible to set the MAC address to a random selection in the Network Manager configuration:&lt;br /&gt;
:Network Manager -&amp;gt;  Manage Connections... -&amp;gt; ''connection'' -&amp;gt; Edit... -&amp;gt; Ethernet -&amp;gt; Cloned MAC Address -&amp;gt; Random -&amp;gt; Ok&lt;br /&gt;
&lt;br /&gt;
* [http://www.alobbs.com/macchanger Macchanger] is a utility to change a MAC address. Install:&lt;br /&gt;
 suod apt-get install macchanger&lt;br /&gt;
&lt;br /&gt;
=== Certificate verification ===&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Certificate_authority Certificate authorities] charge a fee to store and verify [http://en.wikipedia.org/wiki/Public_key_certificate certificates]. However, many websites use [http://en.wikipedia.org/wiki/Self-signed_certificate self-signed certificates] that are not registered with any certifying authority. A free system of certificate &amp;quot;network notaries&amp;quot; has emerged called [http://perspectives-project.org/ Perspectives]. A certificate's validity (even if self-signed) can be checked using a [https://addons.mozilla.org/en-US/firefox/addon/perspectives/ Firefox plugin]. For more info see [http://www.dedoimedo.com/computers/firefox-perspectives.html this article].&lt;br /&gt;
&lt;br /&gt;
* [https://secure.wikimedia.org/wikipedia/en/wiki/CAcert.org CAcert.org] is a free certifying authority that maintains weak certificates that are recognized by many open source operating systems, but not by Firefox or most browsers. (For browsers that do not include CAcert.org recognition, certificates appear to be self-signed certificates.) While Debian incorporates CACert.org's root certificate by default, Ubuntu derivatives do not ([https://secure.wikimedia.org/wikipedia/en/wiki/Canonical_Ltd. Canonical] was originally founded with funds earned from [https://secure.wikimedia.org/wikipedia/en/wiki/Thawte Thawte], a certifying authority founded by [https://secure.wikimedia.org/wikipedia/en/wiki/Mark_Shuttleworth Mark Shuttleworth].)&lt;br /&gt;
&lt;br /&gt;
== Passwords and file authentication ==&lt;br /&gt;
* See this excellent article at H-Online about [http://www.h-online.com/security/features/Password-protection-for-everyone-1795647.html password protection for everyone].&lt;br /&gt;
&lt;br /&gt;
=== Random password generator ===&lt;br /&gt;
* Pwgen is a command line utility to generate a block of random 8-digit alphanumeric passwords. Run it from Konsole (in Kubuntu) or Terminal (in Ubuntu). Install:&lt;br /&gt;
 sudo apt-get install pwgen&lt;br /&gt;
:* Run pwgen:&lt;br /&gt;
 pwgen&lt;br /&gt;
&lt;br /&gt;
* UUIDgen is a default utility to generate a random UUID (using only [http://en.wikipedia.org/wiki/Hexadecimal hex-digits]). Run:&lt;br /&gt;
 uuidgen&lt;br /&gt;
&lt;br /&gt;
The random UUID can also be used as a 32-digit password, if desired.&lt;br /&gt;
&lt;br /&gt;
=== Password checker and enforcement ===&lt;br /&gt;
[http://www.openwall.com/john/ John the Ripper] is a free open source password cracker that uses a dictionary of over 4 million commonly used passwords in many languages. Because this tool is widely available, it is useful for scanning and securing your own LAN and computers for password strength. Install:&lt;br /&gt;
 sudo apt-get install john&lt;br /&gt;
&lt;br /&gt;
* [http://www.openwall.com/passwdqc/ Passwdqc] is a module to enforce password strength. Install:&lt;br /&gt;
 sudo apt-get install passwdqc&lt;br /&gt;
&lt;br /&gt;
=== MD5Sum ===&lt;br /&gt;
To check the MD5 sum of a file, use this command in the command line:&lt;br /&gt;
 md5sum ''filename''&lt;br /&gt;
&lt;br /&gt;
== File archival and encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
&lt;br /&gt;
=== Archives with Passwords ===&lt;br /&gt;
* See [[Ubuntu_Raring_Utilities#Archiving_Utilities|this section]].&lt;br /&gt;
&lt;br /&gt;
== Disk and Storage Encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
* See the [http://help.ubuntu.com/community/FullDiskEncryptionHowto Ubuntu Community documentation] for methods of full disk encryption.&lt;br /&gt;
* See the [http://help.ubuntu.com/community/EncryptedFilesystems Ubuntu Community documentation] for methods of filesystem encryption.&lt;/div&gt;</description>
			<pubDate>Sun, 28 Apr 2013 05:23:24 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:U_Raring/Privacy</comments>		</item>
		<item>
			<title>Template:U Quantal/Privacy</title>
			<link>http://easylinux.info/wiki/Template:U_Quantal/Privacy</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* DNS Servers and Search engines */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Privacy =&lt;br /&gt;
An interesting perspective on Internet privacy techniques can be found [http://farid.hajji.name/blog/2009/06/20/circumventing-internet-censorship/ here].&lt;br /&gt;
&lt;br /&gt;
=== PGP (Message Encryption) ===&lt;br /&gt;
[http://en.wikipedia.org/wiki/Pretty_Good_Privacy PGP] (OpenPGP and [http://en.wikipedia.org/wiki/GNU_Privacy_Guard GnuPG]) is a tool to encrypt your messages (such as email) to be unlocked only by someone who has a key to unlock it.&lt;br /&gt;
&lt;br /&gt;
==== Enigmail with Thunderbird ====&lt;br /&gt;
By far the easiest method for encrypting email is using the [[Ubuntu_Quantal_Internet#Enigmail|Enigmail]] add-on for the [[Ubuntu_Quantal_Internet#Thunderbird|Thunderbird]] email client. It creates PGP key pairs, stores and retrieves keys from keyrings, and encrypts and decrypts messages automatically.&lt;br /&gt;
&lt;br /&gt;
==== Seahorse ====&lt;br /&gt;
[http://projects.gnome.org/seahorse/ Seahorse] is the GUI for Gnome to manage the key pairs and other options of [http://www.gnupg.org/ GnuPG]. It can also manage your [[#SSH|SSH]] keys. For more info see [http://ubuntu-tutorials.com/2007/08/14/privacy-and-encryption-with-pgp-signing-and-encrypting-email-files/ this tutorial]. Run:&lt;br /&gt;
:Menu -&amp;gt; Applications -&amp;gt; Accessories --&amp;gt; Passwords and Encryption Keys&lt;br /&gt;
&lt;br /&gt;
=== Web browsing ===&lt;br /&gt;
Web tracking, scripts, and advertisements are extremely intrusive on the Internet. A dossier of your online habits is created by a multitude of services, including every major portal such as Google and Yahoo, as well as a variety of tracking services on the Internet. This is accomplished through the use of the &amp;quot;cookies&amp;quot; in your browser and by a variety of web elements (sometimes called &amp;quot;web beacons&amp;quot;) embedded on the web pages you visit. Your behavior is monitored and correlated by recording the IP address of your computer, even when you turn off the cookies in your browser. Still, it is highly recommended to configure your web browser to erase your [http://support.mozilla.org/en-US/kb/Cookies cookies] and history every time the web browser is closed; otherwise, every website you subsequently visit can instantly see the long list of recent websites you have visited. In Firefox, for example, cookies can be accepted for the current session but erased upon closing:&lt;br /&gt;
:Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Privacy -&amp;gt; History -&amp;gt; Firefox will: ''Use custom settings for history''&lt;br /&gt;
:-&amp;gt; ''Always use private browsing mode'' (or customise the settings to your desired level of privacy)&lt;br /&gt;
* In addition, both [[Ubuntu_Quantal_Internet#Adblock_Plus_plug-in_.28block_ads_in_a_web_page.29|Adblock Plus]] and [[Ubuntu_Quantal_Internet#NoScript_plug-in_.28controls_scripts.29|NoScript]] are highly recommended as plug-ins for Firefox (and other Gecko-based browsers) to limit exposure to undesirable web elements, scripts, and tracking mechanisms.&lt;br /&gt;
&lt;br /&gt;
=== Tor (Network Privacy) ===&lt;br /&gt;
[http://www.torproject.org/ Tor] is a project to allow privacy while using the Internet and to limit usage tracking. It routes your traffic through several anonymous nodes, so that your usage appears to come from an IP other than your own. (There are always risks when using the Internet that even Tor can not help with, though. Read [http://www.torproject.org/download.html.en#Warning this].) Using Tor can slow down your Internet usage significantly, depending on how much traffic is being passed through the Tor network (routine file-sharing or large downloads will also significantly reduce performance of the Tor network.)&lt;br /&gt;
&amp;lt;!---&amp;gt;&lt;br /&gt;
* Install the Privoxy http proxy (optional for most users):&lt;br /&gt;
 sudo apt-get install privoxy&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install Tor by following the instructions [https://www.torproject.org/docs/debian here]. Note that the instructions require port 11371 on your firewall to be open to use the gpg keyserver (and download the key for the debian package). Then see the [http://www.torproject.org/docs/tor-doc-unix.html Tor installation guide] for details.&lt;br /&gt;
&lt;br /&gt;
* By default Tor (once it is running) acts as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy] on port 9050. To send traffic from any application through Tor, configure the settings of that application to use a socks5 proxy on port 9050.&lt;br /&gt;
&lt;br /&gt;
* Also see these additional [[Tor|tips]].&lt;br /&gt;
&lt;br /&gt;
==== Vidalia (Tor interface) ====&lt;br /&gt;
[https://www.torproject.org/projects/vidalia.html Vidalia] is the recommended Qt4-based GUI frontend for Tor. If not installed with Tor, install:&lt;br /&gt;
 sudo apt-get install vidalia&lt;br /&gt;
&lt;br /&gt;
==== Using Tor with Firefox ====&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Recent versions of Firefox allow direct use of Tor as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy], both for traffic and DNS resolution. See [[Tor#Using_Tor_with_Firefox|this section]] for information on configuring this.&lt;br /&gt;
&lt;br /&gt;
===== Torbutton (Firefox plug-in) =====&lt;br /&gt;
* Once Tor is installed and running properly, [https://www.torproject.org/torbutton/ Torbutton] allows you to choose whether to use Firefox through the Tor anonymizing network or not. Torbutton only works with older (non-updated) versions of Firefox or with modified versions of Firefox found in the [[Tor#Tor_Browser_Bundle|Tor Browser Bundle]]. Newer versions of Firefox may refuse to start if Torbutton is installed. See [[Tor#Torbutton_(Firefox_plug-in)|this section]] for more details.&lt;br /&gt;
&lt;br /&gt;
=== DNS Servers and Search engines ===&lt;br /&gt;
* Most users rely on the [http://en.wikipedia.org/wiki/Domain_Name_System DNS] server of their ISP (Internet Service Provider). DNS queries can be recorded, however, and theoretically correlated by an ISP to the data traffic to/from a user's IP address serviced by that ISP. A somewhat less trackable solution is to use a DNS service that does not belong to your ISP. This can belong to another commercial ISP or to a third party service such as [http://www.opendns.com/ OpenDNS], [http://www.comodo.com/secure-dns/ Comodo], [http://www.scrubit.com/ ScrubIT], [http://code.google.com/speed/public-dns/ Google] (though slightly less secure due to Google's own tracking mechanisms), another [http://theos.in/windows-xp/free-fast-public-dns-server-list/ free DNS service], or (for maximum security) a publicly-available [http://portforward.com/networking/dns.htm international DNS server]. For example, a Verizon customer could use the [http://www.whatsmydns.net/dns/usa/att.html AT&amp;amp;T DNS servers] or the OpenDNS servers. An AT&amp;amp;T customer could use one of the [http://www.dslreports.com/faq/1591 Verizon servers] or the Google servers. It is important to use a reliable DNS provider, however, as [http://en.wikipedia.org/wiki/Man-in-the-middle_attack man-in-the-middle DNS redirection] and [http://en.wikipedia.org/wiki/DNS_cache_poisoning DNS cache poisoning] attacks are increasingly common. Stick to one of the major DNS services (just not your own ISP's DNS service). It is important to note that starting Feburary 25, 2013, 5 major ISPs (Internet Service Providers) in the US (Comcast, Verizon, AT&amp;amp;T, Time Warner Cable, and Cablevision) have agreed to IP address recording and reporting (to the [https://en.wikipedia.org/wiki/Center_for_Copyright_Information CCI]) on behalf of the [https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America MPAA] and [https://en.wikipedia.org/wiki/Recording_Industry_Association_of_America RIAA]. If using one of these ISPs, take extra efforts to ensure your privacy.&lt;br /&gt;
&lt;br /&gt;
The DNS server setting can be changed in the router's settings (recommended) or individually for each computer. If changing on an individual computer, use the Network Manager or Wicd settings, or if using a static IP address with manually configured settings, add a line to /etc/network/interfaces with a list of the desired dns-nameservers at the end of the iface stanza so that the file resembles:&lt;br /&gt;
&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 address 192.168.0.35&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 network 192.168.0.0&lt;br /&gt;
 broadcast 192.168.0.255&lt;br /&gt;
 gateway 192.168.0.1&lt;br /&gt;
 dns-nameservers 8.26.56.26 208.67.222.222 8.20.247.20 208.67.220.220 8.8.8.8 8.8.4.4&lt;br /&gt;
&lt;br /&gt;
* Many search engines track your search requests (notably Google, Bing, and Yahoo) and keep logs of the searches they receive from your IP address. [https://duckduckgo.com DuckDuckGo.com] is a filtered search engine that has made its reputation not only by promising not to track searches, but also by providing a secure (encrypted), Tor-capable and anonymized search portal. Point your browser to https://duckduckgo.com. It can be used with your Torbutton turned on.&lt;br /&gt;
&lt;br /&gt;
* Many censorship/filtering/tracking techniques (that use [https://secure.wikimedia.org/wikipedia/en/wiki/Deep_packet_inspection deep packet inspection]) cannot be used with secure ([https://secure.wikimedia.org/wikipedia/en/wiki/Transport_Layer_Security SSL/TLS] encrypted) websites (denoted by ''[https://secure.wikimedia.org/wikipedia/en/wiki/HTTP_Secure &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;]'' ). Use them whenever possible. For example, use the [https://secure.wikimedia.org/ secure Wikimedia portal] for Wikipedia (and other Wikimedia services) instead of the insecure portal(s).&lt;br /&gt;
&lt;br /&gt;
* Many websites keep logs of referring http headers (which can be correlated with cookies to track your browsing activities). To turn off the passage of referral headers in Firefox, see [http://cafe.elharo.com/privacy/privacy-tip-3-block-referer-headers-in-firefox/ this info].&lt;br /&gt;
&lt;br /&gt;
=== Changing a MAC address ===&lt;br /&gt;
The MAC address of your network interface card is the &amp;quot;fingerprint&amp;quot; of your network connection. It is not possible to hide the MAC address and most tracking methods now use the MAC address to record user habits. To combat this, it is possible to change (&amp;quot;spoof&amp;quot;) your apparent MAC address using software. It is important to remember, however, that it is generally the MAC address of the router (not computers on a LAN) which is displayed to the Internet. If you change the MAC of your computer but not the MAC of your router, you will gain nothing. Be sure to change both frequently (but most importantly that of the router).&lt;br /&gt;
&lt;br /&gt;
* It is possible to set the MAC address to a random selection in the Network Manager configuration:&lt;br /&gt;
:Network Manager -&amp;gt;  Manage Connections... -&amp;gt; ''connection'' -&amp;gt; Edit... -&amp;gt; Ethernet -&amp;gt; Cloned MAC Address -&amp;gt; Random -&amp;gt; Ok&lt;br /&gt;
&lt;br /&gt;
* [http://www.alobbs.com/macchanger Macchanger] is a utility to change a MAC address. Install:&lt;br /&gt;
 suod apt-get install macchanger&lt;br /&gt;
&lt;br /&gt;
=== Certificate verification ===&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Certificate_authority Certificate authorities] charge a fee to store and verify [http://en.wikipedia.org/wiki/Public_key_certificate certificates]. However, many websites use [http://en.wikipedia.org/wiki/Self-signed_certificate self-signed certificates] that are not registered with any certifying authority. A free system of certificate &amp;quot;network notaries&amp;quot; has emerged called [http://perspectives-project.org/ Perspectives]. A certificate's validity (even if self-signed) can be checked using a [https://addons.mozilla.org/en-US/firefox/addon/perspectives/ Firefox plugin]. For more info see [http://www.dedoimedo.com/computers/firefox-perspectives.html this article].&lt;br /&gt;
&lt;br /&gt;
* [https://secure.wikimedia.org/wikipedia/en/wiki/CAcert.org CAcert.org] is a free certifying authority that maintains weak certificates that are recognized by many open source operating systems, but not by Firefox or most browsers. (For browsers that do not include CAcert.org recognition, certificates appear to be self-signed certificates.) While Debian incorporates CACert.org's root certificate by default, Ubuntu derivatives do not ([https://secure.wikimedia.org/wikipedia/en/wiki/Canonical_Ltd. Canonical] was originally founded with funds earned from [https://secure.wikimedia.org/wikipedia/en/wiki/Thawte Thawte], a certifying authority founded by [https://secure.wikimedia.org/wikipedia/en/wiki/Mark_Shuttleworth Mark Shuttleworth].)&lt;br /&gt;
&lt;br /&gt;
== Passwords and file authentication ==&lt;br /&gt;
* See this excellent article at H-Online about [http://www.h-online.com/security/features/Password-protection-for-everyone-1795647.html password protection for everyone].&lt;br /&gt;
&lt;br /&gt;
=== Random password generator ===&lt;br /&gt;
* Pwgen is a command line utility to generate a block of random 8-digit alphanumeric passwords. Run it from Konsole (in Kubuntu) or Terminal (in Ubuntu). Install:&lt;br /&gt;
 sudo apt-get install pwgen&lt;br /&gt;
:* Run pwgen:&lt;br /&gt;
 pwgen&lt;br /&gt;
&lt;br /&gt;
* UUIDgen is a default utility to generate a random UUID (using only [http://en.wikipedia.org/wiki/Hexadecimal hex-digits]). Run:&lt;br /&gt;
 uuidgen&lt;br /&gt;
&lt;br /&gt;
The random UUID can also be used as a 32-digit password, if desired.&lt;br /&gt;
&lt;br /&gt;
=== Password checker and enforcement ===&lt;br /&gt;
[http://www.openwall.com/john/ John the Ripper] is a free open source password cracker that uses a dictionary of over 4 million commonly used passwords in many languages. Because this tool is widely available, it is useful for scanning and securing your own LAN and computers for password strength. Install:&lt;br /&gt;
 sudo apt-get install john&lt;br /&gt;
&lt;br /&gt;
* [http://www.openwall.com/passwdqc/ Passwdqc] is a module to enforce password strength. Install:&lt;br /&gt;
 sudo apt-get install passwdqc&lt;br /&gt;
&lt;br /&gt;
=== MD5Sum ===&lt;br /&gt;
To check the MD5 sum of a file, use this command in the command line:&lt;br /&gt;
 md5sum ''filename''&lt;br /&gt;
&lt;br /&gt;
== File archival and encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
&lt;br /&gt;
=== Archives with Passwords ===&lt;br /&gt;
* See [[Ubuntu_Quantal_Utilities#Archiving_Utilities|this section]].&lt;br /&gt;
&lt;br /&gt;
== Disk and Storage Encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
* See the [http://help.ubuntu.com/community/FullDiskEncryptionHowto Ubuntu Community documentation] for methods of full disk encryption.&lt;br /&gt;
* See the [http://help.ubuntu.com/community/EncryptedFilesystems Ubuntu Community documentation] for methods of filesystem encryption.&lt;/div&gt;</description>
			<pubDate>Sun, 28 Apr 2013 05:22:35 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:U_Quantal/Privacy</comments>		</item>
		<item>
			<title>Template:U Precise/Privacy</title>
			<link>http://easylinux.info/wiki/Template:U_Precise/Privacy</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* DNS Servers and Search engines */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Privacy =&lt;br /&gt;
An interesting perspective on Internet privacy techniques can be found [http://farid.hajji.name/blog/2009/06/20/circumventing-internet-censorship/ here].&lt;br /&gt;
&lt;br /&gt;
=== PGP (Message Encryption) ===&lt;br /&gt;
[http://en.wikipedia.org/wiki/Pretty_Good_Privacy PGP] (OpenPGP and [http://en.wikipedia.org/wiki/GNU_Privacy_Guard GnuPG]) is a tool to encrypt your messages (such as email) to be unlocked only by someone who has a key to unlock it.&lt;br /&gt;
&lt;br /&gt;
==== Enigmail with Thunderbird ====&lt;br /&gt;
By far the easiest method for encrypting email is using the [[Ubuntu_Precise_Internet#Enigmail|Enigmail]] add-on for the [[Ubuntu_Precise_Internet#Thunderbird|Thunderbird]] email client. It creates PGP key pairs, stores and retrieves keys from keyrings, and encrypts and decrypts messages automatically.&lt;br /&gt;
&lt;br /&gt;
==== Seahorse ====&lt;br /&gt;
[http://projects.gnome.org/seahorse/ Seahorse] is the GUI for Gnome to manage the key pairs and other options of [http://www.gnupg.org/ GnuPG]. It can also manage your [[#SSH|SSH]] keys. For more info see [http://ubuntu-tutorials.com/2007/08/14/privacy-and-encryption-with-pgp-signing-and-encrypting-email-files/ this tutorial]. Run:&lt;br /&gt;
:Menu -&amp;gt; Applications -&amp;gt; Accessories --&amp;gt; Passwords and Encryption Keys&lt;br /&gt;
&lt;br /&gt;
=== Web browsing ===&lt;br /&gt;
Web tracking, scripts, and advertisements are extremely intrusive on the Internet. A dossier of your online habits is created by a multitude of services, including every major portal such as Google and Yahoo, as well as a variety of tracking services on the Internet. This is accomplished through the use of the &amp;quot;cookies&amp;quot; in your browser and by a variety of web elements (sometimes called &amp;quot;web beacons&amp;quot;) embedded on the web pages you visit. Your behavior is monitored and correlated by recording the IP address of your computer, even when you turn off the cookies in your browser. Still, it is highly recommended to configure your web browser to erase your [http://support.mozilla.org/en-US/kb/Cookies cookies] and history every time the web browser is closed; otherwise, every website you subsequently visit can instantly see the long list of recent websites you have visited. In Firefox, for example, cookies can be accepted for the current session but erased upon closing:&lt;br /&gt;
:Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Privacy -&amp;gt; History -&amp;gt; Firefox will: ''Use custom settings for history''&lt;br /&gt;
:-&amp;gt; ''Always use private browsing mode'' (or customise the settings to your desired level of privacy)&lt;br /&gt;
* In addition, both [[Ubuntu_Precise_Internet#Adblock_Plus_plug-in_.28block_ads_in_a_web_page.29|Adblock Plus]] and [[Ubuntu_Precise_Internet#NoScript_plug-in_.28controls_scripts.29|NoScript]] are highly recommended as plug-ins for Firefox (and other Gecko-based browsers) to limit exposure to undesirable web elements, scripts, and tracking mechanisms.&lt;br /&gt;
&lt;br /&gt;
=== Tor (Network Privacy) ===&lt;br /&gt;
[http://www.torproject.org/ Tor] is a project to allow privacy while using the Internet and to limit usage tracking. It routes your traffic through several anonymous nodes, so that your usage appears to come from an IP other than your own. (There are always risks when using the Internet that even Tor can not help with, though. Read [http://www.torproject.org/download.html.en#Warning this].) Using Tor can slow down your Internet usage significantly, depending on how much traffic is being passed through the Tor network (routine file-sharing or large downloads will also significantly reduce performance of the Tor network.)&lt;br /&gt;
&amp;lt;!---&amp;gt;&lt;br /&gt;
* Install the Privoxy http proxy (optional for most users):&lt;br /&gt;
 sudo apt-get install privoxy&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install Tor by following the instructions [https://www.torproject.org/docs/debian here]. Note that the instructions require port 11371 on your firewall to be open to use the gpg keyserver (and download the key for the debian package). Then see the [http://www.torproject.org/docs/tor-doc-unix.html Tor installation guide] for details.&lt;br /&gt;
&lt;br /&gt;
* By default Tor (once it is running) acts as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy] on port 9050. To send traffic from any application through Tor, configure the settings of that application to use a socks5 proxy on port 9050.&lt;br /&gt;
&lt;br /&gt;
* Also see these additional [[Tor|tips]].&lt;br /&gt;
&lt;br /&gt;
==== Vidalia (Tor interface) ====&lt;br /&gt;
[https://www.torproject.org/projects/vidalia.html Vidalia] is the recommended Qt4-based GUI frontend for Tor. If not installed with Tor, install:&lt;br /&gt;
 sudo apt-get install vidalia&lt;br /&gt;
&lt;br /&gt;
==== Using Tor with Firefox ====&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Recent versions of Firefox allow direct use of Tor as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy], both for traffic and DNS resolution. See [[Tor#Using_Tor_with_Firefox|this section]] for information on configuring this.&lt;br /&gt;
&lt;br /&gt;
===== Torbutton (Firefox plug-in) =====&lt;br /&gt;
* Once Tor is installed and running properly, [https://www.torproject.org/torbutton/ Torbutton] allows you to choose whether to use Firefox through the Tor anonymizing network or not. Torbutton only works with older (non-updated) versions of Firefox or with modified versions of Firefox found in the [[Tor#Tor_Browser_Bundle|Tor Browser Bundle]]. Newer versions of Firefox may refuse to start if Torbutton is installed. See [[Tor#Torbutton_(Firefox_plug-in)|this section]] for more details.&lt;br /&gt;
&lt;br /&gt;
=== DNS Servers and Search engines ===&lt;br /&gt;
* Most users rely on the [http://en.wikipedia.org/wiki/Domain_Name_System DNS] server of their ISP (Internet Service Provider). DNS queries can be recorded, however, and theoretically correlated by an ISP to the data traffic to/from a user's IP address serviced by that ISP. A somewhat less trackable solution is to use a DNS service that does not belong to your ISP. This can belong to another commercial ISP or to a third party service such as [http://www.opendns.com/ OpenDNS], [http://www.comodo.com/secure-dns/ Comodo], [http://www.scrubit.com/ ScrubIT], [http://code.google.com/speed/public-dns/ Google] (though slightly less secure due to Google's own tracking mechanisms), another [http://theos.in/windows-xp/free-fast-public-dns-server-list/ free DNS service], or (for maximum security) a publicly-available [http://portforward.com/networking/dns.htm international DNS server]. For example, a Verizon customer could use the [http://www.whatsmydns.net/dns/usa/att.html AT&amp;amp;T DNS servers] or the OpenDNS servers. An AT&amp;amp;T customer could use one of the [http://www.dslreports.com/faq/1591 Verizon servers] or the Google servers. It is important to use a reliable DNS provider, however, as [http://en.wikipedia.org/wiki/Man-in-the-middle_attack man-in-the-middle DNS redirection] and [http://en.wikipedia.org/wiki/DNS_cache_poisoning DNS cache poisoning] attacks are increasingly common. Stick to one of the major DNS services (just not your own ISP's DNS service). It is important to note that starting Feburary 25, 2013, 5 major ISPs (Internet Service Providers) in the US (Comcast, Verizon, AT&amp;amp;T, Time Warner Cable, and Cablevision) have agreed to IP address recording and reporting (to the [https://en.wikipedia.org/wiki/Center_for_Copyright_Information CCI]) on behalf of the [https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America MPAA] and [https://en.wikipedia.org/wiki/Recording_Industry_Association_of_America RIAA]. If using one of these ISPs, take extra efforts to ensure your privacy.&lt;br /&gt;
&lt;br /&gt;
The DNS server setting can be changed in the router's settings (recommended) or individually for each computer. If changing on an individual computer, use the Network Manager or Wicd settings, or if using a static IP address with manually configured settings, add a line to /etc/network/interfaces with a list of the desired dns-nameservers at the end of the iface stanza so that the file resembles:&lt;br /&gt;
&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 address 192.168.0.35&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 network 192.168.0.0&lt;br /&gt;
 broadcast 192.168.0.255&lt;br /&gt;
 gateway 192.168.0.1&lt;br /&gt;
 dns-nameservers 8.26.56.26 208.67.222.222 8.20.247.20 208.67.220.220 8.8.8.8 8.8.4.4&lt;br /&gt;
&lt;br /&gt;
* Many search engines track your search requests (notably Google, Bing, and Yahoo) and keep logs of the searches they receive from your IP address. [https://duckduckgo.com DuckDuckGo.com] is a filtered search engine that has made its reputation not only by promising not to track searches, but also by providing a secure (encrypted), Tor-capable and anonymized search portal. Point your browser to https://duckduckgo.com. It can be used with your Torbutton turned on.&lt;br /&gt;
&lt;br /&gt;
* Many censorship/filtering/tracking techniques (that use [https://secure.wikimedia.org/wikipedia/en/wiki/Deep_packet_inspection deep packet inspection]) cannot be used with secure ([https://secure.wikimedia.org/wikipedia/en/wiki/Transport_Layer_Security SSL/TLS] encrypted) websites (denoted by ''[https://secure.wikimedia.org/wikipedia/en/wiki/HTTP_Secure &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;]'' ). Use them whenever possible. For example, use the [https://secure.wikimedia.org/ secure Wikimedia portal] for Wikipedia (and other Wikimedia services) instead of the insecure portal(s).&lt;br /&gt;
&lt;br /&gt;
* Many websites keep logs of referring http headers (which can be correlated with cookies to track your browsing activities). To turn off the passage of referral headers in Firefox, see [http://cafe.elharo.com/privacy/privacy-tip-3-block-referer-headers-in-firefox/ this info].&lt;br /&gt;
&lt;br /&gt;
=== Changing a MAC address ===&lt;br /&gt;
The MAC address of your network interface card is the &amp;quot;fingerprint&amp;quot; of your network connection. It is not possible to hide the MAC address and most tracking methods now use the MAC address to record user habits. To combat this, it is possible to change (&amp;quot;spoof&amp;quot;) your apparent MAC address using software. It is important to remember, however, that it is generally the MAC address of the router (not computers on a LAN) which is displayed to the Internet. If you change the MAC of your computer but not the MAC of your router, you will gain nothing. Be sure to change both frequently (but most importantly that of the router).&lt;br /&gt;
&lt;br /&gt;
* It is possible to set the MAC address to a random selection in the Network Manager configuration:&lt;br /&gt;
:Network Manager -&amp;gt;  Manage Connections... -&amp;gt; ''connection'' -&amp;gt; Edit... -&amp;gt; Ethernet -&amp;gt; Cloned MAC Address -&amp;gt; Random -&amp;gt; Ok&lt;br /&gt;
&lt;br /&gt;
* [http://www.alobbs.com/macchanger Macchanger] is a utility to change a MAC address. Install:&lt;br /&gt;
 suod apt-get install macchanger&lt;br /&gt;
&lt;br /&gt;
=== Certificate verification ===&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Certificate_authority Certificate authorities] charge a fee to store and verify [http://en.wikipedia.org/wiki/Public_key_certificate certificates]. However, many websites use [http://en.wikipedia.org/wiki/Self-signed_certificate self-signed certificates] that are not registered with any certifying authority. A free system of certificate &amp;quot;network notaries&amp;quot; has emerged called [http://perspectives-project.org/ Perspectives]. A certificate's validity (even if self-signed) can be checked using a [https://addons.mozilla.org/en-US/firefox/addon/perspectives/ Firefox plugin]. For more info see [http://www.dedoimedo.com/computers/firefox-perspectives.html this article].&lt;br /&gt;
&lt;br /&gt;
* [https://secure.wikimedia.org/wikipedia/en/wiki/CAcert.org CAcert.org] is a free certifying authority that maintains weak certificates that are recognized by many open source operating systems, but not by Firefox or most browsers. (For browsers that do not include CAcert.org recognition, certificates appear to be self-signed certificates.) While Debian incorporates CACert.org's root certificate by default, Ubuntu derivatives do not ([https://secure.wikimedia.org/wikipedia/en/wiki/Canonical_Ltd. Canonical] was originally founded with funds earned from [https://secure.wikimedia.org/wikipedia/en/wiki/Thawte Thawte], a certifying authority founded by [https://secure.wikimedia.org/wikipedia/en/wiki/Mark_Shuttleworth Mark Shuttleworth].)&lt;br /&gt;
&lt;br /&gt;
== Passwords and file authentication ==&lt;br /&gt;
* See this excellent article at H-Online about [http://www.h-online.com/security/features/Password-protection-for-everyone-1795647.html password protection for everyone].&lt;br /&gt;
&lt;br /&gt;
=== Random password generator ===&lt;br /&gt;
* Pwgen is a command line utility to generate a block of random 8-digit alphanumeric passwords. Run it from Konsole (in Kubuntu) or Terminal (in Ubuntu). Install:&lt;br /&gt;
 sudo apt-get install pwgen&lt;br /&gt;
:* Run pwgen:&lt;br /&gt;
 pwgen&lt;br /&gt;
&lt;br /&gt;
* UUIDgen is a default utility to generate a random UUID (using only [http://en.wikipedia.org/wiki/Hexadecimal hex-digits]). Run:&lt;br /&gt;
 uuidgen&lt;br /&gt;
&lt;br /&gt;
The random UUID can also be used as a 32-digit password, if desired.&lt;br /&gt;
&lt;br /&gt;
=== Password checker and enforcement ===&lt;br /&gt;
[http://www.openwall.com/john/ John the Ripper] is a free open source password cracker that uses a dictionary of over 4 million commonly used passwords in many languages. Because this tool is widely available, it is useful for scanning and securing your own LAN and computers for password strength. Install:&lt;br /&gt;
 sudo apt-get install john&lt;br /&gt;
&lt;br /&gt;
* [http://www.openwall.com/passwdqc/ Passwdqc] is a module to enforce password strength. Install:&lt;br /&gt;
 sudo apt-get install passwdqc&lt;br /&gt;
&lt;br /&gt;
=== MD5Sum ===&lt;br /&gt;
To check the MD5 sum of a file, use this command in the command line:&lt;br /&gt;
 md5sum ''filename''&lt;br /&gt;
&lt;br /&gt;
== File archival and encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
&lt;br /&gt;
=== Archives with Passwords ===&lt;br /&gt;
* See [[Ubuntu_Precise_Utilities#Archiving_Utilities|this section]].&lt;br /&gt;
&lt;br /&gt;
== Disk and Storage Encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
* See the [http://help.ubuntu.com/community/FullDiskEncryptionHowto Ubuntu Community documentation] for methods of full disk encryption.&lt;br /&gt;
* See the [http://help.ubuntu.com/community/EncryptedFilesystems Ubuntu Community documentation] for methods of filesystem encryption.&lt;/div&gt;</description>
			<pubDate>Sun, 28 Apr 2013 05:17:21 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:U_Precise/Privacy</comments>		</item>
		<item>
			<title>Template:K Precise/Privacy</title>
			<link>http://easylinux.info/wiki/Template:K_Precise/Privacy</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* DNS Servers and Search engines */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Privacy =&lt;br /&gt;
An interesting perspective on Internet privacy techniques can be found [http://farid.hajji.name/blog/2009/06/20/circumventing-internet-censorship/ here].&lt;br /&gt;
&lt;br /&gt;
== PGP (Message Encryption) ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/GNU_Privacy_Guard GnuPG] is the free open source implementation of the OpenPGP standard for [http://en.wikipedia.org/wiki/Pretty_Good_Privacy PGP]. It is a tool to encrypt your messages (such as email) to be unlocked only by someone who has a key to unlock it. While gpg is the default OpenPGP tool for command-line usage, gpg2 is the utility generally used by GUI frontends.&lt;br /&gt;
&lt;br /&gt;
=== Enigmail with Thunderbird ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] By far the easiest method for encrypting email is using the [[Kubuntu:Precise#Enigmail|Enigmail]] add-on for the [[Kubuntu:Precise#Thunderbird|Thunderbird]] email client. It creates PGP key pairs, stores and retrieves keys from keyrings, and encrypts and decrypts messages automatically.&lt;br /&gt;
&lt;br /&gt;
=== Kleopatra (Cryptography and Certificate Manager) ===&lt;br /&gt;
[http://www.kde.org/applications/utilities/kleopatra/ Kleopatra] is a certificate manager and a universal crypto GUI for KDE. It supports managing X.509 and OpenPGP certificates in the GpgSM keybox and retrieving certificates from LDAP servers. Install:&lt;br /&gt;
 sudo apt-get install kleopatra&lt;br /&gt;
&lt;br /&gt;
* Create a new OpenPGP keypair:&lt;br /&gt;
:K menu -&amp;gt; Utilities -&amp;gt; Kleopatra -&amp;gt; File -&amp;gt; New Certificate... -&amp;gt; Create a personal OpenPGP key pair&lt;br /&gt;
&lt;br /&gt;
=== KGPG ===&lt;br /&gt;
[http://utils.kde.org/projects/kgpg/ KGpg] is the GUI for KDE to manage the key pairs and other options of [http://www.gnupg.org/ GnuPG]. It has fewer options than Kleopatra. Install:&lt;br /&gt;
 sudo apt-get install kgpg&lt;br /&gt;
&lt;br /&gt;
=== PGP Troubleshooting ===&lt;br /&gt;
If KGPG or Kleopatra gives an error, it is because of a problem with settings in the gpg.conf configuration file ( ~/.gnupg/gpg.conf). Edit the file (using either ~/ or /home/''user''/ ):&lt;br /&gt;
 kate /home/''user''/.gnupg/gpg.conf&lt;br /&gt;
&lt;br /&gt;
Comment out the two lines at the bottom:&lt;br /&gt;
 #debug-level basic&lt;br /&gt;
 #log-file socket:///home/''user''/.gnupg/log-socket&lt;br /&gt;
&lt;br /&gt;
== Web browsing ==&lt;br /&gt;
Web tracking, scripts, and advertisements are extremely intrusive on the Internet. A dossier of your online habits is created by a multitude of services, including every major portal such as Google and Yahoo, as well as a variety of tracking services on the Internet. This is accomplished through the use of the &amp;quot;cookies&amp;quot; in your browser and by a variety of web elements (sometimes called &amp;quot;web beacons&amp;quot;) embedded on the web pages you visit. Your behavior is monitored and correlated by recording the IP address of your computer, even when you turn off the cookies in your browser. Still, it is highly recommended to configure your web browser to erase your [http://support.mozilla.org/en-US/kb/Cookies cookies] and history every time the web browser is closed; otherwise, every website you subsequently visit can instantly see the long list of recent websites you have visited. In Firefox, for example, cookies can be accepted for the current session but erased upon closing:&lt;br /&gt;
:Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Privacy -&amp;gt; History -&amp;gt; Firefox will: ''Use custom settings for history''&lt;br /&gt;
:-&amp;gt; ''Always use private browsing mode'' (or customise the settings to your desired level of privacy)&lt;br /&gt;
* In addition, both [[Kubuntu:Precise#Adblock_Plus_plug-in_.28block_ads_in_a_web_page.29|Adblock Plus]] and [[Kubuntu:Precise#NoScript_plug-in_.28controls_scripts.29|NoScript]] are highly recommended as plug-ins for Firefox (and other Gecko-based browsers) to limit exposure to undesirable web elements, scripts, and tracking mechanisms.&lt;br /&gt;
&lt;br /&gt;
== Tor (Network privacy) ==&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://www.torproject.org/ Tor] is a project to allow privacy while using the Internet and to limit usage tracking. It routes your traffic through several anonymous nodes, so that your usage appears to come from an IP other than your own. (There are always risks when using the Internet that even Tor can not help with, though. Read [http://www.torproject.org/download.html.en#Warning this].) Using Tor can slow down your Internet usage significantly, depending on how much traffic is being passed through the Tor network (routine file-sharing or large downloads will also significantly reduce performance of the Tor network.)&lt;br /&gt;
&amp;lt;!---&amp;gt;&lt;br /&gt;
* Install the Privoxy http proxy (optional for most users):&lt;br /&gt;
 sudo apt-get install privoxy&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install Tor by following the instructions [https://www.torproject.org/docs/debian here]. Note that the instructions require port 11371 on your firewall to be open to use the gpg keyserver (and download the key for the debian package). Then see the [http://www.torproject.org/docs/tor-doc-unix.html Tor installation guide] for details.&lt;br /&gt;
&lt;br /&gt;
* By default Tor (once it is running) acts as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy] on port 9050. To send traffic from any application through Tor, configure the settings of that application to use a socks5 proxy on port 9050.&lt;br /&gt;
&lt;br /&gt;
* Also see these additional [[Tor|tips]].&lt;br /&gt;
&lt;br /&gt;
=== Vidalia (Tor interface) ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [https://www.torproject.org/projects/vidalia.html Vidalia] is the recommended Qt4-based GUI frontend for Tor. If not installed with Tor, install:&lt;br /&gt;
 sudo apt-get install vidalia&lt;br /&gt;
&lt;br /&gt;
=== Tork (KDE Tor interface) ===&lt;br /&gt;
[http://sourceforge.net/projects/tork/ TorK] is a KDE interface for Tor that relied on the older Qt3 platform. It is no longer included in the (K)Ubuntu repositories. However, if desired it can be installed (along with the older Qt3 libraries). See [[Tor#Tork_.28KDE_Tor_interface.29|this section]].&lt;br /&gt;
&lt;br /&gt;
=== Using Tor with Firefox ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Recent versions of Firefox allow direct use of Tor as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy], both for traffic and DNS resolution. See [[Tor#Using_Tor_with_Firefox|this section]] for information on configuring this.&lt;br /&gt;
&lt;br /&gt;
==== Torbutton (Firefox plug-in) ====&lt;br /&gt;
* Once Tor is installed and running properly, [https://www.torproject.org/torbutton/ Torbutton] allows you to choose whether to use Firefox through the Tor anonymizing network or not. Torbutton only works with older (non-updated) versions of Firefox or with modified versions of Firefox found in the [[Tor#Tor_Browser_Bundle|Tor Browser Bundle]]. Newer versions of Firefox may refuse to start if Torbutton is installed. See [[Tor#Torbutton_(Firefox_plug-in)|this section]] for more details.&lt;br /&gt;
&lt;br /&gt;
== DNS Servers and Search engines ==&lt;br /&gt;
* Most users rely on the [http://en.wikipedia.org/wiki/Domain_Name_System DNS] server of their ISP (Internet Service Provider). DNS queries can be recorded, however, and theoretically correlated by an ISP to the data traffic to/from a user's IP address serviced by that ISP. A somewhat less trackable solution is to use a DNS service that does not belong to your ISP. This can belong to another commercial ISP or to a third party service such as [http://www.opendns.com/ OpenDNS], [http://www.comodo.com/secure-dns/ Comodo], [http://www.scrubit.com/ ScrubIT], [http://code.google.com/speed/public-dns/ Google] (though slightly less secure due to Google's own tracking mechanisms), another [http://theos.in/windows-xp/free-fast-public-dns-server-list/ free DNS service], or (for maximum security) a publicly-available [http://portforward.com/networking/dns.htm international DNS server]. For example, a Verizon customer could use the [http://www.whatsmydns.net/dns/usa/att.html AT&amp;amp;T DNS servers] or the OpenDNS servers. An AT&amp;amp;T customer could use one of the [http://www.dslreports.com/faq/1591 Verizon servers] or the Google servers. It is important to use a reliable DNS provider, however, as [http://en.wikipedia.org/wiki/Man-in-the-middle_attack man-in-the-middle DNS redirection] and [http://en.wikipedia.org/wiki/DNS_cache_poisoning DNS cache poisoning] attacks are increasingly common. Stick to one of the major DNS services (just not your own ISP's DNS service). It is important to note that starting Feburary 25, 2013, 5 major ISPs (Internet Service Providers) in the US (Comcast, Verizon, AT&amp;amp;T, Time Warner Cable, and Cablevision) have agreed to IP address recording and reporting (to the [https://en.wikipedia.org/wiki/Center_for_Copyright_Information CCI]) on behalf of the [https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America MPAA] and [https://en.wikipedia.org/wiki/Recording_Industry_Association_of_America RIAA]. If using one of these ISPs, take extra efforts to ensure your privacy.&lt;br /&gt;
&lt;br /&gt;
The DNS server setting can be changed in the router's settings (recommended) or individually for each computer. If changing on an individual computer, use the Network Manager or Wicd settings, or if using a static IP address with manually configured settings, add a line to /etc/network/interfaces with a list of the desired dns-nameservers at the end of the iface stanza so that the file resembles:&lt;br /&gt;
&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 address 192.168.0.35&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 network 192.168.0.0&lt;br /&gt;
 broadcast 192.168.0.255&lt;br /&gt;
 gateway 192.168.0.1&lt;br /&gt;
 dns-nameservers 8.26.56.26 208.67.222.222 8.20.247.20 208.67.220.220 8.8.8.8 8.8.4.4&lt;br /&gt;
&lt;br /&gt;
* Many search engines track your search requests (notably Google, Bing, and Yahoo) and keep logs of the searches they receive from your IP address. [https://duckduckgo.com DuckDuckGo.com] is a filtered search engine that has made its reputation not only by promising not to track searches, but also by providing a secure (encrypted), Tor-capable and anonymized search portal. Point your browser to https://duckduckgo.com. (It can be used with your Torbutton turned on.)&lt;br /&gt;
&lt;br /&gt;
* Many censorship/filtering/tracking techniques (that use [https://secure.wikimedia.org/wikipedia/en/wiki/Deep_packet_inspection deep packet inspection]) cannot be used with secure ([https://secure.wikimedia.org/wikipedia/en/wiki/Transport_Layer_Security SSL/TLS] encrypted) websites (denoted by ''[https://secure.wikimedia.org/wikipedia/en/wiki/HTTP_Secure &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;]'' ). Use them whenever possible. For example, use the [https://secure.wikimedia.org/ secure Wikimedia portal] for Wikipedia (and other Wikimedia services) instead of the insecure portal(s).&lt;br /&gt;
&lt;br /&gt;
* Many websites keep logs of referring http headers (which can be correlated with cookies to track your browsing activities). To turn off the passage of referral headers in Firefox, see [http://cafe.elharo.com/privacy/privacy-tip-3-block-referer-headers-in-firefox/ this info].&lt;br /&gt;
&lt;br /&gt;
== Changing a MAC address ==&lt;br /&gt;
The MAC address of your network interface card is the &amp;quot;fingerprint&amp;quot; of your network connection. It is not possible to hide the MAC address and most tracking methods now use the MAC address to record user habits. To combat this, it is possible to change (&amp;quot;spoof&amp;quot;) your apparent MAC address using software. It is important to remember, however, that it is generally the MAC address of the router (not computers on a LAN) which is displayed to the Internet. If you change the MAC of your computer but not the MAC of your router, you will gain nothing. Be sure to change both frequently (but most importantly that of the router).&lt;br /&gt;
&lt;br /&gt;
* It is possible to set the MAC address to a random selection in the Network Manager configuration:&lt;br /&gt;
:Network Manager -&amp;gt;  Manage Connections... -&amp;gt; ''connection'' -&amp;gt; Edit... -&amp;gt; Ethernet -&amp;gt; Cloned MAC Address -&amp;gt; Random -&amp;gt; Ok&lt;br /&gt;
&lt;br /&gt;
* [http://www.alobbs.com/macchanger Macchanger] is a utility to change a MAC address. Install:&lt;br /&gt;
 suod apt-get install macchanger&lt;br /&gt;
&lt;br /&gt;
== Certificate verification ==&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Certificate_authority Certificate authorities] charge a fee to store and verify [http://en.wikipedia.org/wiki/Public_key_certificate certificates]. However, many websites use [http://en.wikipedia.org/wiki/Self-signed_certificate self-signed certificates] that are not registered with any certifying authority. A free system of certificate &amp;quot;network notaries&amp;quot; has emerged called [http://perspectives-project.org/ Perspectives]. A certificate's validity (even if self-signed) can be checked using a [https://addons.mozilla.org/en-US/firefox/addon/perspectives/ Firefox plugin]. For more info see [http://www.dedoimedo.com/computers/firefox-perspectives.html this article].&lt;br /&gt;
&lt;br /&gt;
* [https://secure.wikimedia.org/wikipedia/en/wiki/CAcert.org CAcert.org] is a free certifying authority that maintains weak certificates that are recognized by many open source operating systems, but not by Firefox or most browsers. (For browsers that do not include CAcert.org recognition, certificates appear to be self-signed certificates.) While Debian incorporates CACert.org's root certificate by default, Ubuntu derivatives do not ([https://secure.wikimedia.org/wikipedia/en/wiki/Canonical_Ltd. Canonical] was originally founded with funds earned from [https://secure.wikimedia.org/wikipedia/en/wiki/Thawte Thawte], a certifying authority founded by [https://secure.wikimedia.org/wikipedia/en/wiki/Mark_Shuttleworth Mark Shuttleworth].)&lt;br /&gt;
&lt;br /&gt;
== Passwords and file authentication ==&lt;br /&gt;
* See this excellent article at H-Online about [http://www.h-online.com/security/features/Password-protection-for-everyone-1795647.html password protection for everyone].&lt;br /&gt;
&lt;br /&gt;
=== Random password generator ===&lt;br /&gt;
* Pwgen is a command line utility to generate a block of random 8-digit alphanumeric passwords. Run it from Konsole (in Kubuntu) or Terminal (in Ubuntu). Install:&lt;br /&gt;
 sudo apt-get install pwgen&lt;br /&gt;
:* Run pwgen:&lt;br /&gt;
 pwgen&lt;br /&gt;
&lt;br /&gt;
* UUIDgen is a default utility to generate a random UUID (using only [http://en.wikipedia.org/wiki/Hexadecimal hex-digits]). Run:&lt;br /&gt;
 uuidgen&lt;br /&gt;
&lt;br /&gt;
The random UUID can also be used as a 32-digit password, if desired.&lt;br /&gt;
&lt;br /&gt;
=== Password checker and enforcement ===&lt;br /&gt;
[http://www.openwall.com/john/ John the Ripper] is a free open source password cracker that uses a dictionary of over 4 million commonly used passwords in many languages. Because this tool is widely available, it is useful for scanning and securing your own LAN and computers for password strength. Install:&lt;br /&gt;
 sudo apt-get install john&lt;br /&gt;
&lt;br /&gt;
* [http://www.openwall.com/passwdqc/ Passwdqc] is a module to enforce password strength. Install:&lt;br /&gt;
 sudo apt-get install passwdqc&lt;br /&gt;
&lt;br /&gt;
=== MD5Sum ===&lt;br /&gt;
To check the MD5 sum of a file, use this command in the command line:&lt;br /&gt;
 md5sum ''filename''&lt;br /&gt;
&lt;br /&gt;
== File archival and encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
&lt;br /&gt;
=== Archives with Passwords ===&lt;br /&gt;
* See [[Kubuntu_Precise_Utilities#Archiving_Utilities|this section]].&lt;br /&gt;
&lt;br /&gt;
== Disk and Storage Encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
* See the [http://help.ubuntu.com/community/FullDiskEncryptionHowto Ubuntu Community documentation] for methods of full disk encryption.&lt;br /&gt;
* See the [http://help.ubuntu.com/community/EncryptedFilesystems Ubuntu Community documentation] for methods of filesystem encryption.&lt;/div&gt;</description>
			<pubDate>Sun, 28 Apr 2013 05:16:10 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:K_Precise/Privacy</comments>		</item>
		<item>
			<title>Template:K Quantal/Privacy</title>
			<link>http://easylinux.info/wiki/Template:K_Quantal/Privacy</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* DNS Servers and Search engines */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Privacy =&lt;br /&gt;
An interesting perspective on Internet privacy techniques can be found [http://farid.hajji.name/blog/2009/06/20/circumventing-internet-censorship/ here].&lt;br /&gt;
&lt;br /&gt;
== PGP (Message Encryption) ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/GNU_Privacy_Guard GnuPG] is the free open source implementation of the OpenPGP standard for [http://en.wikipedia.org/wiki/Pretty_Good_Privacy PGP]. It is a tool to encrypt your messages (such as email) to be unlocked only by someone who has a key to unlock it. While gpg is the default OpenPGP tool for command-line usage, gpg2 is the utility generally used by GUI frontends.&lt;br /&gt;
&lt;br /&gt;
=== Enigmail with Thunderbird ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] By far the easiest method for encrypting email is using the [[Kubuntu:Quantal#Enigmail|Enigmail]] add-on for the [[Kubuntu:Quantal#Thunderbird|Thunderbird]] email client. It creates PGP key pairs, stores and retrieves keys from keyrings, and encrypts and decrypts messages automatically.&lt;br /&gt;
&lt;br /&gt;
=== Kleopatra (Cryptography and Certificate Manager) ===&lt;br /&gt;
[http://www.kde.org/applications/utilities/kleopatra/ Kleopatra] is a certificate manager and a universal crypto GUI for KDE. It supports managing X.509 and OpenPGP certificates in the GpgSM keybox and retrieving certificates from LDAP servers. Install:&lt;br /&gt;
 sudo apt-get install kleopatra&lt;br /&gt;
&lt;br /&gt;
* Create a new OpenPGP keypair:&lt;br /&gt;
:K menu -&amp;gt; Utilities -&amp;gt; Kleopatra -&amp;gt; File -&amp;gt; New Certificate... -&amp;gt; Create a personal OpenPGP key pair&lt;br /&gt;
&lt;br /&gt;
=== KGPG ===&lt;br /&gt;
[http://utils.kde.org/projects/kgpg/ KGpg] is the GUI for KDE to manage the key pairs and other options of [http://www.gnupg.org/ GnuPG]. It has fewer options than Kleopatra. Install:&lt;br /&gt;
 sudo apt-get install kgpg&lt;br /&gt;
&lt;br /&gt;
=== PGP Troubleshooting ===&lt;br /&gt;
If KGPG or Kleopatra gives an error, it is because of a problem with settings in the gpg.conf configuration file ( ~/.gnupg/gpg.conf). Edit the file (using either ~/ or /home/''user''/ ):&lt;br /&gt;
 kate /home/''user''/.gnupg/gpg.conf&lt;br /&gt;
&lt;br /&gt;
Comment out the two lines at the bottom:&lt;br /&gt;
 #debug-level basic&lt;br /&gt;
 #log-file socket:///home/''user''/.gnupg/log-socket&lt;br /&gt;
&lt;br /&gt;
== Web browsing ==&lt;br /&gt;
Web tracking, scripts, and advertisements are extremely intrusive on the Internet. A dossier of your online habits is created by a multitude of services, including every major portal such as Google and Yahoo, as well as a variety of tracking services on the Internet. This is accomplished through the use of the &amp;quot;cookies&amp;quot; in your browser and by a variety of web elements (sometimes called &amp;quot;web beacons&amp;quot;) embedded on the web pages you visit. Your behavior is monitored and correlated by recording the IP address of your computer, even when you turn off the cookies in your browser. Still, it is highly recommended to configure your web browser to erase your [http://support.mozilla.org/en-US/kb/Cookies cookies] and history every time the web browser is closed; otherwise, every website you subsequently visit can instantly see the long list of recent websites you have visited. In Firefox, for example, cookies can be accepted for the current session but erased upon closing:&lt;br /&gt;
:Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Privacy -&amp;gt; History -&amp;gt; Firefox will: ''Use custom settings for history''&lt;br /&gt;
:-&amp;gt; ''Always use private browsing mode'' (or customise the settings to your desired level of privacy)&lt;br /&gt;
* In addition, both [[Kubuntu:Quantal#Adblock_Plus_plug-in_.28block_ads_in_a_web_page.29|Adblock Plus]] and [[Kubuntu:Quantal#NoScript_plug-in_.28controls_scripts.29|NoScript]] are highly recommended as plug-ins for Firefox (and other Gecko-based browsers) to limit exposure to undesirable web elements, scripts, and tracking mechanisms.&lt;br /&gt;
&lt;br /&gt;
== Tor (Network privacy) ==&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://www.torproject.org/ Tor] is a project to allow privacy while using the Internet and to limit usage tracking. It routes your traffic through several anonymous nodes, so that your usage appears to come from an IP other than your own. (There are always risks when using the Internet that even Tor can not help with, though. Read [http://www.torproject.org/download.html.en#Warning this].) Using Tor can slow down your Internet usage significantly, depending on how much traffic is being passed through the Tor network (routine file-sharing or large downloads will also significantly reduce performance of the Tor network.)&lt;br /&gt;
&amp;lt;!---&amp;gt;&lt;br /&gt;
* Install the Privoxy http proxy (optional for most users):&lt;br /&gt;
 sudo apt-get install privoxy&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install Tor by following the instructions [https://www.torproject.org/docs/debian here]. Note that the instructions require port 11371 on your firewall to be open to use the gpg keyserver (and download the key for the debian package). Then see the [http://www.torproject.org/docs/tor-doc-unix.html Tor installation guide] for details.&lt;br /&gt;
&lt;br /&gt;
* By default Tor (once it is running) acts as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy] on port 9050. To send traffic from any application through Tor, configure the settings of that application to use a socks5 proxy on port 9050.&lt;br /&gt;
&lt;br /&gt;
* Also see these additional [[Tor|tips]].&lt;br /&gt;
&lt;br /&gt;
=== Vidalia (Tor interface) ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [https://www.torproject.org/projects/vidalia.html Vidalia] is the recommended Qt4-based GUI frontend for Tor. If not installed with Tor, install:&lt;br /&gt;
 sudo apt-get install vidalia&lt;br /&gt;
&lt;br /&gt;
=== Tork (KDE Tor interface) ===&lt;br /&gt;
[http://sourceforge.net/projects/tork/ TorK] is a KDE interface for Tor that relied on the older Qt3 platform. It is no longer included in the (K)Ubuntu repositories. However, if desired it can be installed (along with the older Qt3 libraries). See [[Tor#Tork_.28KDE_Tor_interface.29|this section]].&lt;br /&gt;
&lt;br /&gt;
=== Using Tor with Firefox ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Recent versions of Firefox allow direct use of Tor as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy], both for traffic and DNS resolution. See [[Tor#Using_Tor_with_Firefox|this section]] for information on configuring this.&lt;br /&gt;
&lt;br /&gt;
==== Torbutton (Firefox plug-in) ====&lt;br /&gt;
* Once Tor is installed and running properly, [https://www.torproject.org/torbutton/ Torbutton] allows you to choose whether to use Firefox through the Tor anonymizing network or not. Torbutton only works with older (non-updated) versions of Firefox or with modified versions of Firefox found in the [[Tor#Tor_Browser_Bundle|Tor Browser Bundle]]. Newer versions of Firefox may refuse to start if Torbutton is installed. See [[Tor#Torbutton_(Firefox_plug-in)|this section]] for more details.&lt;br /&gt;
&lt;br /&gt;
== DNS Servers and Search engines ==&lt;br /&gt;
* Most users rely on the [http://en.wikipedia.org/wiki/Domain_Name_System DNS] server of their ISP (Internet Service Provider). DNS queries can be recorded, however, and theoretically correlated by an ISP to the data traffic to/from a user's IP address serviced by that ISP. A somewhat less trackable solution is to use a DNS service that does not belong to your ISP. This can belong to another commercial ISP or to a third party service such as [http://www.opendns.com/ OpenDNS], [http://www.comodo.com/secure-dns/ Comodo], [http://www.scrubit.com/ ScrubIT], [http://code.google.com/speed/public-dns/ Google] (though slightly less secure due to Google's own tracking mechanisms), another [http://theos.in/windows-xp/free-fast-public-dns-server-list/ free DNS service], or (for maximum security) a publicly-available [http://portforward.com/networking/dns.htm international DNS server]. For example, a Verizon customer could use the [http://www.whatsmydns.net/dns/usa/att.html AT&amp;amp;T DNS servers] or the OpenDNS servers. An AT&amp;amp;T customer could use one of the [http://www.dslreports.com/faq/1591 Verizon servers] or the Google servers. It is important to use a reliable DNS provider, however, as [http://en.wikipedia.org/wiki/Man-in-the-middle_attack man-in-the-middle DNS redirection] and [http://en.wikipedia.org/wiki/DNS_cache_poisoning DNS cache poisoning] attacks are increasingly common. Stick to one of the major DNS services (just not your own ISP's DNS service). It is important to note that starting Feburary 25, 2013, 5 major ISPs (Internet Service Providers) in the US (Comcast, Verizon, AT&amp;amp;T, Time Warner Cable, and Cablevision) have agreed to IP address recording and reporting (to the [https://en.wikipedia.org/wiki/Center_for_Copyright_Information CCI]) on behalf of the [https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America MPAA] and [https://en.wikipedia.org/wiki/Recording_Industry_Association_of_America RIAA]. If using one of these ISPs, take extra efforts to ensure your privacy.&lt;br /&gt;
&lt;br /&gt;
The DNS server setting can be changed in the router's settings (recommended) or individually for each computer. If changing on an individual computer, use the Network Manager or Wicd settings, or if using a static IP address with manually configured settings, add a line to /etc/network/interfaces with a list of the desired dns-nameservers at the end of the iface stanza so that the file resembles:&lt;br /&gt;
&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 address 192.168.0.35&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 network 192.168.0.0&lt;br /&gt;
 broadcast 192.168.0.255&lt;br /&gt;
 gateway 192.168.0.1&lt;br /&gt;
 dns-nameservers 8.26.56.26 208.67.222.222 8.20.247.20 208.67.220.220 8.8.8.8 8.8.4.4&lt;br /&gt;
&lt;br /&gt;
* Many search engines track your search requests (notably Google, Bing, and Yahoo) and keep logs of the searches they receive from your IP address. [https://duckduckgo.com DuckDuckGo.com] is a filtered search engine that has made its reputation not only by promising not to track searches, but also by providing a secure (encrypted), Tor-capable and anonymized search portal. Point your browser to https://duckduckgo.com. (It can be used with your Torbutton turned on.)&lt;br /&gt;
&lt;br /&gt;
* Many censorship/filtering/tracking techniques (that use [https://secure.wikimedia.org/wikipedia/en/wiki/Deep_packet_inspection deep packet inspection]) cannot be used with secure ([https://secure.wikimedia.org/wikipedia/en/wiki/Transport_Layer_Security SSL/TLS] encrypted) websites (denoted by ''[https://secure.wikimedia.org/wikipedia/en/wiki/HTTP_Secure &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;]'' ). Use them whenever possible. For example, use the [https://secure.wikimedia.org/ secure Wikimedia portal] for Wikipedia (and other Wikimedia services) instead of the insecure portal(s).&lt;br /&gt;
&lt;br /&gt;
* Many websites keep logs of referring http headers (which can be correlated with cookies to track your browsing activities). To turn off the passage of referral headers in Firefox, see [http://cafe.elharo.com/privacy/privacy-tip-3-block-referer-headers-in-firefox/ this info].&lt;br /&gt;
&lt;br /&gt;
== Changing a MAC address ==&lt;br /&gt;
The MAC address of your network interface card is the &amp;quot;fingerprint&amp;quot; of your network connection. It is not possible to hide the MAC address and most tracking methods now use the MAC address to record user habits. To combat this, it is possible to change (&amp;quot;spoof&amp;quot;) your apparent MAC address using software. It is important to remember, however, that it is generally the MAC address of the router (not computers on a LAN) which is displayed to the Internet. If you change the MAC of your computer but not the MAC of your router, you will gain nothing. Be sure to change both frequently (but most importantly that of the router).&lt;br /&gt;
&lt;br /&gt;
* It is possible to set the MAC address to a random selection in the Network Manager configuration:&lt;br /&gt;
:Network Manager -&amp;gt;  Manage Connections... -&amp;gt; ''connection'' -&amp;gt; Edit... -&amp;gt; Ethernet -&amp;gt; Cloned MAC Address -&amp;gt; Random -&amp;gt; Ok&lt;br /&gt;
&lt;br /&gt;
* [http://www.alobbs.com/macchanger Macchanger] is a utility to change a MAC address. Install:&lt;br /&gt;
 suod apt-get install macchanger&lt;br /&gt;
&lt;br /&gt;
== Certificate verification ==&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Certificate_authority Certificate authorities] charge a fee to store and verify [http://en.wikipedia.org/wiki/Public_key_certificate certificates]. However, many websites use [http://en.wikipedia.org/wiki/Self-signed_certificate self-signed certificates] that are not registered with any certifying authority. A free system of certificate &amp;quot;network notaries&amp;quot; has emerged called [http://perspectives-project.org/ Perspectives]. A certificate's validity (even if self-signed) can be checked using a [https://addons.mozilla.org/en-US/firefox/addon/perspectives/ Firefox plugin]. For more info see [http://www.dedoimedo.com/computers/firefox-perspectives.html this article].&lt;br /&gt;
&lt;br /&gt;
* [https://secure.wikimedia.org/wikipedia/en/wiki/CAcert.org CAcert.org] is a free certifying authority that maintains weak certificates that are recognized by many open source operating systems, but not by Firefox or most browsers. (For browsers that do not include CAcert.org recognition, certificates appear to be self-signed certificates.) While Debian incorporates CACert.org's root certificate by default, Ubuntu derivatives do not ([https://secure.wikimedia.org/wikipedia/en/wiki/Canonical_Ltd. Canonical] was originally founded with funds earned from [https://secure.wikimedia.org/wikipedia/en/wiki/Thawte Thawte], a certifying authority founded by [https://secure.wikimedia.org/wikipedia/en/wiki/Mark_Shuttleworth Mark Shuttleworth].)&lt;br /&gt;
&lt;br /&gt;
== Passwords and file authentication ==&lt;br /&gt;
* See this excellent article at H-Online about [http://www.h-online.com/security/features/Password-protection-for-everyone-1795647.html password protection for everyone].&lt;br /&gt;
&lt;br /&gt;
=== Random password generator ===&lt;br /&gt;
* Pwgen is a command line utility to generate a block of random 8-digit alphanumeric passwords. Run it from Konsole (in Kubuntu) or Terminal (in Ubuntu). Install:&lt;br /&gt;
 sudo apt-get install pwgen&lt;br /&gt;
:* Run pwgen:&lt;br /&gt;
 pwgen&lt;br /&gt;
&lt;br /&gt;
* UUIDgen is a default utility to generate a random UUID (using only [http://en.wikipedia.org/wiki/Hexadecimal hex-digits]). Run:&lt;br /&gt;
 uuidgen&lt;br /&gt;
&lt;br /&gt;
The random UUID can also be used as a 32-digit password, if desired.&lt;br /&gt;
&lt;br /&gt;
=== Password checker and enforcement ===&lt;br /&gt;
[http://www.openwall.com/john/ John the Ripper] is a free open source password cracker that uses a dictionary of over 4 million commonly used passwords in many languages. Because this tool is widely available, it is useful for scanning and securing your own LAN and computers for password strength. Install:&lt;br /&gt;
 sudo apt-get install john&lt;br /&gt;
&lt;br /&gt;
* [http://www.openwall.com/passwdqc/ Passwdqc] is a module to enforce password strength. Install:&lt;br /&gt;
 sudo apt-get install passwdqc&lt;br /&gt;
&lt;br /&gt;
=== MD5Sum ===&lt;br /&gt;
To check the MD5 sum of a file, use this command in the command line:&lt;br /&gt;
 md5sum ''filename''&lt;br /&gt;
&lt;br /&gt;
== File archival and encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
&lt;br /&gt;
=== Archives with Passwords ===&lt;br /&gt;
* See [[Kubuntu_Quantal_Utilities#Archiving_Utilities|this section]].&lt;br /&gt;
&lt;br /&gt;
== Disk and Storage Encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
* See the [http://help.ubuntu.com/community/FullDiskEncryptionHowto Ubuntu Community documentation] for methods of full disk encryption.&lt;br /&gt;
* See the [http://help.ubuntu.com/community/EncryptedFilesystems Ubuntu Community documentation] for methods of filesystem encryption.&lt;/div&gt;</description>
			<pubDate>Sun, 28 Apr 2013 05:15:00 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:K_Quantal/Privacy</comments>		</item>
		<item>
			<title>Template:K Raring/Privacy</title>
			<link>http://easylinux.info/wiki/Template:K_Raring/Privacy</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* DNS Servers and Search engines */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Privacy =&lt;br /&gt;
An interesting perspective on Internet privacy techniques can be found [http://farid.hajji.name/blog/2009/06/20/circumventing-internet-censorship/ here].&lt;br /&gt;
&lt;br /&gt;
== PGP (Message Encryption) ==&lt;br /&gt;
[http://en.wikipedia.org/wiki/GNU_Privacy_Guard GnuPG] is the free open source implementation of the OpenPGP standard for [http://en.wikipedia.org/wiki/Pretty_Good_Privacy PGP]. It is a tool to encrypt your messages (such as email) to be unlocked only by someone who has a key to unlock it. While gpg is the default OpenPGP tool for command-line usage, gpg2 is the utility generally used by GUI frontends.&lt;br /&gt;
&lt;br /&gt;
=== Enigmail with Thunderbird ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] By far the easiest method for encrypting email is using the [[Kubuntu:Raring#Enigmail|Enigmail]] add-on for the [[Kubuntu:Raring#Thunderbird|Thunderbird]] email client. It creates PGP key pairs, stores and retrieves keys from keyrings, and encrypts and decrypts messages automatically.&lt;br /&gt;
&lt;br /&gt;
=== Kleopatra (Cryptography and Certificate Manager) ===&lt;br /&gt;
[http://www.kde.org/applications/utilities/kleopatra/ Kleopatra] is a certificate manager and a universal crypto GUI for KDE. It supports managing X.509 and OpenPGP certificates in the GpgSM keybox and retrieving certificates from LDAP servers. Install:&lt;br /&gt;
 sudo apt-get install kleopatra&lt;br /&gt;
&lt;br /&gt;
* Create a new OpenPGP keypair:&lt;br /&gt;
:K menu -&amp;gt; Utilities -&amp;gt; Kleopatra -&amp;gt; File -&amp;gt; New Certificate... -&amp;gt; Create a personal OpenPGP key pair&lt;br /&gt;
&lt;br /&gt;
=== KGPG ===&lt;br /&gt;
[http://utils.kde.org/projects/kgpg/ KGpg] is the GUI for KDE to manage the key pairs and other options of [http://www.gnupg.org/ GnuPG]. It has fewer options than Kleopatra. Install:&lt;br /&gt;
 sudo apt-get install kgpg&lt;br /&gt;
&lt;br /&gt;
=== PGP Troubleshooting ===&lt;br /&gt;
If KGPG or Kleopatra gives an error, it is because of a problem with settings in the gpg.conf configuration file ( ~/.gnupg/gpg.conf). Edit the file (using either ~/ or /home/''user''/ ):&lt;br /&gt;
 kate /home/''user''/.gnupg/gpg.conf&lt;br /&gt;
&lt;br /&gt;
Comment out the two lines at the bottom:&lt;br /&gt;
 #debug-level basic&lt;br /&gt;
 #log-file socket:///home/''user''/.gnupg/log-socket&lt;br /&gt;
&lt;br /&gt;
== Web browsing ==&lt;br /&gt;
Web tracking, scripts, and advertisements are extremely intrusive on the Internet. A dossier of your online habits is created by a multitude of services, including every major portal such as Google and Yahoo, as well as a variety of tracking services on the Internet. This is accomplished through the use of the &amp;quot;cookies&amp;quot; in your browser and by a variety of web elements (sometimes called &amp;quot;web beacons&amp;quot;) embedded on the web pages you visit. Your behavior is monitored and correlated by recording the IP address of your computer, even when you turn off the cookies in your browser. Still, it is highly recommended to configure your web browser to erase your [http://support.mozilla.org/en-US/kb/Cookies cookies] and history every time the web browser is closed; otherwise, every website you subsequently visit can instantly see the long list of recent websites you have visited. In Firefox, for example, cookies can be accepted for the current session but erased upon closing:&lt;br /&gt;
:Firefox -&amp;gt; Edit -&amp;gt; Preferences -&amp;gt; Privacy -&amp;gt; History -&amp;gt; Firefox will: ''Use custom settings for history''&lt;br /&gt;
:-&amp;gt; ''Always use private browsing mode'' (or customise the settings to your desired level of privacy)&lt;br /&gt;
* In addition, both [[Kubuntu:Raring#Adblock_Plus_plug-in_.28block_ads_in_a_web_page.29|Adblock Plus]] and [[Kubuntu:Raring#NoScript_plug-in_.28controls_scripts.29|NoScript]] are highly recommended as plug-ins for Firefox (and other Gecko-based browsers) to limit exposure to undesirable web elements, scripts, and tracking mechanisms.&lt;br /&gt;
&lt;br /&gt;
== Tor (Network privacy) ==&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [http://www.torproject.org/ Tor] is a project to allow privacy while using the Internet and to limit usage tracking. It routes your traffic through several anonymous nodes, so that your usage appears to come from an IP other than your own. (There are always risks when using the Internet that even Tor can not help with, though. Read [http://www.torproject.org/download.html.en#Warning this].) Using Tor can slow down your Internet usage significantly, depending on how much traffic is being passed through the Tor network (routine file-sharing or large downloads will also significantly reduce performance of the Tor network.)&lt;br /&gt;
&amp;lt;!---&amp;gt;&lt;br /&gt;
* Install the Privoxy http proxy (optional for most users):&lt;br /&gt;
 sudo apt-get install privoxy&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install Tor by following the instructions [https://www.torproject.org/docs/debian here]. Note that the instructions require port 11371 on your firewall to be open to use the gpg keyserver (and download the key for the debian package). Then see the [http://www.torproject.org/docs/tor-doc-unix.html Tor installation guide] for details.&lt;br /&gt;
&lt;br /&gt;
* By default Tor (once it is running) acts as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy] on port 9050. To send traffic from any application through Tor, configure the settings of that application to use a socks5 proxy on port 9050.&lt;br /&gt;
&lt;br /&gt;
* Also see these additional [[Tor|tips]].&lt;br /&gt;
&lt;br /&gt;
=== Vidalia (Tor interface) ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] [https://www.torproject.org/projects/vidalia.html Vidalia] is the recommended Qt4-based GUI frontend for Tor. If not installed with Tor, install:&lt;br /&gt;
 sudo apt-get install vidalia&lt;br /&gt;
&lt;br /&gt;
=== Tork (KDE Tor interface) ===&lt;br /&gt;
[http://sourceforge.net/projects/tork/ TorK] is a KDE interface for Tor that relied on the older Qt3 platform. It is no longer included in the (K)Ubuntu repositories. However, if desired it can be installed (along with the older Qt3 libraries). See [[Tor#Tork_.28KDE_Tor_interface.29|this section]].&lt;br /&gt;
&lt;br /&gt;
=== Using Tor with Firefox ===&lt;br /&gt;
[[File:Prefapp1.png|18 px]] Recent versions of Firefox allow direct use of Tor as a [https://en.wikipedia.org/wiki/SOCKS Socks5 proxy], both for traffic and DNS resolution. See [[Tor#Using_Tor_with_Firefox|this section]] for information on configuring this.&lt;br /&gt;
&lt;br /&gt;
==== Torbutton (Firefox plug-in) ====&lt;br /&gt;
* Once Tor is installed and running properly, [https://www.torproject.org/torbutton/ Torbutton] allows you to choose whether to use Firefox through the Tor anonymizing network or not. Torbutton only works with older (non-updated) versions of Firefox or with modified versions of Firefox found in the [[Tor#Tor_Browser_Bundle|Tor Browser Bundle]]. Newer versions of Firefox may refuse to start if Torbutton is installed. See [[Tor#Torbutton_(Firefox_plug-in)|this section]] for more details.&lt;br /&gt;
&lt;br /&gt;
== DNS Servers and Search engines ==&lt;br /&gt;
* Most users rely on the [http://en.wikipedia.org/wiki/Domain_Name_System DNS] server of their ISP (Internet Service Provider). DNS queries can be recorded, however, and theoretically correlated by an ISP to the data traffic to/from a user's IP address serviced by that ISP. A somewhat less trackable solution is to use a DNS service that does not belong to your ISP. This can belong to another commercial ISP or to a third party service such as [http://www.opendns.com/ OpenDNS], [http://www.comodo.com/secure-dns/ Comodo], [http://www.scrubit.com/ ScrubIT], [http://code.google.com/speed/public-dns/ Google] (though slightly less secure due to Google's own tracking mechanisms), another [http://theos.in/windows-xp/free-fast-public-dns-server-list/ free DNS service], or (for maximum security) a publicly-available [http://portforward.com/networking/dns.htm international DNS server]. For example, a Verizon customer could use the [http://www.whatsmydns.net/dns/usa/att.html AT&amp;amp;T DNS servers] or the OpenDNS servers. An AT&amp;amp;T customer could use one of the [http://www.dslreports.com/faq/1591 Verizon servers] or the Google servers. It is important to use a reliable DNS provider, however, as [http://en.wikipedia.org/wiki/Man-in-the-middle_attack man-in-the-middle DNS redirection] and [http://en.wikipedia.org/wiki/DNS_cache_poisoning DNS cache poisoning] attacks are increasingly common. Stick to one of the major DNS services (just not your own ISP's DNS service). It is important to note that starting Feburary 25, 2013, 5 major ISPs (Internet Service Providers) in the US (Comcast, Verizon, AT&amp;amp;T, Time Warner Cable, and Cablevision) have agreed to IP address recording and reporting (to the [https://en.wikipedia.org/wiki/Center_for_Copyright_Information CCI]) on behalf of the [https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America MPAA] and [https://en.wikipedia.org/wiki/Recording_Industry_Association_of_America RIAA]. If using one of these ISPs, take extra efforts to ensure your privacy.&lt;br /&gt;
&lt;br /&gt;
The DNS server setting can be changed in the router's settings (recommended) or individually for each computer. If changing on an individual computer, use the Network Manager or Wicd settings, or if using a static IP address with manually configured settings, add a line to /etc/network/interfaces with a list of the desired dns-nameservers at the end of the iface stanza so that the file resembles:&lt;br /&gt;
&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 address 192.168.0.35&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 network 192.168.0.0&lt;br /&gt;
 broadcast 192.168.0.255&lt;br /&gt;
 gateway 192.168.0.1&lt;br /&gt;
 dns-nameservers 8.26.56.26 208.67.222.222 8.20.247.20 208.67.220.220 8.8.8.8 8.8.4.4&lt;br /&gt;
&lt;br /&gt;
* Many search engines track your search requests (notably Google, Bing, and Yahoo) and keep logs of the searches they receive from your IP address. [https://duckduckgo.com DuckDuckGo.com] is a filtered search engine that has made its reputation not only by promising not to track searches, but also by providing a secure (encrypted), Tor-capable and anonymized search portal. Point your browser to https://duckduckgo.com. (It can be used with your Torbutton turned on.)&lt;br /&gt;
&lt;br /&gt;
* Many censorship/filtering/tracking techniques (that use [https://secure.wikimedia.org/wikipedia/en/wiki/Deep_packet_inspection deep packet inspection]) cannot be used with secure ([https://secure.wikimedia.org/wikipedia/en/wiki/Transport_Layer_Security SSL/TLS] encrypted) websites (denoted by ''[https://secure.wikimedia.org/wikipedia/en/wiki/HTTP_Secure &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;]'' ). Use them whenever possible. For example, use the [https://secure.wikimedia.org/ secure Wikimedia portal] for Wikipedia (and other Wikimedia services) instead of the insecure portal(s).&lt;br /&gt;
&lt;br /&gt;
* Many websites keep logs of referring http headers (which can be correlated with cookies to track your browsing activities). To turn off the passage of referral headers in Firefox, see [http://cafe.elharo.com/privacy/privacy-tip-3-block-referer-headers-in-firefox/ this info].&lt;br /&gt;
&lt;br /&gt;
== Changing a MAC address ==&lt;br /&gt;
The MAC address of your network interface card is the &amp;quot;fingerprint&amp;quot; of your network connection. It is not possible to hide the MAC address and most tracking methods now use the MAC address to record user habits. To combat this, it is possible to change (&amp;quot;spoof&amp;quot;) your apparent MAC address using software. It is important to remember, however, that it is generally the MAC address of the router (not computers on a LAN) which is displayed to the Internet. If you change the MAC of your computer but not the MAC of your router, you will gain nothing. Be sure to change both frequently (but most importantly that of the router).&lt;br /&gt;
&lt;br /&gt;
* It is possible to set the MAC address to a random selection in the Network Manager configuration:&lt;br /&gt;
:Network Manager -&amp;gt;  Manage Connections... -&amp;gt; ''connection'' -&amp;gt; Edit... -&amp;gt; Ethernet -&amp;gt; Cloned MAC Address -&amp;gt; Random -&amp;gt; Ok&lt;br /&gt;
&lt;br /&gt;
* [http://www.alobbs.com/macchanger Macchanger] is a utility to change a MAC address. Install:&lt;br /&gt;
 suod apt-get install macchanger&lt;br /&gt;
&lt;br /&gt;
== Certificate verification ==&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Certificate_authority Certificate authorities] charge a fee to store and verify [http://en.wikipedia.org/wiki/Public_key_certificate certificates]. However, many websites use [http://en.wikipedia.org/wiki/Self-signed_certificate self-signed certificates] that are not registered with any certifying authority. A free system of certificate &amp;quot;network notaries&amp;quot; has emerged called [http://perspectives-project.org/ Perspectives]. A certificate's validity (even if self-signed) can be checked using a [https://addons.mozilla.org/en-US/firefox/addon/perspectives/ Firefox plugin]. For more info see [http://www.dedoimedo.com/computers/firefox-perspectives.html this article].&lt;br /&gt;
&lt;br /&gt;
* [https://secure.wikimedia.org/wikipedia/en/wiki/CAcert.org CAcert.org] is a free certifying authority that maintains weak certificates that are recognized by many open source operating systems, but not by Firefox or most browsers. (For browsers that do not include CAcert.org recognition, certificates appear to be self-signed certificates.) While Debian incorporates CACert.org's root certificate by default, Ubuntu derivatives do not ([https://secure.wikimedia.org/wikipedia/en/wiki/Canonical_Ltd. Canonical] was originally founded with funds earned from [https://secure.wikimedia.org/wikipedia/en/wiki/Thawte Thawte], a certifying authority founded by [https://secure.wikimedia.org/wikipedia/en/wiki/Mark_Shuttleworth Mark Shuttleworth].)&lt;br /&gt;
&lt;br /&gt;
== Passwords and file authentication ==&lt;br /&gt;
* See this excellent article at H-Online about [http://www.h-online.com/security/features/Password-protection-for-everyone-1795647.html password protection for everyone].&lt;br /&gt;
&lt;br /&gt;
=== Random password generator ===&lt;br /&gt;
* Pwgen is a command line utility to generate a block of random 8-digit alphanumeric passwords. Run it from Konsole (in Kubuntu) or Terminal (in Ubuntu). Install:&lt;br /&gt;
 sudo apt-get install pwgen&lt;br /&gt;
:* Run pwgen:&lt;br /&gt;
 pwgen&lt;br /&gt;
&lt;br /&gt;
* UUIDgen is a default utility to generate a random UUID (using only [http://en.wikipedia.org/wiki/Hexadecimal hex-digits]). Run:&lt;br /&gt;
 uuidgen&lt;br /&gt;
&lt;br /&gt;
The random UUID can also be used as a 32-digit password, if desired.&lt;br /&gt;
&lt;br /&gt;
=== Password checker and enforcement ===&lt;br /&gt;
[http://www.openwall.com/john/ John the Ripper] is a free open source password cracker that uses a dictionary of over 4 million commonly used passwords in many languages. Because this tool is widely available, it is useful for scanning and securing your own LAN and computers for password strength. Install:&lt;br /&gt;
 sudo apt-get install john&lt;br /&gt;
&lt;br /&gt;
* [http://www.openwall.com/passwdqc/ Passwdqc] is a module to enforce password strength. Install:&lt;br /&gt;
 sudo apt-get install passwdqc&lt;br /&gt;
&lt;br /&gt;
=== MD5Sum ===&lt;br /&gt;
To check the MD5 sum of a file, use this command in the command line:&lt;br /&gt;
 md5sum ''filename''&lt;br /&gt;
&lt;br /&gt;
== File archival and encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
&lt;br /&gt;
=== Archives with Passwords ===&lt;br /&gt;
* See [[Kubuntu_Raring_Utilities#Archiving_Utilities|this section]].&lt;br /&gt;
&lt;br /&gt;
== Disk and Storage Encryption ==&lt;br /&gt;
''Under construction''&lt;br /&gt;
* See the [http://help.ubuntu.com/community/FullDiskEncryptionHowto Ubuntu Community documentation] for methods of full disk encryption.&lt;br /&gt;
* See the [http://help.ubuntu.com/community/EncryptedFilesystems Ubuntu Community documentation] for methods of filesystem encryption.&lt;/div&gt;</description>
			<pubDate>Sun, 28 Apr 2013 05:14:24 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:K_Raring/Privacy</comments>		</item>
		<item>
			<title>Template:Video Conversion</title>
			<link>http://easylinux.info/wiki/Template:Video_Conversion</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Create a commercial (.vob) format DVD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Video Conversion =&lt;br /&gt;
This guide does not advocate the illegal duplication of copyrighted content. However, fewer and fewer devices use DVDs any longer, and a large amount of video content is distributed on DVDs. It becomes necessary to convert video content into formats that can be viewed on devices that no longer used DVDs. Furthermore, online content is often in a format that is not universally playable and this also requires conversion. Trying to select and encode a video into a format which your device accepts is not always a straightforward task. &lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
There are lots of video and audio codecs and lots of methods and preferences for converting between formats. These are only some basic examples. A good deal of trial and error is often required for successful video conversion.&lt;br /&gt;
&lt;br /&gt;
* Mencoder and FFMPEG are the two packages that are the workhorses of video conversion. Of these, mencoder is faster and generally gives better results.&lt;br /&gt;
&lt;br /&gt;
* [[Kubuntu_Precise_Audio_Video_Conversion#Handbrake|Handbrake]] uses a streaming algorithm and FFMPEG to &amp;quot;rip&amp;quot; DVDs and can work with many different encryption methods. It uses the (superior, open source) [http://en.wikipedia.org/wiki/Matroska .MKV] container only, however (which is not supported by many devices). It also does not support [http://en.wikipedia.org/wiki/Xvid XVID] (and uses either [http://en.wikipedia.org/wiki/X264 X264/H.264] or [http://en.wikipedia.org/wiki/MPEG-4_Part_14 MP4] video codecs) and therefore its video output is also not universally accepted by a wide range of devices. As these standards become more widely accepted, however, this will be an invaluable encoding tool. On rare occasions I rip a video with Handbrake (to .MKV and H.264/MP3) and then convert it to .AVI (XVID/MP3) in a second step (using mencoder).&lt;br /&gt;
&lt;br /&gt;
* When I originally wrote these articles, .MKV was accommodated by only a handful of DVD players. A recent survey of new DVD players shows that most (including widely available inexpensive DVD players) will now play files in .MKV format. In fact, it is now difficult to find DVD players that will still play .AVI with XVID / DivX video. However, over the years I have accumulated a very large collection of .AVI / XVID / MP3 videos. In 2013, the only DVD player I could find that would play them all was the Philips DVP3680/F7 DVD Player with HD Upconversion (which I found at Best Buy for $40). I highly recommend this player if you find yourself with a large collection of .AVI / XVID video files.&lt;br /&gt;
&lt;br /&gt;
== Mencoder ==&lt;br /&gt;
[http://www.mplayerhq.hu/DOCS/HTML/en/mencoder.html Mencoder] is part of the [http://www.mplayerhq.hu/DOCS/HTML/en/index.html MPlayer] set of libraries (that also uses several of the FFMPEG libraries) for audio/visual conversion. If it is not installed on your system, install it:&lt;br /&gt;
 sudo apt-get install mencoder&lt;br /&gt;
&lt;br /&gt;
Usage instructions can be found from the command-line (''man mencoder'') or [http://linux.die.net/man/1/mencoder here].&lt;br /&gt;
&lt;br /&gt;
=== MP4 with AAC audio to AVI with Xvid / MP3 ===&lt;br /&gt;
* The [http://en.wikipedia.org/wiki/Advanced_Audio_Coding#Licensing_and_patents AAC audio codec] is not compatible with many DVD players and devices due to licensing restrictions, whereas the MP3 audio codec is nearly universally accepted. Xvid is the open source version of the DivX video codec and is accepted by a very large number of DVD players and other devices (even older ones, especially those displaying the DivX logo).&lt;br /&gt;
&lt;br /&gt;
* The [http://en.wikipedia.org/wiki/Audio_Video_Interleave .AVI] container only allows a [http://en.wikipedia.org/wiki/Constant_bitrate constant bitrate], so the MP3 audio must be encoded at CBR. If the AAC is [http://en.wikipedia.org/wiki/5.1_surround_sound 5.1], it will be downcoded to stereo for MP3.&lt;br /&gt;
&lt;br /&gt;
* This example is a two-pass technique that allows the file size to be specified and quality optimized for that filesize (using the information generated in the first pass). In this example, a 700 MB file is desired (and is specified by the negative value).&lt;br /&gt;
&lt;br /&gt;
This information is from [http://en.gentoo-wiki.com/wiki/HOWTO_Mencoder_Introduction_Guide#XviD the Gentoo Wiki for Xvid and mencoder].&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.mp4&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder &amp;lt;input.mp4&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-700000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Remove MKV subtitles and convert to AVI (XVID/MP3) ===&lt;br /&gt;
Mastroska container ([http://en.wikipedia.org/wiki/Matroska .MKV]) video files can have multiple subtitles included. In the default conversion from an .MKV container format to an [http://en.wikipedia.org/wiki/Audio_Video_Interleave .AVI] container format, the default subtitle file of the .MKV container is automatically hardcoded into the converted .AVI file, which may be undesirable. To overcome this behaviour (so that the converted .AVI has no subtitles), use the ''-sid 999'' option:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.mkv&amp;gt; -sid 999 -ovc xvid -oac mp3lame -lameopts cbr:br=192 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder &amp;lt;input.mkv&amp;gt; -sid 999 -ovc xvid -oac mp3lame -lameopts cbr:br=192 -xvidencopts pass=2:bitrate=-1400000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* To hardcode one of the subtitle tracks onto the .AVI video from the .MKV video, choose the subtrack ID, such as ''-sid 0'' or ''-sid 1''.&lt;br /&gt;
&lt;br /&gt;
* If using NTFS and the error &lt;br /&gt;
&lt;br /&gt;
Too many audio packets in the buffer: (4096 in 837540 bytes).&lt;br /&gt;
 &amp;gt; Maybe you are playing a non-interleaved stream/file or the codec&lt;br /&gt;
 &amp;gt; failed? For AVI files, try to force non-interleaved mode with the&lt;br /&gt;
 &amp;gt; -ni option.&lt;br /&gt;
&lt;br /&gt;
appears, then add these options:&lt;br /&gt;
 -mc 0 -ofps 24000/1001 -noskip&lt;br /&gt;
&lt;br /&gt;
=== DVD to AVI with Xvid / MP3 ===&lt;br /&gt;
* See the [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-dvd-mpeg4.html mencoder documentation].&lt;br /&gt;
* Extract a video (in the .vob format) from a DVD to a file with an [http://en.wikipedia.org/wiki/Audio_Video_Interleave .AVI] container and [http://en.wikipedia.org/wiki/Xvid XVID]/DivX video and [http://en.wikipedia.org/wiki/LAME .MP3] audio using this (2-pass conversion) command: &lt;br /&gt;
 mencoder dvd://''1'' -vobsub 999 -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder dvd://''1'' -vobsub 999 -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-700000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where dvd://''1'' indicates the first track of the DVD. If you are not sure which track contains the content you wish to extract to a file, one way to check this is to play the DVD with a media player like VLC, examining the tracks on it:&lt;br /&gt;
:VLC -&amp;gt; Media -&amp;gt; Open Disc... -&amp;gt; Play -&amp;gt; Playback -&amp;gt; Navigation&lt;br /&gt;
&lt;br /&gt;
or from the command line install lsdvd (''sudo apt-get install lsdvd'') and use it:&lt;br /&gt;
 lsdvd -v -t 1 /dev/dvd&amp;lt;!---&amp;gt;mplayer dvd:// -v | grep &amp;quot;video stream&amp;quot;&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will show a list of the title numbers (for the content tracks) on the DVD (and information about them). Use the title number for the content to be extracted.&lt;br /&gt;
&lt;br /&gt;
* Conversion is much faster when done from from a hard drive than from a physical DVD. It is possible to copy the VIDEO_TS and AUDIO_TS folders from the physical DVD to a folder on the hard drive. Once you have copied the contents of the DVD to a folder, add the ''-dvd-device /path/to/dvd_folder'' option to specify it (with the same options as above in addition to the new one):&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder''&lt;br /&gt;
&lt;br /&gt;
* Note the ''-vobsub 999'' option to prevent subtitles from being automatically added. (If you wish to hardcode subtitles, use the number of the subtitle track, such as ''-sid 0'' or ''-vobsubid 0'' for the default subtitle track or ''-sid 1'' or ''-vobsubid 1'' for the next subtitle track.)&lt;br /&gt;
&lt;br /&gt;
* Other options for video cropping and scaling can be used. See [http://www.axllent.org/docs/video/mencoder_dvd_to_mpeg4 these hints] and [http://savvyadmin.com/tag/xvid/ these tips], as well as [[#Resize_a_video|this section]].&lt;br /&gt;
&lt;br /&gt;
* When better audio quality is desired, an audio [http://en.wikipedia.org/wiki/Bit_rate bitrate] more than 128 kb/sec can be used (e.g. ''br=160'' or ''br=192''), but this will give a larger file (or will decrease video quality if the filesize remains constant). cbr (constant bitrate) is used for mp3lame encoding in .AVI; I generally increase the volume of the video by 30% using the vol=3 option, as well. My final audio command therefore usually ends up: ''-oac mp3lame -lameopts cbr:br=128:vol=3''.&lt;br /&gt;
&lt;br /&gt;
* If there are multiple audio tracks, the audio track can be selected with the ''-aid 1'' (or similar) option, specifying the number of the desired audio track. (Note: check audio track numbering carefully.) The English default audio track is usually ''-aid 128''. To show information about the audio tracks, use&lt;br /&gt;
 lsdvd -a -t 1 /dev/dvd&amp;lt;!---&amp;gt;mplayer dvd:// -v | grep &amp;quot;audio stream&amp;quot;&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Although the ''bitrate=-700000'' option specifies a target file size of 700000 (approx. 700 MB), this actually results in a file size of nearly 800 MB. Specify a target filesize about 15% less than actually desired, therefore. For a target 700 Mb file, for example, I use ''bitrate=-620000''.&lt;br /&gt;
&lt;br /&gt;
* For XVID there is an option to allow video seeking (for fast forwarding or rewinding) in 1 second increments (instead of the default 10 second increments): ''-xvidencopts max_key_interval=25'' (seek every 25 frames instead of the default 250 frames). This would be included as part of a more complex option string, such as ''-xvidencopts pass=2:max_key_interval=25:bitrate=-620000''.&lt;br /&gt;
&lt;br /&gt;
* In order to play the converted .AVI file on my older DVD players and televisions (and avoid significant motion artifacts and pixelation), I find that I must use deinterlacing. Only two interlacing methods have worked well for me: ''-vf pp=lb'' or ''-vf yadif=0''. There are many methods of deinterlacing for mencoder, however (see [http://guru.multimedia.cx/deinterlacing-filters/ here] and [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-telecine.html here], for example). Deinterlacing may not be necessary for your needs (when used for archival purposes only, for example, or if viewing files with media players (such as VLC) that already have built-in deinterlacing capabilities). Often recommended when ripping NTSC-format movies (progressive or telecined) is to include the option ''-vf pullup,softskip,harddup'', which must be used with a deinterlacing filter, such as ''-vf pullup,softskip,pp=lb,harddup'' (or ''-vf pullup,softskip,yadif=0,harddup'').&amp;lt;!---&amp;gt; (This only works properly using a 2-pass conversion method.)&amp;lt;---&amp;gt; The order of the telecine/progressive option, the deinterlacing option, and any cropping or scaling options is very specific -- read the [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-telecine.html#menc-feat-telecine-encode mencoder documentation] carefully when mixing these options. Specifically, cropping and scaling (when used) should be done after the telecine/progressive/deinterlacing options but before the frame duplication option, e.g. ''-vf pullup,softskip,pp=lb,crop=720:416:0:80,scale=704:304,harddup''.&lt;br /&gt;
&lt;br /&gt;
* Note: You will need [[Kubuntu_Precise_Audio_Video_Conversion#libdvdcss|libdvdcss2]] installed on your system to access DVD data. If your DVD has encryption that is not able to be decrypted by libdvdcss, then consider using [[Kubuntu_Precise_Audio_Video_Conversion#Handbrake|Handbrake]], which uses a streaming algorithm to &amp;quot;rip&amp;quot; DVDs.&lt;br /&gt;
&lt;br /&gt;
* This is the 2-pass command I end up using most often (with 4:3 NTSC videos):&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=2:max_key_interval=25:bitrate=-620000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* This is the 2-pass command I end up using most often (with 16:9 NTSC videos):&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,scale=648:364,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,scale=648:364,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=2:max_key_interval=25:bitrate=-620000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:The scale option is set so that I can play the video on analogue televisions with overscan (I still have a few of those). However, an alternative is to use ''scale=720:406'' for use on most widescreen TVs.&lt;br /&gt;
&lt;br /&gt;
==== Using k9copy as a conversion front-end ====&lt;br /&gt;
* [[Kubuntu_Precise_Audio_Video_Conversion#K9copy_.28DVD_Ripper.29|k9copy]] is a good front-end for mencoder (as well as ffmpeg).&lt;br /&gt;
* To add an option to encode to XVID from an NTSC DVD (when using mencoder within k9copy), I add the necessary options to the Video codecs section:&lt;br /&gt;
:k9copy -&amp;gt; Configure k9copy -&amp;gt; Encoders -&amp;gt; ''mencoder'' -&amp;gt; Add -&amp;gt; label: ''XVID from NTSC'' -&amp;gt; first pass -&amp;gt;&lt;br /&gt;
 -ovc xvid -xvidencopts bitrate=$VIDBR:turbo:pass=$PASS:aspect=$ASPECT -vf pullup,softskip,pp=lb,crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT,harddup&lt;br /&gt;
&lt;br /&gt;
The same command is entered for the &amp;quot;second pass&amp;quot; option as well. For the &amp;quot;one pass&amp;quot; option enter:&lt;br /&gt;
 -ovc xvid -xvidencopts bitrate=$VIDBR:aspect=$ASPECT -vf pullup,softskip,pp=lb,crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT,harddup&lt;br /&gt;
&lt;br /&gt;
* To then use this new Video codec option, make sure it is selected:&lt;br /&gt;
:k9copy -&amp;gt; Configure k9copy -&amp;gt; MPEG-4 -&amp;gt; Video -&amp;gt; Codec -&amp;gt; ''XVID from NTSC'' -&amp;gt; 2 pass (''ticked'') -&amp;gt; Apply&lt;br /&gt;
&lt;br /&gt;
At the same time, the MP3 (lame) Audio codec option can be selected:&lt;br /&gt;
:k9copy -&amp;gt; Configure k9copy -&amp;gt; MPEG-4 -&amp;gt; Audio -&amp;gt; Codec -&amp;gt; ''mp3 (lame)'' -&amp;gt; OK&lt;br /&gt;
&lt;br /&gt;
* Now when the Output: ''MPEG-4 encoding'' is selected from the main screen, this &amp;quot;XVID from NTSC&amp;quot; Video encoding option will be used.&lt;br /&gt;
&lt;br /&gt;
* Note that the ''-vf pullup,softskip,pp=lb,crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT,harddup'' option can be used with any Video codec, not just XVID.&lt;br /&gt;
&lt;br /&gt;
=== AVI to MPG ===&lt;br /&gt;
* The  MPG format is sometimes useful for creating DVDs (using the [http://en.wikipedia.org/wiki/MPEG-1 MPEG-1] or [http://en.wikipedia.org/wiki/MPEG-2 MPEG-2] video codec, which can be then used for vob files using [[Ubuntu:All#DVD_Author|QDVDAuthor]] or [[Ubuntu:All#ToVid|ToVid]]). If the audio codec of the AVI file is already AC3 or MP3, it usually can be copied. This example is take from the [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-mpeg.html MPlayer/Mencoder documentation]. Example:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy -o &amp;lt;output.mpg&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Increase volume ===&lt;br /&gt;
&lt;br /&gt;
* Use the ''-af volume=3:0'' option, where the first number (3 in the example) is the number of decibels to increment the volume (a 3 db increment doubles the volume), and the second number is 0 for hard-clipping and 1 to allow software-based clipping (to prevent oversaturation when the sound becomes too loud).&lt;br /&gt;
&lt;br /&gt;
For example, if I want to double the sound volume of my .AVI video:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -oac mp3lame -lameopts cbr:br=128 -af volume=3:0 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* This can also be done when encoding to the mp3lame audio codec by adding an option to the mp3lame options:&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -oac mp3lame -lameopts cbr:br=128:vol=3 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:where ''vol=3'' can be set to any value between -10 and 10. I use ''vol=3'' to increase the volume 30%. (This method works best for me.)&lt;br /&gt;
&lt;br /&gt;
=== Add subtitles to video ===&lt;br /&gt;
* [http://en.wikipedia.org/wiki/SubRip .srt] subtitle files are essentially text files with time stamps. They are meant to be used with digital video files (such as .AVI files) and are different from the image-based .idx / .sub subtitle files (vobsub) used with the [http://en.wikipedia.org/wiki/VOB .vob] format found on commercial DVDs.&lt;br /&gt;
&lt;br /&gt;
* Using mencoder:&lt;br /&gt;
 mencoder -ovc [codec] [codec opts] -oac copy -sub [sub file.srt] -subfont-text-scale [3 normally]&lt;br /&gt;
&lt;br /&gt;
In the example above, this would be:&lt;br /&gt;
 mencoder &amp;lt;input.mp4&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-700000 -sub &amp;lt;subtitles.srt&amp;gt; -subfont-text-scale 3 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Note: When adding subtitles to an .AVI video, you must transcode it completely. It is not sufficient to merely add the subtitle track as listed above -- the entire video must be re-transcoded. So, for example:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-1400000 -sub &amp;lt;subtitles.srt&amp;gt; -subfont-text-scale 3 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Trim a video ===&lt;br /&gt;
*Using mencoder:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -oac mp3lame -ss 01:57:12 -endpos 00:04:08 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where -ss indicates the start position of the clip (hh:mm:ss) and -endpos indicates how long the clip should be. (I use mp3lame for the audio codec because YouTube accepts that.)&lt;br /&gt;
&lt;br /&gt;
=== Resize a video ===&lt;br /&gt;
*Using mencoder:&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc xvid -vf scale=320:240 -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-1400000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where -vf scale=320x240 indicates that the resulting video should be of that size. The position of the suboption in the command string is important.&lt;br /&gt;
&lt;br /&gt;
* [http://en.wikipedia.org/wiki/High-definition_television HDTV] resolution is usually 1920 x 1080 (&amp;quot;1080p&amp;quot;) or 1280 x 720 (&amp;quot;720p&amp;quot;). A [http://en.wikipedia.org/wiki/Standard-definition_television standard definition] widescreen TV has a maximum height of &amp;quot;480p&amp;quot; (usually 853 x 480 but sometimes 720 x 406). The standard width:height [http://en.wikipedia.org/wiki/Aspect_ratio_%28image%29 aspect ratio] for cinema is 1.85:1, whereas the average aspect ratio for widescreen movies distributed for display on television is 16:9 (1.78:1). When resizing a video, it is good to know the original dimensions of the video and maintain the width to height aspect ratio in the chosen scale. &lt;br /&gt;
&lt;br /&gt;
:*Example: A video is distributed as 1280 x 692 (which has an aspect ratio of 1.85:1). The device (a low resolution television) on which it is to be displayed has a maximum width of 720. The desired resolution would then be 720 x 390 to keep the aspect ratio at approximately 1.85:1. The option would then be ''-vf scale=720:390''. An analog television would require 10% [http://en.wikipedia.org/wiki/Overscan overscan], making the maximum width 648. To keep an aspect ratio of 1.85:1 would require a resolution of 648 x 350, or a scale option of ''-vf scale=648:350''. &lt;br /&gt;
&lt;br /&gt;
:*Example: An HQ video is distributed as 1920 x 1080 (which has an aspect ratio of 16:9). It is desired to view the video on a television with a maximum width of 720p, which would require a final resolution of 720 x 406 to maintain an aspect ratio of 16:9. The scale option would be ''-vf scale=720:406''.&lt;br /&gt;
&lt;br /&gt;
:*Example: An HQ video is distributed as 1920 x 1080 (which has an aspect ratio of 16:9). It is desired to view the video on an analogue television with 10% [http://en.wikipedia.org/wiki/Overscan overscan], which would require a final resolution of 648 x 364 to maintain an aspect ratio of 16:9. The scale option would be ''-vf scale=648:364''.&lt;br /&gt;
&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Standard-definition_television &amp;quot;Standard&amp;quot; definition] [http://en.wikipedia.org/wiki/Analog_television analog television] has a 4:3 ratio, for which a scale of 640:480 (''-vf scale=640:480'') is generally preferable.&lt;br /&gt;
&lt;br /&gt;
=== Convert to .MP3 audio file ===&lt;br /&gt;
* I find [[#Convert_to_.MP3_audio_file_using_FFMPEG|FFMPEG]] to be easier for this task.&lt;br /&gt;
&lt;br /&gt;
* (''Under construction'') To use Mplayer to extract audio to pcm .wav file:&lt;br /&gt;
 mplayer &amp;lt;input.avi&amp;gt; -vc null -oa pcm -aofile -ss 1441.4 -endpos 260.1 &amp;lt;output.wav&amp;gt;   &lt;br /&gt;
&lt;br /&gt;
*Then convert the .wav file to .mp3 with your favourite converter (such as SoundConverter).&lt;br /&gt;
&lt;br /&gt;
=== Change audio track of video ===&lt;br /&gt;
* In general, [[All#Avidemux_.28Video_editor.2Fprocessor.29|Avidemux]] is a good video editor for most needs, including muxing and demuxing video and audio.&lt;br /&gt;
&lt;br /&gt;
* For a quick method to change the audio for a video, I like to merely remove the audio from the original video file using the ''-nosound'' option, for example:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -nosound -o &amp;lt;outputnosound.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Then, I add a new audio file as the audio track to the video using the ''-audiofile'' option. For example, if I now want to add an .mp3 audio track named &amp;lt;newaudio.mp3&amp;gt;, I would use the command:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;outputnosound.avi&amp;gt; -ovc copy -oac mp3lame -audiofile &amp;lt;newaudio.mp3&amp;gt; -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FFMPEG ==&lt;br /&gt;
[http://ffmpeg.org/ FFMPEG] is the swiss-army knife of video and audio format conversion. It succeeds when no other program can. It is free and open source. If it not yet installed on your system as part of another package (it is used by many video/audio editors), then install it:&lt;br /&gt;
 sudo apt-get install ffmpeg&lt;br /&gt;
&lt;br /&gt;
*To convert many different formats, read the [http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html FFMPEG documentation]. Also see [http://howto-pages.org/ffmpeg/ this tutorial].&lt;br /&gt;
&lt;br /&gt;
=== Flash video (.flv) to MPG-2 using FFMPEG ===&lt;br /&gt;
* To convert a saved Flash video (.flv) to an MPEG-2 format playable on a DVD, convert:&lt;br /&gt;
 ffmpeg -i ''samplevideo.flv'' -target ntsc-dvd ''samplevideo.mpg''&lt;br /&gt;
&lt;br /&gt;
* Then use [[Kubuntu:Oneiric#K3b (CD/DVD burner)|K3b]] (or [[Ubuntu:Oneiric#Gnomebaker (CD/DVD burner)|Gnomebaker]]) to write the mpg file to a New DVD Data Project.&lt;br /&gt;
&lt;br /&gt;
:*For PAL use -target pal-dvd. For widescreen, use -target film-dvd. For other conversion tips, see [http://ubuntuforums.org/archive/index.php/t-1006250.html this forum]. (Note: Most Flash video has very low resolution, with a screen size of 360x270, for example. You may see a slight diminishment in resolution if you wish to convert it to 720x480 (which is the NTSC standard size) or other screen size. You can keep the original screen size and resolution by omitting the -target parameter.) If your original file is 16:9 widescreen and you desire a 4:3 letterbox output for playing on an overscanned TV, you may need to pad the file so that the widescreen is not compressed (see [http://ubuntuforums.org/showthread.php?t=1010648 this forum]):&lt;br /&gt;
&lt;br /&gt;
 ffmpeg -i ''samplevideo.flv'' -target ntsc-dvd -s 648x364 -padleft 36 -padright 36 -padtop 58 -padbottom 58 ''samplevideo.mpg''&lt;br /&gt;
&lt;br /&gt;
* You can also use the WinFF GUI and add the command (as above) as a &amp;quot;Preset,&amp;quot; for subsequent use. For example:&lt;br /&gt;
:Video converter (WinFF) -&amp;gt;  Edit -&amp;gt; Presets -&amp;gt;&lt;br /&gt;
:: Preset Name: Letterbox -&amp;gt; Preset Label: 16:9 Widescreen to 4:3 Letterbox&lt;br /&gt;
:: Preset command: -target ntsc-dvd -s 648x364 -padleft 36 -padright 36 -padtop 58 -padbottom 58&lt;br /&gt;
::Ouput file extension: mpg -&amp;gt; Category: DVD&lt;br /&gt;
:::-&amp;gt; Add/Update -&amp;gt; Save&lt;br /&gt;
&lt;br /&gt;
*To convert to MPEG-4 (mp4) files, use&lt;br /&gt;
 ffmpeg -i ''samplevideo.flv'' ''outputvideo.mp4''&lt;br /&gt;
&lt;br /&gt;
* FFMPEG requires that multiple [[Kubuntu:Oneiric#Restricted Extras|restricted extra codecs]] be installed. This can be done in a single easy step from the command-line Terminal:&lt;br /&gt;
 sudo apt-get install kubuntu-restricted-extras&lt;br /&gt;
:or&lt;br /&gt;
 sudo apt-get install ubuntu-restricted-extras&lt;br /&gt;
&lt;br /&gt;
=== Convert to .MP3 audio file using FFMPEG ===&lt;br /&gt;
==== Convert Flash video audio to mp3 ====&lt;br /&gt;
* Once you have downloaded flash video content (.flv) from the Internet (using the [[Kubuntu:Oneiric#Video_DownloadHelper_plug-in_for_Firefox|Video Download Helper plug-in for Firefox]], for example), the audio component can be converted to an mp3 using this command (from the command line Terminal). (This will work for any type of video file, not just Flash.)&lt;br /&gt;
 ffmpeg -i ''nameofvideoclip.flv'' -ab 160k -ac 2 -ar 44100 -vn ''nameoffile.mp3''&lt;br /&gt;
&lt;br /&gt;
:where -i indicates the input, -ab indicates the bit rate (in this example 160kb/sec), -vn means no video ouput, -ac 2 means 2 channels, -ar 44100 indicates the sampling frequency. See [http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html#SEC11 FFMPEG docs] for more info.&lt;br /&gt;
&lt;br /&gt;
If I only want a segment of the video to be converted, I can use the time markers:&lt;br /&gt;
 ffmpeg -i ''nameofvideoclip.flv'' -ss ''00:00:09'' -t ''00:03:00'' -ab 160k -ac 2 -ar 44100 -vn ''nameoffile.mp3''&lt;br /&gt;
:where -ss ''00:00:09'' indicates the point in the video (hh:mm:ss) at which to start conversion and -t ''00:03:00'' indicates the amount of time (from the start point) to convert.&lt;br /&gt;
&lt;br /&gt;
* As long as [[#FFMPEG|FFMPEG]] is already installed, the [[Kubuntu:Oneiric#Video_DownloadHelper_plug-in_for_Firefox|Video DownloadHelper plug-in for Firefox]] already has an option to automatically convert an online video (such as those found at YouTube) into an .MP3 file. (Settings are adjustable.) From the DownloadHelper icon in Firefox, highlight the video to convert, then&lt;br /&gt;
:DownloadHelper icon -&amp;gt; Download and Convert -&amp;gt; Converter options: MP3&lt;br /&gt;
&lt;br /&gt;
=== Edit/convert screencapture with FFMPEG ===&lt;br /&gt;
''Note: This section under construction.''&lt;br /&gt;
&lt;br /&gt;
*Note: I now recommend using [[Video_Conversion|mencoder for all video conversion]] techniques. It uses some of the ffmpeg libraries but is faster and gives more reliable and high-quality results.&lt;br /&gt;
&lt;br /&gt;
*This is only one example of a wide variety of techniques. Once I have a [[Screencasts#FFMPEG_with_x11grab|captured video]], I want to convert it to XVID video (which is the format my older DVD player accepts) and MP3 audio (mp3lame), which I will place in an AVI container (which my DVD player also accepts). &lt;br /&gt;
&lt;br /&gt;
 ffmpeg -i ''Punchcast1.avi'' -vcodec mpeg4 -vtag xvid -acodec libmp3lame -ss 00:00:09 -t 00:03:00 ''Punchcast2.avi''&lt;br /&gt;
&lt;br /&gt;
I will start conversion (-ss) at second 9 (to eliminate unimportant things at the beginning) and convert 3 minutes (-t) of video (00:03:00).&lt;br /&gt;
&lt;br /&gt;
* I happen to watch my screencasts on my old-fashioned 4:3 television. To do that, I make a letterboxed video:&lt;br /&gt;
&lt;br /&gt;
 ffmpeg -i ''Punchcast1.avi'' -vcodec mpeg4 -vtag xvid -ss 00:00:09 -t 00:03:00 -s 648x364 -padleft 36 -padright 36 -padtop 58 -padbottom 58 -acodec libmp3lame  ''Punchcast3.avi''&lt;br /&gt;
&lt;br /&gt;
My laptop screen is 1366x768, which I reduce to a size of 648x364. My TV wants 720x480, so I pad the sides and top/bottom. Why not a width of 720 initially? My older television has 10% overscan, which cuts off 10% of the video. I therefore use (at least) 10% padding on the edges.&lt;br /&gt;
&lt;br /&gt;
In newer versions of FFMPEG, the padding (and many other) options have changed. The proper command is now:&lt;br /&gt;
 ffmpeg -i Punchcast1.avi -vcodec mpeg4 -vtag xvid -ss 00:00:09 -t 00:03:00 -s 648x364 -vf pad 720:480:36:58 -acodec libmp3lame Punchcast3.avi&lt;br /&gt;
&lt;br /&gt;
 ffmpeg movie=Punchcast1.avi:seek_point=9 -vcodec copy -acodec libmp3lame Punchcast1f.avi&lt;br /&gt;
&lt;br /&gt;
=== WinFF (FFMPEG GUI) ===&lt;br /&gt;
[http://winff.org WinFF] is a free, GPL-licensed open source GUI frontend for FFMPEG. Install:&lt;br /&gt;
 sudo apt-get install winff xterm&lt;br /&gt;
Run:&lt;br /&gt;
:Menu -&amp;gt; Applications -&amp;gt; Sound &amp;amp; Video -&amp;gt; WinFF&lt;br /&gt;
&lt;br /&gt;
== VobSub2SRT (Convert subtitles from .sub/.idx to .srt) ==&lt;br /&gt;
* [https://github.com/ruediger/VobSub2SRT VobSub2SRT] is a simple (GPLv3-licensed) command line program to convert the image-based .idx / .sub subtitle files (used with the [http://en.wikipedia.org/wiki/VOB .vob] format found on commercial DVDs) into text-based [http://en.wikipedia.org/wiki/SubRip .srt] text subtitle files by using OCR. It is based on code from the [[Ubuntu:All#MPlayer_Multimedia_Player|MPlayer]] project, [[Ubuntu:All#Tesseract_.28Optical_Character_Reader.29|Tesseract]] as OCR software, and libavutil (part of the [[Ubuntu:All#FFMPEG_video_.2F_audio_conversion|FFmpeg]] project). Install the (K)Ubuntu/Debian (.deb) package from a PPA repository:&lt;br /&gt;
 sudo add-apt-repository ppa:ruediger-c-plusplus/vobsub2srt&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install vobsub2srt&lt;br /&gt;
&lt;br /&gt;
* Alternatively, you can download and build a version from source code.&lt;br /&gt;
:* Install dependencies: &lt;br /&gt;
 sudo apt-get install pkg-config build-essential cmake libavutil-dev libtesseract-dev&lt;br /&gt;
&lt;br /&gt;
:* For (K)Ubuntu 12.10 (Quantal) also install:&lt;br /&gt;
 sudo apt-get install libtiff5-dev tesseract-ocr-eng&lt;br /&gt;
&lt;br /&gt;
:* For (K)Ubuntu 12.04LTS (Precise) also install:&lt;br /&gt;
 sudo apt-get install libtiff4-dev tesseract-ocr tesseract-ocr-eng  &amp;lt;!---&amp;gt;tesseract-ocr-dev&amp;lt;---&amp;gt; &lt;br /&gt;
&lt;br /&gt;
::* If you will be converting subtitles in languages other than English, you must install tesseract for any or all of those languages as well:&lt;br /&gt;
 sudo apt-get install tesseract-ocr-vie tesseract-ocr-deu tesseract-ocr-fra tesseract-ocr-ita&lt;br /&gt;
 sudo apt-get install tesseract-ocr-nld tesseract-ocr-spa tesseract-ocr-por tesseract-ocr-deu-f&lt;br /&gt;
::where vie is for Vietnamese, deu is for German, fra is for French, ita is for Italian, nld is for Dutch, spa is for Spanish, por is for Portugeuse, and deu-f is for German Fraktur script. If you don't you will get an error of the type: ''Unable to load unicharset file /usr/share/tesseract-ocr/tessdata/xxx.unicharset''.&lt;br /&gt;
&lt;br /&gt;
:* Download and unzip the VobSub2SRT .zip file into its own directory:&lt;br /&gt;
 mkdir vobsub2srt&lt;br /&gt;
 cd vobsub2srt&lt;br /&gt;
 wget -O vobsub2srt-current.zip &amp;lt;nowiki&amp;gt;https://github.com/ruediger/VobSub2SRT/zipball/ca53a18108eb08d6e2b853643d8c6838e2489823&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 unzip vobsub2srt-current.zip&lt;br /&gt;
 rm vobsub2srt-current.zip&lt;br /&gt;
&lt;br /&gt;
:* This will create a subdirectory with the current version. For example, my version is ''vobsub2srt/ruediger-VobSub2SRT-ca53a18''. Change into that directory then compile and install the program.&lt;br /&gt;
 cd ''ruediger-VobSub2SRT-ca53a18''&lt;br /&gt;
 ./configure&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
:* This should install the program vobsub2srt to /usr/local/bin. You can uninstall vobsub2srt with ''sudo make uninstall''. You can build a *.deb package (Debian/Ubuntu) with ''make package''. The package is created in the build directory.&lt;br /&gt;
&lt;br /&gt;
* Convert the .sub / .idx pair of subtitle files (named ''Filename.sub'' and ''Filename.idx'') into a .srt sbutitle file (named ''Filename.srt''):&lt;br /&gt;
 vobsub2srt ''Filename''&lt;br /&gt;
&lt;br /&gt;
:where Filename is the file name of the subtitle files WITHOUT the extension (.sub / .idx).&lt;br /&gt;
&lt;br /&gt;
*If there are multiple languages in the .sub / .idx pair of subtitle files, you can select which language to convert (using the 2-letter [http://en.wikipedia.org/wiki/ISO_639-1 ISO 639-1] language code, e.g. en, fr, de, it, es, pt, etc.):&lt;br /&gt;
 vobsub2srt --lang en ''Filename'' &lt;br /&gt;
&lt;br /&gt;
* Edit the .srt subtitle file for OCR mistakes (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 kate ''Filename.srt''&lt;br /&gt;
&lt;br /&gt;
== Join .MPG video segments ==&lt;br /&gt;
Individual video segments (MPEG-2, for example) can easily be joined:&lt;br /&gt;
 cat ''samplevideo1.mpg'' ''samplevideo2.mpg'' ''samplevideo3.mpg'' &amp;gt; ''samplevideo123.mpg''&lt;br /&gt;
&lt;br /&gt;
:You can then write the resulting MPEG-2 file to a DVD and play it in most DVD players.&lt;br /&gt;
&lt;br /&gt;
== Split a file into segments ==&lt;br /&gt;
Any file can be [http://en.wikipedia.org/wiki/Split_%28Unix%29 split] into segments using the Linux command:&lt;br /&gt;
 split -b 1440k ''my_big_file''&lt;br /&gt;
&lt;br /&gt;
which will split ''my_big_file'' into equal segments of size 1440 kb.&lt;br /&gt;
&lt;br /&gt;
== Create a commercial (.vob) format DVD ==&lt;br /&gt;
* The audiovideo container of commercial DVDs uses the [http://en.wikipedia.org/wiki/VOB .vob format]. This container requires either MPEG-1 or MPEG-2 video (.mpg) and either AC3 or MPEG-2 (.mp2) audio. Therefore, the first step in creating a DVD-video in this format is to convert all audiovisual files (to be included on it) to .mpg files (with one of those video and audio formats), usually with the MPEG-PS (A+V) container. This can be done from the command-line terminal (using mencoder or ffmpeg) or from a GUI utility (such as Avidemux).&lt;br /&gt;
&lt;br /&gt;
:* The GUI utility [[Kubuntu_Precise_Video#Avidemux_.28Video_editor.2Fprocessor.29|Avidemux]] is a GUI utility that has standardised settings for file conversion. [http://avidemux.org/admWiki/doku.php?id=tutorial:converting_to_dvd Here] is the Avidemux tutorial for conversion to a DVD-video.&lt;br /&gt;
&lt;br /&gt;
::* Open the file and allow the time map and Index to be rebuilt.&lt;br /&gt;
::* It is best to convert a file (to be included on the DVD) to a format with MPEG-2 (avcodec) video, AC3 (lav) audio, and the MPEG-PS (A+V) container as an intermediate first. The MP2 audio format (the default for Avidemux in &amp;quot;Auto&amp;quot; mode) can also be used, and will result in a much smaller .mpg file then when using AC3 audio, but several of my very old DVD players only recognise AC3 audio (so this has therefore become my personal preference). &lt;br /&gt;
:::* The easiest method for doing this is to use the Avidemux Auto DVD wizard. (Avidemux -&amp;gt; Auto -&amp;gt; Optical Disc -&amp;gt; DVD). Select the appropriate souce and destination ratios. (My source videos are usually already in 16:9 widescreen formats, and I want to make DVDs for my widescreen 16:9 TV. I therefore choose 16:9 for both the &amp;quot;Source Aspect Ratio&amp;quot; and the &amp;quot;Destination Aspect Ratio.&amp;quot;) The Auto DVD Wizard uses MP2 audio by default, but I personally like AC3 audio instead (the format usually used on &amp;quot;commercial&amp;quot; DVDs).  I therefore change this using the Audio -&amp;gt; AC3 (lav) option.&lt;br /&gt;
:::* It is possible to customise (or initially set) the format options manually as well (see the Avidemux documentation). Select the Video (and make sure the aspect ratio is the one you desire in Video -&amp;gt; Configure -&amp;gt; Configuration: DVD -&amp;gt; Aspect Ratio: ''16:9'' ), Audio, and (container) Format options.&lt;br /&gt;
::::*  To be DVD compliant, the resolution must be&lt;br /&gt;
:::::* 352*480 or 720*480 or 704*480 for NTSC&lt;br /&gt;
:::::* 352*576 or 720*576 or 704*576 for PAL/SECAM&lt;br /&gt;
:::: This is set automatically if using the Auto DVD wizard. If your original video does not already have the correct aspect ratio, you will have to use cropping, scaling, and/or black bar &amp;quot;Filter&amp;quot; options until one of the standard resolutions is achieved. &lt;br /&gt;
&lt;br /&gt;
::* Save the file ( Avidemux -&amp;gt; File -&amp;gt; Save -&amp;gt; Save Video... -&amp;gt; ''myconvertedvideo.mpg'' ) to activate the conversion process. (If prompted whether to &amp;quot;Reuse the existing log file?&amp;quot; answer &amp;quot;No.&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
:* Alternatively, mencoder can be used from the command-line to [[#AVI_to_MPG|convert a file to the .mpg format]].&lt;br /&gt;
&lt;br /&gt;
:* Alternatively, FFMPEG can be used from the command-line to [[#Flash_video_.28.flv.29_to_MPG-2_using_FFMPEG|convert a file to the .mpg format]]. A simplified preset option for for conversion to both PAL and NTSC options is available.&lt;br /&gt;
&lt;br /&gt;
* Once all files to be included on the DVD-video have been converted to .mpg files, the utility [[Kubuntu_Precise_Audio_Video_Conversion#DVD_Author|dvdauthor]] can be used for conversion to .vob format (appropriate for writing to the DVD). While this utility can be used from the command-line, &amp;quot;authoring&amp;quot; (conversion) is more easily accomplished using one of several available [[Kubuntu_Precise_Audio_Video_Conversion#Other_DVD_authoring_programs|GUI front-ends]], which allow creation of menus for the DVD as well.&lt;br /&gt;
&lt;br /&gt;
::* With Kubuntu I use KMediaFactory for simple projects. (QDVDAuthor, which is difficult to install in recent Kubuntu versions, is superior and more powerful. [[Kubuntu_Precise_Audio_Video_Conversion#Other_DVD_authoring_programs|KMediaFactory]], in contrast, is in the repositories and is adequate (and quick) for most purposes.&lt;br /&gt;
:::* Rename the .mpg files (created with Avidemux or other method) carefully. The filename(s) becomes the Title(s) used by KMediaFactory for the video(s) on the DVD menu.&lt;br /&gt;
:::* Set up the DVD menu in KMediaFactory.&lt;br /&gt;
::::* KMediaFactory -&amp;gt; Project -&amp;gt; Title -&amp;gt; ''MyDVDTitle'' (this will appear on the DVD Menu at the top)&lt;br /&gt;
::::* -&amp;gt; Type: ''DVD-NTSC'' -&amp;gt; Aspect: ''16:9'' -&amp;gt; Destination Folder ''/home/user/DVDs''&lt;br /&gt;
:::* Add the .mpg files to the DVD. &lt;br /&gt;
::::* KMediaFactory -&amp;gt; Media -&amp;gt; Add Video -&amp;gt; ''MyFirstVideofile.mpg'' -&amp;gt; VideoProperties: Aspect ratio: ''16:9''&lt;br /&gt;
:::::* -&amp;gt; Add Video -&amp;gt; ''MySecondVideofile.mpg'' -&amp;gt; VideoProperties: Aspect ratio: ''16:9''&lt;br /&gt;
:::* Choose the DVD Menu appearance.&lt;br /&gt;
::::* KMediaFactory -&amp;gt; Template -&amp;gt; ''Preview 3''&lt;br /&gt;
:::* Choose the output format. For this, I generally create a &amp;quot;DVD folder&amp;quot;:&lt;br /&gt;
::::* KMediaFactory -&amp;gt; Output -&amp;gt; DVD Folder&lt;br /&gt;
:::* Start the conversion (&amp;quot;DVD authoring&amp;quot;) process. If an error appears, the problem usually lies in a non-existent (or write-protected) folder having been specified when setting the &amp;quot;Title&amp;quot; options. Make sure the folder has been specified properly. KMediaFactory will then create the standard AUDIO_TS and VIDEO_TS folders in the folder specified.&lt;br /&gt;
::::* -&amp;gt; Start&lt;br /&gt;
:::* Prior to burning I check to make sure that my DVD looks the way I had intended using [[Kubuntu_Precise_Media_Players#VLC_Multimedia_Player|VLC]] (VLC -&amp;gt; Media -&amp;gt; Open Disc... -&amp;gt; Browse... -&amp;gt; ''specified_folder'' -&amp;gt; Play)&lt;br /&gt;
&lt;br /&gt;
::* In Kubuntu I then use [[Kubuntu_Precise_Audio_Video_Conversion#K3b_.28CD.2FDVD_burner.29|K3b]] to burn the AUDIO_TS and VIDEO_TS folders to a blank DVD. This can be done in K3b using the &amp;quot;New Video DVD Project&amp;quot; (K3b -&amp;gt; More actions... -&amp;gt; New Video DVD Project) using the AUDIO_TS and VIDEO_TS folders as the data. Edit the name of the DVD to reflect the desired DVD name. &amp;quot;Burn&amp;quot; the DVD. The result will be identical to commercial DVDs. (Note: In recent versions of K3b I have had to &amp;quot;Burn&amp;quot; using the &amp;quot;growisofs&amp;quot; Writing app at 8x Speed and DAO (Disc-At-Once) Writing Mode in order to achieve reliable burns. See [[Kubuntu_Precise_Audio_Video_Conversion#K3b_.28CD.2FDVD_burner.29|here]] for more details.)&lt;br /&gt;
&lt;br /&gt;
== Recommended formats ==&lt;br /&gt;
* There is only one format that works on all my devices (computer (both Linux and Windows), (Android) tablet, (Android) eBook reader, MP3 player, DVD player):&lt;br /&gt;
:* .AVI container with XVID/DivX video codec and MP3lame (MP3) audio codec&lt;br /&gt;
&lt;br /&gt;
:I use this for all my devices, and encode files to about 700 MB. This is a good size that gives good quality and allows me to fit many videos on a single SDcard (which I use in my mobile devices). For most of my devices, a 128 kb MP3 encoding bitrate is sufficient; I previously encoded at 192 kb for MP3lame (which is the default bitrate for AC3 sound), but I find this bitrate to be unnecessary. (The higher the encoding bitrate, the larger the encoded file, and I try to keep all my files around 700 MB.) The .AVI container has several limitations: it does not allow more than stereo audio (i.e. no 5.1 surround sound), does not allow multiple subtitle files, and requires a constant bitrate (CBR) audio channel. For advanced archival purposes it may not be suitable in the long-term, but currently it is desirable for the wide range of devices that accept it. It is also one of the only containers guaranteed to be accepted by Windows computers (since the container is originally a Windows-based format). &lt;br /&gt;
&lt;br /&gt;
* I am also able to use an .MP4 container with X264/H.264 video codec and either the AAC audio codec or the MP3lame (MP3) audio codec on many devices, but not all. Neither the X264/H.264 video nor the AAC audio will play on my DVD player or MP3 player, for example (though it plays on my computer and Android tablet devices).&lt;br /&gt;
&lt;br /&gt;
:* The related .M4V container (the proprietary Apple Quicktime format) works on almost none of my devices, and, furthermore, is difficult to decode and re-encode to a different container. I shun this format like the plague.&lt;br /&gt;
&lt;br /&gt;
* The newer .MKV container, though open source and a superior container, is accepted by very few of my older devices. It does not play on my (older) DVD player or MP3 player, for example (no matter which video and audio codecs are used). &lt;br /&gt;
&lt;br /&gt;
:Nevertheless, most newer DVD players seem to accept the .MKV format. In fact, it is now difficult to find DVD players that will still play .AVI with XVID / DivX video. Over the years, however, I have accumulated a very large collection of .AVI / XVID / MP3 videos. In 2013, the only DVD player I could find that would play them all was the Philips DVP3680/F7 DVD Player with HD Upconversion (which I found at [http://www.bestbuy.com/site/Philips+-+DVD+Player+with+HD+Upconversion/4983625.p;jsessionid=436B03D27CA483A9AB8EC510D0B2B03C.bbolsp-app01-115?id=1218644449769&amp;amp;skuId=4983625&amp;amp;st=philips&amp;amp;cp=1&amp;amp;lp=15 Best Buy] for $40). I highly recommend this player, therefore, if you find yourself with a large collection of .AVI / XVID video files. However, it does not play MP4 files, which is a drawback. (Note: I am told that [http://www.amazon.com/Philips-Region-1080p-Upconverting-Player/dp/B004BI6MVS/ref=pd_cp_e_0#productDescription this upconverting Philips DVD] player will play region-free, both PAL and NTSC formats, and both MP4 and DivX/XVID codecs.)&lt;br /&gt;
&lt;br /&gt;
* My Android (2.3) tablet devices will also not accept the AC3 audio codec (which is the standard audio used on commercial DVDs, for example), so most of the time I re-encode any files having AC3 audio with the MP3lame audio codec instead.&lt;/div&gt;</description>
			<pubDate>Sat, 27 Apr 2013 21:13:22 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Video_Conversion</comments>		</item>
		<item>
			<title>Template:Video Conversion</title>
			<link>http://easylinux.info/wiki/Template:Video_Conversion</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Create a commercial (.vob) format DVD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Video Conversion =&lt;br /&gt;
This guide does not advocate the illegal duplication of copyrighted content. However, fewer and fewer devices use DVDs any longer, and a large amount of video content is distributed on DVDs. It becomes necessary to convert video content into formats that can be viewed on devices that no longer used DVDs. Furthermore, online content is often in a format that is not universally playable and this also requires conversion. Trying to select and encode a video into a format which your device accepts is not always a straightforward task. &lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
There are lots of video and audio codecs and lots of methods and preferences for converting between formats. These are only some basic examples. A good deal of trial and error is often required for successful video conversion.&lt;br /&gt;
&lt;br /&gt;
* Mencoder and FFMPEG are the two packages that are the workhorses of video conversion. Of these, mencoder is faster and generally gives better results.&lt;br /&gt;
&lt;br /&gt;
* [[Kubuntu_Precise_Audio_Video_Conversion#Handbrake|Handbrake]] uses a streaming algorithm and FFMPEG to &amp;quot;rip&amp;quot; DVDs and can work with many different encryption methods. It uses the (superior, open source) [http://en.wikipedia.org/wiki/Matroska .MKV] container only, however (which is not supported by many devices). It also does not support [http://en.wikipedia.org/wiki/Xvid XVID] (and uses either [http://en.wikipedia.org/wiki/X264 X264/H.264] or [http://en.wikipedia.org/wiki/MPEG-4_Part_14 MP4] video codecs) and therefore its video output is also not universally accepted by a wide range of devices. As these standards become more widely accepted, however, this will be an invaluable encoding tool. On rare occasions I rip a video with Handbrake (to .MKV and H.264/MP3) and then convert it to .AVI (XVID/MP3) in a second step (using mencoder).&lt;br /&gt;
&lt;br /&gt;
* When I originally wrote these articles, .MKV was accommodated by only a handful of DVD players. A recent survey of new DVD players shows that most (including widely available inexpensive DVD players) will now play files in .MKV format. In fact, it is now difficult to find DVD players that will still play .AVI with XVID / DivX video. However, over the years I have accumulated a very large collection of .AVI / XVID / MP3 videos. In 2013, the only DVD player I could find that would play them all was the Philips DVP3680/F7 DVD Player with HD Upconversion (which I found at Best Buy for $40). I highly recommend this player if you find yourself with a large collection of .AVI / XVID video files.&lt;br /&gt;
&lt;br /&gt;
== Mencoder ==&lt;br /&gt;
[http://www.mplayerhq.hu/DOCS/HTML/en/mencoder.html Mencoder] is part of the [http://www.mplayerhq.hu/DOCS/HTML/en/index.html MPlayer] set of libraries (that also uses several of the FFMPEG libraries) for audio/visual conversion. If it is not installed on your system, install it:&lt;br /&gt;
 sudo apt-get install mencoder&lt;br /&gt;
&lt;br /&gt;
Usage instructions can be found from the command-line (''man mencoder'') or [http://linux.die.net/man/1/mencoder here].&lt;br /&gt;
&lt;br /&gt;
=== MP4 with AAC audio to AVI with Xvid / MP3 ===&lt;br /&gt;
* The [http://en.wikipedia.org/wiki/Advanced_Audio_Coding#Licensing_and_patents AAC audio codec] is not compatible with many DVD players and devices due to licensing restrictions, whereas the MP3 audio codec is nearly universally accepted. Xvid is the open source version of the DivX video codec and is accepted by a very large number of DVD players and other devices (even older ones, especially those displaying the DivX logo).&lt;br /&gt;
&lt;br /&gt;
* The [http://en.wikipedia.org/wiki/Audio_Video_Interleave .AVI] container only allows a [http://en.wikipedia.org/wiki/Constant_bitrate constant bitrate], so the MP3 audio must be encoded at CBR. If the AAC is [http://en.wikipedia.org/wiki/5.1_surround_sound 5.1], it will be downcoded to stereo for MP3.&lt;br /&gt;
&lt;br /&gt;
* This example is a two-pass technique that allows the file size to be specified and quality optimized for that filesize (using the information generated in the first pass). In this example, a 700 MB file is desired (and is specified by the negative value).&lt;br /&gt;
&lt;br /&gt;
This information is from [http://en.gentoo-wiki.com/wiki/HOWTO_Mencoder_Introduction_Guide#XviD the Gentoo Wiki for Xvid and mencoder].&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.mp4&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder &amp;lt;input.mp4&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-700000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Remove MKV subtitles and convert to AVI (XVID/MP3) ===&lt;br /&gt;
Mastroska container ([http://en.wikipedia.org/wiki/Matroska .MKV]) video files can have multiple subtitles included. In the default conversion from an .MKV container format to an [http://en.wikipedia.org/wiki/Audio_Video_Interleave .AVI] container format, the default subtitle file of the .MKV container is automatically hardcoded into the converted .AVI file, which may be undesirable. To overcome this behaviour (so that the converted .AVI has no subtitles), use the ''-sid 999'' option:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.mkv&amp;gt; -sid 999 -ovc xvid -oac mp3lame -lameopts cbr:br=192 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder &amp;lt;input.mkv&amp;gt; -sid 999 -ovc xvid -oac mp3lame -lameopts cbr:br=192 -xvidencopts pass=2:bitrate=-1400000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* To hardcode one of the subtitle tracks onto the .AVI video from the .MKV video, choose the subtrack ID, such as ''-sid 0'' or ''-sid 1''.&lt;br /&gt;
&lt;br /&gt;
* If using NTFS and the error &lt;br /&gt;
&lt;br /&gt;
Too many audio packets in the buffer: (4096 in 837540 bytes).&lt;br /&gt;
 &amp;gt; Maybe you are playing a non-interleaved stream/file or the codec&lt;br /&gt;
 &amp;gt; failed? For AVI files, try to force non-interleaved mode with the&lt;br /&gt;
 &amp;gt; -ni option.&lt;br /&gt;
&lt;br /&gt;
appears, then add these options:&lt;br /&gt;
 -mc 0 -ofps 24000/1001 -noskip&lt;br /&gt;
&lt;br /&gt;
=== DVD to AVI with Xvid / MP3 ===&lt;br /&gt;
* See the [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-dvd-mpeg4.html mencoder documentation].&lt;br /&gt;
* Extract a video (in the .vob format) from a DVD to a file with an [http://en.wikipedia.org/wiki/Audio_Video_Interleave .AVI] container and [http://en.wikipedia.org/wiki/Xvid XVID]/DivX video and [http://en.wikipedia.org/wiki/LAME .MP3] audio using this (2-pass conversion) command: &lt;br /&gt;
 mencoder dvd://''1'' -vobsub 999 -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder dvd://''1'' -vobsub 999 -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-700000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where dvd://''1'' indicates the first track of the DVD. If you are not sure which track contains the content you wish to extract to a file, one way to check this is to play the DVD with a media player like VLC, examining the tracks on it:&lt;br /&gt;
:VLC -&amp;gt; Media -&amp;gt; Open Disc... -&amp;gt; Play -&amp;gt; Playback -&amp;gt; Navigation&lt;br /&gt;
&lt;br /&gt;
or from the command line install lsdvd (''sudo apt-get install lsdvd'') and use it:&lt;br /&gt;
 lsdvd -v -t 1 /dev/dvd&amp;lt;!---&amp;gt;mplayer dvd:// -v | grep &amp;quot;video stream&amp;quot;&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will show a list of the title numbers (for the content tracks) on the DVD (and information about them). Use the title number for the content to be extracted.&lt;br /&gt;
&lt;br /&gt;
* Conversion is much faster when done from from a hard drive than from a physical DVD. It is possible to copy the VIDEO_TS and AUDIO_TS folders from the physical DVD to a folder on the hard drive. Once you have copied the contents of the DVD to a folder, add the ''-dvd-device /path/to/dvd_folder'' option to specify it (with the same options as above in addition to the new one):&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder''&lt;br /&gt;
&lt;br /&gt;
* Note the ''-vobsub 999'' option to prevent subtitles from being automatically added. (If you wish to hardcode subtitles, use the number of the subtitle track, such as ''-sid 0'' or ''-vobsubid 0'' for the default subtitle track or ''-sid 1'' or ''-vobsubid 1'' for the next subtitle track.)&lt;br /&gt;
&lt;br /&gt;
* Other options for video cropping and scaling can be used. See [http://www.axllent.org/docs/video/mencoder_dvd_to_mpeg4 these hints] and [http://savvyadmin.com/tag/xvid/ these tips], as well as [[#Resize_a_video|this section]].&lt;br /&gt;
&lt;br /&gt;
* When better audio quality is desired, an audio [http://en.wikipedia.org/wiki/Bit_rate bitrate] more than 128 kb/sec can be used (e.g. ''br=160'' or ''br=192''), but this will give a larger file (or will decrease video quality if the filesize remains constant). cbr (constant bitrate) is used for mp3lame encoding in .AVI; I generally increase the volume of the video by 30% using the vol=3 option, as well. My final audio command therefore usually ends up: ''-oac mp3lame -lameopts cbr:br=128:vol=3''.&lt;br /&gt;
&lt;br /&gt;
* If there are multiple audio tracks, the audio track can be selected with the ''-aid 1'' (or similar) option, specifying the number of the desired audio track. (Note: check audio track numbering carefully.) The English default audio track is usually ''-aid 128''. To show information about the audio tracks, use&lt;br /&gt;
 lsdvd -a -t 1 /dev/dvd&amp;lt;!---&amp;gt;mplayer dvd:// -v | grep &amp;quot;audio stream&amp;quot;&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Although the ''bitrate=-700000'' option specifies a target file size of 700000 (approx. 700 MB), this actually results in a file size of nearly 800 MB. Specify a target filesize about 15% less than actually desired, therefore. For a target 700 Mb file, for example, I use ''bitrate=-620000''.&lt;br /&gt;
&lt;br /&gt;
* For XVID there is an option to allow video seeking (for fast forwarding or rewinding) in 1 second increments (instead of the default 10 second increments): ''-xvidencopts max_key_interval=25'' (seek every 25 frames instead of the default 250 frames). This would be included as part of a more complex option string, such as ''-xvidencopts pass=2:max_key_interval=25:bitrate=-620000''.&lt;br /&gt;
&lt;br /&gt;
* In order to play the converted .AVI file on my older DVD players and televisions (and avoid significant motion artifacts and pixelation), I find that I must use deinterlacing. Only two interlacing methods have worked well for me: ''-vf pp=lb'' or ''-vf yadif=0''. There are many methods of deinterlacing for mencoder, however (see [http://guru.multimedia.cx/deinterlacing-filters/ here] and [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-telecine.html here], for example). Deinterlacing may not be necessary for your needs (when used for archival purposes only, for example, or if viewing files with media players (such as VLC) that already have built-in deinterlacing capabilities). Often recommended when ripping NTSC-format movies (progressive or telecined) is to include the option ''-vf pullup,softskip,harddup'', which must be used with a deinterlacing filter, such as ''-vf pullup,softskip,pp=lb,harddup'' (or ''-vf pullup,softskip,yadif=0,harddup'').&amp;lt;!---&amp;gt; (This only works properly using a 2-pass conversion method.)&amp;lt;---&amp;gt; The order of the telecine/progressive option, the deinterlacing option, and any cropping or scaling options is very specific -- read the [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-telecine.html#menc-feat-telecine-encode mencoder documentation] carefully when mixing these options. Specifically, cropping and scaling (when used) should be done after the telecine/progressive/deinterlacing options but before the frame duplication option, e.g. ''-vf pullup,softskip,pp=lb,crop=720:416:0:80,scale=704:304,harddup''.&lt;br /&gt;
&lt;br /&gt;
* Note: You will need [[Kubuntu_Precise_Audio_Video_Conversion#libdvdcss|libdvdcss2]] installed on your system to access DVD data. If your DVD has encryption that is not able to be decrypted by libdvdcss, then consider using [[Kubuntu_Precise_Audio_Video_Conversion#Handbrake|Handbrake]], which uses a streaming algorithm to &amp;quot;rip&amp;quot; DVDs.&lt;br /&gt;
&lt;br /&gt;
* This is the 2-pass command I end up using most often (with 4:3 NTSC videos):&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=2:max_key_interval=25:bitrate=-620000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* This is the 2-pass command I end up using most often (with 16:9 NTSC videos):&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,scale=648:364,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,scale=648:364,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=2:max_key_interval=25:bitrate=-620000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:The scale option is set so that I can play the video on analogue televisions with overscan (I still have a few of those). However, an alternative is to use ''scale=720:406'' for use on most widescreen TVs.&lt;br /&gt;
&lt;br /&gt;
==== Using k9copy as a conversion front-end ====&lt;br /&gt;
* [[Kubuntu_Precise_Audio_Video_Conversion#K9copy_.28DVD_Ripper.29|k9copy]] is a good front-end for mencoder (as well as ffmpeg).&lt;br /&gt;
* To add an option to encode to XVID from an NTSC DVD (when using mencoder within k9copy), I add the necessary options to the Video codecs section:&lt;br /&gt;
:k9copy -&amp;gt; Configure k9copy -&amp;gt; Encoders -&amp;gt; ''mencoder'' -&amp;gt; Add -&amp;gt; label: ''XVID from NTSC'' -&amp;gt; first pass -&amp;gt;&lt;br /&gt;
 -ovc xvid -xvidencopts bitrate=$VIDBR:turbo:pass=$PASS:aspect=$ASPECT -vf pullup,softskip,pp=lb,crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT,harddup&lt;br /&gt;
&lt;br /&gt;
The same command is entered for the &amp;quot;second pass&amp;quot; option as well. For the &amp;quot;one pass&amp;quot; option enter:&lt;br /&gt;
 -ovc xvid -xvidencopts bitrate=$VIDBR:aspect=$ASPECT -vf pullup,softskip,pp=lb,crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT,harddup&lt;br /&gt;
&lt;br /&gt;
* To then use this new Video codec option, make sure it is selected:&lt;br /&gt;
:k9copy -&amp;gt; Configure k9copy -&amp;gt; MPEG-4 -&amp;gt; Video -&amp;gt; Codec -&amp;gt; ''XVID from NTSC'' -&amp;gt; 2 pass (''ticked'') -&amp;gt; Apply&lt;br /&gt;
&lt;br /&gt;
At the same time, the MP3 (lame) Audio codec option can be selected:&lt;br /&gt;
:k9copy -&amp;gt; Configure k9copy -&amp;gt; MPEG-4 -&amp;gt; Audio -&amp;gt; Codec -&amp;gt; ''mp3 (lame)'' -&amp;gt; OK&lt;br /&gt;
&lt;br /&gt;
* Now when the Output: ''MPEG-4 encoding'' is selected from the main screen, this &amp;quot;XVID from NTSC&amp;quot; Video encoding option will be used.&lt;br /&gt;
&lt;br /&gt;
* Note that the ''-vf pullup,softskip,pp=lb,crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT,harddup'' option can be used with any Video codec, not just XVID.&lt;br /&gt;
&lt;br /&gt;
=== AVI to MPG ===&lt;br /&gt;
* The  MPG format is sometimes useful for creating DVDs (using the [http://en.wikipedia.org/wiki/MPEG-1 MPEG-1] or [http://en.wikipedia.org/wiki/MPEG-2 MPEG-2] video codec, which can be then used for vob files using [[Ubuntu:All#DVD_Author|QDVDAuthor]] or [[Ubuntu:All#ToVid|ToVid]]). If the audio codec of the AVI file is already AC3 or MP3, it usually can be copied. This example is take from the [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-mpeg.html MPlayer/Mencoder documentation]. Example:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy -o &amp;lt;output.mpg&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Increase volume ===&lt;br /&gt;
&lt;br /&gt;
* Use the ''-af volume=3:0'' option, where the first number (3 in the example) is the number of decibels to increment the volume (a 3 db increment doubles the volume), and the second number is 0 for hard-clipping and 1 to allow software-based clipping (to prevent oversaturation when the sound becomes too loud).&lt;br /&gt;
&lt;br /&gt;
For example, if I want to double the sound volume of my .AVI video:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -oac mp3lame -lameopts cbr:br=128 -af volume=3:0 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* This can also be done when encoding to the mp3lame audio codec by adding an option to the mp3lame options:&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -oac mp3lame -lameopts cbr:br=128:vol=3 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:where ''vol=3'' can be set to any value between -10 and 10. I use ''vol=3'' to increase the volume 30%. (This method works best for me.)&lt;br /&gt;
&lt;br /&gt;
=== Add subtitles to video ===&lt;br /&gt;
* [http://en.wikipedia.org/wiki/SubRip .srt] subtitle files are essentially text files with time stamps. They are meant to be used with digital video files (such as .AVI files) and are different from the image-based .idx / .sub subtitle files (vobsub) used with the [http://en.wikipedia.org/wiki/VOB .vob] format found on commercial DVDs.&lt;br /&gt;
&lt;br /&gt;
* Using mencoder:&lt;br /&gt;
 mencoder -ovc [codec] [codec opts] -oac copy -sub [sub file.srt] -subfont-text-scale [3 normally]&lt;br /&gt;
&lt;br /&gt;
In the example above, this would be:&lt;br /&gt;
 mencoder &amp;lt;input.mp4&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-700000 -sub &amp;lt;subtitles.srt&amp;gt; -subfont-text-scale 3 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Note: When adding subtitles to an .AVI video, you must transcode it completely. It is not sufficient to merely add the subtitle track as listed above -- the entire video must be re-transcoded. So, for example:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-1400000 -sub &amp;lt;subtitles.srt&amp;gt; -subfont-text-scale 3 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Trim a video ===&lt;br /&gt;
*Using mencoder:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -oac mp3lame -ss 01:57:12 -endpos 00:04:08 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where -ss indicates the start position of the clip (hh:mm:ss) and -endpos indicates how long the clip should be. (I use mp3lame for the audio codec because YouTube accepts that.)&lt;br /&gt;
&lt;br /&gt;
=== Resize a video ===&lt;br /&gt;
*Using mencoder:&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc xvid -vf scale=320:240 -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-1400000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where -vf scale=320x240 indicates that the resulting video should be of that size. The position of the suboption in the command string is important.&lt;br /&gt;
&lt;br /&gt;
* [http://en.wikipedia.org/wiki/High-definition_television HDTV] resolution is usually 1920 x 1080 (&amp;quot;1080p&amp;quot;) or 1280 x 720 (&amp;quot;720p&amp;quot;). A [http://en.wikipedia.org/wiki/Standard-definition_television standard definition] widescreen TV has a maximum height of &amp;quot;480p&amp;quot; (usually 853 x 480 but sometimes 720 x 406). The standard width:height [http://en.wikipedia.org/wiki/Aspect_ratio_%28image%29 aspect ratio] for cinema is 1.85:1, whereas the average aspect ratio for widescreen movies distributed for display on television is 16:9 (1.78:1). When resizing a video, it is good to know the original dimensions of the video and maintain the width to height aspect ratio in the chosen scale. &lt;br /&gt;
&lt;br /&gt;
:*Example: A video is distributed as 1280 x 692 (which has an aspect ratio of 1.85:1). The device (a low resolution television) on which it is to be displayed has a maximum width of 720. The desired resolution would then be 720 x 390 to keep the aspect ratio at approximately 1.85:1. The option would then be ''-vf scale=720:390''. An analog television would require 10% [http://en.wikipedia.org/wiki/Overscan overscan], making the maximum width 648. To keep an aspect ratio of 1.85:1 would require a resolution of 648 x 350, or a scale option of ''-vf scale=648:350''. &lt;br /&gt;
&lt;br /&gt;
:*Example: An HQ video is distributed as 1920 x 1080 (which has an aspect ratio of 16:9). It is desired to view the video on a television with a maximum width of 720p, which would require a final resolution of 720 x 406 to maintain an aspect ratio of 16:9. The scale option would be ''-vf scale=720:406''.&lt;br /&gt;
&lt;br /&gt;
:*Example: An HQ video is distributed as 1920 x 1080 (which has an aspect ratio of 16:9). It is desired to view the video on an analogue television with 10% [http://en.wikipedia.org/wiki/Overscan overscan], which would require a final resolution of 648 x 364 to maintain an aspect ratio of 16:9. The scale option would be ''-vf scale=648:364''.&lt;br /&gt;
&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Standard-definition_television &amp;quot;Standard&amp;quot; definition] [http://en.wikipedia.org/wiki/Analog_television analog television] has a 4:3 ratio, for which a scale of 640:480 (''-vf scale=640:480'') is generally preferable.&lt;br /&gt;
&lt;br /&gt;
=== Convert to .MP3 audio file ===&lt;br /&gt;
* I find [[#Convert_to_.MP3_audio_file_using_FFMPEG|FFMPEG]] to be easier for this task.&lt;br /&gt;
&lt;br /&gt;
* (''Under construction'') To use Mplayer to extract audio to pcm .wav file:&lt;br /&gt;
 mplayer &amp;lt;input.avi&amp;gt; -vc null -oa pcm -aofile -ss 1441.4 -endpos 260.1 &amp;lt;output.wav&amp;gt;   &lt;br /&gt;
&lt;br /&gt;
*Then convert the .wav file to .mp3 with your favourite converter (such as SoundConverter).&lt;br /&gt;
&lt;br /&gt;
=== Change audio track of video ===&lt;br /&gt;
* In general, [[All#Avidemux_.28Video_editor.2Fprocessor.29|Avidemux]] is a good video editor for most needs, including muxing and demuxing video and audio.&lt;br /&gt;
&lt;br /&gt;
* For a quick method to change the audio for a video, I like to merely remove the audio from the original video file using the ''-nosound'' option, for example:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -nosound -o &amp;lt;outputnosound.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Then, I add a new audio file as the audio track to the video using the ''-audiofile'' option. For example, if I now want to add an .mp3 audio track named &amp;lt;newaudio.mp3&amp;gt;, I would use the command:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;outputnosound.avi&amp;gt; -ovc copy -oac mp3lame -audiofile &amp;lt;newaudio.mp3&amp;gt; -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FFMPEG ==&lt;br /&gt;
[http://ffmpeg.org/ FFMPEG] is the swiss-army knife of video and audio format conversion. It succeeds when no other program can. It is free and open source. If it not yet installed on your system as part of another package (it is used by many video/audio editors), then install it:&lt;br /&gt;
 sudo apt-get install ffmpeg&lt;br /&gt;
&lt;br /&gt;
*To convert many different formats, read the [http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html FFMPEG documentation]. Also see [http://howto-pages.org/ffmpeg/ this tutorial].&lt;br /&gt;
&lt;br /&gt;
=== Flash video (.flv) to MPG-2 using FFMPEG ===&lt;br /&gt;
* To convert a saved Flash video (.flv) to an MPEG-2 format playable on a DVD, convert:&lt;br /&gt;
 ffmpeg -i ''samplevideo.flv'' -target ntsc-dvd ''samplevideo.mpg''&lt;br /&gt;
&lt;br /&gt;
* Then use [[Kubuntu:Oneiric#K3b (CD/DVD burner)|K3b]] (or [[Ubuntu:Oneiric#Gnomebaker (CD/DVD burner)|Gnomebaker]]) to write the mpg file to a New DVD Data Project.&lt;br /&gt;
&lt;br /&gt;
:*For PAL use -target pal-dvd. For widescreen, use -target film-dvd. For other conversion tips, see [http://ubuntuforums.org/archive/index.php/t-1006250.html this forum]. (Note: Most Flash video has very low resolution, with a screen size of 360x270, for example. You may see a slight diminishment in resolution if you wish to convert it to 720x480 (which is the NTSC standard size) or other screen size. You can keep the original screen size and resolution by omitting the -target parameter.) If your original file is 16:9 widescreen and you desire a 4:3 letterbox output for playing on an overscanned TV, you may need to pad the file so that the widescreen is not compressed (see [http://ubuntuforums.org/showthread.php?t=1010648 this forum]):&lt;br /&gt;
&lt;br /&gt;
 ffmpeg -i ''samplevideo.flv'' -target ntsc-dvd -s 648x364 -padleft 36 -padright 36 -padtop 58 -padbottom 58 ''samplevideo.mpg''&lt;br /&gt;
&lt;br /&gt;
* You can also use the WinFF GUI and add the command (as above) as a &amp;quot;Preset,&amp;quot; for subsequent use. For example:&lt;br /&gt;
:Video converter (WinFF) -&amp;gt;  Edit -&amp;gt; Presets -&amp;gt;&lt;br /&gt;
:: Preset Name: Letterbox -&amp;gt; Preset Label: 16:9 Widescreen to 4:3 Letterbox&lt;br /&gt;
:: Preset command: -target ntsc-dvd -s 648x364 -padleft 36 -padright 36 -padtop 58 -padbottom 58&lt;br /&gt;
::Ouput file extension: mpg -&amp;gt; Category: DVD&lt;br /&gt;
:::-&amp;gt; Add/Update -&amp;gt; Save&lt;br /&gt;
&lt;br /&gt;
*To convert to MPEG-4 (mp4) files, use&lt;br /&gt;
 ffmpeg -i ''samplevideo.flv'' ''outputvideo.mp4''&lt;br /&gt;
&lt;br /&gt;
* FFMPEG requires that multiple [[Kubuntu:Oneiric#Restricted Extras|restricted extra codecs]] be installed. This can be done in a single easy step from the command-line Terminal:&lt;br /&gt;
 sudo apt-get install kubuntu-restricted-extras&lt;br /&gt;
:or&lt;br /&gt;
 sudo apt-get install ubuntu-restricted-extras&lt;br /&gt;
&lt;br /&gt;
=== Convert to .MP3 audio file using FFMPEG ===&lt;br /&gt;
==== Convert Flash video audio to mp3 ====&lt;br /&gt;
* Once you have downloaded flash video content (.flv) from the Internet (using the [[Kubuntu:Oneiric#Video_DownloadHelper_plug-in_for_Firefox|Video Download Helper plug-in for Firefox]], for example), the audio component can be converted to an mp3 using this command (from the command line Terminal). (This will work for any type of video file, not just Flash.)&lt;br /&gt;
 ffmpeg -i ''nameofvideoclip.flv'' -ab 160k -ac 2 -ar 44100 -vn ''nameoffile.mp3''&lt;br /&gt;
&lt;br /&gt;
:where -i indicates the input, -ab indicates the bit rate (in this example 160kb/sec), -vn means no video ouput, -ac 2 means 2 channels, -ar 44100 indicates the sampling frequency. See [http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html#SEC11 FFMPEG docs] for more info.&lt;br /&gt;
&lt;br /&gt;
If I only want a segment of the video to be converted, I can use the time markers:&lt;br /&gt;
 ffmpeg -i ''nameofvideoclip.flv'' -ss ''00:00:09'' -t ''00:03:00'' -ab 160k -ac 2 -ar 44100 -vn ''nameoffile.mp3''&lt;br /&gt;
:where -ss ''00:00:09'' indicates the point in the video (hh:mm:ss) at which to start conversion and -t ''00:03:00'' indicates the amount of time (from the start point) to convert.&lt;br /&gt;
&lt;br /&gt;
* As long as [[#FFMPEG|FFMPEG]] is already installed, the [[Kubuntu:Oneiric#Video_DownloadHelper_plug-in_for_Firefox|Video DownloadHelper plug-in for Firefox]] already has an option to automatically convert an online video (such as those found at YouTube) into an .MP3 file. (Settings are adjustable.) From the DownloadHelper icon in Firefox, highlight the video to convert, then&lt;br /&gt;
:DownloadHelper icon -&amp;gt; Download and Convert -&amp;gt; Converter options: MP3&lt;br /&gt;
&lt;br /&gt;
=== Edit/convert screencapture with FFMPEG ===&lt;br /&gt;
''Note: This section under construction.''&lt;br /&gt;
&lt;br /&gt;
*Note: I now recommend using [[Video_Conversion|mencoder for all video conversion]] techniques. It uses some of the ffmpeg libraries but is faster and gives more reliable and high-quality results.&lt;br /&gt;
&lt;br /&gt;
*This is only one example of a wide variety of techniques. Once I have a [[Screencasts#FFMPEG_with_x11grab|captured video]], I want to convert it to XVID video (which is the format my older DVD player accepts) and MP3 audio (mp3lame), which I will place in an AVI container (which my DVD player also accepts). &lt;br /&gt;
&lt;br /&gt;
 ffmpeg -i ''Punchcast1.avi'' -vcodec mpeg4 -vtag xvid -acodec libmp3lame -ss 00:00:09 -t 00:03:00 ''Punchcast2.avi''&lt;br /&gt;
&lt;br /&gt;
I will start conversion (-ss) at second 9 (to eliminate unimportant things at the beginning) and convert 3 minutes (-t) of video (00:03:00).&lt;br /&gt;
&lt;br /&gt;
* I happen to watch my screencasts on my old-fashioned 4:3 television. To do that, I make a letterboxed video:&lt;br /&gt;
&lt;br /&gt;
 ffmpeg -i ''Punchcast1.avi'' -vcodec mpeg4 -vtag xvid -ss 00:00:09 -t 00:03:00 -s 648x364 -padleft 36 -padright 36 -padtop 58 -padbottom 58 -acodec libmp3lame  ''Punchcast3.avi''&lt;br /&gt;
&lt;br /&gt;
My laptop screen is 1366x768, which I reduce to a size of 648x364. My TV wants 720x480, so I pad the sides and top/bottom. Why not a width of 720 initially? My older television has 10% overscan, which cuts off 10% of the video. I therefore use (at least) 10% padding on the edges.&lt;br /&gt;
&lt;br /&gt;
In newer versions of FFMPEG, the padding (and many other) options have changed. The proper command is now:&lt;br /&gt;
 ffmpeg -i Punchcast1.avi -vcodec mpeg4 -vtag xvid -ss 00:00:09 -t 00:03:00 -s 648x364 -vf pad 720:480:36:58 -acodec libmp3lame Punchcast3.avi&lt;br /&gt;
&lt;br /&gt;
 ffmpeg movie=Punchcast1.avi:seek_point=9 -vcodec copy -acodec libmp3lame Punchcast1f.avi&lt;br /&gt;
&lt;br /&gt;
=== WinFF (FFMPEG GUI) ===&lt;br /&gt;
[http://winff.org WinFF] is a free, GPL-licensed open source GUI frontend for FFMPEG. Install:&lt;br /&gt;
 sudo apt-get install winff xterm&lt;br /&gt;
Run:&lt;br /&gt;
:Menu -&amp;gt; Applications -&amp;gt; Sound &amp;amp; Video -&amp;gt; WinFF&lt;br /&gt;
&lt;br /&gt;
== VobSub2SRT (Convert subtitles from .sub/.idx to .srt) ==&lt;br /&gt;
* [https://github.com/ruediger/VobSub2SRT VobSub2SRT] is a simple (GPLv3-licensed) command line program to convert the image-based .idx / .sub subtitle files (used with the [http://en.wikipedia.org/wiki/VOB .vob] format found on commercial DVDs) into text-based [http://en.wikipedia.org/wiki/SubRip .srt] text subtitle files by using OCR. It is based on code from the [[Ubuntu:All#MPlayer_Multimedia_Player|MPlayer]] project, [[Ubuntu:All#Tesseract_.28Optical_Character_Reader.29|Tesseract]] as OCR software, and libavutil (part of the [[Ubuntu:All#FFMPEG_video_.2F_audio_conversion|FFmpeg]] project). Install the (K)Ubuntu/Debian (.deb) package from a PPA repository:&lt;br /&gt;
 sudo add-apt-repository ppa:ruediger-c-plusplus/vobsub2srt&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install vobsub2srt&lt;br /&gt;
&lt;br /&gt;
* Alternatively, you can download and build a version from source code.&lt;br /&gt;
:* Install dependencies: &lt;br /&gt;
 sudo apt-get install pkg-config build-essential cmake libavutil-dev libtesseract-dev&lt;br /&gt;
&lt;br /&gt;
:* For (K)Ubuntu 12.10 (Quantal) also install:&lt;br /&gt;
 sudo apt-get install libtiff5-dev tesseract-ocr-eng&lt;br /&gt;
&lt;br /&gt;
:* For (K)Ubuntu 12.04LTS (Precise) also install:&lt;br /&gt;
 sudo apt-get install libtiff4-dev tesseract-ocr tesseract-ocr-eng  &amp;lt;!---&amp;gt;tesseract-ocr-dev&amp;lt;---&amp;gt; &lt;br /&gt;
&lt;br /&gt;
::* If you will be converting subtitles in languages other than English, you must install tesseract for any or all of those languages as well:&lt;br /&gt;
 sudo apt-get install tesseract-ocr-vie tesseract-ocr-deu tesseract-ocr-fra tesseract-ocr-ita&lt;br /&gt;
 sudo apt-get install tesseract-ocr-nld tesseract-ocr-spa tesseract-ocr-por tesseract-ocr-deu-f&lt;br /&gt;
::where vie is for Vietnamese, deu is for German, fra is for French, ita is for Italian, nld is for Dutch, spa is for Spanish, por is for Portugeuse, and deu-f is for German Fraktur script. If you don't you will get an error of the type: ''Unable to load unicharset file /usr/share/tesseract-ocr/tessdata/xxx.unicharset''.&lt;br /&gt;
&lt;br /&gt;
:* Download and unzip the VobSub2SRT .zip file into its own directory:&lt;br /&gt;
 mkdir vobsub2srt&lt;br /&gt;
 cd vobsub2srt&lt;br /&gt;
 wget -O vobsub2srt-current.zip &amp;lt;nowiki&amp;gt;https://github.com/ruediger/VobSub2SRT/zipball/ca53a18108eb08d6e2b853643d8c6838e2489823&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 unzip vobsub2srt-current.zip&lt;br /&gt;
 rm vobsub2srt-current.zip&lt;br /&gt;
&lt;br /&gt;
:* This will create a subdirectory with the current version. For example, my version is ''vobsub2srt/ruediger-VobSub2SRT-ca53a18''. Change into that directory then compile and install the program.&lt;br /&gt;
 cd ''ruediger-VobSub2SRT-ca53a18''&lt;br /&gt;
 ./configure&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
:* This should install the program vobsub2srt to /usr/local/bin. You can uninstall vobsub2srt with ''sudo make uninstall''. You can build a *.deb package (Debian/Ubuntu) with ''make package''. The package is created in the build directory.&lt;br /&gt;
&lt;br /&gt;
* Convert the .sub / .idx pair of subtitle files (named ''Filename.sub'' and ''Filename.idx'') into a .srt sbutitle file (named ''Filename.srt''):&lt;br /&gt;
 vobsub2srt ''Filename''&lt;br /&gt;
&lt;br /&gt;
:where Filename is the file name of the subtitle files WITHOUT the extension (.sub / .idx).&lt;br /&gt;
&lt;br /&gt;
*If there are multiple languages in the .sub / .idx pair of subtitle files, you can select which language to convert (using the 2-letter [http://en.wikipedia.org/wiki/ISO_639-1 ISO 639-1] language code, e.g. en, fr, de, it, es, pt, etc.):&lt;br /&gt;
 vobsub2srt --lang en ''Filename'' &lt;br /&gt;
&lt;br /&gt;
* Edit the .srt subtitle file for OCR mistakes (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 kate ''Filename.srt''&lt;br /&gt;
&lt;br /&gt;
== Join .MPG video segments ==&lt;br /&gt;
Individual video segments (MPEG-2, for example) can easily be joined:&lt;br /&gt;
 cat ''samplevideo1.mpg'' ''samplevideo2.mpg'' ''samplevideo3.mpg'' &amp;gt; ''samplevideo123.mpg''&lt;br /&gt;
&lt;br /&gt;
:You can then write the resulting MPEG-2 file to a DVD and play it in most DVD players.&lt;br /&gt;
&lt;br /&gt;
== Split a file into segments ==&lt;br /&gt;
Any file can be [http://en.wikipedia.org/wiki/Split_%28Unix%29 split] into segments using the Linux command:&lt;br /&gt;
 split -b 1440k ''my_big_file''&lt;br /&gt;
&lt;br /&gt;
which will split ''my_big_file'' into equal segments of size 1440 kb.&lt;br /&gt;
&lt;br /&gt;
== Create a commercial (.vob) format DVD ==&lt;br /&gt;
* The audiovideo container of commercial DVDs uses the [http://en.wikipedia.org/wiki/VOB .vob format]. This container requires either MPEG-1 or MPEG-2 video (.mpg) and either AC3 or MPEG-2 (.mp2) audio. Therefore, the first step in creating a DVD-video in this format is to convert all audiovisual files (to be included on it) to .mpg files (with one of those video and audio formats), usually with the MPEG-PS (A+V) container. This can be done from the command-line terminal (using mencoder or ffmpeg) or from a GUI utility (such as Avidemux).&lt;br /&gt;
&lt;br /&gt;
:* The GUI utility [[Kubuntu_Precise_Video#Avidemux_.28Video_editor.2Fprocessor.29|Avidemux]] is a GUI utility that has standardised settings for file conversion. [http://avidemux.org/admWiki/doku.php?id=tutorial:converting_to_dvd Here] is the Avidemux tutorial for conversion to a DVD-video.&lt;br /&gt;
&lt;br /&gt;
::* Open the file and allow the time map and Index to be rebuilt.&lt;br /&gt;
::* It is best to convert a file (to be included on the DVD) to a format with MPEG-2 (avcodec) video, AC3 (lav) audio, and the MPEG-PS (A+V) container as an intermediate first. The MP2 audio format (the default for Avidemux in &amp;quot;Auto&amp;quot; mode) can also be used, and will result in a much smaller .mpg file then when using AC3 audio, but several of my very old DVD players only recognise AC3 audio (so this has therefore become my personal preference). &lt;br /&gt;
:::* The easiest method for doing this is to use the Avidemux Auto DVD wizard. (Avidemux -&amp;gt; Auto -&amp;gt; Optical Disc -&amp;gt; DVD). Select the appropriate souce and destination ratios. (My source videos are usually already in 16:9 widescreen formats, and I want to make DVDs for my widescreen 16:9 TV. I therefore choose 16:9 for both the &amp;quot;Source Aspect Ratio&amp;quot; and the &amp;quot;Destination Aspect Ratio.&amp;quot;) The Auto DVD Wizard uses MP2 audio by default, but I personally like AC3 audio instead (the format usually used on &amp;quot;commercial&amp;quot; DVDs).  I therefore change this using the Audio -&amp;gt; AC3 (lav) option.&lt;br /&gt;
:::* It is possible to customise (or initially set) the format options manually as well (see the Avidemux documentation). Select the Video (and make sure the aspect ratio is the one you desire in Video -&amp;gt; Configure -&amp;gt; Configuration: DVD -&amp;gt; Aspect Ratio: ''16:9'' ), Audio, and (container) Format options.&lt;br /&gt;
::::*  To be DVD compliant, the resolution must be&lt;br /&gt;
:::::* 352*480 or 720*480 or 704*480 for NTSC&lt;br /&gt;
:::::* 352*576 or 720*576 or 704*576 for PAL/SECAM&lt;br /&gt;
:::: This is set automatically if using the Auto DVD wizard. If your original video does not already have the correct aspect ratio, you will have to use cropping, scaling, and/or black bar &amp;quot;Filter&amp;quot; options until one of the standard resolutions is achieved. &lt;br /&gt;
&lt;br /&gt;
::* Save the file ( Avidemux -&amp;gt; File -&amp;gt; Save -&amp;gt; Save Video... -&amp;gt; ''myconvertedvideo.mpg'' ) to activate the conversion process. (If prompted whether to &amp;quot;Reuse the existing log file?&amp;quot; answer &amp;quot;No.&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
:* Alternatively, mencoder can be used from the command-line to [[#AVI_to_MPG|convert a file to the .mpg format]].&lt;br /&gt;
&lt;br /&gt;
:* Alternatively, FFMPEG can be used from the command-line to [[#Flash_video_.28.flv.29_to_MPG-2_using_FFMPEG|convert a file to the .mpg format]]. A simplified preset option for for conversion to both PAL and NTSC options is available.&lt;br /&gt;
&lt;br /&gt;
* Once all files to be included on the DVD-video have been converted to .mpg files, the utility [[Kubuntu_Precise_Audio_Video_Conversion#DVD_Author|dvdauthor]] can be used for conversion to .vob format (appropriate for writing to the DVD). While this utility can be used from the command-line, &amp;quot;authoring&amp;quot; (conversion) is more easily accomplished using one of several available [[Kubuntu_Precise_Audio_Video_Conversion#Other_DVD_authoring_programs|GUI front-ends]], which allow creation of menus for the DVD as well.&lt;br /&gt;
&lt;br /&gt;
::* With Kubuntu I use KMediaFactory for simple projects. (QDVDAuthor, which is difficult to install in recent Kubuntu versions, is superior and more powerful. [[Kubuntu_Precise_Audio_Video_Conversion#Other_DVD_authoring_programs|KMediaFactory]], in contrast, is in the repositories and is adequate (and quick) for most purposes.&lt;br /&gt;
:::* Rename the .mpg files (created with Avidemux or other method) carefully. The filename(s) becomes the Title(s) used by KMediaFactory for the video(s) on the DVD menu.&lt;br /&gt;
:::* Set up the DVD menu in KMediaFactory.&lt;br /&gt;
::::* KMediaFactory -&amp;gt; Project -&amp;gt; Title -&amp;gt; ''MyDVDTitle'' (this will appear on the DVD Menu at the top)&lt;br /&gt;
::::* -&amp;gt; Type: ''DVD-NTSC'' -&amp;gt; Aspect: ''16:9'' -&amp;gt; Destination Folder ''/home/user/DVDs''&lt;br /&gt;
:::* Add the .mpg files to the DVD. &lt;br /&gt;
::::* KMediaFactory -&amp;gt; Media -&amp;gt; Add Video -&amp;gt; ''MyFirstVideofile.mpg'' -&amp;gt; VideoProperties: Aspect ratio: ''16:9''&lt;br /&gt;
:::::* -&amp;gt; Add Video -&amp;gt; ''MySecondVideofile.mpg'' -&amp;gt; VideoProperties: Aspect ratio: ''16:9''&lt;br /&gt;
:::* Choose the DVD Menu appearance.&lt;br /&gt;
::::* KMediaFactory -&amp;gt; Template -&amp;gt; ''Preview 3''&lt;br /&gt;
:::* Choose the output format. For this, I generally create a &amp;quot;DVD folder&amp;quot;:&lt;br /&gt;
::::* KMediaFactory -&amp;gt; Output -&amp;gt; DVD Folder&lt;br /&gt;
::: In this way, prior to burning I can check to make sure my DVD looks the way I had intended using [[Kubuntu_Precise_Media_Players#VLC_Multimedia_Player|VLC]] (VLC -&amp;gt; Media -&amp;gt; Open Disc... -&amp;gt; Browse... -&amp;gt; ''specified_folder'' -&amp;gt; Play)&lt;br /&gt;
:::* Start the conversion (&amp;quot;DVD authoring&amp;quot;) process. If an error appears, the problem usually lies in a non-existent (or write-protected) folder having been specified when setting the &amp;quot;Title&amp;quot; options. Make sure the folder has been specified properly. KMediaFactory will then create the standard AUDIO_TS and VIDEO_TS folders in the folder specified.&lt;br /&gt;
::::* -&amp;gt; Start&lt;br /&gt;
&lt;br /&gt;
::* In Kubuntu I then use [[Kubuntu_Precise_Audio_Video_Conversion#K3b_.28CD.2FDVD_burner.29|K3b]] to burn the AUDIO_TS and VIDEO_TS folders to a blank DVD. This can be done in K3b using the &amp;quot;New Video DVD Project&amp;quot; (K3b -&amp;gt; More actions... -&amp;gt; New Video DVD Project) using the AUDIO_TS and VIDEO_TS folders as the data. Edit the name of the DVD to reflect the desired DVD name. &amp;quot;Burn&amp;quot; the DVD. The result will be identical to commercial DVDs. (Note: In recent versions of K3b I have had to &amp;quot;Burn&amp;quot; using the &amp;quot;growisofs&amp;quot; Writing app at 8x Speed and DAO (Disc-At-Once) Writing Mode in order to achieve reliable burns. See [[Kubuntu_Precise_Audio_Video_Conversion#K3b_.28CD.2FDVD_burner.29|here]] for more details.)&lt;br /&gt;
&lt;br /&gt;
== Recommended formats ==&lt;br /&gt;
* There is only one format that works on all my devices (computer (both Linux and Windows), (Android) tablet, (Android) eBook reader, MP3 player, DVD player):&lt;br /&gt;
:* .AVI container with XVID/DivX video codec and MP3lame (MP3) audio codec&lt;br /&gt;
&lt;br /&gt;
:I use this for all my devices, and encode files to about 700 MB. This is a good size that gives good quality and allows me to fit many videos on a single SDcard (which I use in my mobile devices). For most of my devices, a 128 kb MP3 encoding bitrate is sufficient; I previously encoded at 192 kb for MP3lame (which is the default bitrate for AC3 sound), but I find this bitrate to be unnecessary. (The higher the encoding bitrate, the larger the encoded file, and I try to keep all my files around 700 MB.) The .AVI container has several limitations: it does not allow more than stereo audio (i.e. no 5.1 surround sound), does not allow multiple subtitle files, and requires a constant bitrate (CBR) audio channel. For advanced archival purposes it may not be suitable in the long-term, but currently it is desirable for the wide range of devices that accept it. It is also one of the only containers guaranteed to be accepted by Windows computers (since the container is originally a Windows-based format). &lt;br /&gt;
&lt;br /&gt;
* I am also able to use an .MP4 container with X264/H.264 video codec and either the AAC audio codec or the MP3lame (MP3) audio codec on many devices, but not all. Neither the X264/H.264 video nor the AAC audio will play on my DVD player or MP3 player, for example (though it plays on my computer and Android tablet devices).&lt;br /&gt;
&lt;br /&gt;
:* The related .M4V container (the proprietary Apple Quicktime format) works on almost none of my devices, and, furthermore, is difficult to decode and re-encode to a different container. I shun this format like the plague.&lt;br /&gt;
&lt;br /&gt;
* The newer .MKV container, though open source and a superior container, is accepted by very few of my older devices. It does not play on my (older) DVD player or MP3 player, for example (no matter which video and audio codecs are used). &lt;br /&gt;
&lt;br /&gt;
:Nevertheless, most newer DVD players seem to accept the .MKV format. In fact, it is now difficult to find DVD players that will still play .AVI with XVID / DivX video. Over the years, however, I have accumulated a very large collection of .AVI / XVID / MP3 videos. In 2013, the only DVD player I could find that would play them all was the Philips DVP3680/F7 DVD Player with HD Upconversion (which I found at [http://www.bestbuy.com/site/Philips+-+DVD+Player+with+HD+Upconversion/4983625.p;jsessionid=436B03D27CA483A9AB8EC510D0B2B03C.bbolsp-app01-115?id=1218644449769&amp;amp;skuId=4983625&amp;amp;st=philips&amp;amp;cp=1&amp;amp;lp=15 Best Buy] for $40). I highly recommend this player, therefore, if you find yourself with a large collection of .AVI / XVID video files. However, it does not play MP4 files, which is a drawback. (Note: I am told that [http://www.amazon.com/Philips-Region-1080p-Upconverting-Player/dp/B004BI6MVS/ref=pd_cp_e_0#productDescription this upconverting Philips DVD] player will play region-free, both PAL and NTSC formats, and both MP4 and DivX/XVID codecs.)&lt;br /&gt;
&lt;br /&gt;
* My Android (2.3) tablet devices will also not accept the AC3 audio codec (which is the standard audio used on commercial DVDs, for example), so most of the time I re-encode any files having AC3 audio with the MP3lame audio codec instead.&lt;/div&gt;</description>
			<pubDate>Sat, 27 Apr 2013 21:11:19 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Video_Conversion</comments>		</item>
		<item>
			<title>Template:Video Conversion</title>
			<link>http://easylinux.info/wiki/Template:Video_Conversion</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Create a commercial (.vob) format DVD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Video Conversion =&lt;br /&gt;
This guide does not advocate the illegal duplication of copyrighted content. However, fewer and fewer devices use DVDs any longer, and a large amount of video content is distributed on DVDs. It becomes necessary to convert video content into formats that can be viewed on devices that no longer used DVDs. Furthermore, online content is often in a format that is not universally playable and this also requires conversion. Trying to select and encode a video into a format which your device accepts is not always a straightforward task. &lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
There are lots of video and audio codecs and lots of methods and preferences for converting between formats. These are only some basic examples. A good deal of trial and error is often required for successful video conversion.&lt;br /&gt;
&lt;br /&gt;
* Mencoder and FFMPEG are the two packages that are the workhorses of video conversion. Of these, mencoder is faster and generally gives better results.&lt;br /&gt;
&lt;br /&gt;
* [[Kubuntu_Precise_Audio_Video_Conversion#Handbrake|Handbrake]] uses a streaming algorithm and FFMPEG to &amp;quot;rip&amp;quot; DVDs and can work with many different encryption methods. It uses the (superior, open source) [http://en.wikipedia.org/wiki/Matroska .MKV] container only, however (which is not supported by many devices). It also does not support [http://en.wikipedia.org/wiki/Xvid XVID] (and uses either [http://en.wikipedia.org/wiki/X264 X264/H.264] or [http://en.wikipedia.org/wiki/MPEG-4_Part_14 MP4] video codecs) and therefore its video output is also not universally accepted by a wide range of devices. As these standards become more widely accepted, however, this will be an invaluable encoding tool. On rare occasions I rip a video with Handbrake (to .MKV and H.264/MP3) and then convert it to .AVI (XVID/MP3) in a second step (using mencoder).&lt;br /&gt;
&lt;br /&gt;
* When I originally wrote these articles, .MKV was accommodated by only a handful of DVD players. A recent survey of new DVD players shows that most (including widely available inexpensive DVD players) will now play files in .MKV format. In fact, it is now difficult to find DVD players that will still play .AVI with XVID / DivX video. However, over the years I have accumulated a very large collection of .AVI / XVID / MP3 videos. In 2013, the only DVD player I could find that would play them all was the Philips DVP3680/F7 DVD Player with HD Upconversion (which I found at Best Buy for $40). I highly recommend this player if you find yourself with a large collection of .AVI / XVID video files.&lt;br /&gt;
&lt;br /&gt;
== Mencoder ==&lt;br /&gt;
[http://www.mplayerhq.hu/DOCS/HTML/en/mencoder.html Mencoder] is part of the [http://www.mplayerhq.hu/DOCS/HTML/en/index.html MPlayer] set of libraries (that also uses several of the FFMPEG libraries) for audio/visual conversion. If it is not installed on your system, install it:&lt;br /&gt;
 sudo apt-get install mencoder&lt;br /&gt;
&lt;br /&gt;
Usage instructions can be found from the command-line (''man mencoder'') or [http://linux.die.net/man/1/mencoder here].&lt;br /&gt;
&lt;br /&gt;
=== MP4 with AAC audio to AVI with Xvid / MP3 ===&lt;br /&gt;
* The [http://en.wikipedia.org/wiki/Advanced_Audio_Coding#Licensing_and_patents AAC audio codec] is not compatible with many DVD players and devices due to licensing restrictions, whereas the MP3 audio codec is nearly universally accepted. Xvid is the open source version of the DivX video codec and is accepted by a very large number of DVD players and other devices (even older ones, especially those displaying the DivX logo).&lt;br /&gt;
&lt;br /&gt;
* The [http://en.wikipedia.org/wiki/Audio_Video_Interleave .AVI] container only allows a [http://en.wikipedia.org/wiki/Constant_bitrate constant bitrate], so the MP3 audio must be encoded at CBR. If the AAC is [http://en.wikipedia.org/wiki/5.1_surround_sound 5.1], it will be downcoded to stereo for MP3.&lt;br /&gt;
&lt;br /&gt;
* This example is a two-pass technique that allows the file size to be specified and quality optimized for that filesize (using the information generated in the first pass). In this example, a 700 MB file is desired (and is specified by the negative value).&lt;br /&gt;
&lt;br /&gt;
This information is from [http://en.gentoo-wiki.com/wiki/HOWTO_Mencoder_Introduction_Guide#XviD the Gentoo Wiki for Xvid and mencoder].&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.mp4&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder &amp;lt;input.mp4&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-700000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Remove MKV subtitles and convert to AVI (XVID/MP3) ===&lt;br /&gt;
Mastroska container ([http://en.wikipedia.org/wiki/Matroska .MKV]) video files can have multiple subtitles included. In the default conversion from an .MKV container format to an [http://en.wikipedia.org/wiki/Audio_Video_Interleave .AVI] container format, the default subtitle file of the .MKV container is automatically hardcoded into the converted .AVI file, which may be undesirable. To overcome this behaviour (so that the converted .AVI has no subtitles), use the ''-sid 999'' option:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.mkv&amp;gt; -sid 999 -ovc xvid -oac mp3lame -lameopts cbr:br=192 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder &amp;lt;input.mkv&amp;gt; -sid 999 -ovc xvid -oac mp3lame -lameopts cbr:br=192 -xvidencopts pass=2:bitrate=-1400000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* To hardcode one of the subtitle tracks onto the .AVI video from the .MKV video, choose the subtrack ID, such as ''-sid 0'' or ''-sid 1''.&lt;br /&gt;
&lt;br /&gt;
* If using NTFS and the error &lt;br /&gt;
&lt;br /&gt;
Too many audio packets in the buffer: (4096 in 837540 bytes).&lt;br /&gt;
 &amp;gt; Maybe you are playing a non-interleaved stream/file or the codec&lt;br /&gt;
 &amp;gt; failed? For AVI files, try to force non-interleaved mode with the&lt;br /&gt;
 &amp;gt; -ni option.&lt;br /&gt;
&lt;br /&gt;
appears, then add these options:&lt;br /&gt;
 -mc 0 -ofps 24000/1001 -noskip&lt;br /&gt;
&lt;br /&gt;
=== DVD to AVI with Xvid / MP3 ===&lt;br /&gt;
* See the [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-dvd-mpeg4.html mencoder documentation].&lt;br /&gt;
* Extract a video (in the .vob format) from a DVD to a file with an [http://en.wikipedia.org/wiki/Audio_Video_Interleave .AVI] container and [http://en.wikipedia.org/wiki/Xvid XVID]/DivX video and [http://en.wikipedia.org/wiki/LAME .MP3] audio using this (2-pass conversion) command: &lt;br /&gt;
 mencoder dvd://''1'' -vobsub 999 -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder dvd://''1'' -vobsub 999 -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-700000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where dvd://''1'' indicates the first track of the DVD. If you are not sure which track contains the content you wish to extract to a file, one way to check this is to play the DVD with a media player like VLC, examining the tracks on it:&lt;br /&gt;
:VLC -&amp;gt; Media -&amp;gt; Open Disc... -&amp;gt; Play -&amp;gt; Playback -&amp;gt; Navigation&lt;br /&gt;
&lt;br /&gt;
or from the command line install lsdvd (''sudo apt-get install lsdvd'') and use it:&lt;br /&gt;
 lsdvd -v -t 1 /dev/dvd&amp;lt;!---&amp;gt;mplayer dvd:// -v | grep &amp;quot;video stream&amp;quot;&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will show a list of the title numbers (for the content tracks) on the DVD (and information about them). Use the title number for the content to be extracted.&lt;br /&gt;
&lt;br /&gt;
* Conversion is much faster when done from from a hard drive than from a physical DVD. It is possible to copy the VIDEO_TS and AUDIO_TS folders from the physical DVD to a folder on the hard drive. Once you have copied the contents of the DVD to a folder, add the ''-dvd-device /path/to/dvd_folder'' option to specify it (with the same options as above in addition to the new one):&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder''&lt;br /&gt;
&lt;br /&gt;
* Note the ''-vobsub 999'' option to prevent subtitles from being automatically added. (If you wish to hardcode subtitles, use the number of the subtitle track, such as ''-sid 0'' or ''-vobsubid 0'' for the default subtitle track or ''-sid 1'' or ''-vobsubid 1'' for the next subtitle track.)&lt;br /&gt;
&lt;br /&gt;
* Other options for video cropping and scaling can be used. See [http://www.axllent.org/docs/video/mencoder_dvd_to_mpeg4 these hints] and [http://savvyadmin.com/tag/xvid/ these tips], as well as [[#Resize_a_video|this section]].&lt;br /&gt;
&lt;br /&gt;
* When better audio quality is desired, an audio [http://en.wikipedia.org/wiki/Bit_rate bitrate] more than 128 kb/sec can be used (e.g. ''br=160'' or ''br=192''), but this will give a larger file (or will decrease video quality if the filesize remains constant). cbr (constant bitrate) is used for mp3lame encoding in .AVI; I generally increase the volume of the video by 30% using the vol=3 option, as well. My final audio command therefore usually ends up: ''-oac mp3lame -lameopts cbr:br=128:vol=3''.&lt;br /&gt;
&lt;br /&gt;
* If there are multiple audio tracks, the audio track can be selected with the ''-aid 1'' (or similar) option, specifying the number of the desired audio track. (Note: check audio track numbering carefully.) The English default audio track is usually ''-aid 128''. To show information about the audio tracks, use&lt;br /&gt;
 lsdvd -a -t 1 /dev/dvd&amp;lt;!---&amp;gt;mplayer dvd:// -v | grep &amp;quot;audio stream&amp;quot;&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Although the ''bitrate=-700000'' option specifies a target file size of 700000 (approx. 700 MB), this actually results in a file size of nearly 800 MB. Specify a target filesize about 15% less than actually desired, therefore. For a target 700 Mb file, for example, I use ''bitrate=-620000''.&lt;br /&gt;
&lt;br /&gt;
* For XVID there is an option to allow video seeking (for fast forwarding or rewinding) in 1 second increments (instead of the default 10 second increments): ''-xvidencopts max_key_interval=25'' (seek every 25 frames instead of the default 250 frames). This would be included as part of a more complex option string, such as ''-xvidencopts pass=2:max_key_interval=25:bitrate=-620000''.&lt;br /&gt;
&lt;br /&gt;
* In order to play the converted .AVI file on my older DVD players and televisions (and avoid significant motion artifacts and pixelation), I find that I must use deinterlacing. Only two interlacing methods have worked well for me: ''-vf pp=lb'' or ''-vf yadif=0''. There are many methods of deinterlacing for mencoder, however (see [http://guru.multimedia.cx/deinterlacing-filters/ here] and [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-telecine.html here], for example). Deinterlacing may not be necessary for your needs (when used for archival purposes only, for example, or if viewing files with media players (such as VLC) that already have built-in deinterlacing capabilities). Often recommended when ripping NTSC-format movies (progressive or telecined) is to include the option ''-vf pullup,softskip,harddup'', which must be used with a deinterlacing filter, such as ''-vf pullup,softskip,pp=lb,harddup'' (or ''-vf pullup,softskip,yadif=0,harddup'').&amp;lt;!---&amp;gt; (This only works properly using a 2-pass conversion method.)&amp;lt;---&amp;gt; The order of the telecine/progressive option, the deinterlacing option, and any cropping or scaling options is very specific -- read the [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-telecine.html#menc-feat-telecine-encode mencoder documentation] carefully when mixing these options. Specifically, cropping and scaling (when used) should be done after the telecine/progressive/deinterlacing options but before the frame duplication option, e.g. ''-vf pullup,softskip,pp=lb,crop=720:416:0:80,scale=704:304,harddup''.&lt;br /&gt;
&lt;br /&gt;
* Note: You will need [[Kubuntu_Precise_Audio_Video_Conversion#libdvdcss|libdvdcss2]] installed on your system to access DVD data. If your DVD has encryption that is not able to be decrypted by libdvdcss, then consider using [[Kubuntu_Precise_Audio_Video_Conversion#Handbrake|Handbrake]], which uses a streaming algorithm to &amp;quot;rip&amp;quot; DVDs.&lt;br /&gt;
&lt;br /&gt;
* This is the 2-pass command I end up using most often (with 4:3 NTSC videos):&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=2:max_key_interval=25:bitrate=-620000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* This is the 2-pass command I end up using most often (with 16:9 NTSC videos):&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,scale=648:364,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,scale=648:364,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=2:max_key_interval=25:bitrate=-620000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:The scale option is set so that I can play the video on analogue televisions with overscan (I still have a few of those). However, an alternative is to use ''scale=720:406'' for use on most widescreen TVs.&lt;br /&gt;
&lt;br /&gt;
==== Using k9copy as a conversion front-end ====&lt;br /&gt;
* [[Kubuntu_Precise_Audio_Video_Conversion#K9copy_.28DVD_Ripper.29|k9copy]] is a good front-end for mencoder (as well as ffmpeg).&lt;br /&gt;
* To add an option to encode to XVID from an NTSC DVD (when using mencoder within k9copy), I add the necessary options to the Video codecs section:&lt;br /&gt;
:k9copy -&amp;gt; Configure k9copy -&amp;gt; Encoders -&amp;gt; ''mencoder'' -&amp;gt; Add -&amp;gt; label: ''XVID from NTSC'' -&amp;gt; first pass -&amp;gt;&lt;br /&gt;
 -ovc xvid -xvidencopts bitrate=$VIDBR:turbo:pass=$PASS:aspect=$ASPECT -vf pullup,softskip,pp=lb,crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT,harddup&lt;br /&gt;
&lt;br /&gt;
The same command is entered for the &amp;quot;second pass&amp;quot; option as well. For the &amp;quot;one pass&amp;quot; option enter:&lt;br /&gt;
 -ovc xvid -xvidencopts bitrate=$VIDBR:aspect=$ASPECT -vf pullup,softskip,pp=lb,crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT,harddup&lt;br /&gt;
&lt;br /&gt;
* To then use this new Video codec option, make sure it is selected:&lt;br /&gt;
:k9copy -&amp;gt; Configure k9copy -&amp;gt; MPEG-4 -&amp;gt; Video -&amp;gt; Codec -&amp;gt; ''XVID from NTSC'' -&amp;gt; 2 pass (''ticked'') -&amp;gt; Apply&lt;br /&gt;
&lt;br /&gt;
At the same time, the MP3 (lame) Audio codec option can be selected:&lt;br /&gt;
:k9copy -&amp;gt; Configure k9copy -&amp;gt; MPEG-4 -&amp;gt; Audio -&amp;gt; Codec -&amp;gt; ''mp3 (lame)'' -&amp;gt; OK&lt;br /&gt;
&lt;br /&gt;
* Now when the Output: ''MPEG-4 encoding'' is selected from the main screen, this &amp;quot;XVID from NTSC&amp;quot; Video encoding option will be used.&lt;br /&gt;
&lt;br /&gt;
* Note that the ''-vf pullup,softskip,pp=lb,crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT,harddup'' option can be used with any Video codec, not just XVID.&lt;br /&gt;
&lt;br /&gt;
=== AVI to MPG ===&lt;br /&gt;
* The  MPG format is sometimes useful for creating DVDs (using the [http://en.wikipedia.org/wiki/MPEG-1 MPEG-1] or [http://en.wikipedia.org/wiki/MPEG-2 MPEG-2] video codec, which can be then used for vob files using [[Ubuntu:All#DVD_Author|QDVDAuthor]] or [[Ubuntu:All#ToVid|ToVid]]). If the audio codec of the AVI file is already AC3 or MP3, it usually can be copied. This example is take from the [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-mpeg.html MPlayer/Mencoder documentation]. Example:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy -o &amp;lt;output.mpg&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Increase volume ===&lt;br /&gt;
&lt;br /&gt;
* Use the ''-af volume=3:0'' option, where the first number (3 in the example) is the number of decibels to increment the volume (a 3 db increment doubles the volume), and the second number is 0 for hard-clipping and 1 to allow software-based clipping (to prevent oversaturation when the sound becomes too loud).&lt;br /&gt;
&lt;br /&gt;
For example, if I want to double the sound volume of my .AVI video:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -oac mp3lame -lameopts cbr:br=128 -af volume=3:0 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* This can also be done when encoding to the mp3lame audio codec by adding an option to the mp3lame options:&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -oac mp3lame -lameopts cbr:br=128:vol=3 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:where ''vol=3'' can be set to any value between -10 and 10. I use ''vol=3'' to increase the volume 30%. (This method works best for me.)&lt;br /&gt;
&lt;br /&gt;
=== Add subtitles to video ===&lt;br /&gt;
* [http://en.wikipedia.org/wiki/SubRip .srt] subtitle files are essentially text files with time stamps. They are meant to be used with digital video files (such as .AVI files) and are different from the image-based .idx / .sub subtitle files (vobsub) used with the [http://en.wikipedia.org/wiki/VOB .vob] format found on commercial DVDs.&lt;br /&gt;
&lt;br /&gt;
* Using mencoder:&lt;br /&gt;
 mencoder -ovc [codec] [codec opts] -oac copy -sub [sub file.srt] -subfont-text-scale [3 normally]&lt;br /&gt;
&lt;br /&gt;
In the example above, this would be:&lt;br /&gt;
 mencoder &amp;lt;input.mp4&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-700000 -sub &amp;lt;subtitles.srt&amp;gt; -subfont-text-scale 3 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Note: When adding subtitles to an .AVI video, you must transcode it completely. It is not sufficient to merely add the subtitle track as listed above -- the entire video must be re-transcoded. So, for example:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-1400000 -sub &amp;lt;subtitles.srt&amp;gt; -subfont-text-scale 3 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Trim a video ===&lt;br /&gt;
*Using mencoder:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -oac mp3lame -ss 01:57:12 -endpos 00:04:08 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where -ss indicates the start position of the clip (hh:mm:ss) and -endpos indicates how long the clip should be. (I use mp3lame for the audio codec because YouTube accepts that.)&lt;br /&gt;
&lt;br /&gt;
=== Resize a video ===&lt;br /&gt;
*Using mencoder:&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc xvid -vf scale=320:240 -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-1400000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where -vf scale=320x240 indicates that the resulting video should be of that size. The position of the suboption in the command string is important.&lt;br /&gt;
&lt;br /&gt;
* [http://en.wikipedia.org/wiki/High-definition_television HDTV] resolution is usually 1920 x 1080 (&amp;quot;1080p&amp;quot;) or 1280 x 720 (&amp;quot;720p&amp;quot;). A [http://en.wikipedia.org/wiki/Standard-definition_television standard definition] widescreen TV has a maximum height of &amp;quot;480p&amp;quot; (usually 853 x 480 but sometimes 720 x 406). The standard width:height [http://en.wikipedia.org/wiki/Aspect_ratio_%28image%29 aspect ratio] for cinema is 1.85:1, whereas the average aspect ratio for widescreen movies distributed for display on television is 16:9 (1.78:1). When resizing a video, it is good to know the original dimensions of the video and maintain the width to height aspect ratio in the chosen scale. &lt;br /&gt;
&lt;br /&gt;
:*Example: A video is distributed as 1280 x 692 (which has an aspect ratio of 1.85:1). The device (a low resolution television) on which it is to be displayed has a maximum width of 720. The desired resolution would then be 720 x 390 to keep the aspect ratio at approximately 1.85:1. The option would then be ''-vf scale=720:390''. An analog television would require 10% [http://en.wikipedia.org/wiki/Overscan overscan], making the maximum width 648. To keep an aspect ratio of 1.85:1 would require a resolution of 648 x 350, or a scale option of ''-vf scale=648:350''. &lt;br /&gt;
&lt;br /&gt;
:*Example: An HQ video is distributed as 1920 x 1080 (which has an aspect ratio of 16:9). It is desired to view the video on a television with a maximum width of 720p, which would require a final resolution of 720 x 406 to maintain an aspect ratio of 16:9. The scale option would be ''-vf scale=720:406''.&lt;br /&gt;
&lt;br /&gt;
:*Example: An HQ video is distributed as 1920 x 1080 (which has an aspect ratio of 16:9). It is desired to view the video on an analogue television with 10% [http://en.wikipedia.org/wiki/Overscan overscan], which would require a final resolution of 648 x 364 to maintain an aspect ratio of 16:9. The scale option would be ''-vf scale=648:364''.&lt;br /&gt;
&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Standard-definition_television &amp;quot;Standard&amp;quot; definition] [http://en.wikipedia.org/wiki/Analog_television analog television] has a 4:3 ratio, for which a scale of 640:480 (''-vf scale=640:480'') is generally preferable.&lt;br /&gt;
&lt;br /&gt;
=== Convert to .MP3 audio file ===&lt;br /&gt;
* I find [[#Convert_to_.MP3_audio_file_using_FFMPEG|FFMPEG]] to be easier for this task.&lt;br /&gt;
&lt;br /&gt;
* (''Under construction'') To use Mplayer to extract audio to pcm .wav file:&lt;br /&gt;
 mplayer &amp;lt;input.avi&amp;gt; -vc null -oa pcm -aofile -ss 1441.4 -endpos 260.1 &amp;lt;output.wav&amp;gt;   &lt;br /&gt;
&lt;br /&gt;
*Then convert the .wav file to .mp3 with your favourite converter (such as SoundConverter).&lt;br /&gt;
&lt;br /&gt;
=== Change audio track of video ===&lt;br /&gt;
* In general, [[All#Avidemux_.28Video_editor.2Fprocessor.29|Avidemux]] is a good video editor for most needs, including muxing and demuxing video and audio.&lt;br /&gt;
&lt;br /&gt;
* For a quick method to change the audio for a video, I like to merely remove the audio from the original video file using the ''-nosound'' option, for example:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -nosound -o &amp;lt;outputnosound.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Then, I add a new audio file as the audio track to the video using the ''-audiofile'' option. For example, if I now want to add an .mp3 audio track named &amp;lt;newaudio.mp3&amp;gt;, I would use the command:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;outputnosound.avi&amp;gt; -ovc copy -oac mp3lame -audiofile &amp;lt;newaudio.mp3&amp;gt; -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FFMPEG ==&lt;br /&gt;
[http://ffmpeg.org/ FFMPEG] is the swiss-army knife of video and audio format conversion. It succeeds when no other program can. It is free and open source. If it not yet installed on your system as part of another package (it is used by many video/audio editors), then install it:&lt;br /&gt;
 sudo apt-get install ffmpeg&lt;br /&gt;
&lt;br /&gt;
*To convert many different formats, read the [http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html FFMPEG documentation]. Also see [http://howto-pages.org/ffmpeg/ this tutorial].&lt;br /&gt;
&lt;br /&gt;
=== Flash video (.flv) to MPG-2 using FFMPEG ===&lt;br /&gt;
* To convert a saved Flash video (.flv) to an MPEG-2 format playable on a DVD, convert:&lt;br /&gt;
 ffmpeg -i ''samplevideo.flv'' -target ntsc-dvd ''samplevideo.mpg''&lt;br /&gt;
&lt;br /&gt;
* Then use [[Kubuntu:Oneiric#K3b (CD/DVD burner)|K3b]] (or [[Ubuntu:Oneiric#Gnomebaker (CD/DVD burner)|Gnomebaker]]) to write the mpg file to a New DVD Data Project.&lt;br /&gt;
&lt;br /&gt;
:*For PAL use -target pal-dvd. For widescreen, use -target film-dvd. For other conversion tips, see [http://ubuntuforums.org/archive/index.php/t-1006250.html this forum]. (Note: Most Flash video has very low resolution, with a screen size of 360x270, for example. You may see a slight diminishment in resolution if you wish to convert it to 720x480 (which is the NTSC standard size) or other screen size. You can keep the original screen size and resolution by omitting the -target parameter.) If your original file is 16:9 widescreen and you desire a 4:3 letterbox output for playing on an overscanned TV, you may need to pad the file so that the widescreen is not compressed (see [http://ubuntuforums.org/showthread.php?t=1010648 this forum]):&lt;br /&gt;
&lt;br /&gt;
 ffmpeg -i ''samplevideo.flv'' -target ntsc-dvd -s 648x364 -padleft 36 -padright 36 -padtop 58 -padbottom 58 ''samplevideo.mpg''&lt;br /&gt;
&lt;br /&gt;
* You can also use the WinFF GUI and add the command (as above) as a &amp;quot;Preset,&amp;quot; for subsequent use. For example:&lt;br /&gt;
:Video converter (WinFF) -&amp;gt;  Edit -&amp;gt; Presets -&amp;gt;&lt;br /&gt;
:: Preset Name: Letterbox -&amp;gt; Preset Label: 16:9 Widescreen to 4:3 Letterbox&lt;br /&gt;
:: Preset command: -target ntsc-dvd -s 648x364 -padleft 36 -padright 36 -padtop 58 -padbottom 58&lt;br /&gt;
::Ouput file extension: mpg -&amp;gt; Category: DVD&lt;br /&gt;
:::-&amp;gt; Add/Update -&amp;gt; Save&lt;br /&gt;
&lt;br /&gt;
*To convert to MPEG-4 (mp4) files, use&lt;br /&gt;
 ffmpeg -i ''samplevideo.flv'' ''outputvideo.mp4''&lt;br /&gt;
&lt;br /&gt;
* FFMPEG requires that multiple [[Kubuntu:Oneiric#Restricted Extras|restricted extra codecs]] be installed. This can be done in a single easy step from the command-line Terminal:&lt;br /&gt;
 sudo apt-get install kubuntu-restricted-extras&lt;br /&gt;
:or&lt;br /&gt;
 sudo apt-get install ubuntu-restricted-extras&lt;br /&gt;
&lt;br /&gt;
=== Convert to .MP3 audio file using FFMPEG ===&lt;br /&gt;
==== Convert Flash video audio to mp3 ====&lt;br /&gt;
* Once you have downloaded flash video content (.flv) from the Internet (using the [[Kubuntu:Oneiric#Video_DownloadHelper_plug-in_for_Firefox|Video Download Helper plug-in for Firefox]], for example), the audio component can be converted to an mp3 using this command (from the command line Terminal). (This will work for any type of video file, not just Flash.)&lt;br /&gt;
 ffmpeg -i ''nameofvideoclip.flv'' -ab 160k -ac 2 -ar 44100 -vn ''nameoffile.mp3''&lt;br /&gt;
&lt;br /&gt;
:where -i indicates the input, -ab indicates the bit rate (in this example 160kb/sec), -vn means no video ouput, -ac 2 means 2 channels, -ar 44100 indicates the sampling frequency. See [http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html#SEC11 FFMPEG docs] for more info.&lt;br /&gt;
&lt;br /&gt;
If I only want a segment of the video to be converted, I can use the time markers:&lt;br /&gt;
 ffmpeg -i ''nameofvideoclip.flv'' -ss ''00:00:09'' -t ''00:03:00'' -ab 160k -ac 2 -ar 44100 -vn ''nameoffile.mp3''&lt;br /&gt;
:where -ss ''00:00:09'' indicates the point in the video (hh:mm:ss) at which to start conversion and -t ''00:03:00'' indicates the amount of time (from the start point) to convert.&lt;br /&gt;
&lt;br /&gt;
* As long as [[#FFMPEG|FFMPEG]] is already installed, the [[Kubuntu:Oneiric#Video_DownloadHelper_plug-in_for_Firefox|Video DownloadHelper plug-in for Firefox]] already has an option to automatically convert an online video (such as those found at YouTube) into an .MP3 file. (Settings are adjustable.) From the DownloadHelper icon in Firefox, highlight the video to convert, then&lt;br /&gt;
:DownloadHelper icon -&amp;gt; Download and Convert -&amp;gt; Converter options: MP3&lt;br /&gt;
&lt;br /&gt;
=== Edit/convert screencapture with FFMPEG ===&lt;br /&gt;
''Note: This section under construction.''&lt;br /&gt;
&lt;br /&gt;
*Note: I now recommend using [[Video_Conversion|mencoder for all video conversion]] techniques. It uses some of the ffmpeg libraries but is faster and gives more reliable and high-quality results.&lt;br /&gt;
&lt;br /&gt;
*This is only one example of a wide variety of techniques. Once I have a [[Screencasts#FFMPEG_with_x11grab|captured video]], I want to convert it to XVID video (which is the format my older DVD player accepts) and MP3 audio (mp3lame), which I will place in an AVI container (which my DVD player also accepts). &lt;br /&gt;
&lt;br /&gt;
 ffmpeg -i ''Punchcast1.avi'' -vcodec mpeg4 -vtag xvid -acodec libmp3lame -ss 00:00:09 -t 00:03:00 ''Punchcast2.avi''&lt;br /&gt;
&lt;br /&gt;
I will start conversion (-ss) at second 9 (to eliminate unimportant things at the beginning) and convert 3 minutes (-t) of video (00:03:00).&lt;br /&gt;
&lt;br /&gt;
* I happen to watch my screencasts on my old-fashioned 4:3 television. To do that, I make a letterboxed video:&lt;br /&gt;
&lt;br /&gt;
 ffmpeg -i ''Punchcast1.avi'' -vcodec mpeg4 -vtag xvid -ss 00:00:09 -t 00:03:00 -s 648x364 -padleft 36 -padright 36 -padtop 58 -padbottom 58 -acodec libmp3lame  ''Punchcast3.avi''&lt;br /&gt;
&lt;br /&gt;
My laptop screen is 1366x768, which I reduce to a size of 648x364. My TV wants 720x480, so I pad the sides and top/bottom. Why not a width of 720 initially? My older television has 10% overscan, which cuts off 10% of the video. I therefore use (at least) 10% padding on the edges.&lt;br /&gt;
&lt;br /&gt;
In newer versions of FFMPEG, the padding (and many other) options have changed. The proper command is now:&lt;br /&gt;
 ffmpeg -i Punchcast1.avi -vcodec mpeg4 -vtag xvid -ss 00:00:09 -t 00:03:00 -s 648x364 -vf pad 720:480:36:58 -acodec libmp3lame Punchcast3.avi&lt;br /&gt;
&lt;br /&gt;
 ffmpeg movie=Punchcast1.avi:seek_point=9 -vcodec copy -acodec libmp3lame Punchcast1f.avi&lt;br /&gt;
&lt;br /&gt;
=== WinFF (FFMPEG GUI) ===&lt;br /&gt;
[http://winff.org WinFF] is a free, GPL-licensed open source GUI frontend for FFMPEG. Install:&lt;br /&gt;
 sudo apt-get install winff xterm&lt;br /&gt;
Run:&lt;br /&gt;
:Menu -&amp;gt; Applications -&amp;gt; Sound &amp;amp; Video -&amp;gt; WinFF&lt;br /&gt;
&lt;br /&gt;
== VobSub2SRT (Convert subtitles from .sub/.idx to .srt) ==&lt;br /&gt;
* [https://github.com/ruediger/VobSub2SRT VobSub2SRT] is a simple (GPLv3-licensed) command line program to convert the image-based .idx / .sub subtitle files (used with the [http://en.wikipedia.org/wiki/VOB .vob] format found on commercial DVDs) into text-based [http://en.wikipedia.org/wiki/SubRip .srt] text subtitle files by using OCR. It is based on code from the [[Ubuntu:All#MPlayer_Multimedia_Player|MPlayer]] project, [[Ubuntu:All#Tesseract_.28Optical_Character_Reader.29|Tesseract]] as OCR software, and libavutil (part of the [[Ubuntu:All#FFMPEG_video_.2F_audio_conversion|FFmpeg]] project). Install the (K)Ubuntu/Debian (.deb) package from a PPA repository:&lt;br /&gt;
 sudo add-apt-repository ppa:ruediger-c-plusplus/vobsub2srt&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install vobsub2srt&lt;br /&gt;
&lt;br /&gt;
* Alternatively, you can download and build a version from source code.&lt;br /&gt;
:* Install dependencies: &lt;br /&gt;
 sudo apt-get install pkg-config build-essential cmake libavutil-dev libtesseract-dev&lt;br /&gt;
&lt;br /&gt;
:* For (K)Ubuntu 12.10 (Quantal) also install:&lt;br /&gt;
 sudo apt-get install libtiff5-dev tesseract-ocr-eng&lt;br /&gt;
&lt;br /&gt;
:* For (K)Ubuntu 12.04LTS (Precise) also install:&lt;br /&gt;
 sudo apt-get install libtiff4-dev tesseract-ocr tesseract-ocr-eng  &amp;lt;!---&amp;gt;tesseract-ocr-dev&amp;lt;---&amp;gt; &lt;br /&gt;
&lt;br /&gt;
::* If you will be converting subtitles in languages other than English, you must install tesseract for any or all of those languages as well:&lt;br /&gt;
 sudo apt-get install tesseract-ocr-vie tesseract-ocr-deu tesseract-ocr-fra tesseract-ocr-ita&lt;br /&gt;
 sudo apt-get install tesseract-ocr-nld tesseract-ocr-spa tesseract-ocr-por tesseract-ocr-deu-f&lt;br /&gt;
::where vie is for Vietnamese, deu is for German, fra is for French, ita is for Italian, nld is for Dutch, spa is for Spanish, por is for Portugeuse, and deu-f is for German Fraktur script. If you don't you will get an error of the type: ''Unable to load unicharset file /usr/share/tesseract-ocr/tessdata/xxx.unicharset''.&lt;br /&gt;
&lt;br /&gt;
:* Download and unzip the VobSub2SRT .zip file into its own directory:&lt;br /&gt;
 mkdir vobsub2srt&lt;br /&gt;
 cd vobsub2srt&lt;br /&gt;
 wget -O vobsub2srt-current.zip &amp;lt;nowiki&amp;gt;https://github.com/ruediger/VobSub2SRT/zipball/ca53a18108eb08d6e2b853643d8c6838e2489823&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 unzip vobsub2srt-current.zip&lt;br /&gt;
 rm vobsub2srt-current.zip&lt;br /&gt;
&lt;br /&gt;
:* This will create a subdirectory with the current version. For example, my version is ''vobsub2srt/ruediger-VobSub2SRT-ca53a18''. Change into that directory then compile and install the program.&lt;br /&gt;
 cd ''ruediger-VobSub2SRT-ca53a18''&lt;br /&gt;
 ./configure&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
:* This should install the program vobsub2srt to /usr/local/bin. You can uninstall vobsub2srt with ''sudo make uninstall''. You can build a *.deb package (Debian/Ubuntu) with ''make package''. The package is created in the build directory.&lt;br /&gt;
&lt;br /&gt;
* Convert the .sub / .idx pair of subtitle files (named ''Filename.sub'' and ''Filename.idx'') into a .srt sbutitle file (named ''Filename.srt''):&lt;br /&gt;
 vobsub2srt ''Filename''&lt;br /&gt;
&lt;br /&gt;
:where Filename is the file name of the subtitle files WITHOUT the extension (.sub / .idx).&lt;br /&gt;
&lt;br /&gt;
*If there are multiple languages in the .sub / .idx pair of subtitle files, you can select which language to convert (using the 2-letter [http://en.wikipedia.org/wiki/ISO_639-1 ISO 639-1] language code, e.g. en, fr, de, it, es, pt, etc.):&lt;br /&gt;
 vobsub2srt --lang en ''Filename'' &lt;br /&gt;
&lt;br /&gt;
* Edit the .srt subtitle file for OCR mistakes (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 kate ''Filename.srt''&lt;br /&gt;
&lt;br /&gt;
== Join .MPG video segments ==&lt;br /&gt;
Individual video segments (MPEG-2, for example) can easily be joined:&lt;br /&gt;
 cat ''samplevideo1.mpg'' ''samplevideo2.mpg'' ''samplevideo3.mpg'' &amp;gt; ''samplevideo123.mpg''&lt;br /&gt;
&lt;br /&gt;
:You can then write the resulting MPEG-2 file to a DVD and play it in most DVD players.&lt;br /&gt;
&lt;br /&gt;
== Split a file into segments ==&lt;br /&gt;
Any file can be [http://en.wikipedia.org/wiki/Split_%28Unix%29 split] into segments using the Linux command:&lt;br /&gt;
 split -b 1440k ''my_big_file''&lt;br /&gt;
&lt;br /&gt;
which will split ''my_big_file'' into equal segments of size 1440 kb.&lt;br /&gt;
&lt;br /&gt;
== Create a commercial (.vob) format DVD ==&lt;br /&gt;
* The audiovideo container of commercial DVDs uses the [http://en.wikipedia.org/wiki/VOB .vob format]. This container requires either MPEG-1 or MPEG-2 video (.mpg) and either AC3 or MPEG-2 (.mp2) audio. Therefore, the first step in creating a DVD-video in this format is to convert all audiovisual files (to be included on it) to .mpg files (with one of those video and audio formats), usually with the MPEG-PS (A+V) container. This can be done from the command-line terminal (using mencoder or ffmpeg) or from a GUI utility (such as Avidemux).&lt;br /&gt;
&lt;br /&gt;
:* The GUI utility [[Kubuntu_Precise_Video#Avidemux_.28Video_editor.2Fprocessor.29|Avidemux]] is a GUI utility that has standardised settings for file conversion. [http://avidemux.org/admWiki/doku.php?id=tutorial:converting_to_dvd Here] is the Avidemux tutorial for conversion to a DVD-video.&lt;br /&gt;
&lt;br /&gt;
::* Open the file and allow the time map and Index to be rebuilt.&lt;br /&gt;
::* It is best to convert a file (to be included on the DVD) to a format with MPEG-2 (avcodec) video, AC3 (lav) audio, and the MPEG-PS (A+V) container as an intermediate first. The MP2 audio format (the default for Avidemux in &amp;quot;Auto&amp;quot; mode) can also be used, and will result in a much smaller .mpg file then when using AC3 audio, but several of my very old DVD players only recognise AC3 audio (so this has therefore become my personal preference). &lt;br /&gt;
:::* The easiest method for doing this is to use the Avidemux Auto DVD wizard. (Avidemux -&amp;gt; Auto -&amp;gt; Optical Disc -&amp;gt; DVD). Select the appropriate souce and destination ratios. (My source videos are usually already in 16:9 widescreen formats, and I want to make DVDs for my widescreen 16:9 TV. I therefore choose 16:9 for both the &amp;quot;Source Aspect Ratio&amp;quot; and the &amp;quot;Destination Aspect Ratio.&amp;quot;) The Auto DVD Wizard uses MP2 audio by default, but I personally like AC3 audio instead (the format usually used on &amp;quot;commercial&amp;quot; DVDs).  I therefore change this using the Audio -&amp;gt; AC3 (lav) option.&lt;br /&gt;
:::* It is possible to customise (or initially set) the format options manually as well (see the Avidemux documentation). Select the Video (and make sure the aspect ratio is the one you desire in Video -&amp;gt; Configure -&amp;gt; Configuration: DVD -&amp;gt; Aspect Ratio: ''16:9'' ), Audio, and (container) Format options.&lt;br /&gt;
::::*  To be DVD compliant, the resolution must be&lt;br /&gt;
:::::* 352*480 or 720*480 or 704*480 for NTSC&lt;br /&gt;
:::::* 352*576 or 720*576 or 704*576 for PAL/SECAM&lt;br /&gt;
:::: This is set automatically if using the Auto DVD wizard. If your original video does not already have the correct aspect ratio, you will have to use cropping, scaling, and/or black bar &amp;quot;Filter&amp;quot; options until one of the standard resolutions is achieved. &lt;br /&gt;
&lt;br /&gt;
::* Save the file ( Avidemux -&amp;gt; File -&amp;gt; Save -&amp;gt; Save Video... -&amp;gt; ''myconvertedvideo.mpg'' ) to activate the conversion process. (If prompted whether to &amp;quot;Reuse the existing log file?&amp;quot; answer &amp;quot;No.&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
:* Alternatively, mencoder can be used from the command-line to [[#AVI_to_MPG|convert a file to the .mpg format]].&lt;br /&gt;
&lt;br /&gt;
:* Alternatively, FFMPEG can be used from the command-line to [[#Flash_video_.28.flv.29_to_MPG-2_using_FFMPEG|convert a file to the .mpg format]]. A simplified preset option for for conversion to both PAL and NTSC options is available.&lt;br /&gt;
&lt;br /&gt;
* Once all files to be included on the DVD-video have been converted to .mpg files, the utility [[Kubuntu_Precise_Audio_Video_Conversion#DVD_Author|dvdauthor]] can be used for conversion to .vob format (appropriate for writing to the DVD). While this utility can be used from the command-line, &amp;quot;authoring&amp;quot; (conversion) is more easily accomplished using one of several available [[Kubuntu_Precise_Audio_Video_Conversion#Other_DVD_authoring_programs|GUI front-ends]], which allow creation of menus for the DVD as well.&lt;br /&gt;
&lt;br /&gt;
::* With Kubuntu I use KMediaFactory for simple projects. (QDVDAuthor, which is difficult to install in recent Kubuntu versions, is superior and more powerful. [[Kubuntu_Precise_Audio_Video_Conversion#Other_DVD_authoring_programs|KMediaFactory]], in contrast, is in the repositories and is adequate (and quick) for most purposes.&lt;br /&gt;
:::* Rename the .mpg files (created with Avidemux or other method) carefully. The filename(s) becomes the Title(s) used by KMediaFactory for the video(s) on the DVD menu.&lt;br /&gt;
:::* Set up the DVD menu in KMediaFactory.&lt;br /&gt;
::::* KMediaFactory -&amp;gt; Project -&amp;gt; Title -&amp;gt; ''MyDVDTitle'' (this will appear on the DVD Menu at the top)&lt;br /&gt;
::::* -&amp;gt; Type: ''DVD-NTSC'' -&amp;gt; Aspect: ''16:9'' -&amp;gt; Destination Folder ''/home/user/DVDs''&lt;br /&gt;
:::* Add the .mpg files to the DVD. &lt;br /&gt;
::::* KMediaFactory -&amp;gt; Media -&amp;gt; Add Video -&amp;gt; ''MyFirstVideofile.mpg'' -&amp;gt; VideoProperties: Aspect ratio: ''16:9''&lt;br /&gt;
:::::* -&amp;gt; Add Video -&amp;gt; ''MySecondVideofile.mpg'' -&amp;gt; VideoProperties: Aspect ratio: ''16:9''&lt;br /&gt;
:::* Choose the DVD Menu appearance.&lt;br /&gt;
::::* KMediaFactory -&amp;gt; Template -&amp;gt; ''Preview 3''&lt;br /&gt;
:::* Choose the output format. For this, I generally create a &amp;quot;DVD folder&amp;quot; which I can then check using [[Kubuntu_Precise_Media_Players#VLC_Multimedia_Player|VLC]] to make sure my DVD looks the way I had intended. (VLC -&amp;gt; Media -&amp;gt; Open Disc... -&amp;gt; Browse... -&amp;gt; ''specified_folder'' -&amp;gt; Play)&lt;br /&gt;
::::* KMediaFactory -&amp;gt; Output -&amp;gt; DVD Folder&lt;br /&gt;
:::* Start the conversion (&amp;quot;DVD authoring&amp;quot;) process. If an error appears, the problem usually lies in a non-existent (or write-protected) folder having been specified when setting the &amp;quot;Title&amp;quot; options. Make sure the folder has been specified properly. KMediaFactory will then create the standard AUDIO_TS and VIDEO_TS folders in the folder specified.&lt;br /&gt;
::::* -&amp;gt; Start&lt;br /&gt;
&lt;br /&gt;
::* In Kubuntu I then use [[Kubuntu_Precise_Audio_Video_Conversion#K3b_.28CD.2FDVD_burner.29|K3b]] to burn the AUDIO_TS and VIDEO_TS folders to a blank DVD. This can be done in K3b using the &amp;quot;New Video DVD Project&amp;quot; (K3b -&amp;gt; More actions... -&amp;gt; New Video DVD Project) using the AUDIO_TS and VIDEO_TS folders as the data. Edit the name of the DVD to reflect the desired DVD name. &amp;quot;Burn&amp;quot; the DVD. The result will be identical to commercial DVDs. (Note: In recent versions of K3b I have had to &amp;quot;Burn&amp;quot; using the &amp;quot;growisofs&amp;quot; Writing app at 8x Speed and DAO (Disc-At-Once) Writing Mode in order to achieve reliable burns. See [[Kubuntu_Precise_Audio_Video_Conversion#K3b_.28CD.2FDVD_burner.29|here]] for more details.)&lt;br /&gt;
&lt;br /&gt;
== Recommended formats ==&lt;br /&gt;
* There is only one format that works on all my devices (computer (both Linux and Windows), (Android) tablet, (Android) eBook reader, MP3 player, DVD player):&lt;br /&gt;
:* .AVI container with XVID/DivX video codec and MP3lame (MP3) audio codec&lt;br /&gt;
&lt;br /&gt;
:I use this for all my devices, and encode files to about 700 MB. This is a good size that gives good quality and allows me to fit many videos on a single SDcard (which I use in my mobile devices). For most of my devices, a 128 kb MP3 encoding bitrate is sufficient; I previously encoded at 192 kb for MP3lame (which is the default bitrate for AC3 sound), but I find this bitrate to be unnecessary. (The higher the encoding bitrate, the larger the encoded file, and I try to keep all my files around 700 MB.) The .AVI container has several limitations: it does not allow more than stereo audio (i.e. no 5.1 surround sound), does not allow multiple subtitle files, and requires a constant bitrate (CBR) audio channel. For advanced archival purposes it may not be suitable in the long-term, but currently it is desirable for the wide range of devices that accept it. It is also one of the only containers guaranteed to be accepted by Windows computers (since the container is originally a Windows-based format). &lt;br /&gt;
&lt;br /&gt;
* I am also able to use an .MP4 container with X264/H.264 video codec and either the AAC audio codec or the MP3lame (MP3) audio codec on many devices, but not all. Neither the X264/H.264 video nor the AAC audio will play on my DVD player or MP3 player, for example (though it plays on my computer and Android tablet devices).&lt;br /&gt;
&lt;br /&gt;
:* The related .M4V container (the proprietary Apple Quicktime format) works on almost none of my devices, and, furthermore, is difficult to decode and re-encode to a different container. I shun this format like the plague.&lt;br /&gt;
&lt;br /&gt;
* The newer .MKV container, though open source and a superior container, is accepted by very few of my older devices. It does not play on my (older) DVD player or MP3 player, for example (no matter which video and audio codecs are used). &lt;br /&gt;
&lt;br /&gt;
:Nevertheless, most newer DVD players seem to accept the .MKV format. In fact, it is now difficult to find DVD players that will still play .AVI with XVID / DivX video. Over the years, however, I have accumulated a very large collection of .AVI / XVID / MP3 videos. In 2013, the only DVD player I could find that would play them all was the Philips DVP3680/F7 DVD Player with HD Upconversion (which I found at [http://www.bestbuy.com/site/Philips+-+DVD+Player+with+HD+Upconversion/4983625.p;jsessionid=436B03D27CA483A9AB8EC510D0B2B03C.bbolsp-app01-115?id=1218644449769&amp;amp;skuId=4983625&amp;amp;st=philips&amp;amp;cp=1&amp;amp;lp=15 Best Buy] for $40). I highly recommend this player, therefore, if you find yourself with a large collection of .AVI / XVID video files. However, it does not play MP4 files, which is a drawback. (Note: I am told that [http://www.amazon.com/Philips-Region-1080p-Upconverting-Player/dp/B004BI6MVS/ref=pd_cp_e_0#productDescription this upconverting Philips DVD] player will play region-free, both PAL and NTSC formats, and both MP4 and DivX/XVID codecs.)&lt;br /&gt;
&lt;br /&gt;
* My Android (2.3) tablet devices will also not accept the AC3 audio codec (which is the standard audio used on commercial DVDs, for example), so most of the time I re-encode any files having AC3 audio with the MP3lame audio codec instead.&lt;/div&gt;</description>
			<pubDate>Sat, 27 Apr 2013 21:08:02 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Video_Conversion</comments>		</item>
		<item>
			<title>Template:Video Conversion</title>
			<link>http://easylinux.info/wiki/Template:Video_Conversion</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Create a commercial (.vob) format DVD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Video Conversion =&lt;br /&gt;
This guide does not advocate the illegal duplication of copyrighted content. However, fewer and fewer devices use DVDs any longer, and a large amount of video content is distributed on DVDs. It becomes necessary to convert video content into formats that can be viewed on devices that no longer used DVDs. Furthermore, online content is often in a format that is not universally playable and this also requires conversion. Trying to select and encode a video into a format which your device accepts is not always a straightforward task. &lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
There are lots of video and audio codecs and lots of methods and preferences for converting between formats. These are only some basic examples. A good deal of trial and error is often required for successful video conversion.&lt;br /&gt;
&lt;br /&gt;
* Mencoder and FFMPEG are the two packages that are the workhorses of video conversion. Of these, mencoder is faster and generally gives better results.&lt;br /&gt;
&lt;br /&gt;
* [[Kubuntu_Precise_Audio_Video_Conversion#Handbrake|Handbrake]] uses a streaming algorithm and FFMPEG to &amp;quot;rip&amp;quot; DVDs and can work with many different encryption methods. It uses the (superior, open source) [http://en.wikipedia.org/wiki/Matroska .MKV] container only, however (which is not supported by many devices). It also does not support [http://en.wikipedia.org/wiki/Xvid XVID] (and uses either [http://en.wikipedia.org/wiki/X264 X264/H.264] or [http://en.wikipedia.org/wiki/MPEG-4_Part_14 MP4] video codecs) and therefore its video output is also not universally accepted by a wide range of devices. As these standards become more widely accepted, however, this will be an invaluable encoding tool. On rare occasions I rip a video with Handbrake (to .MKV and H.264/MP3) and then convert it to .AVI (XVID/MP3) in a second step (using mencoder).&lt;br /&gt;
&lt;br /&gt;
* When I originally wrote these articles, .MKV was accommodated by only a handful of DVD players. A recent survey of new DVD players shows that most (including widely available inexpensive DVD players) will now play files in .MKV format. In fact, it is now difficult to find DVD players that will still play .AVI with XVID / DivX video. However, over the years I have accumulated a very large collection of .AVI / XVID / MP3 videos. In 2013, the only DVD player I could find that would play them all was the Philips DVP3680/F7 DVD Player with HD Upconversion (which I found at Best Buy for $40). I highly recommend this player if you find yourself with a large collection of .AVI / XVID video files.&lt;br /&gt;
&lt;br /&gt;
== Mencoder ==&lt;br /&gt;
[http://www.mplayerhq.hu/DOCS/HTML/en/mencoder.html Mencoder] is part of the [http://www.mplayerhq.hu/DOCS/HTML/en/index.html MPlayer] set of libraries (that also uses several of the FFMPEG libraries) for audio/visual conversion. If it is not installed on your system, install it:&lt;br /&gt;
 sudo apt-get install mencoder&lt;br /&gt;
&lt;br /&gt;
Usage instructions can be found from the command-line (''man mencoder'') or [http://linux.die.net/man/1/mencoder here].&lt;br /&gt;
&lt;br /&gt;
=== MP4 with AAC audio to AVI with Xvid / MP3 ===&lt;br /&gt;
* The [http://en.wikipedia.org/wiki/Advanced_Audio_Coding#Licensing_and_patents AAC audio codec] is not compatible with many DVD players and devices due to licensing restrictions, whereas the MP3 audio codec is nearly universally accepted. Xvid is the open source version of the DivX video codec and is accepted by a very large number of DVD players and other devices (even older ones, especially those displaying the DivX logo).&lt;br /&gt;
&lt;br /&gt;
* The [http://en.wikipedia.org/wiki/Audio_Video_Interleave .AVI] container only allows a [http://en.wikipedia.org/wiki/Constant_bitrate constant bitrate], so the MP3 audio must be encoded at CBR. If the AAC is [http://en.wikipedia.org/wiki/5.1_surround_sound 5.1], it will be downcoded to stereo for MP3.&lt;br /&gt;
&lt;br /&gt;
* This example is a two-pass technique that allows the file size to be specified and quality optimized for that filesize (using the information generated in the first pass). In this example, a 700 MB file is desired (and is specified by the negative value).&lt;br /&gt;
&lt;br /&gt;
This information is from [http://en.gentoo-wiki.com/wiki/HOWTO_Mencoder_Introduction_Guide#XviD the Gentoo Wiki for Xvid and mencoder].&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.mp4&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder &amp;lt;input.mp4&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-700000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Remove MKV subtitles and convert to AVI (XVID/MP3) ===&lt;br /&gt;
Mastroska container ([http://en.wikipedia.org/wiki/Matroska .MKV]) video files can have multiple subtitles included. In the default conversion from an .MKV container format to an [http://en.wikipedia.org/wiki/Audio_Video_Interleave .AVI] container format, the default subtitle file of the .MKV container is automatically hardcoded into the converted .AVI file, which may be undesirable. To overcome this behaviour (so that the converted .AVI has no subtitles), use the ''-sid 999'' option:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.mkv&amp;gt; -sid 999 -ovc xvid -oac mp3lame -lameopts cbr:br=192 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder &amp;lt;input.mkv&amp;gt; -sid 999 -ovc xvid -oac mp3lame -lameopts cbr:br=192 -xvidencopts pass=2:bitrate=-1400000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* To hardcode one of the subtitle tracks onto the .AVI video from the .MKV video, choose the subtrack ID, such as ''-sid 0'' or ''-sid 1''.&lt;br /&gt;
&lt;br /&gt;
* If using NTFS and the error &lt;br /&gt;
&lt;br /&gt;
Too many audio packets in the buffer: (4096 in 837540 bytes).&lt;br /&gt;
 &amp;gt; Maybe you are playing a non-interleaved stream/file or the codec&lt;br /&gt;
 &amp;gt; failed? For AVI files, try to force non-interleaved mode with the&lt;br /&gt;
 &amp;gt; -ni option.&lt;br /&gt;
&lt;br /&gt;
appears, then add these options:&lt;br /&gt;
 -mc 0 -ofps 24000/1001 -noskip&lt;br /&gt;
&lt;br /&gt;
=== DVD to AVI with Xvid / MP3 ===&lt;br /&gt;
* See the [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-dvd-mpeg4.html mencoder documentation].&lt;br /&gt;
* Extract a video (in the .vob format) from a DVD to a file with an [http://en.wikipedia.org/wiki/Audio_Video_Interleave .AVI] container and [http://en.wikipedia.org/wiki/Xvid XVID]/DivX video and [http://en.wikipedia.org/wiki/LAME .MP3] audio using this (2-pass conversion) command: &lt;br /&gt;
 mencoder dvd://''1'' -vobsub 999 -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder dvd://''1'' -vobsub 999 -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-700000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where dvd://''1'' indicates the first track of the DVD. If you are not sure which track contains the content you wish to extract to a file, one way to check this is to play the DVD with a media player like VLC, examining the tracks on it:&lt;br /&gt;
:VLC -&amp;gt; Media -&amp;gt; Open Disc... -&amp;gt; Play -&amp;gt; Playback -&amp;gt; Navigation&lt;br /&gt;
&lt;br /&gt;
or from the command line install lsdvd (''sudo apt-get install lsdvd'') and use it:&lt;br /&gt;
 lsdvd -v -t 1 /dev/dvd&amp;lt;!---&amp;gt;mplayer dvd:// -v | grep &amp;quot;video stream&amp;quot;&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will show a list of the title numbers (for the content tracks) on the DVD (and information about them). Use the title number for the content to be extracted.&lt;br /&gt;
&lt;br /&gt;
* Conversion is much faster when done from from a hard drive than from a physical DVD. It is possible to copy the VIDEO_TS and AUDIO_TS folders from the physical DVD to a folder on the hard drive. Once you have copied the contents of the DVD to a folder, add the ''-dvd-device /path/to/dvd_folder'' option to specify it (with the same options as above in addition to the new one):&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder''&lt;br /&gt;
&lt;br /&gt;
* Note the ''-vobsub 999'' option to prevent subtitles from being automatically added. (If you wish to hardcode subtitles, use the number of the subtitle track, such as ''-sid 0'' or ''-vobsubid 0'' for the default subtitle track or ''-sid 1'' or ''-vobsubid 1'' for the next subtitle track.)&lt;br /&gt;
&lt;br /&gt;
* Other options for video cropping and scaling can be used. See [http://www.axllent.org/docs/video/mencoder_dvd_to_mpeg4 these hints] and [http://savvyadmin.com/tag/xvid/ these tips], as well as [[#Resize_a_video|this section]].&lt;br /&gt;
&lt;br /&gt;
* When better audio quality is desired, an audio [http://en.wikipedia.org/wiki/Bit_rate bitrate] more than 128 kb/sec can be used (e.g. ''br=160'' or ''br=192''), but this will give a larger file (or will decrease video quality if the filesize remains constant). cbr (constant bitrate) is used for mp3lame encoding in .AVI; I generally increase the volume of the video by 30% using the vol=3 option, as well. My final audio command therefore usually ends up: ''-oac mp3lame -lameopts cbr:br=128:vol=3''.&lt;br /&gt;
&lt;br /&gt;
* If there are multiple audio tracks, the audio track can be selected with the ''-aid 1'' (or similar) option, specifying the number of the desired audio track. (Note: check audio track numbering carefully.) The English default audio track is usually ''-aid 128''. To show information about the audio tracks, use&lt;br /&gt;
 lsdvd -a -t 1 /dev/dvd&amp;lt;!---&amp;gt;mplayer dvd:// -v | grep &amp;quot;audio stream&amp;quot;&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Although the ''bitrate=-700000'' option specifies a target file size of 700000 (approx. 700 MB), this actually results in a file size of nearly 800 MB. Specify a target filesize about 15% less than actually desired, therefore. For a target 700 Mb file, for example, I use ''bitrate=-620000''.&lt;br /&gt;
&lt;br /&gt;
* For XVID there is an option to allow video seeking (for fast forwarding or rewinding) in 1 second increments (instead of the default 10 second increments): ''-xvidencopts max_key_interval=25'' (seek every 25 frames instead of the default 250 frames). This would be included as part of a more complex option string, such as ''-xvidencopts pass=2:max_key_interval=25:bitrate=-620000''.&lt;br /&gt;
&lt;br /&gt;
* In order to play the converted .AVI file on my older DVD players and televisions (and avoid significant motion artifacts and pixelation), I find that I must use deinterlacing. Only two interlacing methods have worked well for me: ''-vf pp=lb'' or ''-vf yadif=0''. There are many methods of deinterlacing for mencoder, however (see [http://guru.multimedia.cx/deinterlacing-filters/ here] and [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-telecine.html here], for example). Deinterlacing may not be necessary for your needs (when used for archival purposes only, for example, or if viewing files with media players (such as VLC) that already have built-in deinterlacing capabilities). Often recommended when ripping NTSC-format movies (progressive or telecined) is to include the option ''-vf pullup,softskip,harddup'', which must be used with a deinterlacing filter, such as ''-vf pullup,softskip,pp=lb,harddup'' (or ''-vf pullup,softskip,yadif=0,harddup'').&amp;lt;!---&amp;gt; (This only works properly using a 2-pass conversion method.)&amp;lt;---&amp;gt; The order of the telecine/progressive option, the deinterlacing option, and any cropping or scaling options is very specific -- read the [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-telecine.html#menc-feat-telecine-encode mencoder documentation] carefully when mixing these options. Specifically, cropping and scaling (when used) should be done after the telecine/progressive/deinterlacing options but before the frame duplication option, e.g. ''-vf pullup,softskip,pp=lb,crop=720:416:0:80,scale=704:304,harddup''.&lt;br /&gt;
&lt;br /&gt;
* Note: You will need [[Kubuntu_Precise_Audio_Video_Conversion#libdvdcss|libdvdcss2]] installed on your system to access DVD data. If your DVD has encryption that is not able to be decrypted by libdvdcss, then consider using [[Kubuntu_Precise_Audio_Video_Conversion#Handbrake|Handbrake]], which uses a streaming algorithm to &amp;quot;rip&amp;quot; DVDs.&lt;br /&gt;
&lt;br /&gt;
* This is the 2-pass command I end up using most often (with 4:3 NTSC videos):&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=2:max_key_interval=25:bitrate=-620000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* This is the 2-pass command I end up using most often (with 16:9 NTSC videos):&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,scale=648:364,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,scale=648:364,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=2:max_key_interval=25:bitrate=-620000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:The scale option is set so that I can play the video on analogue televisions with overscan (I still have a few of those). However, an alternative is to use ''scale=720:406'' for use on most widescreen TVs.&lt;br /&gt;
&lt;br /&gt;
==== Using k9copy as a conversion front-end ====&lt;br /&gt;
* [[Kubuntu_Precise_Audio_Video_Conversion#K9copy_.28DVD_Ripper.29|k9copy]] is a good front-end for mencoder (as well as ffmpeg).&lt;br /&gt;
* To add an option to encode to XVID from an NTSC DVD (when using mencoder within k9copy), I add the necessary options to the Video codecs section:&lt;br /&gt;
:k9copy -&amp;gt; Configure k9copy -&amp;gt; Encoders -&amp;gt; ''mencoder'' -&amp;gt; Add -&amp;gt; label: ''XVID from NTSC'' -&amp;gt; first pass -&amp;gt;&lt;br /&gt;
 -ovc xvid -xvidencopts bitrate=$VIDBR:turbo:pass=$PASS:aspect=$ASPECT -vf pullup,softskip,pp=lb,crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT,harddup&lt;br /&gt;
&lt;br /&gt;
The same command is entered for the &amp;quot;second pass&amp;quot; option as well. For the &amp;quot;one pass&amp;quot; option enter:&lt;br /&gt;
 -ovc xvid -xvidencopts bitrate=$VIDBR:aspect=$ASPECT -vf pullup,softskip,pp=lb,crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT,harddup&lt;br /&gt;
&lt;br /&gt;
* To then use this new Video codec option, make sure it is selected:&lt;br /&gt;
:k9copy -&amp;gt; Configure k9copy -&amp;gt; MPEG-4 -&amp;gt; Video -&amp;gt; Codec -&amp;gt; ''XVID from NTSC'' -&amp;gt; 2 pass (''ticked'') -&amp;gt; Apply&lt;br /&gt;
&lt;br /&gt;
At the same time, the MP3 (lame) Audio codec option can be selected:&lt;br /&gt;
:k9copy -&amp;gt; Configure k9copy -&amp;gt; MPEG-4 -&amp;gt; Audio -&amp;gt; Codec -&amp;gt; ''mp3 (lame)'' -&amp;gt; OK&lt;br /&gt;
&lt;br /&gt;
* Now when the Output: ''MPEG-4 encoding'' is selected from the main screen, this &amp;quot;XVID from NTSC&amp;quot; Video encoding option will be used.&lt;br /&gt;
&lt;br /&gt;
* Note that the ''-vf pullup,softskip,pp=lb,crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT,harddup'' option can be used with any Video codec, not just XVID.&lt;br /&gt;
&lt;br /&gt;
=== AVI to MPG ===&lt;br /&gt;
* The  MPG format is sometimes useful for creating DVDs (using the [http://en.wikipedia.org/wiki/MPEG-1 MPEG-1] or [http://en.wikipedia.org/wiki/MPEG-2 MPEG-2] video codec, which can be then used for vob files using [[Ubuntu:All#DVD_Author|QDVDAuthor]] or [[Ubuntu:All#ToVid|ToVid]]). If the audio codec of the AVI file is already AC3 or MP3, it usually can be copied. This example is take from the [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-mpeg.html MPlayer/Mencoder documentation]. Example:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy -o &amp;lt;output.mpg&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Increase volume ===&lt;br /&gt;
&lt;br /&gt;
* Use the ''-af volume=3:0'' option, where the first number (3 in the example) is the number of decibels to increment the volume (a 3 db increment doubles the volume), and the second number is 0 for hard-clipping and 1 to allow software-based clipping (to prevent oversaturation when the sound becomes too loud).&lt;br /&gt;
&lt;br /&gt;
For example, if I want to double the sound volume of my .AVI video:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -oac mp3lame -lameopts cbr:br=128 -af volume=3:0 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* This can also be done when encoding to the mp3lame audio codec by adding an option to the mp3lame options:&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -oac mp3lame -lameopts cbr:br=128:vol=3 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:where ''vol=3'' can be set to any value between -10 and 10. I use ''vol=3'' to increase the volume 30%. (This method works best for me.)&lt;br /&gt;
&lt;br /&gt;
=== Add subtitles to video ===&lt;br /&gt;
* [http://en.wikipedia.org/wiki/SubRip .srt] subtitle files are essentially text files with time stamps. They are meant to be used with digital video files (such as .AVI files) and are different from the image-based .idx / .sub subtitle files (vobsub) used with the [http://en.wikipedia.org/wiki/VOB .vob] format found on commercial DVDs.&lt;br /&gt;
&lt;br /&gt;
* Using mencoder:&lt;br /&gt;
 mencoder -ovc [codec] [codec opts] -oac copy -sub [sub file.srt] -subfont-text-scale [3 normally]&lt;br /&gt;
&lt;br /&gt;
In the example above, this would be:&lt;br /&gt;
 mencoder &amp;lt;input.mp4&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-700000 -sub &amp;lt;subtitles.srt&amp;gt; -subfont-text-scale 3 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Note: When adding subtitles to an .AVI video, you must transcode it completely. It is not sufficient to merely add the subtitle track as listed above -- the entire video must be re-transcoded. So, for example:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-1400000 -sub &amp;lt;subtitles.srt&amp;gt; -subfont-text-scale 3 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Trim a video ===&lt;br /&gt;
*Using mencoder:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -oac mp3lame -ss 01:57:12 -endpos 00:04:08 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where -ss indicates the start position of the clip (hh:mm:ss) and -endpos indicates how long the clip should be. (I use mp3lame for the audio codec because YouTube accepts that.)&lt;br /&gt;
&lt;br /&gt;
=== Resize a video ===&lt;br /&gt;
*Using mencoder:&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc xvid -vf scale=320:240 -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-1400000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where -vf scale=320x240 indicates that the resulting video should be of that size. The position of the suboption in the command string is important.&lt;br /&gt;
&lt;br /&gt;
* [http://en.wikipedia.org/wiki/High-definition_television HDTV] resolution is usually 1920 x 1080 (&amp;quot;1080p&amp;quot;) or 1280 x 720 (&amp;quot;720p&amp;quot;). A [http://en.wikipedia.org/wiki/Standard-definition_television standard definition] widescreen TV has a maximum height of &amp;quot;480p&amp;quot; (usually 853 x 480 but sometimes 720 x 406). The standard width:height [http://en.wikipedia.org/wiki/Aspect_ratio_%28image%29 aspect ratio] for cinema is 1.85:1, whereas the average aspect ratio for widescreen movies distributed for display on television is 16:9 (1.78:1). When resizing a video, it is good to know the original dimensions of the video and maintain the width to height aspect ratio in the chosen scale. &lt;br /&gt;
&lt;br /&gt;
:*Example: A video is distributed as 1280 x 692 (which has an aspect ratio of 1.85:1). The device (a low resolution television) on which it is to be displayed has a maximum width of 720. The desired resolution would then be 720 x 390 to keep the aspect ratio at approximately 1.85:1. The option would then be ''-vf scale=720:390''. An analog television would require 10% [http://en.wikipedia.org/wiki/Overscan overscan], making the maximum width 648. To keep an aspect ratio of 1.85:1 would require a resolution of 648 x 350, or a scale option of ''-vf scale=648:350''. &lt;br /&gt;
&lt;br /&gt;
:*Example: An HQ video is distributed as 1920 x 1080 (which has an aspect ratio of 16:9). It is desired to view the video on a television with a maximum width of 720p, which would require a final resolution of 720 x 406 to maintain an aspect ratio of 16:9. The scale option would be ''-vf scale=720:406''.&lt;br /&gt;
&lt;br /&gt;
:*Example: An HQ video is distributed as 1920 x 1080 (which has an aspect ratio of 16:9). It is desired to view the video on an analogue television with 10% [http://en.wikipedia.org/wiki/Overscan overscan], which would require a final resolution of 648 x 364 to maintain an aspect ratio of 16:9. The scale option would be ''-vf scale=648:364''.&lt;br /&gt;
&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Standard-definition_television &amp;quot;Standard&amp;quot; definition] [http://en.wikipedia.org/wiki/Analog_television analog television] has a 4:3 ratio, for which a scale of 640:480 (''-vf scale=640:480'') is generally preferable.&lt;br /&gt;
&lt;br /&gt;
=== Convert to .MP3 audio file ===&lt;br /&gt;
* I find [[#Convert_to_.MP3_audio_file_using_FFMPEG|FFMPEG]] to be easier for this task.&lt;br /&gt;
&lt;br /&gt;
* (''Under construction'') To use Mplayer to extract audio to pcm .wav file:&lt;br /&gt;
 mplayer &amp;lt;input.avi&amp;gt; -vc null -oa pcm -aofile -ss 1441.4 -endpos 260.1 &amp;lt;output.wav&amp;gt;   &lt;br /&gt;
&lt;br /&gt;
*Then convert the .wav file to .mp3 with your favourite converter (such as SoundConverter).&lt;br /&gt;
&lt;br /&gt;
=== Change audio track of video ===&lt;br /&gt;
* In general, [[All#Avidemux_.28Video_editor.2Fprocessor.29|Avidemux]] is a good video editor for most needs, including muxing and demuxing video and audio.&lt;br /&gt;
&lt;br /&gt;
* For a quick method to change the audio for a video, I like to merely remove the audio from the original video file using the ''-nosound'' option, for example:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -nosound -o &amp;lt;outputnosound.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Then, I add a new audio file as the audio track to the video using the ''-audiofile'' option. For example, if I now want to add an .mp3 audio track named &amp;lt;newaudio.mp3&amp;gt;, I would use the command:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;outputnosound.avi&amp;gt; -ovc copy -oac mp3lame -audiofile &amp;lt;newaudio.mp3&amp;gt; -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FFMPEG ==&lt;br /&gt;
[http://ffmpeg.org/ FFMPEG] is the swiss-army knife of video and audio format conversion. It succeeds when no other program can. It is free and open source. If it not yet installed on your system as part of another package (it is used by many video/audio editors), then install it:&lt;br /&gt;
 sudo apt-get install ffmpeg&lt;br /&gt;
&lt;br /&gt;
*To convert many different formats, read the [http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html FFMPEG documentation]. Also see [http://howto-pages.org/ffmpeg/ this tutorial].&lt;br /&gt;
&lt;br /&gt;
=== Flash video (.flv) to MPG-2 using FFMPEG ===&lt;br /&gt;
* To convert a saved Flash video (.flv) to an MPEG-2 format playable on a DVD, convert:&lt;br /&gt;
 ffmpeg -i ''samplevideo.flv'' -target ntsc-dvd ''samplevideo.mpg''&lt;br /&gt;
&lt;br /&gt;
* Then use [[Kubuntu:Oneiric#K3b (CD/DVD burner)|K3b]] (or [[Ubuntu:Oneiric#Gnomebaker (CD/DVD burner)|Gnomebaker]]) to write the mpg file to a New DVD Data Project.&lt;br /&gt;
&lt;br /&gt;
:*For PAL use -target pal-dvd. For widescreen, use -target film-dvd. For other conversion tips, see [http://ubuntuforums.org/archive/index.php/t-1006250.html this forum]. (Note: Most Flash video has very low resolution, with a screen size of 360x270, for example. You may see a slight diminishment in resolution if you wish to convert it to 720x480 (which is the NTSC standard size) or other screen size. You can keep the original screen size and resolution by omitting the -target parameter.) If your original file is 16:9 widescreen and you desire a 4:3 letterbox output for playing on an overscanned TV, you may need to pad the file so that the widescreen is not compressed (see [http://ubuntuforums.org/showthread.php?t=1010648 this forum]):&lt;br /&gt;
&lt;br /&gt;
 ffmpeg -i ''samplevideo.flv'' -target ntsc-dvd -s 648x364 -padleft 36 -padright 36 -padtop 58 -padbottom 58 ''samplevideo.mpg''&lt;br /&gt;
&lt;br /&gt;
* You can also use the WinFF GUI and add the command (as above) as a &amp;quot;Preset,&amp;quot; for subsequent use. For example:&lt;br /&gt;
:Video converter (WinFF) -&amp;gt;  Edit -&amp;gt; Presets -&amp;gt;&lt;br /&gt;
:: Preset Name: Letterbox -&amp;gt; Preset Label: 16:9 Widescreen to 4:3 Letterbox&lt;br /&gt;
:: Preset command: -target ntsc-dvd -s 648x364 -padleft 36 -padright 36 -padtop 58 -padbottom 58&lt;br /&gt;
::Ouput file extension: mpg -&amp;gt; Category: DVD&lt;br /&gt;
:::-&amp;gt; Add/Update -&amp;gt; Save&lt;br /&gt;
&lt;br /&gt;
*To convert to MPEG-4 (mp4) files, use&lt;br /&gt;
 ffmpeg -i ''samplevideo.flv'' ''outputvideo.mp4''&lt;br /&gt;
&lt;br /&gt;
* FFMPEG requires that multiple [[Kubuntu:Oneiric#Restricted Extras|restricted extra codecs]] be installed. This can be done in a single easy step from the command-line Terminal:&lt;br /&gt;
 sudo apt-get install kubuntu-restricted-extras&lt;br /&gt;
:or&lt;br /&gt;
 sudo apt-get install ubuntu-restricted-extras&lt;br /&gt;
&lt;br /&gt;
=== Convert to .MP3 audio file using FFMPEG ===&lt;br /&gt;
==== Convert Flash video audio to mp3 ====&lt;br /&gt;
* Once you have downloaded flash video content (.flv) from the Internet (using the [[Kubuntu:Oneiric#Video_DownloadHelper_plug-in_for_Firefox|Video Download Helper plug-in for Firefox]], for example), the audio component can be converted to an mp3 using this command (from the command line Terminal). (This will work for any type of video file, not just Flash.)&lt;br /&gt;
 ffmpeg -i ''nameofvideoclip.flv'' -ab 160k -ac 2 -ar 44100 -vn ''nameoffile.mp3''&lt;br /&gt;
&lt;br /&gt;
:where -i indicates the input, -ab indicates the bit rate (in this example 160kb/sec), -vn means no video ouput, -ac 2 means 2 channels, -ar 44100 indicates the sampling frequency. See [http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html#SEC11 FFMPEG docs] for more info.&lt;br /&gt;
&lt;br /&gt;
If I only want a segment of the video to be converted, I can use the time markers:&lt;br /&gt;
 ffmpeg -i ''nameofvideoclip.flv'' -ss ''00:00:09'' -t ''00:03:00'' -ab 160k -ac 2 -ar 44100 -vn ''nameoffile.mp3''&lt;br /&gt;
:where -ss ''00:00:09'' indicates the point in the video (hh:mm:ss) at which to start conversion and -t ''00:03:00'' indicates the amount of time (from the start point) to convert.&lt;br /&gt;
&lt;br /&gt;
* As long as [[#FFMPEG|FFMPEG]] is already installed, the [[Kubuntu:Oneiric#Video_DownloadHelper_plug-in_for_Firefox|Video DownloadHelper plug-in for Firefox]] already has an option to automatically convert an online video (such as those found at YouTube) into an .MP3 file. (Settings are adjustable.) From the DownloadHelper icon in Firefox, highlight the video to convert, then&lt;br /&gt;
:DownloadHelper icon -&amp;gt; Download and Convert -&amp;gt; Converter options: MP3&lt;br /&gt;
&lt;br /&gt;
=== Edit/convert screencapture with FFMPEG ===&lt;br /&gt;
''Note: This section under construction.''&lt;br /&gt;
&lt;br /&gt;
*Note: I now recommend using [[Video_Conversion|mencoder for all video conversion]] techniques. It uses some of the ffmpeg libraries but is faster and gives more reliable and high-quality results.&lt;br /&gt;
&lt;br /&gt;
*This is only one example of a wide variety of techniques. Once I have a [[Screencasts#FFMPEG_with_x11grab|captured video]], I want to convert it to XVID video (which is the format my older DVD player accepts) and MP3 audio (mp3lame), which I will place in an AVI container (which my DVD player also accepts). &lt;br /&gt;
&lt;br /&gt;
 ffmpeg -i ''Punchcast1.avi'' -vcodec mpeg4 -vtag xvid -acodec libmp3lame -ss 00:00:09 -t 00:03:00 ''Punchcast2.avi''&lt;br /&gt;
&lt;br /&gt;
I will start conversion (-ss) at second 9 (to eliminate unimportant things at the beginning) and convert 3 minutes (-t) of video (00:03:00).&lt;br /&gt;
&lt;br /&gt;
* I happen to watch my screencasts on my old-fashioned 4:3 television. To do that, I make a letterboxed video:&lt;br /&gt;
&lt;br /&gt;
 ffmpeg -i ''Punchcast1.avi'' -vcodec mpeg4 -vtag xvid -ss 00:00:09 -t 00:03:00 -s 648x364 -padleft 36 -padright 36 -padtop 58 -padbottom 58 -acodec libmp3lame  ''Punchcast3.avi''&lt;br /&gt;
&lt;br /&gt;
My laptop screen is 1366x768, which I reduce to a size of 648x364. My TV wants 720x480, so I pad the sides and top/bottom. Why not a width of 720 initially? My older television has 10% overscan, which cuts off 10% of the video. I therefore use (at least) 10% padding on the edges.&lt;br /&gt;
&lt;br /&gt;
In newer versions of FFMPEG, the padding (and many other) options have changed. The proper command is now:&lt;br /&gt;
 ffmpeg -i Punchcast1.avi -vcodec mpeg4 -vtag xvid -ss 00:00:09 -t 00:03:00 -s 648x364 -vf pad 720:480:36:58 -acodec libmp3lame Punchcast3.avi&lt;br /&gt;
&lt;br /&gt;
 ffmpeg movie=Punchcast1.avi:seek_point=9 -vcodec copy -acodec libmp3lame Punchcast1f.avi&lt;br /&gt;
&lt;br /&gt;
=== WinFF (FFMPEG GUI) ===&lt;br /&gt;
[http://winff.org WinFF] is a free, GPL-licensed open source GUI frontend for FFMPEG. Install:&lt;br /&gt;
 sudo apt-get install winff xterm&lt;br /&gt;
Run:&lt;br /&gt;
:Menu -&amp;gt; Applications -&amp;gt; Sound &amp;amp; Video -&amp;gt; WinFF&lt;br /&gt;
&lt;br /&gt;
== VobSub2SRT (Convert subtitles from .sub/.idx to .srt) ==&lt;br /&gt;
* [https://github.com/ruediger/VobSub2SRT VobSub2SRT] is a simple (GPLv3-licensed) command line program to convert the image-based .idx / .sub subtitle files (used with the [http://en.wikipedia.org/wiki/VOB .vob] format found on commercial DVDs) into text-based [http://en.wikipedia.org/wiki/SubRip .srt] text subtitle files by using OCR. It is based on code from the [[Ubuntu:All#MPlayer_Multimedia_Player|MPlayer]] project, [[Ubuntu:All#Tesseract_.28Optical_Character_Reader.29|Tesseract]] as OCR software, and libavutil (part of the [[Ubuntu:All#FFMPEG_video_.2F_audio_conversion|FFmpeg]] project). Install the (K)Ubuntu/Debian (.deb) package from a PPA repository:&lt;br /&gt;
 sudo add-apt-repository ppa:ruediger-c-plusplus/vobsub2srt&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install vobsub2srt&lt;br /&gt;
&lt;br /&gt;
* Alternatively, you can download and build a version from source code.&lt;br /&gt;
:* Install dependencies: &lt;br /&gt;
 sudo apt-get install pkg-config build-essential cmake libavutil-dev libtesseract-dev&lt;br /&gt;
&lt;br /&gt;
:* For (K)Ubuntu 12.10 (Quantal) also install:&lt;br /&gt;
 sudo apt-get install libtiff5-dev tesseract-ocr-eng&lt;br /&gt;
&lt;br /&gt;
:* For (K)Ubuntu 12.04LTS (Precise) also install:&lt;br /&gt;
 sudo apt-get install libtiff4-dev tesseract-ocr tesseract-ocr-eng  &amp;lt;!---&amp;gt;tesseract-ocr-dev&amp;lt;---&amp;gt; &lt;br /&gt;
&lt;br /&gt;
::* If you will be converting subtitles in languages other than English, you must install tesseract for any or all of those languages as well:&lt;br /&gt;
 sudo apt-get install tesseract-ocr-vie tesseract-ocr-deu tesseract-ocr-fra tesseract-ocr-ita&lt;br /&gt;
 sudo apt-get install tesseract-ocr-nld tesseract-ocr-spa tesseract-ocr-por tesseract-ocr-deu-f&lt;br /&gt;
::where vie is for Vietnamese, deu is for German, fra is for French, ita is for Italian, nld is for Dutch, spa is for Spanish, por is for Portugeuse, and deu-f is for German Fraktur script. If you don't you will get an error of the type: ''Unable to load unicharset file /usr/share/tesseract-ocr/tessdata/xxx.unicharset''.&lt;br /&gt;
&lt;br /&gt;
:* Download and unzip the VobSub2SRT .zip file into its own directory:&lt;br /&gt;
 mkdir vobsub2srt&lt;br /&gt;
 cd vobsub2srt&lt;br /&gt;
 wget -O vobsub2srt-current.zip &amp;lt;nowiki&amp;gt;https://github.com/ruediger/VobSub2SRT/zipball/ca53a18108eb08d6e2b853643d8c6838e2489823&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 unzip vobsub2srt-current.zip&lt;br /&gt;
 rm vobsub2srt-current.zip&lt;br /&gt;
&lt;br /&gt;
:* This will create a subdirectory with the current version. For example, my version is ''vobsub2srt/ruediger-VobSub2SRT-ca53a18''. Change into that directory then compile and install the program.&lt;br /&gt;
 cd ''ruediger-VobSub2SRT-ca53a18''&lt;br /&gt;
 ./configure&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
:* This should install the program vobsub2srt to /usr/local/bin. You can uninstall vobsub2srt with ''sudo make uninstall''. You can build a *.deb package (Debian/Ubuntu) with ''make package''. The package is created in the build directory.&lt;br /&gt;
&lt;br /&gt;
* Convert the .sub / .idx pair of subtitle files (named ''Filename.sub'' and ''Filename.idx'') into a .srt sbutitle file (named ''Filename.srt''):&lt;br /&gt;
 vobsub2srt ''Filename''&lt;br /&gt;
&lt;br /&gt;
:where Filename is the file name of the subtitle files WITHOUT the extension (.sub / .idx).&lt;br /&gt;
&lt;br /&gt;
*If there are multiple languages in the .sub / .idx pair of subtitle files, you can select which language to convert (using the 2-letter [http://en.wikipedia.org/wiki/ISO_639-1 ISO 639-1] language code, e.g. en, fr, de, it, es, pt, etc.):&lt;br /&gt;
 vobsub2srt --lang en ''Filename'' &lt;br /&gt;
&lt;br /&gt;
* Edit the .srt subtitle file for OCR mistakes (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 kate ''Filename.srt''&lt;br /&gt;
&lt;br /&gt;
== Join .MPG video segments ==&lt;br /&gt;
Individual video segments (MPEG-2, for example) can easily be joined:&lt;br /&gt;
 cat ''samplevideo1.mpg'' ''samplevideo2.mpg'' ''samplevideo3.mpg'' &amp;gt; ''samplevideo123.mpg''&lt;br /&gt;
&lt;br /&gt;
:You can then write the resulting MPEG-2 file to a DVD and play it in most DVD players.&lt;br /&gt;
&lt;br /&gt;
== Split a file into segments ==&lt;br /&gt;
Any file can be [http://en.wikipedia.org/wiki/Split_%28Unix%29 split] into segments using the Linux command:&lt;br /&gt;
 split -b 1440k ''my_big_file''&lt;br /&gt;
&lt;br /&gt;
which will split ''my_big_file'' into equal segments of size 1440 kb.&lt;br /&gt;
&lt;br /&gt;
== Create a commercial (.vob) format DVD ==&lt;br /&gt;
* The audiovideo container of commercial DVDs uses the [http://en.wikipedia.org/wiki/VOB .vob format]. This container requires either MPEG-1 or MPEG-2 video (.mpg) and either AC3 or MPEG-2 (.mp2) audio. Therefore, the first step in creating a DVD-video in this format is to convert all audiovisual files (to be included on it) to .mpg files (with one of those video and audio formats), usually with the MPEG-PS (A+V) container. This can be done from the command-line terminal (using mencoder or ffmpeg) or from a GUI utility (such as Avidemux).&lt;br /&gt;
&lt;br /&gt;
:* The GUI utility [[Kubuntu_Precise_Video#Avidemux_.28Video_editor.2Fprocessor.29|Avidemux]] is a GUI utility that has standardised settings for file conversion. [http://avidemux.org/admWiki/doku.php?id=tutorial:converting_to_dvd Here] is the Avidemux tutorial for conversion to a DVD-video.&lt;br /&gt;
&lt;br /&gt;
::* Open the file and allow the time map and Index to be rebuilt.&lt;br /&gt;
::* It is best to convert a file (to be included on the DVD) to a format with MPEG-2 (avcodec) video, AC3 (lav) audio, and the MPEG-PS (A+V) container as an intermediate first. The MP2 audio format (the default for Avidemux in &amp;quot;Auto&amp;quot; mode) can also be used, and will result in a much smaller .mpg file then when using AC3 audio, but several of my very old DVD players only recognise AC3 audio (so this has therefore become my personal preference). &lt;br /&gt;
:::* The easiest method for doing this is to use the Avidemux Auto DVD wizard. (Avidemux -&amp;gt; Auto -&amp;gt; Optical Disc -&amp;gt; DVD). Select the appropriate souce and destination ratios. (My source videos are usually already in 16:9 widescreen formats, and I want to make DVDs for my widescreen 16:9 TV. I therefore choose 16:9 for both the &amp;quot;Source Aspect Ratio&amp;quot; and the &amp;quot;Destination Aspect Ratio.&amp;quot;) The Auto DVD Wizard uses MP2 audio by default, but I personally like AC3 audio instead (the format usually used on &amp;quot;commercial&amp;quot; DVDs).  I therefore change this using the Audio -&amp;gt; AC3 (lav) option.&lt;br /&gt;
:::* It is possible to customise (or initially set) the format options manually as well (see the Avidemux documentation). Select the Video (and make sure the aspect ratio is the one you desire in Video -&amp;gt; Configure -&amp;gt; Configuration: DVD -&amp;gt; Aspect Ratio: ''16:9'' ), Audio, and (container) Format options.&lt;br /&gt;
::::*  To be DVD compliant, the resolution must be&lt;br /&gt;
:::::* 352*480 or 720*480 or 704*480 for NTSC&lt;br /&gt;
:::::* 352*576 or 720*576 or 704*576 for PAL/SECAM&lt;br /&gt;
:::: This is set automatically if using the Auto DVD wizard. If your original video does not already have the correct aspect ratio, you will have to use cropping, scaling, and/or black bar &amp;quot;Filter&amp;quot; options until one of the standard resolutions is achieved. &lt;br /&gt;
&lt;br /&gt;
::* Save the file ( Avidemux -&amp;gt; File -&amp;gt; Save -&amp;gt; Save Video... -&amp;gt; ''myconvertedvideo.mpg'' ) to activate the conversion process. (If prompted whether to &amp;quot;Reuse the existing log file?&amp;quot; answer &amp;quot;No.&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
:* Alternatively, mencoder can be used from the command-line to [[#AVI_to_MPG|convert a file to the .mpg format]].&lt;br /&gt;
&lt;br /&gt;
:* Alternatively, FFMPEG can be used from the command-line to [[#Flash_video_.28.flv.29_to_MPG-2_using_FFMPEG|convert a file to the .mpg format]]. A simplified preset option for for conversion to both PAL and NTSC options is available.&lt;br /&gt;
&lt;br /&gt;
* Once all files to be included on the DVD-video have been converted to .mpg files, the utility [[Kubuntu_Precise_Audio_Video_Conversion#DVD_Author|dvdauthor]] can be used for conversion to .vob format (appropriate for writing to the DVD). While this utility can be used from the command-line, &amp;quot;authoring&amp;quot; (conversion) is more easily accomplished using one of several available [[Kubuntu_Precise_Audio_Video_Conversion#Other_DVD_authoring_programs|GUI front-ends]], which allow creation of menus for the DVD as well.&lt;br /&gt;
&lt;br /&gt;
::* With Kubuntu I use KMediaFactory for simple projects. (QDVDAuthor, which is difficult to install in recent Kubuntu versions, is superior and more powerful. [[Kubuntu_Precise_Audio_Video_Conversion#Other_DVD_authoring_programs|KMediaFactory]], in contrast, is in the repositories and is adequate (and quick) for most purposes.&lt;br /&gt;
:::* Rename the .mpg files (created with Avidemux or other method) carefully. The filename(s) becomes the Title(s) used by KMediaFactory for the video(s) on the DVD menu.&lt;br /&gt;
:::* Set up the DVD menu in KMediaFactory.&lt;br /&gt;
::::* KMediaFactory -&amp;gt; Project -&amp;gt; Title -&amp;gt; ''MyDVDTitle'' (this will appear on the DVD Menu at the top)&lt;br /&gt;
::::* -&amp;gt; Type: ''DVD-NTSC'' -&amp;gt; Aspect: ''16:9'' -&amp;gt; Destination Folder ''/home/user/DVDs''&lt;br /&gt;
:::* Add the .mpg files to the DVD. &lt;br /&gt;
::::* KMediaFactory -&amp;gt; Media -&amp;gt; Add Video -&amp;gt; ''MyFirstVideofile.mpg'' -&amp;gt; VideoProperties: Aspect ratio: ''16:9''&lt;br /&gt;
:::::* -&amp;gt; Add Video -&amp;gt; ''MySecondVideofile.mpg'' -&amp;gt; VideoProperties: Aspect ratio: ''16:9''&lt;br /&gt;
:::* Choose the DVD Menu appearance.&lt;br /&gt;
::::* KMediaFactory -&amp;gt; Template -&amp;gt; ''Preview 3''&lt;br /&gt;
:::* Choose the output format. For this, I generally create a &amp;quot;DVD folder&amp;quot; which I can then check using [[Kubuntu_Precise_Media_Players#VLC_Multimedia_Player|VLC]] to make sure my DVD looks the way I had intended. (VLC -&amp;gt; Media -&amp;gt; Open Disc... -&amp;gt; Browse... -&amp;gt; ''name_of_folder'' -&amp;gt; Play)&lt;br /&gt;
::::* KMediaFactory -&amp;gt; Output -&amp;gt; DVD Folder&lt;br /&gt;
:::* Start the conversion (&amp;quot;DVD authoring&amp;quot;) process. If an error appears, the problem usually lies in a non-existent (or write-protected) folder having been specified when setting the &amp;quot;Title&amp;quot; options. Make sure the folder has been specified properly. KMediaFactory will then create the standard AUDIO_TS and VIDEO_TS folders in the folder specified.&lt;br /&gt;
::::* -&amp;gt; Start&lt;br /&gt;
&lt;br /&gt;
::* In Kubuntu I then use [[Kubuntu_Precise_Audio_Video_Conversion#K3b_.28CD.2FDVD_burner.29|K3b]] to burn the AUDIO_TS and VIDEO_TS folders to a blank DVD. This can be done in K3b using the &amp;quot;New Video DVD Project&amp;quot; (K3b -&amp;gt; More actions... -&amp;gt; New Video DVD Project) using the AUDIO_TS and VIDEO_TS folders as the data. Edit the name of the DVD to reflect the desired DVD name. &amp;quot;Burn&amp;quot; the DVD. The result will be identical to commercial DVDs. (Note: In recent versions of K3b I have had to &amp;quot;Burn&amp;quot; using the &amp;quot;growisofs&amp;quot; Writing app at 8x Speed and DAO (Disc-At-Once) Writing Mode in order to achieve reliable burns. See [[Kubuntu_Precise_Audio_Video_Conversion#K3b_.28CD.2FDVD_burner.29|here]] for more details.)&lt;br /&gt;
&lt;br /&gt;
== Recommended formats ==&lt;br /&gt;
* There is only one format that works on all my devices (computer (both Linux and Windows), (Android) tablet, (Android) eBook reader, MP3 player, DVD player):&lt;br /&gt;
:* .AVI container with XVID/DivX video codec and MP3lame (MP3) audio codec&lt;br /&gt;
&lt;br /&gt;
:I use this for all my devices, and encode files to about 700 MB. This is a good size that gives good quality and allows me to fit many videos on a single SDcard (which I use in my mobile devices). For most of my devices, a 128 kb MP3 encoding bitrate is sufficient; I previously encoded at 192 kb for MP3lame (which is the default bitrate for AC3 sound), but I find this bitrate to be unnecessary. (The higher the encoding bitrate, the larger the encoded file, and I try to keep all my files around 700 MB.) The .AVI container has several limitations: it does not allow more than stereo audio (i.e. no 5.1 surround sound), does not allow multiple subtitle files, and requires a constant bitrate (CBR) audio channel. For advanced archival purposes it may not be suitable in the long-term, but currently it is desirable for the wide range of devices that accept it. It is also one of the only containers guaranteed to be accepted by Windows computers (since the container is originally a Windows-based format). &lt;br /&gt;
&lt;br /&gt;
* I am also able to use an .MP4 container with X264/H.264 video codec and either the AAC audio codec or the MP3lame (MP3) audio codec on many devices, but not all. Neither the X264/H.264 video nor the AAC audio will play on my DVD player or MP3 player, for example (though it plays on my computer and Android tablet devices).&lt;br /&gt;
&lt;br /&gt;
:* The related .M4V container (the proprietary Apple Quicktime format) works on almost none of my devices, and, furthermore, is difficult to decode and re-encode to a different container. I shun this format like the plague.&lt;br /&gt;
&lt;br /&gt;
* The newer .MKV container, though open source and a superior container, is accepted by very few of my older devices. It does not play on my (older) DVD player or MP3 player, for example (no matter which video and audio codecs are used). &lt;br /&gt;
&lt;br /&gt;
:Nevertheless, most newer DVD players seem to accept the .MKV format. In fact, it is now difficult to find DVD players that will still play .AVI with XVID / DivX video. Over the years, however, I have accumulated a very large collection of .AVI / XVID / MP3 videos. In 2013, the only DVD player I could find that would play them all was the Philips DVP3680/F7 DVD Player with HD Upconversion (which I found at [http://www.bestbuy.com/site/Philips+-+DVD+Player+with+HD+Upconversion/4983625.p;jsessionid=436B03D27CA483A9AB8EC510D0B2B03C.bbolsp-app01-115?id=1218644449769&amp;amp;skuId=4983625&amp;amp;st=philips&amp;amp;cp=1&amp;amp;lp=15 Best Buy] for $40). I highly recommend this player, therefore, if you find yourself with a large collection of .AVI / XVID video files. However, it does not play MP4 files, which is a drawback. (Note: I am told that [http://www.amazon.com/Philips-Region-1080p-Upconverting-Player/dp/B004BI6MVS/ref=pd_cp_e_0#productDescription this upconverting Philips DVD] player will play region-free, both PAL and NTSC formats, and both MP4 and DivX/XVID codecs.)&lt;br /&gt;
&lt;br /&gt;
* My Android (2.3) tablet devices will also not accept the AC3 audio codec (which is the standard audio used on commercial DVDs, for example), so most of the time I re-encode any files having AC3 audio with the MP3lame audio codec instead.&lt;/div&gt;</description>
			<pubDate>Sat, 27 Apr 2013 21:07:10 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Video_Conversion</comments>		</item>
		<item>
			<title>Template:Video Conversion</title>
			<link>http://easylinux.info/wiki/Template:Video_Conversion</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Create a commercial (.vob) format DVD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Video Conversion =&lt;br /&gt;
This guide does not advocate the illegal duplication of copyrighted content. However, fewer and fewer devices use DVDs any longer, and a large amount of video content is distributed on DVDs. It becomes necessary to convert video content into formats that can be viewed on devices that no longer used DVDs. Furthermore, online content is often in a format that is not universally playable and this also requires conversion. Trying to select and encode a video into a format which your device accepts is not always a straightforward task. &lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
There are lots of video and audio codecs and lots of methods and preferences for converting between formats. These are only some basic examples. A good deal of trial and error is often required for successful video conversion.&lt;br /&gt;
&lt;br /&gt;
* Mencoder and FFMPEG are the two packages that are the workhorses of video conversion. Of these, mencoder is faster and generally gives better results.&lt;br /&gt;
&lt;br /&gt;
* [[Kubuntu_Precise_Audio_Video_Conversion#Handbrake|Handbrake]] uses a streaming algorithm and FFMPEG to &amp;quot;rip&amp;quot; DVDs and can work with many different encryption methods. It uses the (superior, open source) [http://en.wikipedia.org/wiki/Matroska .MKV] container only, however (which is not supported by many devices). It also does not support [http://en.wikipedia.org/wiki/Xvid XVID] (and uses either [http://en.wikipedia.org/wiki/X264 X264/H.264] or [http://en.wikipedia.org/wiki/MPEG-4_Part_14 MP4] video codecs) and therefore its video output is also not universally accepted by a wide range of devices. As these standards become more widely accepted, however, this will be an invaluable encoding tool. On rare occasions I rip a video with Handbrake (to .MKV and H.264/MP3) and then convert it to .AVI (XVID/MP3) in a second step (using mencoder).&lt;br /&gt;
&lt;br /&gt;
* When I originally wrote these articles, .MKV was accommodated by only a handful of DVD players. A recent survey of new DVD players shows that most (including widely available inexpensive DVD players) will now play files in .MKV format. In fact, it is now difficult to find DVD players that will still play .AVI with XVID / DivX video. However, over the years I have accumulated a very large collection of .AVI / XVID / MP3 videos. In 2013, the only DVD player I could find that would play them all was the Philips DVP3680/F7 DVD Player with HD Upconversion (which I found at Best Buy for $40). I highly recommend this player if you find yourself with a large collection of .AVI / XVID video files.&lt;br /&gt;
&lt;br /&gt;
== Mencoder ==&lt;br /&gt;
[http://www.mplayerhq.hu/DOCS/HTML/en/mencoder.html Mencoder] is part of the [http://www.mplayerhq.hu/DOCS/HTML/en/index.html MPlayer] set of libraries (that also uses several of the FFMPEG libraries) for audio/visual conversion. If it is not installed on your system, install it:&lt;br /&gt;
 sudo apt-get install mencoder&lt;br /&gt;
&lt;br /&gt;
Usage instructions can be found from the command-line (''man mencoder'') or [http://linux.die.net/man/1/mencoder here].&lt;br /&gt;
&lt;br /&gt;
=== MP4 with AAC audio to AVI with Xvid / MP3 ===&lt;br /&gt;
* The [http://en.wikipedia.org/wiki/Advanced_Audio_Coding#Licensing_and_patents AAC audio codec] is not compatible with many DVD players and devices due to licensing restrictions, whereas the MP3 audio codec is nearly universally accepted. Xvid is the open source version of the DivX video codec and is accepted by a very large number of DVD players and other devices (even older ones, especially those displaying the DivX logo).&lt;br /&gt;
&lt;br /&gt;
* The [http://en.wikipedia.org/wiki/Audio_Video_Interleave .AVI] container only allows a [http://en.wikipedia.org/wiki/Constant_bitrate constant bitrate], so the MP3 audio must be encoded at CBR. If the AAC is [http://en.wikipedia.org/wiki/5.1_surround_sound 5.1], it will be downcoded to stereo for MP3.&lt;br /&gt;
&lt;br /&gt;
* This example is a two-pass technique that allows the file size to be specified and quality optimized for that filesize (using the information generated in the first pass). In this example, a 700 MB file is desired (and is specified by the negative value).&lt;br /&gt;
&lt;br /&gt;
This information is from [http://en.gentoo-wiki.com/wiki/HOWTO_Mencoder_Introduction_Guide#XviD the Gentoo Wiki for Xvid and mencoder].&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.mp4&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder &amp;lt;input.mp4&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-700000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Remove MKV subtitles and convert to AVI (XVID/MP3) ===&lt;br /&gt;
Mastroska container ([http://en.wikipedia.org/wiki/Matroska .MKV]) video files can have multiple subtitles included. In the default conversion from an .MKV container format to an [http://en.wikipedia.org/wiki/Audio_Video_Interleave .AVI] container format, the default subtitle file of the .MKV container is automatically hardcoded into the converted .AVI file, which may be undesirable. To overcome this behaviour (so that the converted .AVI has no subtitles), use the ''-sid 999'' option:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.mkv&amp;gt; -sid 999 -ovc xvid -oac mp3lame -lameopts cbr:br=192 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder &amp;lt;input.mkv&amp;gt; -sid 999 -ovc xvid -oac mp3lame -lameopts cbr:br=192 -xvidencopts pass=2:bitrate=-1400000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* To hardcode one of the subtitle tracks onto the .AVI video from the .MKV video, choose the subtrack ID, such as ''-sid 0'' or ''-sid 1''.&lt;br /&gt;
&lt;br /&gt;
* If using NTFS and the error &lt;br /&gt;
&lt;br /&gt;
Too many audio packets in the buffer: (4096 in 837540 bytes).&lt;br /&gt;
 &amp;gt; Maybe you are playing a non-interleaved stream/file or the codec&lt;br /&gt;
 &amp;gt; failed? For AVI files, try to force non-interleaved mode with the&lt;br /&gt;
 &amp;gt; -ni option.&lt;br /&gt;
&lt;br /&gt;
appears, then add these options:&lt;br /&gt;
 -mc 0 -ofps 24000/1001 -noskip&lt;br /&gt;
&lt;br /&gt;
=== DVD to AVI with Xvid / MP3 ===&lt;br /&gt;
* See the [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-dvd-mpeg4.html mencoder documentation].&lt;br /&gt;
* Extract a video (in the .vob format) from a DVD to a file with an [http://en.wikipedia.org/wiki/Audio_Video_Interleave .AVI] container and [http://en.wikipedia.org/wiki/Xvid XVID]/DivX video and [http://en.wikipedia.org/wiki/LAME .MP3] audio using this (2-pass conversion) command: &lt;br /&gt;
 mencoder dvd://''1'' -vobsub 999 -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder dvd://''1'' -vobsub 999 -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-700000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where dvd://''1'' indicates the first track of the DVD. If you are not sure which track contains the content you wish to extract to a file, one way to check this is to play the DVD with a media player like VLC, examining the tracks on it:&lt;br /&gt;
:VLC -&amp;gt; Media -&amp;gt; Open Disc... -&amp;gt; Play -&amp;gt; Playback -&amp;gt; Navigation&lt;br /&gt;
&lt;br /&gt;
or from the command line install lsdvd (''sudo apt-get install lsdvd'') and use it:&lt;br /&gt;
 lsdvd -v -t 1 /dev/dvd&amp;lt;!---&amp;gt;mplayer dvd:// -v | grep &amp;quot;video stream&amp;quot;&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will show a list of the title numbers (for the content tracks) on the DVD (and information about them). Use the title number for the content to be extracted.&lt;br /&gt;
&lt;br /&gt;
* Conversion is much faster when done from from a hard drive than from a physical DVD. It is possible to copy the VIDEO_TS and AUDIO_TS folders from the physical DVD to a folder on the hard drive. Once you have copied the contents of the DVD to a folder, add the ''-dvd-device /path/to/dvd_folder'' option to specify it (with the same options as above in addition to the new one):&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder''&lt;br /&gt;
&lt;br /&gt;
* Note the ''-vobsub 999'' option to prevent subtitles from being automatically added. (If you wish to hardcode subtitles, use the number of the subtitle track, such as ''-sid 0'' or ''-vobsubid 0'' for the default subtitle track or ''-sid 1'' or ''-vobsubid 1'' for the next subtitle track.)&lt;br /&gt;
&lt;br /&gt;
* Other options for video cropping and scaling can be used. See [http://www.axllent.org/docs/video/mencoder_dvd_to_mpeg4 these hints] and [http://savvyadmin.com/tag/xvid/ these tips], as well as [[#Resize_a_video|this section]].&lt;br /&gt;
&lt;br /&gt;
* When better audio quality is desired, an audio [http://en.wikipedia.org/wiki/Bit_rate bitrate] more than 128 kb/sec can be used (e.g. ''br=160'' or ''br=192''), but this will give a larger file (or will decrease video quality if the filesize remains constant). cbr (constant bitrate) is used for mp3lame encoding in .AVI; I generally increase the volume of the video by 30% using the vol=3 option, as well. My final audio command therefore usually ends up: ''-oac mp3lame -lameopts cbr:br=128:vol=3''.&lt;br /&gt;
&lt;br /&gt;
* If there are multiple audio tracks, the audio track can be selected with the ''-aid 1'' (or similar) option, specifying the number of the desired audio track. (Note: check audio track numbering carefully.) The English default audio track is usually ''-aid 128''. To show information about the audio tracks, use&lt;br /&gt;
 lsdvd -a -t 1 /dev/dvd&amp;lt;!---&amp;gt;mplayer dvd:// -v | grep &amp;quot;audio stream&amp;quot;&amp;lt;---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Although the ''bitrate=-700000'' option specifies a target file size of 700000 (approx. 700 MB), this actually results in a file size of nearly 800 MB. Specify a target filesize about 15% less than actually desired, therefore. For a target 700 Mb file, for example, I use ''bitrate=-620000''.&lt;br /&gt;
&lt;br /&gt;
* For XVID there is an option to allow video seeking (for fast forwarding or rewinding) in 1 second increments (instead of the default 10 second increments): ''-xvidencopts max_key_interval=25'' (seek every 25 frames instead of the default 250 frames). This would be included as part of a more complex option string, such as ''-xvidencopts pass=2:max_key_interval=25:bitrate=-620000''.&lt;br /&gt;
&lt;br /&gt;
* In order to play the converted .AVI file on my older DVD players and televisions (and avoid significant motion artifacts and pixelation), I find that I must use deinterlacing. Only two interlacing methods have worked well for me: ''-vf pp=lb'' or ''-vf yadif=0''. There are many methods of deinterlacing for mencoder, however (see [http://guru.multimedia.cx/deinterlacing-filters/ here] and [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-telecine.html here], for example). Deinterlacing may not be necessary for your needs (when used for archival purposes only, for example, or if viewing files with media players (such as VLC) that already have built-in deinterlacing capabilities). Often recommended when ripping NTSC-format movies (progressive or telecined) is to include the option ''-vf pullup,softskip,harddup'', which must be used with a deinterlacing filter, such as ''-vf pullup,softskip,pp=lb,harddup'' (or ''-vf pullup,softskip,yadif=0,harddup'').&amp;lt;!---&amp;gt; (This only works properly using a 2-pass conversion method.)&amp;lt;---&amp;gt; The order of the telecine/progressive option, the deinterlacing option, and any cropping or scaling options is very specific -- read the [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-telecine.html#menc-feat-telecine-encode mencoder documentation] carefully when mixing these options. Specifically, cropping and scaling (when used) should be done after the telecine/progressive/deinterlacing options but before the frame duplication option, e.g. ''-vf pullup,softskip,pp=lb,crop=720:416:0:80,scale=704:304,harddup''.&lt;br /&gt;
&lt;br /&gt;
* Note: You will need [[Kubuntu_Precise_Audio_Video_Conversion#libdvdcss|libdvdcss2]] installed on your system to access DVD data. If your DVD has encryption that is not able to be decrypted by libdvdcss, then consider using [[Kubuntu_Precise_Audio_Video_Conversion#Handbrake|Handbrake]], which uses a streaming algorithm to &amp;quot;rip&amp;quot; DVDs.&lt;br /&gt;
&lt;br /&gt;
* This is the 2-pass command I end up using most often (with 4:3 NTSC videos):&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=2:max_key_interval=25:bitrate=-620000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* This is the 2-pass command I end up using most often (with 16:9 NTSC videos):&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,scale=648:364,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder dvd://''1'' -dvd-device ''/path/to/dvd_folder'' -vf pullup,softskip,pp=lb,scale=648:364,harddup -vobsub 999 -aid 128 -ovc xvid -oac mp3lame -lameopts cbr:br=128:vol=3 -xvidencopts pass=2:max_key_interval=25:bitrate=-620000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:The scale option is set so that I can play the video on analogue televisions with overscan (I still have a few of those). However, an alternative is to use ''scale=720:406'' for use on most widescreen TVs.&lt;br /&gt;
&lt;br /&gt;
==== Using k9copy as a conversion front-end ====&lt;br /&gt;
* [[Kubuntu_Precise_Audio_Video_Conversion#K9copy_.28DVD_Ripper.29|k9copy]] is a good front-end for mencoder (as well as ffmpeg).&lt;br /&gt;
* To add an option to encode to XVID from an NTSC DVD (when using mencoder within k9copy), I add the necessary options to the Video codecs section:&lt;br /&gt;
:k9copy -&amp;gt; Configure k9copy -&amp;gt; Encoders -&amp;gt; ''mencoder'' -&amp;gt; Add -&amp;gt; label: ''XVID from NTSC'' -&amp;gt; first pass -&amp;gt;&lt;br /&gt;
 -ovc xvid -xvidencopts bitrate=$VIDBR:turbo:pass=$PASS:aspect=$ASPECT -vf pullup,softskip,pp=lb,crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT,harddup&lt;br /&gt;
&lt;br /&gt;
The same command is entered for the &amp;quot;second pass&amp;quot; option as well. For the &amp;quot;one pass&amp;quot; option enter:&lt;br /&gt;
 -ovc xvid -xvidencopts bitrate=$VIDBR:aspect=$ASPECT -vf pullup,softskip,pp=lb,crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT,harddup&lt;br /&gt;
&lt;br /&gt;
* To then use this new Video codec option, make sure it is selected:&lt;br /&gt;
:k9copy -&amp;gt; Configure k9copy -&amp;gt; MPEG-4 -&amp;gt; Video -&amp;gt; Codec -&amp;gt; ''XVID from NTSC'' -&amp;gt; 2 pass (''ticked'') -&amp;gt; Apply&lt;br /&gt;
&lt;br /&gt;
At the same time, the MP3 (lame) Audio codec option can be selected:&lt;br /&gt;
:k9copy -&amp;gt; Configure k9copy -&amp;gt; MPEG-4 -&amp;gt; Audio -&amp;gt; Codec -&amp;gt; ''mp3 (lame)'' -&amp;gt; OK&lt;br /&gt;
&lt;br /&gt;
* Now when the Output: ''MPEG-4 encoding'' is selected from the main screen, this &amp;quot;XVID from NTSC&amp;quot; Video encoding option will be used.&lt;br /&gt;
&lt;br /&gt;
* Note that the ''-vf pullup,softskip,pp=lb,crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT,harddup'' option can be used with any Video codec, not just XVID.&lt;br /&gt;
&lt;br /&gt;
=== AVI to MPG ===&lt;br /&gt;
* The  MPG format is sometimes useful for creating DVDs (using the [http://en.wikipedia.org/wiki/MPEG-1 MPEG-1] or [http://en.wikipedia.org/wiki/MPEG-2 MPEG-2] video codec, which can be then used for vob files using [[Ubuntu:All#DVD_Author|QDVDAuthor]] or [[Ubuntu:All#ToVid|ToVid]]). If the audio codec of the AVI file is already AC3 or MP3, it usually can be copied. This example is take from the [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-mpeg.html MPlayer/Mencoder documentation]. Example:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy -o &amp;lt;output.mpg&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Increase volume ===&lt;br /&gt;
&lt;br /&gt;
* Use the ''-af volume=3:0'' option, where the first number (3 in the example) is the number of decibels to increment the volume (a 3 db increment doubles the volume), and the second number is 0 for hard-clipping and 1 to allow software-based clipping (to prevent oversaturation when the sound becomes too loud).&lt;br /&gt;
&lt;br /&gt;
For example, if I want to double the sound volume of my .AVI video:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -oac mp3lame -lameopts cbr:br=128 -af volume=3:0 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* This can also be done when encoding to the mp3lame audio codec by adding an option to the mp3lame options:&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -oac mp3lame -lameopts cbr:br=128:vol=3 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:where ''vol=3'' can be set to any value between -10 and 10. I use ''vol=3'' to increase the volume 30%. (This method works best for me.)&lt;br /&gt;
&lt;br /&gt;
=== Add subtitles to video ===&lt;br /&gt;
* [http://en.wikipedia.org/wiki/SubRip .srt] subtitle files are essentially text files with time stamps. They are meant to be used with digital video files (such as .AVI files) and are different from the image-based .idx / .sub subtitle files (vobsub) used with the [http://en.wikipedia.org/wiki/VOB .vob] format found on commercial DVDs.&lt;br /&gt;
&lt;br /&gt;
* Using mencoder:&lt;br /&gt;
 mencoder -ovc [codec] [codec opts] -oac copy -sub [sub file.srt] -subfont-text-scale [3 normally]&lt;br /&gt;
&lt;br /&gt;
In the example above, this would be:&lt;br /&gt;
 mencoder &amp;lt;input.mp4&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-700000 -sub &amp;lt;subtitles.srt&amp;gt; -subfont-text-scale 3 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Note: When adding subtitles to an .AVI video, you must transcode it completely. It is not sufficient to merely add the subtitle track as listed above -- the entire video must be re-transcoded. So, for example:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=1 -o /dev/null&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-1400000 -sub &amp;lt;subtitles.srt&amp;gt; -subfont-text-scale 3 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Trim a video ===&lt;br /&gt;
*Using mencoder:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -oac mp3lame -ss 01:57:12 -endpos 00:04:08 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where -ss indicates the start position of the clip (hh:mm:ss) and -endpos indicates how long the clip should be. (I use mp3lame for the audio codec because YouTube accepts that.)&lt;br /&gt;
&lt;br /&gt;
=== Resize a video ===&lt;br /&gt;
*Using mencoder:&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc xvid -vf scale=320:240 -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-1400000 -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where -vf scale=320x240 indicates that the resulting video should be of that size. The position of the suboption in the command string is important.&lt;br /&gt;
&lt;br /&gt;
* [http://en.wikipedia.org/wiki/High-definition_television HDTV] resolution is usually 1920 x 1080 (&amp;quot;1080p&amp;quot;) or 1280 x 720 (&amp;quot;720p&amp;quot;). A [http://en.wikipedia.org/wiki/Standard-definition_television standard definition] widescreen TV has a maximum height of &amp;quot;480p&amp;quot; (usually 853 x 480 but sometimes 720 x 406). The standard width:height [http://en.wikipedia.org/wiki/Aspect_ratio_%28image%29 aspect ratio] for cinema is 1.85:1, whereas the average aspect ratio for widescreen movies distributed for display on television is 16:9 (1.78:1). When resizing a video, it is good to know the original dimensions of the video and maintain the width to height aspect ratio in the chosen scale. &lt;br /&gt;
&lt;br /&gt;
:*Example: A video is distributed as 1280 x 692 (which has an aspect ratio of 1.85:1). The device (a low resolution television) on which it is to be displayed has a maximum width of 720. The desired resolution would then be 720 x 390 to keep the aspect ratio at approximately 1.85:1. The option would then be ''-vf scale=720:390''. An analog television would require 10% [http://en.wikipedia.org/wiki/Overscan overscan], making the maximum width 648. To keep an aspect ratio of 1.85:1 would require a resolution of 648 x 350, or a scale option of ''-vf scale=648:350''. &lt;br /&gt;
&lt;br /&gt;
:*Example: An HQ video is distributed as 1920 x 1080 (which has an aspect ratio of 16:9). It is desired to view the video on a television with a maximum width of 720p, which would require a final resolution of 720 x 406 to maintain an aspect ratio of 16:9. The scale option would be ''-vf scale=720:406''.&lt;br /&gt;
&lt;br /&gt;
:*Example: An HQ video is distributed as 1920 x 1080 (which has an aspect ratio of 16:9). It is desired to view the video on an analogue television with 10% [http://en.wikipedia.org/wiki/Overscan overscan], which would require a final resolution of 648 x 364 to maintain an aspect ratio of 16:9. The scale option would be ''-vf scale=648:364''.&lt;br /&gt;
&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Standard-definition_television &amp;quot;Standard&amp;quot; definition] [http://en.wikipedia.org/wiki/Analog_television analog television] has a 4:3 ratio, for which a scale of 640:480 (''-vf scale=640:480'') is generally preferable.&lt;br /&gt;
&lt;br /&gt;
=== Convert to .MP3 audio file ===&lt;br /&gt;
* I find [[#Convert_to_.MP3_audio_file_using_FFMPEG|FFMPEG]] to be easier for this task.&lt;br /&gt;
&lt;br /&gt;
* (''Under construction'') To use Mplayer to extract audio to pcm .wav file:&lt;br /&gt;
 mplayer &amp;lt;input.avi&amp;gt; -vc null -oa pcm -aofile -ss 1441.4 -endpos 260.1 &amp;lt;output.wav&amp;gt;   &lt;br /&gt;
&lt;br /&gt;
*Then convert the .wav file to .mp3 with your favourite converter (such as SoundConverter).&lt;br /&gt;
&lt;br /&gt;
=== Change audio track of video ===&lt;br /&gt;
* In general, [[All#Avidemux_.28Video_editor.2Fprocessor.29|Avidemux]] is a good video editor for most needs, including muxing and demuxing video and audio.&lt;br /&gt;
&lt;br /&gt;
* For a quick method to change the audio for a video, I like to merely remove the audio from the original video file using the ''-nosound'' option, for example:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;input.avi&amp;gt; -ovc copy -nosound -o &amp;lt;outputnosound.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Then, I add a new audio file as the audio track to the video using the ''-audiofile'' option. For example, if I now want to add an .mp3 audio track named &amp;lt;newaudio.mp3&amp;gt;, I would use the command:&lt;br /&gt;
&lt;br /&gt;
 mencoder &amp;lt;outputnosound.avi&amp;gt; -ovc copy -oac mp3lame -audiofile &amp;lt;newaudio.mp3&amp;gt; -o &amp;lt;output.avi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FFMPEG ==&lt;br /&gt;
[http://ffmpeg.org/ FFMPEG] is the swiss-army knife of video and audio format conversion. It succeeds when no other program can. It is free and open source. If it not yet installed on your system as part of another package (it is used by many video/audio editors), then install it:&lt;br /&gt;
 sudo apt-get install ffmpeg&lt;br /&gt;
&lt;br /&gt;
*To convert many different formats, read the [http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html FFMPEG documentation]. Also see [http://howto-pages.org/ffmpeg/ this tutorial].&lt;br /&gt;
&lt;br /&gt;
=== Flash video (.flv) to MPG-2 using FFMPEG ===&lt;br /&gt;
* To convert a saved Flash video (.flv) to an MPEG-2 format playable on a DVD, convert:&lt;br /&gt;
 ffmpeg -i ''samplevideo.flv'' -target ntsc-dvd ''samplevideo.mpg''&lt;br /&gt;
&lt;br /&gt;
* Then use [[Kubuntu:Oneiric#K3b (CD/DVD burner)|K3b]] (or [[Ubuntu:Oneiric#Gnomebaker (CD/DVD burner)|Gnomebaker]]) to write the mpg file to a New DVD Data Project.&lt;br /&gt;
&lt;br /&gt;
:*For PAL use -target pal-dvd. For widescreen, use -target film-dvd. For other conversion tips, see [http://ubuntuforums.org/archive/index.php/t-1006250.html this forum]. (Note: Most Flash video has very low resolution, with a screen size of 360x270, for example. You may see a slight diminishment in resolution if you wish to convert it to 720x480 (which is the NTSC standard size) or other screen size. You can keep the original screen size and resolution by omitting the -target parameter.) If your original file is 16:9 widescreen and you desire a 4:3 letterbox output for playing on an overscanned TV, you may need to pad the file so that the widescreen is not compressed (see [http://ubuntuforums.org/showthread.php?t=1010648 this forum]):&lt;br /&gt;
&lt;br /&gt;
 ffmpeg -i ''samplevideo.flv'' -target ntsc-dvd -s 648x364 -padleft 36 -padright 36 -padtop 58 -padbottom 58 ''samplevideo.mpg''&lt;br /&gt;
&lt;br /&gt;
* You can also use the WinFF GUI and add the command (as above) as a &amp;quot;Preset,&amp;quot; for subsequent use. For example:&lt;br /&gt;
:Video converter (WinFF) -&amp;gt;  Edit -&amp;gt; Presets -&amp;gt;&lt;br /&gt;
:: Preset Name: Letterbox -&amp;gt; Preset Label: 16:9 Widescreen to 4:3 Letterbox&lt;br /&gt;
:: Preset command: -target ntsc-dvd -s 648x364 -padleft 36 -padright 36 -padtop 58 -padbottom 58&lt;br /&gt;
::Ouput file extension: mpg -&amp;gt; Category: DVD&lt;br /&gt;
:::-&amp;gt; Add/Update -&amp;gt; Save&lt;br /&gt;
&lt;br /&gt;
*To convert to MPEG-4 (mp4) files, use&lt;br /&gt;
 ffmpeg -i ''samplevideo.flv'' ''outputvideo.mp4''&lt;br /&gt;
&lt;br /&gt;
* FFMPEG requires that multiple [[Kubuntu:Oneiric#Restricted Extras|restricted extra codecs]] be installed. This can be done in a single easy step from the command-line Terminal:&lt;br /&gt;
 sudo apt-get install kubuntu-restricted-extras&lt;br /&gt;
:or&lt;br /&gt;
 sudo apt-get install ubuntu-restricted-extras&lt;br /&gt;
&lt;br /&gt;
=== Convert to .MP3 audio file using FFMPEG ===&lt;br /&gt;
==== Convert Flash video audio to mp3 ====&lt;br /&gt;
* Once you have downloaded flash video content (.flv) from the Internet (using the [[Kubuntu:Oneiric#Video_DownloadHelper_plug-in_for_Firefox|Video Download Helper plug-in for Firefox]], for example), the audio component can be converted to an mp3 using this command (from the command line Terminal). (This will work for any type of video file, not just Flash.)&lt;br /&gt;
 ffmpeg -i ''nameofvideoclip.flv'' -ab 160k -ac 2 -ar 44100 -vn ''nameoffile.mp3''&lt;br /&gt;
&lt;br /&gt;
:where -i indicates the input, -ab indicates the bit rate (in this example 160kb/sec), -vn means no video ouput, -ac 2 means 2 channels, -ar 44100 indicates the sampling frequency. See [http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html#SEC11 FFMPEG docs] for more info.&lt;br /&gt;
&lt;br /&gt;
If I only want a segment of the video to be converted, I can use the time markers:&lt;br /&gt;
 ffmpeg -i ''nameofvideoclip.flv'' -ss ''00:00:09'' -t ''00:03:00'' -ab 160k -ac 2 -ar 44100 -vn ''nameoffile.mp3''&lt;br /&gt;
:where -ss ''00:00:09'' indicates the point in the video (hh:mm:ss) at which to start conversion and -t ''00:03:00'' indicates the amount of time (from the start point) to convert.&lt;br /&gt;
&lt;br /&gt;
* As long as [[#FFMPEG|FFMPEG]] is already installed, the [[Kubuntu:Oneiric#Video_DownloadHelper_plug-in_for_Firefox|Video DownloadHelper plug-in for Firefox]] already has an option to automatically convert an online video (such as those found at YouTube) into an .MP3 file. (Settings are adjustable.) From the DownloadHelper icon in Firefox, highlight the video to convert, then&lt;br /&gt;
:DownloadHelper icon -&amp;gt; Download and Convert -&amp;gt; Converter options: MP3&lt;br /&gt;
&lt;br /&gt;
=== Edit/convert screencapture with FFMPEG ===&lt;br /&gt;
''Note: This section under construction.''&lt;br /&gt;
&lt;br /&gt;
*Note: I now recommend using [[Video_Conversion|mencoder for all video conversion]] techniques. It uses some of the ffmpeg libraries but is faster and gives more reliable and high-quality results.&lt;br /&gt;
&lt;br /&gt;
*This is only one example of a wide variety of techniques. Once I have a [[Screencasts#FFMPEG_with_x11grab|captured video]], I want to convert it to XVID video (which is the format my older DVD player accepts) and MP3 audio (mp3lame), which I will place in an AVI container (which my DVD player also accepts). &lt;br /&gt;
&lt;br /&gt;
 ffmpeg -i ''Punchcast1.avi'' -vcodec mpeg4 -vtag xvid -acodec libmp3lame -ss 00:00:09 -t 00:03:00 ''Punchcast2.avi''&lt;br /&gt;
&lt;br /&gt;
I will start conversion (-ss) at second 9 (to eliminate unimportant things at the beginning) and convert 3 minutes (-t) of video (00:03:00).&lt;br /&gt;
&lt;br /&gt;
* I happen to watch my screencasts on my old-fashioned 4:3 television. To do that, I make a letterboxed video:&lt;br /&gt;
&lt;br /&gt;
 ffmpeg -i ''Punchcast1.avi'' -vcodec mpeg4 -vtag xvid -ss 00:00:09 -t 00:03:00 -s 648x364 -padleft 36 -padright 36 -padtop 58 -padbottom 58 -acodec libmp3lame  ''Punchcast3.avi''&lt;br /&gt;
&lt;br /&gt;
My laptop screen is 1366x768, which I reduce to a size of 648x364. My TV wants 720x480, so I pad the sides and top/bottom. Why not a width of 720 initially? My older television has 10% overscan, which cuts off 10% of the video. I therefore use (at least) 10% padding on the edges.&lt;br /&gt;
&lt;br /&gt;
In newer versions of FFMPEG, the padding (and many other) options have changed. The proper command is now:&lt;br /&gt;
 ffmpeg -i Punchcast1.avi -vcodec mpeg4 -vtag xvid -ss 00:00:09 -t 00:03:00 -s 648x364 -vf pad 720:480:36:58 -acodec libmp3lame Punchcast3.avi&lt;br /&gt;
&lt;br /&gt;
 ffmpeg movie=Punchcast1.avi:seek_point=9 -vcodec copy -acodec libmp3lame Punchcast1f.avi&lt;br /&gt;
&lt;br /&gt;
=== WinFF (FFMPEG GUI) ===&lt;br /&gt;
[http://winff.org WinFF] is a free, GPL-licensed open source GUI frontend for FFMPEG. Install:&lt;br /&gt;
 sudo apt-get install winff xterm&lt;br /&gt;
Run:&lt;br /&gt;
:Menu -&amp;gt; Applications -&amp;gt; Sound &amp;amp; Video -&amp;gt; WinFF&lt;br /&gt;
&lt;br /&gt;
== VobSub2SRT (Convert subtitles from .sub/.idx to .srt) ==&lt;br /&gt;
* [https://github.com/ruediger/VobSub2SRT VobSub2SRT] is a simple (GPLv3-licensed) command line program to convert the image-based .idx / .sub subtitle files (used with the [http://en.wikipedia.org/wiki/VOB .vob] format found on commercial DVDs) into text-based [http://en.wikipedia.org/wiki/SubRip .srt] text subtitle files by using OCR. It is based on code from the [[Ubuntu:All#MPlayer_Multimedia_Player|MPlayer]] project, [[Ubuntu:All#Tesseract_.28Optical_Character_Reader.29|Tesseract]] as OCR software, and libavutil (part of the [[Ubuntu:All#FFMPEG_video_.2F_audio_conversion|FFmpeg]] project). Install the (K)Ubuntu/Debian (.deb) package from a PPA repository:&lt;br /&gt;
 sudo add-apt-repository ppa:ruediger-c-plusplus/vobsub2srt&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install vobsub2srt&lt;br /&gt;
&lt;br /&gt;
* Alternatively, you can download and build a version from source code.&lt;br /&gt;
:* Install dependencies: &lt;br /&gt;
 sudo apt-get install pkg-config build-essential cmake libavutil-dev libtesseract-dev&lt;br /&gt;
&lt;br /&gt;
:* For (K)Ubuntu 12.10 (Quantal) also install:&lt;br /&gt;
 sudo apt-get install libtiff5-dev tesseract-ocr-eng&lt;br /&gt;
&lt;br /&gt;
:* For (K)Ubuntu 12.04LTS (Precise) also install:&lt;br /&gt;
 sudo apt-get install libtiff4-dev tesseract-ocr tesseract-ocr-eng  &amp;lt;!---&amp;gt;tesseract-ocr-dev&amp;lt;---&amp;gt; &lt;br /&gt;
&lt;br /&gt;
::* If you will be converting subtitles in languages other than English, you must install tesseract for any or all of those languages as well:&lt;br /&gt;
 sudo apt-get install tesseract-ocr-vie tesseract-ocr-deu tesseract-ocr-fra tesseract-ocr-ita&lt;br /&gt;
 sudo apt-get install tesseract-ocr-nld tesseract-ocr-spa tesseract-ocr-por tesseract-ocr-deu-f&lt;br /&gt;
::where vie is for Vietnamese, deu is for German, fra is for French, ita is for Italian, nld is for Dutch, spa is for Spanish, por is for Portugeuse, and deu-f is for German Fraktur script. If you don't you will get an error of the type: ''Unable to load unicharset file /usr/share/tesseract-ocr/tessdata/xxx.unicharset''.&lt;br /&gt;
&lt;br /&gt;
:* Download and unzip the VobSub2SRT .zip file into its own directory:&lt;br /&gt;
 mkdir vobsub2srt&lt;br /&gt;
 cd vobsub2srt&lt;br /&gt;
 wget -O vobsub2srt-current.zip &amp;lt;nowiki&amp;gt;https://github.com/ruediger/VobSub2SRT/zipball/ca53a18108eb08d6e2b853643d8c6838e2489823&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 unzip vobsub2srt-current.zip&lt;br /&gt;
 rm vobsub2srt-current.zip&lt;br /&gt;
&lt;br /&gt;
:* This will create a subdirectory with the current version. For example, my version is ''vobsub2srt/ruediger-VobSub2SRT-ca53a18''. Change into that directory then compile and install the program.&lt;br /&gt;
 cd ''ruediger-VobSub2SRT-ca53a18''&lt;br /&gt;
 ./configure&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
:* This should install the program vobsub2srt to /usr/local/bin. You can uninstall vobsub2srt with ''sudo make uninstall''. You can build a *.deb package (Debian/Ubuntu) with ''make package''. The package is created in the build directory.&lt;br /&gt;
&lt;br /&gt;
* Convert the .sub / .idx pair of subtitle files (named ''Filename.sub'' and ''Filename.idx'') into a .srt sbutitle file (named ''Filename.srt''):&lt;br /&gt;
 vobsub2srt ''Filename''&lt;br /&gt;
&lt;br /&gt;
:where Filename is the file name of the subtitle files WITHOUT the extension (.sub / .idx).&lt;br /&gt;
&lt;br /&gt;
*If there are multiple languages in the .sub / .idx pair of subtitle files, you can select which language to convert (using the 2-letter [http://en.wikipedia.org/wiki/ISO_639-1 ISO 639-1] language code, e.g. en, fr, de, it, es, pt, etc.):&lt;br /&gt;
 vobsub2srt --lang en ''Filename'' &lt;br /&gt;
&lt;br /&gt;
* Edit the .srt subtitle file for OCR mistakes (use the ''gedit'' text editor instead of ''kate'' if using Ubuntu instead of Kubuntu):&lt;br /&gt;
 kate ''Filename.srt''&lt;br /&gt;
&lt;br /&gt;
== Join .MPG video segments ==&lt;br /&gt;
Individual video segments (MPEG-2, for example) can easily be joined:&lt;br /&gt;
 cat ''samplevideo1.mpg'' ''samplevideo2.mpg'' ''samplevideo3.mpg'' &amp;gt; ''samplevideo123.mpg''&lt;br /&gt;
&lt;br /&gt;
:You can then write the resulting MPEG-2 file to a DVD and play it in most DVD players.&lt;br /&gt;
&lt;br /&gt;
== Split a file into segments ==&lt;br /&gt;
Any file can be [http://en.wikipedia.org/wiki/Split_%28Unix%29 split] into segments using the Linux command:&lt;br /&gt;
 split -b 1440k ''my_big_file''&lt;br /&gt;
&lt;br /&gt;
which will split ''my_big_file'' into equal segments of size 1440 kb.&lt;br /&gt;
&lt;br /&gt;
== Create a commercial (.vob) format DVD ==&lt;br /&gt;
* The audiovideo container of commercial DVDs uses the [http://en.wikipedia.org/wiki/VOB .vob format]. This container requires either MPEG-1 or MPEG-2 video (.mpg) and either AC3 or MPEG-2 (.mp2) audio. Therefore, the first step in creating a DVD-video in this format is to convert all audiovisual files (to be included on it) to .mpg files (with one of those video and audio formats), usually with the MPEG-PS (A+V) container. This can be done from the command-line terminal (using mencoder or ffmpeg) or from a GUI utility (such as Avidemux).&lt;br /&gt;
&lt;br /&gt;
:* The GUI utility [[Kubuntu_Precise_Video#Avidemux_.28Video_editor.2Fprocessor.29|Avidemux]] is a GUI utility that has standardised settings for file conversion. [http://avidemux.org/admWiki/doku.php?id=tutorial:converting_to_dvd Here] is the Avidemux tutorial for conversion to a DVD-video.&lt;br /&gt;
&lt;br /&gt;
::* Open the file and allow the time map and Index to be rebuilt.&lt;br /&gt;
::* It is best to convert a file (to be included on the DVD) to a format with MPEG-2 (avcodec) video, AC3 (lav) audio, and the MPEG-PS (A+V) container as an intermediate first. The MP2 audio format (the default for Avidemux in &amp;quot;Auto&amp;quot; mode) can also be used, and will result in a much smaller .mpg file then when using AC3 audio, but several of my very old DVD players only recognise AC3 audio (so this has therefore become my personal preference). &lt;br /&gt;
:::* The easiest method for doing this is to use the Avidemux Auto DVD wizard. (Avidemux -&amp;gt; Auto -&amp;gt; Optical Disc -&amp;gt; DVD). Select the appropriate souce and destination ratios. (My source videos are usually already in 16:9 widescreen formats, and I want to make DVDs for my widescreen 16:9 TV. I therefore choose 16:9 for both the &amp;quot;Source Aspect Ratio&amp;quot; and the &amp;quot;Destination Aspect Ratio.&amp;quot;) The Auto DVD Wizard uses MP2 audio by default, but I personally like AC3 audio instead (the format usually used on &amp;quot;commercial&amp;quot; DVDs).  I therefore change this using the Audio -&amp;gt; AC3 (lav) option.&lt;br /&gt;
:::* It is possible to customise (or initially set) the format options manually as well (see the Avidemux documentation). Select the Video (and make sure the aspect ratio is the one you desire in Video -&amp;gt; Configure -&amp;gt; Configuration: DVD -&amp;gt; Aspect Ratio: ''16:9'' ), Audio, and (container) Format options.&lt;br /&gt;
::::*  To be DVD compliant, the resolution must be&lt;br /&gt;
:::::* 352*480 or 720*480 or 704*480 for NTSC&lt;br /&gt;
:::::* 352*576 or 720*576 or 704*576 for PAL/SECAM&lt;br /&gt;
:::: This is set automatically if using the Auto DVD wizard. If your original video does not already have the correct aspect ratio, you will have to use cropping, scaling, and/or black bar &amp;quot;Filter&amp;quot; options until one of the standard resolutions is achieved. &lt;br /&gt;
&lt;br /&gt;
::* Save the file ( Avidemux -&amp;gt; File -&amp;gt; Save -&amp;gt; Save Video... -&amp;gt; ''myconvertedvideo.mpg'' ) to activate the conversion process. (If prompted whether to &amp;quot;Reuse the existing log file?&amp;quot; answer &amp;quot;No.&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
:* Alternatively, mencoder can be used from the command-line to [[#AVI_to_MPG|convert a file to the .mpg format]].&lt;br /&gt;
&lt;br /&gt;
:* Alternatively, FFMPEG can be used from the command-line to [[#Flash_video_.28.flv.29_to_MPG-2_using_FFMPEG|convert a file to the .mpg format]]. A simplified preset option for for conversion to both PAL and NTSC options is available.&lt;br /&gt;
&lt;br /&gt;
* Once all files to be included on the DVD-video have been converted to .mpg files, the utility [[Kubuntu_Precise_Audio_Video_Conversion#DVD_Author|dvdauthor]] can be used for conversion to .vob format (appropriate for writing to the DVD). While this utility can be used from the command-line, &amp;quot;authoring&amp;quot; (conversion) is more easily accomplished using one of several available [[Kubuntu_Precise_Audio_Video_Conversion#Other_DVD_authoring_programs|GUI front-ends]], which allow creation of menus for the DVD as well.&lt;br /&gt;
&lt;br /&gt;
::* With Kubuntu I use KMediaFactory for simple projects. (QDVDAuthor, which is difficult to install in recent Kubuntu versions, is superior and more powerful. [[Kubuntu_Precise_Audio_Video_Conversion#Other_DVD_authoring_programs|KMediaFactory]], in contrast, is in the repositories and is adequate (and quick) for most purposes.&lt;br /&gt;
:::* Rename the .mpg files (created with Avidemux or other method) carefully. The filename(s) becomes the Title(s) used by KMediaFactory for the video(s) on the DVD menu.&lt;br /&gt;
:::* Set up the DVD menu in KMediaFactory.&lt;br /&gt;
::::* KMediaFactory -&amp;gt; Project -&amp;gt; Title -&amp;gt; ''MyDVDTitle'' (this will appear on the DVD Menu at the top)&lt;br /&gt;
::::* -&amp;gt; Type: ''DVD-NTSC'' -&amp;gt; Aspect: ''16:9'' -&amp;gt; Destination Folder ''/home/user/DVDs''&lt;br /&gt;
:::* Add the .mpg files to the DVD. &lt;br /&gt;
::::* KMediaFactory -&amp;gt; Media -&amp;gt; Add Video -&amp;gt; ''MyFirstVideofile.mpg'' -&amp;gt; VideoProperties: Aspect ratio: ''16:9''&lt;br /&gt;
:::::* -&amp;gt; Add Video -&amp;gt; ''MySecondVideofile.mpg'' -&amp;gt; VideoProperties: Aspect ratio: ''16:9''&lt;br /&gt;
:::* Choose the DVD Menu appearance.&lt;br /&gt;
::::* KMediaFactory -&amp;gt; Template -&amp;gt; ''Preview 3''&lt;br /&gt;
:::* Choose the output format. For this, I generally create a &amp;quot;DVD folder&amp;quot; which I can then check using [[Kubuntu_Precise_Media_Players#VLC_Multimedia_Player|VLC]] to make sure my DVD looks the way I had intended.&lt;br /&gt;
::::* KMediaFactory -&amp;gt; Output -&amp;gt; DVD Folder&lt;br /&gt;
:::* Start the conversion (&amp;quot;DVD authoring&amp;quot;) process. If an error appears, the problem usually lies in a non-existent (or write-protected) folder having been specified when setting the &amp;quot;Title&amp;quot; options. Make sure the folder has been specified properly. KMediaFactory will then create the standard AUDIO_TS and VIDEO_TS folders in the folder specified.&lt;br /&gt;
::::* -&amp;gt; Start&lt;br /&gt;
&lt;br /&gt;
::* In Kubuntu I then use [[Kubuntu_Precise_Audio_Video_Conversion#K3b_.28CD.2FDVD_burner.29|K3b]] to burn the AUDIO_TS and VIDEO_TS folders to a blank DVD. This can be done in K3b using the &amp;quot;New Video DVD Project&amp;quot; (K3b -&amp;gt; More actions... -&amp;gt; New Video DVD Project) using the AUDIO_TS and VIDEO_TS folders as the data. Edit the name of the DVD to reflect the desired DVD name. &amp;quot;Burn&amp;quot; the DVD. The result will be identical to commercial DVDs. (Note: In recent versions of K3b I have had to &amp;quot;Burn&amp;quot; using the &amp;quot;growisofs&amp;quot; Writing app at 8x Speed and DAO (Disc-At-Once) Writing Mode in order to achieve reliable burns. See [[Kubuntu_Precise_Audio_Video_Conversion#K3b_.28CD.2FDVD_burner.29|here]] for more details.)&lt;br /&gt;
&lt;br /&gt;
== Recommended formats ==&lt;br /&gt;
* There is only one format that works on all my devices (computer (both Linux and Windows), (Android) tablet, (Android) eBook reader, MP3 player, DVD player):&lt;br /&gt;
:* .AVI container with XVID/DivX video codec and MP3lame (MP3) audio codec&lt;br /&gt;
&lt;br /&gt;
:I use this for all my devices, and encode files to about 700 MB. This is a good size that gives good quality and allows me to fit many videos on a single SDcard (which I use in my mobile devices). For most of my devices, a 128 kb MP3 encoding bitrate is sufficient; I previously encoded at 192 kb for MP3lame (which is the default bitrate for AC3 sound), but I find this bitrate to be unnecessary. (The higher the encoding bitrate, the larger the encoded file, and I try to keep all my files around 700 MB.) The .AVI container has several limitations: it does not allow more than stereo audio (i.e. no 5.1 surround sound), does not allow multiple subtitle files, and requires a constant bitrate (CBR) audio channel. For advanced archival purposes it may not be suitable in the long-term, but currently it is desirable for the wide range of devices that accept it. It is also one of the only containers guaranteed to be accepted by Windows computers (since the container is originally a Windows-based format). &lt;br /&gt;
&lt;br /&gt;
* I am also able to use an .MP4 container with X264/H.264 video codec and either the AAC audio codec or the MP3lame (MP3) audio codec on many devices, but not all. Neither the X264/H.264 video nor the AAC audio will play on my DVD player or MP3 player, for example (though it plays on my computer and Android tablet devices).&lt;br /&gt;
&lt;br /&gt;
:* The related .M4V container (the proprietary Apple Quicktime format) works on almost none of my devices, and, furthermore, is difficult to decode and re-encode to a different container. I shun this format like the plague.&lt;br /&gt;
&lt;br /&gt;
* The newer .MKV container, though open source and a superior container, is accepted by very few of my older devices. It does not play on my (older) DVD player or MP3 player, for example (no matter which video and audio codecs are used). &lt;br /&gt;
&lt;br /&gt;
:Nevertheless, most newer DVD players seem to accept the .MKV format. In fact, it is now difficult to find DVD players that will still play .AVI with XVID / DivX video. Over the years, however, I have accumulated a very large collection of .AVI / XVID / MP3 videos. In 2013, the only DVD player I could find that would play them all was the Philips DVP3680/F7 DVD Player with HD Upconversion (which I found at [http://www.bestbuy.com/site/Philips+-+DVD+Player+with+HD+Upconversion/4983625.p;jsessionid=436B03D27CA483A9AB8EC510D0B2B03C.bbolsp-app01-115?id=1218644449769&amp;amp;skuId=4983625&amp;amp;st=philips&amp;amp;cp=1&amp;amp;lp=15 Best Buy] for $40). I highly recommend this player, therefore, if you find yourself with a large collection of .AVI / XVID video files. However, it does not play MP4 files, which is a drawback. (Note: I am told that [http://www.amazon.com/Philips-Region-1080p-Upconverting-Player/dp/B004BI6MVS/ref=pd_cp_e_0#productDescription this upconverting Philips DVD] player will play region-free, both PAL and NTSC formats, and both MP4 and DivX/XVID codecs.)&lt;br /&gt;
&lt;br /&gt;
* My Android (2.3) tablet devices will also not accept the AC3 audio codec (which is the standard audio used on commercial DVDs, for example), so most of the time I re-encode any files having AC3 audio with the MP3lame audio codec instead.&lt;/div&gt;</description>
			<pubDate>Sat, 27 Apr 2013 21:03:59 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Video_Conversion</comments>		</item>
		<item>
			<title>Template:U Raring/Requests</title>
			<link>http://easylinux.info/wiki/Template:U_Raring/Requests</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Requests */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Requests =&lt;br /&gt;
== Reviews ==&lt;br /&gt;
* [http://www.zdnet.com/ubuntu-13-04-raring-ringtail-review-7000014497/ ZDNet's Review] of Ubuntu Raring&lt;br /&gt;
&lt;br /&gt;
== eBook version of this guide ==&lt;br /&gt;
* See the [[eBooks|Books Category]] for free Ubuntu eBooks based on this help guide.&lt;br /&gt;
* There is an option in the menu bar at the left entitled &amp;quot;Printable version&amp;quot; which formats pages for easier printing. You can print this (or any other document) to a PDF file easily. By default, Ubuntu includes a &amp;quot;Print to File&amp;quot; option from its Print menu. Use this option to print anything appearing in your browser into a PDF file. From Firefox (or any other browser or program):&lt;br /&gt;
:::File -&amp;gt; Print -&amp;gt; Print to File -&amp;gt; Output Format: PDF&lt;br /&gt;
&lt;br /&gt;
== Import this guide into another wiki ==&lt;br /&gt;
* How do I import a copy of Ubuntuguide into my own wiki?&lt;br /&gt;
:See [[Ubuntuguide XML exports|this page]].&lt;br /&gt;
&lt;br /&gt;
== Other requested topics ==&lt;br /&gt;
Place your requests here.&lt;br /&gt;
&lt;br /&gt;
* How can I [[Advertise_with_Us|sponsor]] Ubuntuguide/Kubuntuguide?&lt;br /&gt;
&lt;br /&gt;
* How can I contribute?&lt;br /&gt;
:[[Special:UserLogin|Register]] and then add your suggestions directly to the wiki.&lt;/div&gt;</description>
			<pubDate>Sat, 27 Apr 2013 04:47:52 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:U_Raring/Requests</comments>		</item>
		<item>
			<title>Template:Public Service Announcement</title>
			<link>http://easylinux.info/wiki/Template:Public_Service_Announcement</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Public Service Announcement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Public Service Announcement ==&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* Support [http://en.wikipedia.org/wiki/Earth_Day Earth Day] on 22 April 2013 and do your part to reduce energy consumption (and CO2 emissions) and help reduce the rate of global warming. Perhaps consider a low-power computer, such as those from [http://aleutia.com/products Aleutia] or [http://www.fit-pc.com Fit-PC]. Maybe browse a news website dedicated to energy efficiency, such as [http://www.environmentalleader.com/category/smart-grid/ Enviornmental Leader]...&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; ... and plant some trees. &lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* In the United States, two legislative bills, [https://en.wikipedia.org/wiki/Stop_Online_Piracy_Act SOPA] and [https://en.wikipedia.org/wiki/PROTECT_IP_Act PIPA], were defeated after close examination and widespread public outcry against them. In response, a new legislative bill with even more ominous consequences to the usage and functioning of the Internet, [https://en.wikipedia.org/wiki/Cyber_Intelligence_Sharing_and_Protection_Act CISPA], has been drafted. This bill allows [http://en.wikipedia.org/wiki/Big_Brother_%28Nineteen_Eighty-Four%29 Big Brother] monitoring of every citizen not only by government but also by private agencies. If you are a US citizen, review the implications of this bill and write to your congressperson about the unnecessarily broad and intrusive nature of this bill. Hopefully your representative has more than a 6th-grade education (if you live [http://www.guardian.co.uk/commentisfree/2013/apr/18/cispa-2013-house-vote-internet-privacy in Michigan] you may be out of luck).&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;/div&gt;</description>
			<pubDate>Sat, 27 Apr 2013 03:57:42 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Public_Service_Announcement</comments>		</item>
		<item>
			<title>Template:Public Service Announcement</title>
			<link>http://easylinux.info/wiki/Template:Public_Service_Announcement</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Public Service Announcement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Public Service Announcement ==&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* Support [http://en.wikipedia.org/wiki/Earth_Day Earth Day] on 22 April 2013 and do your part to reduce energy consumption (and CO2 emissions) and help reduce the rate of global warming. Perhaps consider a low-power computer, such as those from [http://aleutia.com/products Aleutia] or [http://www.fit-pc.com Fit-PC]. Maybe browse a news website dedicated to energy efficiency, such as [http://www.environmentalleader.com/category/smart-grid/ Enviornmental Leader]...&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; ... and plant some trees. &lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* In the United States, two legislative bills, [https://en.wikipedia.org/wiki/Stop_Online_Piracy_Act SOPA] and [https://en.wikipedia.org/wiki/PROTECT_IP_Act PIPA], were defeated after close examination and widespread public outcry against them. In response, a new legislative bill with even more ominous consequences to the usage and functioning of the Internet, [https://en.wikipedia.org/wiki/Cyber_Intelligence_Sharing_and_Protection_Act CISPA], has been drafted. This bill allows Big Brother monitoring of every citizen not only by government but also by private agencies. If you are a US citizen, review the implications of this bill and write to your congressperson about the unnecessarily broad and intrusive nature of this bill. Hopefully your representative has more than a 6th-grade education (if you live [http://www.guardian.co.uk/commentisfree/2013/apr/18/cispa-2013-house-vote-internet-privacy in Michigan] you may be out of luck).&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;/div&gt;</description>
			<pubDate>Mon, 22 Apr 2013 17:26:51 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Public_Service_Announcement</comments>		</item>
		<item>
			<title>Template:Public Service Announcement</title>
			<link>http://easylinux.info/wiki/Template:Public_Service_Announcement</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Public Service Announcement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Public Service Announcement ==&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* Support [http://en.wikipedia.org/wiki/Earth_Day Earth Day] on 22 April 2013 and do your part to reduce energy consumption (and CO2 emissions) and help reduce the rate of global warming. Perhaps consider a low-power computer, such as those from [http://aleutia.com/products Aleutia] or [http://www.fit-pc.com Fit-PC]. Maybe browse a news website dedicated to energy efficiency, such as [http://www.environmentalleader.com/category/smart-grid/ Enviornmental Leader]...&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; ... and be sure to plant some trees. &lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* In the United States, two legislative bills, [https://en.wikipedia.org/wiki/Stop_Online_Piracy_Act SOPA] and [https://en.wikipedia.org/wiki/PROTECT_IP_Act PIPA], were defeated after close examination and widespread public outcry against them. In response, a new legislative bill with even more ominous consequences to the usage and functioning of the Internet, [https://en.wikipedia.org/wiki/Cyber_Intelligence_Sharing_and_Protection_Act CISPA], has been drafted. This bill allows Big Brother monitoring of every citizen not only by government but also by private agencies. If you are a US citizen, review the implications of this bill and write to your congressperson about the unnecessarily broad and intrusive nature of this bill. Hopefully your representative has more than a 6th-grade education (if you live [http://www.guardian.co.uk/commentisfree/2013/apr/18/cispa-2013-house-vote-internet-privacy in Michigan] you may be out of luck).&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;/div&gt;</description>
			<pubDate>Mon, 22 Apr 2013 17:08:49 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Public_Service_Announcement</comments>		</item>
		<item>
			<title>Template:Public Service Announcement</title>
			<link>http://easylinux.info/wiki/Template:Public_Service_Announcement</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Public Service Announcement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Public Service Announcement ==&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* Support [http://en.wikipedia.org/wiki/Earth_Day Earth Day] on 22 April 2013 and do your part to reduce energy consumption (and CO2 emissions) and help reduce the rate of global warming. Perhaps consider a low-power computer, such as those from [http://aleutia.com/products Aleutia] or [http://www.fit-pc.com Fit-PC]. Maybe browse a news website dedicated to energy efficiency, such as [http://www.environmentalleader.com/category/smart-grid/ Enviornmental Leader]...&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; ... and be sure to plant some trees. &lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* In the United States, two legislative bills, [https://en.wikipedia.org/wiki/Stop_Online_Piracy_Act SOPA] and [https://en.wikipedia.org/wiki/PROTECT_IP_Act PIPA], were defeated after close examination and widespread public outcry against them. In response, a new legislative bill with even more ominous consequences to the usage and functioning of the Internet, [https://en.wikipedia.org/wiki/Cyber_Intelligence_Sharing_and_Protection_Act CISPA], has been drafted. This bill allows Big Brother monitoring of every citizen not only by government but also by private agencies. If you are a US citizen, review the implications of this bill and write to your congressperson about the unnecessarily broad and intrusive nature of this bill. Hopefully your representative has more than a 6th-grade education (if you live in Michigan you may be out of luck).&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;/div&gt;</description>
			<pubDate>Mon, 22 Apr 2013 14:58:13 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Public_Service_Announcement</comments>		</item>
		<item>
			<title>Template:Public Service Announcement</title>
			<link>http://easylinux.info/wiki/Template:Public_Service_Announcement</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Public Service Announcement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Public Service Announcement ==&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* Support [http://en.wikipedia.org/wiki/Earth_Day Earth Day] on 22 April 2013 and do your part to reduce energy consumption (and CO2 emissions) and help reduce the rate of global warming. Perhaps consider a low-power computer, such as those from [http://aleutia.com/products Aleutia] or [http://www.fit-pc.com Fit-PC]. Maybe browse a news website dedicated to energy efficiency, such as [http://www.environmentalleader.com/category/smart-grid/ Enviornmental Leader]...&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Also, be sure to plant some trees. &lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* In the United States, two legislative bills, [https://en.wikipedia.org/wiki/Stop_Online_Piracy_Act SOPA] and [https://en.wikipedia.org/wiki/PROTECT_IP_Act PIPA], were defeated after close examination and widespread public outcry against them. In response, a new legislative bill with even more ominous consequences to the usage and functioning of the Internet, [https://en.wikipedia.org/wiki/Cyber_Intelligence_Sharing_and_Protection_Act CISPA], has been drafted. This bill allows Big Brother monitoring of every citizen not only by government but also by private agencies. If you are a US citizen, review the implications of this bill and write to your congressperson about the unnecessarily broad and intrusive nature of this bill. Hopefully your representative has more than a 6th-grade education (if you live in Michigan you may be out of luck).&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;/div&gt;</description>
			<pubDate>Mon, 22 Apr 2013 14:56:54 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Public_Service_Announcement</comments>		</item>
		<item>
			<title>Template:Public Service Announcement</title>
			<link>http://easylinux.info/wiki/Template:Public_Service_Announcement</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Public Service Announcement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Public Service Announcement ==&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* Support [http://en.wikipedia.org/wiki/Earth_Day Earth Day] on 22 April 2013 and do your part to reduce energy consumption (and CO2 emissions) and help reduce the rate of global warming. Perhaps consider a low-power computer, such as those from [http://aleutia.com/products Aleutia] or [http://www.fit-pc.com Fit-PC]. Maybe browse a news website dedicated to energy efficiency, such as [http://www.environmentalleader.com/category/smart-grid/ Enviornmental Leader]...&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Also, be sure to plant some trees. &lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* In the United States, two legislative bills, [https://en.wikipedia.org/wiki/Stop_Online_Piracy_Act SOPA] and [https://en.wikipedia.org/wiki/PROTECT_IP_Act PIPA], were defeated after close examination and widespread public outcry against them. In response, a new legislative bill with even more ominous consequences to the usage and functioning of the Internet, [https://en.wikipedia.org/wiki/Cyber_Intelligence_Sharing_and_Protection_Act CISPA], has been drafted. This bill allows Big Brother monitoring of every citizen not only by government but also by private agencies. If you are a US citizen, review the implications of this bill and write to your congressperson about the unnecessarily broad and intrusive nature of this bill. Hopefully your representative has more than a 6th-grade education (if you live in Michigan you may be out of luck).&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;/div&gt;</description>
			<pubDate>Mon, 22 Apr 2013 14:55:57 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Public_Service_Announcement</comments>		</item>
		<item>
			<title>Template:Public Service Announcement</title>
			<link>http://easylinux.info/wiki/Template:Public_Service_Announcement</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Public Service Announcement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Public Service Announcement ==&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* Support [http://en.wikipedia.org/wiki/Earth_Day Earth Day] on 22 April 2013 and do your part to reduce energy consumption (and CO2 emissions) and help reduce the rate of global warming. Perhaps consider a low-power computer, such as those from [http://aleutia.com/products Aleutia] or [http://www.fit-pc.com Fit-PC]. Maybe browse a news website dedicated to energy efficiency, such as [http://www.environmentalleader.com/category/smart-grid/ Enviornmental Leader]...&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Also, be sure to plant some trees. &lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* In the United States, two legislative bills, [https://en.wikipedia.org/wiki/Stop_Online_Piracy_Act SOPA] and [https://en.wikipedia.org/wiki/PROTECT_IP_Act PIPA], were defeated after close examination and widespread public outcry against them. In response, a new legislative bill with even more ominous consequences to the usage and functioning of the Internet, [https://en.wikipedia.org/wiki/Cyber_Intelligence_Sharing_and_Protection_Act CISPA], has been drafted. This bill allows Big Brother monitoring of every citizen not only by government but also by private agencies. If you are a US citizen, review the implications of this bill and write to your congressperson about the unnecessarily broad and intrusive nature of this bill. Hopefully your representative has more than a 6th-grade education (if you live in Michigan you may be out of luck).&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;/div&gt;</description>
			<pubDate>Mon, 22 Apr 2013 14:55:09 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Public_Service_Announcement</comments>		</item>
		<item>
			<title>Template:Public Service Announcement</title>
			<link>http://easylinux.info/wiki/Template:Public_Service_Announcement</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Public Service Announcement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Public Service Announcement ==&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* Support [http://en.wikipedia.org/wiki/Earth_Day Earth Day] on 22 April 2013 and do your part to reduce energy consumption (and CO2 emissions) and help reduce the rate of global warming. Perhaps consider a low-power computer, such as those from [http://aleutia.com/products Aleutia] or [http://www.fit-pc.com Fit-PC]. Maybe browse a news website dedicated to energy efficiency, such as [http://www.environmentalleader.com/category/smart-grid/ Enviornmental Leader]...&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Also, be sure to plant some trees. &lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* In the United States, two legislative bills, [https://en.wikipedia.org/wiki/Stop_Online_Piracy_Act SOPA] and [https://en.wikipedia.org/wiki/PROTECT_IP_Act PIPA], were defeated after close examination and widespread public outcry against them. In response, a new legislative bill with even more ominous consequences to the usage and functioning of the Internet, [https://en.wikipedia.org/wiki/Cyber_Intelligence_Sharing_and_Protection_Act CISPA], has been drafted. This bill allows Big Brother monitoring of every citizen not only by government but also by private agencies. If you are a US citizen, review the implications of this bill and write to your congressperson about the unnecessarily broad and intrusive nature of this bill. Hopefully your representative has more than a 6th-grade education (if you live in Michigan you may be out of luck).&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;/div&gt;</description>
			<pubDate>Mon, 22 Apr 2013 14:54:03 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Public_Service_Announcement</comments>		</item>
		<item>
			<title>Template:Public Service Announcement</title>
			<link>http://easylinux.info/wiki/Template:Public_Service_Announcement</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Public Service Announcement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Public Service Announcement ==&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* Support [http://en.wikipedia.org/wiki/Earth_Day Earth Day] on 22 April 2013 and do your part to reduce energy consumption (and CO2 emissions) and help reduce the rate of global warming. Perhaps consider a low-power computer, such as those from [http://aleutia.com/products Aleutia] or [http://www.fit-pc.com Fit-PC]. Maybe browse a news website dedicated to energy efficiency, such as [http://www.environmentalleader.com/category/smart-grid/ Enviornmental Leader]...&amp;lt;br&amp;gt;&lt;br /&gt;
:Don't forget to plant some trees. &lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* In the United States, two legislative bills, [https://en.wikipedia.org/wiki/Stop_Online_Piracy_Act SOPA] and [https://en.wikipedia.org/wiki/PROTECT_IP_Act PIPA], were defeated after close examination and widespread public outcry against them. In response, a new legislative bill with even more ominous consequences to the usage and functioning of the Internet, [https://en.wikipedia.org/wiki/Cyber_Intelligence_Sharing_and_Protection_Act CISPA], has been drafted. This bill allows Big Brother monitoring of every citizen not only by government but also by private agencies. If you are a US citizen, review the implications of this bill and write to your congressperson about the unnecessarily broad and intrusive nature of this bill. Hopefully your representative has more than a 6th-grade education (if you live in Michigan you may be out of luck).&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;/div&gt;</description>
			<pubDate>Mon, 22 Apr 2013 14:51:56 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Public_Service_Announcement</comments>		</item>
		<item>
			<title>Template:Public Service Announcement</title>
			<link>http://easylinux.info/wiki/Template:Public_Service_Announcement</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Public Service Announcement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Public Service Announcement ==&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* Support [http://en.wikipedia.org/wiki/Earth_Day Earth Day] on 22 April 2013 and do your part to reduce energy consumption (and CO2 emissions) and help reduce the rate of global warming. Perhaps consider a low-power computer, such as those from [http://aleutia.com/products Aleutia] or [http://www.fit-pc.com Fit-PC]. Maybe browse a news website dedicated to energy efficiency, such as [http://www.environmentalleader.com/category/smart-grid/ Enviornmental Leader]...&amp;lt;br&amp;gt;&lt;br /&gt;
Don't forget to plant some trees. &lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* In the United States, two legislative bills, [https://en.wikipedia.org/wiki/Stop_Online_Piracy_Act SOPA] and [https://en.wikipedia.org/wiki/PROTECT_IP_Act PIPA], were defeated after close examination and widespread public outcry against them. In response, a new legislative bill with even more ominous consequences to the usage and functioning of the Internet, [https://en.wikipedia.org/wiki/Cyber_Intelligence_Sharing_and_Protection_Act CISPA], has been drafted. This bill allows Big Brother monitoring of every citizen not only by government but also by private agencies. If you are a US citizen, review the implications of this bill and write to your congressperson about the unnecessarily broad and intrusive nature of this bill. Hopefully your representative has more than a 6th-grade education (if you live in Michigan you may be out of luck).&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;/div&gt;</description>
			<pubDate>Mon, 22 Apr 2013 14:51:22 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Public_Service_Announcement</comments>		</item>
		<item>
			<title>Template:Public Service Announcement</title>
			<link>http://easylinux.info/wiki/Template:Public_Service_Announcement</link>
			<description>&lt;p&gt;Perspectoff:&amp;#32;/* Public Service Announcement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Public Service Announcement ==&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* Support [http://en.wikipedia.org/wiki/Earth_Day Earth Day] on 22 April 2013 and do your part to reduce energy consumption (and CO2 emissions) and help reduce the rate of global warming. Perhaps consider a low-power computer, such as those from [http://aleutia.com/products Aleutia] or [http://www.fit-pc.com Fit-PC]. Maybe browse a news website dedicated to energy efficiency, such as [http://www.environmentalleader.com/category/smart-grid/ Enviornmental Leader]... Don't forget to plant some trees. &lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;br /&gt;
* In the United States, two legislative bills, [https://en.wikipedia.org/wiki/Stop_Online_Piracy_Act SOPA] and [https://en.wikipedia.org/wiki/PROTECT_IP_Act PIPA], were defeated after close examination and widespread public outcry against them. In response, a new legislative bill with even more ominous consequences to the usage and functioning of the Internet, [https://en.wikipedia.org/wiki/Cyber_Intelligence_Sharing_and_Protection_Act CISPA], has been drafted. This bill allows Big Brother monitoring of every citizen not only by government but also by private agencies. If you are a US citizen, review the implications of this bill and write to your congressperson about the unnecessarily broad and intrusive nature of this bill. Hopefully your representative has more than a 6th-grade education (if you live in Michigan you may be out of luck).&lt;br /&gt;
&amp;lt;center&amp;gt;------------&amp;lt;/center&amp;gt;&lt;/div&gt;</description>
			<pubDate>Mon, 22 Apr 2013 14:50:40 GMT</pubDate>			<dc:creator>Perspectoff</dc:creator>			<comments>http://easylinux.info/wiki/Template_talk:Public_Service_Announcement</comments>		</item>
	</channel>
</rss>