I made a kiosk proteus CD with customizations.
I wuold like to use the same CD to start multiple Kiosk pcs specify the static IP address to assign to the network interface.
How cat I start a configuration script asking to user IP, subnet and gateway after boot?
Thanks in advace
How to setting different static IP address from the same CD
-
- Ronin
- Posts: 3
- Joined: 24 May 2014, 22:30
- Distribution: Mint-Centos-Solydxk-Porteus
- Location: Kentucky USA
Re: How to setting different static IP address from the same
Any luck on this? I would also like to be able to change the IP and Hostname. Does not have to be a script per say just point me in the right directions.
Thanks
Thanks
- fanthom
- Moderator Team
- Posts: 5591
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: How to setting different static IP address from the same
kiosk respects /etc/rc.d/rc.local script so you could use it to collect the data from the user. please remember to 'killall dhcpcd' prior to initializing networking manually.
Please add [Solved] to your thread title if the solution was found.
-
- Ronin
- Posts: 3
- Joined: 24 May 2014, 22:30
- Distribution: Mint-Centos-Solydxk-Porteus
- Location: Kentucky USA
Re: How to setting different static IP address from the same
/# cat /etc/rc.d/rc.local
/# cat /etc/rc.local
After I rebooted it deleted rc.local and went back to org name? I even tried placing it in /etc/ but it got deleted too. This is on a hard drive BTW. I am using SSH and SFTP from a another pc to do the changes.
Thanks for the quick response BTW
Code: Select all
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Set hostname:
hostname ky-ttclock1a
exit 0
Code: Select all
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Set hostname:
hostname ky-ttclock1a
exit 0
Thanks for the quick response BTW
- fanthom
- Moderator Team
- Posts: 5591
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: How to setting different static IP address from the same
i think we misunderstood.After I rebooted it deleted rc.local and went back to org name?
i thought you want to be able to setup custom IP and hostname during every kiosk boot. that's why i suggested using rc.local which would ask the user for these data.
if you want to set the IP/hostname only once then you can do this through the wizard (easier way) or you can remaster the ISO manually and burn it again. please refer to manual customization guide :
http://porteus-kiosk.org/kiosk-customization.html
please remember that for security reasons persistence does not exist in Porteus Kiosk so every time you change something you have to create new ISO and burn it in the place of the old one. kiosk supports iso9660 as the only filesystem, no FAT/NTFS or ext*.
Please add [Solved] to your thread title if the solution was found.
-
- Ronin
- Posts: 3
- Joined: 24 May 2014, 22:30
- Distribution: Mint-Centos-Solydxk-Porteus
- Location: Kentucky USA
Re: How to setting different static IP address from the same
Thanks for the help.
I am not the person who started this, mturra was and I think that maybe in line with what they wanted. I am not sure. I was just seeing if they was able to do anything and when you responded I tried what you said to do and posted what happend.
I like this Kiosk very much and was just tring to "dummy" it down for the other people where I am , who may have to work with it. I have no trouble using the wizard seems pretty straight forward for me. But I am the only "Linux" person here who will be using/installing this. I like the size and the way it is locked down. Hopefully I will have this place full of Linux machines before I am done. Already got Dashboards running off Raspberry Pi's and got a few Linux servers running Virtual machines. Just people I work with get nervous when I insatll Linux machines. But for what they are wanting this is perfect and I see a need for more. That is why I was tring to see if I could get it down to maybe one or two questions. Hostname and IP then it is done and they dow't have to worry about it any more.
Again great job on this.
I am not the person who started this, mturra was and I think that maybe in line with what they wanted. I am not sure. I was just seeing if they was able to do anything and when you responded I tried what you said to do and posted what happend.
I like this Kiosk very much and was just tring to "dummy" it down for the other people where I am , who may have to work with it. I have no trouble using the wizard seems pretty straight forward for me. But I am the only "Linux" person here who will be using/installing this. I like the size and the way it is locked down. Hopefully I will have this place full of Linux machines before I am done. Already got Dashboards running off Raspberry Pi's and got a few Linux servers running Virtual machines. Just people I work with get nervous when I insatll Linux machines. But for what they are wanting this is perfect and I see a need for more. That is why I was tring to see if I could get it down to maybe one or two questions. Hostname and IP then it is done and they dow't have to worry about it any more.
Again great job on this.