pUPnGO with Wireless on a Thin Client

For talk and support relating specifically to Puppy derivatives
Post Reply
Message
Author
puppyuser7
Posts: 1
Joined: Wed 30 May 2012, 19:40

pUPnGO with Wireless on a Thin Client

#1 Post by puppyuser7 »

Hey all, I'm trying to get pUPnGO up and running with wireless on a USB for an old thin client that will be used primarily for running cron jobs 24/7.

I don't need a GUI, everything done from the command line is fine, just will be running cron jobs.

Any tips/suggestions?

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#2 Post by darkcity »

hi PuppyUser7,

Welcome to the kennels.

the following topic may be of use-

How to configure wifi from the commandline
http://murga-linux.com/puppy/viewtopic.php?t=22469

8)

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#3 Post by Keef »

Most of it will have to be done manually.
I got wireless working on pupngo by first setting it up on the standard 412 (or a barebones version) that pupngo is (mainly) based on.
Copied the required driver and other binaries, config files etc and put them in a sfs (or can be added to main sfs) with a script I found in the forum to set it all up (very minor changes by me) :

Code: Select all

#!/bin/sh
## modify this script to include your wifi interface name (instead of "ath0")
## and wifi driver type (instead of "madwifi").
# Orginal script was provided by Tempestuous and modified by JustGreg for
# his network use.  Modified 12 May 2008 for testing of Dingo kernel 2.6.25

echo "Configuring Wireless LAN with wpa_supplicant"
## bring up the wireless interface, unconfigured
echo
echo "Starting up wlan0"
ifconfig wlan0 up
echo " "
echo "Now starting wpa_supplicant"
## first remove stale wpa_supplicant file if it exists
 if [ -e /var/run/wpa_supplicant/* ]; then rm /var/run/wpa_supplicant/*; fi
 wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant.conf -qq -B
# sleep 60 used for testing.  For normal use, sleep 60 can be reduced
sleep 20
echo " "
# wp_cli is for testing.  However, it does show that wpa connect for 
#normal use.  
#wpa_cli status
echo " "
echo "Running dhcpcd address service"
## for automatic IP
## first remove stale existings dhcpcd files if exists
# for puppy 2.17 use if [ -e /var/run/*.pid ]; then rm /var/run/*.pid; fi
# for puppy 3.00. Kill any active dhcpcd processes
dhcpcd -k wlan0
if [ -e /var/run/*.pid ]; then rm /var/run/*.pid; fi
rm /var/run/dhcpcd-*.*
dhcpcd -t 30 -h puppypc -d wlan0
sleep 5
## or for static IP
## modify /etc/resolv.conf to include your nameservers
#ifconfig ath0 192.168.0.xx broadcast 192.168.0.255 netmask 255.255.255.0
#route add default gw 192.168.0.1 ath0   # or whatever your router's IP is
echo 
echo `ifconfig wlan0 | grep '\<inet\>' | sed -n '1p' | tr -s ' ' | cut -d ' ' -f3 | cut -d ':' -f2`

I managed it initially by trial and error - went for the Out house sink approach to start with (copied anything vaguely wireless related) then whittled it down.
I'm sure you'll get there quicker than I did, and there are enough people who know more than me who can help.

Post Reply