<?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>Martin Bergek &#187; Linux</title>
	<atom:link href="http://www.bergek.com/category/computers/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bergek.com</link>
	<description>About the web we live in and gadgets in general.</description>
	<lastBuildDate>Tue, 27 Apr 2010 08:11:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Backup of Lazy8Web data</title>
		<link>http://www.bergek.com/2010/04/26/backup-of-lazy8web-data/</link>
		<comments>http://www.bergek.com/2010/04/26/backup-of-lazy8web-data/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 21:07:23 +0000</pubDate>
		<dc:creator>Martin Bergek</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bergek.com/?p=476</guid>
		<description><![CDATA[Lazy8Web is a free web application for basic bookkeeping tasks. I use it myself for the community where I live and I can really recommend it. However, I needed to add a way to do backups. There is a function to export all data to XML but you must be logged on to do that [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.lazy8.nu">Lazy8Web</a> is a free web application for basic bookkeeping tasks. I use it myself for the community where I live and I can really recommend it.</p>
<p>However, I needed to add a way to do backups. There is a function to export all data to XML but you must be logged on to do that and the authentication system doesn&#8217;t allow just using wget with username/password.</p>
<p>To automate the process I wrote the following little snippet that I run as a cron job. It logs onto the site, downloads the data and saves it to a file with the current date and time as part of the filename.</p>
<pre name="code" class="ruby:nogutter:nocontrols">
#!/usr/local/bin/ruby
#
# Author: Martin Bergek (http://www.spotwise.com)
# Dependencies: Ruby, Mechanize (http://mechanize.rubyforge.org)
#

require 'rubygems'
require 'mechanize'

# Make changes here
base_url = 'http://www.example.com'
username = 'user'
password = 'password'
log_folder = '/home/user/'
# No changes below this line

# Login
agent = Mechanize.new
page = agent.get(base_url + '/index.php?r=site/login')
form = page.forms.first
form['LoginForm[username]'] = username
form['LoginForm[password]'] = password
page = agent.submit(form, form.buttons.first)

# Get backup for all companies
xml = agent.get_file(base_url = '/index.php?r=company/exportAll')

# Save backup
t = Time.now
logfile = log_folder + t.strftime("%Y%m%d-%H%M%S.xml")
File.open(logfile, 'w') {|f| f.write(xml) }
</pre>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.bergek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.bergek.com/2010/04/26/backup-of-lazy8web-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Roll your own certificates</title>
		<link>http://www.bergek.com/2009/09/28/roll-your-own-certificates/</link>
		<comments>http://www.bergek.com/2009/09/28/roll-your-own-certificates/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 22:22:32 +0000</pubDate>
		<dc:creator>Martin Bergek</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.bergek.com/?p=465</guid>
		<description><![CDATA[I host a bunch of Internet services. Some, like this site, are for public use but most are intended for personal use. And since I want to keep them personal, security is important. Most Internet applications can be secured by SSL certificates. This includes HTTPS access for web sites, IMAPS instead of IMAP, encrypted access [...]]]></description>
			<content:encoded><![CDATA[<p>I host a bunch of Internet services. Some, like this site, are for public use but most are intended for personal use. And since I want to keep them personal, security is important. </p>
<p>Most Internet applications can be secured by SSL certificates. This includes HTTPS access for web sites, IMAPS instead of IMAP, encrypted access to subversion repositories. The list goes on.</p>
<p>For a number of years I have been creating my own certificates with the help of OpenSSL. Much can be said about OpenSSL but it is not exactly point-and-click. I created a few scripts to assist me but still I found myself looking through the documentation whenever I needed to create a new certificate or renew an existing one.</p>
<p>To solve this I have now created the attached Bash script to wrap OpenSSL to be able to set up a two-level certificate hierarchy. The result is a menu-driven text based application that will no doubt save me time in the future. Perhaps it can help you too.</p>
<p>I use this to create certificates to be used by Apache, Subversion, Postfix, Dovecot, Microsoft IIS, Microsoft Exchange and a few others.</p>
<p>There are some limitations to this. The hierarchy will be two levels deep, not more and not less. In other words you will get a root certificate authority and one or more subordinate certificate authorities. User certificates will be signed by one of the subordinate CAs. Also, while it supports subject alternative names it only does so for DNS names (I only needed that for Exchange 2007 support). For real-world certificate authorities the certificate signing requests (CRSs) are created outside the certificate authority. Since I will be handling everything myself I have set it up so that CSRs are created inside this application. For that reason it is imperative to keep access to the CA folder structure secure so that the private keys are not compromised.</p>
<p>To use this script just download and extract the attached file. Inside the folder which will be created there will be to files. The file &#8216;ca&#8217; is the Bash script and the other is a template configuration file. Run the script from within the folder. Certificates will be available in the folder &#8216;all&#8217; and backups of the certificate hierarchy will be placed in the folder &#8216;backup&#8217;. For more help, please comment.</p>
<p>The script has been verified on Ubuntu 9.04 and Mac OS X 10.5. I don&#8217;t think there are any dependencies that aren&#8217;t already met by standard OS installations.</p>
<p>Download: <a href='http://www.bergek.com/wp-content/uploads/2009/09/ca_v1.tar.gz'>ca_v1.tar.gz</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.bergek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.bergek.com/2009/09/28/roll-your-own-certificates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Audio feedback to shell output</title>
		<link>http://www.bergek.com/2009/09/03/audio-feedback-to-shell-output/</link>
		<comments>http://www.bergek.com/2009/09/03/audio-feedback-to-shell-output/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 23:12:47 +0000</pubDate>
		<dc:creator>Martin Bergek</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.bergek.com/?p=456</guid>
		<description><![CDATA[The -f switch to the tail command is a great help when it comes to keeping track of what is going on in some log file. But sometimes you just can&#8217;t keep your eyes on the output to see if something is happening. At those times it would help to have some other indication that [...]]]></description>
			<content:encoded><![CDATA[<p>The -f switch to the tail command is a great help when it comes to keeping track of what is going on in some log file. But sometimes you just can&#8217;t keep your eyes on the output to see if something is happening. At those times it would help to have some other indication that there is activity. The following small Perl script emits a beep whenever there is a line of data being output.</p>
<pre>
#!/usr/bin/perl
while(<>)
{
	print "\007" . $_;
}
</pre>
<p>Just tack the script somewhere in your path. Then, whenever you want some audio feedback just pipe the output to the Perl script (i.e. {some command} | beeper.pl).</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.bergek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.bergek.com/2009/09/03/audio-feedback-to-shell-output/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unbrick a Netgear WNDR3300</title>
		<link>http://www.bergek.com/2009/05/04/unbrick-a-netgear-wndr3300/</link>
		<comments>http://www.bergek.com/2009/05/04/unbrick-a-netgear-wndr3300/#comments</comments>
		<pubDate>Mon, 04 May 2009 18:20:56 +0000</pubDate>
		<dc:creator>Martin Bergek</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.bergek.com/?p=444</guid>
		<description><![CDATA[I borrowed a brand new Netgear WNDR3300 from a colleague the other day. I quickly powered it up and accessed the internal configuration web page only to be met by the automatic update function which I hadn&#8217;t seen in previous Netgear wireless routers. Before I knew it I had mistakenly aborted the update and the [...]]]></description>
			<content:encoded><![CDATA[<p>I borrowed a brand new Netgear WNDR3300 from a colleague the other day. I quickly powered it up and accessed the internal configuration web page only to be met by the automatic update function which I hadn&#8217;t seen in previous Netgear wireless routers. Before I knew it I had mistakenly aborted the update and the router was more or less dead. The power LED just kept blinking, the router replied to ping but the configuration web page was nowhere to be seen.</p>
<p>I managed to solve the issue by downloading the firmware file from the <a href="http://kb.netgear.com/app/answers/detail/a_id/939">Netgear site</a>. It is a 3MB file with a .chk file extension.</p>
<p>I then uploaded the firmware using TFTP. The following step-by-step guide is from my Mac but should work on Linux. Start by connecting the wireless router to the computer but don&#8217;t power it up. Then open a terminal and type:<br />
<code><br />
tftp 192.168.1.1<br />
binary<br />
rexmt 1<br />
timeout 60<br />
trace<br />
put WNDR3300_V1.0.29_1.0.29NA.chk<br />
</code><br />
Directly after the last line you should then power up the WNDR3300 and wait. Hopefully it will pick up the firmware file from the TFTP client. Once the file has been transferred it will take a few minutes while the router flashes its memory with the new firmware. This is normal. Just wait and hopefully you will have your wireless router back.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.bergek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.bergek.com/2009/05/04/unbrick-a-netgear-wndr3300/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Track your whereabouts with a Nokia phone</title>
		<link>http://www.bergek.com/2009/04/30/track-your-whereabouts-with-a-nokia-phone/</link>
		<comments>http://www.bergek.com/2009/04/30/track-your-whereabouts-with-a-nokia-phone/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 01:00:58 +0000</pubDate>
		<dc:creator>Martin Bergek</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[Nokia]]></category>

		<guid isPermaLink="false">http://www.bergek.com/?p=435</guid>
		<description><![CDATA[This is a follow-up article to a previous story on how to use the GPS in a Nokia phone. The last article described how to use a Python script to query the phone on the position. In this article we will add to the Python script to make it also dispatch position reports as UDP [...]]]></description>
			<content:encoded><![CDATA[<p>This is a follow-up article to a <a href="http://www.bergek.com/2009/04/28/use-python-to-access-the-built-in-gps-in-a-nokia-phone/">previous story</a> on how to use the GPS in a Nokia phone. The last article described how to use a Python script to query the phone on the position. In this article we will add to the Python script to make it also dispatch position reports as UDP packets as well as a server script that saves the data to a sqlite3 database which is then used to display a web page with a map. The end result will look something like this:</p>
<p><img src="http://www.bergek.com/wp-content/uploads/2009/04/tracker.png" alt="tracker" title="tracker" width="400" height="308" class="aligncenter size-full wp-image-441" /></p>
<p>All files are contained in the attached file at the end of this article. The server scripts have been written for Ubuntu 8.04 but will no doubt work on other distributions. Please note that you will need to install a couple of packages (php-sqlite3, php5-sqlite3 and libdbd-sqlite3-perl) to make the scripts run. The various scripts assume that they are all placed in the same location (i.e. in the web site folder). Read the security section below to ensure that the scripts are not publicly available.</p>
<p><strong>Client script</strong><br />
The script &#8216;tracker.py&#8217; should be copied to the phone according to the instructions in the previous article. Before copying it to the phone it must be edited. You will want to change the server host, the port and the secret.</p>
<p><strong>Sqlite3 database</strong><br />
The data is kept in a sqlite3 database. The initial database is created by running the script create_database.sh. Do not run that script again as it will completely wipe the database.</p>
<p><strong>Server script</strong><br />
Edit the file &#8216;tracker_server.pl&#8217; and set the port number (line 8 ) and the secret (in the regexp on line 23) to the same values that you set in the client script. The server is then started by running the server script &#8216;./tracker_server.pl &#038;&#8217;. Add the command to /etc/rc.local if you want it to start automatically when the server is restarted.</p>
<p><strong>Web pages</strong><br />
Create a web site and point the document root to the folder where you put the files. Then reload the server.</p>
<p><strong>Start the script</strong><br />
Finally, start the script on the phone and wait for it to acquire a GPS fix. This should cause the new position to be reflected on the web page.</p>
<p><strong>Security</strong><br />
As mentioned above it a wise thing to prevent access to the script files if they are located in the same folder as the web pages. The easiest is to add an .htaccess file in the web folder with the following content:<br />
<code><br />
&lt;FilesMatch "\.(db|pl|sh|py)$"><br />
	Deny from all<br />
&lt;/FilesMatch><br />
</code></p>
<p><strong>Attachments</strong><br />
<a href='http://www.bergek.com/wp-content/uploads/2009/04/tracker.zip'>tracker.zip</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.bergek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.bergek.com/2009/04/30/track-your-whereabouts-with-a-nokia-phone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby on Rails application could not be started</title>
		<link>http://www.bergek.com/2009/04/01/ruby-on-rails-application-could-not-be-started/</link>
		<comments>http://www.bergek.com/2009/04/01/ruby-on-rails-application-could-not-be-started/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 00:19:22 +0000</pubDate>
		<dc:creator>Martin Bergek</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.bergek.com/?p=422</guid>
		<description><![CDATA[If you try to run an application with Passenger (mod_rails) and get the error &#8220;No such file or directory &#8211; /nonexistent&#8221; it could be due to some files in the Rails application being owned by root. To fix the issue just change the owner to some other user.]]></description>
			<content:encoded><![CDATA[<p>If you try to run an application with Passenger (mod_rails) and get the error &#8220;No such file or directory &#8211; /nonexistent&#8221; it could be due to some files in the Rails application being owned by root. To fix the issue just change the owner to some other user.</p>
<p><img src="http://www.bergek.com/wp-content/uploads/2009/04/passenger_error.gif" alt="passenger_error" title="passenger_error" width="396" height="474" class="alignnone size-full wp-image-423" /></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.bergek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.bergek.com/2009/04/01/ruby-on-rails-application-could-not-be-started/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Acerfand crashes Acer Aspire One 110</title>
		<link>http://www.bergek.com/2009/03/17/acerfand-crashes-acer-aspire-one-110/</link>
		<comments>http://www.bergek.com/2009/03/17/acerfand-crashes-acer-aspire-one-110/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 02:32:09 +0000</pubDate>
		<dc:creator>Martin Bergek</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.bergek.com/?p=416</guid>
		<description><![CDATA[I have an Acer Aspire One 110 Ab that I have upgraded with 1 GB RAM (for a total of 1.5 GB) as well as upgrading the BIOS to version 3309. Before upgrading the BIOS, which was done in an attempt to improve the stability of 802.11 networking, the acerfand program worked wonders to keep [...]]]></description>
			<content:encoded><![CDATA[<p>I have an Acer Aspire One 110 Ab that I have upgraded with 1 GB RAM (for a total of 1.5 GB) as well as upgrading the BIOS to version 3309.</p>
<p>Before upgrading the BIOS, which was done in an attempt to improve the stability of 802.11 networking, the <a href="http://electronpusher.org/~rachel/acerfand">acerfand</a> program worked wonders to keep the fan running as little as possible.</p>
<p>Once I upgraded the BIOS to 3309 the acerfand program no longer worked. Instead of turning the fan off the fan was running at full speed for a second every other second. </p>
<p>On March 14th, version 0.07 of acerfand was released and I tried it out in the hope that it would fix the fan issue for by BIOS version. While it did turn off the fan, it caused the computer to reboot after a few minutes. Clearly, this was even worse than the alternative.</p>
<p>I did some trial and error and changed the value 0&#215;20 to 0&#215;21 (two places) for the 3309 specific values. In other words, roughly half-way down in the file, my acerfand file now looks like this:</p>
<pre>
"${BIOS_VERSION_3309}")
	#change: handle 3309 seperate 0xAF -> 0x20
	R_FAN=55
	R_TEMP=58
	FAN_CMD_OFF=21
	FAN_CMD_AUTO=00
	RAW_FAN_STATE_OFF="0x21"
	;;
</pre>
<p>This has completely solved the issue. The fan now stays off as long as the temperature is below 70 degrees Celsius. The rest of the time (which is virtually always) it is dead silent. Case closed. For now.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.bergek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.bergek.com/2009/03/17/acerfand-crashes-acer-aspire-one-110/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Target fix for Statpress Reloaded</title>
		<link>http://www.bergek.com/2009/03/03/target-fix-for-statpress-reloaded/</link>
		<comments>http://www.bergek.com/2009/03/03/target-fix-for-statpress-reloaded/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 02:38:10 +0000</pubDate>
		<dc:creator>Martin Bergek</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.bergek.com/?p=398</guid>
		<description><![CDATA[Statpress Reloaded by Manuel Grabowski is a nice and simple plugin that helps to keep track of the hit rate to WordPress blogs and is something I personally use it for this site. Apart from the fact that the plugin is a bit slow it miscalculates the monthly target hit rates. This has been mentioned [...]]]></description>
			<content:encoded><![CDATA[<p>Statpress Reloaded by <a href="http://blog.matrixagents.org/">Manuel Grabowski</a> is a nice and simple plugin that helps to keep track of the hit rate to WordPress blogs and is something I personally use it for this site.</p>
<p><img src="http://www.bergek.com/wp-content/uploads/2009/03/statpress.png" alt="statpress" title="statpress" width="220" height="163" class="aligncenter size-full wp-image-400" /></p>
<p>Apart from the fact that the plugin is a bit slow it miscalculates the monthly target hit rates. This has been mentioned to the plugin maintainer but until that fix gets added, here is a short description and fix.</p>
<p>The following sections in statpress.php are repeated in four places and is used to normalise the number of hits so far this month over the entire month.<br />
<code><br />
/ date("d", current_time('timestamp')) * date('d', mktime(0, 0, 0, date('m', current_time('timestamp'))+1, 0, date('Y', current_time('timestamp'))))<br />
</code><br />
However, this uses entire days which leads to incorrect results. The error is more predominant early in the month and early in the days.</p>
<p>I have replaced the above segment (four instances) with this:<br />
<code><br />
/ (time() - mktime(0,0,0,date('m'),date('1'),date('Y'))) * 86400 * date('t')<br />
</code><br />
This uses seconds since the beginning of month as the basis for normalisation which is more precise. It is not perfect &#8211; among other things it will fail exactly on midnight on the first of each month due to a divide by zero.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.bergek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.bergek.com/2009/03/03/target-fix-for-statpress-reloaded/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Increase upload size to Drupal site</title>
		<link>http://www.bergek.com/2009/03/01/increase-upload-size-to-drupal-site/</link>
		<comments>http://www.bergek.com/2009/03/01/increase-upload-size-to-drupal-site/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 21:42:53 +0000</pubDate>
		<dc:creator>Martin Bergek</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.bergek.com/?p=388</guid>
		<description><![CDATA[If you run a Drupal site and want to upload big files you may have run into the default file size limit of 1 MB. While this is probably fine for most blogs it is way too small for most intranet deployments. The limit for PHP is by default set to 2 MB for file [...]]]></description>
			<content:encoded><![CDATA[<p>If you run a Drupal site and want to upload big files you may have run into the default file size limit of 1 MB. While this is probably fine for most blogs it is way too small for most <a href="http://www.bergek.com/2009/02/26/using-drupal-to-run-an-intranet/">intranet deployments</a>. </p>
<p>The limit for PHP is by default set to 2 MB for file uploads.</p>
<p>To increase this to 10 MB, add the following to the .htaccess file in your Drupal directory or to the Apache site definition:<br />
<code><br />
php_value upload_max_filesize 10M<br />
php_value post_max_size 20M<br />
</code></p>
<p>More information can be found <a href="http://drupal.org/node/97193" target="_blank">here</a>.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.bergek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.bergek.com/2009/03/01/increase-upload-size-to-drupal-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Drupal to run an intranet</title>
		<link>http://www.bergek.com/2009/02/26/using-drupal-to-run-an-intranet/</link>
		<comments>http://www.bergek.com/2009/02/26/using-drupal-to-run-an-intranet/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 10:51:27 +0000</pubDate>
		<dc:creator>Martin Bergek</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.bergek.com/?p=377</guid>
		<description><![CDATA[I have been looking for ways to replace a Sharepoint driven intranet with something else. The driving force behind this has mainly been one of platform compatibility. Sharepoint is great if you use Office and Internet Explorer on Windows. For all other users it is a usability nightmare. There are lots of hosted or shrink-wrapped [...]]]></description>
			<content:encoded><![CDATA[<p>I have been looking for ways to replace a Sharepoint driven intranet with something else. The driving force behind this has mainly been one of platform compatibility. Sharepoint is great if you use Office and Internet Explorer on Windows. For all other users it is a usability nightmare.</p>
<p>There are lots of hosted or shrink-wrapped solutions for sale but the market of intranet solutions is now so mature that I felt there had to be open source solutions.</p>
<p>I found <a href="http://www.alfresco.com/" target="_blank">Alfresco</a>, <a target="_blank" href="http://www.liferay.com/web/guest/home">LifeRay</a> and a few others and installed most of them. I was perplexed, however, by the sheer amount of features that were enabled out of the box. I really prefer something that starts off light and can then expand according to my needs. <a target="_blank" href="http://www.knowledgetree.com/">KnowledgeTree</a> felt lighter but didn&#8217;t do much more than document management and I knew I also wanted a wiki as well as forums.</p>
<p>For a while I tried to integrate KnowledgeTree with <a target="_blank" href="http://www.mediawiki.org/wiki/MediaWiki">MediaWiki</a> and <a target="_blank" href="http://www.phpbb.com/">phpBB</a> for a best-of-breeds solution. I couldn&#8217;t get all of the them to play nicely together and allow users to authenticate using accounts from a Windows Active Directory.</p>
<p><a target="_blank" href="http://drupal.org"><img src="http://www.bergek.com/wp-content/uploads/2009/02/drupalorg.png" alt="drupalorg" title="drupalorg" width="264" height="84" class="aligncenter size-full wp-image-378" border="0"/></a></p>
<p>In the end I settled on <a target="_blank" href="http://drupal.org/">Drupal</a>. Why? It starts off light but has a truck-load of modules that can be added. I like the structure of the code. And it feels fresh &#8211; perhaps almost too light. I would have liked to see some professional free themes targeted for intranets, they would have helped to sell in the concept internally in competition with professional offerings.</p>
<p>The question of the authentication integration with Active Directory was solved very nicely by the module &#8220;<a target="_blank" href="http://drupal.org/project/webserver_auth">Webserver authentication</a>&#8221; and adding HTTP authentication to the web site in Apache where the web server is configured to use the bindings provided by <a target="_blank" href="http://www.samba.org">Samba</a>&#8216;s WinBind. The only thing to remember is to set the Drupal administrator to the the same login name as the administrator in the Windows domain. After that you should disable the log out menu option in Drupal. The only thing remaining is to add some Javascript code to be able to provide a link to make the browser forget the cookie in order to force a relogin.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.bergek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.bergek.com/2009/02/26/using-drupal-to-run-an-intranet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
