<?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>Ionut's WebSpace &#187; *BSD</title>
	<atom:link href="http://www.vioan.ro/wp/category/bsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vioan.ro/wp</link>
	<description>Exploring Creativity Is My Passion</description>
	<lastBuildDate>Wed, 05 Oct 2011 14:28:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>My ZFS Home NAS/HTPC Box Build</title>
		<link>http://www.vioan.ro/wp/2010/01/19/my-zfs-home-nashtpc-box-build/</link>
		<comments>http://www.vioan.ro/wp/2010/01/19/my-zfs-home-nashtpc-box-build/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 13:43:19 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Apple/OS X]]></category>
		<category><![CDATA[HPC]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[HAS]]></category>
		<category><![CDATA[HTPC]]></category>
		<category><![CDATA[ZFS]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=408</guid>
		<description><![CDATA[


I was looking to build a NAS (Network Attached Storage) to store all my music, photos, files, e-books and important work related files. I also wanted to have a central place for my backups and to be used sometimes as HTPC. So, a &#8220;two in one&#8221; solution (NAS and HTPC).
Even if there are many ready-to-go [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking to build a NAS (Network Attached Storage) to store all my music, photos, files, e-books and important work related files. I also wanted to have a central place for my backups and to be used sometimes as HTPC. So, a &#8220;two in one&#8221; solution (NAS and HTPC).</p>
<p>Even if there are many ready-to-go NAS solutions I decided to build myself one and having the HTPC on the same machine. Here is mainly what I wanted:</p>
<ul>
<li>low powered system (64-bit microprocessor)</li>
<li>used as a media server (stream movies/music)</li>
<li>to be used sometimes as a HTPC, so I wanted HDMI (for HD video)</li>
<li>ZFS file system with all its goodies</li>
<li>gigabit ethernet interface to take advantage of the network bandwidth</li>
<li>nice chassis with four hot-swappable 3.5&#8243; SATA HDD (I am using just two HDD right now because the motherboard has only 3 SATA)</li>
</ul>
<p>My NAS/HTPC specs are here:</p>
<ul>
<li> <a href="http://www.chenbro.com/corporatesite/products_detail.php?sku=79">Chenbro ES34069 chassis</a></li>
<li><a href="http://www.zotacusa.com/zotac-ionitx-a-u-atom-n330-1-6ghz-dual-core-mini-itx-intel-motherboard.html">Zotac ION-ITX-A Wi-Fi Dual Core 1.6GHz</a> motherboard</li>
<li>2 GB Kingston DDR2 800MHz RAM</li>
<li>2 x Western Digital Caviar Green 1.0 TB</li>
<li>1x Toshiba 2.5&#8243; HDD 100 GB (for OS)</li>
</ul>
<p><img class="aligncenter size-medium wp-image-410" title="home_server1" src="http://www.vioan.ro/wp/wp-content/uploads/2010/01/home_server1-300x225.jpg" alt="home_server1" width="300" height="225" /><img class="aligncenter size-medium wp-image-411" title="es34069" src="http://www.vioan.ro/wp/wp-content/uploads/2010/01/es34069-214x300.jpg" alt="es34069" width="214" height="300" /></p>
<p>I choosed <a href="http://www.freebsd.org"><strong>FreeBSD</strong></a> as operating system, because I am more familiar with it than with Solaris. I recompiled <strong>mplayer</strong> with <strong>vdpau</strong> support (for HD video).</p>
<p>Here are the steps:</p>
<ul>
<li>download the latest mplayer snapshot from their website</li>
<li>download these two files (<a href="ftp://download.nvidia.com/XFree86/vdpau/include/vdpau/">ftp://download.nvidia.com/XFree86/vdpau/include/vdpau/</a>) and put them in <em>/usr/include/vdpau</em> (create that directory)</li>
<li>./configure &#8211;disable-x264-lavc &#8211;disable-x264 -–enable-vdpau</li>
<li>gmake</li>
<li>gmake install</li>
<li>check to see if you have vdpau support with: &#8220;<em>mplayer -vo help</em>&#8220;. If you see something like: &#8220;<em>vdpau VDPAU with X11</em>&#8221; then everything is ok.</li>
</ul>
<p>Some additional steps/configs:</p>
<ul>
<li>add zfs_enable=&#8221;YES&#8221; in /etc/rc.conf</li>
<li>add  the following in /boot/loader.conf:</li>
</ul>
<p>vm.kmem_size_max=&#8221;1024M&#8221;</p>
<p>vm.kmem_size=&#8221;1024M&#8221;</p>
<p>vfs.zfs.arc_max=&#8221;100M&#8221;</p>
<ul>
<li>zpool create storage mirror ad4 ad10</li>
<li>zfs create storage/archives</li>
<li>zfs create storage/backups</li>
<li>install samba, duplicity, rsnapshots, rsync, unison, ushare, &#8230;</li>
</ul>
<p>Right now, everything is working very well, I am very happy with the setup, but I still didn&#8217;t manage to have sound over HDMI, so, a temporary solution will be to connect an additional speaker system to it.</p>
<p>I don&#8217;t need any fancy remote control, I have a logitech wifi keyboard/mouse, because I like to be able to read the news in the morning (during cofee time) using google reader</p>
<p>The total power consumption is about 35W idle / 45W load which is pretty good, I think.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2010/01/19/my-zfs-home-nashtpc-box-build/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Yahoo Mail and free IMAP</title>
		<link>http://www.vioan.ro/wp/2009/08/26/yahoo-mail-and-free-imap/</link>
		<comments>http://www.vioan.ro/wp/2009/08/26/yahoo-mail-and-free-imap/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 14:31:09 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Apple/OS X]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[yahoo]]></category>
		<category><![CDATA[zimbra]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=400</guid>
		<description><![CDATA[If you are using yahoo mail, like me, then you missed for a long time IMAP access for your inbox. They provide just POP3 access and  I don&#8217;t want that. I would like to have/access the messages also via web interface and also to have them on my computer for offline access. So, the solution [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using yahoo mail, like me, then you missed for a long time IMAP access for your inbox. They provide just POP3 access and  I don&#8217;t want that. I would like to have/access the messages also via web interface and also to have them on my computer for offline access. So, the solution is <a href="http://www.zimbra.com/products/desktop.html">Zimbra Desktop</a> and you can use it on Windows, Linux or Mac.</p>
<p>&#8220;Zimbra software is open source, meaning we make both the software code and the application itself available to anyone at no charge. Also, Zimbra Desktop is a full version; there are no missing features or catches&#8221;</p>
<p>For a complete list of features see this link: <a href="http://www.zimbra.com/products/desktop_features.html">http://www.zimbra.com/products/desktop_features.html</a></p>
<p>If you have any issue with it you can find the answer on their <a href="http://wiki.zimbra.com/index.php?title=Zimbra_Desktop">wiki</a>.</p>
<p>Here is just a screenshot:</p>
<p style="text-align: center;"><img class="aligncenter size-medium wp-image-401" title="zimbra_desktop" src="http://www.vioan.ro/wp/wp-content/uploads/2009/08/zimbra_desktop-300x193.png" alt="zimbra_desktop" width="300" height="193" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2009/08/26/yahoo-mail-and-free-imap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenSUSE 11.1 and Plesk 9.2.1 update</title>
		<link>http://www.vioan.ro/wp/2009/07/10/opensuse-111-and-plesk-921-update/</link>
		<comments>http://www.vioan.ro/wp/2009/07/10/opensuse-111-and-plesk-921-update/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 09:47:10 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=392</guid>
		<description><![CDATA[After more than three years of using Suse 9.3 with Plesk 8.1 on one of my VPS, I decided that it is time to update to OpenSUSE 11.1 with Plesk 9.2.1 control panel. The update process went very well, here are the steps involved:
1. create a full backup of your vps (databases, websites, accounts, emails, [...]]]></description>
			<content:encoded><![CDATA[<p>After more than three years of using Suse 9.3 with Plesk 8.1 on one of my VPS, I decided that it is time to update to OpenSUSE 11.1 with Plesk 9.2.1 control panel. The update process went very well, here are the steps involved:</p>
<p>1. create a full backup of your vps (databases, websites, accounts, emails, &#8230;). I have used <strong>&#8220;tar&#8221;</strong> command for that.<br />
2. in plesk 8.1 control panel, do a complete backup (you need plesk backup module to be installed), or if you prefer the command line you can use the following command:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /usr/local/psa/bin/pleskbackup all &lt;backup-file&gt;</span></pre></td></tr></table></div>

<p>Since version 9.x, the structure of Parallels Plesk Panel backup has been changed. Plesk backup created with Plesk Backup Manager is not just one file but a number of files and directories under backups directory /var/lib/psa/dumps. So, you will need to convert your backup file created in plesk 8.1 to be compatible with plesk 9.x. It&#8217;s a very simple process, see step 3.</p>
<p>3. convert the created backup file to be compatible with plesk 9.x</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /usr/local/psa/bin/pre9-backup-convert -v convert -d /var/lib/psa/dumps/ &lt;backup-file&gt;</span></pre></td></tr></table></div>

<p>where <strong>/var/lib/psa/dumps/</strong> is backups directory on the server with Parallels Plesk Panel 9</p>
<p>4. restore the backup files to use them with plesk 9.x. It can be done using the web interface, <strong>Home -> Backup Manager -> Server Repository</strong>, click the backup name to enter the backup details page and select the required restoration options and click Restore to start the restoration process.</p>
<p>If you would like to use command line to restore your domains, clients, server configuration, &#8230; then you can use the following command:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /usr/local/psa/bin/pleskrestore --restore /var/lib/psa/dumps/&lt;your backup xml file&gt; -level server -verbose -debug</span></pre></td></tr></table></div>

<p>You can restore only clients or domains, for more options see:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /usr/local/psa/bin/pleskrestore --help</span></pre></td></tr></table></div>

<p>Note: I had a small problem and I found that it is not possible to have a client with the same name as your name in Plesk Admin Profile. Maybe it is stupid, but I had some errors and only after I changed the name in Admin Profile (in Plesk control panel) to be different, I could restore without any problem everything.</p>
<p>I think that&#8217;s all what I did, from what I remember. If something is missing I am sure you can find a lot of useful stuff using our friend google.</p>
<p><strong>Other useful stuff:</strong></p>
<p>1. Plesk 9.x support as well postfix, so if you want to change from qmail to postfix, try that:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /usr/local/psa/bin/autoinstaller --select-release-current --install-component postfix</span></pre></td></tr></table></div>

<p>if you are not happy, you can switch back to qmail:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /usr/local/psa/bin/autoinstaller --select-release-current --install-component qmail.</span></pre></td></tr></table></div>

<p>If you are not sure if you are using qmail or postfix there are many ways to find that, one is to look in Plesk Control Panel  on the Services management page  {<strong>Home -> Services Management</strong>} if you have <strong>SMTP Server (Postfix)</strong> or <strong>SMTP Server (QMail)</strong></p>
<p>If you decide you want to switch back, simply, do it, the emails are not lost, don&#8217;t worry.</p>
<p>2. Replace Horde webmail with AtMail</p>
<p>One of the many new features of Plesk 9, is the option to choose a different webmail client. The default webmail client  Horde can be replaced if you are looking for something a bit lighter, AtMail. You need to install from Plesk Control Panel, both webmail clients, and to switch between them:</p>
<ul>
<li>Log into Plesk.</li>
<li>Chose the domain which you want to use another webmail, enter on “Mail Accounts” page</li>
<li>Click the “Mail Settings” icon</li>
<li>Switch the “WebMail” to “AtMail (default is Horde)</li>
<li>Click “OK”</li>
</ul>
<p>If you decide you want to switch back, simply reverse the procedure, the emails are not lost, don&#8217;t worry.</p>
<p>That&#8217;s all.</p>
<p>References:</p>
<p><a href="http://kb.parallels.com/en/5819">http://kb.parallels.com/en/5819</a><br />
<a href="http://kb.parallels.com/en/5801">http://kb.parallels.com/en/5801</a><br />
<a href="http://kb.parallels.com/en/952">http://kb.parallels.com/en/952</a><br />
<a href="http://kb.parallels.com/en/5969">http://kb.parallels.com/en/5969</a><br />
<a href="http://kb.parallels.com/en/5864">http://kb.parallels.com/en/5864</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2009/07/10/opensuse-111-and-plesk-921-update/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>dd command &#8220;progress bar&#8221;</title>
		<link>http://www.vioan.ro/wp/2009/03/28/dd-command-progress-bar/</link>
		<comments>http://www.vioan.ro/wp/2009/03/28/dd-command-progress-bar/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 19:45:16 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dd]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=362</guid>
		<description><![CDATA[I am using sometimes

1
2
$ sudo dd if=/dev/urandom of=/dev/sdd1
$ sudo dd if=/dev/zero of=/dev/sdd1

and I would like to see the progress of dd command. So, do the following:
1. open a new terminal/console and type:

1
$ sudo killall -USR1

2. open the terminal/console where your dd is running and you will see something like this:

1
2
3
2242867712 bytes &#40;2.2 GB&#41; copied, 396.007 [...]]]></description>
			<content:encoded><![CDATA[<p>I am using sometimes</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;"><span style="color: #000000; font-weight: bold;">if</span></span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;"><span style="color: #000000; font-weight: bold;">if</span></span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1</pre></td></tr></table></div>

<p>and I would like to see the progress of <strong>dd</strong> command. So, do the following:</p>
<p>1. open a new terminal/console and type:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">killall</span> <span style="color: #660033;">-USR1</span></pre></td></tr></table></div>

<p>2. open the terminal/console where your <strong>dd</strong> is running and you will see something like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000;">2242867712</span> bytes <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2.2</span> GB<span style="color: #7a0874; font-weight: bold;">&#41;</span> copied, <span style="color: #000000;">396.007</span> s, <span style="color: #000000;">5.7</span> MB<span style="color: #000000; font-weight: bold;">/</span>s
<span style="color: #000000;">5625297</span>+<span style="color: #000000;">0</span> records <span style="color: #000000; font-weight: bold;">in</span>
<span style="color: #000000;">5625297</span>+<span style="color: #000000;">0</span> records out</pre></td></tr></table></div>

<p>Anyway, your <strong>dd</strong> command will continue without any problem.<br />
That&#8217;s all!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2009/03/28/dd-command-progress-bar/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>My USB Memory Stick Companion</title>
		<link>http://www.vioan.ro/wp/2009/03/26/my-usb-memory-stick-companion/</link>
		<comments>http://www.vioan.ro/wp/2009/03/26/my-usb-memory-stick-companion/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 21:53:06 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[SciComputing]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[portable]]></category>
		<category><![CDATA[rescue]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=343</guid>
		<description><![CDATA[I have a Kingston Data Traveler 4 GB USB Drive, and a few days ago I decided to use it also as a rescue boot device (to be bootable in order to recover data when needed), as storage device (to move around some files, used on windows, mac, linux, freebsd), to have on it some [...]]]></description>
			<content:encoded><![CDATA[<p>I have a Kingston Data Traveler 4 GB USB Drive, and a few days ago I decided to use it also as a rescue boot device (to be bootable in order to recover data when needed), as storage device (to move around some files, used on windows, mac, linux, freebsd), to have on it some personal files which I would like to be encrypted (for example: my ssh private keys, my bookmarks, my passwords, &#8230;), but also to have with me some applications which I use day by day (firefox, thunderbird, keypass, &#8230;).</p>
<p>So here is what I did:</p>
<p>As filesystem I used Fat32. I installed <a href="http://www.sysresccd.org/Main_Page">System RescueCD</a> so I have a bootable linux distro with a lot of useful utilities like Partimage, GNU Parted, TestDisk, kernel for i386 and also for x86-64, &#8230; The instructions to install it on fat32 filesystem are here: <a href="http://www.sysresccd.org/Sysresccd-manual-en_How_to_install_SystemRescueCd_on_an_USB-stick">Installation On USB Memory Stick</a>, I used &#8220;Instalation from Windows&#8221; part.</p>
<p>Next step was to install <a href="http://www.truecrypt.org/">Truecrypt</a> for windows in portable mode, a step by step guide how to do it, is available <a href="http://www.makeuseof.com/tag/encrypt-your-usb-stick-with-truecrypt-60/">here</a>, to be able to open my encrypted volume.</p>
<p>Now I can create an encrypted volume, using truecrypt, where we store all my personal files, let&#8217;s say 2 giga.</p>
<p>In that encrypted volume I also installed <a href="http://portableapps.com/">PortableApps Suite</a> and beeing a LaTeX user I also included <a href="http://www.exomatik.net/LaTeX/USBTeXEnglish">USBTeX.</a></p>
<p>Ok, now I still have space to store some useful small iso images, like Clonezilla, Hiren Boot CD, Acronis True Image BootCD.</p>
<p>That&#8217;s my setup for USB Memory Stick, I have it with me all the time, I can use it on any system, mac, windows, linux, I have a bootable linux disto on it, and also my personal files encrypted with some useful software. Maybe I should mention that Portable Apps Suite works well also with wine on linux.</p>
<p>I did a <strong>dd</strong> copy of my complete usb stick configuration/setup, immediately after I finished to install everything I needed, because if I will lose it, then to be able to recover everything quickly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2009/03/26/my-usb-memory-stick-companion/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Combining pdf files in Linux/Unix</title>
		<link>http://www.vioan.ro/wp/2009/02/06/combining-pdf-files-in-linuxunix/</link>
		<comments>http://www.vioan.ro/wp/2009/02/06/combining-pdf-files-in-linuxunix/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 21:06:40 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=320</guid>
		<description><![CDATA[Just to show a few examples how to combine pdf files. Let us assume we have three pdf  files and now we need to combine them:

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=finalcombinedpdf.pdf -dBATCH 1.pdf 2.pdf 3.pdf
joinpdf myfinalFile.pdf file1.pdf file2.pdf file3.pdf
pdfmeld file1.pdf, file2.pdf, file3.pdf resultcombinedfile.pdf

Some of the other tools available for merging PDF files include pfdtk, Multivalent, and pdcat.
* [...]]]></description>
			<content:encoded><![CDATA[<p>Just to show a few examples how to combine pdf files. Let us assume we have three pdf  files and now we need to combine them:</p>
<ul>
<li><strong>gs</strong> -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=finalcombinedpdf.pdf -dBATCH 1.pdf 2.pdf 3.pdf</li>
<li><strong>joinpdf</strong> myfinalFile.pdf file1.pdf file2.pdf file3.pdf</li>
<li><strong>pdfmeld</strong> file1.pdf, file2.pdf, file3.pdf resultcombinedfile.pdf</li>
</ul>
<p>Some of the other tools available for merging PDF files include <a href="http://www.accesspdf.com/article.php/20041129175231241">pfdtk</a>, <a href="http://multivalent.sourceforge.net/index.html">Multivalent</a>, and <a href="http://pdfcat.sourceforge.net/">pdcat</a>.</p>
<p>* <a href="http://pages.cs.wisc.edu/~ghost/">Ghostscript</a> &#8211; A popular tool for viewing Postscript and PDF documents<br />
* <a href="http://freshmeat.net/projects/joinpdf/">joinPDF</a> &#8211; A simple, yet effective, PDF merging tool<br />
* <a href="http://freshmeat.net/projects/pdfmeld/">pdfmeld</a> &#8211; A powerful tool for combining PDF files</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2009/02/06/combining-pdf-files-in-linuxunix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using LaTeX in Scribus for posters</title>
		<link>http://www.vioan.ro/wp/2008/12/03/using-latex-in-scribus-for-posters/</link>
		<comments>http://www.vioan.ro/wp/2008/12/03/using-latex-in-scribus-for-posters/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 20:13:16 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[SciComputing]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[scribus]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=284</guid>
		<description><![CDATA[I am using LaTeX and beamer class to make presentations and posters. A short introduction to start with latex is available. Sometimes I am using LaTeX just to produce eps/pdf text boxes and after that Scribus for poster layout. In the last development version of Scribus, which is 1.3.5svn, there is possible to use latex [...]]]></description>
			<content:encoded><![CDATA[<p>I am using <a href="http://www.latex-project.org/">LaTeX</a> and <a href="http://latex-beamer.sourceforge.net/">beamer</a> class to make presentations and posters. A short introduction to start with latex is <a href="http://www.vioan.ro/wp/2008/10/10/starting-with-latexpdftex-a-small-template/">available</a>. Sometimes I am using LaTeX just to produce eps/pdf text boxes and after that <a href="http://www.scribus.net/">Scribus</a> for poster layout. In the last development version of Scribus, which is 1.3.5svn, there is possible to use latex source/expressions directly in document, so is not necessary anymore the aditional step to create eps/pdf text boxes.</p>
<p>For <a href="http://www.opensuse.org/">OpenSUSE</a> there is the last version here:<br />
<a href="http://software.opensuse.org/ymp/home:mrdocs/openSUSE_11.0/scribus.ymp">http://software.opensuse.org/ymp/home:mrdocs/openSUSE_11.0/scribus.ymp</a></p>
<p>but I don&#8217;t want to replace 1.3.3.12 stable version, so I will install the latest development version in my home directory</p>
<p><strong>Warning</strong>: The documents saved in 1.3.5 will not be back compatible with the other versions, more here: <a href="http://scribus.info/svn/Scribus/trunk/Scribus/README">http://scribus.info/svn/Scribus/trunk/Scribus/README</a></p>
<p>Let&#8217;s install the last development of Scribus (it is very stable for what I need, I didn&#8217;t have any problems with it):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> ~<span style="color: #000000; font-weight: bold;">/</span>aplic<span style="color: #000000; font-weight: bold;">/</span>scribus_135
$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> ~<span style="color: #000000; font-weight: bold;">/</span>tempsrc
$ <span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>tempsrc
$ <span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">co</span> <span style="color: #c20cb9; font-weight: bold;">svn</span>:<span style="color: #000000; font-weight: bold;">//</span>scribus.info<span style="color: #000000; font-weight: bold;">/</span>Scribus<span style="color: #000000; font-weight: bold;">/</span>trunk<span style="color: #000000; font-weight: bold;">/</span>Scribus
$ <span style="color: #7a0874; font-weight: bold;">cd</span> Scribus
$ cmake -DCMAKE_INSTALL_PREFIX:<span style="color: #007800;">PATH</span>=~<span style="color: #000000; font-weight: bold;">/</span>aplic<span style="color: #000000; font-weight: bold;">/</span>scribus_135</pre></td></tr></table></div>

<p>I obtained an error during the compilation because I didn&#8217;t have &#8220;libqt4-devel&#8221; so:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ zypper <span style="color: #c20cb9; font-weight: bold;">install</span> libqt4-devel</pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">make</span>
$ <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
$ ~<span style="color: #000000; font-weight: bold;">/</span>aplic<span style="color: #000000; font-weight: bold;">/</span>scribus_135<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>scribus</pre></td></tr></table></div>

<p>Here are two screenshots, the main window and scribus latex editor:</p>
<p><a href="http://www.vioan.ro/wp/wp-content/uploads/2008/12/scribus135_main.png"><img src="http://www.vioan.ro/wp/wp-content/uploads/2008/12/scribus135_main-300x283.png" alt="" title="scribus135_main" width="300" height="283" class="aligncenter size-medium wp-image-285" /></a></p>
<p><a href="http://www.vioan.ro/wp/wp-content/uploads/2008/12/scribus136_latex_editor.png"><img src="http://www.vioan.ro/wp/wp-content/uploads/2008/12/scribus136_latex_editor-300x182.png" alt="" title="scribus136_latex_editor" width="300" height="182" class="aligncenter size-medium wp-image-286" /></a> </p>
<p>That&#8217;s all.</p>
<p><strong>References</strong>:</p>
<ul>
<li><a href="http://wiki.scribus.net/index.php/Building_SVN_versions_with_CMake">http://wiki.scribus.net/index.php/Building_SVN_versions_with_CMake</a></li>
<li><a href="http://scribus.info/svn/Scribus/trunk/Scribus/README">http://scribus.info/svn/Scribus/trunk/Scribus/README</a></li>
<li><a href="http://wiki.scribus.net/index.php/Working_with_latex_frames">http://wiki.scribus.net/index.php/Working_with_latex_frames</a></li>
<li><a href="http://wiki.scribus.net/index.php/Embedding_other_external_tools_into_a_TeX_frame">http://wiki.scribus.net/index.php/Embedding_other_external_tools_into_a_TeX_frame</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/12/03/using-latex-in-scribus-for-posters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mod_python on OpenSUSE 11.0</title>
		<link>http://www.vioan.ro/wp/2008/11/23/mod_python-on-opensuse-110/</link>
		<comments>http://www.vioan.ro/wp/2008/11/23/mod_python-on-opensuse-110/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 17:40:36 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[opensuse]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=279</guid>
		<description><![CDATA[Mod_python is an Apache module that embeds the  Python interpreter within the server. Here is step by step what I did to configure it for OpenSUSE 11.0:
1. Install mod_python:

1
$ sudo zypper in apache2-mod_python

2. Enable mod_python: edit /etc/sysconfig/apache2 and add python to the APACHE_MODULES line, so your line will look like:

1
APACHE_MODULES=&#34;actions alias auth_basic authn_file authz_host [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.modpython.org/">Mod_python</a> is an <a href="http://httpd.apache.org/">Apache</a> module that embeds the  <a href="http://www.python.org/">Python</a> interpreter within the server. Here is step by step what I did to configure it for OpenSUSE 11.0:</p>
<p>1. Install mod_python:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> zypper <span style="color: #000000; font-weight: bold;">in</span> apache2-mod_python</pre></td></tr></table></div>

<p>2. Enable mod_python: edit <strong>/etc/sysconfig/apache2</strong> and add <strong>python</strong> to the <strong>APACHE_MODULES</strong> line, so your line will look like:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">APACHE_MODULES</span>=<span style="color: #ff0000;">&quot;actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5 python&quot;</span></pre></td></tr></table></div>

<p>3. Run <strong>SuSEconfig</strong></p>
<p>4. Configure Apache to handle Python files:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>conf.d<span style="color: #000000; font-weight: bold;">/</span>python.conf  <span style="color: #666666; font-style: italic;"># create python.conf file</span></pre></td></tr></table></div>

<p>5. Add the next lines to your python.conf file:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #000000; font-weight: bold;">/</span>srv<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>htdocs<span style="color: #000000; font-weight: bold;">/&gt;</span>
  Options Indexes FollowSymLinks MultiViews
  AllowOverride None
  Order allow,deny
  allow from all
  AddHandler mod_python .py
  PythonHandler mod_python.publisher
  PythonDebug On
<span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

<p>6. Restart apache server:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>rcapache2 restart</pre></td></tr></table></div>

<p>7. Create a simple .py file, put it in <strong>/srv/www/htdocs/</strong> and test to see if it is working with http://localhost/filename.py:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">def</span> index<span style="color: black;">&#40;</span>req<span style="color: black;">&#41;</span>:
  <span style="color: #ff7700;font-weight:bold;">return</span> <span style="color: #483d8b;">&quot;It Works: mod_python ENABLED&quot;</span><span style="color: #66cc66;">;</span></pre></td></tr></table></div>

<p>The other method is to configure the PSP Handler. PSP means Python Server Pages.  PSP files have the extension .psp. If you follow this method it will allow you to include Python code directly in HTML code. To do that, I am sure that <a href="http://www.google.com">google</a> can help you, for me the first method is enough.</p>
<p>That&#8217;s all. The above procedure will work also for CentOS, replacing the corresponding commands and the place where the files are.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/11/23/mod_python-on-opensuse-110/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Software I am using &#8230;</title>
		<link>http://www.vioan.ro/wp/2008/11/15/software-i-am-using/</link>
		<comments>http://www.vioan.ro/wp/2008/11/15/software-i-am-using/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 23:57:30 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Gnuplot]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[SciComputing]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[workstation]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=275</guid>
		<description><![CDATA[If you would like to see what software I am using on my desktop, laptop, workstation (Windows, Linux, Unix) in order to get my research/scientific work done, or if you want to know what software I am installing on my servers for customers, check this section of my website.
]]></description>
			<content:encoded><![CDATA[<p>If you would like to see what software I am using on my desktop, laptop, workstation (Windows, Linux, Unix) in order to get my research/scientific work done, or if you want to know what software I am installing on my servers for customers, check <a href="http://www.vioan.ro/wp/otherstuff/">this section of my website</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/11/15/software-i-am-using/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Scientific Software</title>
		<link>http://www.vioan.ro/wp/2008/11/14/scientific-software/</link>
		<comments>http://www.vioan.ro/wp/2008/11/14/scientific-software/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 15:41:13 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Gnuplot]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SciComputing]]></category>
		<category><![CDATA[numerical]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[scientific computing]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=256</guid>
		<description><![CDATA[If you are working in Scientific Computing, like me, then the next links are for you:

Free Software :: Scientific Software
Graphics Software
Numerical Analysis Software
Scientific/Engineering Software @SourceForge.net
Scientific/Engineering  Software @Freshmeat.net
Wiki du laboratoire MAS
Applications @Ubuntu
Applications @OpenSUSE

]]></description>
			<content:encoded><![CDATA[<p>If you are working in Scientific Computing, like me, then the next links are for you:</p>
<ul>
<li><a href="http://wikicompany.org/fs/science.html">Free Software :: Scientific Software</a></li>
<li><a href="http://en.wikipedia.org/wiki/List_of_graphing_software">Graphics Software</a></li>
<li><a href="http://en.wikipedia.org/wiki/List_of_numerical_analysis_software">Numerical Analysis Software</a></li>
<li><a href="http://sourceforge.net/softwaremap/trove_list.php?form_cat=97">Scientific/Engineering Software @SourceForge.net</a></li>
<li><a href="http://freshmeat.net/browse/97/?hash=d09a5de78aa25b4f6b32fd2796bbe363&amp;offset=0">Scientific/Engineering  Software @Freshmeat.net</a></li>
<li><a href="http://norma.mas.ecp.fr/wikimas/ScientificComputingSoftware">Wiki du laboratoire MAS</a></li>
<li><a href="https://help.ubuntu.com/community/UbuntuScience">Applications @Ubuntu</a></li>
<li><a href="http://en.opensuse.org/List_of_Scientific_Applications">Applications @OpenSUSE</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/11/14/scientific-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

