WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] How to set permanent ip address in Tiny Core Linux?  (Read 42462 times)

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: [SOLVED] How to set permanent ip address in Tiny Core Linux?
« Reply #15 on: October 22, 2013, 01:42:19 PM »
The control panel network applet essentially just does the three sudo commands similar to those given in reply #12.

32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: [SOLVED] How to set permanent ip address in Tiny Core Linux?
« Reply #16 on: October 22, 2013, 05:58:10 PM »
A command in .xsession would be executed on every start of X11.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: [SOLVED] How to set permanent ip address in Tiny Core Linux?
« Reply #17 on: October 22, 2013, 06:09:22 PM »
.xsession is the wrong place. It is for  X and only X.
Putting configuration scripts in the wrong place will only cause support issues later when you can't figure out why the
proper config script in /opt does not seem to work.

Offline jatinkhatri

  • Newbie
  • *
  • Posts: 3
Re: [SOLVED] How to set permanent ip address in Tiny Core Linux?
« Reply #18 on: October 23, 2013, 01:02:45 AM »
Am not sure but wouldn't you use ControlPanel > Network to set static IP addresses??

on every reboot, eth0 gets ip from dhcp server, if you set Static IP  from control-panel, it gates flushed on reboot. You have to manually set IP address after restart.

Offline jatinkhatri

  • Newbie
  • *
  • Posts: 3
Re: [SOLVED] How to set permanent ip address in Tiny Core Linux?
« Reply #19 on: October 23, 2013, 01:05:35 AM »
No, you do not.

it works for me .... really ...I do not need to go to each thin-client to change the IP address to the static which I want to assign to that machine  , I've added that command to .xsession it works like anything,

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: [SOLVED] How to set permanent ip address in Tiny Core Linux?
« Reply #20 on: October 23, 2013, 03:21:03 AM »
Thanks Gerald, I got it now.. 

write a script to set static IP, place it in /opt  and start it from an entry in bootlocal.sh on each boot

 8)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: [SOLVED] How to set permanent ip address in Tiny Core Linux?
« Reply #21 on: October 23, 2013, 02:48:48 PM »
Am not sure but wouldn't you use ControlPanel > Network to set static IP addresses??

on every reboot, eth0 gets ip from dhcp server, if you set Static IP  from control-panel, it gates flushed on reboot. You have to manually set IP address after restart.

No you don't, but you have to use boot code "nodhcp".
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: [SOLVED] How to set permanent ip address in Tiny Core Linux?
« Reply #22 on: October 23, 2013, 02:50:59 PM »
No, you do not.

it works for me .... really ...I do not need to go to each thin-client to change the IP address to the static which I want to assign to that machine  , I've added that command to .xsession it works like anything,

Have you tried to see what happens when you start X for the second time?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)