What do I need to type? The stupid carl9170 driver is really crashy, and I hate having to make 40 clicks every 5 minutes to repair the internet, so I'm just gonna stick a script on the desktop labeled "Kick the Wi-Fi adapter" or something like that, that will auto-reconnect everything.

Something like this (UNTESTED! CAUTION! YOU PROBABLY WILL NEED TO DEBUG AND CHANGE THIS!):

I vainly trying to configure a wireless connection.
Went through the entire post and tried a lot but it does not work!
Using the Simple Network setup I can manually establish a connection but not automatically by script!
How should be a simple script?

I vainly trying to configure a wireless connection.
Went through the entire post and tried a lot but it does not work!

It's not necessary to go through the entire post. The complete instructions are in the 11th post on the first page of this thread - "PART 2: WPA encryption."
http://www.murga-linux.com/puppy/viewtopic.php?p=159336#159336
Summary:
- first check your wifi router to see if it uses WPA or WPA2 encryption.
If WPA, use Geany to open /etc/network-wizard/wireless/wpa_profiles/wpa_supplicant.conf
If WPA2, use Geany to open /etc/network-wizard/wireless/wpa_profiles/wpa_supplicant2.conf

Add your SSID ("3210 Phone WLAN SL") and Personal Security Key (0815A31F), and save.
Assuming WPA2, you can now run a script with this -

When I work with the file /etc/network-wizard/wireless/wpa_profiles/wpa_supplicant.conf I had to remaster it.
Otherwise I have to make entries manually every time.
How can I set up the wireless without a remaster?

Can I enter the ssid and the Personal Security Key in the script? If so how?

Hi all. I've used a LOT of information (as well as PET files, etc) from these fora but I've only just now created an account, because I wanted to share something I just found out.

I'm using an old 701 4G Surf Eee PC with its onboard Atheros wireless card, and Puppeee operating system installed. I've been trying all manner of things to connect to the WEP network here at my mum's place, which is shared by a couple of siblings on wifi as well as a couple of ethernet cables. I kept getting stuck somewhere at "WPA Status: Associating" without ever getting to the next step of a DHCP handshake.

That one little line made a world of difference to the supplicant file, and to me not having to sit on the floor in the corner using a 1m ethernet cable. So for anyone in the same situation, don't go downloading drivers, blacklisting modules or anything else I've been wasting my mental health on, try that line in your wpa_supplicant file.

Posted: Fri 05 Jul 2013, 22:36 Post subject:
Easiest way to connect to public wifi via terminal?Subject description: I'm a student trying to learn unix command stuff. How do I connect to wifi from the terminal?

Hey. Sorry to be jumping into this thread without reading the proceeding posts, but this is all a little confusing to me.

As part of learning Unix, I decided to try and switch over as much as possible to the no GUI linux terminal. In class I routinely write programs as text files and send them to the school server via scp and ssh to complete my homework, but that requires that I connect to the wifi. And I only know how to connect to wifi when there's a GUI and I can just click on "connect" and pick a wireless network. All this stuff about scripts and long, multi-step processes is confusing me, but I'd really like to switch over to being totally free of the GUI to get more of a feel for the unix/linux terminal environment.

Can someone explain to me in as simple terms as possible which default puppy Linux Slacko 5.5 program I have to run and what I have to type in to connect to a public (in the sense that I do not need a password to connect, I only need to type in my student ID into the school homepage before I can browse) Wifi network?

Cuz right now auto-connection only seems to work for the no GUI boot when there's an Ethernet cord plugged in before boot.

Posted: Wed 10 Jul 2013, 23:52 Post subject:
Re: Easiest way to connect to public wifi via terminal?Subject description: I'm a student trying to learn unix command stuff. How do I connect to wifi from the terminal?

johnmichaelreed wrote:

Hey. Sorry to be jumping into this thread without reading the proceeding posts, but this is all a little confusing to me.

As part of learning Unix, I decided to try and switch over as much as possible to the no GUI linux terminal. In class I routinely write programs as text files and send them to the school server via scp and ssh to complete my homework, but that requires that I connect to the wifi. And I only know how to connect to wifi when there's a GUI and I can just click on "connect" and pick a wireless network. All this stuff about scripts and long, multi-step processes is confusing me, but I'd really like to switch over to being totally free of the GUI to get more of a feel for the unix/linux terminal environment.

Can someone explain to me in as simple terms as possible which default puppy Linux Slacko 5.5 program I have to run and what I have to type in to connect to a public (in the sense that I do not need a password to connect, I only need to type in my student ID into the school homepage before I can browse) Wifi network?

Cuz right now auto-connection only seems to work for the no GUI boot when there's an Ethernet cord plugged in before boot.

Appreciated.

A script is nothing more than a set of commands, with a little bit of logic thrown on top.
It's exactly the same language and interpreter that you use in the terminal. If you want to learn Unix, you will need to learn shell scripting eventually.

There are two tools you can use, wpa_supplicant/wpa_cli and iwconfig.
iwconfig is more basic but easier to learn. It's a one-time command though, so connections are likely to die.
wpa_supplicant is a daemon (long-running process that provides a system service; often started by boot scripts), which you need to configure and script.

The bare bones (iwconfig) is:

Code:

iwlist scanning #note the interface that has SSIDs reported
#I'll use wlan0 as the interface and SCHOOL as SSID/essid
#change as needed
iwconfig wlan0 essid SCHOOL
iwconfig wlan0 #check if you associated
dhcpcd -h `hostname` -d wlan0 #or udhcpc -h `hostname` -i wlan0

If you want to get it to autoconnect, my scripts here are probably the most basic guide you can find:
http://www.murga-linux.com/puppy/viewtopic.php?p=673363
(Look for a post by me that starts "FYI: Debian uses a trick with wpa_cli that lets you run the DHCP client at the right time, consistently. "; I can't get it to jump to the right post).
Yes, I have tested that method since then. It's what I'm using now.

And then start a browser; if you want CLI only, you may need to install one.
I suggest looking at:
-Lynx: for text mode
-Links2: for text and fast-but-ugly graphics (including in the "framebuffer" and under X)
-elinks: for probably the best straight text mode you can get (including javascript).

I wanted to give Precise a try and have a frugal installation that I boot with a CD. I've tried all 3 of the methods to get a connection to the router. I'm using the ndiswrapper with a wg311v3 driver. *Which has worked at one time.

Hovering my mouse over the wifi icon (In the Tray) it tell me
Active interfaces: none
If I
iwconfig
I get a nice "correct" display about wlan0 being connected to the ESSID that I wanted. So I gave ifconfig a try and
only info for lo
wlan0 and eth0 are not showing up at all.
I looked into a lot of .log files. The /var/log/messages may provide a clue.

on eth0: /var/log has some odd messages at the end
dhcpcd-run-hooks PREINIT runs a again NOCARRIER

It does the same routine for wlan0
then it eth0 suddenly get carrier aqcquired *Note no wired connection
it runs the run-hooks routine and Reason NOCARRIER and then tries waiting for eth and wlan0 to get a carrier. Wlan0 announces it has one
it runs the dhcpcd-run-hooks program reason CARRIER and its lost. Now it run the run-hooks routine reason NOCARRIER and it ends with wlan0
waiting for carrier.
The final line is auth.notice su: + none root:spot

So.... I typed in ifconfig wlan0 up *And it worked!? I suppose I could make a one line bash script saying ifconfig wlan0 up but its making me goofy not understanding why its not working after booting up?

I just rebooted again and did the ifconfig wlan0 up trick. It goes into a series of repeated wlan0 down then requesting ip for router5 I lost count but half a dozen times. Wow its like 2 or 3 minutes of this I get the IP: 10.0.0.36 Aquired (Splexed?)
While this goes on and on I checked out things with iwconfig and saw something I've never seen before. On the last line
Encryption Key:2344.1234.etc it ends with "Security mode :restricted"
After the message about obtaining an ip address everything seems to work. My head is spinning...

Any ideas? Or things to check out that I've missed?

The computer is nothing special. Its a Gateway with a 3Ghz Pent 4. There is 1 Gig of ram.

Thanks for any ideas._________________Science is what we understand well enough to explain to a computer.
Art is everything else we do.
Donald Knuth

In the last couple days several members have provided help with steps to get an interface running (wlan and eth).

This is very good information and guidances. I have use the command line steps in the past as well.

Questions

Doesn't Puppy already have some terminal scripts that can be invoked to do what is shared, herein? Maybe even some scripts which allow parms which carry out the functions automatically?

Are any of the current GUIs also command line with parm utilities such that they will run standalone without X or as a GUI in X? Are there explanations, or documents, or threads which outline the actions of these GUIs when run from the console?

I do realize that, both, the Puppy distros and their versions, as well as the GUI utility versions, themselves, can impact the responses to these questions. But, the issues that are asked may be being addressed as they are basic and generic.

Thanks in advance for any information or pointers to such._________________Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Enginesor use DogPile

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum