<?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>Linux * Screw &#187; debian</title>
	<atom:link href="http://www.linuxscrew.com/category/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxscrew.com</link>
	<description></description>
	<lastBuildDate>Fri, 04 Nov 2011 14:19:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=5829</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Install nfdump and nfsen netflow tools in Linux</title>
		<link>http://www.linuxscrew.com/2011/02/23/install-nfdump-and-nfsen-netflow-tools-in-linux/</link>
		<comments>http://www.linuxscrew.com/2011/02/23/install-nfdump-and-nfsen-netflow-tools-in-linux/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 20:00:01 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[applications]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[howtos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=1182</guid>
		<description><![CDATA[Using nfsen it is possible to view IP traffic statistics on Linux interfaces including the graphs showing data sent and received (see the screenshot to the right) as well as historical information about all data transfers. So after you&#8217;ve configured nfsen and nfdump to monitor traffic on certain Linux server or router you&#8217;ll be able [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://www.linuxscrew.com/wp-content/uploads/2011/02/Selection_033.png"><img src="http://www.linuxscrew.com/wp-content/uploads/2011/02/Selection_033-small.png" alt="" title="nfsen screenshot" width="300" height="162" class="alignright size-full wp-image-1190" /></a>Using <strong><a href="http://nfsen.sourceforge.net/">nfsen</a></strong> it is possible to view IP traffic statistics on <strong><a href="http://www.linuxscrew.com/category/linux/">Linux</a></strong> interfaces including the graphs showing data sent and received (see the screenshot to the right) as well as historical information about all data transfers. So after you&#8217;ve configured <strong>nfsen</strong> and <strong>nfdump</strong> to monitor traffic on certain <strong>Linux</strong> server or router you&#8217;ll be able to answer the following example questions: What IP was downloading data through 48161 last Wednesday? or How many bytes were sent to IP 8.8.8.8 via 53 port from Linux server? These are the only examples so <strong>nfdump</strong> and <strong>nfdump</strong> <a href="http://en.wikipedia.org/wiki/Netflow">netflow</a> tools gives you wide range of capabilities to monitor and analyze traffic on your <strong>Linux</strong> host.</p>
<p><strong>Netflow</strong> is the protocol developed by <a href="http://www.cisco.com">Cisco</a> to manage data about IP traffic. In a few words using Netflow you can collect data about all IP data send/received on multiple Cisco/Linux/BSD/Juniper hosts and send it to central Netflow collector that will show you the nice graphs and also will allow to have a complete picture of what data was sent/received on those hosts (including destination and source IP, port, bytes transfered, int/out interfaces etc). <strong>Nfdump</strong> is netflow collector. <strong>Nfsen</strong> is graphical tools for generating graphs and querying <strong>Nfdump</strong> for historical traffic reports. In this article you will see how to deploy all this staff in <strong>Linux</strong>.</p>
<p>Netflow probe is required to collect IP traffic data on <strong>Linux</strong> host. In general this piece of sofware will sit in background, store every network activity on certain network interface and then send collected data to Netflow collector nfdump. As Netflow probe I prefer <strong><a href="http://fprobe.sourceforge.net/">fprobe</a></strong> that is totally simple application that just does its job. If you feel that fprobe is not what you need or there are some problems with installing it you can try <a href="http://www.mindrot.org/projects/softflowd/">softflowd</a> that can do the same job.</p>
<p><em>Install fprobe from sources:</em></p>
<pre>cd /usr/src/
sudo -s
wget http://sourceforge.net/projects/fprobe/files/fprobe/1.1/fprobe-1.1.tar.bz2/download
tar -xvjf fprobe-1.1.tar.bz2
cd fprobe-1.1
./configure --prefix=/
make
make install
</pre>
<p><em>Point fprobe to one of network interfaces of <strong>Linux</strong> host and make it to send data to Netflow collector:</em></p>
<pre>fprobe -i eth0 11.22.33.44:23456</pre>
<p>In above example fprobe stores all data trasnfers on eth0 network interface and sends collected data to 11.22.33.44 host via 23456 UDP port (you may want to change firewall rules to make Netflow working over 23456 UDP port).</p>
<p><em>Install nfdump Netflow collector from sources:</em></p>
<pre>cd /usr/src/
sudo -s
wget http://sourceforge.net/projects/nfdump/files/stable/nfdump-1.6.2/nfdump-1.6.2.tar.gz/download
tar -xvzf nfdump-1.6.2.tar.gz
cd nfdump-1.6.2
./configure --prefix=/ --enable-nfprofile
make make
install</pre>
<p>When finished Netflow collector becomes ready so you can start capturing traffic from Netflow probe. If you don&#8217;t need any graphical tools like <strong>nfsen</strong> described below you can just start collector and save Netflow data in /var/neflow/ directory (THIS STEP IS OPTIONAL):</p>
<pre>/bin/nfcapd -w -D -p 23456 -B 200000 -S 1 -z -I Linux-Host-1-eth0 -l /var/netflow/</pre>
<p>In order to install <strong>nfsen</strong> from sources you have to get all its prerequisites, run one of below lines depending on what <strong>Linux</strong> distro you&#8217;re using (1st line is for <a href="http://www.linuxscrew.com/category/fedora/">Fedora</a>, <a href="http://www.linuxscrew.com/category/centos/">Centos</a>, Redhat while 2nd line is for <a href="http://www.linuxscrew.com/category/ubuntu/">Ubuntu</a>, <a href="http://www.linuxscrew.com/category/debian/">Debian</a>, Mint and similar):</p>
<pre>yum install rrdtool rrdtool-devel rrdutils perl-rrdtool -y</pre>
<p>or</p>
<pre>aptitude install rrdtool librrd2-dev librrd-dev librrd4 librrds-perl librrdp-perl</pre>
<p><em>Compile nfsen from sources:</em></p>
<pre>cd /usr/src/
sudo -s
wget http://sourceforge.net/projects/nfsen/files/stable/nfsen-1.3.5/nfsen-1.3.5.tar.gz/download
tar -xvzf nfsen-1.3.5.tar.gz
cd nfsen-1.3.5
cp etc/nfsen-dist.conf etc/nfsen.conf</pre>
<p>In order to continue the installation you should edit file <i>etc/nfsen.conf</i> to specify where to install <strong>nfsen</strong>, web server’s username (yes, you have to install apache, lighttpd, nginx or any other web server first), its document root directory etc. The major section of that config file is ‘Netflow sources’ that must list all hosts you&#8217;ve started Netflow probes at. Here is an example section for monitoring above <strong>Linux</strong> host:</p>
<pre>%sources = (
    'Linux-Host-eth0'    => { 'port' => '23456', 'col' => '#ff0000', 'type' => 'netflow' },
);</pre>
<p>When finished it&#8217;s time to actually install <strong>nfsen</strong> using installation script:</p>
<pre>./install.pl etc/nfsen.conf</pre>
<p>In case of successful installation you will be notified with corresponding congratulations message so it would be proper time to start <strong>nfsen</strong> daemon:</p>
<pre>/path/to/nfsen/bin/nfsen start</pre>
<p>Now you can open http://localhost/nfsen/nfsen.php at Linux host where <strong>nfsen</strong> was installed to start using this Netflow tool and see some graphs. Notice that it takes about 5-10 minutes to see first bars at the graphs, if the graphs are still empty you will have to check at least the following:</p>
<p>1. If fprobe is able to communicate to Netwflow collector and can send Netflow data to it (use <em>&#8216;ps ax | grep fprobe&#8217;</em> and Linux host being monitored and tcpdump tool at Netflow collector).<br />
2. If Netflow collector is started and can receive data from Netflow probe. Use <em>&#8216;ps ax | grep nfcapd&#8217;</em> and tcpdump at Netflow collector Linux host.</p>
<p>If you can add anything &#8212; feel free to drop a comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2011/02/23/install-nfdump-and-nfsen-netflow-tools-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Namebench: cross-platform DNS benchmarking tool</title>
		<link>http://www.linuxscrew.com/2011/01/15/namebench-cross-platform-dns-benchmarking-tool/</link>
		<comments>http://www.linuxscrew.com/2011/01/15/namebench-cross-platform-dns-benchmarking-tool/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 20:47:56 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[applications]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=1157</guid>
		<description><![CDATA[It was long time ago when I wrote here last time but today I&#8217;d like to share the link to an application that would be appreciated by everyone starting from Linux starter wishing to speed up his/her Internet connection and ending with system administrators who may want to run benchmarks and run stress tests against [...]]]></description>
			<content:encoded><![CDATA[<p>It was long time ago when I wrote here last time but today I&#8217;d like to share the link to an application that would be appreciated by everyone starting from Linux starter wishing to speed up his/her Internet connection and ending with system administrators who may want to run benchmarks and run stress tests against certain DNS service(s). I am talking about <a href="http://code.google.com/p/namebench/"><strong>Namebench</strong></a>. This is cross platform tool written in Python that makes it possible to easily select the fastest DNS available in your area as well as to run benchmark tests directed to DNS entries.</p>
<p>All what you need to have to start using namebench is Python and Tk library, e.g. if you use Ubuntu or Debian just run the following command to meet namebench library requirements:</p>
<p><code>sudo apt-get install python python-tk -y</code></p>
<p>When done go to <a href="http://code.google.com/p/namebench/">namebench&#8217;s official website</a> and download the latest tarball from there. For example 1.3.1 is the latest version for today so you can download it directly from <a href="http://code.google.com/p/namebench/downloads/detail?name=namebench-1.3.1-source.tgz">here</a>. Or you can just take below steps:</p>
<p><code>cd /usr/src<br />
sudo -s<br />
wget http://code.google.com/p/namebench/downloads/detail?name=namebench-1.3.1-source.tgz<br />
tar -xvzf namebench-1.3.1-source.tgz<br />
cd namebench-1.3.1<br />
./namebench.py<br />
</code></p>
<p>Here you go:</p>
<p><img src="http://www.linuxscrew.com/wp-content/uploads/2011/01/namebench_001.png" alt="namebench screenshot" title="namebench screenshot" width="716" height="396" class="aligncenter size-full wp-image-1158" /></p>
<p>The application has the only button so I believe it won&#8217;t bring any problems even to Linux newbies <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2011/01/15/namebench-cross-platform-dns-benchmarking-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to monitor traffic at Cisco router using Linux (Netflow)</title>
		<link>http://www.linuxscrew.com/2010/11/25/how-to-monitor-traffic-at-cisco-router-using-linux-netflow/</link>
		<comments>http://www.linuxscrew.com/2010/11/25/how-to-monitor-traffic-at-cisco-router-using-linux-netflow/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 21:16:38 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[applications]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[distros]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[howtos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=1109</guid>
		<description><![CDATA[By default Cisco IOS doesn&#8217;t provide any traffic monitoring tools like iftop or iptraff available in Linux. While there are lots of proprietary solutions for this purpose including Cisco Netflow Collection, you are free to choose nfdump and nfsen open source software to monitor traffic of one or many Cisco routers and get detailed monitoring [...]]]></description>
			<content:encoded><![CDATA[<p>By default <strong>Cisco IOS</strong> doesn&#8217;t provide any <strong>traffic monitoring</strong> tools like <a href="http://www.ex-parrot.com/pdw/iftop/">iftop</a> or <a href="http://iptraf.seul.org/shots/iptraf-iptm1.gif">iptraff</a> available in <strong>Linux</strong>. While there are lots of proprietary solutions for this purpose including <a href="http://www.cisco.com/en/US/products/sw/netmgtsw/ps1964/index.html">Cisco Netflow Collection</a>, you are free to choose <a href="http://nfdump.sourceforge.net/"><strong>nfdump</strong></a> and <strong><a href="http://nfdump.sourceforge.net/">nfsen</a></strong> open source software to monitor traffic of one or many Cisco routers and get detailed monitoring data through your Linux command line or as graphs at absolutely no cost.</p>
<p>Below is beginner&#8217;s guide that helps to quickly deploy netflow collector and visualizer under Linux and impress everybody by cute and descriptive graphs like these:</p>
<p><center><img src="http://www.linuxscrew.com/wp-content/uploads/2010/11/nfsen1.png" alt="nfsen screen" title="nfsen screen" width="500" height="307" class="aligncenter size-full wp-image-1115" /></center></p>
<p>It is highly recommended to look through Netflow basics to get brief understanding of how it works before configuring anything. For example, <a href="http://www.cisco.com/en/US/prod/collateral/iosswrel/ps6537/ps6555/ps6601/prod_white_paper0900aecd80406232.html">here is Cisco&#8217;s document</a> that gives complete information about <a href="http://en.wikipedia.org/wiki/Netflow">Netflow</a>. In a few words to get started you should enable netflow exporting on Cisco router and point it to netflow collector running under Linux. Exported data will contain complete information about all packets the router has received/sent so nfdump and nfsen working under Linux will collect it and visualize to present you the graph like above example.</p>
<p><strong>Cisco Router Setup</strong></p>
<p>1. Enable flow export on ALL Cisco router&#8217;s interfaces that send and receive some traffic, here is an example:</p>
<pre>Router1# configure terminal
Router1(config)#interface FastEthernet 0/0
Router1(config-if)#ip route-cache flow input
Router1(config-if)#interface FastEthernet 0/1
Router1(config-if)#ip route-cache flow input
...</pre>
<p>2. Setup netflow export:</p>
<pre>Router1# configure terminal
Router1(config)#ip flow-export source FastEthernet0/0
Router1(config)#ip flow-export source FastEthernet0/1
Router1(config)#ip flow-export version 5
Router1(config)#ip flow-export destination 1.1.1.1 23456</pre>
<p>Where <em>1.1.1.1</em> is IP address of Linux host where you plan to collect and analyze netflow data. <em>23456</em> is port number of netflow collector running on Linux.</p>
<p><b>Linux Setup</b></p>
<p>1. Download and install nfdump.</p>
<pre>cd /usr/src/
wget http://sourceforge.net/projects/nfdump/files/stable/nfdump-1.6.2/nfdump-1.6.2.tar.gz/download
tar -xvzf nfdump-1.6.2.tar.gz
cd nfdump-1.6.2
./configure --prefix=/ --enable-nfprofile
make
make install
</pre>
<p>2. Download and install nfsen.</p>
<p>It requires web server with php module and <a href="http://www.mrtg.org/rrdtool/">RRD</a> so make sure you have the corresponding packages installed. I hope you&#8217;re running httpd with php already so below are rrd/perl related packages installation hints only.</p>
<p>Fedora/Centos/Redhat users should type this:</p>
<pre>yum install rrdtool rrdtool-devel rrdutils perl-rrdtool</pre>
<p>Ubuntu/Debian:</p>
<pre>aptitude install rrdtool librrd2-dev librrd-dev librrd4 librrds-perl librrdp-perl</pre>
<p>If you run some exotic Linux distribution just install everything that is related to rrd + perl.</p>
<p>At last, nfsen installation:</p>
<pre>cd /usr/src/
wget http://sourceforge.net/projects/nfsen/files/stable/nfsen-1.3.5/nfsen-1.3.5.tar.gz/download
tar -xvzf nfsen-1.3.5.tar.gz
cd nfsen-1.3.5
cp etc/nfsen-dist.conf etc/nfsen.conf
</pre>
<p>In order to continue you should edit file <em>etc/nfsen.conf</em> to specify where to install nfsen, web server&#8217;s username, its document root directory etc. That file is commented so there shouldn&#8217;t be serious problems with it.</p>
<p>One of the major sections of <em>nfsen.conf</em> is &#8216;Netflow sources&#8217;, it should contain exactly the same port number(s) you&#8217;ve configured Cisco with &#8212; recall &#8216;ip flow-export &#8230;&#8217; line where we&#8217;ve specified port 23456. E.g.</p>
<pre>%sources = (
    'Router1'    => { 'port' => '23456', 'col' => '#0000ff', 'type' => 'netflow' },
);</pre>
<p>Now it&#8217;s time to finish the installation:</p>
<pre>./install.pl etc/nfsen.conf</pre>
<p>In case of success you&#8217;ll see corresponding notification after which you will have to start nfsen daemon to get the ball rolling:</p>
<pre>/path/to/nfsen/bin/nfsen start</pre>
<p>From this point nfdump started collecting netflow data exported by Cisco router and nfsen is hardly working to visualize it &#8212; just open web browser and go to <em>http://linux_web_server/nfsen/nfsen.php</em> to make sure. If you see empty graphs just wait for a while to let nfsen to collect enough data to visualize it.</p>
<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2010/11/25/how-to-monitor-traffic-at-cisco-router-using-linux-netflow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The easiest way to split and merge pdf files in Ubuntu</title>
		<link>http://www.linuxscrew.com/2010/06/18/the-easiest-way-to-split-and-merge-pdf-files-in-ubuntu/</link>
		<comments>http://www.linuxscrew.com/2010/06/18/the-easiest-way-to-split-and-merge-pdf-files-in-ubuntu/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 06:09:17 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=1087</guid>
		<description><![CDATA[The easiest way to split, merge or edit pdf files in Ubuntu is to use pdftk utility. This rather old (latest version was released in 2006) but still simple and powerful program can be installed in Ubuntu (Debian or any deb-family Linux distribution) by the following command in terminal:
sudo aptitude install pdftk
(if you run Fedora, [...]]]></description>
			<content:encoded><![CDATA[<p>The easiest way to split, merge or edit pdf files in Ubuntu is to use <a href="http://www.accesspdf.com/pdftk/">pdftk utility</a>. This rather old (latest version was released in 2006) but still simple and powerful program can be installed in Ubuntu (Debian or any deb-family Linux distribution) by the following command in terminal:</p>
<p><code>sudo aptitude install pdftk</code><br />
(if you run Fedora, RedHat or CentOS use this one: <code>sudo yum install pdftk</code>)</p>
<p><strong>Split large pdf into many one-page files:</strong></p>
<p><code>pdftk largepdfile.pdf burst</code></p>
<p>(as the result you will get many small files like pg_0001.pdf, pg_0002.pdf and so on).</p>
<p><strong>Merge files into one PDF file:</strong></p>
<p><code>pdftk *.pdf cat output onelargepdfile.pdf</code></p>
<p>pdftk is extremely powerful and makes it possible to do almost anything with input pdf files. Thus above two commands are just examples showing how to split and merge pdf files in Ubuntu easily.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2010/06/18/the-easiest-way-to-split-and-merge-pdf-files-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Access to real Cisco routers and switches for free</title>
		<link>http://www.linuxscrew.com/2010/06/09/access-real-cisco-routers-and-switches-for-free/</link>
		<comments>http://www.linuxscrew.com/2010/06/09/access-real-cisco-routers-and-switches-for-free/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 06:54:15 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[cisco]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sites]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=1054</guid>
		<description><![CDATA[Preparing for Cisco certification exam and need real equipment required to accomplish all those CCNA or CCNP labs? That&#8217;s not a problem any more. This is due to availability of Packet Tracer for Linux and Community Lab hosted by people behind packetlife.net. As for Packet Tracer it supports Linux natively now &#8212; Cisco offers it [...]]]></description>
			<content:encoded><![CDATA[<p>Preparing for Cisco certification exam and need real equipment required to accomplish all those CCNA or CCNP labs? That&#8217;s not a problem any more. This is due to availability of <a href="http://www.cisco.com/web/learning/netacad/course_catalog/PacketTracer.html">Packet Tracer</a> for Linux and <strong>Community Lab</strong> hosted by people behind <a href="http://www.packetlife.net">packetlife.net</a>. As for Packet Tracer it supports Linux natively now &#8212; Cisco offers it as deb package for Ubuntu or Debian and there is no need to use Wine to get <a href="http://www.linuxscrew.com/2007/10/16/running-cisco-packet-tracer-in-linux/">Packet Tracer working in Linux</a>. Try searching the web for &#8220;packet tracer deb&#8221; and I am sure you&#8217;ll find where to download desired file shortly (we do not share pirated content here).</p>
<p>Anyways sometimes Packet Tracer as like as <a href="http://dynagen.org/">dynamips</a>/<a href="http://www.gns3.net">gns3</a> are not a panacea when it&#8217;s necessary to emulate mid-sized network or test some specific ios features on <strong>real Cisco devices</strong>. There are several options: the first and the easiest one means to buy Cisco device. But we all know that Cisco&#8217;s pricing policy is far away from democratic in application to individual users so even used or refurbished Cisco router/switch will cost enough to think about another option. Second option is to schedule access to <a href="http://packetlife.net/lab/"><strong>Community Lab at packetlife.net</strong></a>. Nice to know the access to it is absolutely free so anyone can get logon to Cisco routers, switches or ASAs once user reached his/her timeslot. Here is the list of hardware you can have access to (there are multiple devices of the same model):</p>
<p><strong><a href="http://www.cisco.com/en/US/products/ps6120/index.html">Cisco ASA 5505</a><br />
<a href="http://www.cisco.com/en/US/products/ps5881/index.html">Cisco 2811</a> (2xWIC-2T)<br />
<a href="http://www.www.cisco.com/en/US/products/ps5875/" class="broken_link" >Cisco 1841</a> (1xWIC-2T)<br />
<a href="http://www.cisco.com/en/US/products/hw/switches/ps646/index.html"> Cisco Catalyst 3550-24</a></strong></p>
<p>Not bad for free lab as for me. The lab is broken into two blocks so user can reserve only one block or both blocks simultaneously. This is to make it possible to access the lab by multiple users simultaneously. Devices are connected to each other according to predefined topology &#8212; see separate diagrams for Ethernet and Serial connections below (they are split to prevent overhead on the graph I guess). All documentation as well as FAQs can be found here: <a href="http://packetlife.net/wiki/packet-life-community-lab/">here</a> and <a href="http://packetlife.net/wiki/community-lab-faq/">here</a>. Thanks to <a href="http://packetlife.net/users/stretch/">Jeremy Stretch</a>.</p>
<p style="text-align: center;"><a href="http://packetlife.net/media/wiki/attachments/6/3/lab_topology_ethernet.png"><img class="aligncenter" title="packetlife community lab ethernet topology" src="/files/lab_topology_ethernet.png" alt="packetlife community lab ethernet topology" /></a></p>
<p style="text-align: center;">&nbsp;</p>
<p style="text-align: center;"><a href="http://packetlife.net/media/wiki/attachments/7/5/lab_topology_serial.png"><img class="aligncenter" title="packetlife community lab serial topology" src="/files/lab_topology_serial.png" alt="packetlife community lab serial topology" /></a></p>
<p>P.S. By the way if you can share any other similar labs allowing people on the web to access Cisco (or some other networking devices) &#8212; you are welcome to share this information here. Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2010/06/09/access-real-cisco-routers-and-switches-for-free/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>16 GB encrypted candy file</title>
		<link>http://www.linuxscrew.com/2010/05/05/16-gb-encrypted-candy/</link>
		<comments>http://www.linuxscrew.com/2010/05/05/16-gb-encrypted-candy/#comments</comments>
		<pubDate>Wed, 05 May 2010 15:01:50 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[backup]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[distros]]></category>
		<category><![CDATA[docs]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=994</guid>
		<description><![CDATA[Update: as far as cryptoloop is vulnerable and is not maintained I don&#8217;t recommend using below approach for creating encrypted for for those of you who require strong security. Use truecrypt to create encrypted filesystem within a file instead.
Today it came to my mind that it is time to make sensitive information stored on my [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;"><strong>Update</strong></span>: as far as <a href="http://www.spiritus-temporis.com/cryptoloop/">cryptoloop</a> is vulnerable and is not maintained I don&#8217;t recommend using below approach for creating encrypted for for those of you who require strong security. Use <a href="http://www.linuxscrew.com/2010/05/08/create-encrypted-filesystem-within-a-file-truecrypt-way/">truecrypt to create encrypted filesystem within a file</a> instead.</p>
<p><img class="alignright" src="/files/passwords.txt.png" alt="passwords.txt" />Today it came to my mind that it is time to make sensitive information stored on my usb flash drive encrypted but still transportable and easy to use. But I don&#8217;t want to have whole my 32 GB usb drive fully encrypted using <em><a href="http://www.truecrypt.org/">truecrypt</a></em> or something similar. It is just toooo slow. I also don&#8217;t want to use <a href="http://en.wikipedia.org/wiki/GNU_Privacy_Guard">GPG</a> for uncompressing files and directories every time I would like to read them and then create new GPG compressed file every time I save changes. This eats too much of my time and system resources. At the same time it is necessary to be able to use  that usb drive under windows, mac, linux whatever (read/write files) but still have my directory structure with <strong>sensitive files encrypted</strong>. Here is the solution: create encrypted <strong>filesystem within a file</strong> named, say, 16GB.candy.bin that could be stored on regular windows formatted usb flash drive and then mounted under Linux <strong>using the password</strong>.</p>
<p>When it becomes necessary I can mount that 16GB.candy.bin as the regular ext3 filesystem with all those stuff like permissions, ownership etc. that is available on ext3 but not in <a href="http://en.wikipedia.org/wiki/File_Allocation_Table">FAT</a> or <a href="http://en.wikipedia.org/wiki/Ntfs">NTFS</a>. On my windows formatted flash drive candy takes only 16 GB so I can use the rest of space to store not so sensitive information like mp3, movies or photos. Moreover I <strong> </strong> on windows or linux to read it.</p>
<p>Let&#8217;s create that 16GB.candy.bin file with encrypted <strong><a href="http://en.wikipedia.org/wiki/Ext3">ext3</a></strong> filesystem (read below explanations below carefully before just to copy/paste commands into CLI):</p>
<p><code>[root@artemn root]# cd /path/to/candy/</p>
<p>[root@artemn root]# modprobe cryptoloop</p>
<p>[root@artemn root]# modprobe aes</p>
<p>[root@artemn root]# dd if=/dev/urandom of=16GB.candy.bin bs=1048576 count=16000</p>
<p>[root@artemn root]# losetup -e aes /dev/loop0 16GB.candy.bin</p>
<p>[root@artemn root]# mkfs.ext3 /dev/loop0</p>
<p>[root@artemn root]# tune2fs -i 0 -c 0 /dev/loop0</code></p>
<p>Here are some points: using above commands we create encrypted file of 16 GB so if you need to have more or less just change &#8220;count=16000&#8243; in <em>dd</em> line. &#8220;count=16000&#8243; means 16GB so &#8220;count=20&#8243; means 20MB. Path &#8216;/path/to/candy/&#8217; is for example only so you should change it to real directory that is able to host encrypted file (16 GB in above example). Command <em>losetup</em> is present in most Linux distributions (btw I recommend <strong><a href="http://www.ubuntu.com">Ubuntu</a> </strong>especially newly released <a href="http://en.wikipedia.org/wiki/Lucid_Lynx#Ubuntu_10.04_LTS_.28Lucid_Lynx.29">Lucid Lynx</a>) but if it is not use your disro&#8217;s packet manager to install it or compile from sources (for super geeks only, <a href="http://en.wikipedia.org/wiki/Stallman">Mr. Stallman</a> if you read this article &#8212; Hello). Reader, you can replace &#8220;/dev/urandom&#8221; in <em>dd</em> line with &#8220;/dev/zero&#8221; that will make that command to finish faster but will lower security level of resulting file (read about <a href="http://en.wikipedia.org/wiki/Advanced_Encryption_Standard">AES</a> for better understanding). You will need to enter the password when running <em>losetup</em> command so make sure it safe and long enough like &#8216;6U2sAsR37Hn8122dGsaPrew1twt&#8217; but not &#8216;abc123&#8242; or &#8216;iloveyou&#8217;.</p>
<p>Once commands are done you will get 16GB.candy.bin containing encrypted ext3 filesystem. You can store this file where ever you want, say, on a flash drive. If you loose it nobody won&#8217;t be able to open it until he (or she!) <a href="http://aceontech.com/2008/03/29/to-crack-17-character-aes-password-100-years-and-1-billion-dollars/">cracked AES encryption</a> (use long passwords to prevent this). As the next step it is required to mount filesystem and store some files/directories in it:</p>
<p><code>[root@artemn root]# mkdir -p /mnt/candy</p>
<p>[root@artemn root]# cd /path/to/candy/</p>
<p>[root@artemn root]# mount -t ext3 -o loop,encryption=aes 16GB.candy.bin /mnt/candy</p>
<p>[root@artemn root]# cd /mnt/candy</p>
<p>[root@artemn root]# #save files, edit them, view or anything you want</p>
<p>[root@artemn root]# cd /</p>
<p>[root@artemn root]# umount /mnt/candy</code></p>
<p>When you unmount 16GB.candy.bin the changes are already saved there so it&#8217;s not required to compress and encrypt anything unlike with GPG.</p>
<p>P.S. This post is inspired by <a href="http://nst.sourceforge.net/nst/docs/user/ch04s04.html">Loopback tricks</a> article. Thanks to the author. Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2010/05/05/16-gb-encrypted-candy/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Top 3 Linux HTML editors</title>
		<link>http://www.linuxscrew.com/2009/07/28/visual-linux-html-editor/</link>
		<comments>http://www.linuxscrew.com/2009/07/28/visual-linux-html-editor/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 14:48:23 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xfce]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=842</guid>
		<description><![CDATA[This post is dedicated to quality html editors for Linux and Ubuntu operating system in particular. You may think that nowadays nobody uses offline editors as there are so many content management systems (CMS) like Drupal (my favourite one), Wordpress, Joomla etc. which contain embedded visual html editors. But today I made sure myself that [...]]]></description>
			<content:encoded><![CDATA[<p>This post is dedicated to quality <strong>html editors for Linux</strong> and <strong>Ubuntu</strong> operating system in particular. You may think that nowadays nobody uses offline editors as there are so many content management systems (CMS) like <a href="http://www.drupal.org">Drupal</a> (my favourite one), <a href="http://www.wordpress.org">Wordpress</a>, <a href="http://www.joomla.org/">Joomla</a> etc. which contain embedded <strong>visual html editors</strong>. But today I made sure myself that sometimes it&#8217;s real pain to draw a 10&#215;20 table using Wordpress&#8217;s editor&#8230;</p>
<p>Text editors like <em>gedit</em>, <em>emacs</em>, <em>nano</em> or <em>vi</em> will certainly live forever but thankfully there are numerous <strong>visual html editors</strong> for my Ubuntu <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  They are sometimes called <strong>WYSIWYG editors</strong>, it mean &#8220;What You See Is What You Get&#8221;.</p>
<p>1. <strong><a href="http://quanta.kdewebdev.org/" class="broken_link" >Quanta Plus</a></strong></p>
<p>This is <strong>KDE/Qt visual html editor</strong> available as binary package for numerous Linux distributions<br />
including Debian and Ubuntu. From developers&#8217; site:</p>
<blockquote><p><img class="alignright" title="Quanta Plus Logo" src="http://www.linuxscrew.com/files/Quanta_logo.png" alt="" width="48" height="48" />Quanta Plus is a highly stable and feature rich web development environment.<br />
The vision with Quanta has always been to start with the best architectural<br />
foundations, design for efficient and natural use and enable maximal user<br />
extensibility.</p></blockquote>
<p>In order to install it in Debian/Ubuntu run the following CLI command:</p>
<p><code>sudo apt-get install quanta</code></p>
<p>Fedora, Centos, Redhat users type this:</p>
<p><code>sudo yum install kdewebdev</code></p>
<p>I found Quanta html editor extremely useful, this is just an outstanding application of this<br />
field.</p>
<p>2. <strong><a href="http://bluefish.openoffice.nl/">Bluefish</a></strong></p>
<blockquote><p><img class="alignright" title="Bluefish HTML editor logo" src="http://www.linuxscrew.com/files/bluefish_logo.png" alt="Bluefish HTML editor logo" />Bluefish is a powerful editor targeted towards programmers and webdesigners,<br />
with many options to write websites, scripts and programming code. Bluefish<br />
supports many programming and markup languages, and it focuses on editing<br />
dynamic and interactive websites.</p></blockquote>
<p>I found this really <strong>versatile html editor</strong>. Besides <strong>HTML/CSS</strong> it handles <strong>C</strong>,<br />
<strong>Java, Perl, Python, XML</strong> and others.</p>
<p>Ubuntu and Debian users type:</p>
<p><code>sudo apt-get install bluefish</code></p>
<p>Fedora/Redhat/Centos:</p>
<p><code>sudo yum install bluefish</code></p>
<p>Gentoo:</p>
<p><code>emerge bluefish</code></p>
<p>3. <strong><a href="http://www.screem.org/">Screem</a></strong></p>
<blockquote><p><img class="alignright" title="Screem HTML editor logo" src="http://www.linuxscrew.com/files/screem-logo.png" alt="" width="253" height="64" />SCREEM is a web development environment. It&#8217;s purpose is to increase<br />
productivity when constructing a site, by providing quick access to commonly<br />
used features. While it is written for use with the GNOME desktop environment<br />
in mind it does not specifically require you to be running it, just have the<br />
libraries installed.</p></blockquote>
<p>This is one of the most user-friendly <strong>Gnome HTML editor</strong>. Its simple interface<br />
brings extremely powerfull HTML editor so if like minimalistic design Screem<br />
is your choice.</p>
<p>Update: below is the bottom line from <a href="http://www.linux.com">Linux.com</a>&#8217;s review of <a href="http://linux.com/archive/feature/130601" class="broken_link" >three Linux HTML editors</a> (Quanta Plus, Blowfish,<br />
Screem). I found that review after I wrote this post.</p>
<blockquote>
<ul>
<li>If you use <a href="http://www.gnome.org">GNOME</a>, use Screem. It&#8217;s a fast, simple, and powerful tool for web editing. However, it does not have the large feature sets that Bluefish and Quanta Plus have, especially for languages other than those directly related to Web page editing.</li>
<li>If you use GNOME and need the more powerful features of Quanta Plus, load the required libraries and run it.</li>
<li>If you use <a href="http://www.kde.org">KDE</a> and want a code editor, choose Quanta Plus. Ignore the WYSIWYG capabilities and take advantage of the tremendous editing capabilities, especially for CSS style sheets.</li>
<li>If you use <a href="http://www.xfce.org">Xfce</a>, Quanta Plus should run fine. Screem would still require loading additional libraries.</li>
<li>Finally, if you use GNOME, find that Screem does not meet all your needs, and you don&#8217;t want to bother with loading the KDE-native Quanta Plus, then load Bluefish. It is nearly as capable as Quanta Plus, but will run well without a lot of fussing with libraries.</li>
</ul>
</blockquote>
<p><!-- INFOLINKS_OFF -->
<p style="padding-top: 25px; padding-bottom: 25px;"><font size="-2"><strong>Information improvisation: </strong>Pass your <a href="http://www.actualtests.com/exam-70-293.htm">70-293</a> exams in first try by using our guaranteed <a href="http://www.certkiller.com/exam-CISSP.htm">cissp exam questions</a> &#038; <a href="http://www.examsheets.com/exam/HP0-Y31.htm">HP0-Y31</a> tutorials and best quality <a href="http://www.testkingsite.com/microsoft/70-686.html">70-686</a> dumps along with <a href="http://www.testkingprep.com/HP0-S23.html" class="broken_link" >HP0-S23</a>.<br />
</font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2009/07/28/visual-linux-html-editor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sort CLI output by line length</title>
		<link>http://www.linuxscrew.com/2009/04/14/sort-cli-output-by-line-length/</link>
		<comments>http://www.linuxscrew.com/2009/04/14/sort-cli-output-by-line-length/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 14:18:28 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[applications]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[docs]]></category>
		<category><![CDATA[faq]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[humour]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=767</guid>
		<description><![CDATA[Want to sort file contents by each line&#8217;s lenght? No problems:
artemn@artemn-laptop:~$ cat /etc/passwd &#124; awk '{print length, $0}' &#124; sort -n &#124; awk '{$1=""; print $0 }'

bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
root:x:0:0:root:/root:/bin/bash
proxy:x:13:13:proxy:/bin:/bin/sh
mail:x:8:8:mail:/var/mail:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
ntp:x:110:120::/home/ntp:/bin/false
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
ftp:x:111:65534::/home/ftp:/bin/false
games:x:5:60:games:/usr/games:/bin/sh
klog:x:102:103::/home/klog:/bin/false
man:x:6:12:man:/var/cache/man:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
dhcp:x:100:101::/nonexistent:/bin/false
news:x:9:9:news:/var/spool/news:/bin/sh
saned:x:120:131::/home/saned:/bin/false
syslog:x:101:102::/home/syslog:/bin/false
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
libuuid:x:112:121::/var/lib/libuuid:/bin/sh
messagebus:x:103:109::/var/run/dbus:/bin/false
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
sshd:x:109:65534::/var/run/sshd:/usr/sbin/nologin
Debian-exim:x:117:128::/var/spool/exim4:/bin/false
artemn:x:1000:1000:artemn,,,:/home/artemn:/bin/bash
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
mysql:x:119:130:MySQL Server,,,:/var/lib/mysql:/bin/false
gdm:x:108:118:Gnome Display Manager:/var/lib/gdm:/bin/false
hplip:x:104:7:HPLIP system user,,,:/var/run/hplip:/bin/false
pulse:x:113:123:PulseAudio daemon,,,:/var/run/pulse:/bin/false
polkituser:x:114:127:PolicyKit,,,:/var/run/PolicyKit:/bin/false
avahi:x:106:114:Avahi mDNS daemon,,,:/var/run/avahi-daemon:/bin/false
asterisk:x:118:129:Asterisk PBX daemon,,,:/var/lib/asterisk:/bin/false
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
haldaemon:x:107:116:Hardware abstraction layer,,,:/home/haldaemon:/bin/false
landscape:x:115:65534:Landscape Client Daemon,,,:/var/lib/landscape:/bin/false
avahi-autoipd:x:105:113:Avahi autoip daemon,,,:/var/lib/avahi-autoipd:/bin/false
chipcard:x:116:119:Chipcard-Tools Daemon Account,,,:/var/run/chipcard:/bin/false
For reverse sort, use the following [...]]]></description>
			<content:encoded><![CDATA[<p>Want to sort file contents by each line&#8217;s lenght? No problems:</p>
<pre>artemn@artemn-laptop:~$ cat /etc/passwd | awk '{print length, $0}' | sort -n | awk '{$1=""; print $0 }'</pre>
<p><span id="more-767"></span>
<pre>bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
root:x:0:0:root:/root:/bin/bash
proxy:x:13:13:proxy:/bin:/bin/sh
mail:x:8:8:mail:/var/mail:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
ntp:x:110:120::/home/ntp:/bin/false
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
ftp:x:111:65534::/home/ftp:/bin/false
games:x:5:60:games:/usr/games:/bin/sh
klog:x:102:103::/home/klog:/bin/false
man:x:6:12:man:/var/cache/man:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
dhcp:x:100:101::/nonexistent:/bin/false
news:x:9:9:news:/var/spool/news:/bin/sh
saned:x:120:131::/home/saned:/bin/false
syslog:x:101:102::/home/syslog:/bin/false
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
libuuid:x:112:121::/var/lib/libuuid:/bin/sh
messagebus:x:103:109::/var/run/dbus:/bin/false
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
sshd:x:109:65534::/var/run/sshd:/usr/sbin/nologin
Debian-exim:x:117:128::/var/spool/exim4:/bin/false
artemn:x:1000:1000:artemn,,,:/home/artemn:/bin/bash
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
mysql:x:119:130:MySQL Server,,,:/var/lib/mysql:/bin/false
gdm:x:108:118:Gnome Display Manager:/var/lib/gdm:/bin/false
hplip:x:104:7:HPLIP system user,,,:/var/run/hplip:/bin/false
pulse:x:113:123:PulseAudio daemon,,,:/var/run/pulse:/bin/false
polkituser:x:114:127:PolicyKit,,,:/var/run/PolicyKit:/bin/false
avahi:x:106:114:Avahi mDNS daemon,,,:/var/run/avahi-daemon:/bin/false
asterisk:x:118:129:Asterisk PBX daemon,,,:/var/lib/asterisk:/bin/false
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
haldaemon:x:107:116:Hardware abstraction layer,,,:/home/haldaemon:/bin/false
landscape:x:115:65534:Landscape Client Daemon,,,:/var/lib/landscape:/bin/false
avahi-autoipd:x:105:113:Avahi autoip daemon,,,:/var/lib/avahi-autoipd:/bin/false
chipcard:x:116:119:Chipcard-Tools Daemon Account,,,:/var/run/chipcard:/bin/false</pre>
<p>For reverse sort, use the following command:</p>
<pre>cat /etc/passwd | awk '{print length, $0}' | sort -rn | awk '{$1=""; print $0 }'</pre>
<p>Source: <a href="http://www.opennet.ru">www.opennet.ru</a></p>
<p><!-- INFOLINKS_OFF -->
<p style="padding-top: 25px; padding-bottom: 25px;"><font size="-2"><strong>Information improvisation: </strong>Check out our latest <a href="http://www.actualtests.com/exam-70-620.htm">70-620</a> dumps &#038; <a href="http://www.certkiller.com/CCDA-certification-training.htm">ccda certification</a> written by our <a href="http://www.examsheets.com/exam/646-046.htm">646-046</a> certified teams to help you in pass real <a href="http://www.testkingsite.com/hp/HP2-Z16.html">HP2-Z16</a> exam &#038; <a href="http://www.testkingprep.com/NS0-153.html" class="broken_link" >NS0-153</a> dumps.<br />
</font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2009/04/14/sort-cli-output-by-line-length/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mount remote filesystem via ssh protocol using sshfs and fuse [Fedora/RedHat/Debian/Ubuntu way]</title>
		<link>http://www.linuxscrew.com/2009/03/10/mount-remote-filesystem-via-ssh-protocol-using-sshfs-and-fuse-fedoraredhatdebianubuntu-way/</link>
		<comments>http://www.linuxscrew.com/2009/03/10/mount-remote-filesystem-via-ssh-protocol-using-sshfs-and-fuse-fedoraredhatdebianubuntu-way/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 17:56:18 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[docs]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[howtos]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=674</guid>
		<description><![CDATA[




Imagine the following situation: you have to compile some Linux/Unix application or kernel module that requires kernel source present at your hard drive, say, in /usr/src/kernels/kernel-2.6.21-i386/ or elsewhere. But there is not enough disk space to copy these sources or install kernel-devel or linux-source packages (in Fedora/RedHat or Ubuntu/Debian distros respectively)&#8230; Sounds familiar? Believe me, [...]]]></description>
			<content:encoded><![CDATA[<div class="mceTemp">
<dl id="attachment_673" class="wp-caption alignright" style="width: 138px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-673" title="sshfs" src="http://www.linuxscrew.com/wp-content/uploads/2009/03/sshfs.png" alt="sshfs" width="128" height="128" /></dt>
</dl>
</div>
<p>Imagine the following situation: you have to compile some Linux/Unix application or kernel module that requires kernel source present at your hard drive, say, in /usr/src/kernels/kernel-2.6.21-i386/ or elsewhere. But there is not enough disk space to copy these sources or install kernel-devel or linux-source packages (in Fedora/RedHat or Ubuntu/Debian distros respectively)&#8230; Sounds familiar? Believe me, sometimes it happens <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>As a solution you can <strong>mount</strong> the directory of some remote PC that contains needed kernel source. It can be done via several protocols like smb, ftp etc. In this article we will mount remote directory using <strong>ssh protocol</strong> that is one the most popular for remote and secure access to <strong>Linux</strong> boxes over the network.</p>
<p>Below are the steps which should be taken to get the ball rolling. We need two packages: <strong>sshfs</strong> and <strong>fuse-utils</strong>.</p>
<p><img class="size-full wp-image-683 alignright" title="ssh" src="http://www.linuxscrew.com/wp-content/uploads/2009/03/ssh.jpg" alt="ssh" width="264" height="415" /><strong>1.</strong> Install necessary packages:</p>
<p>a. Ubuntu/Debian:</p>
<p><code>sudo aptitude install fuse-utils sshfs</code></p>
<p>b. Fedora/Centos/RedHat:</p>
<p><code>yum install fuse-sshfs fuse fuse-libs</code></p>
<p>c. Other Linux: download and compile sshfs/fuse from <a href="http://fuse.sourceforge.net/sshfs.html">sources</a></p>
<p><strong>2.</strong> Check that kernel module <code>fuse</code> is loaded:</p>
<p><code>lsmod | grep fuse</code></p>
<p>There should be the line containing &#8220;fuse&#8221; in the output (of not try <code>modprobe fuse</code>).</p>
<p><strong>3.</strong> Mount remote filesystem using something like this (two commands):</p>
<p><code>mkdir -p /mnt/sshfs/</code><br />
<code>sshfs remote-user@remote-machine:/some/directory /mnt/sshfs</code></p>
<p>where <em>remote-user</em> is the username allowed to login <em>remote-machine</em> via ssh protocol. It will ask you to type the password so just type it and press return <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>4.</strong> That&#8217;s it. Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2009/03/10/mount-remote-filesystem-via-ssh-protocol-using-sshfs-and-fuse-fedoraredhatdebianubuntu-way/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Open .docx documents in Linux (OpenOffice)</title>
		<link>http://www.linuxscrew.com/2008/12/15/open-docx-documents-in-linux-openoffice/</link>
		<comments>http://www.linuxscrew.com/2008/12/15/open-docx-documents-in-linux-openoffice/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 20:13:23 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[applications]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[distros]]></category>
		<category><![CDATA[docs]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[howtos]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[suse]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=623</guid>
		<description><![CDATA[Well, as for now it is not a problem anymore to open Microsoft Office 2007 .docx documents in any Linux distribution coming with OpenOffice suit. It may be Ubuntu (Feisty, Gutsy, Interpid whatever), almost any version of Fedora/RedHat/Centos, *SUSE, Mandriva and of course Debian (as per my personal opinion it&#8217;s the best one).
What is .docx [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">Well, as for now it is not a problem anymore to open <a href="http://office.microsoft.com/">Microsoft Office 2007</a> .docx documents in any Linux distribution coming with <a href="http://openoffice.org">OpenOffice</a> suit. It may be Ubuntu (Feisty, Gutsy, Interpid whatever), almost any version of Fedora/RedHat/Centos, *SUSE, Mandriva and of course Debian (as per my personal opinion it&#8217;s the best one).</p>
<p style="text-align: left;">What is .docx actually? It&#8217;s Microsoft&#8217;s file format representing word processor documents and named <a href="http://en.wikipedia.org/wiki/Office_Open_XML">OpenXML</a> (as an attempt to create open and free international standard). Today .docx is default format for Microsoft&#8217;s word processor <a href="http://www.microsoft.com/word/">Word</a>.</p>
<p style="text-align: left;">There are myriads of online converters between OpenXML and OpenOffice formats including .docx, .xlsx, .odt and many etc but sometimes it&#8217;s much more better to just open received .docx file in Linux offline (if there is temporarily no Internet connection or for security/private reasons etc).</p>
<p style="text-align: left;">So, just download the following package to certain directory like /usr/src, here are the commands to do it:</p>
<p style="text-align: left;"><code>1. cd /usr/src<br />
2. sudo wget http://blog.mypapit.net/imej/odf_filter.tar.bz2</code></p>
<p style="text-align: left;">The next step is to unpack the contents of the archive (<a href="http://howto.wikia.com/wiki/Howto_untar_a_tar_file_or_gzip-bz2_tar_file">.tar.bz2</a> is definitely well compressed file) and copy 3 files to OpenOffice&#8217;s system directories:</p>
<p style="text-align: left;"><code>3. sudo tar -xvjf odf_filter.tar.bz2<br />
4. sudo cp OdfConverter /usr/lib/openoffice/program/</code><br />
<code>5. sudo cp MOOXTypeDetection.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types/<br />
6. sudo cp MOOXFilter_cpp.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter/</code></p>
<p style="text-align: left;">As you can see from picture below now it&#8217;s possible to natively open .docx files in openoffice under Linux. Of course such &#8220;native&#8221; support may imply some artefacts in opened files due to file formats incompatibility so it&#8217;s also a good option to ask your friends to convert .docs into .pdf before sending you <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><center><img title="openoffice_openxml" src="http://www.linuxscrew.com/wp-content/uploads/2008/12/openoffice_openxml-300x244.png" alt="openoffice openxml .docx" width="300" height="244" /></center></p>
<p style="text-align: left;">P.S. Thanks to guys from <a href="http://blog.mypapit.net/2007/09/how-to-open-microsoft-openxml-docx-documents-in-openoffice.html">mypapit</a>.</p>
<p style="text-align: left;">P.S. Here are several online converters .doc(x) &lt;-&gt; .odf &lt;-&gt; .pdf:</p>
<p style="text-align: left;">1. <a href="http://www.zamzar.com/">ZAMZAR</a> (possibly the best converter), 2. <a href="http://docx-converter.com/">http://docx-converter.com/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/12/15/open-docx-documents-in-linux-openoffice/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

