Currently there is no proper guide for openvpn, but maybe it's time to write one:p
this one comes pretty close though: http://wlhdd.co.uk/wiki/OpenVPN :)
Printable View
Currently there is no proper guide for openvpn, but maybe it's time to write one:p
this one comes pretty close though: http://wlhdd.co.uk/wiki/OpenVPN :)
I guess you still have to create the startup scripts
Or are they also included in the "enthusiast firmware"?Code:mkdir -p /usr/local/sbin/
touch /usr/local/sbin/pre-boot
touch /usr/local/sbin/post-boot
touch /usr/local/sbin/post-firewall
touch /usr/local/sbin/post-mount
touch /usr/local/sbin/pre-mount
touch /usr/local/sbin/pre-shutdown
chmod +x /usr/local/sbin/*
You are right.Better now.Quote:
Using the new firmware you only have to generate the keys and startup scripts.
wengi
Hi tried to do some ipkg installs but it fails due to server returning file not found (404).
Then tried to download manually some pkg's from http://ipkg.nslu2-linux.org, but it gives errors. Can browse to the stable feed but, trying to download gives an 404?
Anyone experiencing the same?
Update: found nslu2-linux mirror http://nslu2-linux.dyoung-mirror.net somewhere in Russian discussion. ipkg.nslu2-linux.org oleg stable is broken... or temporarily unavailable. Have no clue. So to work around update ipkg.conf with the mirror and ipkg functionality works again.
Not an idea to have a general thread to report such issues? I had no clue where to put this... and with a bit of luck I found something in the Russian section.
Ah well. Cheers.
deleted because I figured the answer
In howto:
Suggestion:Code:mke2fs -j /dev/discs/disc0/part2
mke2fs -j /dev/discs/disc0/part3
Maximizing capacity by overruling the standard 5% reserved blocks.Code:mke2fs -j -m 0 /dev/discs/disc0/part2
mke2fs -j -m 0 /dev/discs/disc0/part3
Can save a lot if you have a big partition.
tune2fs can of course be used afterwards for all except /opt.
Fyi e2fsprogs 1.41.9-1 seems to look for a /etc/mtab and is not looking to /proc/mounts (shouldn't it?)
So had to cat /proc/mounts to /dev/mtab to convince tune2fs it is unmounted.
Code:[admin@WL500W root]$ df /tmp/scratch
Filesystem Size Used Avail Use% Mounted on
/dev/discs/disc1/part3
54G 435M 51G 1% /tmp/mnt/disc1_3
[admin@WL500W root]$ umount /tmp/scratch
[admin@WL500W root]$ tune2fs -m 0 /dev/discs/disc1/part3
tune2fs 1.41.9 (22-Aug-2009)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing
mtab file while determining whether /dev/discs/disc1/part3 is mounted.
[admin@WL500W root]$ cat /proc/mounts > /etc/mtab
[admin@WL500W root]$ tune2fs -m 0 /dev/discs/disc1/part3
tune2fs 1.41.9 (22-Aug-2009)
Setting reserved blocks percentage to 0% (0 blocks)
[admin@WL500W root]$ mount /tmp/scratch
[admin@WL500W root]$ df /tmp/scratch
Filesystem Size Used Avail Use% Mounted on
/dev/discs/disc1/part3
54G 435M 54G 1% /tmp/mnt/disc1_3
Hi postbusjj,
thanks for your suggestion.
I am not an expert to file systems.
Is there any negative effect on using the reserved blocks?
I think we want some reserved blocks for system (/opt) partitions, but not for the data partition.Quote:
Originally Posted by MANPage
As a result of this i would use mke2fs -j -m 0 /dev/discs/disc0/part3 for the data partition.
Am i thinking right?
wengi
Yes, you do. I thought about that too.
5% of /opt is only 49.8M. That's no loss.. and indeed it is preventing a crash by mistakenly filling up /opt (can happen, nobody is perfect... been there)
50GB for a 1TB drive is of course a drama and it is not needed for data.
Good!
I updated the HowTo.
To all who want some more space free:
As you see:Code:[admin@blechbuechse root]$ ipkg install e2fslibs e2fsprogs
[admin@blechbuechse root]$ df -h
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 962M 485M 428M 54% /opt
/dev/discs/disc0/part3 72G 55G 14G 81% /tmp/mnt/disc0_3
[admin@blechbuechse root]$ umount /tmp/mnt/disc0_3/ # or /tmp/harddisk/
[admin@blechbuechse root]$ cat /proc/mounts > /etc/mtab
[admin@blechbuechse root]$ tune2fs -m 0 /dev/discs/disc0/part3
tune2fs 1.41.9 (22-Aug-2009)
Setting reserved blocks percentage to 0% (0 blocks)
[admin@blechbuechse root]$ mount /tmp/mnt/disc0_3/ # or /tmp/harddisk/
[admin@blechbuechse root]$ df -h
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 962M 485M 428M 54% /opt
/dev/discs/disc0/part3 72G 55G 18G 77% /tmp/mnt/disc0_3
BEFORE: 14GB free
AFTER: 18GB free
Thanks to postbusjj for this great tip :D:cool:
wengi
PS: Please pay attention to disc0_3 or disc1_3.
Please advise the latest version of Oleg's Firmware that supports Samba under Windows 7. Also -
- are there any advantages installing the latest version of ipkg Samba.
- advantages flashing post -10 version of Oleg. Currently I'm running -10 on a WL500W
thanks
can i downgrade transmission?
using 2.00-1 and its slow.
how do i downgrade it to 1.93?
Hi,
thanks for the hint.
Corrected it ;)
wengi
Sorry for being late.
wengiCode:ipkg install e2fslibs
ipkg install e2fsprogs
If the IPKG samba is installed the smb.conf is located in /opt/etc/samba
Hi,
Thats the reason why i state:wengiQuote:
This chapter is using the original samba of the firmware. If you installed the IPKG samba you will have to change the path /usr/sbin/ to /opt/...
Hi, I'm following your steps and on step 9, i cant seem to make cron appear on the task list... what should i check on slung and post boot and how do i do it? Thanks a lot!
Hey guys,
Just been reading through this quickly and it looks like a great router for a seed box. Just a quick question would i be able to use this as a Wireless Access Point for my TV to view youtube etc, as well as it being connected to a HDD downloading torrents?
Cheers
@jakesully
is /opt/etc/init.d/S10cron executable?
Post the result of "ls -la /opt/etc/init.d/".
@wood88
HDD and downloading torrents is no problem (but these routers are not the fastest ones...)
Wireless AP is a native function for the routers.
If your TV has WLAN and can show youtube videos you are fine with an asus router.
Have a look at the different models for hardware specs.
wengi
Thanks wengi for the quick response.
Any particular model you would suggest that can do the Wireless Access Point & downloading torrents to a usb hdd?
Also i remember seeing a chart saying which modems were compatible with olegs firmware and all there features but i cant seem to find it again, any chance you know where it is?
Cheers
Have a look at
http://code.google.com/p/wl500g/downloads/list
http://code.google.com/p/wl500g/wiki/Devices
The RT-N16 is the newest hardware, but firmware ist still ALPHA.
But i am not the hardware expert so i can not tell you which router to buy.
My WL-HDD is damn old and slow and i never looked for a newer model.
wengi
Hi wengi, thank you for your response. here's the result.
[admin@WL-E0CB4E44260F root]$ ls -la /opt/etc/init.d/
total 16
drwxr-xr-x 2 admin root 4096 Aug 27 23:01 .
drwxr-xr-x 5 admin root 4096 Aug 27 23:01 ..
-rwxr-xr-x 1 admin root 217 Aug 27 23:05 S10cron
-rwxr-xr-x 1 admin root 641 Aug 26 00:24 rc.unslung
Hey wpte,
This sounds like the one i need.
Just a quick question if u dont mind.
Just so i don't waste my money on this as im looking for this particular feature.
I know wengi said the WL-500 could be a wireless access point and download torrents with a connected USB HDD at the same time and obviously being connected only via wireless to the computer, so i dont need to keep my computer on all day/night downloading stuff. Will the RT-N16 be able to do the same thing? (but obviously at faster due to the bigger processor).
Thanks
@jakescully
What happens if you do a "/opt/etc/init.d/S10cron start"?
Error? cron starting?
If cron is started:
Stop it again and try the same with "/opt/etc/init.d/rc.unslung start"
If not:
post result of "cat /opt/etc/init.d/S10cron".
This should show the content of S10cron.
wengi
@wengi,
Thank you very much. I tried doing the steps all over again and it worked this time, now transmission is working. I stopped at step logrotate.
Now my problem is that in a day, the router hangs once or twice a day. Do you think this will be resolved by an additional power source for the HDD?
Here's my setup. Asus wl-520gu, and external HDD - 2.5" IDE 60Gb.
May be... you will have to test it.
The PSUs are not the best.
wengi
Hey Guys,
Do you know if the Olegs firmware can be put on to run on a RT-N13U?
For the same applications as before?
As i can get one much cheaper than the N16, $50AUD compared to $150AUD
Cheers
Also does transmission or Rtorrent support Torrent Scheduling?
Thank you wengi for an awesome how-to.
Hi,
Just updated my firmware from r740 to r2174.
Are the steps 5 and 6 in the quoted part of the guide up to date? After uploading the new firmware, all my old settings are already there and the old flash filesystem is there too.
Was my firmware update successful or not? In the webgui I can see that I'm running r2174, but why are the old settings and the old flash filesystem still there???
Hi, my router works perfectly. I'm now struggeling with the second USB hardisk. I created a parition on it with fdisk. Then I created ext3 file system on it.
The hardisk is accessible fine at tmp/mnt/disc1_1/. I would like to have the link to the hardisk as /tmp/harddisk2 so I edited /etc/fstab in following way:Code:mke2fs -j -m 0 /dev/discs/disc1/part1
But the harddisk2 symlink is not created after reboot. If I try "mount -a" the system says that the directory "/tmp/harddisk2" does not exists. How the symlink harddisk2 would be created? What is also strange to me, that when IU delete the "/tmp/harddisk" line from fstab, the symlink for /tmp/harddisk is created anyway.Code:#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 /tmp/harddisk ext3 rw,noatime 1 1
/dev/discs/disc1/part1 /tmp/harddisk2 ext3 rw,noatime 1 1
Hello, i am just a happy user who want's to thank you. What for ? For this:
1. From the time i purchased my WL500GpV2 it worked poorely, was crashing often, i had a non working torrent client etc. About a year ago i stumbled onOleg's software an your tutorial. Installed just fine with minor errors because my Ctrl+v problems in putty, but after i discovered that i am the source of that mistakes, worked fine!
2. It was the easiest way to install and configure oleg's firmware, an for almost a year NEVER HAD ANY PROBLEM. Always working 100%.
3. Even when i unplug my HDD the router works on internal files and acts as a router , of course without transmission an ftp support. That's fine cuz now i use the HDD only when i want to bring torrent files or share my web page because i didn't succeed to make it spin down.
Is one thing i think you can put on your tutorial (maybe it is in the replies but i do not see it): The manual start of the wireless (via EZ button ) script , i think it is verry useful because it increases the security (i use the wireless only when i want) and makes you feel that you have the full controll.
AND How to insert a module for who needs it, from modules-1.9.2.7-10.gz file .
Overall your tutorial is great and I am an happy user wich uses oleg's tutorial over an year now ant that is because of your tutorial !
BTW: For ones that do not know: Command for SHUT DOWN (useful think) is: HALT
THANKS A LOT !
I just update my firmware to 1.9.2.7-d-r2381 on a wl500gpv2.
Then reinstall all from scratch (base on your tutorial=except samba)on a usb stick 16 Gb.
Everything run ok.
Just one thing.
Transmission is not starting automatically upon a reboot.
If i paste on putty:
chmod 755 /opt/etc/init.d/S90transmission-daemon
/opt/etc/init.d/S90transmission-daemon start
then is starting fine.
I double check transmission(in fact all start-up scripts) according to your tutorial and all are fine.
Any idea?
Thanks for your great tutorial Wengi.
hello!
I cannot manage to find out where i'm wrong in mounting the partitions.
I have a 4 Gb HD with 3 partitions (part 1 - swap, part 2 - ipkg, part 3 -data).
The problem is that part 2 is not automatically mounting in /opt.
here is the result after a reboot:
/etc/fstab is empty after rebootCode:[root@Asus-LAN root]$ mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
tmpfs on /tmp type tmpfs (rw,noatime)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part2 on /tmp/mnt/disc0_2 type ext3 (rw,noatime)
/dev/discs/disc0/part3 on /tmp/mnt/disc0_3 type ext3 (rw,noatime)
when I try to save pre-mount and post-mount I get "no such file or directory" but I think this is another problem.
I've done everything like in tutorial.
Thankyou for your answer in advance.