DreamPi Wi-Fi Configuration Utility

Online games, how to get online, and anything involving Dreamcast online can be discussed here.
User avatar
pcwzrd13
Seen Any Sailors?
Posts: 5566
Contact:

DreamPi Wi-Fi Configuration Utility

Post#1 » Thu Dec 29, 2016 5:56 pm

Introducing the DreamPi Wi-Fi Setup Wizard! I developed this nice little utility which will make setting up a Wi-Fi connection on your DreamPi much easier. No more messing with configuration files! :) Kazade will be including this in the next version of DreamPi but for now I've made an easy-to-install package. Let me know what you think!

Update: DreamPi 1.7 is now available which includes this utility. If you're still on 1.6 or earlier, you can install it manually by following the instructions below.

DOWNLOAD

Instructions:

1. Copy the wificonfig.deb file to the DreamPi SD card (will be labeled as "boot" when plugged into a PC).
2. On the DreamPi, login with username "pi" and password "raspberry".
3. Type "sudo dpkg -i /boot/wificonfig.deb" and hit Enter.

Alternatively you can download and install it directly to your Pi using this command (this assumes your Pi is already connected to the internet):

Code: Select all

wget -q "http://www.dreamcastlive.net/files/Downloads/wificonfig.deb" -O /tmp/wificonfig.deb && cd /tmp && sudo dpkg -i /tmp/wificonfig.deb


The program is now installed! To run it type "sudo wificonfig".

You have the following options. Type the corresponding number and hit Enter.

1. Enable Wi-Fi - Enables the Wi-Fi adapter.
2. Disable Wi-Fi - Disables the Wi-Fi adapter.
3. Add Wi-Fi Network - Adds a Wi-Fi network and enables the Wi-Fi adapter.
4. Delete Wi-Fi Networks - Deletes all Wi-Fi networks.

Wi-Fi setup instructions:

1. Select ‘Add Wi-Fi Network’ by typing 3 and hitting Enter.
2. Select either ‘[1] Secured’ or ‘[2] Open’ depending on if your Wi-Fi network has a password or not.
3. Type in your Wi-Fi SSID (this is the name of your wireless network) and hit Enter.
4. Type in your Wi-Fi password and hit Enter.
(You will not see this step if you selected an Open network)
5. Confirm the information by typing either ‘y’ for yes or ‘n’ for no and hitting Enter.
6. Type ‘sudo reboot’ and hit Enter to restart the Pi.
Last edited by pcwzrd13 on Sun May 21, 2017 10:04 pm, edited 5 times in total.
PSO Characters:
Teal'c - lvl 119 HUcast - GC# 11666
Alto - lvl 39 FOnewm - GC# 12964

YouTube Channel : Dreamcast Live

User avatar
Xerxes3rd
fire
Posts: 78

Re: DreamPi Wi-Fi Configuration Utility

Post#2 » Thu Dec 29, 2016 8:14 pm

Here's a one-liner to install it:

Code: Select all

wget -q "http://dreamcast-talk.com/forum/download/file.php?id=3140&sid=d5fce109417891267867f5bc723227cd" -O /tmp/wificonfig.zip && cd /tmp && unzip -o wificonfig.zip && sudo dpkg -i /tmp/wificonfig.deb

User avatar
pcwzrd13
Seen Any Sailors?
Posts: 5566
Contact:

Re: DreamPi Wi-Fi Configuration Utility

Post#3 » Thu Dec 29, 2016 8:24 pm

Xerxes3rd wrote:Here's a one-liner to install it


That works too. :)
PSO Characters:
Teal'c - lvl 119 HUcast - GC# 11666
Alto - lvl 39 FOnewm - GC# 12964

YouTube Channel : Dreamcast Live

User avatar
BaffleBlend
dark night
Posts: 64
Contact:

Re: DreamPi Wi-Fi Configuration Utility

Post#4 » Fri Dec 30, 2016 12:30 pm

Noice. The difficulty of wi-if setup is the reason I've been holding off on upgrading to DPi 1.6 (other than the whole "it won't even download" thing). Good to know that obstacle's out of the way.
Can play online, but doesn't very often.

Avatar commissioned from Steven Borgers (here's his Tumblr and DeviantArt).

User avatar
pcwzrd13
Seen Any Sailors?
Posts: 5566
Contact:

Re: DreamPi Wi-Fi Configuration Utility

Post#5 » Fri Dec 30, 2016 12:42 pm

BaffleBlend wrote:Noice. The difficulty of wi-if setup is the reason I've been holding off on upgrading to DPi 1.6


Yeah, it's always a pain to reconfigure the Wi-Fi after upgrade or re-flashing. That's one of the reasons I made this. I usually make backups of the configuration files so I can copy them back but even that is a pain.
PSO Characters:
Teal'c - lvl 119 HUcast - GC# 11666
Alto - lvl 39 FOnewm - GC# 12964

YouTube Channel : Dreamcast Live

User avatar
pcwzrd13
Seen Any Sailors?
Posts: 5566
Contact:

Re: DreamPi Wi-Fi Configuration Utility

Post#6 » Fri Dec 30, 2016 3:33 pm

Update: Made some minor tweaks and added support for open Wi-Fi networks. Of course it's never a good idea to have an open Wi-Fi network but this is for those of you living on the edge. :lol:
PSO Characters:
Teal'c - lvl 119 HUcast - GC# 11666
Alto - lvl 39 FOnewm - GC# 12964

YouTube Channel : Dreamcast Live

User avatar
Xerxes3rd
fire
Posts: 78

Re: DreamPi Wi-Fi Configuration Utility

Post#7 » Fri Dec 30, 2016 10:54 pm

I think ideally, something like this would be the best option: https://github.com/billz/raspap-webgui

It starts up hostapd and serves up a nice GUI that you can use via any browser, which you then use to configure WiFi. I tried installing it, though, and it didn't work. I'll have to do more investigation as to why it didn't work, but it'd be awesome to have it as an option.

User avatar
pcwzrd13
Seen Any Sailors?
Posts: 5566
Contact:

Re: DreamPi Wi-Fi Configuration Utility

Post#8 » Fri Dec 30, 2016 11:25 pm

Xerxes3rd wrote:I think ideally, something like this would be the best option: https://github.com/billz/raspap-webgui


That assumes you're already connected to the network with your Pi. I know people that don't have physical access to their router and only have Wi-Fi. They would need to configure it on the Pi itself. If you want to make changes remotely afterwards, you can easily do so by connecting to the Pi via SSH.
PSO Characters:
Teal'c - lvl 119 HUcast - GC# 11666
Alto - lvl 39 FOnewm - GC# 12964

YouTube Channel : Dreamcast Live

User avatar
Xerxes3rd
fire
Posts: 78

Re: DreamPi Wi-Fi Configuration Utility

Post#9 » Sat Dec 31, 2016 10:53 am

pcwzrd13 wrote:That assumes you're already connected to the network with your Pi.


The idea would be that the DreamPi image ships with it installed. That way, you write the DreamPi image to SD card, power up the Pi, and the Pi runs its own WiFi access point. Then, using your PC/phone, you connect to the Pi's AP, then use your browser to reconfigure the Pi's WiFi to connect to your normal WiFi.

Another alternative that occurred to me: have a small script that starts at boot time (something in init.d) that reads WiFi config info from a text file in /boot. So, the process would be something like:

1. Download the latest DreamPi image
2. Write image to SD card.
3. Write small text file with WiFi info in /boot
4. Boot Pi with SD card
5. Script in init.d checks for existence of WiFi config file in /boot, and if it exists, configures WiFi using text file

Edit: My goal with this would be to configure the Pi's WiFi without having to console into it. =)

User avatar
pcwzrd13
Seen Any Sailors?
Posts: 5566
Contact:

Re: DreamPi Wi-Fi Configuration Utility

Post#10 » Sat Dec 31, 2016 1:15 pm

Ah I gotcha. Personally I don't think it's really worth it though. It will increase the size of the DreamPi image, increase boot time and potentially slow things down with the additional process running in the background. It's not like it would save all that much work. It only takes a minute to plug the Pi into a screen, log in, and quickly configure Wi-Fi with the utility.
PSO Characters:
Teal'c - lvl 119 HUcast - GC# 11666
Alto - lvl 39 FOnewm - GC# 12964

YouTube Channel : Dreamcast Live

  • Similar Topics
    Replies
    Views
    Last post

Return to “Online”

Who is online

Users browsing this forum: No registered users