F2 Amule/es
From FON Wiki Beta
Esta pagina todavía no ha sido traducida o aun le falta algo por traducir! Ayuda
a otros Foneros contribuyendo a crear la versión en español de esta pagina.
Por favor lee primero esta 'guia para traducir' la FON Wiki.
a otros Foneros contribuyendo a crear la versión en español de esta pagina.
Por favor lee primero esta 'guia para traducir' la FON Wiki.
Changes and instructions described in this page are meant to be done by developers only. Applying these changes to your La Fonera might irremediably damage it. FON will not be held responsible for their consequences. Read instructions carefully!
Contents |
Instalando Amule
Recordar
- La Fonera 2.0 no tiene suficiente memoria para instalar el paquete Amule así como sus dependencias.
- But it has also no memory to download eg an entire Linux Distribution (let's keep legal :-)
Solución
- La Fonera 2.0 has a USB 2.0 port...
- La Fonera 2.0 supports usb memory sticks out of the box
Instalación
- Plug in your memory stick
- Check which name it got & memorize it
ls /tmp/mounts
opkg
vi /etc/opkg.conf
- change the first line to go fetch packages from an existing location : http://downloads.openwrt.org/kamikaze/8.09_RC2/atheros/packages/
- add an extra line where "Disc-A1" can be changed in the name you recently had to memorize
dest usb /tmp/mounts/Disc-A1
- press : followed by wq!
opkg update
profile
vi /etc/profile
- The following is my new & improved profile
#!/bin/sh
[ -f /etc/banner ] && cat /etc/banner
ext_path='/tmp/mounts/Disc-A1'
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:$ext_path/usr/sbin:$ext_path/usr/bin
export LD_LIBRARY_PATH=/lib:/usr/lib:/$ext_path/usr/lib:$ext_path/lib
export HOME=/root
export PS1='\u@\h:\w\$ '
[ -x /bin/more ] || alias more=less
[ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi
[ -z "$KSH_VERSION" -o \! -s /etc/mkshrc ] || . /etc/mkshrc
[ -x /sbin/arp ] || arp() { cat /proc/net/arp; }
[ -z /bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
- now let's reload our updated profile shall we?
. /etc/profile
- It should yield no errors!
Prepara tu llave usb para ser formateada en EXT2
- opkg -dest usb install fdisk
- opkg -dest usb install e2fsprogs
- ls /dev|grep sd
- check if your usb stick is sda1... sdb1.... and change the following line so you are formatting the correct one..
- mkfs.ext2 -m 0 /dev/sda1
<STILL UNDER CONSTRUCTION> But http://wiki.openwrt.org/UsbStorageHowto is a nice read
Instalación #1
opkg -dest usb install amule
- we will get a lot of errors due to other dependencies missing...just do opkg -dest usb install <missing dependancy>
- TIP : libz.so.0 can be installed with opkg -dest usb install zlib
Instalación #2
ln -s /tmp/mounts/Disc-A1 /tmp/shared cd /tmp/shared wget http://www.fonera.be/extras/amule/amule-fon2.tgz -O amule-fon2.tgz tar zxvf amule-fon2.tgz rm amule-fon2.tgz
- let's create your unique password...change haslo in your own password...we'll MD5-hash it
echo -n haslo | md5sum | cut -d ' ' -f 1 vi /tmp/shared/home/amule/.aMule/amule.conf
- now find & replace ## with your password
[eMule] IPFilterAutoLoad=0 [WebServer] Enabled=1 Password=### Template=php-default [ExternalConnect] AcceptExternalConnections=1 ECPassword=### ShowProgressBar=1
- from http://ed2k.2x4u.de put a nice server.met on /tmp/shared/home/amule/.aMule
- Another symbolic link
ln -s /tmp/shared/share/amule/webserver/ /tmp/shared/home/amule/.aMule/webserver
- start Amule in "debug" with
/tmp/shared/bin/amule debug
- if no errors are shown... ctrl-c and restart it with:
/tmp/shared/bin/amule start
- to make it start up at the next reboot of your Fonera 2?
touch /etc/rc.d/S99amule chmod 755 /etc/rc.d/S99amule vi S99amule
- S99amule - do change Disc-A1 in the proper naming
#!/bin/sh ln -s /tmp/mounts/Disc-A1 /tmp/shared /tmp/shared/bin/amule start
Sources
Addendum
Adding hotplug support
- locate the amule installation dynamically when an usb stick is entered & start up amule :-)
vi /etc/hotplug.d/usb
for part in part*; do
path=/tmp/mounts/${dev}_${part##*part}
mkdir -p ${path}
mount ${part} ${path}
if [ -f ${path}/bin/amule ]; then
ln -s ${path} /tmp/shared
/tmp/shared/bin/amule start
fi
done
- there is no "eject" button on the fonera2...otherwhise a Asus-WL500g trick could be performed
if [ "$BUTTON" = "ses" ] ; then
if [ "$ACTION" = "pressed" ] ; then
if [ -f /tmp/shared/bin/amule ]; then
/tmp/shared/bin/amule stop
umount /dev/sda1
sleep 3
fi
fi
fi

