how to open ports for ctorrent in the firewall and what are the best ports to use
The thing is - it is started like this:
So what you do after you try to start samba manually - with the line above - is:Code:/usr/sbin/smbd -D -l /opt/var/log/smbd.log -s /opt/etc/samba/smb.conf
- it will show you if smbd is running or notCode:ps | grep mbd
- the last 20 lines of samab logfile may tell you why it was unable to start up. I remember veguely that it did not like hostname not set. But check what is your caseCode:tail -n 20 /opt/var/log/smbd.log
My samba is working with opts I gave in the tutorial, so perhaps you want to take a look at your conf file and post it (w/o sensitive info) - if you don't have luck with the steps above.
how to open ports for ctorrent in the firewall and what are the best ports to use
Last edited by Egres; 08-09-2006 at 03:23.
I realy don't know... st. is wrong but i don't know what...
After manual start no log appears:
]$ tail -n 20 /opt/var/log/smbd.log
tail: /opt/var/log/smbd.log: No such file or directory
tail: no files
But when I send
any error is written and mbd proces is also runnig.Code:/usr/sbin/smbd -D -l /opt/var/log/smbd.log -s /opt/etc/samba/smb.conf
Any new idea, please?
Last edited by Houston; 10-09-2006 at 23:14. Reason: ask was missing...
WL500gp-1.9.2.7-7f-pre4@WL-500gP & DeLock USB 2.0 IDE Converter with WD1200BB... seems that I'm trying to work on this stuff...
WL500gp-1.9.2.7-7f-pre4@WL-500gP & DeLock USB 2.0 IDE Converter with WD1200BB... seems that I'm trying to work on this stuff...
Yes, you need to set your hostname in any of the startup scripts. It is done
Code:hostname yourhostname
i hope i done that before...
i have got
hostname ASUS
in
/usr/local/sbin/post-boot
and now this one is in log:
i have to setup host name somewhere else?Code:[2006/09/12 00:26:32, 0] lib/util_sock.c:open_socket_in(826) Get_Hostbyname: Unknown host ASUS
i think it's set here...
i have also
in smb.confCode:workgroup = SOME_WORKGROUP server string = ASUS
may be the reason is somewhere alse but where :-(
WL500gp-1.9.2.7-7f-pre4@WL-500gP & DeLock USB 2.0 IDE Converter with WD1200BB... seems that I'm trying to work on this stuff...
Yes this is a bit difficult as I do not know how exactly gethostbyname() gets the hostname. I don't have to deal with that because my hostname is on DNS. I guess what you could try first to substitute DNS lookup is to enter your hostname in the /etc/hosts file.
of course for that to work automatically you have to add the line in your /usrl/local/sbin/post-bootCode:ip.adr.nume.rical your host name - same as set by the command
Hopefully this will work, other wise something else could be looked at. I have heard that this works if in smb.conf fileCode:echo "ip.adr.nume.rical your_host_name" >> /etc/hosts
Let me know if this worksCode:dns proxy = yes
Last edited by r0kanon; 13-09-2006 at 10:01.
Isn't the correct way to set the hostname via the web interface?
This sets an nvram variable, which works for me
#nvram show | grep lan_hostname
..
lan_hostname=MyAsus
#hostname
MyAsus
NB I haven't set the hostname in any script..
You can have a different netbios name for windows shares in the smb.conf, e.g
[global]
netbios name = mystorage
Then you can access this with \\mystorage
Last edited by WVR; 14-09-2006 at 20:58.
Thank You for all your helps. But still any progress
hostname is set to "ASUS"
I set it in smb.conf
I tried to set netbios name and dns proxy alsoCode:#nvram show | grep lan_hostname lan_hostname= <=== nothing is here where i can set it? not in webgui neither in smb.conf... so where?
and
but I didn't set this.Code:#cat /etc/hosts ... 192.168.2.1 my.router my.WL500gp
I'll try to set all firmware from begining again... then i'll send my result.
WL500gp-1.9.2.7-7f-pre4@WL-500gP & DeLock USB 2.0 IDE Converter with WD1200BB... seems that I'm trying to work on this stuff...
Well on my web gui, On lefthand menu:
IP Config -> LAN
Then get box "Host Name:"
When you hover over it says
"This field allows you to provide a
LAN hostname for
WL500g.deluxe"
Or you could set the value directly in the nvram
nvram set lan_hostname=MyHostName
If you do it this way, don't forget to save the nvram ...
nvram commit
Last edited by WVR; 16-09-2006 at 14:17.
Houston - do you have the line in your smb.conf that says
dns proxy = no
?
Hello everybody!
I have flashed my WL500gP just 2 days ago with Oleg's pre7. I've configured it according to marcnesium's and r0kanon's tutorials (by the way, great job guys).
However I have expierienced the same problem with SAMBA as it was already posted here. Nevertheless I found a solution. As you have pointed out the problem was hostname. In marcnesium's tutorial there was this piece of code:
to put into the /opt/etc/init.d/S97Samba file.Code:#!/bin/sh /usr/sbin/smbd -D -l /opt/var/log/smbd.log -s /opt/etc/samba/smb.conf /usr/sbin/nmbd -D -n myasus -o -l /tmp -s /opt/etc/samba/smb.conf
As you the "myasus" in the third line is actually your hostname. So what I have done, was just changing "myasus" to "WL500gP" (the hostname I have set in all other files) in S97Samba. After reboot the Samba was working just perfect. I've mapped a network drive under windows and now I can browse, add and remove files.
By the way, I know so very little about linux, so don't laugh if I've written something lame
Hello everybody
I followed the howto and got most of the commands in with no error but now i can't get ftp acsess nor samba .
i can mound the disk and browse it withe putty but i have no acsess from my computer
samba is running
can someone help me??Code:[admin@AsusWL500gP smbshare]$ ps PID Uid VmSize Stat Command 1 admin 660 S /sbin/init 2 admin SW [keventd] 3 admin SWN [ksoftirqd_CPU0] 4 admin SW [kswapd] 5 admin SW [bdflush] 6 admin SW [kupdated] 7 admin SW [mtdblockd] 57 admin 308 S telnetd 62 admin 396 S httpd vlan1 65 admin 524 S nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan 69 admin 364 S klogd 70 nobody 488 S dnsmasq 71 admin 396 S syslogd -m 0 -O /tmp/syslog.log -S -l 7 72 admin SW [khubd] 81 admin 276 S lpd 83 admin 260 S p9100d -f /dev/usb/lp0 0 86 admin 340 S waveservermain 89 admin 344 S rcamdmain 93 admin SW [usb-storage-0] 94 admin SW [scsi_eh_0] 100 admin 320 S infosvr br0 101 admin 456 S watchdog 103 admin 340 S ntp 116 admin 436 S dropbear 120 admin SW [kjournald] 129 admin 432 S udhcpc -i vlan1 -p /var/run/udhcpc0.pid -s /tmp/udhcpc 136 admin 408 S /opt/sbin/cron 145 admin 1008 S /usr/sbin/smbd -D -l /opt/var/log/smbd.log -s /opt/etc/samba/smb.conf 147 admin 984 S /usr/sbin/nmbd -D -n myasus -o -l /tmp -s /opt/etc/samba/smb.conf 174 admin 452 S upnp -D -L br0 -W vlan1 184 admin 744 S dropbear 185 admin 572 S -sh 197 admin 316 T cat 262 admin 412 R ps
thx
I had a problem but I fixed it
when you format your hdd for the data bit you may get:
If so first format your swap partition (shoudn't take long) then just activate it :Code:Writing inode tables: Terminated
x beeing your swap partition (in this tut its 2)Code:mkswap /dev/discs/disc0/partx swapon /dev/discs/disc0/partx
then do
y beeing your data partition (in this tut its 1) -L0L party :P-Code:mke2fs -j /dev/discs/disc0/party
there you go problem solved
im doing fine untill the ipkg setup,
when i type:
mkdir /opt/tmp
I get the following error:
mkdir: cannot create directory '/opt/tmp' :Read-only file system
any help is appreciated, i neeeed to get the ctorrent working as the asus download manager blows