Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 Nov 2017, 04:25
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Adding 802.1x authentication to the connection wizard
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
octobclrnts


Joined: 15 Apr 2007
Posts: 36

PostPosted: Mon 16 Apr 2007, 01:44    Post subject:  Adding 802.1x authentication to the connection wizard  

At my university, they give us one ethernet jack to plug into per person. This connects to their servers and you must authenticate yourself with a username and password (they want you to use this cruddy Aegis client if you use windows even though this functionality is built directly into windows...but that's a different bone to pick with a different set of people...). This can be done in linux through the use of WPA Supplicant which handily comes with Puppy (at least from 2.14 and up). Is it possible that the connection wizard could be updated to allow wired connections to use 802.1x authentication and save that as part of the profile so that I don't have to manually do it each time I start Puppy. This may end up helping others as well and the Puppy product can be sold to more novice users who don't know where to begin with WPA Supplicant.

On a side note...I know that puppy runs several startup scripts at boot time. I would like to be able to run this command:
Quote:
wpa_supplicant -c /root/.wpa_supplicant.conf -i eth0 -D wired -B && dhcpcd eth0
at startup if there is an "alive connection" in eth0. Then after that is successful I would like to run the following script:
Quote:
#! /bin/bash
while [ 1 ]; do
sleep 3600
wpa_cli reassociate
done

The reason for the script is that you have to reassociate every so often with the servers to renew your IP address. Could someone who is a little less of a novice with Linux advise me on how to do that? Thanks for your help.

_________________
Puppy 2.17
HP Pavillion dv1000
Ram 512MB
Proc 1.5GHz Pentium M
Back to top
View user's profile Send private message 
bostonvaulter


Joined: 26 Sep 2006
Posts: 269

PostPosted: Mon 16 Apr 2007, 01:58    Post subject:  

I would also like to see that option in the network wizard. As for running those commands at boot there are two main places. /etc/rc.d/rc.local and /root/.xinitrc

You'd probably want to use /etc/rc.local

Simply add the code you want in there and it will run upon bootup. i'm not sure how to tell if eth0 is "alive", though I wish I did.

Jason

_________________

Back to top
View user's profile Send private message 
octobclrnts


Joined: 15 Apr 2007
Posts: 36

PostPosted: Mon 16 Apr 2007, 02:02    Post subject:  

All I know is that the connection wizard can tell so there must be some way...

Is there a reason why I should choose one of those over the other. Also, If I choose .xinitrc, does it matter where in the file it goes? As you can probably tell, bash scripting is not my forte.

_________________
Puppy 2.17
HP Pavillion dv1000
Ram 512MB
Proc 1.5GHz Pentium M
Back to top
View user's profile Send private message 
bostonvaulter


Joined: 26 Sep 2006
Posts: 269

PostPosted: Mon 16 Apr 2007, 02:17    Post subject:  

for this usage I would strongly suggest rc.local. If the command you were running started a gui, then you would need to use .xinitrc

If you use .xinitrc it can go anywhere before your window manager is launched.

Jason

_________________

Back to top
View user's profile Send private message 
octobclrnts


Joined: 15 Apr 2007
Posts: 36

PostPosted: Tue 17 Apr 2007, 07:20    Post subject:  

Ok, I got everything to work by placing these commands in rc.local:
Quote:
if [ "`ifplugstatus eth0 | grep "link beat detected"`" ];then
if [ "`ifplugstatus-0.25 eth0 | grep "link beat detected"`" ];then
if [ "`ifplugstatus eth0 | grep "link beat detected"`" ];then
if [ "`ifplugstatus-0.25 eth0 | grep "link beat detected"`" ];then
/bin/echo > /dev/console
/bin/echo -n "Attempting to authenticate with Pitt's wired network..." > /dev/console
/usr/bin/authenticate.sh
fi
fi
fi
fi


I stole that bit of if nesting from the network wizard (slightly modified). If you replace "eth0" with whatever interface you are testing, it will tell you if it is connected (but doesn't have to be authenticated). I'm not sure why there are so many nested statements, but since it worked, I decided not to mess with it...yet. I hope this helps you too.

Edit: unfortunately the tabbed formatting can't be seen in the quote, but I think it's still readable.

_________________
Puppy 2.17
HP Pavillion dv1000
Ram 512MB
Proc 1.5GHz Pentium M
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

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


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0634s ][ Queries: 13 (0.0091s) ][ GZIP on ]