<?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>Julius Beckmann &#187; Linux</title>
	<atom:link href="http://juliusbeckmann.de/blog/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://juliusbeckmann.de/blog</link>
	<description>Ich bin nicht verrückt, nur technisch begabt ...</description>
	<lastBuildDate>Wed, 05 Jun 2013 11:02:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu: Create own or fix broken samba shared directorys</title>
		<link>http://juliusbeckmann.de/blog/ubuntu-create-own-or-fix-broken-samba-shared-directorys.html</link>
		<comments>http://juliusbeckmann.de/blog/ubuntu-create-own-or-fix-broken-samba-shared-directorys.html#comments</comments>
		<pubDate>Mon, 30 May 2011 10:28:39 +0000</pubDate>
		<dc:creator>Julius</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Share]]></category>

		<guid isPermaLink="false">http://juliusbeckmann.de/blog/?p=846</guid>
		<description><![CDATA[I recently wanted to create a shared folder with the attribute hidden, but did not want to change the /etc/samba/smb.cnf. So i searched where the shares created by the gnome folder-properties window where saved. The directory is: /var/lib/samba/usershares/ This is also the place, where you might fix a broken share by deleting the config file.]]></description>
			<content:encoded><![CDATA[<p><img src="http://juliusbeckmann.de/blog/static/ubuntu_logo-194x200.png" alt="ubuntu_logo" title="ubuntu_logo" width="100" height="100" class="alignright size-thumbnail wp-image-806" />I recently wanted to create a shared folder with the attribute hidden, but did not want to change the /etc/samba/smb.cnf.</p>
<p>So i searched where the shares created by the gnome folder-properties window where saved. The directory is:</p>
<p><strong>/var/lib/samba/usershares/</strong></p>
<p>This is also the place, where you might fix a broken share by deleting the config file.</p>
]]></content:encoded>
			<wfw:commentRss>http://juliusbeckmann.de/blog/ubuntu-create-own-or-fix-broken-samba-shared-directorys.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kubuntu: Connect to hidden WLAN</title>
		<link>http://juliusbeckmann.de/blog/kubuntu-connect-to-hidden-wlan.html</link>
		<comments>http://juliusbeckmann.de/blog/kubuntu-connect-to-hidden-wlan.html#comments</comments>
		<pubDate>Mon, 30 May 2011 10:10:26 +0000</pubDate>
		<dc:creator>Julius</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[hidden]]></category>
		<category><![CDATA[Kubuntu]]></category>
		<category><![CDATA[WLAN]]></category>

		<guid isPermaLink="false">http://juliusbeckmann.de/blog/?p=840</guid>
		<description><![CDATA[Somehow the Network-Manager in Kubuntu can not connect to hidden wireless lan. But i found a simple workaround in the kubuntuforums.net: Go in the Kubuntu Network-Manager and add a new connection with all the details of the hidden WLAN. Now open a terminal and run this command: sudo iwlist wlan0 scan essid NameOfHiddenWLAN This will [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://juliusbeckmann.de/blog/static/kubuntu_logo.png" alt="kubuntu_logo" title="kubuntu_logo" width="128" height="128" class="alignright size-full wp-image-842" /><br />
Somehow the Network-Manager in Kubuntu can not connect to hidden wireless lan. But i found a simple workaround in the kubuntuforums.net:</p>
<p><span id="more-840"></span>Go in the Kubuntu Network-Manager and add a new connection with all the details of the hidden WLAN.</p>
<p>Now open a terminal and run this command:</p>
<div class="codesnip-container" >sudo iwlist wlan0 scan essid NameOfHiddenWLAN</div>
<p>This will scan on the wlan0 device for a network with the name "NameOfHiddenWLAN".<br />
A few seconds later, your Network-Manager might already have connected to the hidden WLAN, if everything was correct.</p>
]]></content:encoded>
			<wfw:commentRss>http://juliusbeckmann.de/blog/kubuntu-connect-to-hidden-wlan.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: Count lines of code</title>
		<link>http://juliusbeckmann.de/blog/linux-count-lines-of-code.html</link>
		<comments>http://juliusbeckmann.de/blog/linux-count-lines-of-code.html#comments</comments>
		<pubDate>Thu, 19 May 2011 09:41:15 +0000</pubDate>
		<dc:creator>Julius</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://juliusbeckmann.de/blog/?p=827</guid>
		<description><![CDATA[I found a cool programm, that can count lines of code for several programming languages. You can find it here: http://cloc.sourceforge.net/ Install On a debian based box, installing is very easy: sudo apt-get install cloc Howto Usage: cloc --help File/s: cloc *java Directory: cloc src/ Example I counted some of my Java lines: src$ cloc [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://juliusbeckmann.de/blog/static/linux-logo1.png" alt="linux-logo" title="linux-logo" width="100" height="122" class="alignright size-full wp-image-809" /><br />
I found a cool programm, that can count lines of code for several programming languages.<br />
You can find it here: <a href="http://cloc.sourceforge.net/">http://cloc.sourceforge.net/</a></p>
<p><span id="more-827"></span></p>
<h3>Install</h3>
<p>On a debian based box, installing is very easy:</p>
<div class="codesnip-container" >sudo apt-get install cloc</div>
<h3>Howto</h3>
<p>Usage:</p>
<div class="codesnip-container" >cloc --help</div>
<p>File/s:</p>
<div class="codesnip-container" >cloc *java</div>
<p>Directory:</p>
<div class="codesnip-container" >cloc src/</div>
<h3>Example</h3>
<p>I counted some of my Java lines:</p>
<div class="codesnip-container" >
<pre>src$ cloc *.java
      13 text files.
      13 unique files.
       0 files ignored.

http://cloc.sourceforge.net v 1.53  T=0.5 s (26.0 files/s, 2706.0 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Java                            13            189            140           1024
-------------------------------------------------------------------------------
SUM:                            13            189            140           1024
-------------------------------------------------------------------------------</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://juliusbeckmann.de/blog/linux-count-lines-of-code.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu: Backup/Copy network settings in Ubuntu</title>
		<link>http://juliusbeckmann.de/blog/ubuntu-backup-copy-network-settings-in-ubuntu.html</link>
		<comments>http://juliusbeckmann.de/blog/ubuntu-backup-copy-network-settings-in-ubuntu.html#comments</comments>
		<pubDate>Mon, 02 May 2011 20:17:13 +0000</pubDate>
		<dc:creator>Julius</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[gconf]]></category>
		<category><![CDATA[gnome2]]></category>
		<category><![CDATA[Keyring]]></category>
		<category><![CDATA[Password]]></category>
		<category><![CDATA[Settings]]></category>
		<category><![CDATA[WLAN]]></category>

		<guid isPermaLink="false">http://juliusbeckmann.de/blog/?p=811</guid>
		<description><![CDATA[I did a clean install of Ubuntu 11.04 and copied all the needed configs from my old 10.10 installation. But i could not find the needed folders for the network and wireless settings, so i searched for them and this is what i found. To backup or copy the network settings under ubuntu, you need [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://juliusbeckmann.de/blog/static/ubuntu_logo-194x200.png" alt="ubuntu_logo" title="ubuntu_logo" width="100" height="100" class="alignright size-thumbnail wp-image-806" />I did a clean install of Ubuntu 11.04 and copied all the needed configs from my old 10.10 installation. But i could not find the needed folders for the network and wireless settings, so i searched for them and this is what i found.<br />
<span id="more-811"></span><br />
To backup or copy the network settings under ubuntu, you need 2 parts of your old system:</p>
<p>1. <strong>The .gconf part</strong><br />
You need to copy the folder where the network settings are stored, this is here:</p>
<div class="codesnip-container" >/home/YOUR_USERNAME/.gconf/system</div>
<p>You can copy the whole folder and move it to the new system.</p>
<p>2. <strong>The Keyring</strong><br />
If you search for keywords or passphrases, you will not find any in .gconf/system.<br />
The password for WLAN access are stored inside <em>your</em> keyring, which is stored here:</p>
<div class="codesnip-container" >/home/YOUR_USERNAME/.gnome2/keyrings</div>
<p>You need this folder, if the gconf settings need a passphrase from your keyring.</p>
]]></content:encoded>
			<wfw:commentRss>http://juliusbeckmann.de/blog/ubuntu-backup-copy-network-settings-in-ubuntu.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: Slow dd because of default blocksize</title>
		<link>http://juliusbeckmann.de/blog/linux-slow-dd-because-of-default-blocksize.html</link>
		<comments>http://juliusbeckmann.de/blog/linux-slow-dd-because-of-default-blocksize.html#comments</comments>
		<pubDate>Sun, 01 May 2011 19:53:26 +0000</pubDate>
		<dc:creator>Julius</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[DD]]></category>
		<category><![CDATA[Speed]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://juliusbeckmann.de/blog/?p=802</guid>
		<description><![CDATA[Today is backed up my SSD so i can install Ubuntu 11.04 fearlessly. Problem was that dd was very slow, but i found a solution. By default dd seems to use 512 Byte as default blocksize. This means copying 10 GB lets dd move 20 million blocks. This is very stressful for the computer. You [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://juliusbeckmann.de/blog/static/linux-logo1.png" alt="linux-logo" title="linux-logo" width="100" height="122" class="alignright size-full wp-image-809" />Today is backed up my SSD so i can install Ubuntu 11.04 fearlessly.<br />
Problem was that dd was very slow, but i found a solution.<br />
<span id="more-802"></span><br />
By default dd seems to use 512 <strong>Byte</strong> as default blocksize. This means copying 10 GB lets dd move 20 million blocks. This is very stressful for the computer.<br />
You can speed the whole thin up by giving a bigger blocksize via parameter.</p>
<p><em>Example:</em></p>
<div class="codesnip-container" ># dd if=/dev/sda2 of=/media/BACKUPHDD/Backup/SSD/system.img bs=4M</div>
<p>The optimal blocksize might depend from your hardware. If time is important, you might do some short tests with different blocksizes.</p>
]]></content:encoded>
			<wfw:commentRss>http://juliusbeckmann.de/blog/linux-slow-dd-because-of-default-blocksize.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu: Install on a Disk with less than 4.4 GB (Workaround)</title>
		<link>http://juliusbeckmann.de/blog/ubuntu-install-on-a-disk-with-less-than-4-4-gb-workaround.html</link>
		<comments>http://juliusbeckmann.de/blog/ubuntu-install-on-a-disk-with-less-than-4-4-gb-workaround.html#comments</comments>
		<pubDate>Sun, 01 May 2011 15:37:24 +0000</pubDate>
		<dc:creator>Julius</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Fix]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[Problem]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[Workaround]]></category>

		<guid isPermaLink="false">http://juliusbeckmann.de/blog/?p=799</guid>
		<description><![CDATA[I tried to install Ubuntu 11.04 on a 4 GB USB-Stick today, but was failed by the installer who wants at least 4.4 GB free space. This is unnecessary much, because a normal Ubuntu install will stay below 2.5 GB. I found a "fix" that works like this: 1. Start Ubuntu from CD/DVD as a [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://juliusbeckmann.de/blog/static/ubuntu_logo-194x200.png" alt="ubuntu_logo" title="ubuntu_logo" width="100" height="100" class="alignright size-thumbnail wp-image-806" />I tried to install Ubuntu 11.04 on a 4 GB USB-Stick today, but was failed by the installer who wants at least 4.4 GB free space. This is unnecessary much, because a normal Ubuntu install will stay below 2.5 GB.<br />
I found a "fix" that works like this:<br />
<span id="more-799"></span></p>
<p>1. Start Ubuntu from CD/DVD as a Live-CD (The "Test", not the "Install" Button).</p>
<p>2. Open up a console / terminal and enter the following code:</p>
<div class="codesnip-container" >gksu gedit /usr/lib/ubiquity/plugins/ubi-prepare.py</div>
<p>This will open a python file that includes the "min_size" method.<br />
Search for the line (around line 310) that says:</p>
<div class="codesnip-container" >"min_disk_size = size * 2"</div>
<p>Change the code to this:</p>
<div class="codesnip-container" >"min_disk_size = size * 1.4"</div>
<p>Then save and close the editor.</p>
<p>3. Start the installer on the desktop. It should ask now for about 3 GB.</p>
<p>Original fix posted by <a href="https://bugs.launchpad.net/ubuntu/+source/netbook-meta/+bug/772164">Nathan</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://juliusbeckmann.de/blog/ubuntu-install-on-a-disk-with-less-than-4-4-gb-workaround.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Linux: Change timezone on Debian/Ubuntu</title>
		<link>http://juliusbeckmann.de/blog/linux-change-timezone-on-debian-ubuntu.html</link>
		<comments>http://juliusbeckmann.de/blog/linux-change-timezone-on-debian-ubuntu.html#comments</comments>
		<pubDate>Wed, 27 Apr 2011 13:35:24 +0000</pubDate>
		<dc:creator>Julius</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Command]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[Timezone]]></category>

		<guid isPermaLink="false">http://juliusbeckmann.de/blog/?p=796</guid>
		<description><![CDATA[Change timezone on your Ubuntu/Debian system by opening a Terminal and run this command: sudo dpkg-reconfigure tzdata]]></description>
			<content:encoded><![CDATA[<p>Change timezone on your Ubuntu/Debian system by opening a Terminal and run this command:</p>
<div class="codesnip-container" >sudo dpkg-reconfigure tzdata</div>
]]></content:encoded>
			<wfw:commentRss>http://juliusbeckmann.de/blog/linux-change-timezone-on-debian-ubuntu.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash: Simple HDD/SSD speed test using dd</title>
		<link>http://juliusbeckmann.de/blog/bash-simple-hdd-orssd-speed-test-using-dd.html</link>
		<comments>http://juliusbeckmann.de/blog/bash-simple-hdd-orssd-speed-test-using-dd.html#comments</comments>
		<pubDate>Tue, 19 Apr 2011 22:13:20 +0000</pubDate>
		<dc:creator>Julius</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[DD]]></category>
		<category><![CDATA[HDD]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Speed]]></category>
		<category><![CDATA[SSD]]></category>
		<category><![CDATA[Test]]></category>

		<guid isPermaLink="false">http://juliusbeckmann.de/blog/?p=789</guid>
		<description><![CDATA[I wrote a (very) short script to test hdd or ssd speed using dd. You can find the code here: hdd-speed-test-1gb.sh and as text: hdd-speed-test-1gb.sh.txt The script uses dd and /dev/zero for writing a 1GB sized tempfile. Then the tempfile is written by dd to /dev/null. dd produces some output where the transfer speed is [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://juliusbeckmann.de/blog/static/terminal-icon-100x100.png" alt="terminal-icon-100x100" title="terminal-icon-100x100" width="100" height="100" class="alignright size-full wp-image-794" /><br />
I wrote a (very) short script to test hdd or ssd speed using dd. You can find the code here:</p>
<p><a href="http://juliusbeckmann.de/code/hdd-speed-test-1gb.sh">hdd-speed-test-1gb.sh</a><br />
and as text:<br />
<a href="http://juliusbeckmann.de/code/hdd-speed-test-1gb.sh.txt">hdd-speed-test-1gb.sh.txt</a></p>
<p>The script uses dd and /dev/zero for writing a 1GB sized tempfile. Then the tempfile is written by dd to /dev/null. dd produces some output where the transfer speed is mentioned. Afterwards the tempfile is removed.<br />
It is really just a tiny script, so i do not have to remember the dd syntax every few months.</p>
]]></content:encoded>
			<wfw:commentRss>http://juliusbeckmann.de/blog/bash-simple-hdd-orssd-speed-test-using-dd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash: Remove all .svn folders - Un-checkout from svn</title>
		<link>http://juliusbeckmann.de/blog/bash-remove-all-svn-folders-un-checkout-from-svn.html</link>
		<comments>http://juliusbeckmann.de/blog/bash-remove-all-svn-folders-un-checkout-from-svn.html#comments</comments>
		<pubDate>Sat, 09 Apr 2011 12:14:33 +0000</pubDate>
		<dc:creator>Julius</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Alias]]></category>
		<category><![CDATA[Bash]]></category>

		<guid isPermaLink="false">http://juliusbeckmann.de/blog/?p=764</guid>
		<description><![CDATA[If you want to send somebody parts of your svn repository, then you mostly do not want to give them your .svn folders with all the settings and base files inside. I wrote a short command to remove all the .svn folders recursive from the current directory: for dir in $(find . -name ".svn" -type [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to send somebody parts of your svn repository, then you mostly do not want to give them your .svn folders with all the settings and base files inside.</p>
<p>I wrote a short command to remove all the .svn folders recursive from the current directory:</p>
<div class="codesnip-container" >for dir in $(find . -name ".svn" -type d); do rm -rf "$dir"; done</div>
<p><strong>find . -name ".svn" -type d</strong><br />
- Will list recursive all directorys named '.svn' in current directory.</p>
<p><strong>for dir in $(...); do rm -rf "$dir"; done</strong><br />
- Will delete all items from the result of $().</p>
<p>If you do not want to type and remember that much, you can easily add this as a bash alias.<br />
Open your .bashrc and add this line:</p>
<div class="codesnip-container" >alias unsvn='for dir in $(find . -name ".svn" -type d); do rm -rf "$dir"; done'</div>
<p>The next time you start a bash, you have a new command "unsvn".</p>
]]></content:encoded>
			<wfw:commentRss>http://juliusbeckmann.de/blog/bash-remove-all-svn-folders-un-checkout-from-svn.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash: Rename all files inside current directory</title>
		<link>http://juliusbeckmann.de/blog/bash-rename-all-files-inside-current-directory.html</link>
		<comments>http://juliusbeckmann.de/blog/bash-rename-all-files-inside-current-directory.html#comments</comments>
		<pubDate>Sun, 03 Apr 2011 14:04:18 +0000</pubDate>
		<dc:creator>Julius</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Rename]]></category>

		<guid isPermaLink="false">http://juliusbeckmann.de/blog/?p=632</guid>
		<description><![CDATA[Renaming all files inside a directory can be done with the following code. find * -type f &#124; while read FILE; do mv "$FILE" old_"$FILE"; done; The code will take all filenames in the current directory, and append "old_" to the name. find * -type f - Will make a list of all files in [...]]]></description>
			<content:encoded><![CDATA[<p>Renaming all files inside a directory can be done with the following code.</p>
<div class="codesnip-container" >find * -type f | while read FILE; do mv "$FILE" old_"$FILE"; done;</div>
<p>The code will take all filenames in the current directory, and append "old_" to the name.</p>
<p><b>find * -type f</b><br />
- Will make a list of all files in the current directory.<br />
<b>while read FILE; do ...; done</b><br />
- Will read from a list each line into the variable FILE.<br />
<b>mv "$FILE" old_"$FILE";</b><br />
- Will rename the filename in the variable $FILE to old_$FILE. Check out the double quotes - they are important, otherwise filenames with spaces will break the move command.</p>
]]></content:encoded>
			<wfw:commentRss>http://juliusbeckmann.de/blog/bash-rename-all-files-inside-current-directory.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
