• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login

[SOLVED][Feature Request]Wifi Key import via /boot/wifikeyfile.txt

Scheduled Pinned Locked Moved Ideas and Development
wifi configwifiimprovementskey import
26 Posts 9 Posters 48.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H
    herb_fargus administrators @RetroProgramming
    last edited by 13 Nov 2016, 15:10

    @RetroProgramming use notepad++ with Unix line endings

    If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

    Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

    1 Reply Last reply Reply Quote 0
    • R
      RetroProgramming
      last edited by 13 Nov 2016, 15:41

      I know what to do, but do you really want to tell every avarage Windows-User to install an extra tool to edit this tiny file?

      1 Reply Last reply Reply Quote 0
      • B
        BuZz administrators
        last edited by 13 Nov 2016, 16:09

        I will sort it.

        To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

        1 Reply Last reply Reply Quote 0
        • B
          BuZz administrators
          last edited by 13 Nov 2016, 19:48

          Should handle CRLF files now.

          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

          R 1 Reply Last reply 19 Nov 2016, 10:35 Reply Quote 2
          • D
            DP
            last edited by 13 Nov 2016, 20:07

            Thanks for adding this great feature so we can configure wifi networks without a keyboard! At the moment you can only connect to one wifi network with the script, would it possible to reprogram it to define a number of wifi networks to choose from? I would like this feature as sometimes I want to take my retropie to a friend's house or use the wifi hotspot on my phone and this would save bringing a keyboard along.

            Thanks again,
            DP

            1 Reply Last reply Reply Quote 0
            • B
              BuZz administrators
              last edited by BuZz 13 Nov 2016, 20:10

              @DP That is beyond the scope of what I think would be useful for most people vs effort to implement. If you want to preconfigure your system for multiple wifi networks you can do so manually by editing /etc/wpa_supplicant/wpa_supplicant.conf and add some additional network blocks.

              To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

              1 Reply Last reply Reply Quote 0
              • D
                DP
                last edited by 13 Nov 2016, 21:44

                @BuZz That's fair enough. Thanks for the suggestion, I was able to pre-configure my wifi networks manually although I had to set update_config=0 otherwise the file would get overwritten. It seems like a bit of an oversight that when switching networks it always asks for a psk even if it already provided within wpa_supplicant.conf but it works for my purposes now so I'm happy!

                Thanks for your help!

                C 1 Reply Last reply 19 Nov 2016, 06:50 Reply Quote 0
                • C
                  cyperghost @DP
                  last edited by cyperghost 19 Nov 2016, 06:50

                  @DP Sorry for being late .... you can modify the bash file I've created in first posting.
                  This will append wifi settings to wpa_supplicant. The PW will also be hashed btw...

                  The solution @BuZz created is a fine (to be true finest) way to connect to network. After network is established you can do anything you want.... for example create a bash file by yourself to add more networks and just put it in ES config menu :)

                  1 Reply Last reply Reply Quote 0
                  • R
                    RetroProgramming @BuZz
                    last edited by 19 Nov 2016, 10:35

                    @BuZz said in [SOLVED][Feature Request]Wifi Key import via /boot/wifikeyfile.txt:

                    Should handle CRLF files now.

                    Thanks, looks good now.

                    1 Reply Last reply Reply Quote 0
                    • C
                      cyperghost
                      last edited by 7 Jan 2017, 00:02

                      For info:
                      you can use this side to create hashed keys
                      https://www.wireshark.org/tools/wpa-psk.html

                      Just enter SSID and PW and it will generate hashed key.
                      Knowledge is power!

                      1 Reply Last reply Reply Quote 0
                      • J
                        jseibert81
                        last edited by 11 Mar 2017, 03:47

                        Guys. There is no obvious explanation as to how or where to put this file. I see the scripts an that is it. I am not able to use the pi finder utility. I am trying to manually add the wifikeyfile.txt. How?

                        H 1 Reply Last reply 11 Mar 2017, 04:40 Reply Quote 0
                        • H
                          herb_fargus administrators @jseibert81
                          last edited by 11 Mar 2017, 04:40

                          @jseibert81 sure there is. Right in the docs:

                          https://retropie.org.uk/docs/Wifi/#connecting-to-wifi-without-a-keyboard

                          If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

                          Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

                          J 1 Reply Last reply 11 Mar 2017, 05:16 Reply Quote 1
                          • J
                            jseibert81 @herb_fargus
                            last edited by 11 Mar 2017, 05:16

                            @herb_fargus Thank you! I guess mine is not WPA, I will have to get a keyboard. Awesome forum.

                            H 1 Reply Last reply 11 Mar 2017, 05:22 Reply Quote 0
                            • H
                              herb_fargus administrators @jseibert81
                              last edited by 11 Mar 2017, 05:22

                              @jseibert81 if you are using wep i would strongly recommend you switch to WPA if you have control over your router . Wep can be cracked in a heartbeat.

                              If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

                              Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

                              1 Reply Last reply Reply Quote 0
                              • M
                                MEPoss
                                last edited by 19 May 2017, 12:51

                                I tried to connect my Retropie to my Wi-Fi copying a wifikeyfile.txt in the boot folder using:

                                ssid="My Wifi"
                                psk="My Psw"

                                but it does not work. Any suggestion?

                                B 1 Reply Last reply 19 May 2017, 13:44 Reply Quote 0
                                • B
                                  backstander @MEPoss
                                  last edited by 19 May 2017, 13:44

                                  @MEPoss
                                  We'll need more information to help.
                                  Make sure you're using WPA (not WEP) and that your network is not use a Hidden SSID (I'm not sure if that's supported) and make sure that your quotes are exactly " and not “ or ”.
                                  Also I would suggest that you power cycle your wireless router (especially if it has been up for months/years). Which means to unplug the power, count to 10 (wait 10 seconds), then plug it back in and wait for it to boot then try to connect to it again.

                                  1 Reply Last reply Reply Quote 0
                                  • 4
                                    4nndee
                                    last edited by 28 Dec 2017, 17:50

                                    Sorry for bringing this up again, but I might have found another issue regarding special characters. My WPA2 passphrase contains a "|" which is (according to the standard) an allowed character. Importing the file gave me an error. I checked wpa_supplicant.conf and noticed that the SSID was imported correctly but the passphrase not. The passphrase was only imported up to the character before the "|". I entered it manually with a keyboard and then it worked.

                                    I would also recommend to implement an automatically deletion of the wifikeyfile.txt after a successful import.

                                    1 Reply Last reply Reply Quote 0
                                    • C
                                      cyperghost
                                      last edited by 28 Dec 2017, 22:51

                                      Instead oft using standard Charakters you can try to hash the key. So the key will be transformed to a HEX string that contains only Charakters from 0 to 9 and A to F

                                      Im still on vacation ;D

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post

                                      Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                      Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.

                                        This community forum collects and processes your personal information.
                                        consent.not_received