Page 1 of 1

[Solved]no automatic dhcp

Posted: 22 Aug 2013, 14:47
by wsteven
Hello again,

I did set dhcp through the wizard, but it won't acquire any ip on boot. I have to run dhcpd manually.
Any ideas? Thanks

Steven

Re: no automatic dhcp

Posted: 22 Aug 2013, 18:48
by fanthom
"I have to run dhcpd manually."
did you boot kiosk to text mode and ran dhcpcd from cli? if yes and if it worked then i would suggest you to try again with the wizard as i have booted kiosk over 1000+ times with dhcpcd enabled and everything was ok.

Re: no automatic dhcp

Posted: 23 Aug 2013, 07:32
by wsteven
well, I must do something wrong I guess, I'll check again and let you know :)

Re: no automatic dhcp

Posted: 23 Aug 2013, 09:00
by wsteven
Well, here is what I did :
_ re-run wizard, activate dhcp on eth0
_ modified inittab and 10-xorg.conf (for tty access), prefs.js to include my proxy and changed wallpaper.
_ make-iso.sh (which I have to modify to use genisoimage as the script is pointing to an nonexisting mkisofs)
_ boot : same problem, no ip set.
_ if I run /etc/rc.d/rc.d/rc4.d/S-pns manually I get an IP. Same thing with /etc/rc.d/rc.inet1 .

Hard to debug as most of logging is off. Can you imagine any reason why these scripts aren't started? Where can I check if they are called?

Thanks,
Steven

Re: no automatic dhcp

Posted: 23 Aug 2013, 09:34
by fanthom
i guess you have set runlevel 1 as default in /etc/inittab.
in Slackware we use runlevel 3 for text mode and 4 for GUI so please change it to 3.

Re: no automatic dhcp

Posted: 23 Aug 2013, 10:36
by wsteven

Code: Select all

id:4:initdefault:
x1:4:respawn:/etc/rc.d/rc.4

Re: no automatic dhcp

Posted: 23 Aug 2013, 13:55
by fanthom
should be ok so,
please upload your ISO and i'll check what's wrong with it.

Re: no automatic dhcp

Posted: 23 Aug 2013, 15:05
by wsteven
Thanks in advance for your time here it is : http://dl.free.fr/jEsEepzCf
(just wait download starts automatically)
This is the version with the new kernel!

EDIT :
root pass is root... just in case ;)

Re: no automatic dhcp

Posted: 23 Aug 2013, 17:01
by fanthom
your ISO works ok - searching through duckduckgo works. the only problem is a homepage which seems to be incorrect and giving 'server not found'.
perhaps that's what has confused you?

Re: no automatic dhcp

Posted: 26 Aug 2013, 09:53
by wsteven

Code: Select all

root@porteus:~# cat /etc/rc.d/rc.local
/etc/rc.d/rc.inet1 start
sleep 5s
mkdir /dev/pts
mount -o mode=0620,gid=5 -nt devpts devpts /dev/pts
/etc/rc.d/rc.sshd start
This works, dunno why, but if network script is not called again through rootcopy/ then I won't get an IP.
Anyway, this is solved for me :)