<?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>GerillaFilm &#187; Linux</title>
	<atom:link href="http://www.gerillafilm.se/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gerillafilm.se</link>
	<description>Small means, great stuff</description>
	<lastBuildDate>Tue, 20 Dec 2011 09:43:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Shell script: create virtual hosts with PHP/fastCGI (mod_fcgi)</title>
		<link>http://www.gerillafilm.se/linux/shell-script-create-virtual-hosts-with-phpfastcgi-mod_fcgi/</link>
		<comments>http://www.gerillafilm.se/linux/shell-script-create-virtual-hosts-with-phpfastcgi-mod_fcgi/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 23:35:54 +0000</pubDate>
		<dc:creator>Finn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[fcgid]]></category>
		<category><![CDATA[FcgidMaxRequestLen]]></category>
		<category><![CDATA[groupadd]]></category>
		<category><![CDATA[http error]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[upload]]></category>
		<category><![CDATA[useradd]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.gerillafilm.se/?p=172</guid>
		<description><![CDATA[UPDATES: Version 1.1 &#8211; June 20 2011 Added  &#8221;FcgidMaxRequestLen 1000000000&#8221; to virtual host settings in order to get the WordPress Flash based image uploader to work. The default value in fcgid caused it to throw a &#8220;HTTP Error&#8221; when crunching the images. Commented out the Apache directive &#8220;ServerAlias&#8221; which in previous version defaulted to *.example.com. [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: 15px; font-weight: bold;">UPDATES:</span></p>
<h4>Version 1.1 &#8211; June 20 2011</h4>
<ul>
<li>Added  &#8221;<em>FcgidMaxRequestLen 1000000000</em>&#8221; to virtual host settings in order to get the WordPress Flash based image uploader to work. The default value in fcgid caused it to throw a &#8220;HTTP Error&#8221; when crunching the images.</li>
<li>Commented out the Apache directive &#8220;ServerAlias&#8221; which in previous version defaulted to <em>*.example.com</em>. That of course might cause problems when setting up both root domain and sub domains on the same server. Feel free to uncomment or add custom aliases.</li>
<li>Moved the ports.conf tip from script echo to comments at the end.</li>
</ul>

<pre class="brush: bash; title: ; notranslate">
#!/bin/bash
# Shell script to create virtual hosts running PHP/FastCGI with mod_fcgi
# on Apache 2
# -------------------------------------------------------------------------
# Version 1.1 (June 20 2011)
# -------------------------------------------------------------------------
# Copyright (c) 2011 Finn Hensner &lt;http://www.gerillafilm.se&gt;
# This script is licensed under GNU GPL version 2.0 or above
# -------------------------------------------------------------------------

clear
echo &quot;# -----------------------------------------------------------&quot;
echo &quot;# ---------- Virtual host with mod_fcgi - installer ---------&quot;
echo &quot;# -----------------------------------------------------------&quot;

read -p &quot;Enter domain name to use: &quot; domainName

read -p &quot;Enter port number for virtual host: &quot; port

if [ $(id -u) -eq 0 ]; then
    read -p &quot;Enter username : &quot; userName
    read -s -p &quot;Enter password : &quot; userPassword
    egrep &quot;^$userName&quot; /etc/passwd &gt;/dev/null
    if [ $? -eq 0 ]; then
        echo &quot;$userName exists!&quot;
        exit 1
    else
        pass=$(perl -e 'print crypt($ARGV[0], &quot;password&quot;)' $userPassword)
                groupadd $userName;
                useradd -s /bin/sh -p $pass -d /var/www/$domainName -m -g $userName $userName

        [ $? -eq 0 ] &amp;&amp; echo &quot;User has been added to system!&quot; || echo &quot;Failed to add a user!&quot;
    fi
else
    echo &quot;Only root may add a user to the system&quot;
    exit 2
fi

clear
echo -e &quot;\n\tDomain name: $domainName:$port&quot;
echo -e &quot;\tUser name: $userName&quot;
echo -e &quot;\tPassword: $userPassword&quot;
echo &quot;(Your user credentials will be saved in a .txt-file outside your web root)&quot;
echo -e &quot;\tFinish with these settings?\n\n&quot;
select yn in &quot;Yes&quot; &quot;No&quot;; do
    case $yn in
        Yes ) echo &quot;Preparing...&quot;;

#sleep 1
#groupadd $userName;
echo &quot;Added group $groupName&quot;

#sleep 1
#useradd -s /bin/sh -p $userPassword -d /var/www/$domainName -m -g $userName $userName
#echo &quot;Added user $userName&quot;

sleep 1
mkdir -p /var/www/$domainName/public_html
echo &quot;Creating folder /var/www/$domainName/public_html&quot;

sleep 2
chown -R $userName:$userName /var/www/$domainName
echo &quot;Added ownership to webroot&quot;

sleep 2
mkdir -p /var/www/php-fcgi-scripts/$domainName
echo &quot;Created cgi script folder for $domainName&quot;

sleep 1
echo -e &quot;#!/bin/sh\nPHPRC=/etc/php5/cgi/\nexport PHPRC\nexport PHP_FCGI_MAX_REQUESTS=5000\nexport PHP_FCGI_CHILDREN=8\nexec /usr/lib/cgi-bin/php&quot; &gt; /var/www/php-fcgi-scripts/$domainName/php-fcgi-starter
echo &quot;Created cgi-wrapper for $domainName&quot;

sleep 1
chmod 755 /var/www/php-fcgi-scripts/$domainName/php-fcgi-starter
chown -R $userName:$userName /var/www/php-fcgi-scripts/$domainName
echo &quot;Changed ownership on fcgi-wrapper&quot;

sleep 1
echo -e &quot;&lt;VirtualHost *:$port&gt;\n\tServerName $domainName\n\t#ServerAlias $domainName *.$domainName\n\tServerAdmin webmaster@$domainName\n\tDocumentRoot /var/www/$domainName/public_html\n\n\n\t&lt;IfModule mod_fcgid.c&gt;\n\t\tSuexecUserGroup $userName $userName\n\t\tFcgidMaxRequestLen 1000000000\n\t\t&lt;Directory /var/www/$domainName/public_html&gt;\n\t\t\tOptions +ExecCGI\n\t\t\tAllowOverride All\n\t\t\tAddHandler fcgid-script .php\n\t\t\tFCGIWrapper /var/www/php-fcgi-scripts/$domainName/php-fcgi-starter .php\n\t\t\tOrder allow,deny\n\t\t\tAllow from all\n\t\t&lt;/Directory&gt;\n\t&lt;/IfModule&gt;\n\n\nServerSignature Off\n\n\n&lt;/VirtualHost&gt;&quot; &gt; /etc/apache2/sites-available/$domainName
echo &quot;Added virtual host for $domainName&quot;

sleep 1
a2ensite $domainName
echo &quot;Enabling virtual host $domainName&quot;

sleep 1
/etc/init.d/apache2 reload
echo &quot;Restarting apache&quot;

sleep 1
echo -e &quot;Your account credentials:\n\nDomain name: $domainName:$port\nUser name: $userName\nPassword: $userPassword&quot; &gt; /var/www/$domainName/login-$domainName.txt
echo -e &quot;******************************************************************************&quot;
echo -e &quot;Your account credentials:\n\nDomain name: $domainName:$port\nUser name: $userName\nPassword: $userPassword&quot;
echo -e &quot;Saved text file with credentials in /var/www/$domainName/login-$domainName.txt&quot;
echo -e &quot;******************************************************************************\n\n&quot;
chown $userName:$userName /var/www/$domainName/login-$domainName.txt
chmod 600 /var/www/$domainName/login-$domainName.txt

break;;
        No ) exit;;
    esac
done

# -------------------------------------------------------------------------
# Make sure you edit /etc/apache2/ports.conf and add another NameVirtualHost
# if you want your server to listen to additional ports, ie 8080 for proxying.
# -------------------------------------------------------------------------
</pre>
<p><span style="font-size: 15px; line-height: 19px; white-space: normal;"><br />
</span></p>
<pre><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 15px; font-weight: bold; line-height: 19px; white-space: normal;">Instructions</span></pre>
<p>To run the script, begin with pasting it into a new file:</p>
<pre class="brush: bash; title: ; notranslate">nano vhost-fcgi.sh</pre>
<p>Make it executable:</p>
<pre class="brush: bash; title: ; notranslate">chmod 755 vhost-fcgi.sh</pre>
<p>Run it:</p>
<pre class="brush: bash; title: ; notranslate">./vhost-fcgi.sh</pre>
<p>To easily install Apache 2 and dependencies, read <a title="Shell script: install Apache 2 with dependencies for PHP/mod_fcgi" href="http://www.gerillafilm.se/linux/shell-script-install-apache-2-with-dependencies-for-phpmod_fcgi/">Shell script: install Apache 2 with dependencies for PHP/mod_fcgi</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gerillafilm.se/linux/shell-script-create-virtual-hosts-with-phpfastcgi-mod_fcgi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell script &#8211; install LAMP with dependencies for PHP/mod_fcgi</title>
		<link>http://www.gerillafilm.se/linux/shell-script-install-apache-2-with-dependencies-for-phpmod_fcgi/</link>
		<comments>http://www.gerillafilm.se/linux/shell-script-install-apache-2-with-dependencies-for-phpmod_fcgi/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 22:44:37 +0000</pubDate>
		<dc:creator>Finn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[fresh]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[mod_fcgid]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[stack]]></category>

		<guid isPermaLink="false">http://www.gerillafilm.se/?p=179</guid>
		<description><![CDATA[This script is intended for fresh Linux installs to provide support for the LAMP stack running with mod_fcgid instead of the default mod_php Apache module. UPDATES: Version 1.1 &#8211; August 18 2011 Added apt-get update to refresh package list Added MySQL server Added php5-gd library (to comply with Drupal 7 requirements) Added PDO MySQL driver [...]]]></description>
			<content:encoded><![CDATA[<p>This script is intended for fresh Linux installs to provide support for the LAMP stack running with mod_fcgid instead of the default mod_php Apache module.</p>
<p><strong>UPDATES:</strong></p>
<h4>Version 1.1 &#8211; August 18 2011</h4>
<ul>
<li>Added apt-get update to refresh package list</li>
<li>Added MySQL server</li>
<li>Added php5-gd library (to comply with Drupal 7 requirements)</li>
<li>Added PDO MySQL driver (to comply with Drupal 7 requirements)</li>
<li>Moved specific php.ini extensions and fixes to separate custom.ini file</li>
<li>Added restart of proftpd<span id="more-179"></span></li>
</ul>
<p>To run the script, begin with pasting it into a new file:</p>
<pre class="brush: bash; title: ; notranslate">nano webinstall.sh</pre>
<p>Make it executable:</p>
<pre class="brush: bash; title: ; notranslate">chmod 755 webinstall.sh</pre>
<p>Run it:</p>
<pre class="brush: bash; title: ; notranslate">./webinstall.sh</pre>
<p>To easily set up sites and users, read <a title="Shell script: create virtual hosts with PHP/fastCGI (mod_fcgi)" href="http://www.gerillafilm.se/linux/shell-script-create-virtual-hosts-with-phpfastcgi-mod_fcgi/">Shell script: create virtual hosts with PHP/fastCGI (mod_fcgi)</a></p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/bash
# Shell script to install LAMP with dependencies for running PHP applications
# with mod_fcgi
# -------------------------------------------------------------------------
# Version 1.1 (August 18 2011)
# -------------------------------------------------------------------------
# Copyright (c) 2011 Finn Hensner &lt;http://www.gerillafilm.se&gt;
# This script is licensed under GNU GPL version 2.0 or above
# -------------------------------------------------------------------------
apt-get update
aptitude install apache2 apache2-suexec libapache2-mod-fcgid php5-cgi
a2dismod php5
a2enmod rewrite
a2enmod suexec
a2enmod include
a2enmod fcgid

apt-get install mysql-server
apt-get install php5-gd
apt-get install php5-common php5-mysql

sleep 1
echo &quot;Adding extensions and fixes to custom ini&quot;
echo -e &quot;cgi.fix_pathinfo = 1\nextension=gd2.so\nextension=pdo.so\nextension=pdo_mysql.so\n&quot; &gt; /etc/php5/conf.d/custom.ini

sleep 1
echo &quot;Add server name to Apache config&quot;
echo &quot;ServerName 127.0.0.1&quot; &gt;&gt; /etc/apache2/apache2.conf

sleep 1
echo &quot;Installing ProFTPd server&quot;
apt-get purge proftpd
apt-get install proftpd
#jail users in their home directory
echo -e &quot;&lt;Global&gt;\nDefaultRoot ~\n&lt;/Global&gt;&quot; &gt;&gt; /etc/proftpd/proftpd.conf

sleep 1
echo &quot;Removing default virtual host.&quot;
rm /etc/apache2/sites-available/default
rm /etc/apache2/sites-enabled/default-000

sleep 1
echo &quot;Restarting apache2 and proftpd&quot;
service apache2 restart
service proftpd restart
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.gerillafilm.se/linux/shell-script-install-apache-2-with-dependencies-for-phpmod_fcgi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Webmin &#8211; Hetzner VPS Debian 6 LAMP + fastcgi + php5 + apache</title>
		<link>http://www.gerillafilm.se/linux/webmin-setup-hetzner-debian-6-lamp-stack-with-fastcgi-php5-apache/</link>
		<comments>http://www.gerillafilm.se/linux/webmin-setup-hetzner-debian-6-lamp-stack-with-fastcgi-php5-apache/#comments</comments>
		<pubDate>Wed, 18 May 2011 10:50:22 +0000</pubDate>
		<dc:creator>Finn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[fcgid]]></category>
		<category><![CDATA[Hetzner]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[vq7]]></category>
		<category><![CDATA[webmin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.gerillafilm.se/?p=138</guid>
		<description><![CDATA[This tutorial applies to servers preconfigured with LAMP (Debian 6, Apache 2, Mysql 5, PHP 5.2). If the LAMP stack is not installed, it&#8217;s pretty straightforward to install the respective components via apt-get install. Since the image I&#8217;m using has Webmin preinstalled I use it to quickly get started. The main thing with this setup [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial applies to servers preconfigured with LAMP (Debian 6, Apache 2, Mysql 5, PHP 5.2). If the LAMP stack is not installed, it&#8217;s pretty straightforward to install the respective components via apt-get install. Since the image I&#8217;m using has Webmin preinstalled I use it to quickly get started.<span id="more-138"></span></p>
<p>The main thing with this setup is to avoid permission issues when installing and running Drupal and WordPress. Since they depend quite heavily on writing files, changing settings, updating plugins and modules you may end up with a very loose permissions scheme that tends to lead to an insecure installation.</p>
<h3>Goals</h3>
<ul>
<li>make Apache run PHP applications as an arbitrary user (not www-data)</li>
<li>create &#8220;sandboxed&#8221; websites and users to avoid Apache user gaining access to other sites on the same machine (especially important if you&#8217;re using or want to create a shared hosting environment)</li>
<li>avoid 777 permissions all over the place</li>
</ul>
<p>(If Apache is already installed, this is where you begin)</p>
<p><strong>Install modules:</strong></p>
<pre>aptitude install apache2-suexec libapache2-mod-fcgid php5-cgi
/etc/init.d/apache2 restart</pre>
<p>You might get the following error message, ignore it for now:</p>
<pre>"Could not reliably determine the server's fully qualified domain name,
using xxx.xxx.xxx.xxx for ServerName"</pre>
<p><strong>Disable the mod_php </strong>- we will use fcgid instead:</p>
<pre>a2dismod php5</pre>
<p><strong>Enable the newly installed Apache modules:</strong></p>
<pre>a2enmod rewrite
a2enmod suexec
a2enmod include
a2enmod fcgid</pre>
<p><strong>Open and edit /etc/php5/cgi/php.ini</strong></p>
<pre>nano /etc/php5/cgi/php.ini</pre>
<p><strong>Uncomment or add the following line:</strong></p>
<pre>cgi.fix_pathinfo = 1</pre>
<p><strong>Restart Apache:</strong></p>
<pre>/etc/init.d/apache2 restart</pre>
<p><strong>In Webmin</strong>, go to Servers &gt; ProFTPD Server &gt; Files and directories</p>
<pre>Set "Limit users to directories" to "Home directory". Save.
Apply changes (restart ProFTPD Server).</pre>
<p><strong>Create a directory</strong> for the site which also will be the home directory for your web user:</p>
<pre>mkdir -p /var/www/my<em>newsite.com</em>/public_html</pre>
<p><strong>In Webmin</strong>, create a user under System &gt; Users and groups &gt; Create a new user</p>
<pre>Username: <em>mynewuser</em>
User ID: Automatic
Home directory: browse to /var/www/my<em>newsite.com</em>/ and select it
Password: Normal password &gt; (<em>Choose a good, random password</em>)
Primary group: New group with same name as user
Create home directory: Yes
Copy template files to home directory: Yes
Create user in other modules: Yes</pre>
<p><strong>Make your new user owner of their webroot:</strong></p>
<pre>cd /var/www/my<em>newsite.com </em>
chown -R <em>mynewuser:<em>mynewusergroup</em></em> *
<em>NOTE: sometimes the permissions might get corrupted, in that case, try: </em>chown -R <em>mynewuser:<em>mynewusergroup</em></em> /var/www/<em>mynewsite.com</em></pre>
<p><strong>Create a fastcgi wrapper script for the new site:</strong></p>
<pre>mkdir -p /var/www/php-fcgi/<em>mynewsite.com</em>
nano /var/www/php-fcgi/<em>mynewsite.com</em>/php-fcgi-starter</pre>
<p><strong>Add the following to php-fcgi-starter then save:</strong></p>
<pre><!-- p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} -->#!/bin/sh
PHPRC=/etc/php5/cgi/
export PHPRC
export PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_CHILDREN=8
exec /usr/lib/cgi-bin/php</pre>
<p><strong>Make the script executable and owned by the user:</strong></p>
<pre>chmod 755 /var/www/php-fcgi/<em>mynewsite.com</em>/php-fcgi-starter

cd /var/www/php-fcgi/<em>mynewsite.com chown -R mynewuser:nynewusergroup *  </em></pre>
<p>In Webmin, remove the catch-all virtual server if it exists (Handles the name-based server <tt></tt>on address <tt>*</tt>.)</p>
<p><strong>Then remove the leftovers from the virtual host:</strong></p>
<pre>rm /etc/apache2/sites-enabled/000-default</pre>
<p><strong>Create a new virtual host:</strong></p>
<p>Servers &gt; Apache webserver &gt; Create virtual host:</p>
<pre>Specific address:  <em>mynewsite.com </em>Add name virtual server address (if needed): Yes
Listen on address (if needed): Yes
Port: 80
Document root: /var/www/<em>mynewsite.com</em>/public_html
Allow access to this directory: Yes
Server name: <em>mynewsite.com </em>Add virtual server to file: New file under virtual servers directory
Copy directives from: Nowhere</pre>
<p>NOTE 1: if you later create sites to be handled by fcgi you may copy/paste the directives from the initial site and then only change document root and user/group info in the new site&#8217;s directives.</p>
<p>NOTE 2:  you still need to create new fastcgi wrapper scripts and unique user for each site.</p>
<p><strong>Tell Apache to listen for the new site:</strong></p>
<pre>Servers &gt; Apache webserver &gt; Global configuration &gt; Networking and addresses:

Check "Include all addresses".
Under "Adresses for name virtual servers" add:
<em>mynewsite.com:80</em></pre>
<p><strong>Save and restart Apache </strong>(&#8220;Apply changes&#8221; in Webmin).</p>
<p><strong>Add directives for the site</strong>. Virtual server &gt; Edit directives:</p>
<pre>ServerName mynewsite.com
ServerAlias mynewsite.com
DocumentRoot /var/www/mynewsite.com/public_html
&lt;IfModule mod_fcgid.c&gt;
 SuexecUserGroup mynewuser mynewusergroup 
 &lt;Directory /var/www/mynewsite.com/public_html&gt;
  Options +ExecCGI
  AllowOverride All
  AddHandler fcgid-script .php
  FCGIWrapper /var/www/php-fcgi/mynewsite.com/php-fcgi-starter .php
  Order allow,deny
  Allow from all 
 &lt;/Directory&gt;&lt;/IfModule&gt;
# ErrorLog /var/log/apache2/error.log
# CustomLog /var/log/apache2/access.log combined
ServerSignature Off</pre>
<p><strong>Save and restart Apache. Done!</strong></p>
<p>(<a href="http://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-debian-lenny" target="_blank">Based on Falko Timme&#8217;s guide</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gerillafilm.se/linux/webmin-setup-hetzner-debian-6-lamp-stack-with-fastcgi-php5-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automount a volume in Fedora</title>
		<link>http://www.gerillafilm.se/linux/automount-a-volume-in-fedora/</link>
		<comments>http://www.gerillafilm.se/linux/automount-a-volume-in-fedora/#comments</comments>
		<pubDate>Mon, 10 May 2010 19:45:56 +0000</pubDate>
		<dc:creator>Finn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Amahi]]></category>
		<category><![CDATA[automatically]]></category>
		<category><![CDATA[automount]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[mount]]></category>

		<guid isPermaLink="false">http://www.gerillafilm.se/?p=113</guid>
		<description><![CDATA[To automatically mount a specified volume each time you boot into Fedora, edit the following file: Add the following line  at the end depending on volume and mount point: Save and exit. (If the volume is formatted with NTFS, use the following syntax instead)]]></description>
			<content:encoded><![CDATA[<p>To automatically mount a specified volume each time you boot into Fedora, edit the following file:</p>
<pre class="brush: bash; title: ; notranslate">/etc/fstab</pre>
<p>Add the following line  at the end depending on volume and mount point:</p>
<pre class="brush: bash; title: ; notranslate">/dev/sdb1 /var/hda/files/</pre>
<p>Save and exit.</p>
<p>(If the volume is formatted with NTFS, use the following syntax instead)</p>
<pre class="brush: bash; title: ; notranslate">/dev/sdb1 /var/hda/files/ ntfs-3g defaults 0 0</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.gerillafilm.se/linux/automount-a-volume-in-fedora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mount a drive or volume to use with Amahi home server</title>
		<link>http://www.gerillafilm.se/linux/mount-drive-to-use-with-amahi-home-server/</link>
		<comments>http://www.gerillafilm.se/linux/mount-drive-to-use-with-amahi-home-server/#comments</comments>
		<pubDate>Sun, 09 May 2010 22:42:54 +0000</pubDate>
		<dc:creator>Finn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Amahi]]></category>
		<category><![CDATA[drive]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[NTFS]]></category>
		<category><![CDATA[volume]]></category>

		<guid isPermaLink="false">http://www.gerillafilm.se/?p=106</guid>
		<description><![CDATA[How to mount a drive or volume to be accessible by Amahi home server: First you need to find out what the volume is called within Fedora. To list the drives recognized by the system type the following in terminal: Let&#8217;s say you want to mount the volume named &#8220;sdb1&#8243;, then use: If the volume [...]]]></description>
			<content:encoded><![CDATA[<p>How to mount a drive or volume to be accessible by Amahi home server:</p>
<p>First you need to find out what the volume is called within Fedora. To list the drives recognized by the system type the following in terminal:</p>
<pre class="brush: bash; title: ; notranslate">ls /dev/sd*</pre>
<p>Let&#8217;s say you want to mount the volume named &#8220;sdb1&#8243;, then use:</p>
<pre class="brush: bash; title: ; notranslate">mount /dev/sdb1 /var/hda/files/myvolume</pre>
<p>If the volume you want to mount is an NTFS drive, instead use:</p>
<pre class="brush: bash; title: ; notranslate">mount -t ntfs /dev/sdb1 /var/hda/files/myvolume</pre>
<p>Note that you may need to change priviligies on the mounted drive if you want to download directly from Amahi or copy to it over the network.</p>
<p>When you&#8217;ve mounted the volume in <em>/var/files/</em> you only need to specify the name you gave it to add it as a share in Amahi share settings.</p>
<p>If you want to mount the volume automatically when you boot, read <a href="http://www.gerillafilm.se/linux/automount-a-volume-in-fedora/">Automount a volume in Fedora</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gerillafilm.se/linux/mount-drive-to-use-with-amahi-home-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatic login with Fedora 12</title>
		<link>http://www.gerillafilm.se/linux/automatic-login-to-fedora-12/</link>
		<comments>http://www.gerillafilm.se/linux/automatic-login-to-fedora-12/#comments</comments>
		<pubDate>Sat, 08 May 2010 12:02:58 +0000</pubDate>
		<dc:creator>Finn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Amahi]]></category>
		<category><![CDATA[autologin]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[logon]]></category>

		<guid isPermaLink="false">http://www.gerillafilm.se/?p=89</guid>
		<description><![CDATA[Here&#8217;s how to automatically login to a Fedora Linux box. Useful when you run a headless machine as home server, in my case Amahi Home Server. Fire up terminal, locally or via SSH and log in as root. Edit the GDM config file by following file by typing: Add the following to the end of [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how to automatically login to a Fedora Linux box. Useful when you run a headless machine as home server, in my case Amahi Home Server.</p>
<p>Fire up terminal, locally or via SSH and log in as root.</p>
<p>Edit the GDM config file by following file by typing:</p>
<pre class="brush: bash; title: ; notranslate">nano /etc/gdm/custom.conf</pre>
<p>Add the following to the end of the file:</p>
<pre class="brush: bash; title: ; notranslate">
[daemon]
 TimedLoginEnable=true
 AutomaticLoginEnable=true
 AutomaticLogin=yourusername
 TimedLogin=yourusername
 TimedLoginDelay=0
</pre>
<p>Save and exit. On reboot, the machine should autologin with the username you specified.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gerillafilm.se/linux/automatic-login-to-fedora-12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amahi home server</title>
		<link>http://www.gerillafilm.se/linux/amahi-home-server/</link>
		<comments>http://www.gerillafilm.se/linux/amahi-home-server/#comments</comments>
		<pubDate>Thu, 06 May 2010 13:53:03 +0000</pubDate>
		<dc:creator>Finn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Amahi]]></category>
		<category><![CDATA[Home server]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.gerillafilm.se/?p=75</guid>
		<description><![CDATA[After watching movies on the 13&#8243; for a couple of years I got meself a Samsung. Not the grotesque wallpaper sized one but still pretty ok-large. So how and what do I feed it with? Mini-DVI+the great free media center Plex seemed like a reasonable setup for a while. If you want to chain your [...]]]></description>
			<content:encoded><![CDATA[<p>After watching movies on the 13&#8243; for a couple of years I got meself a Samsung. Not the grotesque wallpaper sized one but still pretty ok-large. So how and what do I feed it with? Mini-DVI+the great free media center <a href="http://www.plexapp.com" target="_blank">Plex</a> seemed like a reasonable setup for a while. If you want to chain your laptop to the TV set or using a MacMini, that is.</p>
<p><img class="alignleft size-full wp-image-76" title="amahilogo" src="http://www.gerillafilm.se/wp-content/uploads/2010/05/amahi-header-new.png" alt="" />So I went fishing for a cheap setup for my new (HD-)TV needs. Since I consume at least 10 hours worth of podcasting every week there was a small chance I would run across something useful. And then the FLOSS Weekly guys interviewed the project manager for <a href="http://amahi.org">Amahi Home Server</a>.</p>
<p><strong>Quick look:</strong></p>
<ul>
<li><strong>YES &#8211; Home server running on Fedora Linux</strong></li>
<li><strong>YES &#8211; App-store-ish way of installing applications with one-click</strong> (mentioned probaby 100 times in <a href="http://twit.tv/floss112" target="_blank">Floss weekly episode 112</a>)</li>
<li><strong>YES &#8211; Built-in and preconfigured VPN and Samba shares</strong></li>
<li><strong>NO &#8211; Replacement of Media center or media streamer</strong><br />
You still need something that connects to your TV or projector. I chose the reasonably priced <a href="http://www.wdtvlive.com/" target="_blank">Western Digital WD TV Live HD</a>.</li>
<li><strong>NO &#8211; plug-and-play.</strong><br />
Though this is marketed as a quick and easy solution you still need some basic knowledge not to mention interest in Linux to get it working properly. Example, even if you&#8217;ve partitioned or mounted a hard drive in Windows or Mac before it&#8217;s still not quite the same with Fedora. That said you get a lot of help with the setup from the excellent <a href="http://www.amahi.org/support/instructions" target="_blank">installation guide provided by Amahi</a>.</li>
</ul>
<p>But when I got it running it&#8217;s doing just fine. I&#8217;ll post some quick terminal guide how-tos of things I had to do in order to mount drives, autologin on boot etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gerillafilm.se/linux/amahi-home-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.gerillafilm.se/category/linux/feed/ ) in 0.64682 seconds, on Feb 7th, 2012 at 10:14 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 8th, 2012 at 3:38 am UTC -->
