(resolved) Wifi Issues

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Locked
ynowifi

(resolved) Wifi Issues

Post by ynowifi »

Hi,

My wifi password which is a 63 character randomly generated ASCII string does not seem to work with the DietPi config. An example of the wifi passwords that I use are:

v7*9h4-Vd">/d!3|_}`|~@%8jbtPROjE"y5?<NV,1&\Eh+/,g}d!A,u>((~$hs,

And can be obtained from https://www.grc.com/passwords.htm.

I'm wondering, is it simply a case of inserting a number of escape characters, enclosing it in double quotes?

Thanks in advance.
Last edited by ynowifi on Wed Jul 22, 2015 8:14 pm, edited 1 time in total.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Wifi Issues -

Post by Fourdee »

ynowifi wrote: I'm wondering, is it simply a case of inserting a number of escape characters, enclosing it in double quotes?
Hi why no wifi :P,

The code for this function uses double quotes to change the values, so you'll need to work around that:

Code: Select all

	Change_WifiKey(){
		OPTION=$(whiptail --inputbox "Enter the Access Key (WPA/WEP)." 8 60 "$WIFI_KEY" --title "Set Your Acccess Key" 3>&1 1>&2 2>&3)
		CHOICE=$?
		if (( $CHOICE == 0 )); then
			sed -i "/wireless-key/c\wireless-key $OPTION" /etc/network/interfaces
			sed -i "/wpa-psk/c\wpa-psk $OPTION" /etc/network/interfaces
		fi
	}
Your best bet would be to manually add the details to /etc/network/interfaces directly.

Code: Select all

nano /etc/network/interfaces
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
ynowifi

Re: Wifi Issues -

Post by ynowifi »

Thanks Fourdee! I do apologise about my username :lol:, it was fitting at the time.

I'll try that and get back to you with results!
ynowifi

Re: Wifi Issues -

Post by ynowifi »

Hi Fourdee! Issue resolved with copious amounts of escape characters! Thanks for your assistance. :D
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Wifi Issues -

Post by Fourdee »

ynowifi wrote:Hi Fourdee! Issue resolved with copious amounts of escape characters! Thanks for your assistance. :D
lol :o , good to hear you got it working :)
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Locked