<?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>Open Tech SmbA &#187; Procedure</title>
	<atom:link href="http://www.opentech.dk/category/procedure/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.opentech.dk</link>
	<description>System &#38; Network Administration - Unix, Linux, Mac &#38; Windows</description>
	<lastBuildDate>Mon, 06 Sep 2010 10:05:30 +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>Listing large files in a directory hierarchy</title>
		<link>http://www.opentech.dk/2010/07/20/listing-large-files-in-a-directory-hierarchy/</link>
		<comments>http://www.opentech.dk/2010/07/20/listing-large-files-in-a-directory-hierarchy/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 23:02:46 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Procedure]]></category>
		<category><![CDATA[System Management]]></category>

		<guid isPermaLink="false">http://www.opentech.dk/?p=1049</guid>
		<description><![CDATA[rom time to time it can be necessary to free up space on a file system. A quick way to do this is to create a list of large files in a directory hierarchy.
The following example will look for files in a directory hierarchy on a FreeBSD operating system and list files, that has a [...]]]></description>
			<content:encoded><![CDATA[<p>
<a href="http://www.opentech.dk/wp-content/gallery/open-tech-smba-website/beastie.png" title="" class="shutterset_singlepic37" >
	<img class="ngg-singlepic ngg-right" src="http://www.opentech.dk/wp-content/gallery/cache/37__h=x_beastie.png" alt="beastie" title="beastie" />
</a>
From time to time it can be necessary to free up space on a file system. A quick way to do this is to create a list of large files in a directory hierarchy.</p>
<p>The following example will look for files in a directory hierarchy on a <a href="http://www.freebsd.org">FreeBSD</a> operating system and list files, that has a file size of more than 50 MB. It uses &#8220;find&#8221; and &#8220;du&#8221;. The list will be sorted.</p>
<p><code>su -<br />
find -s /usr/home -size +50M -exec du -h {} \;</code></p>
<p>The following example will perform the same search on an <a href="http://www.ubuntu.com">Ubuntu</a> operating system. This list will not be sorted.</p>
<p><code>sudo find /home -size +50M -exec du -h {} \;</code></p>
<p>The implementation of &#8220;find&#8221; can be different in other operating systems. However, this command will work on other Linux and Unix-like operating systems.</p>
<div id="pfButton"><a href="http://www.opentech.dk/2010/07/20/listing-large-files-in-a-directory-hierarchy/?pfstyle=wp" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button.gif" alt="Print"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.opentech.dk/2010/07/20/listing-large-files-in-a-directory-hierarchy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing black borders around movies</title>
		<link>http://www.opentech.dk/2010/07/19/removing-black-borders-around-movies/</link>
		<comments>http://www.opentech.dk/2010/07/19/removing-black-borders-around-movies/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 12:27:18 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Procedure]]></category>
		<category><![CDATA[System Management]]></category>

		<guid isPermaLink="false">http://www.opentech.dk/?p=1040</guid>
		<description><![CDATA[lack borders around movies and movie clips is a huge problem on the internet. Black borders is a result of video editing and bad handling of resolutions and aspect ratios, such as 16:9 and 4:3.
Removing black borders can be done with a video editor, such as FFmpeg, which is a complete, cross-platform solution to record, [...]]]></description>
			<content:encoded><![CDATA[<p>
<a href="http://www.opentech.dk/wp-content/gallery/open-tech-smba-website/ffmpeg.png" title="" class="shutterset_singlepic89" >
	<img class="ngg-singlepic ngg-right" src="http://www.opentech.dk/wp-content/gallery/cache/89__h=x_ffmpeg.png" alt="ffmpeg" title="ffmpeg" />
</a>
Black borders around movies and movie clips is a huge problem on the internet. Black borders is a result of video editing and bad handling of resolutions and aspect ratios, such as 16:9 and 4:3.</p>
<p>Removing black borders can be done with a video editor, such as <a href="http://www.ffmpeg.org/">FFmpeg</a>, which is a complete, cross-platform solution to record, convert and stream audio and video.</p>
<p>In our example, the size of each black border is guessed and the borders are removed from our input example of 720&#215;576 pixels and resized to 320&#215;288 pixels by FFmpeg.</p>
<p><code>ffmpeg -i example-input.mpg -croptop 76 -cropright 96 -cropbottom 76 -cropleft 96 -s 360x288 example-output.mpg</code></p>
<p>Do you need help with video editing? Contact Open Tech SmbA by mail at <a style="opacity: 1;" href="mailto:opentech@opentech.dk">opentech@opentech.dk</a> or call Open Tech SmbA at +45 43 62 22 88.</p>
<div id="pfButton"><a href="http://www.opentech.dk/2010/07/19/removing-black-borders-around-movies/?pfstyle=wp" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button.gif" alt="Print"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.opentech.dk/2010/07/19/removing-black-borders-around-movies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring the command line interpreter prompt</title>
		<link>http://www.opentech.dk/2010/07/15/configuring-the-command-line-interpreter-prompt/</link>
		<comments>http://www.opentech.dk/2010/07/15/configuring-the-command-line-interpreter-prompt/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 13:19:44 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Procedure]]></category>
		<category><![CDATA[System Management]]></category>

		<guid isPermaLink="false">http://www.opentech.dk/?p=1017</guid>
		<description><![CDATA[a href=&#8221;http://www.bash.org&#8221;>The GNU Bourne-Again SHell (bash) is the command line interpreter, that executes commands from the standard input, such as keyboard, or from a file, such as a automated script. It is used in many operating systems, such as Ubuntu.
In the following example, the default command line prompt for a user on an Ubuntu operating [...]]]></description>
			<content:encoded><![CDATA[<p>
<a href="http://www.opentech.dk/wp-content/gallery/open-tech-smba-website/bash-org.jpg" title="" class="shutterset_singlepic85" >
	<img class="ngg-singlepic ngg-right" src="http://www.opentech.dk/wp-content/gallery/cache/85__h=x_bash-org.jpg" alt="bash-org" title="bash-org" />
</a>
<a href="http://www.bash.org">The GNU Bourne-Again SHell (bash)</a> is the command line interpreter, that executes commands from the standard input, such as keyboard, or from a file, such as a automated script. It is used in many operating systems, such as <a href="http://www.ubuntu.com">Ubuntu</a>.</p>
<p>In the following example, the default command line prompt for a user on an Ubuntu operating system is configured for local usage and remote usage. The same procedure can be used for <a href="http://www.freebsd.org">FreeBSD</a> and similar operating systems.</p>
<p><code>nano -w ~/.bashrc<br />
PS1='$ '; export PS1<br />
nano -w ~/.profile<br />
PS1='$ '; export PS1</code></p>
<p>There are also system wide configuration files for bash, sh and other shells on the Ubuntu operating system. However, configuring the default command line prompt for users and administrator does not seem to be taken into effect on the Ubuntu operating system.</p>
<p><code>/etc/profile<br />
/etc/bash.bashrc</code></p>
<p>The system wide profile for shells should source in the bash system wide initialization file and configure the command line prompt for users and administrator (user 0).</p>
<div id="pfButton"><a href="http://www.opentech.dk/2010/07/15/configuring-the-command-line-interpreter-prompt/?pfstyle=wp" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button.gif" alt="Print"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.opentech.dk/2010/07/15/configuring-the-command-line-interpreter-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing a network color laser printer in Ubuntu 10.04</title>
		<link>http://www.opentech.dk/2010/06/07/installing-a-network-color-laser-printer-in-ubuntu-10-04/</link>
		<comments>http://www.opentech.dk/2010/06/07/installing-a-network-color-laser-printer-in-ubuntu-10-04/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 16:31:22 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Procedure]]></category>
		<category><![CDATA[System Management]]></category>

		<guid isPermaLink="false">http://www.opentech.dk/?p=1001</guid>
		<description><![CDATA[nstalling a network printer means, that the Ubuntu desktop computer will be able to sent print jobs to a remote printer over the network.
In this example, we will install a Brother HL 4050 CDN network laser printer in the Ubuntu 10.04 operating system.
We visit the homepage for Official Ubuntu Documentation. We click Ubuntu 10.04 LTS. [...]]]></description>
			<content:encoded><![CDATA[<p>
<a href="http://www.opentech.dk/wp-content/gallery/open-tech-smba-website/laserprinter.jpg" title="" class="shutterset_singlepic54" >
	<img class="ngg-singlepic ngg-right" src="http://www.opentech.dk/wp-content/gallery/cache/54__h=x_laserprinter.jpg" alt="laserprinter" title="laserprinter" />
</a>
Installing a network printer means, that the Ubuntu desktop computer will be able to sent print jobs to a remote printer over the network.</p>
<p>In this example, we will install a Brother HL 4050 CDN network laser printer in the <a href="http://www.ubuntu.com">Ubuntu</a> 10.04 operating system.</p>
<p>We visit the homepage for <a href="http://help.ubuntu.com">Official Ubuntu Documentation</a>. We click Ubuntu 10.04 LTS. We click Printing and Faxing. We click Printing. We find the section for network printing. Here, we find the procedure for installing a network printer.</p>
<p>We open System, Administration and Printing. We click New and expand Network Printer. We follow the guide, go through the settings and print a test page. It works.</p>
<p>We also test printing from the browser and one of the office tools. It works.</p>
<div id="pfButton"><a href="http://www.opentech.dk/2010/06/07/installing-a-network-color-laser-printer-in-ubuntu-10-04/?pfstyle=wp" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button.gif" alt="Print"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.opentech.dk/2010/06/07/installing-a-network-color-laser-printer-in-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restoring data from a non bootable corrupt Windows file system</title>
		<link>http://www.opentech.dk/2010/06/07/restoring-data-from-a-non-bootable-corrupt-windows-file-system/</link>
		<comments>http://www.opentech.dk/2010/06/07/restoring-data-from-a-non-bootable-corrupt-windows-file-system/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 14:00:02 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Procedure]]></category>
		<category><![CDATA[System Management]]></category>

		<guid isPermaLink="false">http://www.opentech.dk/?p=997</guid>
		<description><![CDATA[n this example, we want to restore client data from a non bootable corrupt Windows file system on a working harddisk. The client want the restored data on compact disc (CD) media.
This procedure can be used with other operating systems and file systems as well.
We attach the harddisk to a computer, that support the harddisk [...]]]></description>
			<content:encoded><![CDATA[<p>
<a href="http://www.opentech.dk/wp-content/gallery/open-tech-smba-website/backtrack.png" title="" class="shutterset_singlepic84" >
	<img class="ngg-singlepic ngg-right" src="http://www.opentech.dk/wp-content/gallery/cache/84__h=x_backtrack.png" alt="backtrack" title="backtrack" />
</a>
In this example, we want to restore client data from a non bootable corrupt Windows file system on a working harddisk. The client want the restored data on compact disc (CD) media.</p>
<p>This procedure can be used with other operating systems and file systems as well.</p>
<p>We attach the harddisk to a computer, that support the harddisk interface, and boot the computer with a <a href="http://backtrack-linux.org">Back Track</a> Live CD.</p>
<p>Back Track is a Linux operating system, that can boot from CD. Back Tracks mounts file systems automatically. Back Track comes with a huge amount of tools, ready to use.</p>
<p>We can now access the client data.</p>
<p><code>ls /mnt/hda1</code></p>
<p>In order to write the client data to CD, we need to transfer the files to a <a href="http://www.freebsd.org">FreeBSD</a> network file system from which, an <a href="http://www.ubuntu.com">Ubuntu</a> computer, that has a CD writer, can access the files. We use <a href="http://en.wikipedia.org/wiki/Secure_copy">secure copy</a> (scp) to transfer the files.</p>
<p><code>scp -r /mnt/hda1 starnix@starnix:temporary</code></p>
<p>In order to preserve file names and support multiple CD&#8217;s, we archive and split the data using <a href="http://en.wikipedia.org/wiki/ZIP_%28file_format%29">zip</a>.</p>
<p><code>cd temporary<br />
zip -s 670m -r disk hda1<br />
ls -ld disk.z*</code></p>
<p>The result is a number of zip archives, that has been split into the necessary number of archives in order to fit each CD media. We can now write the data to CD&#8217;s. We do this by inserting an empty CD media into the Ubuntu computer. <a href="http://projects.gnome.org/brasero/">Brasero</a> disc writer offers to write our data to the CD. We drag the first archive and writes the data to disc. Note, that the first split archive is the z01 and the last is the zip.</p>
<p>The client can now copy the archives from the CD&#8217;s, unzip the archives and restore the files as necessary.</p>
<div id="pfButton"><a href="http://www.opentech.dk/2010/06/07/restoring-data-from-a-non-bootable-corrupt-windows-file-system/?pfstyle=wp" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button.gif" alt="Print"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.opentech.dk/2010/06/07/restoring-data-from-a-non-bootable-corrupt-windows-file-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deleting files without using the trash bin on an Ubuntu operating system</title>
		<link>http://www.opentech.dk/2010/05/28/deleting-files-without-using-the-trash-bin-on-an-ubuntu-operating-system/</link>
		<comments>http://www.opentech.dk/2010/05/28/deleting-files-without-using-the-trash-bin-on-an-ubuntu-operating-system/#comments</comments>
		<pubDate>Fri, 28 May 2010 00:12:42 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Procedure]]></category>
		<category><![CDATA[System Management]]></category>

		<guid isPermaLink="false">http://www.opentech.dk/?p=987</guid>
		<description><![CDATA[he trash bin on an Ubuntu operating system, and many other operating systems as well, is a desktop feature, that some users will find usefull upon accidental deletion of files. However, the trash bin uses a number of hidden directories in order to work. These makes a mess and takes up space on file systems. [...]]]></description>
			<content:encoded><![CDATA[<p>
<a href="http://www.opentech.dk/wp-content/gallery/open-tech-smba-website/ubuntu-logo.png" title="" class="shutterset_singlepic83" >
	<img class="ngg-singlepic ngg-right" src="http://www.opentech.dk/wp-content/gallery/cache/83__h=x_ubuntu-logo.png" alt="ubuntu-logo" title="ubuntu-logo" />
</a>
The trash bin on an Ubuntu operating system, and many other operating systems as well, is a desktop feature, that some users will find usefull upon accidental deletion of files. However, the trash bin uses a number of hidden directories in order to work. These makes a mess and takes up space on file systems. These hidden directories can also be a security problem because they can contain private files.</p>
<p>The solution is to enable the desktop delete feature.</p>
<p>Press Alt and F2. Run gconf-editor. Open apps, nautilus and preferences. Find enable_delete and set it. Close the dialogue. That&#8217;s it. We can now right click a file and delete it.</p>
<p>Note, that <a href="http://en.wikipedia.org/wiki/Srm_%28Unix%29">secure remove (srm)</a> should be used to delete private files.</p>
<p>The delete function in most operating systems simply marks the space occupied by the file as reusable (removes the pointer to the file) without immediately removing any of its contents. At this point the file can be fairly easily recovered by numerous recovery applications. However, once the space is overwritten with other data, there is no known way to recover it.</p>
<p><strong> </strong></p>
<p>srm is a secure file removal utility for Unix and Unix-like computer systems, such as Mac OS X or Linux respectively. It is a command line utility which exercises the <a href="http://en.wikipedia.org/wiki/Gutmann_method">Gutmann 35-pass algorithm</a> for secure file deletion.</p>
<div id="pfButton"><a href="http://www.opentech.dk/2010/05/28/deleting-files-without-using-the-trash-bin-on-an-ubuntu-operating-system/?pfstyle=wp" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button.gif" alt="Print"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.opentech.dk/2010/05/28/deleting-files-without-using-the-trash-bin-on-an-ubuntu-operating-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing password on the Ubuntu operating system</title>
		<link>http://www.opentech.dk/2010/05/27/changing-password-on-the-ubuntu-operating-system/</link>
		<comments>http://www.opentech.dk/2010/05/27/changing-password-on-the-ubuntu-operating-system/#comments</comments>
		<pubDate>Thu, 27 May 2010 17:25:17 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Procedure]]></category>
		<category><![CDATA[System Management]]></category>

		<guid isPermaLink="false">http://www.opentech.dk/?p=982</guid>
		<description><![CDATA[hanging password on a Unix or Linux operating system is normally straight forward. However, changing password on an Ubuntu operating system can be a problem.
Let us test this. In our example, we want to have the password for a non privileged user changed.
We boot up an Ubuntu 9.10 operating system. We log on as a [...]]]></description>
			<content:encoded><![CDATA[<p>
<a href="http://www.opentech.dk/wp-content/gallery/open-tech-smba-website/ubuntu-logo.png" title="" class="shutterset_singlepic83" >
	<img class="ngg-singlepic ngg-right" src="http://www.opentech.dk/wp-content/gallery/cache/83__h=x_ubuntu-logo.png" alt="ubuntu-logo" title="ubuntu-logo" />
</a>
Changing password on a Unix or Linux operating system is normally straight forward. However, changing password on an <a href="http://www.ubuntu.com/">Ubuntu</a> operating system can be a problem.</p>
<p>Let us test this. In our example, we want to have the password for a non privileged user changed.</p>
<p>We boot up an Ubuntu 9.10 operating system. We log on as a non privileged user. We click System and then click &#8220;Users and Groups&#8221;. We click our user account. We click &#8220;Change password&#8221;. We type in our current password and authenticate. We type in our new password. We retype the new password. We click &#8220;Change password&#8221;. The dialogue confirm, that our password has been changed. This seems good! We click Close. However, now a dialogue appear. It want us to authenticate again. We type in our new password. This fails. We end up with an error message, that say &#8220;The configuration could not be saved. An unknown error occured&#8221;. We log out and must try a different approach.</p>
<p>It seems, that changing password is an untested feature in Ubuntu.</p>
<p>We log on as a privileged user. Click System. Click &#8220;Users and Groups&#8221;. We click the keys to make changes and enter our password. We click the user. We click Properties. We enter the new password. We take a look at his privileges. Close. Now, we are back at the &#8220;Users and Groups&#8221; dialogue. We close that as well. We log out and log on as the non privileged user.</p>
<p>It worked. It seems, that only privileged users can change password for non privileged users.</p>
<div id="pfButton"><a href="http://www.opentech.dk/2010/05/27/changing-password-on-the-ubuntu-operating-system/?pfstyle=wp" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button.gif" alt="Print"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.opentech.dk/2010/05/27/changing-password-on-the-ubuntu-operating-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Splitting and merging PDF documents</title>
		<link>http://www.opentech.dk/2010/05/19/splitting-and-merging-pdf-documents/</link>
		<comments>http://www.opentech.dk/2010/05/19/splitting-and-merging-pdf-documents/#comments</comments>
		<pubDate>Wed, 19 May 2010 11:04:12 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Procedure]]></category>
		<category><![CDATA[System Management]]></category>

		<guid isPermaLink="false">http://www.opentech.dk/?p=975</guid>
		<description><![CDATA[n this digital age, scanning of documents is an important part of the document handling proces. However, not all document scanners are user friendly &#8211; and fail to scan a number of paper documents into a single multipaged Portable Document Format (PDF). Instead, users end up with a number of PDFs. Some might even be [...]]]></description>
			<content:encoded><![CDATA[<p>
<a href="http://www.opentech.dk/wp-content/gallery/open-tech-smba-website/pdfsam.png" title="" class="shutterset_singlepic81" >
	<img class="ngg-singlepic ngg-right" src="http://www.opentech.dk/wp-content/gallery/cache/81__h=x_pdfsam.png" alt="pdfsam" title="pdfsam" />
</a>
In this digital age, scanning of documents is an important part of the document handling proces. However, not all document scanners are user friendly &#8211; and fail to scan a number of paper documents into a single multipaged <a href="http://en.wikipedia.org/wiki/Portable_Document_Format">Portable Document Format (PDF)</a>. Instead, users end up with a number of PDFs. Some might even be multipaged PDFs, that contains one or more pages of garbage. The solution is to split the PDFs and merge them into a single multipaged PDF.</p>
<p>There are a number of online tools, that can do that. However, it can be a security problem to use these as PDFs will have to be transmitted over the internet in unencrypted format. There are also a number of downloadable applications. We recommend <a href="http://www.pdfsam.org/">PDFsam</a>.</p>
<p>In our test of PDFsam on the Ubuntu 9.10 operating system, we want to split a multipaged PDF into single PDFs and then merge a number of single PDFs into a single PDF.</p>
<p>We install PDFsam from Ubuntu Software Center. When installed, we launch it by clicking Applications, Office and pdfsam.</p>
<p>We open the Split plugin, add our multipaged PDF, choose Burst, choose same destination as source and then run the plugin. The splitted PDFs are written as expected. We open the Merge plugin, add our PDFs, move the pages up or down as necessary, set our destination file and run the plugin. The new multipaged PDF is written as expected.</p>
<div id="pfButton"><a href="http://www.opentech.dk/2010/05/19/splitting-and-merging-pdf-documents/?pfstyle=wp" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button.gif" alt="Print"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.opentech.dk/2010/05/19/splitting-and-merging-pdf-documents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatic rotation, renaming and resizing of pictures</title>
		<link>http://www.opentech.dk/2010/05/15/automatic-rotation-renaming-and-resizing-of-pictures/</link>
		<comments>http://www.opentech.dk/2010/05/15/automatic-rotation-renaming-and-resizing-of-pictures/#comments</comments>
		<pubDate>Sat, 15 May 2010 18:21:37 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Content Management]]></category>
		<category><![CDATA[Procedure]]></category>

		<guid isPermaLink="false">http://www.opentech.dk/?p=966</guid>
		<description><![CDATA[ometimes you need to share a number of raw pictures over the internet.
Raw pictures can have non-efficient file names from the digital camera. This makes them hard to organize and list. Raw pictures can be huge in file size. This is a problem for storage, backup, transfer, upload and download. Raw pictures can contain hidden [...]]]></description>
			<content:encoded><![CDATA[<p>
<a href="http://www.opentech.dk/wp-content/gallery/open-tech-smba-website/imagemagick.jpg" title="" class="shutterset_singlepic79" >
	<img class="ngg-singlepic ngg-right" src="http://www.opentech.dk/wp-content/gallery/cache/79__h=x_imagemagick.jpg" alt="imagemagick" title="imagemagick" />
</a>
Sometimes you need to share a number of raw pictures over the internet.</p>
<p>Raw pictures can have non-efficient file names from the digital camera. This makes them hard to organize and list. Raw pictures can be huge in file size. This is a problem for storage, backup, transfer, upload and download. Raw pictures can contain hidden data from your camera, camera software and picture editing software. The hidden data can include automatic data, such as timestamps, face identification and software details. That can be a security problem.</p>
<p>Therefore, you might want to prepare raw pictures for sharing over the internet.</p>
<p>In the following example, we will prepare a number of raw pictures from a digital camera for sharing over the internet.</p>
<p>The pictures are rotated according to their orientation data in <a href="http://da.wikipedia.org/wiki/EXIF">Exchangeable Image File Format (EXIF)</a>. The orientation data in EXIF is then reset. The pictures are renamed according to the timestamp in EXIF. The pictures will have their EXIF header removed for security reasons. All this is done using <a href="http://www.sentex.net/~mwandel/jhead/">jhead</a>, which a JPEG EXIF header manipulation tool, that is perfect for this task.</p>
<p><code>jhead -autorot -ft -nf%Y-%m-%d-%H-%M-%S -purejpg *.JPG</code></p>
<p>The pictures are resized. This makes them smaller in file size and makes them fit the target. In this example, we will prepare pictures for sharing on Facebook, which uses a maximum size of 720 pixels. This is done using <a href="http://www.imagemagick.org/script/mogrify.php">mogrify</a>, which is perfect command line processing tool for this task. mogrify is a part of <a href="http://www.imagemagick.org/">ImageMagick</a>. If the picture is horizontal, the picture is resized to a maximum width of 720 pixels. If the picture is vertical, the picture is resized to a maximum height of 720 pixels. The aspect ratio remains the same.</p>
<p><code>mogrify -resize 720x720 *.jpg</code></p>
<p>If needed, we can apply grey scaling and then a blue tint. This effect will make all pictures appear blue.</p>
<p><code>mogrify -modulate 100,0,100 -fill 'blue' -tint 25 *.jpg</code></p>
<p>If needed, we can add a watermark. In this example, we will set the font type to the Kompakt TrueType font, the font size to 36, the place to bottom right, the font outline color to white, the transparency to 30% (0.3), the font RGB color code to 200,0,200 (pink), the transparency to 30%, the location to 5,0 (a little more space to the right edge) and our website address as the watermark.</p>
<p><code>mogrify -font /usr/share/fonts/truetype/opentech/kompakt.ttf -pointsize 36 -draw "gravity southeast stroke rgba(255,255,255,0.3) fill rgba(200,0,200,0.3) text 5,0 'www.opentech.dk'" *.jpg</code></p>
<p>Open Tech SmbA can help your company automate picture and image processing. Contact Open Tech SmbA by mail at <a href="mailto:opentech@opentech.dk">opentech@opentech.dk</a> or call Open Tech SmbA at +45 43 62 22 88.</p>
<div id="pfButton"><a href="http://www.opentech.dk/2010/05/15/automatic-rotation-renaming-and-resizing-of-pictures/?pfstyle=wp" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button.gif" alt="Print"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.opentech.dk/2010/05/15/automatic-rotation-renaming-and-resizing-of-pictures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Digital Signatur fra DanID</title>
		<link>http://www.opentech.dk/2010/05/10/digital-signatur-fra-danid/</link>
		<comments>http://www.opentech.dk/2010/05/10/digital-signatur-fra-danid/#comments</comments>
		<pubDate>Mon, 10 May 2010 09:34:18 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Procedure]]></category>
		<category><![CDATA[System Management]]></category>

		<guid isPermaLink="false">http://www.opentech.dk/?p=955</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.danid.dk">
<a href="http://www.opentech.dk/wp-content/gallery/open-tech-smba-website/digital-signatur.png" title="" class="shutterset_singlepic78" >
	<img class="ngg-singlepic ngg-right" src="http://www.opentech.dk/wp-content/gallery/cache/78__h=x_digital-signatur.png" alt="digital-signatur" title="digital-signatur" />
</a>
DanID</a> udsteder Digital Signatur (DS) til personer i statens Centrale Person Register (CPR) og virksomheder i statens Centrale Virksomheds Register (CVR). DanID markedsfører disse som henholdsvis Privat Digital Signatur og Erhverv Digital Signatur.</p>
<p>Privat Digital Signatur er din personlige underskrift på internettet. Du kan blandt andet bruge signaturen til at ordne selvangivelsen, logge på e-boks, søge SU, skrive dit barn ind i en daginstitution, se dine sundhedsdata og meget mere. Du kan underskrive dokumenter og blanketter online.</p>
<p>Erhverv Digital Signatur giver virksomhederne mulighed for at lave indberetninger, udfylde og sende blanketter, fortrolige dokumenter, kontrakter og meget mere direkte over nettet. Det hele kan sendes krypteret, så ingen uvedkommende kan få adgang til informationerne.</p>
<p>I dette eksempel vil vi installere Erhverv Digital Signatur på en computer med Ubuntu 9.10 og Firefox 3.5.8.</p>
<p><strong>Bestilling</strong></p>
<p>Vi besøger hjemmesiden for DanID, vælger Erhverv Digital Signatur, vælger gratis medarbejdersignatur, udfylder felterne og udskriver aftalen om oprettelse af lokaladministrator (LRA) til udstedelse af medarbejdersignaturer og virksomhedssignaturer. Vi underskriver aftalen, sender aftalen per fax til DanID og afventer herefter den midlertidige kode, der skal bruges til installationen (installationskode).</p>
<p>Vi modtager samme dag en velkomst per elektronisk post fra DanID. I den findes en unik URL, der skal benyttes sammen med ovenstående installationskode. Vi modtagere endvidere en velkomst til <a href="https://danid.dk/lra/">Digital Signatur LRA</a>, der er et system, der efter installation kan bruges til administration af vores brugere.</p>
<p>Vi modtager to dage efter ovenstående installationskode og en spærrekode fra DanID. Vi gemmer spærrekoden et sikkert sted.</p>
<p><strong>Udstedelse af digitale signatur<br />
</strong></p>
<p>Vi er nu klar til udstedelsen af vores nye digitale signatur. Vi starter åbner den URL, vi modtog fra DanID. Vi kommer ind på en side hos DanID med overskriften &#8220;Installation af Digital Signatur&#8221;. Vi læser og accepterer betingelserne. Vi accepterer endvidere, at der installeres software. Vi angiver den fremsendte installationskode. Vi opretter en adgangskode. Denne adgangskode vil blive knyttet til vores nye digitale signatur og skal således bruges fremover. Vi gemmer vores digitale signatur lokalt. Formatet er HTML, der er DanID&#8217;s eget beskyttede format. Hjemmesiden kvitterer for udstedelsen af vores digitale signatur og viser detaljerede oplysninger, herunder indehaveren, udstederen, udløbsdato og adresse. Vi noterer os udløbsdatoen. Vi kopierer endvidere den digitale signatur til et sikkert sted.</p>
<p><strong>Eksport af digital signatur til standarden Public Key Cryptography Standards (PKCS) 12</strong></p>
<p>Før vi kan få importeret den digitale signatur til browseren Firefox, skal vi have den gemt i et standard format. Vi åbner den digitale signatur fra før. Browseren viser overskriften &#8220;Digital Signatur sikkerhedskopi&#8221; og tilbyder indlæsning. Vi angiver stien til vores digitale signatur. Der fremkommer herefter en rød dialog, der siger, at vores browser-installation ikke blev genkendt. Det ser umiddelbart ikke lovende ud, men, dialogen tilbyder, at gemme vores digitale signatur igen &#8211; uden beskyttelse af DanID. Formatet er denne gang PKCS 12, hvilket er den standard og det format, vi er interesseret i. Vi kopierer endvidere den digitale signatur i dette format til et sikkert sted. Det er denne fil, vi skal bruge fremover.</p>
<p><strong>Import af digital signatur til browseren Firefox</strong></p>
<p>Vi kan nu importere vores digitale signatur i vores browser Firefox. Vi vælger Edit, Preferences, Advanced, Encryption, View Certificates, Your Certificates og &#8220;Import&#8230;&#8221;. Der kommer en dialog, der umiddelbart burde vise PKCS12-filer. Det gør den dog ikke. Vi skifter til visning af alle filer og åbner vores digitale signatur i PKCS12-format. Firefox kvitterer med dialogen &#8220;Successfully restored your security certificate(s) and private key(s)&#8221;. I listen over certifikater ses nu vores digitale signatur og vi kan genkende de detaljerede oplysninger fra udstedelsen.</p>
<p><strong>Anvendelse</strong></p>
<p>Vi åbner hjemmesiden for Skat. Dette er en af de hjemmesider, der understøtter sikker selvbetjening ved brug af digital signatur. Vi vælger, at logge ind med digital signatur. Vi skal nu vælge, hvilken digital signatur, vi vil logge på med. Vi vælger, at gennemse, hvorefter vi vælger vores digitale signatur i PKCS12-formatet fra før. Vi angiver vores adgangskode. Vi er herefter logget ind og kan betjene os selv på sikker vis.</p>
<div id="pfButton"><a href="http://www.opentech.dk/2010/05/10/digital-signatur-fra-danid/?pfstyle=wp" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button.gif" alt="Print"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.opentech.dk/2010/05/10/digital-signatur-fra-danid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
