Bekijk de volledige versie : autostart?
:confused:
that is the first thing I get when I restart my router, when using this http://wl500g.info/showthread.php?t=10307 tutorial.
All the programs, said to be autostarting aren''t doing that at all:( I always got to put them in putty, and for some programs I even don''t know what to execute...
Is there a way to autostart files? I tried putting them in post-boot, but they didn''t work.
Also, I have some problems with samba 2.
as again xinetd is not autostarting, and that''s why I believe I can''t open that page in my browser... I tried configuring it by editing the config file, but I won''t get any writing rights. I also tried olegs build in samba, but it wouldnt let me rename files:confused:
The transmission isn''t working too just because of the same, browser problem, IE says the page isn''t there, not even a 403 error (server error) instead of a 404 (no server).
next thing:
printer problem...
This printer still works on the original asus firmware, however... on olegs it stopped working:(
does anyone how to fix it before my sisters kill me because they can''t print?:p
Jan 10 23:11:03 kernel: hub.c: new USB device 01:03.0-2, assigned address 2
Jan 10 23:11:03 kernel: hub.c: USB hub found
Jan 10 23:11:03 kernel: hub.c: 2 ports detected
Jan 10 23:11:04 kernel: hub.c: new USB device 01:03.0-2.1, assigned address 3
Jan 10 23:11:04 kernel: usb.c: USB device 3 (vend/prod 0x43d/0x7c) is not claimed by any active driver.
Jan 10 23:11:04 kernel: hub.c: new USB device 01:03.0-2.2, assigned address 4
Jan 10 23:11:04 kernel: printer.c: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x043D pid 0x007B
Jan 10 23:11:04 kernel: printer.c: usblp0 Device ID string [104]='MFG:Lexmark ;CMD:CPDNPA001;MODEL:X1100 Series;CLASS:Printer;DES:Lexmark X1100 Series;COMMENT:030305-1;'
Jan 10 23:12:33 kernel: printer.c: usblp0 Device ID string [104/max 1552]='MFG:Lexmark ;CMD:CPDNPA001;MODEL:X1100 Series;CLASS:Printer;DES:Lexmark X1100 Series;COMMENT:030305-1;'
Jan 10 23:12:33 kernel: printer.c: Parsing USBLPID...
Jan 10 23:23:42 kernel: usb_control/bulk_msg: timeout
Also I would like to have some information :)
I want to install a http server, php5, mysql 4.1, dns server and a mailserver.
does anyone know good ipkg packages for those things?
I hope someone will reply soon:)
thanks,
WPtE
does nobody how to help me?
I tried the mysql guide, the sticky post here, but it doesnt seems to work, I still get an error when I try to start mysql:(
Concerning printing, Oleg's fw uses raw printing instead of lpr. Did you read this?: http://wl500g.dyndns.org/printing/
Check that post-boot is executed at all, by e.g. adding to it
logger "blah blah"
and after saving and restarting check if the line like this appear in the syslog
Finally, you want to have everything and right now. Typical psychology of youngsters :) Personally, I prefer evolution instead of revolution. I mean it is better to gain _understanding_ of simple things and then proceed to the next level. Good luck.
Hello,
thanks for your reply:)
I tried out your printer thingy...
now it''s not doing: kernel: printer.c: Parsing USBLPID...
so... no time out either.
I tried out printing, I already configured the printer in the right way;)
well.. now we got the parsing again, and the time out either, the job is removed from the que in just 1 second.:(
I searched on that ipkg find some printer tools and found 2 printer drivers, would it be helpfull to test them out?
yeh I''m a youngster :P
but don''t get me wrong, I have been working 3 weeks to get a samba2 server started... still no good results:(
Also I totally freshly formatted my harddisk to test out the different ipkg and uclibc. they installed fine. Now I tried again to install mysql... with all the steps I could find, but still I get this mysql loading......error
but this is not really a preority now, its still the samba server, I just want it to work, because soon I have to format my backup disks for my new pc... so I want the data back on the usb disk before that.
maybe it''s some chmodding for allow the client to write?
oh... I forgot to say: I''m pretty good with programming and all that kinda stuff, so if you know something, just say it;)
OK, which printer do you actually have? Some of the printers (IMHO minority) require some firmware to be downloaded before you start. There is somewhere on the forum a thread about printer's compatibility.
yeh I''m a youngster :P
I see, but don't worry, I believe that I'm not too old yet too :)
so if you know something, just say it
There is nothing which is clear to hide from you. I mean that IMHO at the moment your 1st problem is to find out why start up files are not working. And I don't know why, because there is not enough data. ( as I wrote --- the right approach is step by step )
It might be helpful if you post here output of:
ls -al /usr/local/sbin
cat /usr/local/sbin/post-boot
the output
[root@(none) root]$ ls -al /usr/local/sbin
drwxr-xr-x 1 root root 0 Jan 12 06:41 .
drwxr-xr-x 1 root root 0 Dec 31 1999 ..
-rwxr-xr-x 1 root root 572 Jan 12 06:48 post-boot
-rwxr-xr-x 1 root root 0 Jan 12 06:41 post-firewall
-rwxr-xr-x 1 root root 0 Jan 12 06:41 post-mount
-rwxr-xr-x 1 root root 0 Jan 12 06:41 pre-shutdown
[root@(none) root]$ cat /usr/local/sbin/post-boot
#!/bin/sh
dropbear
# test 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 /tmp/harddisk
# Activate swap
swapon /dev/discs/disc0/part1
# Run all active services - active means starts with S
/opt/etc/init.d/rc.unslung
I have a Lexmark X1155.
on the lexmark website they have some windows drivers, but none for linux, and I guess they wouldnt even work on this linux:p
anyway, the printer used to work properly on the official asus firmware, as fast and as good as on a pc.
I read the guide again a bit, and I saw that programs will be started with S[number] or something like that.
Bit silly of me to read over that:o
anyway, I'm still concerned about if they will be able to find their... well.. subprograms, or dll's (as a windows user), because this is a whole different folder, I guess I need to do some tweaking for that, or is it ok like this?:)
thnx:D
update on mysql..
yeh, still trying;)
when I run the mysql_safe, I also get an error:\
Starting mysqld daemon with databases from /opt/var/lib/mysql
/opt/bin/mysqld_safe: eval: 1: Syntax error: "(" unexpected
I have no idea where that ( stands... any way to debug the script?
also, is there any way to view errors, not displayed on putty? because it doesnt show additional information why it crashes (the original mysql start)
post-boot is ok, and it should run.
Are you able to connect to router by ssh?
What shows 'free'?
These two questions are to prove that post-boot is really executed.
Next, the daemons which installed by ipkg usually have their startup scripts located in /opt/etc/init.d . They are started in the last line of post-boot ( /opt/etc/init.d/rc.unslung ). This file you had to create manually according to wengi's howto.
Show please ls -al /opt/etc/init.d
I'm still concerned about if they will be able to find their... well.. subprograms, or dll's (as a windows user), because this is a whole different folder, I guess I need to do some tweaking for that
no
As to error messages you have syslog:
cat /tmp/syslog.log
Also mysql might have it's own log somewhere (good place to look is /opt/var/log )
As to printer... Unfortunately, I know nothing about this model :( However, in general you don't need to have driver on the router, because p9100d just accepts raw data from PC and redirects them to printer. There are some exclusions which require to have some firmware loaded, like cheap hp lasers, however I never heard about such inkjet.
Yes I guess the boot script is working well... however, sometimes I need to plug the power cable out, and put it back in to get the right mountpoints
[root@(none) root]$ free
total used free shared buffers
Mem: 30116 24240 5876 0 2232
Swap: 524276 0 524276
Total: 554392 24240 530152
[root@(none) root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 2880 2880 0 100% /
/dev/discs/disc0/part2 1929100 92092 1739012 5% /opt
/dev/discs/disc0/part3 478254140 157104 453803144 0% /tmp/harddisk
the /opt sometimes come up like /tmp/harddisk and the other one like /tmp/harddisk/part1
With that, sometimes also an error message that /tmp/harddisk/part1 doesnt exist:confused:
I know that I need to start some programs for loading up all the web based admin, for samba or transmission.
I have at least thttpd-php working now, I tried thttpd and php seperate, but after a boot the thttpd didn't recognized the cgi anymore.
I have now a phpinfo() command as index, and it kinda loads up really quick:D, so I guess my external mysql (at this time) is slowing it down a bit.
unfortunately, I'm unable to get the traffic trough the firewall with NAT:(
This function kinda died a few weeks ago, just like the wan lan and lan wan filters... so I disabled the firewall, tested it again and...
Could not get robots.txt from 255.255.255.255:8080. [Errno socket error] (113, 'No route to host').
and
Couldn't connect to 255.255.255.255:8080: No route to host
but when I try port 80, to access the web interface, it just works fine:confused:
this is quite a bit why I moved to olegs, because I won't be able to host a website from a pc with port forwarding (just because the router fails).
I think I'm going to bring the router back to the shop, as these functions worked, but died and not open_wrt, oleg, asus or tomato could fix this, so I guess this is a hardware problem instead of a software.
I''m still not quite sure if I want a working wl-500gP back or I would go for a wl-500w, wich is kinda the same thing, but with some refreshing firmware from asus (i hope) and a newer wireless chipset. Also, the W doesnt have oleg yet, but I would put it on if its out:D
thanks for your help so far, I will use it for my newer router, thats for sure:)
oh, also the output:
drwxr-xr-x 2 root root 4096 Jan 12 11:06 .
drwxr-xr-x 4 root root 4096 Jan 12 11:06 ..
lrwxrwxrwx 1 root root 30 Jan 12 10:38 K70mysqld -> ../../share/mysql/mysql.server
lrwxrwxrwx 1 root root 30 Jan 12 10:38 S70mysqld -> ../../share/mysql/mysql.server
-rwxr-xr-x 1 root root 668 Nov 29 16:50 S80thttpd
-rwxr-xr-x 1 root root 260 Jan 12 06:50 rc.unslung
automounting issue is easy to solve by creation of /etc/fstab file. It's relatively new feature in Oleg's fw which was first introduced in 8 or 7g . Therefore it is possibly not yet well described in tutorials , however there is still a lot of topics around about that.
I don't have personal experience with php (and mysql also), however, I have seen a lot of feedback on problems with thttpd. As far as I know the best choice for php is lighttpd
You are not right, there are Oleg's firmwares for 500w starting from v.8 Look here: http://wl500g.dyndns.org/1.9.2.7-8/
By the way you might want to try a newer fw available here:
http://wl500g.dyndns.org/preview/
It is not yet officially released, however as far as I remember Oleg wrote that he did some changes in usb support. May be you'll have luck and it resolves your issue with printer.
Finally, as you can see, there is no /opt/etc/init.d/S10xinetd and nothing in post-boot which can start xinetd. What else would you expect. I think S10xinetd was a part of xinetd distribution. But you might use my one:
#! /bin/sh
#
# Startup script for xinetd
#
OPTWARE_TARGET=oleg
# Stop other inetd processes if running
if [ ${OPTWARE_TARGET} = "nslu2" ] ; then
killall inetd 2>/dev/null
fi
prefix=/opt
sbindir=${prefix}/sbin
NAME=xinetd
DAEMON=${sbindir}/${NAME}
DESC="xinetd"
OPTIONS=""
# installation check
test -x ${DAEMON} || exit 2
case "$1" in
start0)
printf "Starting ${DESC}: "
${DAEMON} ${OPTIONS}
printf "${NAME}.\n"
;;
stop)
if [ -n "`pidof ${NAME}`" ]; then
printf "Stopping ${DESC}: "
killall ${NAME}
printf "${NAME}.\n"
fi
;;
start|restart|force-reload)
$0 stop
sleep 1
$0 start0
;;
*)
printf "Usage: $0 {start|stop|restart|force-reload}\n" >&2
exit 1
;;
esac
exit 0
ah thanks man:D
The 500W is only 5 euro more over here, but they are all out of stock:(
I'm still waiting for a reply on my RMA, but I think it's gonna be allright because I work at that shop:p
I used the firmware wizzard, but I only saw official releases :s
I first had some problems with thttp-php too, sometimes it didn't recognize php, but with the different ipkg and uclibc it works pretty good, I never get that download screen anymore of a php file :)
wednesday I''ll receive my WL-500W, tomorrow my processor to boot up my pc... well...
I can't get hapier:D;)
:D the samba works fine now. I had to try a few times because I got blocked... now I have to fill in the exact ip adresses of the allowed hosts instead of using 192.168.2.* by example, is it also possible to use 192.168.2.1-192.168.2.255 by example?
I''m quite happy with my new samba, but it doesnt seem to like a 50GB file (norton ghost backup), it says that it doesnt have enough space:confused: pretty weird because I have a 500GB hdd attached...
the samba is faster than the asus one, it can have 36mbps, wich is the maximum speed of that drive, the asus firmware only got 20mbps max. however, I think the processor is also has a quite havy load this way, the router hardly respond to anything during fast down and uploads.
Now I''m still looking for a good ftp server, because the build in one isn't working for me, it only starts when anonymous is allowed... that isn''t something I want to put on to the net;)
I''m looking for something like the asus one, with shared nodes and passwords.
oh... and the printer doesn''t work on this one either, maybe via samba, as this one supports printers, however I dont really know how to do that, via windows it''s just 3 klicks and you got it working:p
thanks for the great help:D