PDA

Bekijk de volledige versie : [HowTo] Get a HeadStart on a WL-500gP



raas
02-02-2008, 15:37
Hi, I've released a new version of this system image: HeadStart II
this one runs under oleg's latest firmware:v1.9.2.7-10
read on here: http://www.wl500g.info/showthread.php?p=112117#post112117 how to install it.


As of now, the old images of the system are not available anymore.

Since I've became an owner of this device (june/july 2007) I've always been browsing this board on how to get the most out of this machine. Now it's my time to do something back for the board, specifically new users, to give them a headstart.

That's why I created something like a 'system-image' of a setup with 'basic-needs' running on a asus wl500gp with oleg's (1.9.2.7-8, 1.9.2.7-7g should also work) firmware installed.



In short: How to get it running?
1) meet the prerequisites before actually continueing this setup
2) download the opt.tar.gz package which is needed to setup/replace the '/opt' part on your asus
3) download the mnt.tar.gz package which is needed to setup/replace the '/mnt' part on your asus
4) configure to your needs (like other passwords, download/web folders)
5) read about what you you have installed and how to use it.
6) enjoy !

What is in the package?

central network attached storage device where files are hosted which are used by a wide variety of devices in my home.
automatic newsgroup and bittorrent downloader
website to host a website and share (secure) files stored on as if on home network

Software/tools


samba2 with swat (to work with windows filesharing, vista included.)
lighttpd webserver with php and mysql support running a version of simpleCMS (with a password protected directory, and choice of running http or https protocol)
hellanzb with zussaweb webinterface (to download,verify,unpack binaries from newsservers)
Transmission (BitTorrent Downloader)
mysql database with myphpadmin (included in AIOCP)
Wake On lan application (password protected) with which you can remotely turn-on your pc's at home (if pc-hardware supports)
tuned system to get a good and acceptible response on any service regardless of heavy load. (with the use of nice)
cron
etc. etc. for a complete list of installed packages see the attached file.


Prerequisites:
oleg's firmware installed. (at the moment I have running: WL500gp-1.9.2.7-8 version and can confirm it also runs on WL500gp-1.9.2.7-7g))
a hard drive (with 3 partitions: /opt (system), /mnt (data), and a swap, the tutorial uses these mounting points. if you want to leave your own mounting points intact in the post-boot file, you have to change the configuration files for the various services which are included in this setup and the extraction of the mnt.tar.gz package might fail.)
post-boot file in which mounting of partitions is done. (mine is attached, use it for reference, but tune to your own needs).


Need to knows:
I have never changed my ip of the asus (192.168.1.1) so this setup assumes that address.
I am running in Access Point only mode, I have no experience with the other settings so I can't answer questions about that. (configure this in the basic asus setup http://192.168.1.1)
The name of my device is: NAS (Not that I know of it has be configured in this setup, but should you run into something, which I doubt, then this of NAS as the name of the device in the system setup of the basic asus setup http://192.168.1.1)


Backup your current system:
If you have nothing setup op on your asus already or do no wish to keep what's installed, skip this step and continue to the next step System/Harddisk preparation without a backup of your current /opt

2 different ways to try this asus headstart


just use an old harddisk, even an old 10gb will do to test this image
(You will have to backup your post-boot file though !!!)
backup your current /opt according to the following steps.
edit post-boot file to NOT start services on startup (a lot of services don't like being archived when they are running.)
use your favorite text editor (nano/vi) and edit the following file according to the steps below.


/usr/local/sbin/post-boot

do as below and comment-out the line to start the services in the post-boot file


# Run all active services - active means starts with S
#/opt/etc/init.d/rc.unslung

write file and flash/reboot

flashfs save && flashfs commit && flashfs enable && reboot

login to console again and create a backup of /opt to /mnt/opt.tar.gz with the following command:

tar -cvzf /mnt/opt.tar.gz /opt
(or other location if you have your datafile not mounted to /mnt)
(this process takes quite some time if you have a lot installed. if you have also data (audio/video, I would not recomend it. 370mb of /opt takes 70+ minutes.))

now, enable the services in the post-boot file like you disabled them above by uncommenting the line you commented before.
enable the services on bootup in:

/usr/local/sbin/post-boot

do as below and uncomment the line to start the services in the post-boot file

# Run all active services - active means starts with S
/opt/etc/init.d/rc.unslung

write file and flash/reboot

flashfs save && flashfs commit && flashfs enable && reboot

now you have access to your share again save this opt.tar.gz on /mnt file to another computer/network share. not on the asus.
THIS IS YOUR BACKUP OF YOUR CURRENT SYSTEM !!!


System/Harddisk preparation:
next step is only to be taken for new users or if you don't have created the 3 partitions already. If you already have the 3 partitions continue to the next step.

For this step I must redirect you to the first steps ( 1,2,3,4a,4b) of the excellent tutorial written by wengi on how to setup and install oleg's firmware: http://www.wl500g.info/showthread.php?t=10307
(i can copy all those steps here, but I couldn't have done a better job on it than wengi, thanks wengi/oleg, you guys figure it all out, 'i just put stuff toghether')

Now that you've completed the first steps of wengi's setup, we're going to make a small change in post-boot file you've created in his setup: The data directory in wengi's setup mounts to /tmp/harddisk. this has to be changed to /mnt.

open the post boot script at

/usr/local/sbin/post-boot

and change the line: (where part3 is your data partition, if it's not, change it)

mount /dev/discs/disc0/part3 /tmp/harddisk


to (where part3 is your data partition, if it's not, change it)

mount /dev/discs/disc0/part3 /mnt


write file and flash/reboot

flashfs save && flashfs commit && flashfs enable && reboot

I decided to mount to /mnt because it was easier for the system image and /tmp sound to 'temporary' to me that's why /mnt (mounted).

Now that you've learned how to access the router and issue the commands, it's time to move on to the next step.



System/Harddisk preparation (continued):
edit post-boot file to NOT start services on startup (a lot of services don't like being archived when they are running.)
use your favorite text editor (nano/vi) and edit the following file according to the steps below in:

/usr/local/sbin/post-boot

do as below and comment-out the line to start the services in the post-boot file

# Run all active services - active means starts with S
#/opt/etc/init.d/rc.unslung

write file and flash/reboot

flashfs save && flashfs commit && flashfs enable && reboot

Now, skip below and continue to "Install the HeadStart 'system-image'" If you are continueing after just making a backup of your current system you have to take the next step.
because we're installing a new system, it wouldn't hurt to 'flush' the old one, so nothing gets mixed up. (that's why we've created the backup in the step before.)
unmount all current mounted partitions with umount

umount /opt
(to view how partitions are mounted, use the df command.)

open fdisk

fdisk /dev/discs/disc0/disc
delete your current /opt partition.
recreate the partition again with the same parameters.
(exit with w)

create the filesystem for /opt

mke2fs -j /dev/discs/disc0/part1
(where /dev/discs/disc0/part1 is your /opt partition, if you have your /opt partition on another partion, change the command to the partition you are using!)
reboot


Install the HeadStart 'system-image':

The parts below are no longer valid ! read on in this reply on this topic
http://www.wl500g.info/showthread.php?p=112117#post112117


log on to your router and download system file to /mnt (77,5MB)

cd /mnt
wget http://dhost.info/raas/opt.tar.gz


extract the file to /opt

cd /
tar -xvzf /mnt/opt.tar.gz

- sit back and wait (get a beer, takes 4 minutes or so)



Install the webapplications and directory structure:
download dir structure and web file to /opt (10,5MB)

cd /opt
wget http://dhost.info/raas/mnt.tar.gz


extract the file to /mnt

cd /
tar -xvzf /opt/mnt.tar.gz

- sit back and wait (get another beer :-), takes 3 minutes or so)

enable the services on bootup in:

/usr/local/sbin/post-boot

do as below and uncomment the line to start the services in the post-boot file

# Run all active services - active means starts with S
/opt/etc/init.d/rc.unslung

write file and flash/reboot

flashfs save && flashfs commit && flashfs enable && reboot


Read on in the next reply how to configure things.

raas
02-02-2008, 15:38
Configure to your needs:
login and change the passwords as in the following.
(actually, the login and password I used in the system image is admin/asus,
except for the swat login, which uses the password you've entered in your device through the standard web interface.)

for mysql use console, login into mysql using:

mysql -u root -p mysql
-password is asked: asus

then at mysql prompt, issue following command:

update user set password=PASSWORD("asus") where User='root';
(Where you replace "asus" with your new password)

exit mysql console by entering


exit

reboot your system


reboot

login and in the following file, change the password so that your mysql login for phpmyadmin works.

/mnt/AIOCP/admin/phpMyAdmin/config.inc.php
(line 73)

And for AIOCP

/mnt/AIOCP/shared/config/cp_db_config.php
(line 47)


The user for AIOCP can be changed in the web-gui
http://192.168.1.1:8082/AIOCP and click the administration panel link (login:admin, pass:asus)

You have to change the password for the protected web directory (/mnt/protected) in

/opt/etc/lighttpd/.lighttpdpassword
(if you change anything in this file, you have to run the following command:

/opt/etc/init.d/S80lighttpd restart
)


You have to setup your newsserver for HellaNZB in the following file:

/opt/etc/hellanzb.conf

Transmission is running, but can be configured by:

/opt/etc/transmission.conf
(if you change anything in this file, you have to reboot)

Samba is running and can be configured by:

/opt/etc/samba/smb.conf and: http://192.168.1.1:901 (this UI uses the password you have entered in your device, instead of the 'asus' password which is used in the config-files above.)

Webserver (root dir and protected folders, as well as cgi/php implementation can be changed here:

/opt/etc/lighttpd/lighttpd.conf


Well, congratulations, if you're at this point and all went well you're actually ready with the HeadStart installation! Read the next part on how to use it.




What did I get and how do I use it:
I recommend a reboot when you're reading this, this way you make sure all the services are correctly started after you have configured them. In the meantime, you can read along what this system install has installed and how to use it.



Samba2, The network share service (connect with your (window$) PC)
Samba is pretty standard configured.
On the disk, you have 2 partitions to store programs (/opt) and data (/mnt) these are also writable shares in Samba. In a windows environment (I used WORKGROUP, can be configured with swat http://192.168.1.1:901, name of device is NAS) it would show up as:

-Microsoft Windows Network
___Workgroup
______Nas
_________mnt
_________opt

Both shares are writeable, I reccommend writing your data to /mnt (look at the expanded directorystructure by using your pc.) The access to /opt is just there to give you a quick-ref to your program directory without login into your console.


lighttpd webserver
This webserver is configured to run on port 8082 so you can access it here: http://192.168.1.1:8082
Right now, there are 2 content management systems installed. CMSSimple (standard) and AIOCP
The webserver has php and mysql support. AIOCP uses the mysql database, CMSSimple does not, it's a straight-forward content management system which only uses 'flat-files'. I decided to do so because it's very light. And if you do a lot of downloading with this machine, mysql response can be slower. And I still wanted to have a 'fast' website in this setup. But you can change to your own needs.
Also, I know this is going to be a point of discussion: the root of the webserver is /mnt (!)
I did this because in this setup I wanted a 'open-mind' towards accesibility of your files.
however. the files in /mnt/protected are password protected from the web, so there is security. If you don't like it, simply change the root dir of the webserver to /mnt/cms or /mnt/AIOCP in /opt/etc/lightpd/lighttpd.conf

Standard the webserver runs on the http protocol, but https is also supported. A certificate is installed on the system, and this should work.
In order to run the https protocol instead of the http protocol go to /opt/etc/lighttpd and create a backup of lighttpd.conf and rename lighttpd.conf.ssl to lighttpd.conf
Then restart your webserver with:
/opt/etc/init.d/S80lighttpd restart

You already know how to change the password/users and password protected directories, so configure to your needs.


phpMyAdmin
commenly known web application to control your mysql database. found here http://192.168.1.1:8082/AIOCP/admin/phpMyAdmin/index.php
(user:admin pass:asus, or the other password your set in /opt/etc/lighttpd/.lighttpdpassword)


Transmission (BitTorrent Downloader)
runs in the background.
Simply put your torrent files in /mnt/protected/Transmission/source and download should start in the background.
downloads can be configured with WebUI, found here http://192.168.1.1:8082/cgi-bin/transmission.cgi


HellaNZB
Well, there are 2 small issues with this one.
1) it doesn't start on itself after the router reboots. (start with: /opt/bin/startHellaNZB)
2) it doesn't download anymore after more than 24h of inactivity.
However, I've downloaded TB's with this application and i'm very please how well it downloads, verifies and extracts my downloads. That's why I've included this one in the package.
In my opinion it's workable, because when your are collecting your nzb files, your at your machine. A simple reboot/restart of HellaNZB to get it to download again can be executed then.
Once you've started HellaNZB with /opt/bin/startHellaNZB, you can access zussaweb WebUI in order to control HellaNZB at http://192.168.1.1:8082/protected/zussaweb/
After starting HellaNZB, simply put your nzb's in /mnt/protected/HellaNZB/nzb/daemon.queue and download will start.


Wake-On-Lan Application.
If the website running on the asus is accessible from the internet, and if your pc supports WOL and is enabled, and if you've entered the correct MAC-address in /mnt/cgi-bin/wol.cgi then you're able to wake up your machine from anywhere on the internet.
Point your browser to http://192.168.1.1:8082/cgi-bin/wol.cgi and your machine should boot up.


There are other (console) utilities installed and also AIOCP http://192.168.1.1:8082/AIOCP has a lot of tools inside.




Well, that's about it.

Because this is my first how-to on this asus, there's still a change there might be a flaw. don't hesitate to mention/ask.

Good luck, and I hope you enjoy it.

Raas.

gixie
02-02-2008, 17:31
Hi there,

I was following your guide but when I tried downloading your image I ran in an error... Any idea what I should do to continue?
[admin@(none) /mnt]$ wget http://dhost.info/raas/opt.tar.gz
wget: opt.tar.gz: Read-only file system


Thanks in advance!

gixie
02-02-2008, 18:25
Sorry, somehow I managed to solve the problem but now I'm stuck again
I'm trying to change the mysql password (as far as I can tell you) but after I enter [B]asus/B] as my password I get an error...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Any idea what this means?:confused:

Thanks in advance...

raas
02-02-2008, 18:31
Hi,

I think your services are not running.
Have you checked your post-boot script?

following lines should be uncommented.

# Run all active services - active means starts with S
/opt/etc/init.d/rc.unslung

Edit:
Yes, I just was able to replicate your error.
If your don't start the services like above, after entering your password, you will get this error message.
Don't forget to flash post-boot to the memory after editing.

gixie
02-02-2008, 21:33
actually the line is uncommented, and I still get the same error... any other ideas?

raas
02-02-2008, 22:29
hi,

I still have the idea the services aren't running.
Are you able to start mysql manually using the following code?


/opt/etc/init.d/S70mysqld start


If the command above reports success, then your services aren't started at startup, and something might be wrong with the post-boot file. (can you post that one here?)

It's weird. I've done this tutorial 3 times in a row before posting it, and it worked every time.

gixie
03-02-2008, 01:03
I tried starting mysql with the /opt/etc/init.d/S70mysqld start command and I got an error
[admin@(none) root]$ /opt/etc/init.d/S70mysqld start
Starting MySQL................................... ERROR!

Here's what I have in my post-boot file.

#!/bin/sh

dropbear
# if USB disc has been attached
# if not - then insert needed modules
#
# uncoment the following 4 lines if using an USB HDD.
if [ ! -d /dev/discs ]
then
insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
fi

#Wait for /opt to mount
mount /dev/discs/disc0/part2 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done

mount /dev/discs/disc0/part3 /mnt


# Activate swap
swapon /dev/discs/disc0/part1

# Run all active services - active means starts with S
/opt/etc/init.d/rc.unslung
echo "192.168.2.1" > /etc/resolv.conf

What do you think?

raas
03-02-2008, 10:39
So mysql service won't start. I don't see why.

When you try to start mysql with /opt/etc/init.d/S70mysqld start it creates a file 'mysql.sock' on /tmp through which it connects.

could you take a look at what this /tmp contains in your setup?
(
cd /tmp
ls
)

by giving the mount command, you can see what's mounted.. in my case this /tmp contains the memory (or even swap) if I'm not mistaken,

below the contents of my mount output.


/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part1 on /opt type ext3 (rw)
/dev/discs/disc0/part3 on /mnt type ext3 (rw)


your post-book looks fine to me.
could you also confirm that your swap is working? you can do this with the free command. it should give you a summary about it's internal memory and swap status.



[admin@NAS /tmp]$ free
total used free shared buffers cached
Mem: 30084 19348 10736 0 3080 10264
-/+ buffers/cache: 6004 24080
Swap: 506036 0 506036


Also, do other services start or not? like the webserver on http://192.168.1.1:8082

One last question, what firmware do you run? I see in your post-boot that you're adding a nameserver to the system, I can only confirm that the setup works on the current (8) version and the previous (-7g) one.

edit:
thinking that the archive on my host could be corrupt, i did the installation with the file from the host. It worked.
You sure that you're working with an empty /opt from the start? as i saw in wengi's thread that you were installing software at the same time. No rant or something, just want to help you out, and make this tutorial better. :)

gixie
03-02-2008, 18:59
The reason I was posting in wengi's tutorial is because I have two external hdds and I was playing with both (whichever gave me result faster...)

Anyways, I did everything over and I ended in the same spot :mad:
Here's what's in /mnt:
[root@(none) root]$ cd /tmp
[root@(none) /tmp]$ ls
dnsmasq.log harddisk nas.lan.pid ppp udhcpc0.expires
etc local nas.wan.conf resolv.conf var
filter_rules nas.lan.conf nat_rules udhcpc

Here's the output of mount
[root@(none) /tmp]$ mount
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part2 on /opt type ext3 (rw)
/dev/discs/disc0/part3 on /mnt type ext3 (rw)

...and of free
[root@(none) /tmp]$ free
total used free shared buffers cached
Mem: 30084 29404 680 0 3004 14956
-/+ buffers/cache: 11444 18640
Swap: 500712 0 500712

The webserver starts...
I upgraded to the latest firmware and removed the nameserver reference from the post-boot file.
Any other idea?
Thanks for your time

raas
04-02-2008, 11:49
Damn...

all looks exactly the same as it does at my install.

I will have to take a look at the mysql installation, I don't have an answer ready right now.


In a couple of days I'm going to meet a friend who has also a wl500premium.
I will take a look at what happens when I install this image onto his machine.

Anyway, I'm happy it only affected the mysql installation, and that the rest is running, but it is not as it was intended.

I will get back to you.

edit, the problem is that I can't replicate the behaviour of your machine, so I have to assume some thing in the setup. anyway... I'm working on it.

raas
04-02-2008, 15:10
Hi,

The only thing I can think of is that on my system I used root once in order to get mysql installed. this was then changed back to admin.

however. some things might have altered, like root having sufficient rights to /tmp as mysql runs under user:root pass:asus.

to change the user of the asus device (admin) login to the original administration website on http://192.168.1.1 system setup / change name.

change admin into root. save settings and reboot.

try to login into telnet/ssh on to your asus using user root, with the same password it had for admin before you changed the user.

See if mysql starts.

if it starts, try to change the user root into admin again, using the original administration website on http://192.168.1.1 .

This info was taking from lucaspr's reply on the following thread: http://www.wl500g.info/showthread.php?t=8236 which i used to install mysql.

the only thing I did in another way was changing the name with the webinterface instead of with the code supplied in his howto.

When I had installed mysql I changed the name back from root to admin, but the mysql keeps running under root, that's why I didn't think it would affect the image, but it just might do that.

HTH

raas
06-02-2008, 18:16
Hi gixie,

I took another approach today.

Instead of just installing the /opt and /mnt packages, I started from scratch.
(thinking that something in the mysql installation would have 'nested' itself into the flash.)

So I backup up the settings.
Set it to default settings.
Installed oleg's latest firmware.
Followed wengi's setup step 1,2,3,4a,4b.
And continued this howto.

(took me 1,5 hr total)

Without doing anything to the system, mysql just runs, i didn't have to do anything with the root user at all.

I hope there's someone else who can confirm this.

wpte
11-02-2008, 16:56
hi,

I still have the idea the services aren't running.
Are you able to start mysql manually using the following code?


/opt/etc/init.d/S70mysqld start


If the command above reports success, then your services aren't started at startup, and something might be wrong with the post-boot file. (can you post that one here?)

It's weird. I've done this tutorial 3 times in a row before posting it, and it worked every time.


You need to change the login-name into "root"
goto: system setup -> change name

Also you need to set a host name.
goto: ipconfig -> wan & lan
really easy but essential for mysql

raas
11-02-2008, 19:14
Hi wpte,

thanks for your reply.

I only needed to do this while installing the mysql package, after installation I changed root back to admin.

admin is now main login on the router, but the mysql keeps running under root.

When I flashed my router with the latest oleg firmware, and only installed this package, I didn't need to change the user to root at all.

mysql just runs under root.

Well, maybe I get to meet up with a friend of mine finally so I can try this on his asus.

wpte
12-02-2008, 12:33
Hi wpte,

thanks for your reply.

I only needed to do this while installing the mysql package, after installation I changed root back to admin.

admin is now main login on the router, but the mysql keeps running under root.

When I flashed my router with the latest oleg firmware, and only installed this package, I didn't need to change the user to root at all.

mysql just runs under root.

Well, maybe I get to meet up with a friend of mine finally so I can try this on his asus.


yeh, you can change root to admin in the config file, but i like root :D
anyway, I still think it must be the hostname, I had that problem too. If no hostname like "my.router" has been filled in, it just wont start;)

raas
12-02-2008, 12:49
yeh, you can change root to admin in the config file, but i like root :D
anyway, I still think it must be the hostname, I had that problem too. If no hostname like "my.router" has been filled in, it just wont start;)

WPTE! you rule, this must be the case with Gixie's problem. !!

When I look at gixie's code:


[root@(none) root]$ cd /tmp


it displays root@(none), so no hostname is setup. (none)

Gixie. try to set the hostname in the standard asus administration website, and see if mysql starts.

raas
16-02-2008, 16:19
Hi All,

Just wanted to a quick note here:

I've had some replies from other forum users that the install was succesfull when they did it. Including mysql (The problem is solved. You have to make sure you add a 'hostname' to the router).

If there's enough interest, I will maintain/update/expand the package.

Also, If you feel I've left something out as a 'basic-need' for your asus, post them here. (I already know at least one, vsftpd.)

Best Regards,

Raas

flim
18-02-2008, 13:25
I just flash my 500gP with oleg firmware. I'd like to setup a blog/CMS, I read the tutorial in this web site but require 3 ext3 partitions, but my 2.5" hard drive is VFAT32, can I simply use VFAT32 instead?

flim
18-02-2008, 13:53
Another noobe question.

I run free to check memory:

total used free
30084 15112 14972

Is that 32MB is enable already?

Thank you.

raas
18-02-2008, 14:07
I just flash my 500gP with oleg firmware. I'd like to setup a blog/CMS, I read the tutorial in this web site but require 3 ext3 partitions, but my 2.5" hard drive is VFAT32, can I simply use VFAT32 instead?

It should also work with FAT32 partitions for /opt and /mnt.
However, for the swap partition you need the 'swap' filesystem, and FAT32 does not support files greather then 2gb.


Another noobe question.
I run free to check memory:
total used free
30084 15112 14972
Is that 32MB is enable already?
Thank you.

30084, this is it.. yep.. your 32mb is enabled.
(If you have a wl500g Premium, it's enabled by 'default')

HTH

flim
18-02-2008, 16:37
Thanks for reply, is there any email server in HeadStart?

raas
18-02-2008, 21:45
Thanks for reply, is there any email server in HeadStart?

Hi,

no, there's none.
See the list of installed packages included in the attachement in the first post of this thread.

There might be packages which can do this. It's possible to install them yourself after you've installed HeadStart or have followed another tutorial to get your asus up and running the ipkg package system.

HTH

gixie
19-02-2008, 21:57
...for not visiting this forum more often... It's still The forum that got me into buying this router and attempting to modify it...

Actually I thought about trying OpenWrt when I realized that Oleg's firmware is not working for me and to my surprise I've had more luck with OpenWrt.

I am running WhiteRussian v0.9 with X-Wrt extensions.
I managed to successfully set up Samba
The interface looks nice and it has lots of settings (some of which I don't even touch)
Anyways, I'll post some screenshots, just in case you don't know what it looks like...
But thanks for the effort...

raas
20-02-2008, 18:40
Hi,

Good to hear that you're succeeding in your goal.
Whatever fit's your need. I personally don't have any experience with Open-WRT, I just like oleg's one enough. :D

Raas

pinkfloyd
20-02-2008, 23:17
I installed this tutorial since am eager to try hellanzb...

when I try logging into the webgui zussaweb it asks me for a login and password...

I tried all sorts but cant log in...

any help please ?

raas
21-02-2008, 07:53
Hi Pinkfloyd.

It should be:
login: admin
password: asus

or whatever you have configured in


/opt/etc/lighttpd/.lighttpdpassword

(if you change anything in this file, you have to run the following command:

/opt/etc/init.d/S80lighttpd restart
)

This zussaweb is just a normal web application which runs of the webserver, so it should have the same login/pass as the other protected folders.

HTH

pinkfloyd
21-02-2008, 08:16
In your tutorial in installing Hellanzb you said:

Once you've started HellaNZB with /opt/bin/startHellaNZB, you can access zussaweb WebUI in order to control HellaNZB at http://192.168.1.1:8082/protected/zussaweb/
After starting HellaNZB, simply put your nzb's in /mnt/protected/HellaNZB/nzb/daemon.queue and download will start.


while the port number in hellanzb.conf is different..is this a misprint ?

Moreover I cant seem to make it work :(

2008-02-21 09:27:03,666 INFO
2008-02-21 09:27:03,711 INFO hellanzb v0.13 (config = /opt/etc/hellanzb.conf, daemonized, C yenc module)
2008-02-21 09:27:04,879 LOGFILE (ThisIsTheDisplayNameOfTheServerInZussa) Opening 20 connections...
2008-02-21 09:27:04,964 INFO hellanzb - Now monitoring queue...
2008-02-21 09:27:05,382 INFO Resuming: 1717
2008-02-21 09:27:05,664 INFO Parsing: 1717.nzb...

nothing is being downloaded

from debug:

2008-02-21 10:21:25,312 [-] Log opened.
2008-02-21 10:21:25,378 hellanzb v0.13 (config = /opt/etc/hellanzb.conf, daemonized, C yenc module)
2008-02-21 10:21:25,575 [-] twisted.web.server.Site starting on 8760
2008-02-21 10:21:25,587 [-] Starting factory <twisted.web.server.Site instance at 0x2b7eabc0>
2008-02-21 10:21:26,478 Using: Twisted-2.5.0, TwistedWeb-0.7.0
2008-02-21 10:21:26,488 python: 2.5.1 (r251:54863, Apr 19 2007, 10:31:01)
2008-02-21 10:21:26,497 [GCC 4.1.1]
2008-02-21 10:21:26,506 os: Linux-2.4.20 (mips)
2008-02-21 10:21:26,516 initFillServers: fillserver support disabled
2008-02-21 10:21:26,555 [-] Starting factory <Hellanzb.NZBLeecher.Protocol.NZBLeecherFactory instance at 0x2b83efa8>
2008-02-21 10:21:26,567 [-] Starting factory <Hellanzb.NZBLeecher.NZBLeecherUtil.HellaThrottling Factory instance at 0x2b8460a8>
2008-02-21 10:21:26,981 recoverStateFromDisk recovered: RecoveredState: version: 0.13 newzbinCookie keys: []
downloading: {}
processing: {}
queued: {}

raas
21-02-2008, 20:45
Hi,

Have you configured a valid newsserver in the config file.

I don't know exactly which portnumber you mean.. Hella uses a port to download from the newsserver (119), while the webserver (zussaweb) is accessible under 8082..

HTH

Raas

pinkfloyd
21-02-2008, 21:13
Hi,

Have you configured a valid newsserver in the config file.

I don't know exactly which portnumber you mean.. Hella uses a port to download from the newsserver (119), while the webserver (zussaweb) is accessible under 8082..

HTH

Raas

yes I had configured my news server settings in the conf file and even the port.

raas
21-02-2008, 22:19
Hi,

ok.

Did you change the port of the lighttpd webserver in /opt/etc/lighttpd/lighttpd.conf into another port than 8082 ?

if so, then use this link for in the zussaweb link.

raas
22-02-2008, 08:51
Hi PinkFloyd,


Did you start HellaNZB with /opt/bin/startHellaNZB ?
(and does it giev a message that it is started 'daemonized' ?)

It does not start on itself after a reboot.
(still did not manage to do that)

pinkfloyd
22-02-2008, 09:39
yes I do start with that command and it tells me its daemonised as my log states but seems it does nothing ...All I noticed was that it moves the nzb file from queue to current but as said it doesnt start the download and it doesnt open the web GUI. I am new to linux so no I did not change any ports in lighttpd.

raas
22-02-2008, 09:56
ok, no worries, we'll get it to work. :)

please post your /opt/etc/hellanzb.conf file and /opt/etc/lighttpd/lighttpd.conf file here,
(don't forget to foobar your username and password if you use a payserver, or newsserver from your provider)
I will take a look at them when I get home tonight.

Also,

please post the output of the /opt/bin/startHellaNZB command.
(when you run that command, it has to return to you with a prompt, but some info about hella is written above this prompt, I can't show you the exact statement right now, I'm not at home, but basically hella tells you that it was started Y-enc and daemonized.

Further,

I see that you want to open 20 connections to your newsserver :eek: , I think this is way to much.. Try to start with 2 connections (my provider allows over 500kbyte/sec per connection, hella downloading and processing, for me results in 600-700 kbyte/sec, so 2 connections is more than enough.). It could be, that when hella is running on 20 connections, the router is far to busy to even process the request for the WebUI, and is not responding for your (connection refused)
I still think it is downloading, 'cause your logfile says it has parsed your nzb file, and you're telling the file is moved from the queue directory to the current directory. (this basically tells me that hella is running)

So,
you could try to decrease the number of connections, and please post your config files here.

pinkfloyd
22-02-2008, 11:07
Thanks m8

Hellanzb conf file:

#
# hellanzb.conf - sample hellanzb configuration file
#
# To quickly get started, change the default defineServer() call and the
# Hellanzb.PREFIX_DIR directory
#
# This is actually interpreted python code: strings must be surrounded by
# quotes, numbers and the 'None' keyword should not
#
# $Id: hellanzb.conf.sample 1057 2007-03-27 04:13:53Z pjenvey $

# Log output to this file, set to None (no single quotes) for no logging
Hellanzb.LOG_FILE = '/mnt/protected/HellaNZB/hellasys.log'

# Uncomment this line to log DEBUG messages to the specified file
Hellanzb.DEBUG_MODE = '/var/tmp/hellanzb-debug.log'

# Automatically roll over both log files when they reach LOG_FILE_MAX_BYTES
# size
Hellanzb.LOG_FILE_MAX_BYTES = 1048576

# Save LOG_FILE_BACKUP_COUNT of those rolled over log files
Hellanzb.LOG_FILE_BACKUP_COUNT = 10


# Define server connections. Servers can have multiple hosts, hellanzb will
# persist the number of connections to each specified server. There may be
# multiple defineServer lines.

# Set both the username and password to 'None' (without the quotes) if your
# usenet server does not require authorization
defineServer(id = 'ThisIsTheDisplayNameOfTheServerInZussa',
hosts = [ 'news.astraweb.com:8080' ],
#hosts = [ 'news.changeme.com', 'morenews.changeme.com:8000' ],

#username = 'yourusername',
#password = 'yourpassword',
username = 'xxxxxx', # use this if newsserver has
password = 'xxxxxx', # no authentication

connections = 3,
antiIdle = 4.5 * 60, # 4 minutes, 30 seconds, 0 to disable
#bindTo = '204.31.33.7', # connect FROM this ip address
#enabled = False, # disable this server
#skipGroupCmd = False, # skip sending nntp GROUP commands
#fillserver = 0, # defaults to 0 (a main server).
# fillservers must have values > 0
# (priority)
ssl = False
)

# Uncomment this line to limit all server connections to the specified KB/s
# bandwidth
#Hellanzb.MAX_RATE = 150 # limit to 150kB/s


# Important locations
Hellanzb.PREFIX_DIR = '/mnt/protected/HellaNZB/'

# Where to put queued .nzb files
Hellanzb.QUEUE_DIR = Hellanzb.PREFIX_DIR + 'nzb/daemon.queue/'

# Where the fully processed archives go
Hellanzb.DEST_DIR = Hellanzb.PREFIX_DIR + 'usenet/'

# The .nzb currently being downloaded is stored here
Hellanzb.CURRENT_DIR = Hellanzb.PREFIX_DIR + 'nzb/daemon.current/'

# The archive currently being downloaded is stored here
Hellanzb.WORKING_DIR = Hellanzb.PREFIX_DIR + 'nzb/daemon.working/'

# Archives interrupted in the middle of downloading are stored here temporarily
Hellanzb.POSTPONED_DIR = Hellanzb.PREFIX_DIR + 'nzb/daemon.postponed/'

# Archives currently being processed. May contains archive directories, or
# symbolic links to archive directories
Hellanzb.PROCESSING_DIR = Hellanzb.PREFIX_DIR + 'nzb/daemon.processing/'

# Temp storage
Hellanzb.TEMP_DIR = Hellanzb.PREFIX_DIR + 'nzb/daemon.temp/'

# Filename to store hellanzb state in between CTRL-Cs. The state (includes the
# order of the queue, and smart par recovery information) is intermittently
# written out as XML to this file
Hellanzb.STATE_XML_FILE = Hellanzb.PREFIX_DIR + 'nzb/hellanzbState.xml'


# _Sub directory within the nzb archive dir_ to move processed files to
Hellanzb.PROCESSED_SUBDIR = 'processed'

# Remove the PROCESSED_SUBDIR if the archive was successfully post processed.
# Warning: The normal Hellanzb.LOG_FILE should be enabled with this option --
# for a record of what hellanzb deletes
Hellanzb.DELETE_PROCESSED = True


# Maximum amount of memory used to cache encoded Article data segments.
# hellanzb will write article data to disk when this cache is exceeded
# Available settings:
# -1: Unlimited size
# 0: Disable cache (only cache to disk)
# >0: Limit cache to this size, in bytes, KB, MB, e.g.:
# 1024 '1024KB' '100MB' '1GB'
Hellanzb.CACHE_LIMIT = 0


# Save archives into a sub directory of DEST_DIR named after their newzbin.com
# category (when queued using the enqueuenewzbin XMLRPC call); e.g. Apps,
# Movies, Music
Hellanzb.CATEGORIZE_DEST = True

# Disable SMART_PAR (download all PAR files)
Hellanzb.SMART_PAR = False

# Supply a path to the (un)rar command
Hellanzb.UNRAR_CMD = '/opt/bin/unrar'

# Supply a path to the par2 command
Hellanzb.PAR2_CMD = '/opt/bin/par2'

# Skip unraring during post processing
Hellanzb.SKIP_UNRAR = False

# Supply a path to the optional macbinconv command (for converting MacBinary
# files)
#Hellanzb.MACBINCONV_CMD = None

# hellanzb inherits the umask from the current user's environment (unless it's
# running in daemon mode). The umask can be forced with this option
#Hellanzb.UMASK = 0022


# Supported music types (case insensitive) and optionally their decompression
# executables
# and the file type that executable will decompress to (case insensitive). The
# exes must be in the PATH.
#
# <FILE> will be replaced with the name of music file
# optional <DESTFILE> is <FILE> with the specified extension
#
# None means these files don't need to be decompressed
defineMusicType('wav', None, None)
defineMusicType('mp3', None, None)
#defineMusicType('ape', 'mac <FILE> <DESTFILE> -d', 'wav')
#defineMusicType('flac', 'flac -d -- <FILE>', 'wav')
#defineMusicType('shn', 'shorten -x < <FILE> > <DESTFILE>', 'wav')

# Max files we should decompress at the same time
Hellanzb.MAX_DECOMPRESSION_THREADS = 1


# Enable Mac OS X Growl notifications
Hellanzb.GROWL_NOTIFY = False

# The growl notification server, in the format 'hostname'
Hellanzb.GROWL_SERVER = 'IP'

# The growl password
Hellanzb.GROWL_PASSWORD = 'password'


# Enable libNotify Daemon notifications
Hellanzb.LIBNOTIFY_NOTIFY = False


# Disable ANSI color codes in the main screen (preserves the in place scroller)
#Hellanzb.DISABLE_COLORS = False

# Disable ALL ANSI color codes in the main screen (for terminals that don't
# support ANY ANSI codes
#Hellanzb.DISABLE_ANSI = False


# Hostname for the XMLRPC client to connect to. By default, localhost
Hellanzb.XMLRPC_SERVER = 'localhost'

# Port number the XML RPC server will listen on, and the client will connect to.
# Set to 'None' (without the quotes!) for no XML RPC server
Hellanzb.XMLRPC_PORT = 8760

# Password for the XML RPC server. You might probably never use this, but the
# command line XML RPC calls do -- it should definitely be changed from its
# default value. The XML RPC username is hardcoded as 'hellanzb' -- E.g. URL:
# http://hellanzb:changeme@localhost:8760
Hellanzb.XMLRPC_PASSWORD = 'asus'


# Username/Password to http://www.newzbin.com for automatic NZB downloading
Hellanzb.NEWZBIN_USERNAME = None
Hellanzb.NEWZBIN_PASSWORD = None


# If any of the following file types are missing from the archive and cannot be
# repaired, continue processing because they're unimportant (case insensitive)
Hellanzb.NOT_REQUIRED_FILE_TYPES = [ 'log', 'm3u', 'nfo', 'nzb', 'sfv', 'txt' ]

# Don't get rid of (move into the PROCESSED dir) the following file types when
# finished post processing (case insensitive)
#Hellanzb.KEEP_FILE_TYPES = [ 'log', 'm3u', 'nfo', 'nzb', 'sfv', 'txt' ]
Hellanzb.KEEP_FILE_TYPES = [ 'nfo', 'txt' ]


# List of alternative file extensions matched as NZB files in the QUEUE_DIR.
# The 'nzb' file extension is always matched
#Hellanzb.OTHER_NZB_FILE_TYPES = [ 'xml' ]

# Support extracting NZBs from ZIP files with this suffix (case insensitive) in
# QUEUE_DIR. Defaults to '.nzb.zip'. Set to False to disable.
Hellanzb.NZB_ZIPS = '.nzb.zip'

# Support extracting NZBs from GZIP files with this suffix (case insensitive)
# in QUEUE_DIR. Defaults to '.nzb.gz'. Set to False to disable.
Hellanzb.NZB_GZIPS = '.nzb.gz'

# Delay enqueueing new, recently modified NZB files added to the QUEUE_DIR until
# this many seconds have passed since the NZB's last modification time (defaults
# to 10 seconds)
Hellanzb.NZBQUEUE_MDELAY = 10

# Optional external handler script. hellanzb will run this script after post
# processing an archive, with the following arguments:
#
# handler_script type archiveName destDir elapsedTime parMessage
#
# type: post processing result, either 'SUCCESS' or 'ERROR'
# archiveName: name of the archive, e.g. 'Usenet_Post5'
# destDir: where the archive ended up, e.g. '/ext2/usenet/Usenet_Post5'
# elapsedTime: a pretty string showing how long post processing took, e.g.
# '10m 37s'
# parMessage: optional post processing message. e.g. '(No Pars)'
#Hellanzb.EXTERNAL_HANDLER_SCRIPT = '~/bin/post_hellanzb.sh'

pinkfloyd
22-02-2008, 11:09
lighttpd.conf ( I never touched this one)

cant post it since its too long and wont fit here....


[admin@(none) root]$ /opt/bin/startHellaNZB

hellanzb v0.13 (config = /opt/etc/hellanzb.conf, daemonized, C yenc module)
[admin@(none) root]$

and when I do : http://192.168.1.1:8082/protected/zussaweb/
I get : Fault: Code: 5 Reason 'Connect error: Connection refused (146)'

raas
22-02-2008, 11:47
Hi,

ok, I think I found it.. in your hellanzb.conf you specify your newsserver by

'news.astraweb.com:8080'

change this to

'news.astraweb.com:119'


HTH

pinkfloyd
22-02-2008, 12:01
uhm but with newsleecher I can connect to port 8080 and astraweb specifies that you can connect to 119 or 8080

changed port to 119 and still same problem

2008-02-22 13:07:04,987 [-] Log opened.
2008-02-22 13:07:05,039 hellanzb v0.13 (config = /opt/etc/hellanzb.conf, daemonized, C yenc module)
2008-02-22 13:07:05,211 [-] twisted.web.server.Site starting on 8760
2008-02-22 13:07:05,221 [-] Starting factory <twisted.web.server.Site instance at 0x2b7eabc0>
2008-02-22 13:07:06,091 Using: Twisted-2.5.0, TwistedWeb-0.7.0
2008-02-22 13:07:06,101 python: 2.5.1 (r251:54863, Apr 19 2007, 10:31:01)
2008-02-22 13:07:06,110 [GCC 4.1.1]
2008-02-22 13:07:06,119 os: Linux-2.4.20 (mips)
2008-02-22 13:07:06,128 initFillServers: fillserver support disabled
2008-02-22 13:07:06,164 [-] Starting factory <Hellanzb.NZBLeecher.Protocol.NZBLeecherFactory instance at 0x2b83efa8>
2008-02-22 13:07:06,175 [-] Starting factory <Hellanzb.NZBLeecher.NZBLeecherUtil.HellaThrottling Factory instance at 0x2b8460a8>
2008-02-22 13:07:06,427 recoverStateFromDisk recovered: RecoveredState: version: 0.13 newzbinCookie keys: []
downloading: {}
processing: {}
queued: {}

and I have 1 nzb in the queue directory

raas
22-02-2008, 13:06
Hi,

I wasn't aware that your newsserver also accepts connections from port 8080. 119 is a standard port.


Like I said, I will take a look at your config file when I get home tonight.

Side note:
Hella can only be started once, if you make changes to the config file, you'd better reboot your router and then start hella again with /opt/bin/startHellaNZB


It could well be that Hella is downloading. You can put nzb-files in the queue, but it will only move one to to the current directory, once it has downloaded that, it will move to process, and the next nzb from the queue is moved to the current directory. This could be a reason why you still have a nzb in your queue

Also, with the 'top' command you should be able to see if hella is running or not.. If it's downloading you will have 2 hellanzb processes which both take up about 40% of the cpu.



What you could do to get a better understanding of what's happening here is start Hella in debug mode.
Open the file which you use to start hella (/opt/bin/startHellaNZB) with a text editor (nano or vi).
You will see several commands on how to start hella.
one of them is the following one: (or looks like it, with -d parameter)

hellanzb.py -D -d /opt/var/log/hellanzb-debug.log

uncomment this line (remove #) and comment the other line which is starting hella right now.

after a reboot, start hella with /opt/bin/startHellaNZB and look in the debug-log file which is configured in the command you start hella with for additional information.

I think it has something to do with the connection to your newsserver 'cause hella is running, otherwise it would not parse the nzb file you put in it..
Maybe there's a firewall blocking your access.. Are you able to download binaries from the newsserver from a pc?


I visited a friend of mine yesterday and finally did this headstart install on his router. (after configuring all the ip settings, He has a 10.0.0.x network, and entering a newsserver in hella, hella directly started downloading after it was started)

HTH

raas
22-02-2008, 19:13
Hi PinkFloyd,

I compared the 2 config files.
besides the server/username/password (duh!) there's 1 thing different.

you've changed the Hellanzb.XMLRPC_PASSWORD to 'asus' where it was 'changeme' as a standard.

This could be the problem. (as I recall, I have changed this once, and it was not working.)

Change Hellanzb.XMLRPC_PASSWORD to
(you'll find this at 3/4 of the config file.)

Hellanzb.XMLRPC_PASSWORD = 'changeme'

Reboot, and start HellaNZB again.. See if it works.


Also, what did the debug-log say?

As a reference I've include my hellanzb.conf file.

# hellanzb.conf - sample hellanzb configuration file
#

# To quickly get started, change the default defineServer() call and the
# Hellanzb.PREFIX_DIR directory
#
# This is actually interpreted python code: strings must be surrounded by
# quotes, numbers and the 'None' keyword should not
#
# $Id: hellanzb.conf.sample 1057 2007-03-27 04:13:53Z pjenvey $

# Log output to this file, set to None (no single quotes) for no logging
Hellanzb.LOG_FILE = '/mnt/protected/HellaNZB/hellasys.log'

# Uncomment this line to log DEBUG messages to the specified file
#Hellanzb.DEBUG_MODE = '/var/tmp/hellanzb-debug.log'

# Automatically roll over both log files when they reach LOG_FILE_MAX_BYTES
# size
Hellanzb.LOG_FILE_MAX_BYTES = 1048576

# Save LOG_FILE_BACKUP_COUNT of those rolled over log files
Hellanzb.LOG_FILE_BACKUP_COUNT = 10


# Define server connections. Servers can have multiple hosts, hellanzb will
# persist the number of connections to each specified server. There may be
# multiple defineServer lines.

# Set both the username and password to 'None' (without the quotes) if your
# usenet server does not require authorization
defineServer(id = 'eweka',
hosts = [ 'fakenewsreader.eweka.nl:119' ],
#hosts = [ 'news.changeme.com', 'morenews.changeme.com:8000' ],

username = 'fakeusername',
password = 'fakepassword',
#username = None, # no auth
#password = None,

connections = 2,
antiIdle = 4.5 * 60, # 4 minutes, 30 seconds, 0 to disable
#bindTo = '204.31.33.7', # connect FROM this ip address
#enabled = False, # disable this server
#skipGroupCmd = False, # skip sending nntp GROUP commands
#fillserver = 0, # defaults to 0 (a main server).
# fillservers must have values > 0
# (priority)
ssl = False
)

# Uncomment this line to limit all server connections to the specified KB/s
# bandwidth
#Hellanzb.MAX_RATE = 150 # limit to 150kB/s


# Important locations
Hellanzb.PREFIX_DIR = '/mnt/protected/HellaNZB/'

# Where to put queued .nzb files
Hellanzb.QUEUE_DIR = Hellanzb.PREFIX_DIR + 'nzb/daemon.queue/'

# Where the fully processed archives go
Hellanzb.DEST_DIR = Hellanzb.PREFIX_DIR + 'usenet/'

# The .nzb currently being downloaded is stored here
Hellanzb.CURRENT_DIR = Hellanzb.PREFIX_DIR + 'nzb/daemon.current/'

# The archive currently being downloaded is stored here
Hellanzb.WORKING_DIR = Hellanzb.PREFIX_DIR + 'nzb/daemon.working/'

# Archives interrupted in the middle of downloading are stored here temporarily
Hellanzb.POSTPONED_DIR = Hellanzb.PREFIX_DIR + 'nzb/daemon.postponed/'

# Archives currently being processed. May contains archive directories, or
# symbolic links to archive directories
Hellanzb.PROCESSING_DIR = Hellanzb.PREFIX_DIR + 'nzb/daemon.processing/'

# Temp storage
Hellanzb.TEMP_DIR = Hellanzb.PREFIX_DIR + 'nzb/daemon.temp/'

# Filename to store hellanzb state in between CTRL-Cs. The state (includes the
# order of the queue, and smart par recovery information) is intermittently
# written out as XML to this file
Hellanzb.STATE_XML_FILE = Hellanzb.PREFIX_DIR + 'nzb/hellanzbState.xml'


# _Sub directory within the nzb archive dir_ to move processed files to
Hellanzb.PROCESSED_SUBDIR = 'processed'

# Remove the PROCESSED_SUBDIR if the archive was successfully post processed.
# Warning: The normal Hellanzb.LOG_FILE should be enabled with this option --
# for a record of what hellanzb deletes
Hellanzb.DELETE_PROCESSED = True


# Maximum amount of memory used to cache encoded Article data segments.
# hellanzb will write article data to disk when this cache is exceeded
# Available settings:
# -1: Unlimited size
# 0: Disable cache (only cache to disk)
# >0: Limit cache to this size, in bytes, KB, MB, e.g.:
# 1024 '1024KB' '100MB' '1GB'
Hellanzb.CACHE_LIMIT = 0


# Save archives into a sub directory of DEST_DIR named after their newzbin.com
# category (when queued using the enqueuenewzbin XMLRPC call); e.g. Apps,
# Movies, Music
Hellanzb.CATEGORIZE_DEST = True

# Disable SMART_PAR (download all PAR files)
Hellanzb.SMART_PAR = False

# Supply a path to the (un)rar command
Hellanzb.UNRAR_CMD = '/opt/bin/unrar'

# Supply a path to the par2 command
Hellanzb.PAR2_CMD = '/opt/bin/par2'

# Skip unraring during post processing
Hellanzb.SKIP_UNRAR = False

# Supply a path to the optional macbinconv command (for converting MacBinary
# files)
#Hellanzb.MACBINCONV_CMD = None

# hellanzb inherits the umask from the current user's environment (unless it's
# running in daemon mode). The umask can be forced with this option
#Hellanzb.UMASK = 0022


# Supported music types (case insensitive) and optionally their decompression
# executables
# and the file type that executable will decompress to (case insensitive). The
# exes must be in the PATH.
#
# <FILE> will be replaced with the name of music file
# optional <DESTFILE> is <FILE> with the specified extension
#
# None means these files don't need to be decompressed
defineMusicType('wav', None, None)
defineMusicType('mp3', None, None)
#defineMusicType('ape', 'mac <FILE> <DESTFILE> -d', 'wav')
#defineMusicType('flac', 'flac -d -- <FILE>', 'wav')
#defineMusicType('shn', 'shorten -x < <FILE> > <DESTFILE>', 'wav')

# Max files we should decompress at the same time
Hellanzb.MAX_DECOMPRESSION_THREADS = 1


# Enable Mac OS X Growl notifications
Hellanzb.GROWL_NOTIFY = False

# The growl notification server, in the format 'hostname'
Hellanzb.GROWL_SERVER = 'IP'

# The growl password
Hellanzb.GROWL_PASSWORD = 'password'


# Enable libNotify Daemon notifications
Hellanzb.LIBNOTIFY_NOTIFY = False


# Disable ANSI color codes in the main screen (preserves the in place scroller)
#Hellanzb.DISABLE_COLORS = False

# Disable ALL ANSI color codes in the main screen (for terminals that don't
# support ANY ANSI codes
#Hellanzb.DISABLE_ANSI = False


# Hostname for the XMLRPC client to connect to. By default, localhost
Hellanzb.XMLRPC_SERVER = 'localhost'

# Port number the XML RPC server will listen on, and the client will connect to.
# Set to 'None' (without the quotes!) for no XML RPC server
Hellanzb.XMLRPC_PORT = 8760

# Password for the XML RPC server. You might probably never use this, but the
# command line XML RPC calls do -- it should definitely be changed from its
# default value. The XML RPC username is hardcoded as 'hellanzb' -- E.g. URL:
# http://hellanzb:changeme@localhost:8760
Hellanzb.XMLRPC_PASSWORD = 'changeme'


# Username/Password to http://www.newzbin.com for automatic NZB downloading
Hellanzb.NEWZBIN_USERNAME = None
Hellanzb.NEWZBIN_PASSWORD = None


# If any of the following file types are missing from the archive and cannot be
# repaired, continue processing because they're unimportant (case insensitive)
Hellanzb.NOT_REQUIRED_FILE_TYPES = [ 'log', 'm3u', 'nfo', 'nzb', 'sfv', 'txt' ]

# Don't get rid of (move into the PROCESSED dir) the following file types when
# finished post processing (case insensitive)
#Hellanzb.KEEP_FILE_TYPES = [ 'log', 'm3u', 'nfo', 'nzb', 'sfv', 'txt' ]
Hellanzb.KEEP_FILE_TYPES = [ 'nfo', 'txt' ]


# List of alternative file extensions matched as NZB files in the QUEUE_DIR.
# The 'nzb' file extension is always matched
#Hellanzb.OTHER_NZB_FILE_TYPES = [ 'xml' ]

# Support extracting NZBs from ZIP files with this suffix (case insensitive) in
# QUEUE_DIR. Defaults to '.nzb.zip'. Set to False to disable.
Hellanzb.NZB_ZIPS = '.nzb.zip'

# Support extracting NZBs from GZIP files with this suffix (case insensitive)
# in QUEUE_DIR. Defaults to '.nzb.gz'. Set to False to disable.
Hellanzb.NZB_GZIPS = '.nzb.gz'

# Delay enqueueing new, recently modified NZB files added to the QUEUE_DIR until
# this many seconds have passed since the NZB's last modification time (defaults
# to 10 seconds)
Hellanzb.NZBQUEUE_MDELAY = 10

# Optional external handler script. hellanzb will run this script after post
# processing an archive, with the following arguments:
#
# handler_script type archiveName destDir elapsedTime parMessage
#
# type: post processing result, either 'SUCCESS' or 'ERROR'
# archiveName: name of the archive, e.g. 'Usenet_Post5'
# destDir: where the archive ended up, e.g. '/ext2/usenet/Usenet_Post5'
# elapsedTime: a pretty string showing how long post processing took, e.g.
# '10m 37s'
# parMessage: optional post processing message. e.g. '(No Pars)'
#Hellanzb.EXTERNAL_HANDLER_SCRIPT = '~/bin/post_hellanzb.sh'

stefantriep
03-03-2008, 15:26
Hi,

I'm having a WL500G but i see that the config is for a WL 500gP.
Does a WL500G also work?

Thnx,

Stefan

raas
03-03-2008, 19:09
Hi,

I'm having a WL500G but i see that the config is for a WL 500gP.
Does a WL500G also work?

Thnx,

Stefan

Hi Stefan,

I can't confirm it'll work on a WL500G, but I think it'll work.
The packages which are installed also work on a WL500G.
The only thing which is different, is that the GP has already it's 32mb internal memory enabled, and the G does not.

However, if you're currently running an oleg setup on your wl500G then make a backup of /opt and try. (The backup procedure is also included in this tutorial.)

OTOH.. would be very nice if someone could confirm it running on al WL500G :)

If you want, you can try it, I'll try to support you as much as I can (but I don't have a wl500g,so.)

Good Luck!

baraxash
08-03-2008, 00:54
hi to all i've a problem after i've change the language trought aiocp all service like: php mysql aiocp and zussaweb, when i try to open the page, the browser release a blank page with the "500- internal server error message" how i can resolv this problem?? Please help me!!!!:eek:

raas
08-03-2008, 14:35
Hi baraxash,

Have you tried to reboot your asus?

and,

How and where exactly did you change to which language(s)
(as I was able to add some languages to AIOCP (english & dutch))

baraxash
09-03-2008, 13:09
hi raas i've change the language in italian by the control panel of aiocp http://192.168.1.1:8082/AIOCP.
so i've re extract mnt.tar.gz into my mnt dir and the other page like zussaweb and phpmyadmin are ok now but i can't see the control panel of AIOCP(http://192.168.1.1:8082/AIOCP/public/code/cp_dpage.php?aiocp_dp=_main) because the browse now release a white page.. and it's the only thing that i can't see... (sorry 4 my english):(:eek:

raas
09-03-2008, 14:15
Hi Baraxash,

you could try to install AIOCP again.

open http://192.168.1.1:8082/AIOCP/install/install.php in your browser and follow instructions.

Something might get mixed up when you changed the language.

This will provide you with a fresh install of AIOCP, try to change the language from there.

HTH.

baraxash
09-03-2008, 18:06
OK NOW I CAN SEE THE control panel but i can't login.. i've try with admin asus and with admin and the pass that i've change into the config files of aiocp.......... tnx too much for u'r help....

raas
09-03-2008, 18:30
OK NOW I CAN SEE THE control panel but i can't login.. i've try with admin asus and with admin and the pass that i've change into the config files of aiocp.......... tnx too much for u'r help....

Hi,

the standard login and password after a new installation of AIOCP are:

name: admin
password: 1234

HTH

baraxash
09-03-2008, 18:35
ok ok perfect thanks toooo much thanks 4 u'r perfect HOWTO...

raas
09-03-2008, 22:00
Hi,

you're welcome, glad to hear it's working now.

hypernetics
22-03-2008, 23:19
Thanks Raas for this step-by-step guide for newbies like me to follow...

Router up and working, with plenty for me to learn and play with....

Thanks for the time and effort you put in to this....
And also a BIG up to Wengi for the Harddrive preperation part...

:D

raas
23-03-2008, 00:32
Hi hypernetics,


I'm glad to hear it's working out for you!
Indeed, thumbs up for Wengi and Oleg for providing so much information.
Like my signature says.. I just put stuff together, hoping to help someone!., the more the better.

hypernetics
23-03-2008, 10:55
Hi raas,

How would i configure the firewall using your set-up? as i am getting slow transfer rates in transmission (about 4kb/s to 20kb/s). And think the listening port may be closed. (In utorrent I get speeds of about 100kb/s)

I have tried... vi /usr/local/sbin/firewall ...but there is no file to edit. :confused:

Also your installed_packages.txt file states transmission - 0.81-1 is installed, where can I see this within the application? And Is it worth updating to the newer versions?? (as some people are having difficlties... and unlike me they know what they're doing...) :rolleyes: What version are you running...??

Thanks in advance :cool:

raas
23-03-2008, 12:27
Hi, I'm running the same version of transmission as in the package.
But I have to say, I'm not a 'torrent' guy, preferably use newsgroups. (that's why HellaNZB is in the package)
But It's working, that's why I included it in the package.

I don't thing the firewall is your problem, because, if it was closed you wouldn't have a connection..

Are you running in Access Point only or as a Home Router (I don't have experience with this setting as I have another firewall in my dsl-modem which I use. I'm using the asus as a 'normal' client within my network. It doesn't have 'network-tasks')

I have no experience in updating transmission, so I can not vote for that solution.

But if transmission is not working like you want it, and utorrent does, then skip the transmission part. :)


HTH

SeverusSneep
09-04-2008, 10:27
Hello Raas!

First, thank you for your hard work. Or like we use to say in dutch: Kei gaaf man!

My questions before I will update
-I have my wl500gP setup by wengi tutorial with transmission, samba and offcourse with the help of DrChair SabNZB. Can these programs (or the programs that you substitute with) work in the newest firmware of Oleg 1.9.7.10.
-The fastest way to backup 450Gb of data? at my wl500g I can only get 3Mb/sec 450Gb will then take up to: 42 Hours, almost 2 days! I cannot setup an linux machine to speed this up. I cannot take the risk to "try and hope it will work" because I have some important documents (3Gb each)

Thanks in advance

Serpent
09-04-2008, 11:10
The fastest way to backup 450Gb of data, from Ext3 volumes, without an Linux machine is to install onto your Windows machine this:
Ext2 Installable File System for Windows (http://www.fs-driver.org/)

BUT you need to read more, because:
"If you mount an Ext3 file system as an Ext2 file system and the file system is not cleanly dismounted, you have to run the e2fsck tool."

raas
09-04-2008, 13:12
Hi,

@SeverusSneep: Kei vet!
I can not yet confirm this package also works on oleg's 1.9.7.10. version firmware. Haven't had the time to check this, but with a little luck I will check this weekend. However, you said you've installed your asus a-la wengi. this means you have a 3 partition setup (swap, /opt and /mnt (or /tmp/harddisk). You can choose only to install the /opt package to your asus. This means, only the programs get installed on your asus, and your data partition is 'left-alone'. You can then choose to extract the /mnt (which is in fact a directory structure for the /mnt partition and also contains some webapplications ) package to your pc's harddrive.
This way you don't have to backup your datapartition because the installation does not write to it. (only for downloading the /opt package, nothing further)
Be sure to make a backup of /opt though before installing the headstart image.

@Serpent
Thanks for the tool !
I've had similar tools like this, but only with read permissions, not write permissions.. (I've had a partition-crash when I was doing something really-really stupid, had to fill the partition over LAN. 400gb of data, took a couple of days.... now this will speed up the process)... like SeverusSneep I don't have a full-blown linux pc to do this. Thanks !

SeverusSneep
11-04-2008, 14:40
Thank you all of your help, I decided to backup everything and try the new firmware. In return I will make an post (in this topic) with all my experiences and thing I ran into.

For backupping >200Gb

I used Totalcommander, with the filesystem plugin, worked for me quite fine. 350Gb (selected 100Gb of *rubbish* to be deleted anyway) in barely 3 hours. With an avarage speed of 6MB/sec. Acceptable for my though.

For Raas
Bedankt voor alle moeite kerelt! Ik probeer de nieuwe firmware nu uit. En zet hier mijn ervaringen neer. Vanavond of morgen post ik er meer over.

raas
22-04-2008, 21:56
@SeverusSneep

I just finished installing the ...10 firmware on the asus.
disconnected the hd, updated the firmware and used wengi's updated thread with all the changes in the post-boot script, fstab. etc.etc.

After this, rebooted and reconnected the hd.

All ok. HeadStart works lighttpd/php/mysql/hellanzb seem to work just fine.
Have not tested transmission though... not using torrents anymore.

SeverusSneep
16-05-2008, 10:37
@SeverusSneep

I just finished installing the ...10 firmware on the asus.
disconnected the hd, updated the firmware and used wengi's updated thread with all the changes in the post-boot script, fstab. etc.etc.

After this, rebooted and reconnected the hd.

All ok. HeadStart works lighttpd/php/mysql/hellanzb seem to work just fine.
Have not tested transmission though... not using torrents anymore.

My apologies for not answering any faster, due to exams and work I could not.

My experiences
To be sure my WL500g was in perfect condition before I started this test, I ran the firmware restorationtool, and started with a blank firmware to ensure that no firmware error could ruin my test.

After the installation of "raas-ware" I came to the first problem. I could not reach the transmission client and not to my old shares. Fixed that with fsstab (redirection to /mnt instead of /tmp/harddisk).

After this fix I found out that raas used some folders names: protected and unprotected (something simular like this). I tried to reach hellnzbd and transmission, but no result. At transmission I was asked to fill in a user/pass combination, and whatever I tried...no result.

With the proverb "lood in mijn schoenen" (there is no actual english translation for it..well...litterly lead in my shoes :p ) I continued my work and found out that my WL500G started crashing for nothing, I could not reach any website, I DHCP server got lost and my LAN got really unstable. Fixed this with a gentle reboot and went further on. I started downloading an 100MB iso from my ISP (I have an 16MBit connection), and I only got 512Kbit. I realised that there could be a faillure at my ISP so I tried another website....speed: 500Kbit

Like wtf!:confused:

Well, fixed this with an reboot. Apparantly my modem and WL500G needed to be rebooted at the same time...after this I got a whopping 15,9Mbits again. Strange! I doubt it if this was caused by the firmware, but I thought it would be worth mentioning.

Then I started Hellnzbd and found out that the connection was refused/not available and 550 all the time. This was after 2 hours of testing, rebooting and frustration....I gave up and installed my old firmware....damn!

raas
16-05-2008, 13:04
Hi SeverenusSneep,

I've had problems to, not exactly concerning the installed applications, but the booting, mounting, unmounting etc.etc.
take a look at.. http://www.wl500g.info/showthread.php?t=14255 (my problems)

I now have a stable setup under the -10 firmware which I'm now testing for stability etc.etc. which is actually going quite well. (test is now running for about a week, and every service, even HellaNZB still responds.)

Because of the amount of changes in the new firmware the HeadStart perhaps isn't a good choice anymore.

When testing goes well. I will create a new headstart which is able to work with the new firmware..
(I actually started all over to get it right under -10)

The password you mentioned in order to access should be admin/asus.

SeverusSneep
10-06-2008, 11:25
Hey!

How is your new headstart image doing? Still working on it?

Got everything now working, exept https + user/pass

raas
10-06-2008, 11:43
Hi,

Still testing.. the system is really stable (running 30+ days without a reboot, only HellaNZB stopped, but this is usual.), as i must say..
only thing is FTP, which I haven't been able to get this on speed again..

I'm pretty busy right now.
(had to mod some xboxes (old ones) for friends, and a spin-off of work is really taking shape now, so these kind of hobbies are the first to suffer, but with the holidays coming I should be able to release an image which is capable of running on the v10 firmware.)

SeverusSneep
10-06-2008, 12:45
Yep, I know the problem with time.

Then again, I have another problem. The wl500g is working as my primary router and filesharing station, so I cannot test anything live without enoying my familly members...

Well, the firmware version 10 is working fine for me, I have installed lighttpd and hellanzb (with succes this time) and I am trying to make a ssl+user/pass protected website (for sharing invoices with my boss overseas), the SSL part is working fine for me, but the user/pass combination won't work...I got htdigest but I can't get it to work...(some libuuld.so.1 can't be found).

Can I help you with the headstart?

blaster2570
22-06-2008, 19:52
Hi,

I've installed lighttpd to host a Wordpress weblog from my Asus router. Works great, although I have a small problem.

The wordpress files including the file index.php are stored into the directory /mnt. Every time I enter the url 192.168.1.1:8082 the webserver always redirects to 192.168.1.1:8082/cms although the line in my lighttpd.conf-file clearly mentions:



server.document-root = "/mnt/"


I've never entered the folder /cms anywhere in the lighttpd.conf file...

Also the webpage loads very slow, is this normal?

raas
23-06-2008, 21:43
hi,

remove the index.htm/html file which is in /mnt.
this is the default page.

what is slow.. depends on what you've running in the background.

britnet
09-09-2008, 14:14
i made this thread sticky.

raas
09-09-2008, 15:58
Hi Britnet,

I guess I have to hurry up then in releasing the HeadStart which is for oleg -10 version. :D
(this one runs with modifications, but not out of the box on a -10 firmware version anymore)

In a week or 2 I'll have a second wl500g premium, which is only for test-purposes..

Anyway, thanks for the trust in the how-to and making it sticky.
One request though, can you make wengi's excellent tutorial sticky also?
http://www.wl500g.info/showthread.php?t=10307

raas
18-09-2008, 11:33
Hi,

Since I've created the HeadStart image for the asus wl500g Premium and oleg released it's v 1.9.2.7-10 version of the firmware I discovered the original HeadStart image didn't work with oleg's new firmware.
After receiving comments (by pm and by answering to the thread) and britnet making this thread sticky (thanks!) I thought it was time to release a new image which supports oleg'sv 1.9.2.7-10 firmware, having a smaller footprint and supporting more (web) packages.

So here it is: HeadStart II image, which works with oleg's firmware v 1.9.2.7-10 .

What is in the package?
A lot, at least to provide the same functionality as would the original firmware (package) would bring, and a lot more.
- Automatic downloading system (providing a replacement for 'Asus Download Master' with ADOS
- BitTorrent Downloader (Transmission)
- Binary Newsgroup Downloader (HellaNZB)
- PHP webserver (lighttpd)
- MySQL Database with phpmyadmin support
- Samba2 (Basic setup for (windows) networking)
- Wake-On-Lan-Application
- Webapplications (like: mp3database (with a few very small mp3s to show tag-support), photo-album (with some pictures of the asus), content management system, AIOCP, filebrowser)


prerequisites?
yes.
- an asus wl500g premium device and a harddrive. (Duh)
- followed wengi's excellent tutorial exactly until and including step 4b.
- (if you're running in Access Point Only mode, like me, you have so set a nameserver in resolv.conf)
- Make sure your device has a 'hostname' (to be set in asus 'original' router setup webpages), otherwise, MySQL gets into trouble.


Need to knows?
I have never changed my ip of the asus (192.168.1.1) so this setup assumes that address. I am running in Access Point only mode, I have no experience with the other settings so I can't answer questions about that. (configure this in the basic asus setup http://192.168.1.1)
The name of my device is: NAS (Not that I know of it has be configured in this setup, but should you run into something, which I doubt, then this of NAS as the name of the device in the system setup of the basic asus setup http://192.168.1.1)


How to use this tutorial:
In this tutorial you'll have to change, download and extract items by giving certain commands and changes according to example(s) which are given in this tutorial. Furthermore, the tutorial first explaines a step what we're going to do and then supplying to the exact piece of code you have to execute. When you have to execute code (marked with 'Execute'), the code will be displayed in a special code window and, in some cases, be followed by example(s) of code (marked with 'Example'), if you have to change according to the example.


Let's start!

Step 1.
I couldn't have done a better job than WENGI. (Thanks man!)
Follow step 1 to 4b exactly from the excellent tutorial made by WENGI (found here: http://www.wl500g.info/showthread.php?t=10307). If you read Step5: IPKG, stop, and continue this tutorial.


Step 2.
Wengi uses a different mounting point for the data partition. In order for the HeadStart II image to work properly, we have to change the mounting point of the data partition (the 3rd parition).
Change /etc/fstab to match the example.

Execute:

vi /etc/fstab
Example: (last line has been changed at the Mountpoint -> /mnt)

#device Mountpoint FStype Options Dump Pass#
/dev/discs/disc0/part1 none swap sw 0 0
/dev/discs/disc0/part2 /opt ext3 rw,noatime 1 1
/dev/discs/disc0/part3 /mnt ext3 rw,noatime 1 1


Now, to prevent anything to startup at next reboot which could interrupt the image extraction we will change the post-mount script in order to prevent running any services at startup.

Execute:

vi /usr/local/sbin/post-mount


Example: (last line has been made as a comment -> #, so the script doesn't execute anything)

#! /bin/sh
#/opt/etc/init.d/rc.unslung start


We have to save our changes to the flash and reboot.

Execute:

flashfs save && flashfs commit && flashfs enable && reboot


Step 3.
Your (telnet/ssh) connection will be broken, so log in (give it some time -> 30sec) and check after the full reboot if the partitions are mounted correctly. The output will/must match the following example:

Execute:

df

Example:

Filesystem Size Used Avail Use% Mounted on
rootfs 3.0M 3.0M 0 100% /
/dev/root 3.0M 3.0M 0 100% /
/dev/discs/disc0/part2
966M 233M 684M 26% /opt
/dev/discs/disc0/part3
17G 235M 16G 2% /mnt

We're now ready to continue the download and extraction of the image:
go to data partition and download the image, then go to root extract the file to /opt, go to program partition, download mnt.tar.gz and install the webapplications and directory structure (this takes a while!)

Execute:

cd /mnt
wget http://files.wl500g.info/asus/custom/raas/v10/opt.tar.gz

Execute:

cd /
tar -xvzf /mnt/opt.tar.gz

Execute:

cd /opt
wget http://files.wl500g.info/asus/custom/raas/v10/mnt.tar.gz

Execute:

cd /
tar -xvzf /opt/mnt.tar.gz

(if you get an error like: wget: Unable to connect to remote host add your nameserver(default router in your network) to resolv.conf) If the download and image extraction is ok, then we have to enable our services to startup at reboot again.

Execute:

vi /usr/local/sbin/post-mount

Example: (last line has been decommented -> # removed, so the script does execute)

#! /bin/sh
/opt/etc/init.d/rc.unslung start


Again, We have to save our changes to the flash and reboot.

Execute:

flashfs save && flashfs commit && flashfs enable && reboot

Your (telnet/ssh) connection will be broken, so log in (give it some time -> 30sec)

Actual installation done. !!..

Read on in the next post on how to customize.

raas
18-09-2008, 11:34
Step 4.
Now, how to customize?


All user/pass combinations I have used in this image are admin/asus
(only not for ADOS, this is a error which I made in the process, sorry, use: admin/logitech)
besides from the swat/samba login, which uses the standard password you've entered in the router (oleg's firmware) to secure it.


(if you want to see what's running now, before customizing, take a look at http://192.168.1.1:8082 (change the ip address, if you don't use the standard ip address) it will take you to the homepage where most applications are accessible.))


Step 4a. (optional)
Samba
Standard, 2 shares are configured in the system: /opt and /mnt are both shares.
use /mnt for your data, and /opt for a quick-ref to your programs and config files to be accessible from lan.

open http://192.168.1.1:901/ and login with admin and the password you've used for the default asus web site (def. configuration).
You can define your shares here.

If you want to define the shares using the console and a text editor, change the smb.conf file.

Execute:

nano /opt/etc/samba/smb.conf

Example:

# Samba config file created using SWAT
# from desktopmr.lan (192.168.1.250)
# Date: 2008/09/18 08:12:36

# Global parameters
[global]
security = SHARE
log level = 1
max log size = 100
dns proxy = No
guest ok = Yes

[opt]
path = /opt
force user = admin
read only = No

[mnt]
path = /mnt
force user = admin
read only = No

Step 4b. (optional)
MySQL
Change the MySQL database password for the root user.

Execute:

mysql -u root -p mysql

Now the MySQL password is asked: Enter 'asus' (without the quotes)

Execute the command to enter a new password

Execute:

update user set password=PASSWORD("YourNewPasswordHerePlease") where User='root';(Where you replace "YourNewPasswordHerePlease" with your new password)

Exit MySQL console and reboot

Execute:

exit

Then Execute:

reboot

Your (telnet/ssh) connection will be broken, so log in (give it some time -> 30sec)

Log in and in the following files, change the password so that your mysql login for phpmyadmin works.
(text-editor nano is installed, which I preferably use, so this will be used in the tutorial from now on)

Execute:

nano /mnt/AIOCP/admin/phpMyAdmin/config.inc.php
(change password at line: 73)
Save the file with CTRL+O, Exit with CTRL+X


Execute:

nano /mnt/AIOCP/shared/config/cp_db_config.php
(change password at line: 47)
Save the file with CTRL+O, Exit with CTRL+X


Execute:

nano /mnt/protected/WebUI/ados/database.conf.php
(change password at line: 29)
Save the file with CTRL+O, Exit with CTRL+X


Execute:

nano /mnt/protected/WebUI/ampjuke/db.php
(change password at line: 4)
Save the file with CTRL+O, Exit with CTRL+X

That's it for MySQL security.

Step 4c (optional)
Webserver.
The webserver it's standard root is /mnt, which means that your whole data partition is accessible through the webpage!
Not all directories are accessible by public, /mnt/protected (your data-storage) is protected, and /mnt/cgi-bin is protected.
The content management systems which are running are: Simple CMS (/mnt/cms) (standard) and AIOCP (/mnt/AIOCP) (installed, but not default CMS.)
Besides that /mnt/AIOCP is public, it also contains the phpmyadmin stuff, which is off-course protected. (if you remove the AIOCP directory, you will loose phpmyadmin.)

Now, if you absolutely don't want the root of your data-partition (/mnt) to be the root of your website, change it in:

Execute:

nano /opt/etc/lighttpd/lighttpd.conf
(change server.document-root at line: 40)
(change /mnt/ to /mnt/cms/ or /mnt/AIOCP/)
Save the file with CTRL+O, Exit with CTRL+X
Keep in mind that the installed web application will not work anymore unless you rearrange the directory structure.


Now change the password for the protected area on the webserver. (the stuff behind /mnt/protected)
Execute:

nano /opt/etc/lighttpd/.lighttpdpassword
(this file uses the 'user: password' combination (without the quotes) define you 'web' users here.)
Save the file with CTRL+O, Exit with CTRL+X


The directories which are user: password protected on the webserver are stored in lighttpd.conf file.
Open the file and go to line: 280, from this point, the file contains the protected directories. Add/remove ass you like.

Execute:

nano /opt/etc/lighttpd/lighttpd.conf
(change server.document-root at line: 280)
Save the file with CTRL+O, Exit with CTRL+X

Example:

auth.backend = "plain"
auth.backend.plain.userfile = "/opt/etc/lighttpd/.lighttpdpassword"
auth.require = ( "/protected/" =>
(
"method" => "basic",
"realm" => "Enter Password",
"require" => "user=admin"
),
"/cgi-bin/" =>
(
"method" => "basic",
"realm" => "Enter Password",
"require" => "user=admin"
),
"/AIOCP/admin/phpMyAdmin/" =>
(
"method" => "basic",
"realm" => "Enter Password",
"require" => "user=admin"
)

)


if you change anything in this file, you have to run the following command:

Execute:

/opt/etc/init.d/S80lighttpd restart


Step 4d (optional)
Configure the newsserver to download binaries.

Execute:

nano /opt/etc/hellanzb.conf
(on line: 33, change to your newsserver provider)

Step 4e (optional)
Configure transmission if you've other demands than the standard

Execute:

nano /opt/etc/transmission.conf

Step 4f (optional)
Configure user/passwords in installed webapplications.
(If you've changed your ip-address, then use it below)

ADOS: http://192.168.1.1:8082/protected/WebUI/ados/
AIOCP: http://192.168.1.1:8082/AIOCP
AmpJuke: http://192.168.1.1:8082/protected/WebUI/ampjuke

Step 4g (optional)
Configure a mac-address in /mnt/cgi-bin/wol.cgi

Execute:

nano /mnt/cgi-bin/wol.cgi

Example:


#!/bin/sh
ether-wake -i br0 00:16:17:B1:F3:99
echo "<HTML><HEAD><title>test</title></head><BODY>Magic Packet
Sent</Body></html>"
(add your mac-address at the second line at the end.)
once you've entered the correct mac-address in this file, you're able to start the machine once you access the page through a webbrowser -> http://192.168.1.1:8082/cgi-bin/wol.cgi

Step 4h (optional)
FTPserver
proftpd is installed as ftpserver.
you can configure it in :

Execute:

nano /opt/etc/proftpd.conf


End of basic configuration!



What did I get and how do I use it:
I recommend a reboot when you're reading this, this way you make sure all the services are correctly started after you have configured them. In the meantime, you can read along what this system install has installed and how to use it.


Samba2, The network share service (connect with your (window$) PC)
Samba is pretty standard configured.
On the disk, you have 2 partitions to store programs (/opt) and data (/mnt) these are also writable shares in Samba. In a windows environment (I used WORKGROUP, can be configured with swat http://192.168.1.1:901, name of device is NAS) it would show up as:

-Microsoft Windows Network
___Workgroup
______Nas
_________mnt
_________opt

Both shares are writeable, I reccommend writing your data to /mnt (look at the expanded directorystructure by using your pc.) The access to /opt is just there to give you a quick-ref to your program directory without login into your console.




Other than Samba, most of the items installed are webapplications (which has been pointed out at the beginning of this tutorial), open up http://192.168.1.1:8082 in your browser and read the homepage, there is a number of links which will lead you further.




HellaNZB
Well, there are 2 small issues with this one.
1) it doesn't start on itself after the router reboots. start with:
Execute:
/opt/bin/startHellaNZB

2) it doesn't download anymore after more than 24h of inactivity.
However, I've downloaded TB's with this application and i'm very please how well it downloads, verifies and extracts my downloads. That's why I've included this one in the package.
In my opinion it's workable, because when your are collecting your nzb files, your at your machine. A simple reboot/restart of HellaNZB to get it to download again can be executed then.
Once you've started HellaNZB with /opt/bin/startHellaNZB, you can access zussaweb WebUI in order to control HellaNZB at http://192.168.1.1:8082/protected/WebUI/zussaweb/
After starting HellaNZB, simply put your nzb's in /mnt/protected/Downloaders/HellaNZB/nzb/daemon.queue and download will start.



That's about what I can tell you, play around, if you've any questions, don't hesitate to ask. Also, if you've comments to make it better (the image, or the tutorial, please post)

raas
18-09-2008, 12:09
Sources:

wengi's basic installation: http://www.wl500g.info/showthread.php?t=10307
lighttpd + php: http://www.wl500g.info/showthread.php?t=5247
MySQL: http://www.wl500g.info/showthread.php?t=8236 and http://www.macsat.com/macsat/content/view/73/29/
HellaNZB: http://www.wl500g.info/showthread.php?t=11481
ADOS: http://www.wl500g.info/showthread.php?t=13227
Ampjuke: http://www.ampjuke.org/
AIOCP: http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=aiocp
CMSimple: http://www.cmsimple.com/
And of course: all the help from other forum members and the fantastic search engine (http://www.wl500g.info/search.php)

raas
20-09-2008, 10:15
@Zapt, you send me a PM but I can't reply, 'cause you don't accept messages.

Zapt
20-09-2008, 10:20
Oh, sorry raas.
I managed to get the transmission port open.
Now my problem is that the ftp seems to be open to the internet.
How do I stop this? There is no entry in the post-firewall...
I installed lftp to be able to use the pir8te skin for transmission (see other thread).

Thanks

raas
20-09-2008, 12:26
Oh, sorry raas.
I managed to get the transmission port open.
Now my problem is that the ftp seems to be open to the internet.
How do I stop this? There is no entry in the post-firewall...
I installed lftp to be able to use the pir8te skin for transmission (see other thread).

Thanks

Hi Zapt, did you only open up the port for transmission, or did you open up all ports, 'cause transmission is using other port(s) than ftp, and ftp-port shouldn't open when you only open up a specific (other) port.

Test to see if not all your ports are open to the internet.
(cause then your telnet (23), ssh(22) and standart asus website (80) are all open to the internet)

Zapt
21-09-2008, 12:50
I just opened up the port for transmission. I double checked through a online portscanner and there is only ftp open.

hypernetics
22-09-2008, 20:15
Hi Raas
Its great to see you've creted a new image!:D.... Is it best to update to Olegs latest firmware before upgrading to this image??

Also... I see that you have included AmpJuke in the image. Can this audio be output through a USB sound card?:rolleyes:
I am hoping to get a music sever running on my wl500gP and access this over the local LAN/wifi and control it with a pocket pc.

Something like this (web link): http://translate.google.com/translate?u=http%3A%2F%2Fwww.equinoxefr.org%2Finde x.php%2Fpost%2F2008%2F06%2F15%2Fbricolage-autour-d%25e2%2580%2599un-routeur-asus-wl500gp-partie-2%2F&hl=en&ie=UTF8&sl=fr&tl=en

This guy is using 'MPD' - Music Player Daemon & and 'wymypy' as a client front end.
Would Ampjuke do something similar?? :rolleyes:

And how would I get my Asus router to recognise my external USB sound card? :confused:
Link to picture (web link): http://www.maplin.co.uk/images/full/a56ak.jpg


Many Thanks and keep up the great work!

Hyper!

raas
22-09-2008, 21:52
Is it best to update to Olegs latest firmware before upgrading to this image??


Yes, the image is intended for oleg v x.x.x.10 version (the latest)


I see that you have included AmpJuke in the image. Can this audio be output through a USB sound card?

No, at least not that I know of, it's an mp3 web-database which provides easy access to your music through a web interface.


There should be info in this board on how to play mp3 on your asus, but that's not what HeadStart is about.

lordu
22-09-2008, 22:20
Great job, man!
There is some chance to use again vsftpd?

Zapt
23-09-2008, 07:01
how can i fix it?

raas
23-09-2008, 07:51
Great job, man!
There is some chance to use again vsftpd?

Sure, remove proftpd and install vsftpd (I guess)



how can i fix it?
Fix what? vsftpd?, as above ;)

Zapt
23-09-2008, 09:40
I just opened up the port for transmission. I double checked through a online portscanner and there is only ftp open.

FTP is still open to the Internet and I just opened up the port for transmission... Did you open the ftp port by default? How can I fix this?
I already checked the webinterface and post-firewall file.

raas
23-09-2008, 09:56
Did you open the ftp port by default?.

I'm not doing anything with the firewall in the asus, because I'm running in Access Point only mode (as the tutorial states). In this mode are ports are 'open' because it just acts as a lan-client.

Search the board for 'iptables' this should help you.

alias88
26-09-2008, 00:21
Hi Raas,

First thanx for the great job! It took me only 2 hours to get the whole Oleg firmware upgrade (some glitches while uploading) and the Headstart II mounted!!! If I would have had to do this on my own, I would probably be celibrating my 88th birthday instead of my 30th...


(if you want to see what's running now, before customizing, take a look at http://192.168.1.1:8082 (change the ip address, if you don't use the standard ip address) it will take you to the homepage where most applications are accessible.))

I use the standard ip address, but I get an error in my browser. Can you help me?

Greetz, Alias88

raas
26-09-2008, 07:36
hi alias88 (lee ;) )

hmm... seems that the webserver isn't running.
could you describe the error (404, not found, or something else?)
(is samba running?, can you access the harddrive from your pc?)

check with 'df' if your disk/partitions are mounted.

check with 'top' or 'ps' or 'ps axf' which programs are running, there should be a process like lighttpd (the webserver). if there's none, check if your services are starting up when rebooted


Execute:

Code:

nano /usr/local/sbin/post-mount

Example: (last line has been decommented -> # removed, so the script does execute)

Code:

#! /bin/sh
/opt/etc/init.d/rc.unslung start

save to flash


flashfs save && flashfs commit && flashfs enable && reboot

Good luck!

alias88
26-09-2008, 10:56
Hi Raas,

thanx for the swift reaction... I checked if lighttpd was running and it wasn't. So i checked the post-mount file with nano. And the only difference i could find was


#! /bin/sh
/Opt/etc/init.d/rc.unslung start

instead of


#! /bin/sh
/opt/etc/init.d/rc.unslung start

After reboot the webserver was running and I can reach http://192.168.1.1:8082/

Am I right to say that you have to be aware of case-sensitivity?

Greetz, Alias88

raas
26-09-2008, 14:00
Hi Raas,


Am I right to say that you have to be aware of case-sensitivity?

Greetz, Alias88

Hi Alias88,

Yes you're right. *nix systems are case-sensitive.
This also applies to the url's you request throught the webserver.

http://192.168.1.1:8082/CGI-BIN will not be found, as http://192.168.1.1:8082/cgi-bin will be found.

Glad to hear that it is working now !!

jenne
07-10-2008, 11:02
:confused:Hallo!

What is the password for ados? admin:asus not work!!!

raas
07-10-2008, 17:54
What is the password for ados? admin:asus not work!!!

Sorry, my bad, the password I've entered in this is the one which I use for test/dev. environments. :D


try

admin:logitech

(this should work, as I just connected my HeadStart drive and tried it.:))

btw, jenne, thanks for the heads-up, I've updated the tutorial)

Fontinhas
10-10-2008, 11:34
I'm trying to install HeadStart, but the download links aren't working. It seems that the files were deleted or something. Can someone help me?

Thanks in advance

raas
10-10-2008, 12:31
Hi,

links are up and working when I just checked, are you using the right setup (http://www.wl500g.info/showthread.php?p=112117#post112117)


links are:
http://dhost.info/raas/v10/opt.tar.gz and
http://dhost.info/raas/v10/mnt.tar.gz

Fontinhas
10-10-2008, 14:16
Hi Raas,

The links are working now. Must have been some temporary problem with the servers. Downloading them now.

Thank you :)

holla
11-10-2008, 12:53
my ados won't start downloading...
anyone with the same problem?

raas
11-10-2008, 13:11
Hi Holla,

ADOS will not start directly, this is because it uses scheduled tasks in the background (cron).

In ADOS, select the file you want to download, then in the top of the screen, press the 'play' button to order for download, wait for a minute or so, and push the refresh button, see if it downloads,

otherwise, check if the link you want to download actually exists.

HTH

holla
11-10-2008, 13:29
Hi Holla,

ADOS will not start directly, this is because it uses scheduled tasks in the background (cron).

In ADOS, select the file you want to download, then in the top of the screen, press the 'play' button to order for download, wait for a minute or so, and push the refresh button, see if it downloads,

otherwise, check if the link you want to download actually exists.

HTH

thanks for ur fast answer. I tried that already, but still no working...

the link i tried to download is this: http://iss.cet.edu/technology/fullscale/pdf/FSL_fullscaleteacher.pdf and it exists... here is a print where u can check what I'm doing

http://img243.imageshack.us/img243/7460/adosnv4.jpg

regards

holla
12-10-2008, 14:36
besides,

when I try to create a folder (using using my network connections) in /mnt or /opt folders I keep having an error sayng I have no permissions to do that...


any idea??

I think that might be also the problem coz the router may have no rights to write on it

On usb Application I have
Samba File Shares: all partitions
Default Access Level: read/write

raas
12-10-2008, 15:04
besides,

when I try to create a folder (using using my network connections) in /mnt or /opt folders I keep having an error sayng I have no permissions to do that...


any idea??

I think that might be also the problem coz the router may have no rights to write on it

On usb Application I have
Samba File Shares: all partitions
Default Access Level: read/write

Holla,
Do not use the samba which is embedded in oleg's firmware (the USB-application you're refrering to.)

As you haven't followed wengi's tutorial (http://www.wl500g.info/showthread.php?t=10307)correctly (which tells you to disable all kinds of things, incl. samba in the webinterface, part 1, Install Firmware.), errors like these (not being able to write) may occur. It could be that this is also the case with the problem you're having with ADOS.

HTH

holla
12-10-2008, 15:23
hmmm

i see...

i skipped this part of the tutorial....

- disable FTP, Samba, NFS

maybe thats the problem

holla
12-10-2008, 17:46
Installed all over from the scractch and still the same problems.

can't download things using ados.

and can't create folders or copy what so ever to /mnt or /opt using windows network connections....

the only way I can create folders is using mkdir through telnet or ssh...

any idea???

raas
12-10-2008, 17:47
Hi Holla,
Well, looks like we've found the reason why.
I can't guarantee that everything works if not all the steps are taken.

Disable the stuff in the webinterface, save settings and reboot, and see what it does then.

holla
12-10-2008, 17:57
Hi raas

Sorry but the problem remains... I seem to have no permission to write either on /mnt or /opt using windows....

raas
12-10-2008, 18:13
Hi,

I just mounted the HeadStart image myself (I have it on another disk), and tried, works, so I think it somehow must be in the config or something,

could you post your output of 'mount' and '/opt/etc/samba/smb.conf'

thanks

holla
12-10-2008, 18:29
Hi again. here are the things u asked for

Mount


[NAS@Asuz root]$ mount
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part2 on /opt type ext3 (rw,noatime)
/dev/discs/disc0/part3 on /mnt type ext3 (rw,noatime)



/opt/etc/samba/smb.conf'


# Samba config file created using SWAT
# from desktopmr.lan (192.168.1.250)
# Date: 2008/09/18 08:12:36

# Global parameters
[global]
security = SHARE
log level = 1
max log size = 100
dns proxy = No
guest ok = Yes

[opt]
path = /opt
force user = admin
read only = No

[mnt]
path = /mnt
force user = admin
read only = No


Thanks

raas
12-10-2008, 21:49
Thanks,

that looks ok.

can you try to create a share using the SWAT tool on
http://192.168.1.1:901/


(you haven't changed the ip of the asus, have you, there might be security issues when it's not in the 192.168.1.x range, I don't know from-the-back-off-my-head where to configure this, have to look this up.)

holla
13-10-2008, 19:00
Thanks,

that looks ok.

can you try to create a share using the SWAT tool on
http://192.168.1.1:901/


(you haven't changed the ip of the asus, have you, there might be security issues when it's not in the 192.168.1.x range, I don't know from-the-back-off-my-head where to configure this, have to look this up.)

Thanks bro :)


now it's finally working hehehehe

I spent hours and hours over it and finally it worked.

I had to setup everything from the beginning. Installed everything from scratch and only entered my personal stuff like ssid, encrytion, ips etc when I had all ur package installed and configured :)

Once again thanks for your precious help

best regards

ps:
now i have to get some more stuff working:

NFS server for my dreambox,
and some other stuff I got to think like ftp server and my homepage hoster

raas
13-10-2008, 19:10
Glad to hear it is working now.

raas
14-10-2008, 11:23
Holla,

I've found the issue why your samba wouldn't work.

As I noticed in the print-screen you posted, I saw you've changed your ip to 192.168.2.1, while samba grants only permissions to clients on the 192.168.1.x range.

Have a look at the following post. (taken from WENGI's excellent tutorial)
http://www.wl500g.info/showpost.php?p=60934&postcount=5
Step 10b: Samba
(editable with swat, or directly in the config file)
Globals -> Hosts allow has 192.168.1.

Having placed your asus in the 192.168.2.x range, and assuming that your clients are also in that range this is the reason why your samba shares weren't accessible on you clients.

holla
14-10-2008, 18:57
Holla,

I've found the issue why your samba wouldn't work.

As I noticed in the print-screen you posted, I saw you've changed your ip to 192.168.2.1, while samba grants only permissions to clients on the 192.168.1.x range.

Have a look at the following post. (taken from WENGI's excellent tutorial)
http://www.wl500g.info/showpost.php?p=60934&postcount=5
Step 10b: Samba
(editable with swat, or directly in the config file)
Globals -> Hosts allow has 192.168.1.

Having placed your asus in the 192.168.2.x range, and assuming that your clients are also in that range this is the reason why your samba shares weren't accessible on you clients.

Precisely.. I use 192.168.2.1 coz I have my other routers and computers assigned with that ip.

After I installed everything on 192.168.1.1 everything went smooth. I could even access port 901 to the samba.

Now I can write on the hdd (my 8gb pen drive) on the router. but can't access 901.. but i see no problem with that :D

ABiout ados I just have to complain about 1thing. I have a 1Mb dsl connection and it wont download at 100kb/s from rapidshare servers... The best speed I saw was 80kb

regards and thanks for ur precious help again

raas
15-10-2008, 13:42
ABiout ados I just have to complain about 1thing. I have a 1Mb dsl connection and it wont download at 100kb/s from rapidshare servers... The best speed I saw was 80kb



Hi Holla, I must confess, I've never looked into the speed-issue of ADOS you mention now, so I don't know if it can download faster. I use it as a background downloader, stuff that needs to be downloaded some time, but doesn't matter when. That's why I've never looked into the speed issue with ADOS you're mentioning now.
Are you sure you weren't using the internet connection for something else (or maybe another client) at the same time when you did the speed test?

(FWIW, when I download from a newsgroup I get 800kbyte/s to 1mbyte/sec, so the router can do fast downloading)

holla
16-10-2008, 20:33
ok thanks...

my speed changes a lot on the router... it's kind of a weired thing... but that's not a very very important thing hehehehe

Still one last question:

how can I configure my ados to download everyday on my happy hours???

from 2h-7h every day

How do I schedule downloads?

holla
20-10-2008, 17:58
no one?

cammon

raas
20-10-2008, 18:32
Hi Holla,

a wild guess, and maybe far fetched.
But, if my memory serves me right, I believe that ADOS heavily relies on CRON (task scheduler) on the asus.
A job just looks every x minutes if there's something to download.

If you don't need CRON for other seperate tasks, then you could set it up that it only executes the jobs for ADOS in your specific time-window.

See wengi's how-to for a brief explanation about CRON.

I think you can achieve it with this.

HTH

holla
20-10-2008, 21:25
hmm

I see...

In ADOS we are supposed to have a scheduler feature ...
Here are main features of my script:

* Unlimited links processing (with automatic links searching in the blocks of plain text).
* Multiuser mode. Administrative and user accounts are supported.
* Scheduled downloads.
* Different database support: SQLite (included in PHP) and popular MySQL.
* Different download engines support (cURL, wget, at alias). Any engine may be selected for each download.
* User directories support. File can be saved to the specified directory depending on its extension or user wish.
* Authentification and redirection support. May be useful for FTP downloads and for paid accounts of different file hostings.
* Total bandwidth restrictions for each user.
* Real-time donwload's progress tracking.
* Multilingual support (with a help of volunteers).


and finally DINI says:


Generally, that’s it.
I’m sorry, but at the time you must examine working with schedule, categories, user management and downloading modules by yourself because there is no detailed manual for it and I have too little time to write such manual (help is very appreciated). I hope I’ll do it later, but I can’t tell you the exact time.

So I believe ados has its own feature... I was just trying to guess if someone made it work

raas
21-10-2008, 08:23
Holla,

Well I guess we just haven't looked far enough because it's just there in front of our noses. :)
- Go to the ADOS page on your router
- In the top menu bar click 'Schedule' (third button)
- Click 'properties' (top left in the content 'pane')
- In the popup that opens enter your happy-hour time windows in 'Alternating restrictions'.

I haven't made restriction for myself because I don't need one, but obviously, you could enter a schedule here.

HTH

ebabinski
22-10-2008, 22:43
Maybe someone could help me also.

I just installed raas' headstart (thank you dude! It was pretty easy)!! but I can't seem to have ADOS to start. I already disabled the download schedule but it still won't start.

Any help would be very much appreciated.

raas
23-10-2008, 06:57
Hi ebabinski,
you are aware that ADOS doesn't download directly after you've inserted the URL. this takes a couple of minutes before it starts downloading. Or does it not download anything at all ? a stupid question maybe, but you're sure the link does work? (I have to ask, sorry).
Could you please post the link you are trying to download (no warez !! PM me in case !)

ebabinski
23-10-2008, 09:29
Hello raas! Thank you for replying. Actually, I am not aware that it doesn't start automatically. Unfortunately, as you can see in the screenshot, it still hasn't started after 11 hours. :D

I trying to download an Ubuntu .iso. I tried to one server from all the continents and it doesn't start... but it starts to download when I use firefox.

All the other things that came with the headstart is working :o

holla
24-10-2008, 10:19
maybe u are having a problem just like my first one.. try to write on the samba disk using windows.. just copy and paste a document there.


and tell us if u can do it...


about the schedule I still don't know how to work with it....

I inserted the correct time on schedule proporties, I added an event and added all the links for download with the mark to run in the event and it still didn't work....


Raas could you help me here :D??

lamsao
24-10-2008, 16:44
Raas,

Your download links seemed to be down. Can you check them? Thanks.

holla
24-10-2008, 17:14
sometimes they go down..

try again after a couple of hours or so

raas
24-10-2008, 18:05
Raas,

Your download links seemed to be down. Can you check them? Thanks.

Yeah, this sometimes happens. I'm using a free host, that's why...
(btw... links are up atm.)

lamsao
24-10-2008, 19:08
Yeah, this sometimes happens. I'm using a free host, that's why...
(btw... links are up atm.)

Yeah, it's working. I am downloading now. Thanks.

lamsao
24-10-2008, 21:32
I followed Raas's instructions and everything went smoothly to the end of step 3. After reboot the router could not mount to the hard disk. I could see the three partitions listed in /dev/discs/disc0/. When trying to mount manually I got error "No such device or address".

I started over from scratch and the same thing happen.

Does anyone know what's wrong here. Please help me.

BTW, if it matters the router I am using is WL520GU.

Many thanks,
lamsao

raas
25-10-2008, 08:47
Hi Lamsao,

Could you please post the output of


df

and the contents of


/etc/fstab (use vi / nano)


Thanks,

holla
26-10-2008, 16:39
If someone could help me with ados I would be apreciated :)

I can schedule downloads to download only from 2-7 (or any other hour) but downloads don't start by themselves....


How can I edit them to start automaticly?

lamsao
28-10-2008, 12:39
Hi Lamsao,

Could you please post the output of


df

and the contents of


/etc/fstab (use vi / nano)


Thanks,


Raas,

I have solved the problem. As mentioned in Wengi's instructions the pre-mount script may take some time to perform e2fsck, but I was impatient and did not wait long enough. Now, I have everything working up to step 4 in your instructions. Just need to customize it.

I want to be able to access http://192.168.0.1:8082 (home page) and http://192.168.0.1:901/ (Samba) from the WAN interface. I tried to configure the port fowarding as follow:

Destination Proto. Port Range Redirect to
all TCP 8082 192.168.0.1
all TCP 901 192.168.0.1

But I could not connect from the WAN side. Do you know if this can be done and how? Thanks a lot for your help.

-- Lamsao

raas
30-10-2008, 15:16
Raas,

But I could not connect from the WAN side. Do you know if this can be done and how? Thanks a lot for your help.



Like the tutorial says, I don't use the asus as a router, but as AP-only.
Normally you would bind outside ip/port to inside ip/port
In what you post, this is not a full combination (like I'm missing the outside port)

Normally you would have something like this.
outside.ip.address:80 -> 192.168.0.1:8082
outside.ip.address:901 -> 192.168.0.1:901

HTH

lamsao
31-10-2008, 14:12
Like the tutorial says, I don't use the asus as a router, but as AP-only.
Normally you would bind outside ip/port to inside ip/port
In what you post, this is not a full combination (like I'm missing the outside port)

Normally you would have something like this.
outside.ip.address:80 -> 192.168.0.1:8082
outside.ip.address:901 -> 192.168.0.1:901

HTH

Raas,

That was what I have set my router to but it did not work.

raas
31-10-2008, 19:38
'your router' , is this the asus or not?

How did you test? please describe with more info please on what you did to test and to get it to work (and which device(s) are used).
Did you test from the actual internet at another place to your public ip? t doesn't work when you are at your own place and try to access your public ip.

HTH

TSanchess
21-11-2008, 15:33
Hi, raas, thanks for the guide! I carefully followed it until the customization section. So I'm just testing now if everything works correctly and I've got a few questions.

First. Your router name is "NAS" mine is different. I see there are files
nas.lan.conf and nas.wan.conf in the /tmp folder
are they related to the name of the router?

Second. I've looked through /tmp/syslog.log and there are a few minor errors after execuling the /opt/etc/init.d/rc.unslung restart command

Nov 21 17:05:18 rc.unslung: restart service /opt/etc/init.d/S05syslogd
Nov 21 17:05:18 System log daemon exiting.
Nov 21 17:05:20 syslogd started: BusyBox v1.1.3
Nov 21 17:05:20 syslogd: started.
Nov 21 17:05:20 rc.unslung: restart service /opt/etc/init.d/S10cron
Nov 21 17:05:20 rc.unslung: restart service /opt/etc/init.d/S10xinetd
Nov 21 17:05:20 /opt/sbin/cron[1505]: (CRON) STARTUP (V5.0)
Nov 21 17:05:22 rc.unslung: restart service /opt/etc/init.d/S45php
Nov 21 17:05:22 rc.unslung: restart service /opt/etc/init.d/S58proftpd
Nov 21 17:05:22 xinetd[1528]: missing service keyword [file=/opt/etc/xinetd.conf] [line=18]
Nov 21 17:05:22 xinetd[1528]: missing } in last service entry [file=/opt/etc/xinetd.conf] [line=18]
Nov 21 17:05:22 xinetd[1528]: xinetd Version 2.3.14 started with no options compiled in.
Nov 21 17:05:22 xinetd[1528]: Started working: 1 available service
Nov 21 17:05:22 rc.unslung: restart service /opt/etc/init.d/S70mysqld
Nov 21 17:05:22 proftpd[1540]: MyRouterName - Failed binding to 0.0.0.0, port 21: Address already in use
Nov 21 17:05:22 proftpd[1540]: MyRouterName - Check the ServerType directive to ensure you are configured correctly.
Nov 21 17:05:28 rc.unslung: restart service /opt/etc/init.d/S80busybox_httpd
Nov 21 17:05:30 rc.unslung: restart service /opt/etc/init.d/S80lighttpd
Nov 21 17:05:31 rc.unslung: restart service /opt/etc/init.d/S80samba

I've highlighted the lines which I'm not sure are ok. What do you think?

Third. I guess you have a "root" and "admin" users on your ASUS. I just have one user with a different name. I couldn't connect to SWAT WebUI until I changed user names to myname in /opt/etc/xinetd.d/ proftpd and swat.

Thanks again! I'll be trying to configure transmission now. It looks like it has to be started manually, right?

p.s. I'm new to all this and not a native English speaker.

raas
21-11-2008, 16:11
Hi TSanchess,

As far ar I know nas.lan.conf and nas.wan.conf are not related to the name of the device (hostname). I think this is coincidence.

the errors when you execute /opt/etc/init.d/rc.unslung restart are probably due to the fact that the services (or the files to (re)start services) don't have the proper restart options set. I must admit, I never looked into this.

I only have an admin user on the system, which during setup of mysql is changed in root, and then back again. (the root user is an mysql user, which is not an os-user).
I've never changed the name admin to anything else, so I don't know if swat and proftp needed reconfiguring.

Transmission should start on itself once the router is started / (re)booted)

I hope you enjoy it !

Greetz,

Raas

BrandonSk
08-12-2008, 17:58
Dear all,
contents:
1) Thank you,
2) Samba solution,
3) Proftpd problem.

1) Let me start with big thank you to Raas and Wengi for their tutorials. All my experience with linux so far was 1 Suse installation (graphical) which lasted for 1 day and that was it. Yet, using your tutorials I was able to get my Asus up and running on the first try! Great job guys!

2) I have noticed around this forum (and on the web too) that many people tend to have a login issue to Samba from XP as Guests, especially when XP is part of a domain (AD) and often no solution is given. Well, solution which seems to work everywhere (where I have tested) is simple:
Through web interface (192.168.1.1:901) go to Global -> basic view. Then leave everything as configured by the tutorial (security=SHARE), and in addition change these settings: NullPasswords = Yes [that should help regular XP/Vista installations]; Encrypt passwords = Yes; WINS support = Yes [that should be for ok for xp/Vistas which are part of a domain].

3) Proftpd is a nightmare for me and I am possibly doing something really really wrong or other people just gave up on it and use something else -> because I was not able to find solution anywhere... I even followed the original documentation but still no luck. Well, to the point then:
[insert => maybe if someone writes a complete Howto for others to use would be also helpful]

I can start Proftpd -> no problem (I start it manually). I have it have specified this folder as "ftp root": /mnt/public/FTP
I can login into FTP as anonymous (if that section is present in conf file).
I can login into FTP as users when I comment out the anonymous section, but users must be defined in passwd file using adduser.

Problems:
1) Cannot write to any folder under FTP! (I have an Upload folder there) I used the LIMIT as in the examples of conf files to allow access there. I even disabled the Limit not to write to the whole FTP but still can't upload to any directory. (could it be access rights in linux?)

2) Users -> When I use users, they can browse the whole disk (e.g. they can get "above" FTP -> to public -> mnt -> ...)
I would prefer not tu use passwd file but to create an AuthUserFile -> I tried but apparently proftpd ignores all users in it even when specified in the conf file.

3) What I ultimately want is a conf file which will allow:
a) no anonymous access FTP
b) read virtual users from authusers file (not passwd)
c) each user to have access to either
/mnt/public/FTP
or /mnt/public/FTP2
but only to 1 of these. (I do not want these to be different FTP servers, only different folders).

And hopefully such a conf file that even I will be able to do the updates to it in the future.

Now if you want, go ahead and post here the complete proftpd.conf file. But I'd rather have a good understanding of what and how to do. Also other people might benefit from it.

Thanks in advance.
Cheers,
B.

Tamadite
08-12-2008, 21:14
Dear all,
contents:
1) Thank you,
2) Samba solution,
3) Proftpd problem.


Regarding point (3), have you taken a look here (http://www.wl500g.info/showthread.php?t=14745)?

BrandonSk
08-12-2008, 21:29
Regarding point (3), have you taken a look here (http://www.wl500g.info/showthread.php?t=14745)?

Hi.
Yes I have. This however does not answer all of my problems. Firstly I would rather not use passwd for user accounts; secondly there is no clear way how to split users between "FTP1" and "FTP2" (see my example above); and lastly, don't know if it would solve my write restriction problem.

Once more - I tried several pre-designed conf files and I get get the ftp to accept connections and login. But that is just about where I get :(

Thanks.
B.

herbalizer
03-01-2009, 02:33
hi alias88 (lee ;) )

hmm... seems that the webserver isn't running.
could you describe the error (404, not found, or something else?)
(is samba running?, can you access the harddrive from your pc?)

check with 'df' if your disk/partitions are mounted.

check with 'top' or 'ps' or 'ps axf' which programs are running, there should be a process like lighttpd (the webserver). if there's none, check if your services are starting up when rebooted


Execute:

Code:

nano /usr/local/sbin/post-mount

Example: (last line has been decommented -> # removed, so the script does execute)

Code:

#! /bin/sh
/opt/etc/init.d/rc.unslung start

save to flash


flashfs save && flashfs commit && flashfs enable && reboot

Good luck!

I have followed all the instructions line by line...

I canot access the address 10.69.226.13:8082 ( i have changed the default address 192.168.1.1 with the 10.69.226.13). It pops out a message:error loading page. But when i try 10.69.226.13 (without :8082) it brings the default oleg firmware web page.

Partitions are mounted correctly.

samba is not working.
top and ps commands dont show a line with lighttpd.

Any ideas... what is wrong?

What can i do?

raas
03-01-2009, 14:53
Hi,

this is prob. because you've changed your ip address.
Samba only accepts clients from 192.168.1.x range
and lighttpd relies on a php parser which is on 192.168.1.1

for lighttpd do:


nano /opt/etc/lighttpd/lighttpd.conf
and look up the address: 192.168.1.1 and change to yours (10.69.226.13). (it's in the fastcgi.server)

for samba do:


nano /opt/etc/samba/smb.conf
and add the following to global:


[global]

hosts allow = 10.69.226.

or set with http://10.69.226.13:901 and use the original login/password you've set in the asus original config pages.

HTH.

herbalizer
04-01-2009, 13:09
Hi,

this is prob. because you've changed your ip address.
Samba only accepts clients from 192.168.1.x range
and lighttpd relies on a php parser which is on 192.168.1.1

for lighttpd do:


nano /opt/etc/lighttpd/lighttpd.conf
and look up the address: 192.168.1.1 and change to yours (10.69.226.13). (it's in the fastcgi.server)

for samba do:


nano /opt/etc/samba/smb.conf
and add the following to global:


[global]

hosts allow = 10.69.226.

or set with http://10.69.226.13:901 and use the original login/password you've set in the asus original config pages.

HTH.

Rass thank you for your prompt response. All those dummies like my self, must really tire you.

the problem although still exists...

I did what you told me to do, but nothing changed. I still cant get the 10.69.226.13:8082 to apear.

I also changed back the original address to 192.168.1.1 and tried to access the 192.168.1.1:8082. Still nothing! The address 192.168.1.1 works with default oleg webpage, but when i put the 8082 port i get the error page...

What could be wrong?

Any ideas are welcomed... because i really need to download torrents directly from the usb disk.

Is there a run around for that, because samba and ftp works great with default oleg software?


Basically what i m also asking is, if there is a way to download torrents to the usb hdd (that is attached to the asus wl500gpv2) with default oleg firmware!

Also i cant access the 10.69.226.13:901 to configure samba...

Thanks in advance and i hope that there are not many question to be answered...

raas
04-01-2009, 14:41
Hi Herbalizer..

Not tiring at all.. I most of the time feel like aa n00b myself, so that's no problem.

Have you restarted the asus after you've changed the config files?
In order to work properly, 'services' have to be (re)loaded with new config.

If all you want to do is have oleg's firmware and download torrents, I strongly suggest WENGI's setup how-to.. this includes stuff for downloading torrents.

http://www.wl500g.info/showthread.php?t=10307

HTH

herbalizer
04-01-2009, 15:22
Do i need to use the 1.9.2.7.9 in order for this tutorial to work?

Will that tutorial work with the 1.9.2.7.10 firmware?

If not, where do i find the 1.9.2.7.9 firmware?

again thanks...

raas
04-01-2009, 15:27
Hi,

the tut. will work with the .10 version.

herbalizer
05-01-2009, 22:22
Hello again...

I see that you say to download the mnt.tar.gz to the /opt folder and the opt.tar.gz to the/mnt folder. Is that right, or is it the other way around?

That is for the head start 2 tutorial... and not for Wengi's.

raas
06-01-2009, 08:41
Hi,

yes, that is right.

opt.tar.gz is downloaded/stored in /mnt because it is extracted to /opt
mnt.tar.gz is downloaded/stored in /opt becasue it is extracted to /mnt

otherwise the packages would extract to the place where they are stored, and I don't know if that works 100%. That's because.

so, from the package on /mnt extract everyting to /opt and vice versa.

it'll work if you follow the directions.

herbalizer
06-01-2009, 20:07
Rass THANK YOU for all the advises you have given me.

Finally i got (web) transmission up and running at full speed:cool:
I followed the wengi tutorial and i have samba, ftp and torrents up and running.

Since you have been so nice to me i decided to give something back. I 'm going to translate Wengi's tutorial and your tutorial (head start 2) in to Greek. Who knows... maybe there will be a Greek subforum for this excellent forum one day.

I also would like (i must) to thank Wengi!

Again thank you guys. You will soon receive a pm from me;)

raas
06-01-2009, 20:09
Hi,

Good to hear it's working!
Enjoy your Asus, and additions to the forum are always welcome.

colas
17-01-2009, 22:31
edit:
now it works, i don't know why, but it works..

I have another question, where can I change IP address 192.168.1.1 to my real in AmpJuke ?



orig: I have installed on my router this great "all in one" package, but in ados only 1 download is active, others are "on queue". In preferences I have changed simultaneous files, apply settings but still only one file is downloading. and after the download is finished, other "on queue" file doesn't start..

anyone have an idea what is wrong?

raas
19-01-2009, 19:11
Hi,

Since the files have been downloaded 4700+ times :), bandwith became an issue with my free provider:mad:. Besides that, the website administrator offered me my own place to host my files on this great forum a while a go.:cool:

you will find it here: http://files.wl500g.info/asus/custom/raas/
the v10 folder you will see is in line with oleg's v.10 firmware.
In this folder the HeadStart images are stored.

Besides this I've updated the links in the tutorial so the installation should go faster because this server has way more bandwith. and has less downtime.

Only thing about this method is that I don't have any statistics anymore so I can't see the usage of HeadStart. This doesn't matter since I now know that people (and quite a few more) are using it. which is nice, I think.:confused:

kaizen
24-01-2009, 12:17
cd /mnt
wget files.wl500g.info/asus/custom/raas/v10/opt.tar.gz


THX raas. Great work

I've just installed this package.

I have three questions:

1. After installation ipgk upgrade upgraded many packages. Is there any newer package? Or can you prepare? I have pretty clean installation, so it is no problem for me to make clean upgrade - but I need

2. How to integrate in CMS new transmission (http://www.wl500g.info/showthread.php?t=17957) configured according to Wengi's tutorial (http://www.wl500g.info/showpost.php?p=60933&postcount=4)?

3. Is this possible to configure WOL for awakening a few computers?

raas
24-01-2009, 14:57
Hi Kaizen ,

Glad you like it.
Answers to your questions:

1)
I want to do this, but it takes quite some time, which I don't have at the moment. (still interfacing with my velleman k8055 board), if this is finished I can think of HeadStart III, which will host new versions and maybe different solutions)

2)
You want your torrent-control page available to the public ??
configure lighttpd.conf to do so.

3)
Use the wol.cgi page as a source, copy it a few times like WOLkitchen.cgi, WOLgarage.cgi, WOLbasement.cgi and edit them with your MAC-addresses of the different machines your want. Then it just something like remembering wich page for which computer.

HTH

kaizen
24-01-2009, 17:26
Thanks.

ad. 1.
Looking forward for HS III :)

ad. 2
I think transmission doesn't use lighttpd any more (after 'killall lighttpd' I can still access transmission page). I want to go to http://192.168.1.1:PORT NUMBER/transmission/web/ by clicking Transmission in CMS. Port number is set in Transmission starting script and is different than lighttpd.

I want to access from WAN using build-in new authorization and "rpc-whitelist" functionality - and it works. I'm talking about this (http://www.wl500g.info/showthread.php?t=17957) version (I'm going to correct link in previous post).

Ad. 3
Wow. It's so easy :)

raas
25-01-2009, 09:13
Hi Kaizen,


1) Me too ! I'm glad that people like and use it.

2) So you basically want to jump from a page on the CMS (displayed in your browser) to the transmission page (which is on a diff. webserver,right, but on the same machine).
How about editing text in the CMS system (login, and edit text) and put a link on a page somewhere which links to http://192.168.1.1:PORT.
something like this.

<a href="http://192.168.1.1:PORT">Click here for transmission</a> where you change the port and link in which you want, and change the text in what you want.

3) Sure.. I'm dealing with the same problem. wanting to wake up more than one machine. I use this approach.. would be nicer though if I had a pull-down menu to select the machine from.. .... .... Next time.. in Headstart III

kaizen
25-01-2009, 12:50
<a href="http://192.168.1.1:PORT">Click here for transmission</a> where you change the port and link in which you want, and change the text in what you want.


THX
After editing /mnt/cms/content/content.htm it works :)

mandgeo
08-02-2009, 08:45
I've installed everything.
Samba works like a charm.
Proftpd hangs on reboot (not such a big problem).
I don't like transmission. Rtorrent works better.
Lighttpd start, the server works, but not with PHP.

This is the errors from the log:


2009-02-08 10:21:55: (log.c.97) server started
2009-02-08 10:29:18: (mod_fastcgi.c.1768) connect failed: Connection refused on unix:/tmp/php-fastcgi.socket-0
2009-02-08 10:29:18: (mod_fastcgi.c.2956) backend died; we'll disable it for 5 seconds and send the request to another backend instead: reconnects: 0 load: 1
2009-02-08 10:29:18: (mod_fastcgi.c.2722) child signaled: 11
2009-02-08 10:29:19: (mod_fastcgi.c.2494) unexpected end-of-file (perhaps the fastcgi process died): pid: 479 socket: unix:/tmp/php-fastcgi.socket-0
2009-02-08 10:29:19: (mod_fastcgi.c.3282) child signaled: 11
2009-02-08 10:29:19: (mod_fastcgi.c.1051) the fastcgi-backend /opt/bin/php-fcgi failed to start:
2009-02-08 10:29:19: (mod_fastcgi.c.1065) terminated by signal: 11
2009-02-08 10:29:19: (mod_fastcgi.c.1070) to be exact: it segfaulted, crashed, died, ... you get the idea.
2009-02-08 10:29:19: (mod_fastcgi.c.1072) If this is PHP, try removing the bytecode caches for now and try again.
2009-02-08 10:29:19: (mod_fastcgi.c.3302) respawning failed, will retry later
2009-02-08 10:29:19: (mod_fastcgi.c.3325) response not received, request sent: 764 on socket: unix:/tmp/php-fastcgi.socket-0 for /cms/index.php , closing connection


Does someone know how to solve this problem. Thanks

(I'm almost a noob in linux, but i learn from experience).

raas
08-02-2009, 18:31
Hi mandgeo,

are you sure your php isn't working? check the phpmyadmin page, link provided on the headstart homepage. phpmyadmin is a php application,
regardless of the error.. php should work.

mandgeo
11-02-2009, 20:33
PHP and CGI was not working.

I've gave up the idea of installing the opt and mnt from you raas. It was too much, and i like rtorrent. I had to many problems.

I made a clean Wengi install. Rtorrent works fine, much better than transmission. vsftpd works, but i have some trouble making it work like before (it doesn't like the password file).
And php/cgi stil doesn't work. I think i never saw them working on my router.

Anyway...i'm happy that torrents are flowing.

raas
12-02-2009, 10:05
Hi Mandgeo,

whatever works best for you.
(however, php and cgi (should) work fine in the basic install, if you don't change your ip address, if you do, the webserver will look at a parser on an ip address which isn't there.. this is to be configured in lighttpd.conf, if you run standard ip addres (192.168.1.1) then it should work.)

raas

mandgeo
12-02-2009, 16:11
router's ip is 192.168.1.1.

the closer i got to php/cgi was something like "php-fcgi <defunct>" (if i remember right) in ps axf.

raas
12-02-2009, 17:56
hmm..
you've obviously not changed the ip.
I have to check the image (but can't do it right now... right in the middle of interfacing with I/O ports.. will ask a friend to check the image. )

rod178
06-04-2009, 06:52
Raas

Firstly thanks for a great package in that of Headstart 2. Made my use of Olegs great firmware even more productive. Follows are some comments and questions.

INSTALLATION: I was surprised that there were no significant problems. The only exception was in Step 3.
“wget files.wl500g.......” required change to
“wget http://files.wl500g ...... “ simple!!

I am especially impressed with how well wshaper prioritises voip. However I need to tweak wshaper to provide priority to web browsing over torrents.

QUESTIONS:
Transmission:
Update is not creating a graphical image. Do I need to install rrdtool or gnuplot ?

Qos: Are there any packages available that provide the same sort of qos graphis as Tomato?

Home Automation: Are there any home Automation packages available or in development? There are ports available with a Tx line, an Rx line, a 3.3-V line, and a GND line. An unused port could be converted from 3.3v to 5v for normal RS232 signals. The other option would be to use a USB converter cable that supports the Usbserial driver.

Nice:
I’ve considering using Nice to prioritise traffic. The aim is -
1) Voip
2) Samba
3) Gmail (Vista)
4) Web Browsing (Vista)
5) uTorrent (Vista)
6) Transmission (do not have enough functionality to use alone)
Is this possible using Nice? If I give transmission a niceness of 19 does this result in a niceness of other apps that cannot be given a niceness, including Vista web browsing, of 0? ie 0 being a higher priority. Is it possible to give a Windows app a niceness. eg uTorrent 10, Gmail -10

Wondershaper:
Will wshaper always prioritise voip even if I use Nice ?
Is it possible to prioritise traffic via ports (port ranges even better) with wshaper startup commands?
Wspaper is in the kernel. How to hack? Would require a recompile?
Could you suggest a wshaper tutorial for Oleg ?

thanks
Rod

PS I'm running a WL500W Oleg -10

raas
06-04-2009, 08:18
Raas

Firstly thanks for a great package in that of Headstart 2. Made my use of Olegs great firmware even more productive.

Thanks, glad you like it.



...I was surprised that there were no significant problems. The only exception was in Step 3.
“wget files.wl500g.......” required change to
“wget http://files.wl500g ...... “ simple!!


Well, sometimes it works without the http:// sometimes it doesn't.
However. I changed the tutorial, just to be sure, no one is having the same problems again. Thanks for the heads-up.



...Transmission:
Update is not creating a graphical image. Do I need to install rrdtool or gnuplot ?


hmmm. I'm not that much of a torrent-guy, so I don't really use it. From what I read from the board there are better torrent-clients available, you might want to try them.



Qos: Are there any packages available that provide the same sort of qos graphis as Tomato?


I've never used tomato, so I can't anwer on that.



...Home Automation: Are there any home Automation packages available or in development? There are ports available with a Tx line, an Rx line, a 3.3-V line, and a GND line. An unused port could be converted from 3.3v to 5v for normal RS232 signals. The other option would be to use a USB converter cable that supports the Usbserial driver.


Doing some HA myself with a velleman k8055 board connected to the Asus.
For now, I'm only measuring (consumed electricity and gas, room-temperatures), but at this point I'm not 'controlling' any. this is for the future. Have a look at:

http://www.wl500g.info/showthread.php?p=133123 and http://www.wl500g.info/showthread.php?t=1598 (there are 2 libraries in this post which can control the k8055)





Nice:
I’ve considering using Nice to prioritise traffic. The aim is -
1) Voip
2) Samba
3) Gmail (Vista)
4) Web Browsing (Vista)
5) uTorrent (Vista)
6) Transmission (do not have enough functionality to use alone)
Is this possible using Nice? If I give transmission a niceness of 19 does this result in a niceness of other apps that cannot be given a niceness, including Vista web browsing, of 0? ie 0 being a higher priority. Is it possible to give a Windows app a niceness. eg uTorrent 10, Gmail -10

Wondershaper:
Will wshaper always prioritise voip even if I use Nice ?
Is it possible to prioritise traffic via ports (port ranges even better) with wshaper startup commands?
Wspaper is in the kernel. How to hack? Would require a recompile?
Could you suggest a wshaper tutorial for Oleg ?

thanks
Rod

PS I'm running a WL500W Oleg -10



The only thing that is niced is HellaNZB. I guess you coult NICE some more.
Don't know about your questions about Wondershaper, I'm not using.
I suppose you also use the Asus a router, while I'm only using it as a lan-client, I'm not experienced in setting up the asus as a router and configure traffic.

HTH

RICH4RD
19-04-2009, 04:55
Raas,

Thanks for HeadStart II! I've been enjoying it now for over 4 months.

Tonight I finally figured out a way to get rid of the following HellaNZB error message:
Warning: disk_free_space() [function.disk-free-space]: No such file or directory in /mnt/protected/WebUI/zussaweb/functions.php on line 4

On line 4 of the functions.php located in /mnt/protected/WebUI/zussaweb
Change:
return (round (disk_free_space(disk)/1024/1024,2));
To:
return (round (disk_free_space('/mnt')/1024/1024,2));

At least that worked for me. Hopefully someone finds this useful.
Again much thanks to you and all who contribute to wl500g development and wl500g.info.

raas
19-04-2009, 13:32
Hi Rich4rd,

I'm glad that you like it.
You've made a nice contribution to this topic. If there's a headstart III (time) I will def. to this little trick.

raas

RICH4RD
24-04-2009, 08:27
Hi Raas,

While exploring why the Upload NZB functionality didn't seem to work, I think I may have found the root of some of the minor HellaNZB issues. It appears the /mnt/protected/WebUI/zussaweb/settings.php file needs a couple small changes.

On lines 8 & 9, instead of:
$disk = '/mnt/HellaNZB/usenet';
$download_nzb_path = '/mnt/HellaNZB/nzb/daemon.queue';

I believe they should be:
$disk = '/mnt/protected/Downloaders/HellaNZB/usenet';
$download_nzb_path = '/mnt/protected/Downloaders/HellaNZB/nzb/daemon.queue';

After those changes, lines 3 & 4 of the functions.php can be changed to:

function freediskspace($disk) {
return (round (disk_free_space($disk)/1024/1024,2));

HTH.

embee
03-12-2009, 22:42
Hi Raas,

first of all.. Thank you very much for the great work on the headstart.

I have been working with it for a while now and i thought it might be good to upgrade the packages to the newest versions, so i gave the command:

ipkg update
ipkg upgrade -force-defaults

after that I couldn't start lighttpd any more..

samba is still working but i can't control transmission anymore..

Do you have an idea how I can fix this?

tnx in advance

wpte
03-12-2009, 23:34
after that I couldn't start lighttpd any more..

samba is still working but i can't control transmission anymore..

Do you have an idea how I can fix this?

tnx in advance

look at my post:
http://wl500g.info/showpost.php?p=166318&postcount=38
they left out e-poll in newer releases, so you need to select poll:)

embee
04-12-2009, 16:39
Thank you very much...

after editing the .conf file I was able to do everything again :D

Arbadelli
06-01-2010, 23:16
Hey Raas,

i am working at your tut now, i have done the tut of Wengi, for a year ago, but now i want have that PHP server inclusive MySQL database.

I am reading your tut, but my 1tb hdd is formatting :mad: takes a while, i knew that..

But when i reading you are talking about:


Step 1.
I couldn't have done a better job than WENGI. (Thanks man!)
Follow step 1 to 4b exactly from the excellent tutorial made by WENGI (found here: http://www.wl500g.info/showthread.php?t=10307). If you read Step5: IPKG, stop, and continue this tutorial.


( i can remember in the past there was a 4a and 4b part, but now:
there is no 4a and 4b.. only part 4 ..

Part 5 is
5. Startup-scripts

and

Part 6 is
6. IPKG

I think it means i have to do the Wengi tut till Part 6, so inclusive 5...

Do i have right? or am I wrong?

Thanks in advance:)

wpte
06-01-2010, 23:41
yes the how-to seems to have split 4a and 4b into 4 and 5.
so you should stop at part 6, since this headstart will give you ipkg installation:p

Arbadelli
07-01-2010, 01:13
Thanks for the answer! i was going on with 5, and after 5 i go to this tut..

But i have a problem now.

When I got to check http://192.168.1.1:8082

i got the message:

1045: Access denied for user 'root'@'localhost' (using password: YES)
Unable to connect to the DATABASE server.
Please check dbhost, dbuser, and dbpass variables in cp_config.php

do you know how i can fix that?

Now i have to go to sleep, but tomorrow i will go on, it would be in the evening.

thanks for your help!!

raas
07-01-2010, 20:02
Hi,

hmmmm.... I never knew that wengi had changed his tut so my hint to his steps are a bit messed up.
wpte is right, you should have completed until and including step 5 now.

since headstart replaces the opt and mnt directories, you should stop at step 6.

now, from what I read in step 5, some files on opt are changed or created by wengi´s tutorial. could be that it conflicts with headstart. I haven´t looked into that yet, as I just discover this occurs.

in your ssh session, check if the msyql database engine is running by looking for the process.

also. check if you can log into mysql through ssh (code to do so is in this tut. at the change mysql password section.)


HTH

gotta go.

Arbadelli
20-01-2010, 00:15
Hello all,

i've done it, again and again, but it is working NOW!!

Great...

but there is a little ( i guess little ) problem

i want use the program TCPDF on my WL500gp

so, i copied all data,, but i when i want to start, i get the message:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 6291456 bytes) in /mnt/prive/tcpdf/unicode_data.php on line 16485

now i've looked around and i read my php has got to less memory, i can change my php.ini file..

But where can i find that file, or in which map, i have to put in this file ?

Thanks in Advance!!


---------------------------------

Other problem i have with Transmission,

in past i used the tut from Wengi, ( only for the Transmission ) and everything worked fine, but now my Transmission didn't work fine.

He has downloaded some torrents, but it was,, with the Wengi tut,, he started immidiately with uploading this torrent, but now he doesn't upload anything.

also strange is he doesn't show information about how many percent he has downloaded, or uploaded.

Also he doesn't give the date / time on my screen when the download was completed.

This is all i get on my screen, when i go to Transmission:

see attachment 1

all torrents are just in map Works, ( where they have to download )
But the site where i download from, gives i have downloaded it for 100%

How's that possible, or where did I make a mistake

Thanks in Advance!

raas
20-01-2010, 11:32
php.ini is found in /opt/etc/php.ini


try to update transmission, or use other torrent-client, there are a couple of how-to's on this forum.

cristian.ene
06-02-2010, 11:11
Hey guys,

I have a problem :)

when i do the following,

#! /bin/sh
/Opt/etc/init.d/rc.unslung start
The response is: "pattern not found"


Well.. shall i wait for detailled suggestions as for a newbie that i am? :)

raas
08-02-2010, 09:09
hi,

check the contents of the file, and compare it to the file in wengi's tutorial.
my best guess is that's the problem.

HTH.

sarlacc
08-02-2010, 10:33
Maybe try /opt/etc/... (small 'o')

raas
08-02-2010, 20:00
Maybe try /opt/etc/... (small 'o')

Dude!, you must have 20-20 vision!
I didn't see that..
but since *nix has 'case-sensitivity' in file names you're right !!!

Arbadelli
08-02-2010, 22:49
try to update transmission, or use other torrent-client, there are a couple of how-to's on this forum.

I've updated transmission, without results, i cannot see the status.

Also, when my torrents are completed downloaded, Transmission, put them into Suspended, but i want he put them in Seeding.

In past everything worked fine, but when i followed Headstart tut, he comes with this problem. And the problem that i cannot see anything under the STATUS ( see my previous post incl the image )

Anyone knows what goes wrong?

Thanks in advance

raas
10-02-2010, 15:24
Hi arbadelli,

did you only upgrade transmission or have you deinstalled it, and after that did a reinstall of transmission?
if not, try this.. remove transmission (ipkg remove transmission ????)
and after that. reinstall (ipkg install transmission ????)

HTH

bebef_1987
11-02-2010, 12:38
hello
can u help me change the root dir on ftp?

Arbadelli
14-02-2010, 15:34
Hi arbadelli,

did you only upgrade transmission or have you deinstalled it, and after that did a reinstall of transmission?
if not, try this.. remove transmission (ipkg remove transmission ????)
and after that. reinstall (ipkg install transmission ????)

HTH


I only upgraded it, but now i have removed transmission and installed it, but everything looked the same.

Also, my torrents will be downloaded in source.. when i pushed them, they came into my WORK directory, and also if they finnished, they will stay in my WORK directory. They won't get to my Target dir or Done directory.

Also in my transmission screen, i only see: Active ( torrents ) and Suspended ( torrents )

lale
13-09-2010, 17:23
I`ve just made a fresh instal of HeadStart image.
Could you tell me how to do ipkg update & ipkg upgrade, but that everything remains functional, since it wasn`t when I tried last time.

Also, I would like to have new transmission interface, so I`ll be grateful for some help.

caksi
15-01-2011, 17:46
Hi.
I've been using HeadStart II for several years now, everything ok.
But today while streaming a tvshow I just stopped the player (a good old xbox with xbmc) and the samba link just went away.
After rebooting, ssh is gone as every service as in HeadStart II is gone too.
Telnet, web interface and basic functionality are up and running.
From web interface, system command 'df' returns only root partition:

Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3072 3072 0 100% /
My guess is that, if the hardware is not broken, I will have to install the whole HeadStartII again.
Does it sound coherent at all?
Any tip on how to proceed?
thanks for reading.

ryzhov_al
15-01-2011, 19:09
Any tip on how to proceed?
USB HDD or flash drive is not mounted. See syslog for details or post it here.

caksi
15-01-2011, 20:37
USB HDD or flash drive is not mounted. See syslog for details or post it here.

I have looked at the log but have not seen any clue, or don't know what to look for.

Log attached.

thanks again,

raas
16-01-2011, 09:27
ryzhov is right.. usb/flash drive isn't mounted.

-checked your connections (cables, connectors)?
-if hdd... does it spin up?

ssh and all isn't running because the asus can't find the software located in /opt

login wiht telnet (port 23) and see if there's anything listed in


/dev/discs/

there should be a disc0 if the asus has detected the harddisk

caksi
16-01-2011, 12:19
there should be a disc0 if the asus has detected the harddisk

ok there was no /dev/discs.

So I have powered down all the disks. Disconnected all disks except the one that usually was disc0. Waited some time. Rebooted, and /dev/disc0 came to live.
The last change I remember before losing disc0 was that external case of disk1 was broken and I had replaced the case with another case that has a USB hub.
Anyway, I rebooted the router a couple of times and it worked with all disks connected.
It may be that the order of devices appearing at /dev/discs could be different at every boot? Does it depend on the hub and if it has every port with a connected device or no device connected at all?
Any case, thank you everyone for your time and advice. It's working now and I'm happy with it.

ryzhov_al
17-01-2011, 06:34
So I have powered down all the disks. Disconnected all disks except the one that usually was disc0. Waited some time. Rebooted, and /dev/disc0 came to live.The same story. One of my external HDD cases wont start after reboot. The cheapest one:) Helps same solution: turning off, and then on.


It may be that the order of devices appearing at /dev/discs could be different at every boot? Does it depend on the hub and if it has every port with a connected device or no device connected at all?
Anyway, first avaliable partition wil be mounted to /tmp/harddisk at startup. Its firmware feature.

Ehsan
18-01-2011, 13:16
First of all thank you for an excellent headstart compilation which sure makes it easier for the rest of us.

I have gone through the guide and done as prescribed. Everything works great except 2 things:

1) My printer (Brothers HL-2035) doesn't work. How do I activate it? It has worked great with the standard Asus firmware before I installed the HeadStart.

2) Samba isn't working on my Mac. Before (on the standard Asus firmware) I could access my external HD using the Mac, but this is not possible anymore. Why?

xplay
09-01-2012, 08:49
excellent headstart compilation !
I done a fresh install an every think works good with one exception :

After i done all instalation i was able to connect to my headstart homepage : http://192.168.1.1:8082

But after i made an ipk update / ipk upgrade apears the problem !!:mad:


I cant access headstart homepage : http://192.168.1.1:8082

with df i see that partitions are mounted correctly !
with ps axf i see that server lighttpd are running !

The script post mount /usr/local/sbin/post-mount is correct :


#! /bin/sh
/opt/etc/init.d/rc.unslung start

I can access Samba on http://192.168.1.1:901/ so samba is running and works ok !

The only page that i cannot access is headstart homepage http://192.168.1.1:8082 !!!

any suggestions pls ?

xplay
11-01-2012, 08:19
Ok, i made a fresh install ... again ... and :

headstartd page works default :
samba work
all services working

BUT... always is a "BUT"

afer i made update & upgrade to ipkg ... all services crushed..

headstart - connection refused
samba - connection refused

from this point ...all thing are real annoying..

I think in repository they are many new version :samba2,bussybox,lightttpd..etc etc ... after upgrade all of them crushed !

maybe is time that someone should make a new HOW TO - step by step for all installation.. here are many "how to" and avery one is different !