Qnap aufsetzen
TS-209 Hacks
Autorun:
mount /dev/mtdblock5 -t ext2 /tmp/config cd /tmp/config echo "svnserve -d --listen-port=1234" >> autorun.sh cd - umount /dev/mtdblock5
Ende von autorun.sh:
test -L /share/svn || ln -s /share/HDA_DATA/svn /share/svn test -L /share/trac || ln -s /share/HDA_DATA/trac /share/trac /opt/bin/svnserve -d --listen-port=1235 /opt/bin/tracd-2.6 -d -p 1236 --auth='*,/share/trac/test/conf/users.digest,Testprojekt' -e /share/trac test -L /share/egroupware || ln -s /share/HDA_DATA/egroupware /share/egroupware
Spezielle «versteckte» Dateisysteme:
/dev/mtdblock3: rootfs2.bz /dev/mtdblock5: BOOT_COUNT board_level_test.cfg mv_eth_tool.txt ETH0.MAC_ADDR hw_type storage.conf autorun.sh* uLinux.conf
Installierte Pakete:
ipkg install emacs22 less diffutils openssh openssh-sftp-server svn unrar ipkg install py26-trac py26-setuptools
Kann kein Python-Egg für Trac machen, daher Versuch: Alles Python Zeugs zu installieren:
ipkg list | grep py25- | awk '{print $1}' | xargs ipkg install
Resultat:
Installing py25-4suite (1.0.2-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-4suite_1.0.2-2_arm.ipk Installing py25-amara (1.2.0.2-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-amara_1.2.0.2-2_arm.ipk Installing py25-apsw (3.3.5-r1-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-apsw_3.3.5-r1-2_arm.ipk Installing py25-axiom (0.5.27-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-axiom_0.5.27-1_arm.ipk Installing py25-epsilon (0.5.9-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-epsilon_0.5.9-1_arm.ipk Installing py25-twisted (8.1.0-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-twisted_8.1.0-1_arm.ipk Installing py25-zope-interface (3.4.1-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-zope-interface_3.4.1-1_arm.ipk Installing py25-bazaar-ng (1.9-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-bazaar-ng_1.9-1_arm.ipk Installing py25-celementtree (1.0.5-20051216-5) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-celementtree_1.0.5-20051216-5_arm.ipk Installing py25-elementtree (1.2.6-20050316-5) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-elementtree_1.2.6-20050316-5_arm.ipk Installing py25-beaker (1.0.3-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-beaker_1.0.3-1_arm.ipk Installing py25-myghtyutils (0.52-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-myghtyutils_0.52-1_arm.ipk Installing py25-bittorrent (5.0.9-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-bittorrent_5.0.9-1_arm.ipk Installing py-bittorrent-common (5.0.9-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py-bittorrent-common_5.0.9-1_arm.ipk Installing py25-crypto (2.0.1-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-crypto_2.0.1-2_arm.ipk Installing libgmp (4.2.3-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/libgmp_4.2.3-1_arm.ipk Installing py25-bluez (0.9.2-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-bluez_0.9.2-1_arm.ipk Installing bluez-libs (3.36-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/bluez-libs_3.36-1_arm.ipk Package py25-buildutils (0.1.2-1) installed in root is up to date. Package py25-celementtree (1.0.5-20051216-5) installed in root is up to date. Installing py25-cheetah (2.0.1-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-cheetah_2.0.1-2_arm.ipk Installing py25-cherokee-scgi (1.6-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-cherokee-scgi_1.6-1_arm.ipk Installing py25-cherrypy (2.3.0-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-cherrypy_2.3.0-1_arm.ipk Installing py25-cjson (1.0.5-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-cjson_1.0.5-1_arm.ipk Installing py25-clips (1.0.7.348-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-clips_1.0.7.348-1_arm.ipk Installing py25-configobj (4.5.3-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-configobj_4.5.3-1_arm.ipk Installing py25-constraint (1.1-3) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-constraint_1.1-3_arm.ipk Package py25-crypto (2.0.1-2) installed in root is up to date. Installing py25-curl (7.18.2-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-curl_7.18.2-1_arm.ipk Installing py25-decorator (2.3.0-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-decorator_2.3.0-1_arm.ipk Installing py25-decoratortools (1.7-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-decoratortools_1.7-2_arm.ipk Installing py25-django (1.0-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-django_1.0-1_arm.ipk Installing py25-docutils (0.5-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-docutils_0.5-1_arm.ipk Installing py25-duplicity (0.4.11-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-duplicity_0.4.11-1_arm.ipk Installing librsync (0.9.7-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/librsync_0.9.7-1_arm.ipk Installing gnupg (2.0.9-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/gnupg_2.0.9-2_arm.ipk Installing libusb (0.1.12-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/libusb_0.1.12-1_arm.ipk Installing libgcrypt (1.2.4-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/libgcrypt_1.2.4-1_arm.ipk Installing libgpg-error (1.4-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/libgpg-error_1.4-1_arm.ipk Installing libpth (2.0.7-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/libpth_2.0.7-2_arm.ipk Installing libksba (1.0.3-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/libksba_1.0.3-1_arm.ipk Installing pinentry (0.7.5-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/pinentry_0.7.5-1_arm.ipk Package py25-elementtree (1.2.6-20050316-5) installed in root is up to date. Package py25-epsilon (0.5.9-1) installed in root is up to date. Installing py25-feedparser (4.1-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-feedparser_4.1-1_arm.ipk Installing py25-flup (1.0.1-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-flup_1.0.1-1_arm.ipk Installing py25-formencode (1.1-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-formencode_1.1-1_arm.ipk Installing py25-gd (0.56-4) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-gd_0.56-4_arm.ipk Installing libgd (2.0.35-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/libgd_2.0.35-2_arm.ipk Installing libpng (1.2.33-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/libpng_1.2.33-1_arm.ipk Installing libjpeg (6b-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/libjpeg_6b-2_arm.ipk Installing freetype (2.3.6-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/freetype_2.3.6-1_arm.ipk Installing fontconfig (2.5.0-0) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/fontconfig_2.5.0-0_arm.ipk Installing gconv-modules (2.3.6-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/gconv-modules_2.3.6-1_arm.ipk Installing py25-gdchart2 (Beta1-4) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-gdchart2_Beta1-4_arm.ipk Package py25-genshi (0.5.1-1) installed in root is up to date. Installing py25-getmail (4.8.4-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-getmail_4.8.4-1_arm.ipk Installing py-getmail-common (4.8.4-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py-getmail-common_4.8.4-1_arm.ipk Installing py25-gnosis-utils (1.2.1-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-gnosis-utils_1.2.1-1_arm.ipk Installing py25-hellanzb (0.13-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-hellanzb_0.13-2_arm.ipk Installing py25-yenc (0.3-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-yenc_0.3-1_arm.ipk Installing par2cmdline (0.4-4) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/par2cmdline_0.4-4_arm.ipk Installing py25-hgsvn (0.1.6-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-hgsvn_0.1.6-2_arm.ipk Installing py25-mercurial (1.0.2-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-mercurial_1.0.2-1_arm.ipk Installing py25-ipython (0.9.1-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-ipython_0.9.1-1_arm.ipk package py25-ipython suggests installing ipython-common Installing py25-kid (0.9.6-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-kid_0.9.6-2_arm.ipk Installing py25-lxml (2.1.2-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-lxml_2.1.2-1_arm.ipk Installing py25-mako (0.2.1-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-mako_0.2.1-1_arm.ipk Installing py25-mantissa (0.6.16-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-mantissa_0.6.16-1_arm.ipk Installing py25-nevow (0.9.29-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-nevow_0.9.29-1_arm.ipk Installing py25-markdown (1.7-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-markdown_1.7-2_arm.ipk Package py25-mercurial (1.0.2-1) installed in root is up to date. Installing py25-moin (1.8.0-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-moin_1.8.0-1_arm.ipk Installing py-moin-common (1.8.0-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py-moin-common_1.8.0-1_arm.ipk Installing coreutils (6.12-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/coreutils_6.12-2_arm.ipk Installing sed (4.1.5-3) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/sed_4.1.5-3_arm.ipk Installing tar (1.20-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/tar_1.20-1_arm.ipk Installing py25-mssql (0.8.0-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-mssql_0.8.0-1_arm.ipk Installing freetds (0.82-3) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/freetds_0.82-3_arm.ipk Installing py25-mx-base (3.1.1-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-mx-base_3.1.1-1_arm.ipk Installing py25-myghty (1.1-3) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-myghty_1.1-3_arm.ipk Installing py25-paste (1.7.2-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-paste_1.7.2-1_arm.ipk Installing py25-pastedeploy (1.3.2-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-pastedeploy_1.3.2-1_arm.ipk Installing py25-pastescript (1.7.2-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-pastescript_1.7.2-1_arm.ipk Installing py25-routes (1.10.1-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-routes_1.10.1-1_arm.ipk Package py25-myghtyutils (0.52-1) installed in root is up to date. Installing py25-mysql (1.2.2-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-mysql_1.2.2-1_arm.ipk Package py25-nevow (0.9.29-1) installed in root is up to date. Installing py25-nose (0.10.4-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-nose_0.10.4-1_arm.ipk Installing py25-openssl (0.7-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-openssl_0.7-1_arm.ipk Package py25-paste (1.7.2-1) installed in root is up to date. Package py25-pastedeploy (1.3.2-1) installed in root is up to date. Package py25-pastescript (1.7.2-1) installed in root is up to date. Installing py25-pastewebkit (1.0-3) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-pastewebkit_1.0-3_arm.ipk Installing py25-pexpect (2.4-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-pexpect_2.4-1_arm.ipk Installing py25-pgsql (2.5.1-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-pgsql_2.5.1-2_arm.ipk Installing py25-pil (1.1.6-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-pil_1.1.6-1_arm.ipk Installing py25-ply (2.5-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-ply_2.5-1_arm.ipk Installing py25-protocols (1.0a0dev-r2082-5) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-protocols_1.0a0dev-r2082-5_arm.ipk Installing py25-psycopg (1.1.21-6) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-psycopg_1.1.21-6_arm.ipk Installing py25-psycopg2 (2.0.8-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-psycopg2_2.0.8-1_arm.ipk Installing py25-pudge (0.1.2-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-pudge_0.1.2-1_arm.ipk Installing py25-pygresql (3.8.1-3) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-pygresql_3.8.1-3_arm.ipk Installing py25-pylons (0.9.6.1-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-pylons_0.9.6.1-2_arm.ipk Installing py25-pyrex (0.9.8.4-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-pyrex_0.9.8.4-1_arm.ipk Installing py25-quixote (2.5-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-quixote_2.5-2_arm.ipk Installing py25-rdiff-backup (1.2.2-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-rdiff-backup_1.2.2-1_arm.ipk Installing py25-reportlab (2.1-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-reportlab_2.1-2_arm.ipk Installing py-reportlab-common (2.1-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py-reportlab-common_2.1-2_arm.ipk Installing py25-roundup (1.4.6-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-roundup_1.4.6-1_arm.ipk Package py25-routes (1.10.1-1) installed in root is up to date. Installing py25-ruledispatch (0.5a0.dev-r2303-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-ruledispatch_0.5a0.dev-r2303-2_arm.ipk Installing py25-sabnzbd (0.2.5-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-sabnzbd_0.2.5-2_arm.ipk Installing py25-scgi (1.13-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-scgi_1.13-1_arm.ipk Installing py25-selector (0.8.11-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-selector_0.8.11-1_arm.ipk Installing py25-serial (2.4-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-serial_2.4-1_arm.ipk Installing py-serial-common (2.4-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py-serial-common_2.4-1_arm.ipk Package py25-setuptools (0.6c9-1) installed in root is up to date. Installing py25-silvercity (0.9.7-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-silvercity_0.9.7-1_arm.ipk Installing py25-simplejson (2.0.4-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-simplejson_2.0.4-1_arm.ipk Installing py25-simpy (1.9.1-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-simpy_1.9.1-1_arm.ipk package py25-simpy suggests installing py-simpy-doc Installing py25-sqlalchemy (0.4.8-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-sqlalchemy_0.4.8-1_arm.ipk Installing py25-sqlobject (0.9.7-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-sqlobject_0.9.7-1_arm.ipk Installing py25-tailor (0.9.34-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-tailor_0.9.34-1_arm.ipk Package py25-trac (0.11.2-1) installed in root is up to date. Installing py25-turbocheetah (1.0-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-turbocheetah_1.0-2_arm.ipk Installing py25-turbogears (1.0.3.3-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-turbogears_1.0.3.3-1_arm.ipk Installing py25-turbojson (1.2.1-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-turbojson_1.2.1-1_arm.ipk Installing py25-turbokid (1.0.4-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-turbokid_1.0.4-2_arm.ipk Installing findutils (4.2.32-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/findutils_4.2.32-1_arm.ipk Package py25-turbojson (1.2.1-1) installed in root is up to date. Package py25-turbokid (1.0.4-2) installed in root is up to date. Package py25-twisted (8.1.0-1) installed in root is up to date. Installing py25-urwid (0.9.8.3-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-urwid_0.9.8.3-1_arm.ipk Installing py-urwid-common (0.9.8.3-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py-urwid-common_0.9.8.3-1_arm.ipk Installing py25-usb (0.4.1-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-usb_0.4.1-1_arm.ipk Installing py25-weatherget (0.4.0.1-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-weatherget_0.4.0.1-1_arm.ipk package py25-weatherget suggests installing py-weatherget-doc Installing py25-webhelpers (0.6.1-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-webhelpers_0.6.1-1_arm.ipk Installing py25-webpy (0.23-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-webpy_0.23-2_arm.ipk Installing py25-xml (0.8.4-4) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-xml_0.8.4-4_arm.ipk Installing py25-yaml (3.05-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/py25-yaml_3.05-1_arm.ipk Package py25-yenc (0.3-1) installed in root is up to date. Package py25-zope-interface (3.4.1-1) installed in root is up to date. Configuring bluez-libs Configuring coreutils update-alternatives: Linking //opt/bin/[ to coreutils-lbracket update-alternatives: Linking //opt/bin/base64 to coreutils-base64 update-alternatives: Linking //opt/bin/basename to coreutils-basename update-alternatives: Linking //opt/bin/cat to coreutils-cat update-alternatives: Linking //opt/bin/chcon to coreutils-chcon update-alternatives: Linking //opt/bin/chgrp to coreutils-chgrp update-alternatives: Linking //opt/bin/chmod to coreutils-chmod update-alternatives: Linking //opt/bin/chown to coreutils-chown update-alternatives: Linking //opt/bin/chroot to coreutils-chroot update-alternatives: Linking //opt/bin/cksum to coreutils-cksum update-alternatives: Linking //opt/bin/comm to coreutils-comm update-alternatives: Linking //opt/bin/cp to coreutils-cp update-alternatives: Linking //opt/bin/csplit to coreutils-csplit update-alternatives: Linking //opt/bin/cut to coreutils-cut update-alternatives: Linking //opt/bin/date to coreutils-date update-alternatives: Linking //opt/bin/dd to coreutils-dd update-alternatives: Linking //opt/bin/df to coreutils-df update-alternatives: Linking //opt/bin/dir to coreutils-dir update-alternatives: Linking //opt/bin/dircolors to coreutils-dircolors update-alternatives: Linking //opt/bin/dirname to coreutils-dirname update-alternatives: Linking //opt/bin/du to coreutils-du update-alternatives: Linking //opt/bin/echo to coreutils-echo update-alternatives: Linking //opt/bin/env to coreutils-env update-alternatives: Linking //opt/bin/expand to coreutils-expand update-alternatives: Linking //opt/bin/expr to coreutils-expr update-alternatives: Linking //opt/bin/factor to coreutils-factor update-alternatives: Linking //opt/bin/false to coreutils-false update-alternatives: Linking //opt/bin/fmt to coreutils-fmt update-alternatives: Linking //opt/bin/fold to coreutils-fold update-alternatives: Linking //opt/bin/groups to coreutils-groups update-alternatives: Linking //opt/bin/head to coreutils-head update-alternatives: Linking //opt/bin/hostid to coreutils-hostid update-alternatives: Linking //opt/bin/id to coreutils-id update-alternatives: Linking //opt/bin/install to coreutils-install update-alternatives: Linking //opt/bin/join to coreutils-join update-alternatives: Linking //opt/bin/kill to coreutils-kill update-alternatives: Linking //opt/bin/link to coreutils-link update-alternatives: Linking //opt/bin/ln to coreutils-ln update-alternatives: Linking //opt/bin/logname to coreutils-logname update-alternatives: Linking //opt/bin/ls to coreutils-ls update-alternatives: Linking //opt/bin/md5sum to coreutils-md5sum update-alternatives: Linking //opt/bin/mkdir to coreutils-mkdir update-alternatives: Linking //opt/bin/mkfifo to coreutils-mkfifo update-alternatives: Linking //opt/bin/mknod to coreutils-mknod update-alternatives: Linking //opt/bin/mktemp to coreutils-mktemp update-alternatives: Linking //opt/bin/mv to coreutils-mv update-alternatives: Linking //opt/bin/nice to coreutils-nice update-alternatives: Linking //opt/bin/nl to coreutils-nl update-alternatives: Linking //opt/bin/nohup to coreutils-nohup update-alternatives: Linking //opt/bin/od to coreutils-od update-alternatives: Linking //opt/bin/paste to coreutils-paste update-alternatives: Linking //opt/bin/pathchk to coreutils-pathchk update-alternatives: Linking //opt/bin/pinky to coreutils-pinky update-alternatives: Linking //opt/bin/pr to coreutils-pr update-alternatives: Linking //opt/bin/printenv to coreutils-printenv update-alternatives: Linking //opt/bin/printf to coreutils-printf update-alternatives: Linking //opt/bin/ptx to coreutils-ptx update-alternatives: Linking //opt/bin/pwd to coreutils-pwd update-alternatives: Linking //opt/bin/readlink to coreutils-readlink update-alternatives: Linking //opt/bin/rm to coreutils-rm update-alternatives: Linking //opt/bin/rmdir to coreutils-rmdir update-alternatives: Linking //opt/bin/runcon to coreutils-runcon update-alternatives: Linking //opt/bin/seq to coreutils-seq update-alternatives: Linking //opt/bin/sha1sum to coreutils-sha1sum update-alternatives: Linking //opt/bin/sha224sum to coreutils-sha224sum update-alternatives: Linking //opt/bin/sha256sum to coreutils-sha256sum update-alternatives: Linking //opt/bin/sha384sum to coreutils-sha384sum update-alternatives: Linking //opt/bin/sha512sum to coreutils-sha512sum update-alternatives: Linking //opt/bin/shred to coreutils-shred update-alternatives: Linking //opt/bin/shuf to coreutils-shuf update-alternatives: Linking //opt/bin/sleep to coreutils-sleep update-alternatives: Linking //opt/bin/sort to coreutils-sort update-alternatives: Linking //opt/bin/split to coreutils-split update-alternatives: Linking //opt/bin/stat to coreutils-stat update-alternatives: Linking //opt/bin/stty to coreutils-stty update-alternatives: Linking //opt/bin/su to coreutils-su update-alternatives: Linking //opt/bin/sum to coreutils-sum update-alternatives: Linking //opt/bin/sync to coreutils-sync update-alternatives: Linking //opt/bin/tac to coreutils-tac update-alternatives: Linking //opt/bin/tail to coreutils-tail update-alternatives: Linking //opt/bin/tee to coreutils-tee update-alternatives: Linking //opt/bin/test to coreutils-test update-alternatives: Linking //opt/bin/touch to coreutils-touch update-alternatives: Linking //opt/bin/tr to coreutils-tr update-alternatives: Linking //opt/bin/true to coreutils-true update-alternatives: Linking //opt/bin/tsort to coreutils-tsort update-alternatives: Linking //opt/bin/tty to coreutils-tty update-alternatives: Linking //opt/bin/uname to coreutils-uname update-alternatives: Linking //opt/bin/unexpand to coreutils-unexpand update-alternatives: Linking //opt/bin/uniq to coreutils-uniq update-alternatives: Linking //opt/bin/unlink to coreutils-unlink update-alternatives: Linking //opt/bin/uptime to coreutils-uptime update-alternatives: Linking //opt/bin/users to coreutils-users update-alternatives: Linking //opt/bin/vdir to coreutils-vdir update-alternatives: Linking //opt/bin/wc to coreutils-wc update-alternatives: Linking //opt/bin/who to coreutils-who update-alternatives: Linking //opt/bin/whoami to coreutils-whoami update-alternatives: Linking //opt/bin/yes to coreutils-yes Configuring findutils update-alternatives: Linking //opt/bin/find to /opt/bin/findutils-find update-alternatives: Linking //opt/bin/xargs to /opt/bin/findutils-xargs Configuring fontconfig Configuring freetds Configuring freetype Configuring gconv-modules Configuring gnupg Configuring libgcrypt Configuring libgd Configuring libgmp Configuring libgpg-error Configuring libjpeg Configuring libksba Configuring libpng Configuring libpth Configuring librsync Configuring libusb Configuring par2cmdline Configuring pinentry Configuring py-bittorrent-common Configuring py-getmail-common Configuring py-moin-common Configuring py-reportlab-common Configuring py-serial-common Configuring py-urwid-common Configuring py25-4suite Configuring py25-amara Configuring py25-apsw Configuring py25-axiom Configuring py25-bazaar-ng Configuring py25-beaker Configuring py25-bittorrent Configuring py25-bluez Configuring py25-celementtree Configuring py25-cheetah Configuring py25-cherokee-scgi Configuring py25-cherrypy Configuring py25-cjson Configuring py25-clips Configuring py25-configobj Configuring py25-constraint Configuring py25-crypto Configuring py25-curl Configuring py25-decorator Configuring py25-decoratortools Configuring py25-django Configuring py25-docutils Configuring py25-duplicity Configuring py25-elementtree Configuring py25-epsilon Configuring py25-feedparser Configuring py25-flup Configuring py25-formencode Configuring py25-gd Configuring py25-gdchart2 Configuring py25-getmail Configuring py25-hellanzb Please edit config (/opt/etc/hellanzb.conf) Configure your news-servers and optionally change directory prefix. (now is /opt/tmp) You can start hellanzb by /opt/etc/init.d/S71hellanzb or a reboot. To monitor progress, you can watch /opt/var/log/hellanzb.log Or you can install a webinterface, like zussaweb Configuring py25-hgsvn Configuring py25-ipython Configuring py25-kid Configuring py25-lxml Configuring py25-mako Configuring py25-mantissa Configuring py25-markdown Configuring py25-mercurial Configuring py25-moin Configuring py25-mssql Configuring py25-mx-base Configuring py25-myghty Configuring py25-myghtyutils Configuring py25-mysql Configuring py25-nevow Configuring py25-nose Configuring py25-openssl Configuring py25-paste Configuring py25-pastedeploy Configuring py25-pastescript Configuring py25-pastewebkit Configuring py25-pexpect Configuring py25-pgsql Configuring py25-pil Configuring py25-ply Configuring py25-protocols Configuring py25-psycopg Configuring py25-psycopg2 Configuring py25-pudge Configuring py25-pygresql Configuring py25-pylons Configuring py25-pyrex Configuring py25-quixote Configuring py25-rdiff-backup Configuring py25-reportlab Configuring py25-roundup Configuring py25-routes Configuring py25-ruledispatch Configuring py25-sabnzbd Please edit config (/opt/etc/SABnzbd.ini) Default locations are: download_dir = /opt/tmp/SABnzbd/tmp/ complete_dir = /opt/tmp/downloads/ nzb_backup_dir = /opt/tmp/SABnzbd/nzb/backup/ cache_dir = /opt/tmp/SABnzbd/cache/ log_dir = /opt/var/log dirscan_dir = /opt/tmp/SABnzbd/nzb/ If you like them, you only have to configure your news-servers. Otherwise, remove the directories, make your own, and modify the configuration. You can start SABnzbd by /opt/etc/init.d/S70sabnzbd or a reboot. The webinterface is on eg. http://192.168.1.1:8080/sabnzbd Configuring py25-scgi Configuring py25-selector Configuring py25-serial Configuring py25-silvercity Configuring py25-simplejson Configuring py25-simpy Configuring py25-sqlalchemy Configuring py25-sqlobject Configuring py25-tailor Configuring py25-turbocheetah Configuring py25-turbogears rmdir /opt/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg-info rmdir /opt/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg-info Configuring py25-turbojson Configuring py25-turbokid Configuring py25-twisted Configuring py25-urwid Configuring py25-usb Configuring py25-weatherget Configuring py25-webhelpers Configuring py25-webpy Configuring py25-xml Configuring py25-yaml Configuring py25-yenc Configuring py25-zope-interface Configuring sed update-alternatives: Linking //opt/bin/sed to /opt/bin/gnu-sed Configuring tar update-alternatives: Linking //opt/bin/tar to /opt/bin/gnutar Successfully terminated. Collected errors: Package py25-gnosis-utils wants to install file /opt/lib/python2.5/site-packages/README But that file is already provided by package python25
SSH aus ipkg starten
Der einfache Weg
So funktioniert der sftp-Server, der Rest ist immer noch original qnap.
ln -s /opt/libexec /usr/
So sollte es sein
→ Problem: Die Änderungen bleiben nach reboot nicht erhalten!!!
ipkg install openssh cp /etc/ssh/ssh_host_rsa_key /opt/etc/openssh/ssh_host_rsa_key cp /etc/ssh/ssh_host_dsa_key /opt/etc/openssh/ssh_host_dsa_key
/opt/etc/openssh/sshd_config:
HostKey /opt/etc/openssh/ssh_host_rsa_key HostKey /opt/etc/openssh/ssh_host_dsa_key
/etc/init.d/login.sh:
SSH=/opt/sbin/sshd [...] echo -n "Starting sshd services: " /sbin/daemon_mgr sshd start "$SSH -f /opt/etc/openssh/sshd_config -p $SSH_PORT" echo "sshd." [...]
/etc/daemon_mgr.conf
DAEMON16 = sshd, start, /opt/sbin/sshd -f /opt/etc/openssh/sshd_config -p 22
Subversion-Server
ipkg install svn mkdir /share/HDA_DATA/svn ln -s HDA_DATA/svn /share/svn svnserve -d --listen-port=1234 ln -s /opt/bin/svnserve /usr/bin/
→ Wieso ist der Link nach /share/svn nach einem reboot verloren?!?
Neues Subversion Projekt
Projekt xxx:
svnadmin create /share/svn/xxx emacs /share/svn/xxx/conf/passwd emacs /share/svn/xxx/conf/svnserve.conf
/share/svn/xxx/conf/passwd:
[users] harry = harryssecret sally = sallyssecret
/share/svn/xxx/conf/svnserve.conf
[general] anon-access = read auth-access = write password-db = passwd
Oder mit einem Referenzprojekt yyy:
cd /share/svn/xxx/conf rm passwd ln ../../yyy/conf/passwd . rm svnserve.conf ln ../../yyy/conf/svnserve.conf .
Trac Server
ipkg install py25-trac py25-setuptools svn-py tracd -p 1236 -d -e /share/trac xxx
Zugang: http://url:1236/xxx
Neues Trac Projekt
Projekt xxx:
trac-admin /share/trac/xxx initenv
Crontab einrichten
Problem: crontab -e funktioniert nicht.
Lösung: Datei /etc/config/crontab bearbeiten, dann setzen mit
crontab /etc/config/crontab
Nach einem Reboot ist's wahrscheinlich wieder weg. Lösung: Eigene Cron-Zeilen in eine Datei, dann im autostart.sh an /etc/config/crontab anhängen und neue Datei laden. (Noch zu prüfen).
Backup auf zweiten Server, komplette Spiegelung
Die Spiegelung von qnap ist nur unvollständig. Zur vollständigen Spiegelung aller Daten, inklusive Optware verwende ich dieses Skript (benötigt ssh-preshared-Keys, siehe oben) (noch im Aufbau):
( echo "Starte Backup von Urknall nach Pulsar" date rsync -aHuxve ssh \ --exclude optware/dev \ --exclude optware/proc \ --exclude optware/proc/bus/usb \ --exclude optware/mnt \ /share/MD0_DATA/ \ admin@192.168.99.89:/share/MD0_DATA/ \ && echo "**** Erfolg ****" || echo "#### FEHLER ####" date echo "Beendet: Backup von Urknall nach Pulsar" ) 2>&1 >> /tmp/backup.log
Nach einem initialen Backup kann man es dann im täglichen cron laufen lassen.
autorun.sh
[~] # cat /tmp/config/autorun.sh #!/bin/sh # Internet access... cp /etc/resolv.conf /share/HDA_DATA/optware/etc cp /etc/hostname /share/HDA_DATA/optware/etc # Timezone... cp /etc/TZ /share/HDA_DATA/optware/etc # User/Group management... cp /etc/config/passwd /etc/config/group /etc/config/shadow /share/HDA_DATA/optware/etc # sym-link $CHROOT_DIR/opt to /opt rm -rf /opt ln -sf /share/HDA_DATA/optware/opt /opt # Mount directories into chroot mount -o bind /dev /share/HDA_DATA/optware/dev mount -o bind /proc /share/HDA_DATA/optware/proc mount -o bind /proc/bus/usb /share/HDA_DATA/optware/proc/bus/usb mount -o bind /share/HDA_DATA/Qmultimedia /share/HDA_DATA/optware/mnt/ext/Qmultimedia mount -o bind /share/HDA_DATA/Qdownload /share/HDA_DATA/optware/mnt/ext/Qdownload mount -o bind /share/HDA_DATA/Qweb /share/HDA_DATA/optware/mnt/ext/Qweb mount -o bind /share/HDA_DATA/Qusb /share/HDA_DATA/optware/mnt/ext/Qusb mount -o bind /share/HDA_DATA/Public /share/HDA_DATA/optware/mnt/ext/Public # adding Ipkg apps into system path ... echo export PATH=/opt/bin:/opt/sbin:/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin >> /etc/profile echo export LD_LIBRARY_PATH=/opt/lib:/lib:/usr/lib:/usr/lib/X11:/usr/local/lib >> /etc/profile test -L /share/svn || ln -s /share/HDA_DATA/svn /share/svn test -L /share/trac || ln -s /share/HDA_DATA/trac /share/trac /opt/bin/svnserve -d --listen-port=1235 /opt/bin/python2.5 /opt/bin/tracd -d -p 1236 --auth=*,/share/trac/test/conf/users.digest,Testprojekt -e /share/trac test -L /share/egroupware || ln -s /share/HDA_DATA/egroupware /share/egroupware
crontab
[~] # crontab -l # m h dom m dow cmd 0 3 * * * /usr/local/sbin/ImR_all -soft /Qmultimedia 0 5 * * * /etc/init.d/ddns_update.sh 0 4 * * * /sbin/hwclock -s 0 3 * * * /bin/rm -rf /mnt/HDA_ROOT/twonkymedia/twonkymedia.db/cache/* 0 3 * * * /sbin/qsmart -t short -d 1 0 5 */7 * * /sbin/qsmart -t extend -d 1 0 0 * * * /share/HDA_DATA/Public/backup/qnap/backup.sh 30 4 * * * /etc/init.d/Qthttpd.sh restart
Apache Umkonfigurieren
- Datei:
/mnt/HDA_ROOT/.config/apache/apache.conf→ Überleben Änderungen einen Reboot? Backup nicht vergessen! - Check:
/usr/local/apache/bin/apachectl configtest - Reload:
/usr/local/apache/bin/apachectl restart
SSL einrichten
Folgendes geht nicht, bin noch auf der Suche nach einer Lösung…:
http://venthur.de/Linux/ApacheSSLHOWTO:
mkdir /mnt/HDA_ROOT/.config/apache/sslopenssl req -new -x509 -nodes -out /share/Backup/qnap/apache-ssl.pemchmod 600 /share/Backup/qnap/apache-ssl.pemcp /share/Backup/qnap/apache-ssl.pem /mnt/HDA_ROOT/.config/apache/ssl/ln -sf /mnt/HDA_ROOT/.config/apache/ssl/apache-ssl.pem /mnt/HDA_ROOT/.config/apache/ssl/$(openssl x509 -noout -hash < /mnt/HDA_ROOT/.config/apache/ssl/apache-ssl.pem).0- In Datei
/mnt/HDA_ROOT/.config/apache/apache.confz.B. nach Zeile#ServerName www.example.comeinfügen:
SSLEngine On SSLCertificateFile /mnt/HDA_ROOT/.config/apache/ssl/apache-ssl.pem
Weitere apache.conf Dateien, keine Ahnung wozu, die Differenzen sind NUll oder sehr klein:
/mnt/HDA_ROOT/.config/apache.conf /mnt/HDA_ROOT/apache/conf/apache.conf.default /mnt/HDA_ROOT/apache/conf/apache.conf /mnt/HDA_ROOT/apache/conf/apache.conf~ /mnt/HDA_ROOT/rootfs_2_3_6/etc/config/apache.conf
