<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pario TechnoBlob &#187; Linux</title>
	<atom:link href="http://pario.no/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://pario.no</link>
	<description>A cronological documentation test project, nothing serious, really!</description>
	<lastBuildDate>Thu, 26 Apr 2012 08:18:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Manual download and install of VMware Tools in linux</title>
		<link>http://pario.no/2012/04/26/manual-download-and-install-of-vmware-tools-in-linux/</link>
		<comments>http://pario.no/2012/04/26/manual-download-and-install-of-vmware-tools-in-linux/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 06:41:54 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[esxi5]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VMware Tools]]></category>
		<category><![CDATA[vSphere Client]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1724</guid>
		<description><![CDATA[This post describes how you can download and install the latest version of VMware Tools to a linux guest from a ESXi 5.0 host. You need SSH access rights to a VMware host to follow this guide. Allow SSH access to the VMware host you are about to access. This can be done in the [...]]]></description>
			<content:encoded><![CDATA[<p>This post describes how you can download and install the latest version of VMware Tools to a linux guest from a ESXi 5.0 host. You need SSH access rights to a VMware host to follow this guide.</p>
<ol>
<li>Allow SSH access to the VMware host you are about to access.
<ul>
<li>This can be done in the vSphere Client: Choose the VMware host you would like to access.</li>
<li>Go to the Configuration tab and select Security Profile under Software. Edit Services Properties and start the SSH daemon.</li>
<li>Verify that the firewall allows SSH traffic</li>
</ul>
</li>
<li>All the VMware Tools are located in the /vmimages/tools-isoimages/ folder on the host. Download the ISO-image with the tools you need
<ul>
<li>Issue this command from a machine that has access to the VMware host.
<pre> sftp username@vmhost.tld:/vmimages/tools-isoimages/linux.iso</pre>
<p>Type in your password and the download will start</li>
</ul>
</li>
<li>Mount the ISO-file and copy the VMware Tools installer file to the desired VMware linux guest using SSH
<ul>
<li>
<pre># mount linux.iso /media/cdrom/ -t iso9660 -o loop
# scp /media/cdrom/VMwareTools-8.6.5-652272.tar.gz username@vmguest.tld:</pre>
</li>
</ul>
</li>
<li>Manual install of VMware Tools on a vmguest as a privileged user
<ul>
<li>
<pre># tar xfz VMwareTools-8.6.5-652272.tar.gz
# cd vmware-tools-distrib
# ./vmware-install.pl</pre>
<p>Follow the instructions and finish the installer. A reboot may be required to load the necessary kernel modules.</li>
</ul>
</li>
</ol>
<p>Your VMware Tools are now installed and should work as it would on a normal VMware Tools installation.</p>
<p>This procedure can also be used on other operating systems. This is a list of all the VMware Tools ISO-images available in the /vmimages/tools-isoimages/ folder on a ESXi 5.0 host</p>
<pre>sftp&gt; ls -l
-rwx------    1 root     root     12576768 Apr 13 09:17 darwin.iso
-rwx------    1 root     root          256 Apr 13 09:17 darwin.iso.sig
-rwx------    1 root     root     16021504 Apr 13 09:16 freebsd.iso
-rwx------    1 root     root          256 Apr 13 09:18 freebsd.iso.sig
-rwx------    1 root     root     65200128 Apr 13 09:15 linux.iso
-rwx------    1 root     root          256 Apr 13 09:17 linux.iso.sig
-rwx------    1 root     root         1738 Apr 13 09:17 linux_avr_manifest.txt
-rwx------    1 root     root       540672 Apr 13 09:17 netware.iso
-rwx------    1 root     root          256 Apr 13 09:16 netware.iso.sig
-rwx------    1 root     root     13006848 Apr 13 09:17 solaris.iso
-rwx------    1 root     root          256 Apr 13 09:16 solaris.iso.sig
-rwx------    1 root     root          451 Apr 13 09:17 tools-key.pub
-rwx------    1 root     root     13664256 Apr 13 09:18 winPre2k.iso
-rwx------    1 root     root          256 Apr 13 09:17 winPre2k.iso.sig
-rwx------    1 root     root           49 Apr 13 09:18 winPre2k_avr_manifest.txt
-rwx------    1 root     root     62128128 Apr 13 09:17 windows.iso
-rwx------    1 root     root          256 Apr 13 09:18 windows.iso.sig
-rwx------    1 root     root         1069 Apr 13 09:17 windows_avr_manifest.txt</pre>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMTIvMDQvMjYvbWFudWFsLWRvd25sb2FkLWFuZC1pbnN0YWxsLW9mLXZtd2FyZS10b29scy1pbi1saW51eC88d3B0Yj5NYW51YWwgZG93bmxvYWQgYW5kIGluc3RhbGwgb2YgVk13YXJlIFRvb2xzIGluIGxpbnV4PHdwdGI%2BaHR0cDovL3BhcmlvLm5vPHdwdGI%2BUGFyaW8gVGVjaG5vQmxvYg%3D%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2012/04/26/manual-download-and-install-of-vmware-tools-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change how the swap memory behave in Ubuntu</title>
		<link>http://pario.no/2012/04/25/change-how-the-swap-memor-behave-in-ubuntu/</link>
		<comments>http://pario.no/2012/04/25/change-how-the-swap-memor-behave-in-ubuntu/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 19:15:36 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[swappiness]]></category>
		<category><![CDATA[sysctl]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1717</guid>
		<description><![CDATA[This post is just a cut and paste job from the Ubuntu SwapFaq for my future reference Ubuntu installation. The swappiness parameter controls the tendency of the kernel to move processes out of physical memory and onto the swap disk. Because disks are much slower than RAM, this can lead to slower response times for [...]]]></description>
			<content:encoded><![CDATA[<p>This post is just a cut and paste job from the Ubuntu <a title="Ubuntu SwapFaq" href="https://help.ubuntu.com/community/SwapFaq">SwapFaq</a> for my future reference Ubuntu installation.</p>
<p>The swappiness parameter controls the tendency of the kernel to move processes out of physical memory and onto the swap disk. Because disks are much slower than RAM, this can lead to slower response times for system and applications if processes are too aggressively moved out of memory.</p>
<ul>
<li>swappiness can have a value of between 0 and 100</li>
<li>swappiness=0 tells the kernel to avoid swapping processes out of physical memory for as long as possible</li>
<li>swappiness=100 tells the kernel to aggressively swap processes out of physical memory and move them to swap cache</li>
</ul>
<p>The default setting in Ubuntu is swappiness=60. Reducing the default value of swappiness will probably improve overall performance for a typical Ubuntu desktop installation. A value of swappiness=10 is recommended, but feel free to experiment. <strong>Note</strong>: Ubuntu server installations have different performance requirements to desktop systems, and the default value of 60 is likely more suitable.</p>
<p>To check the swappiness value</p>
<pre># cat /proc/sys/vm/swappiness</pre>
<p>To change the swappiness value A temporary change (lost on reboot) with a swappiness value of 10 can be made with</p>
<pre># sudo sysctl vm.swappiness=10</pre>
<p>To make a change permanent, edit the configuration file with your favorite editor:</p>
<pre># gksudo gedit /etc/sysctl.conf</pre>
<p>Search for <em>vm.swappiness</em> and change its value as desired. If <em>vm.swappiness</em> does not exist, add it to the end of the file like so:</p>
<pre>vm.swappiness=10</pre>
<p>Save the file and reboot.</p>
<script type="text/javascript">var wordpress_toolbar_urls = ["https:\/\/help.ubuntu.com\/community\/SwapFaq"];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMTIvMDQvMjUvY2hhbmdlLWhvdy10aGUtc3dhcC1tZW1vci1iZWhhdmUtaW4tdWJ1bnR1Lzx3cHRiPkNoYW5nZSBob3cgdGhlIHN3YXAgbWVtb3J5IGJlaGF2ZSBpbiBVYnVudHU8d3B0Yj5odHRwOi8vcGFyaW8ubm88d3B0Yj5QYXJpbyBUZWNobm9CbG9i";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2012/04/25/change-how-the-swap-memor-behave-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recursively symlinking files</title>
		<link>http://pario.no/2012/02/02/recursively-symlinking-files/</link>
		<comments>http://pario.no/2012/02/02/recursively-symlinking-files/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 22:56:50 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[ln]]></category>
		<category><![CDATA[symlink]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1693</guid>
		<description><![CDATA[This is a short script I use to symlink all my JPG image files on my file server to a flat folder accessible to my DLNA enabled devices. My files are organized in year folders and under each year there are month folders: -2011 --2011-01 --2011-02 --2011-03 ... -2012 --2012-01 I avoid duplicate symlinks by [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short script I use to symlink all my JPG image files on my file server to a flat folder accessible to my DLNA enabled devices.<br />
My files are organized in year folders and under each year there are month folders:</p>
<pre>
-2011
--2011-01
--2011-02
--2011-03
...
-2012
--2012-01</pre>
<p>I avoid duplicate symlinks by using file names like 20110102-1234_DSC&#8230;JPG or YYYYMMDD-HHMM_OriginalFileName.JPG</p>
<p>The script looks like this</p>
<pre>
#!/bin/bash 

SRC="/media/Images"
DEST="/media/SymlinkTarget"

# Create a symlink under $DEST for each JPG file under $SRC
find $SRC -type f | grep -i jpg | while read PATHNAME; do
        NEW="$DEST";
        echo "$NEW";
        ln -s "$PATHNAME" "$NEW";
done</pre>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMTIvMDIvMDIvcmVjdXJzaXZlbHktc3ltbGlua2luZy1maWxlcy88d3B0Yj5SZWN1cnNpdmVseSBzeW1saW5raW5nIGZpbGVzPHdwdGI%2BaHR0cDovL3BhcmlvLm5vPHdwdGI%2BUGFyaW8gVGVjaG5vQmxvYg%3D%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2012/02/02/recursively-symlinking-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Lsyncd to perform &#8220;live&#8221; syncronization of a local directory to a remote directory</title>
		<link>http://pario.no/2012/01/13/using-lsyncd-to-perform-live-syncronization-of-a-local-directory-to-a-remote-directory/</link>
		<comments>http://pario.no/2012/01/13/using-lsyncd-to-perform-live-syncronization-of-a-local-directory-to-a-remote-directory/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 18:14:20 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[lsyncd]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh-keygen]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1672</guid>
		<description><![CDATA[This post is a short HOWTO and describes how you can install and run lsyncd to perform a rsync syncronization from local to a remote server using SSH. Lsyncd is a daemon to continuously synchronize directory trees and relies on inotify. If you need real live syncronization DRBD might be a better alternative since it [...]]]></description>
			<content:encoded><![CDATA[<p>This post is a short HOWTO and describes how you can install and run <a href="http://code.google.com/p/lsyncd/">lsyncd</a> to perform a rsync syncronization from local to a remote server using SSH.<br />
Lsyncd is a daemon to continuously synchronize directory trees and relies on inotify. If you need real live syncronization DRBD might be a better alternative since it is a block level syncronization. </p>
<p><strong>Installing Lsyncd 2.0 from source on CentOS 6</strong><br />
Lsyncd is not included as a package in CentOS 6, so you need to download the source file from <a href="http://code.google.com/p/lsyncd/downloads/list">http://code.google.com/p/lsyncd/downloads/list</a>.<br />
You should have rsync, GCC and lua-devel installed on your system before you continue installing Lsyncd.</p>
<pre>
# yum install rsync lua-devel</pre>
<p>Unpack the lsyncd source file and run the following commands from the unpacked file</p>
<pre>
# configure
# make
# make install</pre>
<p>make install copies the compiled files and install them to the right directories in your system.</p>
<p>I need to configure a non password SSH communication between the two servers with a shared SSH key.<br />
On the source server run the following command to generate a SSH key, if you have not done this already.<br />
Remember to do this as the user you are going to perform the sync with.</p>
<pre>
# ssh-keygen</pre>
<p>Secure copy the generated SSH key from the source server to your target server</p>
<pre>
# scp ~/.ssh/id_rsa.pub root@remoteserver:/tmp</pre>
<p>On the target server you need to add the copied SSH key to your existing authorized keys file.<br />
Also remember to do this with the user you are going to connect with from the source server.</p>
<pre>
# cat /tmp/id_rsa.pub >> ~/.ssh/authorized_keys</pre>
<p>If you do not have this file, just create it using the touch command described below</p>
<pre>
# touch ~/.ssh/authorized_keys</pre>
<p>Test if you can ssh without a password from your source server to the target server.</p>
<p>I have made a config file, <strong>/root/scripts/lsyncd.conf</strong> that tells Lsyncd where to put the log- and statusfile. That it should be running as a daemon in the background, and a sync should occur after 900 seconds (15 minutes) if there have not been any filesystem changes and there should not be more than 6 parallell Lsyncd processes.</p>
<pre>
settings = {
   logfile      = "/tmp/lsyncd.log",
   statusFile   = "/tmp/lsyncd.status",
   nodaemon     = false,
   maxDelays    = 900,
   maxProcesses = 6,
}

sync{default.rsyncssh, source="/path/on/source/", host="hostnam.target.server.tld", targetdir="/path/on/target/"}</pre>
<p>To start lsyncd you run the command</p>
<pre>
# lsyncd /root/scripts/lsyncd.conf</pre>
<p>You should now see a Lsyncd process running as a daemon on your system. It performs a sync when you start and then waits for any filesystem changes or sync after 900 seconds.</p>
<p>If you would like Lsyncd to start at boot, just add the following line to the bottom of file <strong>/etc/rc.local</strong></p>
<pre>
lsyncd /root/scripts/lsyncd.conf</pre>
<p>You do now have a working secure rsync syncronization between two servers.</p>
<p><strong>What directories you are syncing</strong></p>
<pre>
# tail -f /tmp/lsyncd.status</pre>
<p><strong>What is happening now</strong></p>
<pre>
# tail -f /tmp/lsyncd.log</pre>
<script type="text/javascript">var wordpress_toolbar_urls = ["http:\/\/code.google.com\/p\/lsyncd\/","http:\/\/code.google.com\/p\/lsyncd\/downloads\/list"];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMTIvMDEvMTMvdXNpbmctbHN5bmNkLXRvLXBlcmZvcm0tbGl2ZS1zeW5jcm9uaXphdGlvbi1vZi1hLWxvY2FsLWRpcmVjdG9yeS10by1hLXJlbW90ZS1kaXJlY3RvcnkvPHdwdGI%2BVXNpbmcgTHN5bmNkIHRvIHBlcmZvcm0gJiM4MjIwO2xpdmUmIzgyMjE7IHN5bmNyb25pemF0aW9uIG9mIGEgbG9jYWwgZGlyZWN0b3J5IHRvIGEgcmVtb3RlIGRpcmVjdG9yeTx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2012/01/13/using-lsyncd-to-perform-live-syncronization-of-a-local-directory-to-a-remote-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to join *.001,*.002,… files from your Linux terminal</title>
		<link>http://pario.no/2012/01/02/how-to-join-001-002-files-from-your-linux-terminal/</link>
		<comments>http://pario.no/2012/01/02/how-to-join-001-002-files-from-your-linux-terminal/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 22:23:50 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1668</guid>
		<description><![CDATA[This is a easy way to combine/join/merge several .001 .002 .003 etc files to one file. # cat filename.avi.* > filename.avi The .001 .002 .003 files can be deleted after you have verfied that the files have merged together successfully to one file. If you were using Windows you would normally use a software like [...]]]></description>
			<content:encoded><![CDATA[<p>This is a easy way to combine/join/merge several .001 .002 .003 etc files to one file.</p>
<pre>
# cat filename.avi.* > filename.avi</pre>
<p>The .001 .002 .003 files can be deleted after you have verfied that the files have merged together successfully to one file.</p>
<p>If you were using Windows you would normally use a software like HJSplit or similar.</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMTIvMDEvMDIvaG93LXRvLWpvaW4tMDAxLTAwMi1maWxlcy1mcm9tLXlvdXItbGludXgtdGVybWluYWwvPHdwdGI%2BSG93IHRvIGpvaW4gKi4wMDEsKi4wMDIs4oCmIGZpbGVzIGZyb20geW91ciBMaW51eCB0ZXJtaW5hbDx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2012/01/02/how-to-join-001-002-files-from-your-linux-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

