"Just Works" Configuration of Ethernet at bootup

What features/apps/bugfixes needed in a future Puppy
Message
Author
tubby
Posts: 317
Joined: Sat 24 Jan 2009, 15:49

#31 Post by tubby »

Well this pensioner has done some digging and there is an autoconnect.pet already in the ibiblio reps.
Surely this could be your starting point.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#32 Post by mikeb »

Well this pensioner has done some digging and there is an autoconnect.pet already in the ibiblio reps.
yes someone did do this recently but my dodgy memory could not remember who or where...from what I remember he made a remaster with it included it it was working just fine.

mike

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#33 Post by Puppyt »

tubby wrote:Try adding to your /startup dir
dhclient
dhclient-script
dhcpcd (symlink to dhclient)
dhcpd
All downloadable from the ibiblio packages.
Worked ok for me on a frugal install, found and connected to ETH0.
You may not need all of the above but i went for belt and braces. :lol:
Great stuff, tubby! I'll test it soon.

I want to make an idiot-proof Puppy (spot the Catch-22). Something that works out of the box for new computer users - "age" be damned - with no interest or inclination to command-line or scripting (or wizards), will resume intact after improper shutdowns (yay Silver Puppy's thread and pet - sorry off-topic) etc etc.
Regarding nooby's request for a compromise in automatic ethernet at bootup - just how hard would it be to include the option in the typical live-cd startup options of keyboard, locale, Xorg and mouse?

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#34 Post by ecomoney »

Is this for ethernet, I believe its a program for automatically connecting to wireless
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#35 Post by sunburnt »

Hi ecomoney; How`s it going?
LanPuppy did exactly this, it got the gateway config from the router
wrote it to /etc/resolv.conf , and did auto-setup of networking at boot.

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#36 Post by Puppyt »

sunburnt wrote:LanPuppy did exactly this, it got the gateway config from the router...
Thanks sunburnt! Downloading now - missed my radar completely but is now much appreciated.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#37 Post by mikeb »

Is this for ethernet, I believe its a program for automatically connecting to wireless
nope Lan routers/modems...by the nature of the roaming beastie i don't think auto wireless would be quite as feasible.....mainly due to the common use of encrypted networks.

mike

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#38 Post by Puppyt »

shinobar at the Puppy Linux Japanese Team has released this little gem for puppy4 (http://www.murga-linux.com/puppy/viewtopic.php?t=51630) - is this what you were thinking, nooby and ecomoney, for automatic LAN connection?
shinobar wrote:It automatically starts up the desktop with 800x600 screen size, Universal timezone, us-English keyboards.
You can change the first setup with one window.
The network connection is also automatic in case an eth0 interface is found and DHCP is available.

Quick setup Puppy is easy to make up based on any Puppy v4.x.
Download firstsetup-0.4en.pet from here.
Follow the document.

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#39 Post by jemimah »

The secret of Puppeee and Pwireless2 is to use the latest Dhcpcd. All you need to to is start it and it will know which interfaces have a carrier and automatically request an IP - no configuration necessary, works on both wired or wireless networks.

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#40 Post by 01micko »

jemimah wrote:The secret of Puppeee and Pwireless2 is to use the latest Dhcpcd. All you need to to is start it and it will know which interfaces have a carrier and automatically request an IP - no configuration necessary, works on both wired or wireless networks.
I think as Pwireless2 matures it will become the default networking app in Puppy/Quirky. It is coming along nicely.
Puppy Linux Blog - contact me for access

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#41 Post by mikeb »

The secret of Puppeee and Pwireless2 is to use the latest Dhcpcd. All you need to to is start it and it will know which interfaces have a carrier and automatically request an IP - no configuration necessary, works on both wired or wireless networks.
yer can't beat good software :D

mike

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#42 Post by ttuuxxx »

jemimah wrote:The secret of Puppeee and Pwireless2 is to use the latest Dhcpcd. All you need to to is start it and it will know which interfaces have a carrier and automatically request an IP - no configuration necessary, works on both wired or wireless networks.
Can we have a version we could toss in the startup folder without a gui, so it does that in the background unknown to users. And if users want to manually set they could run the default Pwireless2 GUI?
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#43 Post by jemimah »

Actually, you could already do that with the latest version. Just delete gtrayicon from the startup folder. The frontend and backend are completely separate. I experimented this version with putting the Pwireless2 daemon startup in /etc/init.d but I think I'm going to move it back to /root/Startup because for some reason it adds like 15 seconds to shutdown time, at least on my machine.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#44 Post by mikeb »

Pwireless2 daemon startup in /etc/init.d but I think I'm going to move it back to /root/Startup because for some reason it adds like 15 seconds to shutdown time, at least on my machine
the /startup stuff would get killed along with other X apps but init.d daemons are left running (part of the reason for dirty shutdowns on full installs.)

mike

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#45 Post by jemimah »

I tried kill -9ing them in the shutdown scripts, but that was ineffective. Probably further research is necessary, since it would be nice if restarting X didn't take you offline.

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#46 Post by nooby »

The secret of Puppeee and Pwireless2 is to use the latest Dhcpcd.
sounds nice but as a noob I have no clue on what it is.

using google it says it is something in the terminal that one call up writing Dhcpcd

I should write that down on a paper and test it then.

Just now I try to trippleboot so will take some time.
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
Patriot
Posts: 733
Joined: Thu 15 Jan 2009, 19:04

#47 Post by Patriot »

Hmmm .....
mikeb wrote: the /startup stuff would get killed along with other X apps but init.d daemons are left running (part of the reason for dirty shutdowns on full installs.)
Not necessarily all startup stuffs will be ... daemonized ones without display hooking won't be (ex: daemonized wpa_supplicant doesn't get killed) ... I did have an idea a couple of moons ago to resolve dirty shutdowns for all cases of installs ... Maybe we can pursue it after our next little project is done ?


jemimah,
Startup and init.d scripts are handled differently. For startup scripts, you can just specify-n-forget ... but you may want to implement re-entrant possibility for daemons should X is restarted. For init.d, they should have (minimum) start & stop option flags to be handled by rc.sysinit and rc.shutdown. Please look at CUPS init.d script as an example ... Most of my newer scripts with auto-start ability are able to handle both Startup and init.d invocation ...


Rgds

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#48 Post by jemimah »

Yep that's likely what the problem is - needs a stop option. Back to work for me... :)

[Edit - yup, that solves it. Thanks for the hint - I should have realized that... :idea: ]

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#49 Post by mikeb »

Actually I do find a little quirk in that I have a mini script to check battery status in startup but even though exec and & is used delayedrun hangs around


mike

ps I fix the dirtiness for full installs but for frugal although this is handled the union prevents cleanliness

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#50 Post by ttuuxxx »

jemimah wrote:The secret of Puppeee and Pwireless2 is to use the latest Dhcpcd. .
The thing about the thing, lol Ok i'll stop messing around, to compile the latest Dhcpcd in 2.14X I would have to update glibC, I was lucky enough to do it once, when I changed it from 2 series to 3 series, but anything past that I think I would be pushing it, So that means no auto start for 2,3 series, hmmmm I think we need a different work around for this.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

Post Reply