<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://www.3open.org/d/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://www.3open.org/d/feed.php">
        <title>Open Source Solutions voyage</title>
        <description></description>
        <link>http://www.3open.org/d/</link>
        <image rdf:resource="http://www.3open.org/d/lib/images/favicon.ico" />
       <dc:date>2010-09-11T04:40:19+08:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://www.3open.org/d/voyage/backup-mydb.sh?rev=1276142540&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.3open.org/d/voyage/enable_hardware_encryption?rev=1275629785&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.3open.org/d/voyage/ensure_leds_will_blink_after_boot?rev=1263007479&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.3open.org/d/voyage/fix_clock_issue?rev=1275629480&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.3open.org/d/voyage/how_to_make_root_fs_read_only_from_start_to_stop?rev=1283138209&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.3open.org/d/voyage/mysql-init?rev=1276143076&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.3open.org/d/voyage/relocate_folders_to_tmpfs?rev=1276150405&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.3open.org/d/voyage/run_mysql_with_data_files_in_memory?rev=1276142985&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.3open.org/d/voyage/setup_external_hard_drive?rev=1263133576&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.3open.org/d/voyage/setup_nas_related_features?rev=1276138509&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.3open.org/d/voyage/setup_nginx_php5?rev=1274948407&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.3open.org/d/voyage/setup_transmission_bt?rev=1283138954&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.3open.org/d/voyage/setup_wi-fi_ap_in_bridge_mode?rev=1276174228&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.3open.org/d/voyage/voyage-sync_init_script?rev=1279022959&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.3open.org/d/voyage/voyage?rev=1278827754&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://www.3open.org/d/lib/images/favicon.ico">
        <title>Open Source Solutions</title>
        <link>http://www.3open.org/d/</link>
        <url>http://www.3open.org/d/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://www.3open.org/d/voyage/backup-mydb.sh?rev=1276142540&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-06-10T12:02:20+08:00</dc:date>
        <title>voyage:backup-mydb.sh</title>
        <link>http://www.3open.org/d/voyage/backup-mydb.sh?rev=1276142540&amp;do=diff</link>
        <description>#!/bin/sh

# shell script to backup all mysql db to disk(/var/lib/mysql)
#
# last update: 2009-11-09

# edit to your needs
PROGNAME=$0
ROOTPW=&quot;0000&quot;
DUMPFILE=&quot;/var/lib/mysql/alldb&quot;

# check current state RO or RW, force RW if not
mount | egrep &quot;ROOT_FS.+rw,&quot;
if [ $? -ne 0 ] ; then
        rw=0
        /usr/local/sbin/remountrw
else
        rw=1
fi

# protect dumpfile from error
set -e

mysqldump --add-drop-table --quote-names -u root -p$ROOTPW --all-databases | gzip -c &gt; $DUMPFILE.tmp
r=$?
if [ …</description>
    </item>
    <item rdf:about="http://www.3open.org/d/voyage/enable_hardware_encryption?rev=1275629785&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-06-04T13:36:25+08:00</dc:date>
        <title>voyage:enable_hardware_encryption</title>
        <link>http://www.3open.org/d/voyage/enable_hardware_encryption?rev=1275629785&amp;do=diff</link>
        <description>To set the required modules to load at startup, add these to /etc/modules:


ocf
cryptodev
cryptosoft


Also, make sure geode_aes is loaded automatically, if not, add to /etc/modules.

For 0.6.2, the bundled openssl and libssl does not have cryptodev support.
Need to install the patched openssl and libssl with cryptodev support:</description>
    </item>
    <item rdf:about="http://www.3open.org/d/voyage/ensure_leds_will_blink_after_boot?rev=1263007479&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-01-09T11:24:39+08:00</dc:date>
        <title>voyage:ensure_leds_will_blink_after_boot</title>
        <link>http://www.3open.org/d/voyage/ensure_leds_will_blink_after_boot?rev=1263007479&amp;do=diff</link>
        <description>The LEDs is the most convenient indicator of your ALIX. You need it to tell you at a glance that system is running or booted up OK.

As of 0.6.2, The LEDs are controlled in the /etc/init.d/voyage-util script.
During startup, the system will try to remount RO. If that fails, leds will not be set due to ”set -e” in script. To prevent this, edit /etc/init.d/voyage-util, move start_led to just after start:</description>
    </item>
    <item rdf:about="http://www.3open.org/d/voyage/fix_clock_issue?rev=1275629480&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-06-04T13:31:20+08:00</dc:date>
        <title>voyage:fix_clock_issue</title>
        <link>http://www.3open.org/d/voyage/fix_clock_issue?rev=1275629480&amp;do=diff</link>
        <description>Set time zone


1. Edit /etc/timezone, for example set to Hong Kong:



Asia/Hong_Kong


Or, run:



dpkg-reconfigure tzdata


2. Copy the zone files /usr/share/zoneinfo/Asia/Hong_Kong from the build-box.

Fix clock issue


If using the kernel 2.6.26-486-voyage, or 2.6.30-voyage and a ALIX board, the clock must be fixed.</description>
    </item>
    <item rdf:about="http://www.3open.org/d/voyage/how_to_make_root_fs_read_only_from_start_to_stop?rev=1283138209&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-08-30T11:16:49+08:00</dc:date>
        <title>voyage:how_to_make_root_fs_read_only_from_start_to_stop</title>
        <link>http://www.3open.org/d/voyage/how_to_make_root_fs_read_only_from_start_to_stop?rev=1283138209&amp;do=diff</link>
        <description>Disable mounting root fs ReadWrite during boot


Patch file /etc/init.d/checkroot.sh:

 
--- checkroot.sh.old	2010-07-11 11:11:34.000000000 +0000
+++ checkroot.sh	2010-07-11 11:11:51.000000000 +0000
@@ -48,7 +48,7 @@
 	rootdev=none
 	roottype=none
 	rootopts=defaults
-	rootmode=rw
+	rootmode=ro
 	rootcheck=no
 	swap_on_lv=no
 	swap_on_file=no</description>
    </item>
    <item rdf:about="http://www.3open.org/d/voyage/mysql-init?rev=1276143076&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-06-10T12:11:16+08:00</dc:date>
        <title>voyage:mysql-init</title>
        <link>http://www.3open.org/d/voyage/mysql-init?rev=1276143076&amp;do=diff</link>
        <description>#!/bin/bash
#
### BEGIN INIT INFO
# Provides:          mysql
# Required-Start:    $remote_fs $syslog mysql-ndb
# Required-Stop:     $remote_fs $syslog mysql-ndb
# Should-Start:      $network $named $time
# Should-Stop:       $network $named $time
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start and stop the mysql database server daemon
# Description:       Controls the main MySQL database server daemon &quot;mysqld&quot;
#                    and its wrapper script &quot;mysqld…</description>
    </item>
    <item rdf:about="http://www.3open.org/d/voyage/relocate_folders_to_tmpfs?rev=1276150405&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-06-10T14:13:25+08:00</dc:date>
        <title>voyage:relocate_folders_to_tmpfs</title>
        <link>http://www.3open.org/d/voyage/relocate_folders_to_tmpfs?rev=1276150405&amp;do=diff</link>
        <description>Suppose you want to relocate /var/lib/mylib/ to tmpfs for saving flash 
life because of heavy writing, you will edit /etc/default/voyage-util, and set:



VOYAGE_SYNC_DIRS=&quot;var/lib/mylib&quot;



Reboot after done.

During boot, this setting will be pick up by /etc/rcS.d/S36voyage-sync,
which will:</description>
    </item>
    <item rdf:about="http://www.3open.org/d/voyage/run_mysql_with_data_files_in_memory?rev=1276142985&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-06-10T12:09:45+08:00</dc:date>
        <title>voyage:run_mysql_with_data_files_in_memory</title>
        <link>http://www.3open.org/d/voyage/run_mysql_with_data_files_in_memory?rev=1276142985&amp;do=diff</link>
        <description>This is needed to protect the flash card if your application updates the data tables heavily.

1. Put backup-mydb.sh in /usr/local/bin


2. Edit(set ROOTPW, ...etc) and run the backup-mydb.sh script once. 

3. Create mount point for new datadir, edit /etc/fstab , add lines:</description>
    </item>
    <item rdf:about="http://www.3open.org/d/voyage/setup_external_hard_drive?rev=1263133576&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-01-10T22:26:16+08:00</dc:date>
        <title>voyage:setup_external_hard_drive</title>
        <link>http://www.3open.org/d/voyage/setup_external_hard_drive?rev=1263133576&amp;do=diff</link>
        <description>You should choose an external hard drive that will spin down automatically after idle(no I/O activity) for some time. And in order to let it idle, you need to dismount the drive; that leads to the use of autofs.

Configure autofs

Add this to /etc/auto.master:</description>
    </item>
    <item rdf:about="http://www.3open.org/d/voyage/setup_nas_related_features?rev=1276138509&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-06-10T10:55:09+08:00</dc:date>
        <title>voyage:setup_nas_related_features</title>
        <link>http://www.3open.org/d/voyage/setup_nas_related_features?rev=1276138509&amp;do=diff</link>
        <description>SMB/CIFS - Samba

Install the stock samba package using apt-get to provide SMB/CIFS support.

To let the root fs stay in ReadOnly mode, edit /etc/default/voyage-util and set:


VOYAGE_SYNC_DIRS=&quot;var/lib/samba&quot;


This effectively will move /var/lib/samba to tmpfs.</description>
    </item>
    <item rdf:about="http://www.3open.org/d/voyage/setup_nginx_php5?rev=1274948407&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-05-27T16:20:07+08:00</dc:date>
        <title>voyage:setup_nginx_php5</title>
        <link>http://www.3open.org/d/voyage/setup_nginx_php5?rev=1274948407&amp;do=diff</link>
        <description>Nginx is preferred because of small footprint. Lighttpd is also a good choice but I cannot get it to work with PHP File Navigator.

Setup Nginx


Use apt-get to install the stock nginx web server.

Trim down memory usage, adjust these options in nginx.conf:</description>
    </item>
    <item rdf:about="http://www.3open.org/d/voyage/setup_transmission_bt?rev=1283138954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-08-30T11:29:14+08:00</dc:date>
        <title>voyage:setup_transmission_bt</title>
        <link>http://www.3open.org/d/voyage/setup_transmission_bt?rev=1283138954&amp;do=diff</link>
        <description>Transmission is small footprint, provides a web interface to control torrent downloads, good for headless device.

Building


I use version 1.76. A copy of the source is here: 

Make sure these are installed as stated in the transmission wiki:

	*  build-essential
		*  automake
		*  autoconf
		*  libtool
		*  pkg-config
		*  libcurl4-openssl-dev
		*  intltool
		*  libxml2-dev
		*  libgtk2.0-dev
		*  libnotify-dev
		*  libglib2.0-dev</description>
    </item>
    <item rdf:about="http://www.3open.org/d/voyage/setup_wi-fi_ap_in_bridge_mode?rev=1276174228&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-06-10T20:50:28+08:00</dc:date>
        <title>voyage:setup_wi-fi_ap_in_bridge_mode</title>
        <link>http://www.3open.org/d/voyage/setup_wi-fi_ap_in_bridge_mode?rev=1276174228&amp;do=diff</link>
        <description>Install madwifi-modules-2.6.30-voyage_0.9.4~rc2-1+7.0-1_i386.deb to avoid stuck beacon problem.

To make the WLAN bridge with LAN, add these to /etc/network/interface:



auto ath0
iface ath0 inet manual
    # ensure ath0 is down (never fails because of &quot;true&quot;)
    pre-up wlanconfig ath0 destroy || true

    # set up the ath0 device in AP mode before bringing up the interface
    pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ap

    # remove the ath0 device when bringing the interface dow…</description>
    </item>
    <item rdf:about="http://www.3open.org/d/voyage/voyage-sync_init_script?rev=1279022959&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-07-13T20:09:19+08:00</dc:date>
        <title>voyage:voyage-sync_init_script</title>
        <link>http://www.3open.org/d/voyage/voyage-sync_init_script?rev=1279022959&amp;do=diff</link>
        <description>Customize SYNCFS_DEV= to your needs.


#! /bin/bash
### BEGIN INIT INFO
# Provides:             voyage-sync
# Required-Start:       $local_fs
# Required-Stop:        $local_fs
# Should-Start:
# Should-Stop:          
# Default-Start:        S
# Default-Stop:         0 6
# Short-Description:    Voyage tmpfs and sync
# Description:          Voyage tmpfs and sync
### END INIT INFO
#
#
#       Based on Voyage Linux
#       Modified by Michael Fung  http://www.3open.org/
#       To help keep root fs …</description>
    </item>
    <item rdf:about="http://www.3open.org/d/voyage/voyage?rev=1278827754&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-07-11T13:55:54+08:00</dc:date>
        <title>voyage:voyage</title>
        <link>http://www.3open.org/d/voyage/voyage?rev=1278827754&amp;do=diff</link>
        <description>Why spend over HK$1,000 for a eco-friendly 586 class machine? The reason behind this is so obvious that need no more explanation. 

The major goals:

	*  Operate 7×24 with very lower power consumption.
	*  Support P2P file sharing. No more leaving the desktop PC on just for P2P!
	*  Provide basic NAS functions.</description>
    </item>
</rdf:RDF>
