<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.linuxquestions.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Peter+Mortensen</id>
	<title>LQWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.linuxquestions.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Peter+Mortensen"/>
	<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/wiki/Special:Contributions/Peter_Mortensen"/>
	<updated>2026-04-13T14:31:04Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.0</generator>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=User:Peter_Mortensen&amp;diff=59480</id>
		<title>User:Peter Mortensen</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=User:Peter_Mortensen&amp;diff=59480"/>
		<updated>2012-07-09T20:36:43Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: /* Profile */ Added credentials.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Profile==&lt;br /&gt;
&lt;br /&gt;
Profile: See my [http://en.wikipedia.org/wiki/User:Mortense Wikipedia user page].&lt;br /&gt;
&lt;br /&gt;
Credentials: [http://toolserver.org/%7Etparis/pcount/index.php?name=Mortense&amp;amp;lang=en&amp;amp;wiki=wikipedia edit statistics on Wikipedia], more than 5000.&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=CamCorder&amp;diff=59304</id>
		<title>CamCorder</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=CamCorder&amp;diff=59304"/>
		<updated>2011-12-20T17:04:31Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved CamCorder to Camcorder over redirect: Spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Camcorder]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Camcorder&amp;diff=59303</id>
		<title>Camcorder</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Camcorder&amp;diff=59303"/>
		<updated>2011-12-20T17:04:31Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved CamCorder to Camcorder over redirect: Spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To use your camcorder with [[Linux]], you first need to know which medium to use for transferring your videos from the camcorder to your computer.&lt;br /&gt;
&lt;br /&gt;
* Some camcorders record their [[video]]s on [[DVD|DVDs]]. When you put the DVD into your computer, you can play it with [[mplayer]].&lt;br /&gt;
* Some camcorders record their videos on SD-cards. You can easily transfer your SD-card's content using an [[USB Card Readers|USB card reader]].&lt;br /&gt;
* Some camcorders record their videos on tapes and allow you to connect via [[IEEE 1394|FireWire]] to the camcorder and transfer the videos using [[applications]] like [[kino]] and dvgrab. The outcome will be .dv files that you can watch with mplayer and convert with [[ffmpeg]] or [[mencoder]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Hardware]]&lt;br /&gt;
[[Category:Tips]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Camcorder&amp;diff=59302</id>
		<title>Camcorder</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Camcorder&amp;diff=59302"/>
		<updated>2011-12-20T17:03:14Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: Eliminated a redirect.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To use your camcorder with [[Linux]], you first need to know which medium to use for transferring your videos from the camcorder to your computer.&lt;br /&gt;
&lt;br /&gt;
* Some camcorders record their [[video]]s on [[DVD|DVDs]]. When you put the DVD into your computer, you can play it with [[mplayer]].&lt;br /&gt;
* Some camcorders record their videos on SD-cards. You can easily transfer your SD-card's content using an [[USB Card Readers|USB card reader]].&lt;br /&gt;
* Some camcorders record their videos on tapes and allow you to connect via [[IEEE 1394|FireWire]] to the camcorder and transfer the videos using [[applications]] like [[kino]] and dvgrab. The outcome will be .dv files that you can watch with mplayer and convert with [[ffmpeg]] or [[mencoder]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Hardware]]&lt;br /&gt;
[[Category:Tips]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Camcorder&amp;diff=59301</id>
		<title>Camcorder</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Camcorder&amp;diff=59301"/>
		<updated>2011-12-20T17:02:02Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: Removed links after first use. Copy edited (also eliminated some redirects in the process)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To use your camcorder with [[Linux]], you first need to know which medium to use for transferring your videos from the camcorder to your computer.&lt;br /&gt;
&lt;br /&gt;
* Some camcorders record their [[video]]s on [[DVD|DVDs]]. When you put the DVD into your computer, you can play it with [[mplayer]].&lt;br /&gt;
* Some camcorders record their videos on SD-cards. You can easily transfer your SD-card's content using an [[USB Card Readers|USB card reader]].&lt;br /&gt;
* Some camcorders record their videos on tapes and allow you to connect via [[FireWire]] to the camcorder and transfer the videos using [[applications]] like [[kino]] and dvgrab. The outcome will be .dv files that you can watch with mplayer and convert with [[ffmpeg]] or [[mencoder]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Hardware]]&lt;br /&gt;
[[Category:Tips]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Digital_camera&amp;diff=59300</id>
		<title>Digital camera</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Digital_camera&amp;diff=59300"/>
		<updated>2011-12-18T11:23:41Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: Copy edited.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Digital cameras''' allow you to make photographs and short video clips to be stored electronically on either internal memory, or removable media such as [http://en.wikipedia.org/wiki/Secure_digital SD cards].&lt;br /&gt;
&lt;br /&gt;
Most '''digital cameras''' connect to a computer system via [[FireWire]] or [[USB]], allowing quick + easy transfering of photos onto the home computer for further editing. Graphic software such as The [http://www.gimp.org/ GIMP] and digikam allows easy photo editing, including the ability to create slide-shows of your photos.&lt;br /&gt;
&lt;br /&gt;
== How to use with Linux ==&lt;br /&gt;
You must know that there are two types of [[digital camera]]s: One acts like a [[usb-storage]] when you connect the camera to the computer, and the other ([http://en.wikipedia.org/wiki/Picture_Transfer_Protocol PTP]) needs a special, camera-specific software to get the images from the camera. Mostly, you can set your camera to act as PTP device or as mass storage.&lt;br /&gt;
&lt;br /&gt;
== Get the pictures ==&lt;br /&gt;
You can take the memory card out of your camera and read it using a [[USB Card Readers|USB card reader]]. If you do not want that, it depends on your camera type what you can do to get the pictures.&lt;br /&gt;
&lt;br /&gt;
=== PTP cameras ===&lt;br /&gt;
* Connect to your Linux computer&lt;br /&gt;
* start [[gphoto2]]&lt;br /&gt;
 gphoto2 --get-all-files&lt;br /&gt;
&lt;br /&gt;
=== Mass storage cameras ===&lt;br /&gt;
* Connect your camera to your [[Linux]] computer&lt;br /&gt;
* Find out which [[device]] has been attached&lt;br /&gt;
 [[dmesg]]&lt;br /&gt;
: In this example, we assume the device has been /dev/sda1&lt;br /&gt;
* [[Mount]] this device&lt;br /&gt;
 [[mount]] /dev/sda1 /mnt/sda1&lt;br /&gt;
* Find your photos and movies on /mnt/sda1&lt;br /&gt;
&lt;br /&gt;
== Manage your photos ==&lt;br /&gt;
;Problem: &lt;br /&gt;
You have more pictures than your camera can store. You want to have all pictures in one folder and when you delete a picture on the camera or in the folder, you want an information and a possibility to propagate these changes. You want to manage your photos.&lt;br /&gt;
;Solution:&lt;br /&gt;
To manage my photos, [[User:ThorstenStaerk|I]] have a [[folder]] on my [[hard disk]] called '''cam'''. I keep it synchronized with my camera's SD card. Here is how you can do this as well:&lt;br /&gt;
&lt;br /&gt;
Take the SD card from your camera and put it into a [[USB Card Readers|usb flash reader]] and connect it to your computer. Find out the [[block device]] mapped to the SD card:&lt;br /&gt;
 tweedleburg:~ # hwinfo --block --short&lt;br /&gt;
 disk:                                                           &lt;br /&gt;
   /dev/sda             SAMSUNG HD103UJ&lt;br /&gt;
   /dev/sdb             WDC WD3200AAKS-7&lt;br /&gt;
   '''/dev/sdc          Generic USB SD Reader'''&lt;br /&gt;
   /dev/sdd             Generic USB CF Reader&lt;br /&gt;
   /dev/sde             Generic USB SM Reader&lt;br /&gt;
   /dev/sdf             Generic USB MS Reader&lt;br /&gt;
 partition:&lt;br /&gt;
   /dev/sda1            Partition&lt;br /&gt;
   /dev/sdb1            Partition&lt;br /&gt;
   /dev/sdb2            Partition&lt;br /&gt;
   '''/dev/sdc1         Partition'''&lt;br /&gt;
 cdrom:&lt;br /&gt;
   /dev/sr0             HL-DT-ST DVD-ROM GDRH20N&lt;br /&gt;
   /dev/sr1             TSSTcorp DVD+-RW TS-H653B&lt;br /&gt;
In this case, the block device is ''/dev/sdc'' and the [[partitiOn]] is ''/dev/sdc1''. Mount it:&lt;br /&gt;
 [[mkdir]] -p /mnt/sdc1&lt;br /&gt;
 [[mount]] /dev/sdc1 /mnt/sdc1&lt;br /&gt;
And synchronize it with the cam-folder. If necessary, create it:&lt;br /&gt;
 mkdir cam&lt;br /&gt;
 [[unison]] /mnt/sdc1 cam&lt;br /&gt;
Now the program unison presents me a nice overview which files (pictures) have been added, deleted and modified in which folder. I can decide if I want to copy files and in which direction.&lt;br /&gt;
&lt;br /&gt;
== Choosing a digital camera ==&lt;br /&gt;
* does it have a menu structure that you understand?&lt;br /&gt;
* what resolution has it (MegaPixel)?&lt;br /&gt;
* can you use SD cards (many computers have slots for them)?&lt;br /&gt;
* is it capable to use [http://en.wikipedia.org/wiki/SDHC#SDHC SDHC] cards?&lt;br /&gt;
* can you charge it using a standard adapter ([http://en.wikipedia.org/wiki/Micro_usb#Mini_and_Micro micro USB])?&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[digikam]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Usb-storage&amp;diff=59299</id>
		<title>Usb-storage</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Usb-storage&amp;diff=59299"/>
		<updated>2011-12-18T11:18:39Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: Emphasised the name of the driver.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[usb]]-[[storage]] is a [[Linux]] [[device driver]] for USB [[hard drive]]s, memory sticks and similar.&lt;br /&gt;
&lt;br /&gt;
Here is a quick overview of how ''usb-storage'' fits into the Linux picture. Suppose that you plug a USB memory stick into your computer. What happens?&lt;br /&gt;
&lt;br /&gt;
The first thing is that the memory stick is a USB device, and all USB devices use a common set of protocols for communicating, these being low-speed, full speed and hi-speed.  There is correspondingly a single Linux device driver that handles communication for all USB devices.&lt;br /&gt;
&lt;br /&gt;
The interface this driver offers the rest of the system to the USB pen is via the filesystem:  The pen will appear as a node at /proc/bus/usb/001/001 - the numbers will vary. You can have fun verifying this by having a look in that directory. Plug in a usb-pen and a new file will appear. Unplug it and it will disappear.  A description of all attached USB devices is given in the file /proc/bus/usb/devices. Again this is dynamically updated so you can have fun seeing how it changes as  you plug in or remove devices.  The list of USB devices can also be obtained by running &amp;quot;lsusb&amp;quot; at the command line.&lt;br /&gt;
&lt;br /&gt;
Next, different USB devices do different things... wow, a USB keyboard and a USB memory stick need different software at some stage!  To keep things simple, USB devices fall into categories and this has the advantage that only one device driver is needed to handle all devices in some category. This is a slight fib.  Some devices fall under several categories.  Cameras, for instance, can commonly be read either as a mass storage device, just as if they were USB sticks, or as Pict-bridges which is a mode specific to editing still images. However that just leaves us spoilt for choice of how to communicate with the device. Let's suppose that we classify the pen drive as a USB mass storage device.&lt;br /&gt;
&lt;br /&gt;
This is where the driver ''usb-storage'' comes in. The joy of classes is that we need only one driver to handle all USB storage devices. You don't need a different driver for a memory stick, a hard drive and a camera. The &amp;quot;USB mass storage&amp;quot; class defines standard ways of reading and writing to a USB device and the USB widget manufacturers need to implement these standards in their devices. At the computer end, the USB storage driver understands the standard language. The driver takes the USB device represented by /proc/bus/usb/001/002 or whatever and makes it appear as a hard drive, usually at /dev/sda, and it's partitions are at /dev/sda0, /dev/sda1 and so on.&lt;br /&gt;
&lt;br /&gt;
Then filesystems can be put on the partitions and the filesystems mounted, just as for any other hard drive.&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
&lt;br /&gt;
* [[USB]]&lt;br /&gt;
* [[USB Flash drive]]&lt;br /&gt;
* [[Booting from USB]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Usb-storage&amp;diff=59298</id>
		<title>Usb-storage</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Usb-storage&amp;diff=59298"/>
		<updated>2011-12-18T11:16:25Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: Copy edited.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[usb]]-[[storage]] is a [[Linux]] [[device driver]] for USB [[hard drive]]s, memory sticks and similar.&lt;br /&gt;
&lt;br /&gt;
Here is a quick overview of how usb-storage fits into the Linux picture.  Suppose that you plug a USB memory stick into your computer.  What happens?&lt;br /&gt;
&lt;br /&gt;
The first thing is that the memory stick is a USB device, and all USB devices use a common set of protocols for communicating, these being low-speed, full speed and hi-speed.  There is correspondingly a single Linux device driver that handles communication for all USB devices.&lt;br /&gt;
&lt;br /&gt;
The interface this driver offers the rest of the system to the USB pen is via the filesystem:  The pen will appear as a node at /proc/bus/usb/001/001 - the numbers will vary.  You can have fun verifying this by having a look in that directory.  Plug in a usb-pen and a new file will appear.  Unplug it and it will disappear.  A description of all attached USB devices is given in the file /proc/bus/usb/devices.  Again this is dynamically updated so you can have fun seeing how it changes as  you plug in or remove devices.  The list of USB devices can also be obtained by running &amp;quot;lsusb&amp;quot; at the command line.&lt;br /&gt;
&lt;br /&gt;
Next, different USB devices do different things... wow, a USB keyboard and a USB memory stick need different software at some stage!  To keep things simple, USB devices fall into categories and this has the advantage that only one device driver is needed to handle all devices in some category.  This is a slight fib.  Some devices fall under several categories.  Cameras, for instance, can commonly be read either as a mass storage device, just as if they were USB sticks, or as Pict-bridges which is a mode specific to editing still images.  However that just leaves us spoilt for choice of how to communicate with the device.  Let's suppose that we classify the pen drive as a USB mass storage device.&lt;br /&gt;
&lt;br /&gt;
This is where the driver ''usb-storage'' comes in.  The joy of classes is that we need only one driver to handle all USB storage devices.  You don't need a different driver for a memory stick, a hard drive and a camera.  The &amp;quot;USB mass storage&amp;quot; class defines standard ways of reading and writing to a USB device and the USB widget manufacturers need to implement these standards in their devices.  At the computer end, the USB storage driver understands the standard language. The driver takes the USB device represented by /proc/bus/usb/001/002 or whatever and makes it appear as a hard drive, usually at /dev/sda, and it's partitions are at /dev/sda0, /dev/sda1 and so on.&lt;br /&gt;
&lt;br /&gt;
Then filesystems can be put on the partitions and the filesystems mounted, just as for any other hard drive.&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
&lt;br /&gt;
* [[USB]]&lt;br /&gt;
* [[USB Flash drive]]&lt;br /&gt;
* [[Booting from USB]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Surf_the_web&amp;diff=59296</id>
		<title>Surf the web</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Surf_the_web&amp;diff=59296"/>
		<updated>2011-12-11T09:22:16Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: Copy edited.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are numerous [[web browser]]s already included with almost every [[Linux]] [[distribution]]. &lt;br /&gt;
&lt;br /&gt;
* [[Konqueror]] - on [[KDE]]&lt;br /&gt;
* [http://galeon.sourceforge.net/ Galeon] - on [http://en.wikipedia.org/wiki/GNOME GNOME] only&lt;br /&gt;
* [[Mozilla]] - platform-independent; includes more than just a browser&lt;br /&gt;
* [[Firefox]] - based on Mozilla; only a browser&lt;br /&gt;
* [[Opera]] - commercial offering (has to be downloaded separately)&lt;br /&gt;
* [[Lynx]] - text-interface&lt;br /&gt;
&lt;br /&gt;
You may wish to perform some of the following tasks before using your web browser, or when you are first using your web browser:&lt;br /&gt;
* Check the cookie settings&lt;br /&gt;
** In general, it is safe to allow all cookies as session cookies only.&lt;br /&gt;
* Enable popup blocking, if it is supported.&lt;br /&gt;
* Install popular plugins for your browser.&lt;br /&gt;
&lt;br /&gt;
Some popular plugins include:&lt;br /&gt;
* [http://www.macromedia.com/shockwave/download/alternates/ Shockwave/Flash] - install manually&lt;br /&gt;
* [http://fredrik.hubbe.net/plugger.html Plugger] - usually included as a package in Linux distributions&lt;br /&gt;
* [http://java.sun.com Java] - install manually&lt;br /&gt;
* [http://www.openquicktime.org/ Quicktime] - for experts only&lt;br /&gt;
* [http://mplayerplug-in.sf.net/ MPlayerPlug-In] - requires MPlayer, which supports a wide variety of file formats. Only available for Konqueror, Mozilla, and Firefox.&lt;br /&gt;
Additionally, if you are using Mozilla or Firefox, visit Mozilla's [http://extensionroom.mozdev.org/ Extension Room] for useful add-ons such as soft scrolling and mouse gesture navigation.&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Backup&amp;diff=59289</id>
		<title>Backup</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Backup&amp;diff=59289"/>
		<updated>2011-12-10T15:03:05Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: Copy edited [3].&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Backup'''s are part of a sane recovery scheme that should help recover lost data. They can be thought of anything that is done to [[archive]] important system and user data.&lt;br /&gt;
&lt;br /&gt;
= Backup strategies =&lt;br /&gt;
&lt;br /&gt;
== For home users ==&lt;br /&gt;
Keep a folder with [[file]]s that you want to keep secure. You need to copy it to another disk so the data survives when one disk fails. Best, have your archive folder on your hard disk and copy it to at least one [[USB]] disk. Now you need software to synchronize this folder on the two disks. A good choice is [[UnisOn]]. It allows you to sync bidirectionally, and it compares the files' content rather than their change date. This allows you to identify corrupted files.&lt;br /&gt;
&lt;br /&gt;
= How to do it =&lt;br /&gt;
== Backup your home directory ==&lt;br /&gt;
&lt;br /&gt;
From the command line, type:&lt;br /&gt;
&lt;br /&gt;
 [[tar]] -cvzf myhomebackup.tar.gz ~&lt;br /&gt;
&lt;br /&gt;
~ stands for your home [[directory]]. &lt;br /&gt;
The ''z'' option [[pack]]s your file in [[gzip]] format.&lt;br /&gt;
&lt;br /&gt;
Then copy myhomebackup.tar.gz onto some other medium: [[CD]], [[DVD]], removable drive, etc.&lt;br /&gt;
&lt;br /&gt;
'''Hint:''' Using [[tar]] with the --newer option will allow you to save only [[file]]s that have changed since your last backup. This is known as ''incremental backup'', compare [[rsync]].&lt;br /&gt;
&lt;br /&gt;
== Backup your computer ==&lt;br /&gt;
&lt;br /&gt;
To [[backup]] your computer including all system configuration and [[kernel modules]], but excluding everything that is mounted (e.g. [[/proc]]) use&lt;br /&gt;
 [[tar]] -cvlf slash.tar.gz /&lt;br /&gt;
The '''l''' option says &amp;quot;local [[filesystem]]s only&amp;quot;. You need it because you do not want to backup /proc.&lt;br /&gt;
&lt;br /&gt;
To store a backup of your computer on another computer in the network, use&lt;br /&gt;
 tar -cv -f- $(ls -1 | grep -Ev &amp;quot;proc|sys|tmp|media|mnt&amp;quot;) | ssh root@''target'' &amp;quot;cat &amp;gt;/root/slash.tar&amp;quot;&lt;br /&gt;
This stores a backup of your computer, but not /proc, /sys, /tmp, /media and /mnt on the computer ''target'' in /root/slash.tar.&lt;br /&gt;
&lt;br /&gt;
== Backup and synchronise several computers ==&lt;br /&gt;
&lt;br /&gt;
If you have several computers (maybe because you have several flats), you can upkeep an eternal archive on [[USB]] disk that you can transport. For data security, you synchronize your USB disk with your computers then. Let's say the USB disk is [[mount]]ed on /mnt/sda1, and your archive is in /root/archive. You create your archive with&lt;br /&gt;
 [[rsync]] -e [[ssh]] -avz /root/archive /mnt/sda1&lt;br /&gt;
You can then show the differences between your archive on a USB disk and on your computer with&lt;br /&gt;
 rsync -e ssh -avz --delete --dry-run /mnt/sda1/archive /root/archive&lt;br /&gt;
And you can update your computer's archive from a USB disk using&lt;br /&gt;
 rsync -e ssh -avz /mnt/sda1/archive /root/archive&lt;br /&gt;
You can add the --delete option behind -avz to delete all content on the target that is not on the source.&lt;br /&gt;
&lt;br /&gt;
== Backup MySQL ==&lt;br /&gt;
See [[MySQL Backup Procedure]].&lt;br /&gt;
&lt;br /&gt;
= Backup utilities =&lt;br /&gt;
See [[list of backup applications]].&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
* [[Clone your computer]]&lt;br /&gt;
* [[rsync]]&lt;br /&gt;
* [[List of backup applications]]&lt;br /&gt;
* [http://www.debianhelp.co.uk/backup.htm Step By Step Backup Tutorials] with all different types of backup applications.&lt;br /&gt;
&lt;br /&gt;
[[Category:Concept]]&lt;br /&gt;
[[Category:Application]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Backup&amp;diff=59288</id>
		<title>Backup</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Backup&amp;diff=59288"/>
		<updated>2011-12-10T12:06:59Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: /* Backup your home directory */ Copy edited [2].&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Backup'''s are part of a sane recovery scheme that should help recover lost data. They can be thought of anything that is done to [[archive]] important system and user data.&lt;br /&gt;
&lt;br /&gt;
= Backup strategies =&lt;br /&gt;
&lt;br /&gt;
== For home users ==&lt;br /&gt;
Keep a folder with [[file]]s that you want to keep secure. You need to copy it to another disk so the data survives when one disk fails. Best, have your archive folder on your hard disk and copy it to at least one [[USB]] disk. Now you need software to synchronize this folder on the two disks. A good choice is [[UnisOn]]. It allows you to sync bidirectionally, and it compares the files' content rather than their change date. This allows you to identify corrupted files.&lt;br /&gt;
&lt;br /&gt;
= How to do it =&lt;br /&gt;
== Backup your home directory ==&lt;br /&gt;
&lt;br /&gt;
From the command line, type:&lt;br /&gt;
&lt;br /&gt;
 [[tar]] -cvzf myhomebackup.tar.gz ~&lt;br /&gt;
&lt;br /&gt;
~ stands for your home [[directory]]. &lt;br /&gt;
The ''z'' option [[pack]]s your file in [[gzip]] format.&lt;br /&gt;
&lt;br /&gt;
Then copy myhomebackup.tar.gz onto some other medium: [[CD]], [[DVD]], removable drive, etc.&lt;br /&gt;
&lt;br /&gt;
'''Hint:''' Using [[tar]] with the --newer option will allow you to save only [[file]]s that have changed since your last backup. This is known as ''incremental backup'', compare [[rsync]].&lt;br /&gt;
&lt;br /&gt;
== Backup your computer ==&lt;br /&gt;
&lt;br /&gt;
To [[backup]] your computer including all system configuration and [[kernel modules]], but excluding everything that is mounted (e.g. [[/proc]]) use&lt;br /&gt;
 [[tar]] -cvlf slash.tar.gz /&lt;br /&gt;
The '''l''' option says &amp;quot;local [[filesystem]]s only&amp;quot;. You need it because you do not want to backup /proc.&lt;br /&gt;
&lt;br /&gt;
To store a backup of your computer on another computer in the network, use&lt;br /&gt;
 tar -cv -f- $(ls -1 | grep -Ev &amp;quot;proc|sys|tmp|media|mnt&amp;quot;) | ssh root@''target'' &amp;quot;cat &amp;gt;/root/slash.tar&amp;quot;&lt;br /&gt;
This stores a backup of your computer, but not /proc, /sys, /tmp, /media and /mnt on the computer ''target'' in /root/slash.tar.&lt;br /&gt;
&lt;br /&gt;
== Backup/Sync several computers ==&lt;br /&gt;
&lt;br /&gt;
If you have several computers (maybe because you have several flats), you can upkeep an eternal archive on [[USB]] disk that you can transport. For data security, you synchronize your USB disk with your computers then. Let's say the USB disk is [[mount]]ed on /mnt/sda1 and your archive is in /root/archive. You create your archive with&lt;br /&gt;
 [[rsync]] -e [[ssh]] -avz /root/archive /mnt/sda1&lt;br /&gt;
You can then show the differences between your archive on USB disk and on your computer with&lt;br /&gt;
 rsync -e ssh -avz --delete --dry-run /mnt/sda1/archive /root/archive&lt;br /&gt;
And you can update your computer's archive from USB disk using&lt;br /&gt;
 rsync -e ssh -avz /mnt/sda1/archive /root/archive&lt;br /&gt;
You can add the --delete option behind -avz to delete all content on the target that is not on the source.&lt;br /&gt;
&lt;br /&gt;
== Backup MySQL ==&lt;br /&gt;
See [[MySQL Backup Procedure]].&lt;br /&gt;
&lt;br /&gt;
= Backup utilities =&lt;br /&gt;
See [[list of backup applications]].&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
* [[Clone your computer]]&lt;br /&gt;
* [[rsync]]&lt;br /&gt;
* [[list of backup applications]]&lt;br /&gt;
* [http://www.debianhelp.co.uk/backup.htm Step By Step Backup Tutorials] with all different types of backup applications.&lt;br /&gt;
&lt;br /&gt;
[[Category:Concept]]&lt;br /&gt;
[[Category:Application]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Backup&amp;diff=59287</id>
		<title>Backup</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Backup&amp;diff=59287"/>
		<updated>2011-12-10T12:06:02Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: /* Backup your home directory */ Copy edited.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Backup'''s are part of a sane recovery scheme that should help recover lost data. They can be thought of anything that is done to [[archive]] important system and user data.&lt;br /&gt;
&lt;br /&gt;
= Backup strategies =&lt;br /&gt;
&lt;br /&gt;
== For home users ==&lt;br /&gt;
Keep a folder with [[file]]s that you want to keep secure. You need to copy it to another disk so the data survives when one disk fails. Best, have your archive folder on your hard disk and copy it to at least one [[USB]] disk. Now you need software to synchronize this folder on the two disks. A good choice is [[UnisOn]]. It allows you to sync bidirectionally, and it compares the files' content rather than their change date. This allows you to identify corrupted files.&lt;br /&gt;
&lt;br /&gt;
= How to do it =&lt;br /&gt;
== Backup your home directory ==&lt;br /&gt;
&lt;br /&gt;
From the command line, type:&lt;br /&gt;
&lt;br /&gt;
 [[tar]] -cvzf myhomebackup.tar.gz ~&lt;br /&gt;
&lt;br /&gt;
~ stands for your home [[directory]]. &lt;br /&gt;
The ''z'' option [[pack]]s your file in [[gzip]] format.&lt;br /&gt;
&lt;br /&gt;
Then copy myhomebackup.tar.gz onto some other medium: [[CD]], [[DVD]], removable drive etc.&lt;br /&gt;
&lt;br /&gt;
'''Hint:''' Using [[tar]] with the --newer option will allow you to save only [[file]]s that have changed since your last backup. This is known as ''incremental backup'', compare [[rsync]].&lt;br /&gt;
&lt;br /&gt;
== Backup your computer ==&lt;br /&gt;
&lt;br /&gt;
To [[backup]] your computer including all system configuration and [[kernel modules]], but excluding everything that is mounted (e.g. [[/proc]]) use&lt;br /&gt;
 [[tar]] -cvlf slash.tar.gz /&lt;br /&gt;
The '''l''' option says &amp;quot;local [[filesystem]]s only&amp;quot;. You need it because you do not want to backup /proc.&lt;br /&gt;
&lt;br /&gt;
To store a backup of your computer on another computer in the network, use&lt;br /&gt;
 tar -cv -f- $(ls -1 | grep -Ev &amp;quot;proc|sys|tmp|media|mnt&amp;quot;) | ssh root@''target'' &amp;quot;cat &amp;gt;/root/slash.tar&amp;quot;&lt;br /&gt;
This stores a backup of your computer, but not /proc, /sys, /tmp, /media and /mnt on the computer ''target'' in /root/slash.tar.&lt;br /&gt;
&lt;br /&gt;
== Backup/Sync several computers ==&lt;br /&gt;
&lt;br /&gt;
If you have several computers (maybe because you have several flats), you can upkeep an eternal archive on [[USB]] disk that you can transport. For data security, you synchronize your USB disk with your computers then. Let's say the USB disk is [[mount]]ed on /mnt/sda1 and your archive is in /root/archive. You create your archive with&lt;br /&gt;
 [[rsync]] -e [[ssh]] -avz /root/archive /mnt/sda1&lt;br /&gt;
You can then show the differences between your archive on USB disk and on your computer with&lt;br /&gt;
 rsync -e ssh -avz --delete --dry-run /mnt/sda1/archive /root/archive&lt;br /&gt;
And you can update your computer's archive from USB disk using&lt;br /&gt;
 rsync -e ssh -avz /mnt/sda1/archive /root/archive&lt;br /&gt;
You can add the --delete option behind -avz to delete all content on the target that is not on the source.&lt;br /&gt;
&lt;br /&gt;
== Backup MySQL ==&lt;br /&gt;
See [[MySQL Backup Procedure]].&lt;br /&gt;
&lt;br /&gt;
= Backup utilities =&lt;br /&gt;
See [[list of backup applications]].&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
* [[Clone your computer]]&lt;br /&gt;
* [[rsync]]&lt;br /&gt;
* [[list of backup applications]]&lt;br /&gt;
* [http://www.debianhelp.co.uk/backup.htm Step By Step Backup Tutorials] with all different types of backup applications.&lt;br /&gt;
&lt;br /&gt;
[[Category:Concept]]&lt;br /&gt;
[[Category:Application]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=IEEE_1394&amp;diff=59286</id>
		<title>IEEE 1394</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=IEEE_1394&amp;diff=59286"/>
		<updated>2011-12-09T23:13:03Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: Spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For an encyclopedia article about FireWire, see [http://en.wikipedia.org/wiki/FireWire the Wikipedia article].&lt;br /&gt;
&lt;br /&gt;
= Using FireWire =&lt;br /&gt;
&lt;br /&gt;
Using FireWire under Linux is described in the following articles:&lt;br /&gt;
&lt;br /&gt;
* [[Camcorder]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Multimedia&amp;diff=59285</id>
		<title>Multimedia</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Multimedia&amp;diff=59285"/>
		<updated>2011-12-09T23:12:26Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: /* Video */ Eliminated a redirect.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article describes how you can listen to music and watch movies on your Linux computer.&lt;br /&gt;
&lt;br /&gt;
= Sound =&lt;br /&gt;
* to play any kind of music [[file]], use [[mplayer]]&lt;br /&gt;
* to play a [[CD]], start [[kaffeine]] and click on &amp;quot;Play Audio CD&amp;quot;&lt;br /&gt;
* to record sound, use an [[audio editor]] like [[krecord]] or [[audacity]]&lt;br /&gt;
* CD ripping and encoding can be done easily with tools such as [[grip]] or [[cdparanoia]]. KDE users can [[Rip and Encode Audio CDs from the File Manager and other Frontends]]&lt;br /&gt;
* you can [[listen to webradio]]&lt;br /&gt;
&lt;br /&gt;
= Video =&lt;br /&gt;
* to watch any movie [[file]], use a [[video player]] like [[mplayer]]&lt;br /&gt;
: mplayer will automatically contain all [[codecs]] you need if you install it as described at [[mplayer]].&lt;br /&gt;
* to watch any DVD (including DVDs with a menu) use [[VLC media player]]&lt;br /&gt;
* to get a [[video]] from your [[camcorder]] onto your computer via [[IEEE 1394|FireWire]], use [[kino]]&lt;br /&gt;
* to get a [[video]] from your mobile phone, use [[Bluetooth]]&lt;br /&gt;
* [[Watch TV using a Hauppage WinTV PVR USB2]]&lt;br /&gt;
&lt;br /&gt;
* The links below describe how to use&lt;br /&gt;
** [[webcam]]s&lt;br /&gt;
** [[digital camera]]s&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
* [[areas]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Multimedia&amp;diff=59284</id>
		<title>Multimedia</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Multimedia&amp;diff=59284"/>
		<updated>2011-12-09T23:11:48Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: /* Video */ Spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article describes how you can listen to music and watch movies on your Linux computer.&lt;br /&gt;
&lt;br /&gt;
= Sound =&lt;br /&gt;
* to play any kind of music [[file]], use [[mplayer]]&lt;br /&gt;
* to play a [[CD]], start [[kaffeine]] and click on &amp;quot;Play Audio CD&amp;quot;&lt;br /&gt;
* to record sound, use an [[audio editor]] like [[krecord]] or [[audacity]]&lt;br /&gt;
* CD ripping and encoding can be done easily with tools such as [[grip]] or [[cdparanoia]]. KDE users can [[Rip and Encode Audio CDs from the File Manager and other Frontends]]&lt;br /&gt;
* you can [[listen to webradio]]&lt;br /&gt;
&lt;br /&gt;
= Video =&lt;br /&gt;
* to watch any movie [[file]], use a [[video player]] like [[mplayer]]&lt;br /&gt;
: mplayer will automatically contain all [[codecs]] you need if you install it as described at [[mplayer]].&lt;br /&gt;
* to watch any DVD (including DVDs with a menu) use [[VLC media player]]&lt;br /&gt;
* to get a [[video]] from your [[camcorder]] onto your computer via [[FireWire]], use [[kino]]&lt;br /&gt;
* to get a [[video]] from your mobile phone, use [[Bluetooth]]&lt;br /&gt;
* [[Watch TV using a Hauppage WinTV PVR USB2]]&lt;br /&gt;
&lt;br /&gt;
* The links below describe how to use&lt;br /&gt;
** [[webcam]]s&lt;br /&gt;
** [[digital camera]]s&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
* [[areas]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=VLC_media_player&amp;diff=59283</id>
		<title>VLC media player</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=VLC_media_player&amp;diff=59283"/>
		<updated>2011-12-09T23:09:10Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: Removed a self-link. Used the full name of the player. Copy edited.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''VLC media player''' (initially VideoLAN client) is a highly portable multimedia player for various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, [[mp3]], [[ogg]], ...) as well as [[DVD]]s, VCDs, and various streaming protocols. It can also be used as a server to stream in unicast or multicast in [[IPv4]] or [[IPv6]] on a high-bandwidth network. VLC media player supports all [[GNU/Linux]] flavours, all [http://en.wikipedia.org/wiki/BSD BSD] flavours, [[Windows]], [[Mac OS X]], BeOS, [[Solaris]], QNX.&lt;br /&gt;
&lt;br /&gt;
= Install it =&lt;br /&gt;
Install VLC media player as described at [[installing software]], however, for SUSE, there is an easier way to install it.&lt;br /&gt;
&lt;br /&gt;
== With SUSE ==&lt;br /&gt;
To [[install]] VLC media player with the [[SUSE]] [[Linux]] [[distribution]], go to http://www.videolan.org/vlc/download-suse.html and follow the steps to do a 1-Click install of VLC media player.&lt;br /&gt;
&lt;br /&gt;
= Use it =&lt;br /&gt;
To use VLC media player, [[open a console]] as root and type&lt;br /&gt;
 chmod 777 /dev/sr0&lt;br /&gt;
 chmod 777 /dev/sr1&lt;br /&gt;
&lt;br /&gt;
Then open a console as non-root and start VLC media player with the [[command]]&lt;br /&gt;
&lt;br /&gt;
 vlc&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Video player]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
* [http://www.videolan.org/vlc/index.html VLC homepage]&lt;br /&gt;
* [http://www.videolan.org/vlc/screenshots.html VLC screenshots]&lt;br /&gt;
&lt;br /&gt;
[[Category:Video]]&lt;br /&gt;
[[Category:Application]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=VLC&amp;diff=59282</id>
		<title>VLC</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=VLC&amp;diff=59282"/>
		<updated>2011-12-09T23:06:48Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved VLC to VLC media player:&amp;amp;#32;Using the full name. See &amp;lt;http://en.wikipedia.org/wiki/VLC_media_player&amp;gt;.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[VLC media player]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=VLC_media_player&amp;diff=59281</id>
		<title>VLC media player</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=VLC_media_player&amp;diff=59281"/>
		<updated>2011-12-09T23:06:48Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved VLC to VLC media player:&amp;amp;#32;Using the full name. See &amp;lt;http://en.wikipedia.org/wiki/VLC_media_player&amp;gt;.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''VLC''' (initially VideoLAN client) is a highly portable multimedia player for various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, [[mp3]], [[ogg]], ...) as well as [[DVD]]s, VCDs, and various streaming protocols. It can also be used as a server to stream in unicast or multicast in [[IPv4]] or [[IPv6]] on a high-bandwidth network. VLC supports all [[GNU/Linux]] flavours, all [http://en.wikipedia.org/wiki/BSD BSD] flavours, [[Windows]], [[Mac OS X]], BeOS, [[Solaris]], QNX.&lt;br /&gt;
&lt;br /&gt;
= Install it =&lt;br /&gt;
Install [[VLC]] as described at [[installing Software]], however, for SUSE, there is an easier way to install it.&lt;br /&gt;
&lt;br /&gt;
== with SUSE ==&lt;br /&gt;
To [[install]] [[VLC]] with the [[SUSE]] [[Linux]] [[distribution]], go to http://www.videolan.org/vlc/download-suse.html and follow the steps to do a 1-Click Install of [[VLC]].&lt;br /&gt;
&lt;br /&gt;
= use it =&lt;br /&gt;
To use vlc, [[open a console]] as root and type&lt;br /&gt;
 chmod 777 /dev/sr0&lt;br /&gt;
 chmod 777 /dev/sr1&lt;br /&gt;
Then open a console as non-root and start vlc with the [[command]]&lt;br /&gt;
 vlc&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Video player]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
* [http://www.videolan.org/vlc/index.html VLC homepage]&lt;br /&gt;
* [http://www.videolan.org/vlc/screenshots.html VLC screenshots]&lt;br /&gt;
&lt;br /&gt;
[[Category:Video]]&lt;br /&gt;
[[Category:Application]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Set_up_an_Apache_web_server_with_SUSE_Linux&amp;diff=59280</id>
		<title>Set up an Apache web server with SUSE Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Set_up_an_Apache_web_server_with_SUSE_Linux&amp;diff=59280"/>
		<updated>2011-12-04T11:05:02Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: Spelling/case, as on the referenced page.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article describes how to set up a web server for [[SUSE]] [[Linux]]. We choose [[Apache]] as [[server]] [[software]].&lt;br /&gt;
&lt;br /&gt;
* [[open a console]]&lt;br /&gt;
* enter&lt;br /&gt;
 [[yast]] -i [[apache]]2&lt;br /&gt;
&lt;br /&gt;
= Start the server =&lt;br /&gt;
To start the server, enter&lt;br /&gt;
 /etc/init.d/apache2 start&lt;br /&gt;
&lt;br /&gt;
= Access the server =&lt;br /&gt;
To access the server, point your [[browser]] to http://127.0.0.1.&lt;br /&gt;
&lt;br /&gt;
[[Category:SuSE]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Set_up_an_apache_web_server_with_SUSE_Linux&amp;diff=59279</id>
		<title>Set up an apache web server with SUSE Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Set_up_an_apache_web_server_with_SUSE_Linux&amp;diff=59279"/>
		<updated>2011-12-04T11:03:48Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved Set up an apache web server with SUSE Linux to Set up an Apache web server with SUSE Linux:&amp;amp;#32;Spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Set up an Apache web server with SUSE Linux]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Set_up_an_Apache_web_server_with_SUSE_Linux&amp;diff=59278</id>
		<title>Set up an Apache web server with SUSE Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Set_up_an_Apache_web_server_with_SUSE_Linux&amp;diff=59278"/>
		<updated>2011-12-04T11:03:48Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved Set up an apache web server with SUSE Linux to Set up an Apache web server with SUSE Linux:&amp;amp;#32;Spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article describes how to set up a web server for [[SUSE]] [[Linux]]. We choose [[apache]] as [[server]] [[software]].&lt;br /&gt;
&lt;br /&gt;
* [[open a console]]&lt;br /&gt;
* enter&lt;br /&gt;
 [[yast]] -i [[apache]]2&lt;br /&gt;
&lt;br /&gt;
= Start the server =&lt;br /&gt;
To start the server, enter&lt;br /&gt;
 /etc/init.d/apache2 start&lt;br /&gt;
&lt;br /&gt;
= Access the server =&lt;br /&gt;
To access the server, point your [[browser]] to http://127.0.0.1.&lt;br /&gt;
&lt;br /&gt;
[[Category:SuSE]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Distribution_specific_tips_and_tricks&amp;diff=59277</id>
		<title>Distribution specific tips and tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Distribution_specific_tips_and_tricks&amp;diff=59277"/>
		<updated>2011-12-04T11:00:35Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: Copy edited.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Each [[Linux]] [[distribution]] will have some [[common tasks]] that are done differently than the way the standard application [[documentation]] says to do it. This page collects links to pages of distribution specific tips.&lt;br /&gt;
&lt;br /&gt;
== For Gentoo ==&lt;br /&gt;
* [[Gentoo tips &amp;amp; tricks]]&lt;br /&gt;
* [[PostgreSQL on Gentoo]]&lt;br /&gt;
&lt;br /&gt;
== For Fedora ==&lt;br /&gt;
* [[Fedora tips &amp;amp; tricks]]&lt;br /&gt;
&lt;br /&gt;
== For Mandriva (Mandrake) ==&lt;br /&gt;
&lt;br /&gt;
* [[Mandrake GUI filesharing]]&lt;br /&gt;
* [[URPMI#The_Easy_Way]], access to non-free or testing programs&lt;br /&gt;
* [[Upgrade 2007.0 to 2007.1]]&lt;br /&gt;
* [[Which Mandriva &amp;quot;.iso&amp;quot; should I download?]]&lt;br /&gt;
&lt;br /&gt;
== For SUSE ==&lt;br /&gt;
* [[SUSE tips &amp;amp; tricks]]&lt;br /&gt;
* [[:Category:SuSE]]&lt;br /&gt;
&lt;br /&gt;
=== For SUSE 11 ===&lt;br /&gt;
* [[SUSE 11 tips &amp;amp; tricks]]&lt;br /&gt;
&lt;br /&gt;
=== For SUSE 10 ===&lt;br /&gt;
* [[SUSE 10.3 tips &amp;amp; tricks]]&lt;br /&gt;
* [[SUSE 10.1 tips &amp;amp; tricks]]&lt;br /&gt;
* [[SUSE 10.0 tips &amp;amp; tricks]]&lt;br /&gt;
&lt;br /&gt;
=== For SUSE 9 ===&lt;br /&gt;
* [[SUSE 9.3 tips &amp;amp; tricks]]&lt;br /&gt;
* [[SUSE 9.2 tips &amp;amp; tricks]]&lt;br /&gt;
&lt;br /&gt;
== For Ubuntu ==&lt;br /&gt;
* [[Ubuntu tips &amp;amp; tricks]]&lt;br /&gt;
* [[Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tips]]&lt;br /&gt;
[[Category: Mandriva]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=SUSE_10.0_tips_%26_tricks&amp;diff=59276</id>
		<title>SUSE 10.0 tips &amp; tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=SUSE_10.0_tips_%26_tricks&amp;diff=59276"/>
		<updated>2011-12-04T10:58:58Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: Copy edited.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SuSE 10 tips:&lt;br /&gt;
[[Installing JDK 5.0, Tomcat 5.5, and Ant on SUSE 10.0]]&lt;br /&gt;
&lt;br /&gt;
=Sound=&lt;br /&gt;
If your [[sound]] does not work, do the following:&lt;br /&gt;
* start [[yast2]]&lt;br /&gt;
* delete your sound card config&lt;br /&gt;
* exit yast2&lt;br /&gt;
* start yast2 again&lt;br /&gt;
* add your soundcards again&lt;br /&gt;
&lt;br /&gt;
The important step is to exit yast2. For more information see https://bugzilla.novell.com/show_bug.cgi?id=116483&lt;br /&gt;
&lt;br /&gt;
= Keyboard =&lt;br /&gt;
If you want to use a German Dvorak keyboard layout, you have to change /etc/X11/xkb/symbols/de, the &amp;quot;dvorak&amp;quot; section must contain &lt;br /&gt;
 include &amp;quot;level3(ralt_switch)&amp;quot;&lt;br /&gt;
as discussed at [https://bugs.freedesktop.org/show_bug.cgi?id=2681].&lt;br /&gt;
&lt;br /&gt;
== With keyboard switcher ==&lt;br /&gt;
If you are using the [[KDE]] keyboard switcher, you have to make sure it draws the new settings. First, try if your layout works as you expect it by issuing&lt;br /&gt;
 setxkbmap -model pc105 -layout de -variant dvorak&lt;br /&gt;
then, start kcontrol -&amp;gt; Regional &amp;amp; [[Accessibility]] -&amp;gt; keyboard layout. Install the &amp;quot;basic&amp;quot; variant, click on &amp;quot;apply&amp;quot;. Then, chose the &amp;quot;dvorak&amp;quot; variant and click on apply again. Test that your keyboard layout works as you expect it.&lt;br /&gt;
&lt;br /&gt;
[[Category:SuSE]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Installing_JDK_5.0,_Tomcat_5.5,_and_Ant_on_SUSE_10.0&amp;diff=59275</id>
		<title>Installing JDK 5.0, Tomcat 5.5, and Ant on SUSE 10.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Installing_JDK_5.0,_Tomcat_5.5,_and_Ant_on_SUSE_10.0&amp;diff=59275"/>
		<updated>2011-12-04T10:52:09Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: /* Installing Sun JDK 5.0, Eclipse WTP, Apache Tomcat 5.5, and ANT 1.6.x on Novell SUSE 10 */ More copy editing.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Installing Sun JDK 5.0, Eclipse WTP, Apache Tomcat 5.5, and Ant 1.6.x on Novell SUSE 10 =&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Like many of you reading this, I am a professional Java developer, skilled in using Windows, but looking to move to Linux.&lt;br /&gt;
&lt;br /&gt;
==Steps Involved:==&lt;br /&gt;
#Install JDK&lt;br /&gt;
##Download and install JDK RPM from Sun&lt;br /&gt;
##Log in as root&lt;br /&gt;
##Execute the shell script to unpack binary RPM:  &amp;lt;tt&amp;gt;./jdk-1_5_0_06-linux-i586.rpm.bin&amp;lt;/tt&amp;gt;&lt;br /&gt;
##Now you have an RPM you can install. You can either click on it in Konqueror or execute the following command. &amp;lt;tt&amp;gt;rpm -ivh jdk-1_5_0_06-linux-i586.rpm&amp;lt;/tt&amp;gt;&lt;br /&gt;
#Download Other Software.&lt;br /&gt;
##Download Tomcat from the Apache website.&lt;br /&gt;
##Download the Tomcat Admin web application from the same site.&lt;br /&gt;
##Download Ant from Apache website.&lt;br /&gt;
##Download Eclipse WTP all in one bundle&lt;br /&gt;
#Unpack Software. I unpack Ant, Tomcat, and Eclipse into '/usr/java', where Sun unzips the JDK.&lt;br /&gt;
#:&amp;lt;tt&amp;gt;chmod 777 /usr/java -R&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;unzip apache-tomcat-5.5.15.zip -d /usr/java&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;unzip apache-tomcat-5.5.15-admin.zip -d /usr/java&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;unzip apache-ant-1.6.5-bin.zip  -d /usr/java&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:Eclipse - enter these commands in sequence (is there a way to do this with one command?)&lt;br /&gt;
#:&amp;lt;tt&amp;gt;tar xfv wtp-all-in-one-sdk-1.0-linux-gtk.tar.gz&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;mv eclipse /usr/java/eclipse&amp;lt;/tt&amp;gt;&lt;br /&gt;
#Set Environment Variables. I like to edit /etc/bash.bashrc.local to set these.&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export JAVA_HOME=/usr/java/jdk1.5.0_06&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export JRE_HOME=$JAVA_HOME/jre&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export CATALINA_HOME=/usr/java/apache-tomcat-5.5.17&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export ANT_HOME=/usr/java/apache-ant-1.6.5&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export ECLIPSE_HOME=/usr/java/eclipse&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export PATH=$JAVA_HOME/bin:$PATH:$ANT_HOME/bin:$ECLIPSE_HOME/&amp;lt;/tt&amp;gt;&lt;br /&gt;
#Test everything by typing the following commands in a new terminal:&lt;br /&gt;
##ant&lt;br /&gt;
##javac -version&lt;br /&gt;
##eclipse&lt;br /&gt;
#Setup Tomcat for WTP use:&lt;br /&gt;
##Edit tomcat-users.xml. Add a username in the manager and administrator role.&lt;br /&gt;
##Run:&lt;br /&gt;
##:&amp;lt;tt&amp;gt;cd $CATALINA_HOME/bin/&amp;lt;/tt&amp;gt;&lt;br /&gt;
##:&amp;lt;tt&amp;gt;./startup.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
##Log into http://localhost:8080/manager/html to confirm there are no startup errors.&lt;br /&gt;
&lt;br /&gt;
==Addendum:  MySQL==&lt;br /&gt;
Although MySQL 4.x ships with SUSE Linux 10.0, I had an error with my installation. With that, I realized that maybe my strategy of letting the distribution handle everything is not in my best interest. I installed the RPMs for SUSE Linux Enterprise System 9 and installed them without issue. I installed them in the following order:  &lt;br /&gt;
#server&lt;br /&gt;
#client&lt;br /&gt;
#headers and libraries&lt;br /&gt;
#shared libraries.&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
[[Category:Programming]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Installing_JDK_5.0,_Tomcat_5.5,_and_ANT_on_SUSE_10.0&amp;diff=59274</id>
		<title>Installing JDK 5.0, Tomcat 5.5, and ANT on SUSE 10.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Installing_JDK_5.0,_Tomcat_5.5,_and_ANT_on_SUSE_10.0&amp;diff=59274"/>
		<updated>2011-12-04T10:50:07Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved Installing JDK 5.0, Tomcat 5.5, and ANT on SUSE 10.0 to Installing JDK 5.0, Tomcat 5.5, and Ant on SUSE 10.0:&amp;amp;#32;Spelling, as in &amp;lt;http://en.wikipedia.org/wiki/Apache_Ant&amp;gt;.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Installing JDK 5.0, Tomcat 5.5, and Ant on SUSE 10.0]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Installing_JDK_5.0,_Tomcat_5.5,_and_Ant_on_SUSE_10.0&amp;diff=59273</id>
		<title>Installing JDK 5.0, Tomcat 5.5, and Ant on SUSE 10.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Installing_JDK_5.0,_Tomcat_5.5,_and_Ant_on_SUSE_10.0&amp;diff=59273"/>
		<updated>2011-12-04T10:50:07Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved Installing JDK 5.0, Tomcat 5.5, and ANT on SUSE 10.0 to Installing JDK 5.0, Tomcat 5.5, and Ant on SUSE 10.0:&amp;amp;#32;Spelling, as in &amp;lt;http://en.wikipedia.org/wiki/Apache_Ant&amp;gt;.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Installing Sun JDK 5.0, Eclipse WTP, Apache Tomcat 5.5, and ANT 1.6.x on Novell SUSE 10 =&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Like many of you reading this, I am a professional Java developer, skilled in using Windows, but looking to move to Linux.&lt;br /&gt;
&lt;br /&gt;
==Steps Involved:==&lt;br /&gt;
#Install JDK&lt;br /&gt;
##Download and install JDK RPM from Sun&lt;br /&gt;
##Log in as root&lt;br /&gt;
##Execute the shell script to unpack binary RPM:  &amp;lt;tt&amp;gt;./jdk-1_5_0_06-linux-i586.rpm.bin&amp;lt;/tt&amp;gt;&lt;br /&gt;
##Now you have an RPM you can install. You can either click on it in Konqueror or execute the following command. &amp;lt;tt&amp;gt;rpm -ivh jdk-1_5_0_06-linux-i586.rpm&amp;lt;/tt&amp;gt;&lt;br /&gt;
#Download Other Software.&lt;br /&gt;
##Download Tomcat from the Apache website.&lt;br /&gt;
##Download the Tomcat Admin web application from the same site.&lt;br /&gt;
##Download Ant from Apache website.&lt;br /&gt;
##Download Eclipse WTP all in one bundle&lt;br /&gt;
#Unpack Software. I unpack Ant, Tomcat, and Eclipse into '/usr/java', where Sun unzips the JDK.&lt;br /&gt;
#:&amp;lt;tt&amp;gt;chmod 777 /usr/java -R&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;unzip apache-tomcat-5.5.15.zip -d /usr/java&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;unzip apache-tomcat-5.5.15-admin.zip -d /usr/java&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;unzip apache-ant-1.6.5-bin.zip  -d /usr/java&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:Eclipse - enter these commands in sequence (is there a way to do this with one command?)&lt;br /&gt;
#:&amp;lt;tt&amp;gt;tar xfv wtp-all-in-one-sdk-1.0-linux-gtk.tar.gz&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;mv eclipse /usr/java/eclipse&amp;lt;/tt&amp;gt;&lt;br /&gt;
#Set Environment Variables.  I like to edit /etc/bash.bashrc.local to set these.&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export JAVA_HOME=/usr/java/jdk1.5.0_06&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export JRE_HOME=$JAVA_HOME/jre&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export CATALINA_HOME=/usr/java/apache-tomcat-5.5.17&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export ANT_HOME=/usr/java/apache-ant-1.6.5&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export ECLIPSE_HOME=/usr/java/eclipse&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export PATH=$JAVA_HOME/bin:$PATH:$ANT_HOME/bin:$ECLIPSE_HOME/&amp;lt;/tt&amp;gt;&lt;br /&gt;
#Test everything by typing the following commands in a new terminal:&lt;br /&gt;
##ant&lt;br /&gt;
##javac -version&lt;br /&gt;
##eclipse&lt;br /&gt;
#Setup Tomcat for WTP use:&lt;br /&gt;
##Edit tomcat-users.xml. Add a username in the manager and administrator role.&lt;br /&gt;
##Run:&lt;br /&gt;
##:&amp;lt;tt&amp;gt;cd $CATALINA_HOME/bin/&amp;lt;/tt&amp;gt;&lt;br /&gt;
##:&amp;lt;tt&amp;gt;./startup.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
##Log into http://localhost:8080/manager/html to confirm there are no startup errors.&lt;br /&gt;
&lt;br /&gt;
==Addendum:  MySQL==&lt;br /&gt;
Although MySQL 4.x ships with SUSE Linux 10.0, I had an error with my installation. With that, I realized that maybe my strategy of letting the distribution handle everything is not in my best interest. I installed the RPMs for SUSE Linux Enterprise System 9 and installed them without issue. I installed them in the following order:  &lt;br /&gt;
#server&lt;br /&gt;
#client&lt;br /&gt;
#headers and libraries&lt;br /&gt;
#shared libraries.&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
[[Category:Programming]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Installing_JDK_5.0,_Tomcat_5.5,_and_Ant_on_SUSE_10.0&amp;diff=59272</id>
		<title>Installing JDK 5.0, Tomcat 5.5, and Ant on SUSE 10.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Installing_JDK_5.0,_Tomcat_5.5,_and_Ant_on_SUSE_10.0&amp;diff=59272"/>
		<updated>2011-12-04T10:49:02Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: Copy edited. Removed meta information (about the author). For version 9 and 10 it is &amp;quot;SUSE&amp;quot; (see &amp;lt;http://en.wikipedia.org/wiki/SUSE_Linux_distributions#Versions&amp;gt;).&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Installing Sun JDK 5.0, Eclipse WTP, Apache Tomcat 5.5, and ANT 1.6.x on Novell SUSE 10 =&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Like many of you reading this, I am a professional Java developer, skilled in using Windows, but looking to move to Linux.&lt;br /&gt;
&lt;br /&gt;
==Steps Involved:==&lt;br /&gt;
#Install JDK&lt;br /&gt;
##Download and install JDK RPM from Sun&lt;br /&gt;
##Log in as root&lt;br /&gt;
##Execute the shell script to unpack binary RPM:  &amp;lt;tt&amp;gt;./jdk-1_5_0_06-linux-i586.rpm.bin&amp;lt;/tt&amp;gt;&lt;br /&gt;
##Now you have an RPM you can install. You can either click on it in Konqueror or execute the following command. &amp;lt;tt&amp;gt;rpm -ivh jdk-1_5_0_06-linux-i586.rpm&amp;lt;/tt&amp;gt;&lt;br /&gt;
#Download Other Software.&lt;br /&gt;
##Download Tomcat from the Apache website.&lt;br /&gt;
##Download the Tomcat Admin web application from the same site.&lt;br /&gt;
##Download Ant from Apache website.&lt;br /&gt;
##Download Eclipse WTP all in one bundle&lt;br /&gt;
#Unpack Software. I unpack Ant, Tomcat, and Eclipse into '/usr/java', where Sun unzips the JDK.&lt;br /&gt;
#:&amp;lt;tt&amp;gt;chmod 777 /usr/java -R&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;unzip apache-tomcat-5.5.15.zip -d /usr/java&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;unzip apache-tomcat-5.5.15-admin.zip -d /usr/java&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;unzip apache-ant-1.6.5-bin.zip  -d /usr/java&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:Eclipse - enter these commands in sequence (is there a way to do this with one command?)&lt;br /&gt;
#:&amp;lt;tt&amp;gt;tar xfv wtp-all-in-one-sdk-1.0-linux-gtk.tar.gz&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;mv eclipse /usr/java/eclipse&amp;lt;/tt&amp;gt;&lt;br /&gt;
#Set Environment Variables.  I like to edit /etc/bash.bashrc.local to set these.&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export JAVA_HOME=/usr/java/jdk1.5.0_06&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export JRE_HOME=$JAVA_HOME/jre&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export CATALINA_HOME=/usr/java/apache-tomcat-5.5.17&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export ANT_HOME=/usr/java/apache-ant-1.6.5&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export ECLIPSE_HOME=/usr/java/eclipse&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export PATH=$JAVA_HOME/bin:$PATH:$ANT_HOME/bin:$ECLIPSE_HOME/&amp;lt;/tt&amp;gt;&lt;br /&gt;
#Test everything by typing the following commands in a new terminal:&lt;br /&gt;
##ant&lt;br /&gt;
##javac -version&lt;br /&gt;
##eclipse&lt;br /&gt;
#Setup Tomcat for WTP use:&lt;br /&gt;
##Edit tomcat-users.xml. Add a username in the manager and administrator role.&lt;br /&gt;
##Run:&lt;br /&gt;
##:&amp;lt;tt&amp;gt;cd $CATALINA_HOME/bin/&amp;lt;/tt&amp;gt;&lt;br /&gt;
##:&amp;lt;tt&amp;gt;./startup.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
##Log into http://localhost:8080/manager/html to confirm there are no startup errors.&lt;br /&gt;
&lt;br /&gt;
==Addendum:  MySQL==&lt;br /&gt;
Although MySQL 4.x ships with SUSE Linux 10.0, I had an error with my installation. With that, I realized that maybe my strategy of letting the distribution handle everything is not in my best interest. I installed the RPMs for SUSE Linux Enterprise System 9 and installed them without issue. I installed them in the following order:  &lt;br /&gt;
#server&lt;br /&gt;
#client&lt;br /&gt;
#headers and libraries&lt;br /&gt;
#shared libraries.&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
[[Category:Programming]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Installing_JDK_5.0,_Tomcat_5.5,_and_ANT_on_SuSE_10.0&amp;diff=59271</id>
		<title>Installing JDK 5.0, Tomcat 5.5, and ANT on SuSE 10.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Installing_JDK_5.0,_Tomcat_5.5,_and_ANT_on_SuSE_10.0&amp;diff=59271"/>
		<updated>2011-12-04T10:43:22Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved Installing JDK 5.0, Tomcat 5.5, and ANT on SuSE 10.0 to Installing JDK 5.0, Tomcat 5.5, and ANT on SUSE 10.0:&amp;amp;#32;Spelling, using the more common name.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Installing JDK 5.0, Tomcat 5.5, and ANT on SUSE 10.0]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Installing_JDK_5.0,_Tomcat_5.5,_and_Ant_on_SUSE_10.0&amp;diff=59270</id>
		<title>Installing JDK 5.0, Tomcat 5.5, and Ant on SUSE 10.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Installing_JDK_5.0,_Tomcat_5.5,_and_Ant_on_SUSE_10.0&amp;diff=59270"/>
		<updated>2011-12-04T10:43:22Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved Installing JDK 5.0, Tomcat 5.5, and ANT on SuSE 10.0 to Installing JDK 5.0, Tomcat 5.5, and ANT on SUSE 10.0:&amp;amp;#32;Spelling, using the more common name.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Installing Sun JDK 5.0, Eclipse WTP, Apache Tomcat 5.5, and ANT 1.6.x on Novell SuSE 10 =&lt;br /&gt;
&lt;br /&gt;
==Intro:==&lt;br /&gt;
Like many of you reading this, I am a professional Java developer, skilled in using windows, but looking to move to linux.  Since I am a Java pro and not a *NIX guru, feel free to make edits or provide suggestions.&lt;br /&gt;
&lt;br /&gt;
==Steps Involved:==&lt;br /&gt;
#Install JDK&lt;br /&gt;
##Download and install JDK RPM from Sun&lt;br /&gt;
##log in as root&lt;br /&gt;
##execute shell script to unpack binary RPM:  &amp;lt;tt&amp;gt;./jdk-1_5_0_06-linux-i586.rpm.bin&amp;lt;/tt&amp;gt;&lt;br /&gt;
##now you have an RPM you can install.  You can either click on it in Konqueror or execute the following command: &amp;lt;tt&amp;gt;rpm -ivh jdk-1_5_0_06-linux-i586.rpm&amp;lt;/tt&amp;gt;&lt;br /&gt;
#Download Other Software.&lt;br /&gt;
##Download Tomcat from Apache website.&lt;br /&gt;
##Download Tomcat Admin webapp from same site.&lt;br /&gt;
##Download ANT from Apache website.&lt;br /&gt;
##Download eclipse WTP all in one bundle&lt;br /&gt;
#Unpack Software.  I unpack ant, tomcat, and eclipse into '/usr/java', where sun unzips the JDK.&lt;br /&gt;
#:&amp;lt;tt&amp;gt;chmod 777 /usr/java -R&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;unzip apache-tomcat-5.5.15.zip -d /usr/java&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;unzip apache-tomcat-5.5.15-admin.zip -d /usr/java&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;unzip apache-ant-1.6.5-bin.zip  -d /usr/java&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:eclipse - enter these commands in sequence (is there a way to do this with one command?)&lt;br /&gt;
#:&amp;lt;tt&amp;gt;tar xfv wtp-all-in-one-sdk-1.0-linux-gtk.tar.gz&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;mv eclipse /usr/java/eclipse&amp;lt;/tt&amp;gt;&lt;br /&gt;
#Set Environment Variables.  I like to edit /etc/bash.bashrc.local to set these.&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export JAVA_HOME=/usr/java/jdk1.5.0_06&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export JRE_HOME=$JAVA_HOME/jre&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export CATALINA_HOME=/usr/java/apache-tomcat-5.5.17&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export ANT_HOME=/usr/java/apache-ant-1.6.5&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export ECLIPSE_HOME=/usr/java/eclipse&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;export PATH=$JAVA_HOME/bin:$PATH:$ANT_HOME/bin:$ECLIPSE_HOME/&amp;lt;/tt&amp;gt;&lt;br /&gt;
#Test everything by typing the following commands in a new terminal:&lt;br /&gt;
##ant&lt;br /&gt;
##javac -version&lt;br /&gt;
##eclipse&lt;br /&gt;
#Setup tomcat for WTP use:&lt;br /&gt;
##Edit tomcat-users.xml.  Add a username in the manager and admin role.&lt;br /&gt;
##Run:&lt;br /&gt;
##:&amp;lt;tt&amp;gt;cd $CATALINA_HOME/bin/&amp;lt;/tt&amp;gt;&lt;br /&gt;
##:&amp;lt;tt&amp;gt;./startup.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
##Log into http://localhost:8080/manager/html to confirm there are no startup errors.&lt;br /&gt;
&lt;br /&gt;
==Addendum:  MySQL==&lt;br /&gt;
Although MySQL 4.x ships with SuSE Linux 10.0, I had an error with my installation.  With that, I realized that maybe my strategy of letting the distribution handle everything is not in my best interest.  I installed the RPMs for SuSE Linux Enterprise System 9 and installed them without issue.  I installed them in the following order:  &lt;br /&gt;
#server&lt;br /&gt;
#client&lt;br /&gt;
#headers and libraries&lt;br /&gt;
#shared libraries.&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
[[Category:Programming]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Suse_10.0_tips_%26_tricks&amp;diff=59269</id>
		<title>Suse 10.0 tips &amp; tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Suse_10.0_tips_%26_tricks&amp;diff=59269"/>
		<updated>2011-12-04T10:37:44Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved Suse 10.0 tips &amp;amp; tricks to SUSE 10.0 tips &amp;amp; tricks:&amp;amp;#32;Correct spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[SUSE 10.0 tips &amp;amp; tricks]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=SUSE_10.0_tips_%26_tricks&amp;diff=59268</id>
		<title>SUSE 10.0 tips &amp; tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=SUSE_10.0_tips_%26_tricks&amp;diff=59268"/>
		<updated>2011-12-04T10:37:44Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved Suse 10.0 tips &amp;amp; tricks to SUSE 10.0 tips &amp;amp; tricks:&amp;amp;#32;Correct spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SuSE 10 tips:&lt;br /&gt;
[[Installing JDK 5.0, Tomcat 5.5, and ANT on SuSE 10.0]]&lt;br /&gt;
&lt;br /&gt;
=Sound=&lt;br /&gt;
If your [[sound]] does not work, do the following:&lt;br /&gt;
* start [[yast2]]&lt;br /&gt;
* delete your sound card config&lt;br /&gt;
* exit yast2&lt;br /&gt;
* start yast2 again&lt;br /&gt;
* add your soundcards again&lt;br /&gt;
&lt;br /&gt;
The important step is to exit yast2. For more info see https://bugzilla.novell.com/show_bug.cgi?id=116483&lt;br /&gt;
&lt;br /&gt;
= Keyboard =&lt;br /&gt;
If you want to use a german dvorak keyboard layout, you have to change /etc/X11/xkb/symbols/de, the &amp;quot;dvorak&amp;quot; section must contain &lt;br /&gt;
 include &amp;quot;level3(ralt_switch)&amp;quot;&lt;br /&gt;
as discussed at https://bugs.freedesktop.org/show_bug.cgi?id=2681&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== With keyboard switcher ==&lt;br /&gt;
If you are using the [[KDE]] keyboard switcher, you have to make sure it draws the new settings. First, try if your layout works as you expect it by issueing&lt;br /&gt;
 setxkbmap -model pc105 -layout de -variant dvorak&lt;br /&gt;
then, start kcontrol-&amp;gt;Regional &amp;amp; [[Accessibility]]-&amp;gt;keyboard layout. Install the &amp;quot;basic&amp;quot; variant, click on &amp;quot;apply&amp;quot;. Then, chose the &amp;quot;dvorak&amp;quot; variant and click on apply again. Test that your keyboard layout works as you expect it.&lt;br /&gt;
&lt;br /&gt;
[[Category:SuSE]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Suse_10.1_tips_%26_tricks&amp;diff=59267</id>
		<title>Suse 10.1 tips &amp; tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Suse_10.1_tips_%26_tricks&amp;diff=59267"/>
		<updated>2011-12-04T10:37:22Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved Suse 10.1 tips &amp;amp; tricks to SUSE 10.1 tips &amp;amp; tricks:&amp;amp;#32;Correct spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[SUSE 10.1 tips &amp;amp; tricks]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=SUSE_10.1_tips_%26_tricks&amp;diff=59266</id>
		<title>SUSE 10.1 tips &amp; tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=SUSE_10.1_tips_%26_tricks&amp;diff=59266"/>
		<updated>2011-12-04T10:37:22Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved Suse 10.1 tips &amp;amp; tricks to SUSE 10.1 tips &amp;amp; tricks:&amp;amp;#32;Correct spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article discusses problems that you should be aware of when running [[SUSE]] [[Linux]] 10.1.&lt;br /&gt;
&lt;br /&gt;
= KDE update =&lt;br /&gt;
If you update [[KDE]] on your own, and [[sound]] does not work afterwards, check if your [[user]] is in the [[group]] [[audio]]:&lt;br /&gt;
 me@host:~&amp;gt; [[cat]] /etc/group | [[grep]] audio&lt;br /&gt;
 audio:x:17:me&lt;br /&gt;
&lt;br /&gt;
[[Category:SuSE]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Suse_10.3_tips_%26_tricks&amp;diff=59265</id>
		<title>Suse 10.3 tips &amp; tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Suse_10.3_tips_%26_tricks&amp;diff=59265"/>
		<updated>2011-12-04T10:37:00Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved Suse 10.3 tips &amp;amp; tricks to SUSE 10.3 tips &amp;amp; tricks:&amp;amp;#32;Correct spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[SUSE 10.3 tips &amp;amp; tricks]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=SUSE_10.3_tips_%26_tricks&amp;diff=59264</id>
		<title>SUSE 10.3 tips &amp; tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=SUSE_10.3_tips_%26_tricks&amp;diff=59264"/>
		<updated>2011-12-04T10:37:00Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved Suse 10.3 tips &amp;amp; tricks to SUSE 10.3 tips &amp;amp; tricks:&amp;amp;#32;Correct spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= CTRL_ALT_L does not work =&lt;br /&gt;
&lt;br /&gt;
If you press CTRL_ALT_L normally your screen gets locked. With SUSE 10.3, just use an icon for the locking [[command]]:&lt;br /&gt;
 [[dcop]] kdesktop KScreensaverIface lock&lt;br /&gt;
&lt;br /&gt;
[[Category:SuSE]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Suse_11_tips_%26_tricks&amp;diff=59263</id>
		<title>Suse 11 tips &amp; tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Suse_11_tips_%26_tricks&amp;diff=59263"/>
		<updated>2011-12-04T10:36:42Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved Suse 11 tips &amp;amp; tricks to SUSE 11 tips &amp;amp; tricks:&amp;amp;#32;Correct spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[SUSE 11 tips &amp;amp; tricks]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=SUSE_11_tips_%26_tricks&amp;diff=59262</id>
		<title>SUSE 11 tips &amp; tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=SUSE_11_tips_%26_tricks&amp;diff=59262"/>
		<updated>2011-12-04T10:36:42Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved Suse 11 tips &amp;amp; tricks to SUSE 11 tips &amp;amp; tricks:&amp;amp;#32;Correct spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Yast does not work =&lt;br /&gt;
If you get a message &amp;quot;Another process is accessing the package database&amp;quot; when starting yast2, the following command may be the solution:&lt;br /&gt;
 killall packagekitd&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=PostgreSQL_on_Gentoo&amp;diff=59261</id>
		<title>PostgreSQL on Gentoo</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=PostgreSQL_on_Gentoo&amp;diff=59261"/>
		<updated>2011-12-04T10:31:23Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: Copy edited.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Install =&lt;br /&gt;
&lt;br /&gt;
1. Standard emerge:&lt;br /&gt;
 [[emerge]] [[postgresql]]&lt;br /&gt;
&lt;br /&gt;
2. Ebuild configuration:&lt;br /&gt;
 ebuild /var/db/pkg/dev-db/postgresql.*.*.*/postgresql.*.*.*ebuild config&lt;br /&gt;
&lt;br /&gt;
[Be sure to change *.*.* to whatever version you just emerged]&lt;br /&gt;
&lt;br /&gt;
3. Start PostgreSQL:&lt;br /&gt;
 /etc/init.d/postgresql start&lt;br /&gt;
&lt;br /&gt;
The sample configuration files are in /usr/share/postgresql.&lt;br /&gt;
&lt;br /&gt;
Running the ebuild blabla configuration created the data directory&lt;br /&gt;
&lt;br /&gt;
 /var/lib/postgresql/data&lt;br /&gt;
&lt;br /&gt;
and the relevant [[configuration]] [[file]]s are in there.&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
* [[Distribution specific tips and tricks]]&lt;br /&gt;
* [[Gentoo]]&lt;br /&gt;
* [[PostgreSQL]]&lt;br /&gt;
&lt;br /&gt;
{{stub}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Database]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Talk:Postgresql_on_gentoo&amp;diff=59260</id>
		<title>Talk:Postgresql on gentoo</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Talk:Postgresql_on_gentoo&amp;diff=59260"/>
		<updated>2011-12-04T10:22:19Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved Talk:Postgresql on gentoo to Talk:PostgreSQL on Gentoo:&amp;amp;#32;Correct spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Talk:PostgreSQL on Gentoo]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Talk:PostgreSQL_on_Gentoo&amp;diff=59259</id>
		<title>Talk:PostgreSQL on Gentoo</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Talk:PostgreSQL_on_Gentoo&amp;diff=59259"/>
		<updated>2011-12-04T10:22:19Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved Talk:Postgresql on gentoo to Talk:PostgreSQL on Gentoo:&amp;amp;#32;Correct spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If there's going to be &amp;quot;distro-specific tips &amp;amp; tricks&amp;quot; shouldn't junk like this be under &amp;quot;Gentoo tips &amp;amp; tricks&amp;quot; rather than its own article? And if there are going to be articles like this, aren't generic &amp;quot;Gentoo tips &amp;amp; tricks&amp;quot; pages pointless? [[User:Digiot|Digiot]] 10:01, Apr 8, 2004 (EDT)&lt;br /&gt;
&lt;br /&gt;
I just expect this one to get long. I'll re-merge it if it turns out to be short. Thanks for asking!&lt;br /&gt;
[[User:AaronPeterson|AaronPeterson]] 10:20, Apr 8, 2004 (EDT)&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Postgresql_on_gentoo&amp;diff=59258</id>
		<title>Postgresql on gentoo</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Postgresql_on_gentoo&amp;diff=59258"/>
		<updated>2011-12-04T10:22:19Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved Postgresql on gentoo to PostgreSQL on Gentoo:&amp;amp;#32;Correct spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[PostgreSQL on Gentoo]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=PostgreSQL_on_Gentoo&amp;diff=59257</id>
		<title>PostgreSQL on Gentoo</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=PostgreSQL_on_Gentoo&amp;diff=59257"/>
		<updated>2011-12-04T10:22:19Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: moved Postgresql on gentoo to PostgreSQL on Gentoo:&amp;amp;#32;Correct spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Install =&lt;br /&gt;
1. Standard emerge:&lt;br /&gt;
 [[emerge]] [[postgresql]]&lt;br /&gt;
2. Ebuild config:&lt;br /&gt;
 ebuild /var/db/pkg/dev-db/postgresql.*.*.*/postgresql.*.*.*ebuild config&lt;br /&gt;
 [be sure to change *.*.* to whatever version you just emerged]&lt;br /&gt;
3. Start postgres:&lt;br /&gt;
 /etc/init.d/postgresql start&lt;br /&gt;
&lt;br /&gt;
In /usr/share/postgresql are the sample conf files.&lt;br /&gt;
&lt;br /&gt;
running ebuild blabla config created the data dir::&lt;br /&gt;
&lt;br /&gt;
 /var/lib/postgresql/data&lt;br /&gt;
&lt;br /&gt;
and the relevant [[configuration]] [[file]]s are there.&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
* [[Distro specific tips &amp;amp; tricks]]&lt;br /&gt;
* [[Gentoo]]&lt;br /&gt;
* [[PostgreSQL]]&lt;br /&gt;
&lt;br /&gt;
{{stub}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Database]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=User:Peter_Mortensen&amp;diff=59256</id>
		<title>User:Peter Mortensen</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=User:Peter_Mortensen&amp;diff=59256"/>
		<updated>2011-12-04T10:12:46Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: /* Profile */ Improved accuracy of the link text,&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Profile==&lt;br /&gt;
&lt;br /&gt;
Profile: see [http://en.wikipedia.org/wiki/User:Mortense my Wikipedia user page].&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=General_programming_tips&amp;diff=58903</id>
		<title>General programming tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=General_programming_tips&amp;diff=58903"/>
		<updated>2011-09-05T18:41:41Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: /* Available languages */ Copy edited.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Unix Philosophy ==&lt;br /&gt;
&lt;br /&gt;
If you are familiar with programming under different operating systems than Linux, you may notice subtle differences regarding the philosophy of the system. A good introductionary read is the free book by Eric S. Raymond, [http://www.catb.org/~esr/writings/taoup/ &amp;quot;The Art of Unix Programming&amp;quot;], particulary the chapter about the [http://www.catb.org/~esr/writings/taoup/html/ch01s06.html &amp;quot;Unix philosophy&amp;quot;].&lt;br /&gt;
&lt;br /&gt;
== Available languages ==&lt;br /&gt;
If you wonder about what languages you can expect to be already installed on a typical Linux installation, here is a short list:&lt;br /&gt;
&lt;br /&gt;
* [[C/C_plus_plus_tips|C]]: From Linux kernel to utilities, many of the binaries on a typical linux system are written in C. You can expect the C standard library on every [http://en.wikipedia.org/wiki/Posix POSIX] compliant system, and a C compiler on most of them.&lt;br /&gt;
&lt;br /&gt;
* [[C/C_plus_plus_tips|C++]]: Many of the larger open source projects are written in C++, and again you will find the standard library on virtually every system, and more often than not a compiler.&lt;br /&gt;
&lt;br /&gt;
* Objective-C: A clean, object-oriented extension of the C programming language, featuring dynamic typing. However, for some reason, Debian does not install the Objective-C machinery by default.&lt;br /&gt;
&lt;br /&gt;
* [[Java_tips|Java]]: There are many systems with the Java Runtime Enviroment installed, but low footprint server environments sometimes omit it.&lt;br /&gt;
&lt;br /&gt;
* [[Bash_tips|Shell]]: Every Linux system has a shell which you can write programs for, the famous shell scripts. Most popular are [[Bash]] and [[csh]], which understand a common syntax subset, but outside that subset sometimes differ greatly.&lt;br /&gt;
&lt;br /&gt;
* [[Perl_tips|Perl]]: If the typical shell script won't do, the most widespread scripting language used is Perl. It is widely deployed and used for many purposes.&lt;br /&gt;
&lt;br /&gt;
* [[Python|Python]]: Though not as common as Perl, most distributions install Python by default, some of them even rely on it for their base system.&lt;br /&gt;
&lt;br /&gt;
* Pascal: The programming language Pascal, popularized by Borland International as Turbo Pascal and later as Delphi, is available as their [http://en.wikipedia.org/wiki/Kylix_%28software%29 Kylix] GUI tool for X (and for Windows) and in a GNU-licensed (with source code to the compiler) alternative Pascal compiler, [http://www.free-pascal.org Free Pascal] for Linux, BSD and Windows.&lt;br /&gt;
&lt;br /&gt;
* [[Basic_tips|Basic]]: Many scorn Basic as a simple language, but the most recent developments of both compiled and interpreted releases provide significant capabilities and are powerful scripting languages as well. Several versions exist including [http://www.xbasic.org XBasic], [http://www.binara.com/gambas-wiki Gambas] and [http://scriptbasic.sourceforge.net ScriptBasic] and [[yabasic]].&lt;br /&gt;
&lt;br /&gt;
Of course it shouldn't be difficult to install development tools for your favourite language, and usually the user won't notice which language you wrote the software in, at least if it's compiled (and not interpreted).&lt;br /&gt;
&lt;br /&gt;
[[Category:Programming language]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=General_programming_tips&amp;diff=58902</id>
		<title>General programming tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=General_programming_tips&amp;diff=58902"/>
		<updated>2011-09-05T18:38:35Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: /* Unix Philosophy */ Copy edited.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Unix Philosophy ==&lt;br /&gt;
&lt;br /&gt;
If you are familiar with programming under different operating systems than Linux, you may notice subtle differences regarding the philosophy of the system. A good introductionary read is the free book by Eric S. Raymond, [http://www.catb.org/~esr/writings/taoup/ &amp;quot;The Art of Unix Programming&amp;quot;], particulary the chapter about the [http://www.catb.org/~esr/writings/taoup/html/ch01s06.html &amp;quot;Unix philosophy&amp;quot;].&lt;br /&gt;
&lt;br /&gt;
== Available languages ==&lt;br /&gt;
If you wonder about what languages you can expect to be already installed on a typical Linux installation, here is a short list:&lt;br /&gt;
&lt;br /&gt;
* [[C/C_plus_plus_tips|C]]: From linux kernel to utilities, many of the binaries on a typical linux system are written in C. You can expect the C standard library on every [http://en.wikipedia.org/wiki/Posix POSIX] compliant system, and a C compiler on most of them.&lt;br /&gt;
&lt;br /&gt;
* [[C/C_plus_plus_tips|C++]]: Many of the larger open source projects are written in C++, and again you will find the standard library on virtually every system, and more often than not a compiler.&lt;br /&gt;
&lt;br /&gt;
* Objective-C: A clean, object-oriented extension of the C programming language, featuring dynamic typing. However, for some reason, Debian does not install the Objective-C machinery default.&lt;br /&gt;
&lt;br /&gt;
* [[Java_tips|Java]]: There are many systems with the Java Runtime Enviroment installed, but low footprint server enviroments sometimes omit it.&lt;br /&gt;
&lt;br /&gt;
* [[Bash_tips|Shell]]: Every linux system has a shell which you can write programs for, the famous shell scripts. Most popular are [[bash]] and [[csh]], which understand a common syntax subset, but outside that subset sometimes differ greatly.&lt;br /&gt;
&lt;br /&gt;
* [[Perl_tips|Perl]]: If the typical shell script won't do, the most widespread scripting language used is perl. It is widely deployed and used for many purposes.&lt;br /&gt;
&lt;br /&gt;
* [[Python|Python]]: Though not as common as perl, most distributions install python by default, some of them even rely on it for their base system.&lt;br /&gt;
&lt;br /&gt;
* Pascal: The programming language Pascal, popularized by Borland International as Turbo Pascal and later as Delphi, is available as their [http://en.wikipedia.org/wiki/Kylix_%28software%29 Kylix] GUI tool for X (and for Windows) and in a GNU-Licensed (with Source Code to the Compiler) alternative Pascal Compiler, [http://www.free-pascal.org Free Pascal] for Linux, BSD and Windows.&lt;br /&gt;
&lt;br /&gt;
* [[Basic_tips|Basic]]: Many scorn Basic as a simple language, but the most recent developments of both compiled and interpreted releases provide significant capabilities and are powerful scripting languages as well.  Several versions exist including [http://www.xbasic.org XBasic], [http://www.binara.com/gambas-wiki Gambas] and [http://scriptbasic.sourceforge.net ScriptBasic] and [[yabasic]].&lt;br /&gt;
&lt;br /&gt;
Of course it shouldn't be difficult to install development tools for your favourite language, and usually the user won't notice which language you wrote the software in, at least if it's compiled (and not interpreted).&lt;br /&gt;
&lt;br /&gt;
[[Category:Programming language]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Vim&amp;diff=58900</id>
		<title>Vim</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Vim&amp;diff=58900"/>
		<updated>2011-08-29T19:02:04Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: /* ~/.vimrc */ Expansion.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Vim''' ('''Vi''' I'''M'''proved) is a contemporary version of the classic [[vi]] editor, with additional capabilites.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
All [[UNIX]] machines typically come with the [[vi]] [[text editor]]. However, vi lacks some more contemporary features (for example, syntax highlighting). This is where '''Vim''' comes in. If you know how to use vi, you'll find Vim to be the same except it has a number of useful features added to make editing easier. If you don't yet know how to use vi or Vim, and you didn't come from using [[ed]], you'll find the learning curve quite steep (which means, it might take you a while to learn to achieve maximum proficiency).&lt;br /&gt;
&lt;br /&gt;
Vim was originally written by (and is still primarily maintained by) Bram Moolenaar. It started as a personal desire to have a useful vi-clone for the Amiga, but eventually grew as more features were added. It now runs on a variety of platforms (including Unix work-a-likes, e.g. GNU/Linux, Mac OS X, and *BSD; Amiga; Windows; Mac &amp;quot;Classic&amp;quot;; and OS/2) and supports a variety of graphical toolkits (including GTK, QT, and Carbon) in addition to the command-line interface. VIM is also the latin word for &amp;quot;power&amp;quot; or &amp;quot;force&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Vim has a compatibility mode which produces an almost vi-compatible experience (the version of vi used seems to be one released with Sun OS 4.x, from Version 3.7 dated on 6/7/85). This is enabled by using the &amp;quot;:set compatible&amp;quot; ex-command or by running Vim with the -C option.&lt;br /&gt;
&lt;br /&gt;
== Tips ==&lt;br /&gt;
&lt;br /&gt;
=== Learning ===&lt;br /&gt;
To learn [[Vim]], [[open a console]] and call&lt;br /&gt;
 [http://linuxcommand.org/man_pages/vimtutor1.html vimtutor]&lt;br /&gt;
&lt;br /&gt;
==== A tutorial ====&lt;br /&gt;
While Vim is not as easy to learn initially as it is to learn nano, there are plenty advantages to using it. Some great features of Vim are copy, cut, and paste. Also there is code styling for programmers and there's also an undo/redo feature which is awesome.&lt;br /&gt;
&lt;br /&gt;
There are three modes for Vim (That I know of right now). There is the visual mode, insert mode, and the command mode. Before I start breaking down the different modes let me say this: every time you delete or copy text in the command or visual mode, the deleted text is loaded into a special buffer. This buffer continues to hold the text until you delete more text/characters/lines in which case the buffer will be replaced with the newly deleted text. I say that because the buffer is also used for copying and pasting. So if you copy text and then delete some text, the next time you paste you'll be pasting the last text you deleted instead of what you copied.&lt;br /&gt;
&lt;br /&gt;
When you first open a file with command vim myfile you start out in the command mode. If the file myfile exists then it will load myfile into the editor. If the file myfile does not exist then it will create a blank file with myfile as its save path which can be modified but myfile will not be created on your hard drive until you save the document.&lt;br /&gt;
&lt;br /&gt;
Pressing the i key will put the editor into insert mode. Go ahead and put the editor into insert mode and type some random text you can play with. In fact you should type a couple of lines.&lt;br /&gt;
&lt;br /&gt;
Pressing the Esc while in insert mode will take the editor out of insert mode and back into command mode. Now each letter on your keyboard has turned into a command which manipulates the document instead of keys which insert text into the document.&lt;br /&gt;
&lt;br /&gt;
Pressing the v key puts the editor into visual mode. Visual mode is used to highlight text in the document so you can apply different commands just to that text. If you accidentally go into visual mode or you've highlighted text and don't want to do anything to it then press the v key to go back into command mode.&lt;br /&gt;
&lt;br /&gt;
While in command mode, pressing the colon key (: ) opens the editors command line where you can type a command for the editor to manipulate the whole document and not just some text or a few lines. For example in the editors command line you can save the document, quit the document, quit without saving, undo change, and redo change to name a few. You can even combine commands to do them at the same time such as save and quit at the same time.&lt;br /&gt;
&lt;br /&gt;
That's most of the explanation behind it. Now remember the three modes: command, insert, and visual. Everything is centralized around the command mode. Also remember the editor command line which is accessed when in the command mode. Now that I've explained all that here is what happens when pressing different keys in the different modes.&lt;br /&gt;
&lt;br /&gt;
When in command mode press the colon (: ) to enter the editor command line. Here are different editor commands.&lt;br /&gt;
command - explanation&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
| :w&lt;br /&gt;
| write/save the document&lt;br /&gt;
|-&lt;br /&gt;
| :q&lt;br /&gt;
| quit Vim&lt;br /&gt;
|-&lt;br /&gt;
| :q!&lt;br /&gt;
| quit Vim without saving&lt;br /&gt;
|-&lt;br /&gt;
| :u&lt;br /&gt;
| undo&lt;br /&gt;
|-&lt;br /&gt;
| :r&lt;br /&gt;
| redo&lt;br /&gt;
|-&lt;br /&gt;
| :wq&lt;br /&gt;
| write/save the document and then quit Vim&lt;br /&gt;
|}&lt;br /&gt;
If you accidentally enter the editor command line pressing Esc twice will put you back into command mode.&lt;br /&gt;
&lt;br /&gt;
When you're in the command mode different keys have different functions. The commands are case sensitive.&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
| command&lt;br /&gt;
| explanation&lt;br /&gt;
|-&lt;br /&gt;
| h&lt;br /&gt;
| move cursor left&lt;br /&gt;
|-&lt;br /&gt;
| j&lt;br /&gt;
| move cursor down&lt;br /&gt;
|-&lt;br /&gt;
| k&lt;br /&gt;
| move cursor up&lt;br /&gt;
|-&lt;br /&gt;
| l&lt;br /&gt;
| move cursor right&lt;br /&gt;
|-&lt;br /&gt;
| w&lt;br /&gt;
| move the cursor right and down the document accross each word instead of each character.&lt;br /&gt;
|-&lt;br /&gt;
| ZZ&lt;br /&gt;
| same as :wq. write/save the document and then quit Vim. Double tap the z key while holding the shift key (double click).&lt;br /&gt;
|-&lt;br /&gt;
| dd&lt;br /&gt;
| cuts/deletes an entire line of text. Double tab the d key (double click).&lt;br /&gt;
|-&lt;br /&gt;
| dw&lt;br /&gt;
| cuts/deletes a words of text&lt;br /&gt;
|-&lt;br /&gt;
| yy&lt;br /&gt;
| copies an entire line of text. Double tap the y key (double click).&lt;br /&gt;
|-&lt;br /&gt;
| p&lt;br /&gt;
| paste text after: if copied entire line then it will paste text after the current line. if copied a few characters then paste them after the current character.&lt;br /&gt;
|-&lt;br /&gt;
| P&lt;br /&gt;
| same as p but pastes text before the current character/line.&lt;br /&gt;
|-&lt;br /&gt;
| i&lt;br /&gt;
| enters editor into insert mode&lt;br /&gt;
|-&lt;br /&gt;
| o&lt;br /&gt;
| inserts a new line after the current line and then places the editor into insert mode.&lt;br /&gt;
|-&lt;br /&gt;
| u&lt;br /&gt;
| Undo the last edit. Same as :u.&lt;br /&gt;
|-&lt;br /&gt;
| v&lt;br /&gt;
| enters the editor into visual mode.&lt;br /&gt;
|-&lt;br /&gt;
| r&lt;br /&gt;
| replace. When you push a key after pressing r the letter the cursor is currently located on is replaced with the key pressed. You are still in command mode.&lt;br /&gt;
|-&lt;br /&gt;
| R&lt;br /&gt;
| replace. puts the editor into insert mode however it overwrites replacing each character if one already exists.&lt;br /&gt;
|-&lt;br /&gt;
| x&lt;br /&gt;
| delete a character&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
When you're in insert mode every key on the keyboard types text into the document like a normal text editor. When you wish to leave insert mode press the Esc key.&lt;br /&gt;
&lt;br /&gt;
When you're in the visual mode you can highlight text and apply different commands to it. The commands are similar to command mode and are also case sensitive.&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
| command&lt;br /&gt;
| explanation&lt;br /&gt;
|-&lt;br /&gt;
| h&lt;br /&gt;
| move cursor left (highlighting text)&lt;br /&gt;
|-&lt;br /&gt;
| j&lt;br /&gt;
| move cursor down (highlighting text)&lt;br /&gt;
|-&lt;br /&gt;
| k&lt;br /&gt;
| move cursor up (highlighting text)&lt;br /&gt;
|-&lt;br /&gt;
| l&lt;br /&gt;
| move cursor right (highlighting text)&lt;br /&gt;
|-&lt;br /&gt;
| y&lt;br /&gt;
| copy the highlighted text and enter back into command mode&lt;br /&gt;
|-&lt;br /&gt;
| d&lt;br /&gt;
| cut/delete the hightlighted text and enter back into command mode&lt;br /&gt;
|-&lt;br /&gt;
| p&lt;br /&gt;
| paste the text from the buffer replacing the highlighted text.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The following command opens myfile and automatically goes to line 23.&lt;br /&gt;
 vim +23 myfile&lt;br /&gt;
&lt;br /&gt;
It's a bit of a task remembering all those commands. The best way to learn them is to try to use Vim regularly referring to those commands for the different modes. There's a lot more commands and tricks you can do in Vim. Those are just the basic ones.&lt;br /&gt;
&lt;br /&gt;
==== Interactive tutorial ====&lt;br /&gt;
If you installed Vim on your GNU/Linux machine then vimtutor was also installed. vimtutor is an interactive tutorial which can be run from the terminal.&lt;br /&gt;
 vimtutor&lt;br /&gt;
It's easy to learn that way.&lt;br /&gt;
&lt;br /&gt;
=== ~/.vimrc ===&lt;br /&gt;
To make a configuration file for Vim, create a file in your home directory called .vimrc, and fill it with stuff that you'd normally type into Vim's &amp;quot;ex&amp;quot; mode. For example, if you regularly do &amp;quot;:syntax on&amp;quot; from inside Vim, put &amp;quot;syntax on&amp;quot; (no colon or quotes) on a line by itself in your ~/.vimrc file.&lt;br /&gt;
&lt;br /&gt;
Here's the contents of a useful .vimrc file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
syntax on&lt;br /&gt;
set number&lt;br /&gt;
set expandtab&lt;br /&gt;
set tabstop=4&lt;br /&gt;
set shiftwidth=4&lt;br /&gt;
set autoindent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* &amp;quot;syntax on&amp;quot; turns on syntax highlighting&lt;br /&gt;
* &amp;quot;set number&amp;quot; turns on line numbers&lt;br /&gt;
* &amp;quot;set expandtab&amp;quot; makes Vim insert spaces (instead of tabs) whenever you hit the tab key&lt;br /&gt;
* &amp;quot;set tabstop=4&amp;quot; sets tabs to equal 4 spaces&lt;br /&gt;
* &amp;quot;set shiftwidth=4&amp;quot; makes it so when you use the text shifting command, it shifts over using 4-space indents.&lt;br /&gt;
* &amp;quot;set autoindent&amp;quot; has Vim use &amp;quot;smart indenting&amp;quot;, ie. when you are tabbed out to, say, the 8th column, and you type something then hit enter, the cursor is helpfully placed at the 8th column again for you.&lt;br /&gt;
&lt;br /&gt;
Additionally you can turn any single argument command off by adding an exclamation point (!). So &amp;quot;set number&amp;quot; can be turned off by &amp;quot;set number!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(You can shut off line numbering from command mode by typing &amp;lt;tt&amp;gt;:set nonumber&amp;lt;/tt&amp;gt;.)&lt;br /&gt;
&lt;br /&gt;
=== Syntax highlighting ===&lt;br /&gt;
&lt;br /&gt;
You can turn syntax highlighting on/off with:&lt;br /&gt;
 :syntax off&lt;br /&gt;
 :syntax on&lt;br /&gt;
&lt;br /&gt;
If you have syntax highlighting on, but are using a dark background and the colors don't show up well, you can use this command:&lt;br /&gt;
 :set background=dark&lt;br /&gt;
&lt;br /&gt;
= External links =&lt;br /&gt;
* [http://www.vim.org Vim Homepage]&lt;br /&gt;
* [http://vi-improved.org/wiki/index.php #vim wiki]&lt;br /&gt;
&lt;br /&gt;
[[Category:Editors]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Emacs&amp;diff=58899</id>
		<title>Emacs</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Emacs&amp;diff=58899"/>
		<updated>2011-08-29T19:00:15Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: Consistent spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Emacs'''; ('''E'''diting '''MAC'''ro'''S''') The non plus ultra of hacker editors, a programmable [[text editor]] with an entire [http://en.wikipedia.org/wiki/Lisp_(programming_language) LISP] system inside it. It was originally written by [http://en.wikipedia.org/wiki/Richard_stallman Richard Stallman] at the [http://en.wikipedia.org/wiki/MIT_AI_lab MIT AI lab]; AI Memo 554 described it as &amp;quot;an advanced, self-documenting, customizable, extensible real-time display editor&amp;quot;. It has since been reimplemented any number of times, by various hackers, and versions exist that run under most major operating systems. Perhaps the most widely used version, also written by Stallman and now called &amp;quot;[[GNU]] EMACS&amp;quot; or GNUMACS, runs principally under Unix. (Its close relative [http://en.wikipedia.org/wiki/Xemacs XEmacs] is the second most popular version.) It includes facilities to run compilation subprocesses and send and receive [[email]] or news; many hackers, before the time of [http://en.wikipedia.org/wiki/GUI GUIs], spent up to 80% of their tube time inside it. Other variants include GOSMACS, CCA EMACS, UniPress EMACS, Montgomery EMACS, jove, epsilon, and MicroEMACS. Some EMACS versions running under window managers iconify as an overflowing kitchen sink, perhaps to suggest the one feature the editor does not (yet) include.&lt;br /&gt;
&lt;br /&gt;
The latest stable release of GNU EMACS, 21.3, was released on March 24, 2003.&lt;br /&gt;
&lt;br /&gt;
=== Vi vs. Emacs ===&lt;br /&gt;
Emacs vs [[vi]] is the subject of a holy war, but this has largely been settled by the rise of [[WYSIWYG]] editors, which have tended to displace both options, and faster hardware, which renders the baroque nature of Emacs irrelevant. The Emacs camp is sometimes jokingly referred to as the &amp;quot;Church of Emacs&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Buckies ===&lt;br /&gt;
The [http://en.wikipedia.org/wiki/Space_cadet_keyboard space-cadet keyboard] was an inspiration for Emacs. This is where all the C-''x'' (That's Emacs notation for pressing the Control key while hitting the ''x'' key) and M-''x'' (same thing, only with the Alt key instead of the Control key) commands came from. These chorded keystrokes make use of &amp;quot;buckies&amp;quot;, or special function keys like Control, Alt, and Shift. The name bucky comes from the early days of keyboards, before they standardized on [http://en.wikipedia.org/wiki/ASCII ASCII]. In those days, characters used 7 [http://en.wikipedia.org/wiki/Bit bits], and bucky keys turned on extra bits, which were called bucky bits, meta bits, or high bits, to the top of the character's [http://en.wikipedia.org/wiki/Byte byte]. This changed the value of the character's byte, and produced a different character.&lt;br /&gt;
&lt;br /&gt;
The use of buckies means that an experienced Emacs user has a wide range of commands available in just a few keystrokes, and doesn't have to take their hands off the main keyboard to use the arrow keys or the mouse. On the downside, there are a lot of commands to memorize (although you can usually muddle along with the arrow keys or the menu). Also, some key chords are hard to pull off. But at least Emacs is better than the space-cadet keyboard. There are occasionally double bucky|double buckies (where you press Ctrl, Alt, and another key) but triple or even quadruple buckies are very rare. (A triple bucky would require the use of the Shift key. Quadruple or quintuple bucky would need super and hyper modifier keys, which can be defined using [[xmodmap]].)&lt;br /&gt;
&lt;br /&gt;
=== Features ===&lt;br /&gt;
Emacs supports syntax highlighting, [[CVS]], [[diff]]/[[patch]] and many other features, which draw on Emacs' built-in LISP extensibility.&lt;br /&gt;
&lt;br /&gt;
Around version 19 a fork of the GNU Emacs project resulted in an alternate version [http://en.wikipedia.org/wiki/Xemacs XEmacs]. Both versions are now actively developed. The reasons for the fork are detailed on http://www.xemacs.org, but in short you could say that GNU Emacs is [[Free Software]] while XEmacs is more [[Open Source]] Software. XEmacs readily adopts changes from Emacs into its code base, so XEmacs arguably has more features. In practice the editors are much alike, so most you read about Emacs should apply to XEmacs and vice versa. &lt;br /&gt;
&lt;br /&gt;
ELSE, the Emacs Language Sensitive Editor is an installable mode of the editor.&lt;br /&gt;
&lt;br /&gt;
A primary attraction of Emacs is its excellent syntax highlighting (called font-locking) and indentation support, as well as a lot of advanced editing tricks. Functions such as indent-function, hungry delete and other advanced tricks makes Emacs users incredibly productive. The flip side of the coin is that this enormous functionality has to be mastered, which takes some time.&lt;br /&gt;
&lt;br /&gt;
Emacs comes with an excellent tutorial and auto-generated documentation. To access the tutorial, press h while holding down the Control key, release the control key and press t.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Emacs keystrokes]]&lt;br /&gt;
* [[Emacs modes]]&lt;br /&gt;
* [[Keyboard shortcuts at a glance]]&lt;br /&gt;
* [[LQWiki:Emacs_tips_and_tricks| Emacs tips and tricks to play well with LQWiki]]&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
* [http://www.gnu.org/software/emacs/ Homepage] (''www.gnu.org'')&lt;br /&gt;
* [http://www.emacswiki.org/ Wiki] (''www.emacswiki.org'')&lt;br /&gt;
* [http://www.nabble.com/Emacs-f1569.html Mailing lists] (''www.nabble.com'')&lt;br /&gt;
* [http://www.xemacs.org/ XEmacs homepage] (''www.xemacs.org'')&lt;br /&gt;
&lt;br /&gt;
{{Jargon File/Attribution}}&lt;br /&gt;
&lt;br /&gt;
[[category:Editors]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=OpenOffice_Hacking&amp;diff=58898</id>
		<title>OpenOffice Hacking</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=OpenOffice_Hacking&amp;diff=58898"/>
		<updated>2011-08-29T18:57:24Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: Spelling/case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==OpenOffice.org Hacking==&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org documents are ZIP archives containing several XML (and other) files.  If you know what you are doing, you can create documents in your own programs which can be read by OpenOffice.org applications.&lt;br /&gt;
&lt;br /&gt;
===Why?===&lt;br /&gt;
&lt;br /&gt;
Why would you want to do this?  Well, one use I found was for a web application which -- based on form input and the contents of a [[MySQL]] database -- generates customised documents ready to download straight into OpenOffice.org for printing.  &lt;br /&gt;
&lt;br /&gt;
Another use was for printing my holiday photographs -- I wanted to print out pre-defined layouts, such as two pictures 160x120, or five 80x60 and one 160x20, on a single A4 sheet with guillotine marks.  I did ''not'' want to have to click my way through the file requester and the position-and-size requester for each and every single picture.&lt;br /&gt;
&lt;br /&gt;
And being a [[hacker]] myself, I would need a good reason '''not''' to attempt something like this!&lt;br /&gt;
&lt;br /&gt;
=== What With? ===&lt;br /&gt;
&lt;br /&gt;
Apart from this document, you will need OpenOffice.org; unzip; zip; and a good [[text editor]] such as [[Pico]], [[Vim]] or [[Emacs]]. Graphical editors can be [[gedit]] for [http://en.wikipedia.org/wiki/GNOME Gnome] and [[Kate]] for [[KDE]].&lt;br /&gt;
&lt;br /&gt;
===How?===&lt;br /&gt;
&lt;br /&gt;
First of all, create any old document you like  (but something you can mess around with)  in OpenOffice.org.  Now, go to an Xterm, and navigate to the directory where you saved the document.  Create a temporary directory and copy your document in there.  Change to the temporary directory and unzip the copy of your document.&lt;br /&gt;
&lt;br /&gt;
   $ unzip file.sxw&lt;br /&gt;
   $ ls &lt;br /&gt;
   content.xml meta.xml settings.xml styles.xml META-INF/&lt;br /&gt;
&lt;br /&gt;
There should be a subdirectory called META-INF and depending on the contents of your document, there may be other subdirectories for pictures and other embedded objects.  In META-INF will be a file called ''manifest.xml'' -- this is important, as it lists all the files which make up the OpenOffice document.  If you split or combine any of the files, you will have to edit this manifest file to reflect any changes that you made.&lt;br /&gt;
&lt;br /&gt;
   $ cd META-INF/&lt;br /&gt;
   $ ls&lt;br /&gt;
   manifest.xml&lt;br /&gt;
&lt;br /&gt;
The real juicy stuff is in a file called content.xml in the main directory. This file has the content of your document the main XML tree will contain a series of namespaces which includes all the common definitions that are used in OpenOffice.org. &lt;br /&gt;
&lt;br /&gt;
The next section of the content.xml are the styles which are different from the one on the ''styles.xml'' file. This styles include fonts, paragraph and text properties definitions taken from the ''stylist'' in the Writer UI. &lt;br /&gt;
&lt;br /&gt;
Finally the content comes around the tags text:p for pagraph, text:h for headings, text:list for lists and text:a for hyperlinks. This is very similar to HTML except this tags also have unique methods that define paragraph by paragraph. The most important is the name which defines the type of paragraph style it is going to be used an example could be ''text:p text:style-name=&amp;quot;P17&amp;quot;'' which uses the ''P17'' previously defined on the style section.&lt;br /&gt;
&lt;br /&gt;
More information about the construction of the ''content.xml'' file can be found on the [http://books.evc-cit.info/odbook/ch02.html#text-doc-superstructure-section OpenDocuments Essentials] a book by David Eisenberg.&lt;br /&gt;
&lt;br /&gt;
(todo: expand)&lt;br /&gt;
&lt;br /&gt;
===Hint===&lt;br /&gt;
&lt;br /&gt;
You may find that these XML files have very long lines, with no breaks between the closing &amp;amp;gt; of one tag and the opening &amp;amp;lt; of the next.  Though legitimate XML, it's harder to edit.  Use&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;tt&amp;gt;sed -e's/&amp;amp;gt;&amp;amp;lt;/&amp;amp;gt;\n&amp;amp;lt;/g' foo.xml &amp;amp;gt; foo.xml&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to sort this out.&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org also includes an option to have the XML properly constructed under ''Tools &amp;gt; Options &amp;gt; Load and Edit'' and selecting the option ''Optimize XML for file size''. &lt;br /&gt;
&lt;br /&gt;
This will generate the correct indentation for a better view and edit of the internal XML files.&lt;br /&gt;
&lt;br /&gt;
=== Ready to go ===&lt;br /&gt;
&lt;br /&gt;
Once you have done the edits you want, zip up the temporary directory and give it a suitable name  (eg.  foo_new.sxw).  Now, try loading it into OpenOffice.org and see what happens! &lt;br /&gt;
&lt;br /&gt;
You can also use a gui application such as [[Gzip]] for Gnome or ArK for [[KDE]].&lt;br /&gt;
&lt;br /&gt;
===Web Drive===&lt;br /&gt;
&lt;br /&gt;
A CGI script needs to give a MIME-type as part of the HTML headers, then a double newline to mark the end of the headers, then finally the ZIPped output.  This does ''not'' need to be base-64 encoded, but can just be in simple 8-bit binary form, since httpd  (which is parsing the output you generate)  will take care of whether the connection is binary-safe or not.&lt;br /&gt;
&lt;br /&gt;
If you are running on a fast server and your clients' timeout is not excessively short, you should have plenty of time to send the headers, generate the zipfile on the fly  (make a directory under /tmp; put your PID in the dirname to keep it unique; build up files in the directory; use a shell command to zip it)  and just dump it to stdout.&lt;br /&gt;
&lt;br /&gt;
(Todo: Perl example)&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=OpenOffice_Hacking&amp;diff=58897</id>
		<title>OpenOffice Hacking</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=OpenOffice_Hacking&amp;diff=58897"/>
		<updated>2011-08-29T18:54:05Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: /* What With? */ Following spelling in the corresponding Wikipedia articles.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==OpenOffice.org Hacking==&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org documents are ZIP archives containing several XML (and other) files.  If you know what you are doing, you can create documents in your own programs which can be read by OpenOffice.org applications.&lt;br /&gt;
&lt;br /&gt;
===Why?===&lt;br /&gt;
&lt;br /&gt;
Why would you want to do this?  Well, one use I found was for a web application which -- based on form input and the contents of a [[MySQL]] database -- generates customised documents ready to download straight into OpenOffice.org for printing.  &lt;br /&gt;
&lt;br /&gt;
Another use was for printing my holiday photographs -- I wanted to print out pre-defined layouts, such as two pictures 160x120, or five 80x60 and one 160x20, on a single A4 sheet with guillotine marks.  I did ''not'' want to have to click my way through the file requester and the position-and-size requester for each and every single picture.&lt;br /&gt;
&lt;br /&gt;
And being a [[hacker]] myself, I would need a good reason '''not''' to attempt something like this!&lt;br /&gt;
&lt;br /&gt;
=== What With? ===&lt;br /&gt;
&lt;br /&gt;
Apart from this document, you will need OpenOffice.org; unzip; zip; and a good [[text editor]] such as [[Pico]], [[Vim]] or [[Emacs]]. Graphical editors can be [[gedit]] for [http://en.wikipedia.org/wiki/GNOME Gnome] and [[Kate]] for [[KDE]].&lt;br /&gt;
&lt;br /&gt;
===How?===&lt;br /&gt;
&lt;br /&gt;
First of all, create any old document you like  (but something you can mess around with)  in OpenOffice.org.  Now, go to an Xterm, and navigate to the directory where you saved the document.  Create a temporary directory and copy your document in there.  Change to the temporary directory and unzip the copy of your document.&lt;br /&gt;
&lt;br /&gt;
   $ unzip file.sxw&lt;br /&gt;
   $ ls &lt;br /&gt;
   content.xml meta.xml settings.xml styles.xml META-INF/&lt;br /&gt;
&lt;br /&gt;
There should be a subdirectory called META-INF and depending on the contents of your document, there may be other subdirectories for pictures and other embedded objects.  In META-INF will be a file called ''manifest.xml'' -- this is important, as it lists all the files which make up the OpenOffice document.  If you split or combine any of the files, you will have to edit this manifest file to reflect any changes that you made.&lt;br /&gt;
&lt;br /&gt;
   $ cd META-INF/&lt;br /&gt;
   $ ls&lt;br /&gt;
   manifest.xml&lt;br /&gt;
&lt;br /&gt;
The real juicy stuff is in a file called content.xml in the main directory. This file has the content of your document the main xml tree will contain a series of namespaces which includes all the common definitions that are used in OpenOffice.org. &lt;br /&gt;
&lt;br /&gt;
The next section of the content.xml are the styles which are different from the one on the ''styles.xml'' file. This styles include fonts, paragraph and text properties definitions taken from the ''stylist'' in the Writer UI. &lt;br /&gt;
&lt;br /&gt;
Finally the content comes around the tags text:p for pagraph, text:h for headings, text:list for lists and text:a for hyperlinks. This is very similar to HTML except this tags also have unique methods that define paragraph by paragraph. The most important is the name which defines the type of paragraph style it is going to be used an example could be ''text:p text:style-name=&amp;quot;P17&amp;quot;'' which uses the ''P17'' previously defined on the style section.&lt;br /&gt;
&lt;br /&gt;
More information about the construction of the ''content.xml'' file can be found on the [http://books.evc-cit.info/odbook/ch02.html#text-doc-superstructure-section OpenDocuments Essentials] a book by David Eisenberg.&lt;br /&gt;
&lt;br /&gt;
(todo: expand)&lt;br /&gt;
&lt;br /&gt;
===Hint===&lt;br /&gt;
&lt;br /&gt;
You may find that these XML files have very long lines, with no breaks between the closing &amp;amp;gt; of one tag and the opening &amp;amp;lt; of the next.  Though legitimate XML, it's harder to edit.  Use&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;tt&amp;gt;sed -e's/&amp;amp;gt;&amp;amp;lt;/&amp;amp;gt;\n&amp;amp;lt;/g' foo.xml &amp;amp;gt; foo.xml&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to sort this out.&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org also includes an option to have the XML properly constructed under ''Tools &amp;gt; Options &amp;gt; Load and Edit'' and selecting the option ''Optimize XML for file size''. &lt;br /&gt;
&lt;br /&gt;
This will generate the correct indentation for a better view and edit of the internal XML files.&lt;br /&gt;
&lt;br /&gt;
=== Ready to go ===&lt;br /&gt;
&lt;br /&gt;
Once you have done the edits you want, zip up the temporary directory and give it a suitable name  (eg.  foo_new.sxw).  Now, try loading it into OpenOffice.org and see what happens! &lt;br /&gt;
&lt;br /&gt;
You can also use a gui application such as [[Gzip]] for Gnome or ArK for [[KDE]].&lt;br /&gt;
&lt;br /&gt;
===Web Drive===&lt;br /&gt;
&lt;br /&gt;
A CGI script needs to give a MIME-type as part of the HTML headers, then a double newline to mark the end of the headers, then finally the ZIPped output.  This does ''not'' need to be base-64 encoded, but can just be in simple 8-bit binary form, since httpd  (which is parsing the output you generate)  will take care of whether the connection is binary-safe or not.&lt;br /&gt;
&lt;br /&gt;
If you are running on a fast server and your clients' timeout is not excessively short, you should have plenty of time to send the headers, generate the zipfile on the fly  (make a directory under /tmp; put your PID in the dirname to keep it unique; build up files in the directory; use a shell command to zip it)  and just dump it to stdout.&lt;br /&gt;
&lt;br /&gt;
(todo: perl example)&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Vim&amp;diff=58896</id>
		<title>Vim</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Vim&amp;diff=58896"/>
		<updated>2011-08-29T18:49:34Z</updated>

		<summary type="html">&lt;p&gt;Peter Mortensen: Following the Wikipedia article on Vim, &amp;lt;http://en.wikipedia.org/wiki/Vim_%28text_editor%29&amp;gt;.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Vim''' ('''Vi''' I'''M'''proved) is a contemporary version of the classic [[vi]] editor, with additional capabilites.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
All [[UNIX]] machines typically come with the [[vi]] [[text editor]]. However, vi lacks some more contemporary features (for example, syntax highlighting). This is where '''Vim''' comes in. If you know how to use vi, you'll find Vim to be the same except it has a number of useful features added to make editing easier. If you don't yet know how to use vi or Vim, and you didn't come from using [[ed]], you'll find the learning curve quite steep (which means, it might take you a while to learn to achieve maximum proficiency).&lt;br /&gt;
&lt;br /&gt;
Vim was originally written by (and is still primarily maintained by) Bram Moolenaar. It started as a personal desire to have a useful vi-clone for the Amiga, but eventually grew as more features were added. It now runs on a variety of platforms (including Unix work-a-likes, e.g. GNU/Linux, Mac OS X, and *BSD; Amiga; Windows; Mac &amp;quot;Classic&amp;quot;; and OS/2) and supports a variety of graphical toolkits (including GTK, QT, and Carbon) in addition to the command-line interface. VIM is also the latin word for &amp;quot;power&amp;quot; or &amp;quot;force&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Vim has a compatibility mode which produces an almost vi-compatible experience (the version of vi used seems to be one released with Sun OS 4.x, from Version 3.7 dated on 6/7/85). This is enabled by using the &amp;quot;:set compatible&amp;quot; ex-command or by running Vim with the -C option.&lt;br /&gt;
&lt;br /&gt;
== Tips ==&lt;br /&gt;
&lt;br /&gt;
=== Learning ===&lt;br /&gt;
To learn [[Vim]], [[open a console]] and call&lt;br /&gt;
 [http://linuxcommand.org/man_pages/vimtutor1.html vimtutor]&lt;br /&gt;
&lt;br /&gt;
==== A tutorial ====&lt;br /&gt;
While Vim is not as easy to learn initially as it is to learn nano, there are plenty advantages to using it. Some great features of Vim are copy, cut, and paste. Also there is code styling for programmers and there's also an undo/redo feature which is awesome.&lt;br /&gt;
&lt;br /&gt;
There are three modes for Vim (That I know of right now). There is the visual mode, insert mode, and the command mode. Before I start breaking down the different modes let me say this: every time you delete or copy text in the command or visual mode, the deleted text is loaded into a special buffer. This buffer continues to hold the text until you delete more text/characters/lines in which case the buffer will be replaced with the newly deleted text. I say that because the buffer is also used for copying and pasting. So if you copy text and then delete some text, the next time you paste you'll be pasting the last text you deleted instead of what you copied.&lt;br /&gt;
&lt;br /&gt;
When you first open a file with command vim myfile you start out in the command mode. If the file myfile exists then it will load myfile into the editor. If the file myfile does not exist then it will create a blank file with myfile as its save path which can be modified but myfile will not be created on your hard drive until you save the document.&lt;br /&gt;
&lt;br /&gt;
Pressing the i key will put the editor into insert mode. Go ahead and put the editor into insert mode and type some random text you can play with. In fact you should type a couple of lines.&lt;br /&gt;
&lt;br /&gt;
Pressing the Esc while in insert mode will take the editor out of insert mode and back into command mode. Now each letter on your keyboard has turned into a command which manipulates the document instead of keys which insert text into the document.&lt;br /&gt;
&lt;br /&gt;
Pressing the v key puts the editor into visual mode. Visual mode is used to highlight text in the document so you can apply different commands just to that text. If you accidentally go into visual mode or you've highlighted text and don't want to do anything to it then press the v key to go back into command mode.&lt;br /&gt;
&lt;br /&gt;
While in command mode, pressing the colon key (: ) opens the editors command line where you can type a command for the editor to manipulate the whole document and not just some text or a few lines. For example in the editors command line you can save the document, quit the document, quit without saving, undo change, and redo change to name a few. You can even combine commands to do them at the same time such as save and quit at the same time.&lt;br /&gt;
&lt;br /&gt;
That's most of the explanation behind it. Now remember the three modes: command, insert, and visual. Everything is centralized around the command mode. Also remember the editor command line which is accessed when in the command mode. Now that I've explained all that here is what happens when pressing different keys in the different modes.&lt;br /&gt;
&lt;br /&gt;
When in command mode press the colon (: ) to enter the editor command line. Here are different editor commands.&lt;br /&gt;
command - explanation&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
| :w&lt;br /&gt;
| write/save the document&lt;br /&gt;
|-&lt;br /&gt;
| :q&lt;br /&gt;
| quit Vim&lt;br /&gt;
|-&lt;br /&gt;
| :q!&lt;br /&gt;
| quit Vim without saving&lt;br /&gt;
|-&lt;br /&gt;
| :u&lt;br /&gt;
| undo&lt;br /&gt;
|-&lt;br /&gt;
| :r&lt;br /&gt;
| redo&lt;br /&gt;
|-&lt;br /&gt;
| :wq&lt;br /&gt;
| write/save the document and then quit Vim&lt;br /&gt;
|}&lt;br /&gt;
If you accidentally enter the editor command line pressing Esc twice will put you back into command mode.&lt;br /&gt;
&lt;br /&gt;
When you're in the command mode different keys have different functions. The commands are case sensitive.&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
| command&lt;br /&gt;
| explanation&lt;br /&gt;
|-&lt;br /&gt;
| h&lt;br /&gt;
| move cursor left&lt;br /&gt;
|-&lt;br /&gt;
| j&lt;br /&gt;
| move cursor down&lt;br /&gt;
|-&lt;br /&gt;
| k&lt;br /&gt;
| move cursor up&lt;br /&gt;
|-&lt;br /&gt;
| l&lt;br /&gt;
| move cursor right&lt;br /&gt;
|-&lt;br /&gt;
| w&lt;br /&gt;
| move the cursor right and down the document accross each word instead of each character.&lt;br /&gt;
|-&lt;br /&gt;
| ZZ&lt;br /&gt;
| same as :wq. write/save the document and then quit Vim. Double tap the z key while holding the shift key (double click).&lt;br /&gt;
|-&lt;br /&gt;
| dd&lt;br /&gt;
| cuts/deletes an entire line of text. Double tab the d key (double click).&lt;br /&gt;
|-&lt;br /&gt;
| dw&lt;br /&gt;
| cuts/deletes a words of text&lt;br /&gt;
|-&lt;br /&gt;
| yy&lt;br /&gt;
| copies an entire line of text. Double tap the y key (double click).&lt;br /&gt;
|-&lt;br /&gt;
| p&lt;br /&gt;
| paste text after: if copied entire line then it will paste text after the current line. if copied a few characters then paste them after the current character.&lt;br /&gt;
|-&lt;br /&gt;
| P&lt;br /&gt;
| same as p but pastes text before the current character/line.&lt;br /&gt;
|-&lt;br /&gt;
| i&lt;br /&gt;
| enters editor into insert mode&lt;br /&gt;
|-&lt;br /&gt;
| o&lt;br /&gt;
| inserts a new line after the current line and then places the editor into insert mode.&lt;br /&gt;
|-&lt;br /&gt;
| u&lt;br /&gt;
| Undo the last edit. Same as :u.&lt;br /&gt;
|-&lt;br /&gt;
| v&lt;br /&gt;
| enters the editor into visual mode.&lt;br /&gt;
|-&lt;br /&gt;
| r&lt;br /&gt;
| replace. When you push a key after pressing r the letter the cursor is currently located on is replaced with the key pressed. You are still in command mode.&lt;br /&gt;
|-&lt;br /&gt;
| R&lt;br /&gt;
| replace. puts the editor into insert mode however it overwrites replacing each character if one already exists.&lt;br /&gt;
|-&lt;br /&gt;
| x&lt;br /&gt;
| delete a character&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
When you're in insert mode every key on the keyboard types text into the document like a normal text editor. When you wish to leave insert mode press the Esc key.&lt;br /&gt;
&lt;br /&gt;
When you're in the visual mode you can highlight text and apply different commands to it. The commands are similar to command mode and are also case sensitive.&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
| command&lt;br /&gt;
| explanation&lt;br /&gt;
|-&lt;br /&gt;
| h&lt;br /&gt;
| move cursor left (highlighting text)&lt;br /&gt;
|-&lt;br /&gt;
| j&lt;br /&gt;
| move cursor down (highlighting text)&lt;br /&gt;
|-&lt;br /&gt;
| k&lt;br /&gt;
| move cursor up (highlighting text)&lt;br /&gt;
|-&lt;br /&gt;
| l&lt;br /&gt;
| move cursor right (highlighting text)&lt;br /&gt;
|-&lt;br /&gt;
| y&lt;br /&gt;
| copy the highlighted text and enter back into command mode&lt;br /&gt;
|-&lt;br /&gt;
| d&lt;br /&gt;
| cut/delete the hightlighted text and enter back into command mode&lt;br /&gt;
|-&lt;br /&gt;
| p&lt;br /&gt;
| paste the text from the buffer replacing the highlighted text.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The following command opens myfile and automatically goes to line 23.&lt;br /&gt;
 vim +23 myfile&lt;br /&gt;
&lt;br /&gt;
It's a bit of a task remembering all those commands. The best way to learn them is to try to use Vim regularly referring to those commands for the different modes. There's a lot more commands and tricks you can do in Vim. Those are just the basic ones.&lt;br /&gt;
&lt;br /&gt;
==== Interactive tutorial ====&lt;br /&gt;
If you installed Vim on your GNU/Linux machine then vimtutor was also installed. vimtutor is an interactive tutorial which can be run from the terminal.&lt;br /&gt;
 vimtutor&lt;br /&gt;
It's easy to learn that way.&lt;br /&gt;
&lt;br /&gt;
=== ~/.vimrc ===&lt;br /&gt;
To make a config file for Vim, create a file in your home directory called .vimrc, and fill it with stuff that you'd normally type into Vim's &amp;quot;ex&amp;quot; mode. For example, if you regularly do &amp;quot;:syntax on&amp;quot; from inside Vim, put &amp;quot;syntax on&amp;quot; (no colon or quotes) on a line by itself in your ~/.vimrc file.&lt;br /&gt;
&lt;br /&gt;
Here's the contents of a useful .vimrc file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
syntax on&lt;br /&gt;
set number&lt;br /&gt;
set expandtab&lt;br /&gt;
set tabstop=4&lt;br /&gt;
set shiftwidth=4&lt;br /&gt;
set autoindent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* &amp;quot;syntax on&amp;quot; turns on syntax highlighting&lt;br /&gt;
* &amp;quot;set number&amp;quot; turns on line numbers&lt;br /&gt;
* &amp;quot;set expandtab&amp;quot; makes Vim insert spaces (instead of tabs) whenever you hit the tab key&lt;br /&gt;
* &amp;quot;set tabstop=4&amp;quot; sets tabs to equal 4 spaces&lt;br /&gt;
* &amp;quot;set shiftwidth=4&amp;quot; makes it so when you use the text shifting command, it shifts over using 4-space indents.&lt;br /&gt;
* &amp;quot;set autoindent&amp;quot; has Vim use &amp;quot;smart indenting&amp;quot;, ie. when you are tabbed out to, say, the 8th column, and you type something then hit enter, the cursor is helpfully placed at the 8th column again for you.&lt;br /&gt;
&lt;br /&gt;
Additionally you can turn any single argument command off by adding an exclamation point (!). So &amp;quot;set number&amp;quot; can be turned off by &amp;quot;set number!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(You can shut off line numbering from command mode by typing &amp;lt;tt&amp;gt;:set nonumber&amp;lt;/tt&amp;gt;.)&lt;br /&gt;
&lt;br /&gt;
=== Syntax highlighting ===&lt;br /&gt;
&lt;br /&gt;
You can turn syntax highlighting on/off with:&lt;br /&gt;
 :syntax off&lt;br /&gt;
 :syntax on&lt;br /&gt;
&lt;br /&gt;
If you have syntax highlighting on, but are using a dark background and the colors don't show up well, you can use this command:&lt;br /&gt;
 :set background=dark&lt;br /&gt;
&lt;br /&gt;
= External links =&lt;br /&gt;
* [http://www.vim.org Vim Homepage]&lt;br /&gt;
* [http://vi-improved.org/wiki/index.php #vim wiki]&lt;br /&gt;
&lt;br /&gt;
[[Category:Editors]]&lt;/div&gt;</summary>
		<author><name>Peter Mortensen</name></author>
	</entry>
</feed>