Talk:Virtual Tiles@Home - Ubuntu: Difference between revisions

From OpenStreetMap Wiki
Jump to navigation Jump to search
(→‎Bugs and Comments for Version 9.04 (29.4.2009): *Hi, first impression so far: I converted the 64bit vdi image to a qemu image and it works fine under debian64 5.03 kernel 2.6.26-2<br> :some initi)
Line 30: Line 30:
TIMEOUT=1200
TIMEOUT=1200
* Thanks, I'll do so. HvW 29 May 2009
* Thanks, I'll do so. HvW 29 May 2009

*Hi, first impression so far: I converted the 64bit vdi image to a qemu image and it works fine under debian64 5.03 kernel 2.6.26-2<br>
:some initial problems were:
:*less HD space which caused the app to stop (see [http://wiki.openstreetmap.org/index.php?title=User:Erkan_Yilmaz&oldid=338780])
:*it worried me a little that the email was shown, but as I read this can be changed afterwards (todo), --[[User:Erkan Yilmaz|Erkan Yilmaz]] 19:25, 13 September 2009 (UTC)


=Source File=
=Source File=

Revision as of 19:25, 13 September 2009

Discussion about vt@h

Virtual Tiles@Home Version 9.04 was published 29.4.2009.

Next Release of Virtual Tiles@Home Version 10.04 will be available approx. 30.4.2010. (ubuntu 10.04 LTS)

Bugs and Comments for Version 9.04 (29.4.2009)

Please describe what happens and what you expect and sign the message.

--Pjw1965 14:33, 29 April 2009 (UTC)

everything is running smooth, 1.2 GB RAM for the VM all other settings on default. nice job, thanks. --Leviticus 09:30, 30 April 2009 (UTC)

This version has only a 2 GB filesystem with a swapfile in. Is the inkscape with -DLARGE_CONFIG compiled? --Bibi 14:51, 5 May 2009 (UTC)

I have build a version of VT@h based on Ubuntu 9.04 Server for AMD64. This version is approximately 20 to 30 percent faster than the 32bit version, it depends on the tileset. Requirements: A 64bit-CPU that supports virtualization techniques (AMD-V or Intel VT-x), a 64bit OS like WindowsXP x64 or Vista x64 and the 64bit version of VirtualBox. Enable in VirtualBox the checkboxes PAE/NX and VT-x/AMD-V. Download the 7-zipped file at Rapidshare. --Otti38 05:57, 6 May 2009 (UTC)

  • tested this version on Windows 7 Build 7100 x64 and VirtualBox 2.2.4: runs nice and smooth. --Leviticus 16:02, 06 June 2009 (UTC)

The vT@H seems not to use Chinese and Janpanese charsets. In the tiles my client created those characters are missing. (I'm still using the last 9.04beta, but did not notice anything had changed in this aspect.)--Nhoffm 07:24, 19 May 2009 (UTC)

  • That's new for me. The Install-Guide does not really help for ubuntu. You could try aptitude install xfonts-intl-chinese xfonts-intl-japanese and write here, if it helps. --Pjw1965 16:02, 19 May 2009 (UTC)
    • Seems to make no difference.--Nhoffm 11:04, 4 June 2009 (UTC)
  • This is great! Setting up the software always scared me off, this ran in minutes! Should have known this a long time ago, always wanted to help OSM this way as well! One question: is it possible to add a command like "Finish current job(s), don't accept new ones in this session and halt after completion"? Thanks! HvW 27 May 2009
  • Modify /etc/init.d/tiles-gen-client (Exit joe with Ctrl-K,X) and then shutdown with HOST-H --Pjw1965 14:41, 28 May 2009 (UTC)
$ sudo joe /etc/init.d/tiles-gen-client
# timeout to wait for the client to finish on shutdown (20 minutes)
TIMEOUT=1200
  • Thanks, I'll do so. HvW 29 May 2009
  • Hi, first impression so far: I converted the 64bit vdi image to a qemu image and it works fine under debian64 5.03 kernel 2.6.26-2
some initial problems were:
  • less HD space which caused the app to stop (see [1])
  • it worried me a little that the email was shown, but as I read this can be changed afterwards (todo), --Erkan Yilmaz 19:25, 13 September 2009 (UTC)

Source File

/usr/local/sbin/osm:

#!/bin/bash
# (c) 2008-2009 pjw
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
echo "Version 29.04.09 for Version 9.04"

# osm
PRG=$(basename $0)

TILES_HOME="/var/tmp/tilesAtHome"
TILES_USER="openstreetmap"
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin"
START="$TILES_HOME/start.sh"

if [ ! "$UID" = 0 ]; then
  # sudo $(pwd)/$0 $@
  echo "Use: sudo $0 $@"
  exit
fi

# screen blank off
setterm -term linux -blank 0 -store

# network problem (workaround) (aptitude install dhcp3-client)
ifconfig | grep eth || dhclient
# needed programs
test -x /usr/bin/sudo  || { echo "installing sudo"; aptitude -y install sudo; }
test -x /sbin/rungetty || { echo "installing rungetty"; aptitude -y install rungetty; }
test -x /usr/sbin/cron || { echo "installing cron"; aptitude -y install cron; }

############
# tgc (tiles-gen-client) [start|stop|restart]
tgc()
{
test -d $TILES_HOME && {
  test -f $TILES_HOME/authentication.conf && {
    test -f /etc/init.d/tiles-gen-client && {
      . $TILES_HOME/authentication.conf
      test "$UploadUsername" != "" && {
        /etc/init.d/tiles-gen-client $1
      }
    }
  }
}
}

############
# installCron
installCron()
{
  crontab -l | grep -v $PRG >/tmp/cron
  echo "PATH=$PATH" >>/tmp/cron
  #echo "@hourly ps aux | grep tiles | grep -v grep || /etc/init.d/tiles-gen-client start" >>/tmp/cron
  echo "@reboot /usr/local/sbin/$PRG auto 2>&1 | tee -a /tmp/tiles.log >/var/log/install-osm.log" >> /tmp/cron
  crontab /tmp/cron
  rm /tmp/cron                                                          
}

############
# autologin
autologin()
{
  # http://wiki.ubuntuusers.de/Autologin
  grep -v exec /etc/event.d/tty1 >/tmp/autologin.tmp
  echo "exec /sbin/rungetty --autologin openstreetmap tty1" >>/tmp/autologin.tmp
  mv /tmp/autologin.tmp /etc/event.d/tty1
  chmod 644 /etc/event.d/tty1
  # .bashrc: tail (only on tty1)
  grep -v "tiles.log" /home/$TILES_USER/.bashrc >/tmp/bashrc
  echo "tty | grep tty1 >/dev/null && tail -f /tmp/tiles.log" >>/tmp/bashrc
  echo "tty | grep tty1 >/dev/null && echo 'To see the log enter: tail -f /tmp/tiles.log'" >>/tmp/bashrc
  mv /tmp/bashrc /home/$TILES_USER/.bashrc
  chown $TILES_USER.$TILES_USER /home/$TILES_USER/.bashrc
}

############
# installPrg
installPrg()
{
  aptitude -y update
  aptitude -y safe-upgrade
  aptitude -y install xmlstarlet subversion libgd-gd2-perl libmath-vec-perl inkscape pngcrush perlmagick zip \
              libwww-perl ttf-dejavu xfonts-thai libxml-writer-perl libset-object-perl libappconfig-perl \
              libxml-xpath-perl libxml-perl libxml-parser-perl libxml-sax-perl \
              pngnq optipng liberror-perl libipc-run-perl libclass-accessor-perl libmodule-pluggable-perl \
              joe acpi-support rungetty openssh-client cron
  aptitude -y clean
  aptitude -y autoclean
}

############
# getSNV 
getSVN()
{
cd /var/tmp/
su "$TILES_USER" -c "svn co http://svn.openstreetmap.org/applications/rendering/tilesAtHome"
# tilesAtHome.conf: AutoResetInkscapePrefs=1 and MaxTilesetComplexity=5000000
su "$TILES_USER" -c "egrep -v '^(AutoResetInkscapePrefs|MaxTilesetComplexity)' tilesAtHome/tilesAtHome.conf.linux >tilesAtHome/tilesAtHome.conf"
su "$TILES_USER" -c "echo 'AutoResetInkscapePrefs=1' >>tilesAtHome/tilesAtHome.conf"
su "$TILES_USER" -c "echo 'MaxTilesetComplexity=5000000' >>tilesAtHome/tilesAtHome.conf"
cd -
}

############
# deleteUser
deleteUser()
{
egrep -v "(UploadUsername|UploadPassword|tiles_tty)" $TILES_HOME/authentication.conf.example > $TILES_HOME/authentication.conf
}

############
# defaultUser
defaultUser()
{
deleteUser
echo 'UploadUsername=virtual.tiles@gmail.com' >> $TILES_HOME/authentication.conf
echo 'UploadPassword=ubuntu12' >> $TILES_HOME/authentication.conf
echo 'tiles_tty=y' >> $TILES_HOME/authentication.conf
}

############
# setUser
setUser()
{  
  deleteUser
  echo "Enter UploadUsername:"
  read UploadUsername
  echo "Enter UploadPassword:"
  read UploadPassword
  echo 'UploadUsername="'$UploadUsername'"' >> $TILES_HOME/authentication.conf
  echo 'UploadPassword="'$UploadPassword'"' >> $TILES_HOME/authentication.conf
  echo 'tiles_tty="'$tiles_tty'"' >> $TILES_HOME/authentication.conf
  chown $TILES_USER.users $TILES_HOME/authentication.conf
}

############
# swapfile [sizeMB]
swapfile()
{
echo "Create swapfile, size $1 MB, please wait..."
swapoff /var/swapfile >/dev/null 2>&1
dd if=/dev/zero of=/var/swapfile bs=1024 count=$(($1 * 1024))
echo "Activate swapfile."
mkswap /var/swapfile
swapon /var/swapfile
grep -v swapfile /etc/fstab >/tmp/fstab
echo "/var/swapfile   none   swap   sw   0   0" >>/tmp/fstab
mv /tmp/fstab /etc/fstab
}

############
# compactVDI
compactVDI()
{
aptitude clean
aptitude autoclean
# remove any personal connections
rm -r /root/.ssh /home/$TILES_USER/.ssh $TILES_HOME /etc/init.d/tiles-gen-client 2>/dev/null
update-rc.d tiles-gen-client remove
test -f /var/swapfile &&
{
  swapoff /var/swapfile
  rm /var/swapfile
}
grep -v swapfile /etc/fstab >/tmp/fstab
mv /tmp/fstab /etc/fstab
su "$TILES_USER" -c "history -c"
history -c
test $(df -l /dev/sda1 | tail -1 | tr -s ' ' | cut -d' ' -f3) -gt 500000 && {
  echo "After shutdown, you can compact the VDI by using: VBoxManage modifyhd osm.vdi --compact"
  echo "Please wait, I write up to 2 GB data..."
  dd if=/dev/zero of=junk
  sync
  rm junk
}
}

############
# writeInit
writeInit()
{
cat >/etc/init.d/tiles-gen-client <<"CLIENT"
#!/bin/sh
### BEGIN INIT INFO
# Provides:          tiles-gen-client
# Required-Start:    $remote_fs $syslog $all 
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start OSM at boot time
# Description:       Start OSM
### END INIT INFO
#
# tilesGen@home client software init script.
# feel free to change the script.
LOG=/tmp/tiles.log
printf "$* started\n" >>$LOG

chmod 666 $LOG # for user openstreetmap

# import lsb functions for init.d scripts
. /lib/lsb/init-functions

printf "test network\n" >>$LOG

# Netzwerkproblem (workaround) (aptitude install dhcp3-client)
ifconfig | grep eth >>$LOG || dhclient >>$LOG 2>&1

PIDFILE=/var/run/tilesGen.pid
# tilesAtHome directory
TILES_HOME="/var/tmp/tilesAtHome"
PERL="/usr/bin/perl"
# niceness level for client software
NICELEVEL=20
# username for tiles process
TILES_USER=openstreetmap
# timeout to wait for the client to finish on shutdown
TIMEOUT=120
# name of start script
START=start.sh

printf "init done.\n" >>$LOG

tiles_log()
{
# logfile for tiles (+ console 1)
  test -n "$tiles_tty" &&
    eval "$1" >> $LOG 2>&1
  test -z "$tiles_tty" && eval "$1" >> "$TILES_HOME/tilesAtHome.log" 2>&1
}

printf "start main()\n" >>$LOG

test -f $TILES_HOME/authentication.conf && . $TILES_HOME/authentication.conf
test "$UploadUsername" = "" && {
  log_action_cont_msg "UploadUsername in file $TILES_HOME/authentication.conf missing. "
  log_end_msg 0
  exit
}
        
      
case "$1" in
 start)
  printf "START\n" >>$LOG
  printf "setterm\n" >>$LOG
  setterm -term linux -blank 0 -store >> $LOG 2>&1
  printf "chmod tty1\n" >>$LOG
  # for user openstreetmap
  chmod 666 /dev/tty1 
  ls -l /dev/tty1  >>$LOG
  cd "$TILES_HOME" >>$LOG 2>&1
  log_begin_msg "Starting tilesGen@home client software..."
  printf "start daemon\n" >>$LOG
  start-stop-daemon --start --quiet --pidfile "$PIDFILE" --nicelevel "$NICELEVEL" --background --make-pidfile --chdir "$TILES_HOME" --chuid "$TILES_USER" --exec "/bin/sh" -- $START >/dev/null 2>&1
  printf "done.\n" >>$LOG
  log_end_msg 0
 ;;
 stop)
  printf "STOP\n" >>$LOG
  log_begin_msg "Stopping tilesGen@home client software (force after $TIMEOUT seconds)..."
  cd "$TILES_HOME"
  touch stopfile.txt
  # we have to wait for $PERL because perl was exec'ed by /bin/sh.
  start-stop-daemon --stop --quiet --chuid "$TILES_USER" --signal 0 -R $TIMEOUT --pidfile "$PIDFILE" --exec "$PERL"
  # sometimes a process is still running, make sure all is stoped
  sleep 3
  for i in perl inkscape pngcrush pngnq; do killall $i; done >/dev/null 2>&1
  sleep 3
  for i in perl inkscape pngcrush pngnq; do killall -9 $i; done >/dev/null 2>&1
  log_end_msg 0
 ;;
 restart)
  $0 stop
  exec $0 start
 ;;
 *)
  log_action_msg "Usage: /etc/init.d/tiles-gen-client {start|stop|restart}"
  exit 1
 ;;
esac
CLIENT
chmod 755 /etc/init.d/tiles-gen-client
}

############
# writeStart
writeStart()
{
cat >$START <<"START"
#!/bin/sh
PERL=/usr/bin/perl
LOG=/tmp/tiles.log # must be writeable by the t@h user
sudo chmod 666 $LOG # for user openstreetmap

# workarounds for inkscape problems when started from user environment
export LANG=C
unset DISPLAY

# set ulimits here to keep your system from thrashing
sudo rm -f stopfile.txt > /dev/null 2>&1

svn up >> $LOG 2>&1
exec $PERL tilesGen.pl loop >> $LOG 2>&1
START
chown $TILES_USER.$TILES_USER $START
chmod 755 $START
}

############
# main()

case "$1" in 
	install) # just first time used (bevore published to the public)
		 printf "\n\n\nInstall OSM\n===========\n\n"
		 printf "complete log is in /var/log/install-osm.log\n\n"
		 printf "Install Global Packages\n"
		 installPrg
		 # sudo without a password (for openstreetmap)
		 echo '%admin	ALL=(ALL)	NOPASSWD: ALL' >>/etc/sudoers
		 compactVDI
		 autologin
		 installCron
		 shutdown -h now
		 exit
		   ;;
	compact) tgc stop
		 compactVDI
		 autologin
		 installCron
		 shutdown -h now
		 exit
		   ;;
	setuser) tgc stop
		 setUser
		 tgc start
		 tty | grep tty1 >/dev/null && tail -f /tmp/tiles.log
		   ;;
 	swap)    if test "$2" != ""; then 
		   swapfile $2
		 else
		   swapfile 512
		 fi
 		   ;;
	cron)    # sudo without a password (for openstreetmap)
		 echo '%admin	ALL=(ALL)	NOPASSWD: ALL' >>/etc/sudoers
		 autologin
		 installCron
		   ;;
	auto)	 # it's called from cron at first boot
		 tgc stop
	 	 # prevents a second run of 'auto', when loggin on in tty2 (only if installed with 'first')
		 autologin
		 # wait for login prompt
		 for i in 1 2 3 4 5 6 7 8; do printf "\n"; sleep 1; done
		 printf "\n\n\nInstall OSM\n===========\n\n"
		 printf "complete log is in /var/log/install-osm.log\n\n"
		 printf "Install Global Packages\n"
		 installPrg
		 printf "Install OSM Packages (SVN)\n"
		 getSVN 
		 printf "Write start.sh script.\n"
		 writeStart
		 printf "Set up a default user (change with: sudo $PRG setuser\n" 
		 defaultUser
		 # remove autostart from cron
		 printf "remove autostart from cron\n"
		 crontab -l | grep -v $PRG >/tmp/cron
		 crontab /tmp/cron
		 rm /tmp/cron
		 # install swap, if none defined
		 printf "install swap, if none defined\n" 
		 grep swap /etc/fstab >/dev/null || swapfile 512
		 printf "Write /etc/init.d/tiles-gen-client script\n" 
		 writeInit
		 update-rc.d tiles-gen-client defaults 90 20 >/dev/null 2>&1
		 # sudo without a password (for openstreetmap)
		 echo '%admin	ALL=(ALL)	NOPASSWD: ALL' >>/etc/sudoers
		 # start
		 printf "Start OSM\n\n" 
		 tgc start
		   ;;
	start|stop|restart)
		 tgc $1
		   ;;
	*)	 echo "Use: $0 [start | stop | restart | compact | setuser | swap sizeInMB | cron]"
		   ;;
esac


Archive

9.04 beta

works smooth, great work :-), perhaps a question during install: want to use your own login? (y/N) --Leviticus 11:55, 23 April 2009 (UTC)

very good work, but i'm missing the stop-later command? will you also publish the root password? --HMichael 15:30, 26 April 2009 (UTC)

  • Actually it's a kind of stop-later. I just added a timeout of 120 seconds (I don't like to wait for a shutdown longer and I don't think it's a proble for the server if the last upload is missing). You can higher the timeout in the file /etc/init.d/tiles-gen-client to TIMEOUT=1200 like it is in Tiles@home/Install_Guide#Init_script.
  • There is no root password (in ubuntu). However you can become root with sudo su (as user openstreetmap). And if you like you can then set a root password with passwd. --Pjw1965 17:01, 26 April 2009 (UTC)

Perhaps you could change tilesAtHome.conf to use: MaxTilesetComplexity (about 5000000 seems to be a possible start-value for assigned memory of about 512MB) and "AutoResetInkscapePrefs=1" --Nhoffm 07:32, 27 April 2009 (UTC)

  • AutoResetInkscapePrefs=1 sounds logical, I'll change this --Pjw1965 11:25, 28 April 2009 (UTC)
  • MaxTilesetComplexity is complex. I investigate this, but as everyone can change virtual memory and swap size, I don't thik it's a good idea to fix this (0 means autotuning, see http://svn.openstreetmap.org/applications/rendering/tilesAtHome/config.defaults) --Pjw1965 11:25, 28 April 2009 (UTC)
    • Are you shure with your interpretation of MaxTilesetComplexity? Observing my clients suggest: 0 = no limit, > 1000000 = startvalue for autotuning.--Nhoffm 20:56, 28 April 2009 (UTC)
      • No, probably you're right. I'll give it a try in the release : MaxTilesetComplexity=5000000 --Pjw1965 14:36, 29 April 2009 (UTC)
  • ext4 Filesystem
    • Isn't it a bit early to change to ext4? Shouldn't have advantages to ext3 at such a small system, but stability might suffer.--Nhoffm 21:01, 28 April 2009 (UTC)
      • ext4 is the future. It's a chance to test in a virtual machine, which is not critical. If it sucks, I'll change it back. My server/desktop (ubuntu 9.04) will stay ext3 some time. --Pjw1965 09:35, 29 April 2009 (UTC)
      • as I was writing this, I used sudo osm compact. The ext4 sucks really! mpage_da_map_blocks block allocation failed for inode 57 at locical offset 363487 with max blocks 733 with error -28... This should not happen.!! Data will be lost --> I'll release it with ext3 --Pjw1965 09:40, 29 April 2009 (UTC)

Version 4 (2008-12-24)

Version 4 (2008-12-24) is ready for download via BitTorrent is based on Ubuntu/JeOS --Pjw1965 08:20, 24 December 2008 (UTC)

  • Mininova reports “The torrent you requested (id 2117143) does not exist in our database.” Ash 14:30, 24 December 2008 (UTC)
  • I'm seeding this version with 10 MBit upstream. If you tell me about new releases I'll seed those as well. I can provide http download as well if you want that --Gerryst 21:07, 27 December 2008 (UTC)
    • Thanks for fast seeding, for me it's easy to submit just a new torrent, I do not need a http download, but if someone needs one feel free to add the link in the wiki page --Pjw1965 12:49, 1 January 2009 (UTC)
  • It says "Note that current version is missing Error.pm perl-module", but when I try to install it the way it says on the page, I'm told that it is already installed. Have this been fixed in the install, but not on the wiki page? --Anders Lund 13:57, 30 December 2008 (UTC)
    • liberror-perl libipc-run-perl libclass-accessor-perl libmodule-pluggable-perl are new dependencies, they are missing in the script (in V@H), but should already be installed on the V@H. The Wiki-Script install-openstreetmap is up to date. --Pjw1965 15:17, 30 December 2008 (UTC)
    • I've just now realized, what you said... I updated the wiki page (removed the message about the error). Thanks. --Pjw1965 21:26, 8 January 2009 (UTC)
  • Hi! I'm running the ubuntu vm image on a mac. At the point where i'm asked to enter my OSM username (shoud be the email address, right?) i can't enter the "@" character. I have a german keyboard, but it seems to use the US layout. So instead of pressing ALT-L I hit shift-2. But this just erases the first part of the line. Any ideas? --TheBo 08:00, 1 January 2009 (UTC)
    • Try Shift-2 for "@", or change keyboard layout: dpkg-reconfigure console-setup
  • Does anyone have any statistics as to how much upload/download bandwidth this uses per hour/day? Ash 17:47, 2 January 2009 (UTC)
    • No statistics, but a gut feeling from previous version: It does not use much bandwidth--Japa-fi 17:31, 3 January 2009 (UTC)
      • Actually looking at work from yesterday. It uses more bandwidth than I assumed. In the hour I looked at, system uploaded some 6-7 megabytes. It does depend on the complexity of the created tile and the rendering speed of your computer. Some uploaded tiles were 200kb, some were 2megabytes. --Japa-fi 07:36, 14 January 2009 (UTC)
  • Is there a reason for one to upgrade from version 3 to version 4?--Japa-fi 17:31, 3 January 2009 (UTC)
    • swap disk included, smaller (faster?) system using JeOS; optimized for virtual machines; but bigger filessize, as long as the shrink command in VB 2.1 is not working; just for fun upgrading (but remember: never change a running system ;-) ) --Pjw1965 21:22, 8 January 2009 (UTC)
      • Ok. Thanks for clarifying. I'm with limited diskspace (laptop) and can't really afford to dedicate 2.5Gb so I rather stay with the version 3. I was worried if version 3 becomes obsolete in a way that it cannot be used to contribute. Clearly that is not the case. --Japa-fi 11:31, 13 January 2009 (UTC)
  • Can't unrar the file. Ark, unrar and 7zip report errors when trying. I have downloaded the rar file twice (from EU and US), and the SHA is okay. Any suggestions why? System: Kubuntu Intrepid 64 on Intel. --Krza 17:26, 8 January 2009 (UTC)
    • rar 1:3.8b2-2 in the multiverse works (use: rar e *.rar), unrar 1:3.8.2-1 in multiverse also (use: unrar e *.rar). I got errors only if there is no space left on device. System Ubuntu/Inteprid 32 on Intel. --Pjw1965 21:08, 8 January 2009 (UTC)
      • Thanks for the tip. Iĺl look for this version at next opportunity. But actually I do not need it any longer because I succeeded to install the normal perl based environment in 3 minutes based on the instruction somewhere here in the Wiki - and it runs now and generates tiles :) --Krza 21:57, 8 January 2009 (UTC)
  • How can i clone the VirtuaBox? Answer: VBoxManage clonevdi <filename.vdi> <outputfile.vdi>

With this you can run two VirtualBoxes on one PC. --M0nty 21:09, 30 April 2009 (UTC)

Version 3 (2008-08-08)

3rd version 2008-08-08, uses Rapperswil client (use link on top) --Pjw1965 14:40, 12 August 2008 (UTC)

  • This version runs fine here at the moment. See no problems so far. I will report problems here if I find some. --ise 19:02, 15 August 2008 (UTC)
  • Works great for me also, no problems so far Cipt2001 17:42, 28 August 2008 (UTC)
  • Works for me too. One remark: I had to change the port numbers to 80 for 'GoNogoURL' and 'UploadURL' in 'general.conf' because I cannot connect to port 81 behind my firewall. Works but I'm not sure whether this should be corrected some other way --miwie 12:27, 17 September 2008 (UTC)
  • Today a new version of t@h has been released which need some more perl modules (missing Error.pm). You must execute apt-get install liberror-perl libipc-run-perl libclass-accessor-perl libmodule-pluggable-perl to get those modules.--Schrom 23:24, 11 October 2008 (UTC)
  • Got out of memory error while rendering with 256Mb assigned to the VM. Perhaps 256Mb is not enough... --Japa-fi 13:02, 27 October 2008 (UTC)
    • RenderStripes = 5 is the key: (cd /var/tmp/tilesAtHome/ && cp tilesAtHome.conf.linux tilesAtHome.conf && echo "RenderStripes = 5" >> tilesAtHome.conf) --Pjw1965 17:04, 27 October 2008 (UTC)
  • Getting errors with rendering.

"Could not run the following command: pngcrush -q /tmp/tile [...] please check your installation" "Could not run the following command: pngnq -e .png.cut [...] please check our installation" etc. --Japa-fi 19:34, 30 October 2008 (UTC)


Version 2 (7.7.2008)

  • new version based on ubuntu server uses less HD space and uses updated scripts (use link on top) --Pjw1965 15:46, 7 July 2008 (UTC)
    • Thanks, Pjw! Works fine for me (VirtualBox 1.6.2, host Ubuntu 8.04-desktop) --Marko2 07:12, 8 July 2008 (UTC)
    • it also works with the new TAH-server, I only had to change username & password in "/var/tmp/tilesAtHome/authentication.conf" to the OSM account
    • I changed the keyboard layout with "dpkg-reconfigure console-setup". Seams to work.
    • I have tried an "apt-get update" and saw some updates available.Is it a good idea to run an update?
      • I do it from time to time (login in Console 2 with Alt-F2 as user:root pw:root #aptitude update; aptitude dist-upgrade) --Pjw1965 18:27, 4 August 2008 (UTC)
    • By the way: Have you used the ubuntu JeOS version (shall be optimized for virtualisation) --Marko2 20:22, 15 July 2008 (UTC)
      • It's based on ubuntu server. If I have time, I'll give it a try. Or even better you could try. --Pjw1965 18:27, 4 August 2008 (UTC)
  • If I use Ctrl-H to stop, then the current rendering is not finished and uploaded to the server. Can we make use of the stopfile.txt mechanism? --Marko2 22:47, 15 July 2008 (UTC)
    • I don't like to wait up to 30 minutes after a command halt, but you just have to modify the script tiles-gen-client ( replace "stop)" by "stop-now)" and replace "stop-later)" by "stop)" )
  • Being new to Linux (well not really but back after few years of Windows), I dont remember how to stop the screensaver on bash, any idea ? Shaihulud 22:46, 19 July 2008 (UTC)
    • try "setterm -blank 0", you also could add that to the script. --Marko2 18:43, 20 July 2008 (UTC)
      • works fine thanks !
  • I have a message while rendering is running: ColorQuantizing title*.png with pngnq failed, pngnq not installed? Is this a problem, how can i fix this? --gerrit 25 July 2008
    • Same pb, even after apt-get install pngnq. According tilesathome mailing list, there's a bug with pngnq delivered with Debian (then with Ubuntu). I suppose we have to wait for an Ubuntu update. Shaihulud
    • According to this, you can install a newer version (compile) or what I did: wget http://ftp.ch.debian.org/debian/pool/main/p/pngnq/pngnq_0.5-3_i386.deb; dpkg -i pngnq_0.5-3_i386.deb; --Pjw1965 15:46, 8 August 2008 (UTC)
  • The script doesnt seem to clean the job after use (got virtual disk full after around 300 runs) Shaihulud 14:11, 26 July 2008 (UTC)
    • Change DeleteZipFilesAfterUpload=1 in tilesAtHome.conf (shutdown and restart the virtual machine should also delete all the files) --Pjw1965 18:27, 4 August 2008 (UTC)

Version 1 (29.6.2008)

  • I am getting "Error reading request from Server. Idle for xx:xx". Running the script "locally" works fine at the moment, so I guess the problem is in the VDI. HannesHH 10:12, 30 June 2008 (UTC)
  • This is a network problem. I installed dhcp3-client (aptitude install dhcp3-client) and added 'dhclient' on top of the script /etc/init.d/tiles-gen-client:
 #!/bin/sh
 # tilesGen@home client software init script.
 # feel free to change the script.
 # (c) 2008 pjw
 # import lsb functions for init.d scripts
 . /lib/lsb/init-functions
 # Netzwerkproblem (workaround): aptitude install dhcp3-client
 dhclient

This should help. Could you confirm this. -- Pjw1965 05:24, 2 July 2008 (UTC)

  • confirmed, works fine now, HannesHH 10:05, 2 July 2008 (UTC)
  • it also works fine for me, how can I stop the status messages (i.e. if I want to use the terminal) --marko2 20:07, 4 July 2008 (UTC)
  • Switch to terminal 2 (Alt-F2) and log in --Pjw1965 17:13, 6 July 2008 (UTC)
  • Thanks, Pjw! The VDI works great (the original one with the dhclient patch, the ...20080702 uses HannesHH as user). I cloned it and have now 4 clients running on the same dualcore machine (most of the time 2 or 3 are waiting because of "Upload queue nearly full" --Marko2 20:36, 6 July 2008 (UTC)
    • oooops, looks like I screwed up there. I took the file down and gotta change my login. D'oh. HannesHH 06:58, 7 July 2008 (UTC)