Suite du précédent billet.
- +I’m from Barcelona
- +The Ravonettes
- =Goose
- =Caribou
- =The Dodoz
Vers la soirée de jeudi.
Suite du précédent billet.
Vers la soirée de jeudi.
Goals
Hardware
Disclaimer
As always if something goes wrong and you destroy your hardware or lose some data, I cannot be held responsible. This said it worked for me 😉
Prerequisite
Your NSLU2 is correctly configured for your network. That is in the Web Interface under Tab Administration, sub-tab LAN, the IP address, network mask, gateway and primary DNS server fields are set.
Step-by-step guide
Installing the modified firmware:
/usr/local/sbin
ifconfig
to see which interface get the ip address from your DHCP server for example)sudo ./upslug2 --device en0
You should see your NSLU2 listed. (As mentionned in point 8 the --device
is only needed to specify your network interface)
sudo ./upslug2 --device en0 --image="/<path_to_the_firmware>/Unslung-6.10-beta.bin
Installing the necessary packages on the NSLU2:
unsling disk2
and give a new password for the root account
ipkg update
ipkg install openssh
ipkg install svn
ipkg install nano
Configure SVN:
/svn/repositories
directory with
mkdir /svn/diretories
svnadmin create /svn/repositories/<projet_name>
svnadmin dump <repos_path> > project.dump
(on the old svn instance). In the NSLU2 perform a
svnadmin load /svn/repositories/<project_name> < project.dump
You can now delete the project.dump
file.
/svn/repositories/<project_name>/conf/svnserve.conf
such that the following lines appears
anon-access = none #no anonymous can login auth-access = write #authenticated user are allowed to write password-db = passwd #use the passwd file for authentication
/svn/repositories/<project_name>/conf/passwd
file according to the example provided in the filesvnserve
deamon. We will make a /etc/rc.d/rc.svn
diversion’s script with the following content
#!/bin/sh /opt/bin/svnserve -d echo `date '+%Y/%m/%d %k:%m:%S'` " : svnserve start" >> /var/log/svnserve.log
chmod ugo+rx rc.svn
/bin/echo "Starting svn server:"; ( . /etc/rc.d/rc.svn )
to your rc.1
diversion’s script. You can put it almost anywhere in this diversion but I recommend put it near the end. In my case I have it after the start of the rc.bootdisk
‘s diversion.
rc.svn
is taken into accountsvn://<user_name_from_passwd>@<server_address>/svn\
/repositories/<projet_name>
Additional informations:
/share/flash/data/public
and has a mount point in the unix hierarchy at /public
. The same apply to the svn share.Ce jeudi le programme du paléo 08 est sorti. Comme l’année dernière, je serai présent en tant que bénévole durant les 6 jours du festival afin d’assurer la sécurité du camping. Voici mon choix de groupes pour le 22.07 (si j’ai le temps des les voir et même la motivation est une autre chose). Mon classement est simple: ++ à ne surtout pas louper, + essayer d’entendre deux ou trois titres, = si tu passes dans le coins tend l’oreille, pas mentionné pas intéressant.
Vers la soirée de mercerdi.