WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: I don’t understand how to set up wifi  (Read 3371 times)

Offline heiheshang

  • Newbie
  • *
  • Posts: 24
I don’t understand how to set up wifi
« on: January 07, 2024, 11:02:45 AM »
I can't understand how to set up Wi-Fi without a monitor for Raspberry Pi. I loaded the tinycore 14 image onto an SD card, changed the second partition, downloaded the Wi-Fi files, but I can't understand where the wpa_supplicant.conf file should be, where on the SD card should this file be located.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: I don’t understand how to set up wifi
« Reply #1 on: January 07, 2024, 11:09:40 AM »
You can tell wpa_supplicant where to find the conf file, for example:
Code: [Select]
sudo cp /mnt/mmcblk0p2/conf/wpa_configure.conf /etc/wpa_configure.conf
sudo wpa_supplicant -B -Dwext -i wlan0 -c/etc/wpa_configure.conf

Offline heiheshang

  • Newbie
  • *
  • Posts: 24
Re: I don’t understand how to set up wifi
« Reply #2 on: January 07, 2024, 11:15:45 AM »
You can tell wpa_supplicant where to find the conf file, for example:
Code: [Select]
sudo cp /mnt/mmcblk0p2/conf/wpa_configure.conf /etc/wpa_configure.conf
sudo wpa_supplicant -B -Dwext -i wlan0 -c/etc/wpa_configure.conf
I don't understand. I don't have such a folder on my card.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: I don’t understand how to set up wifi
« Reply #3 on: January 07, 2024, 11:27:13 AM »
It was just an example - you can save files anywhere you like.

Offline heiheshang

  • Newbie
  • *
  • Posts: 24
Re: I don’t understand how to set up wifi
« Reply #4 on: January 07, 2024, 09:06:46 PM »
It was just an example - you can save files anywhere you like.
You probably didn't understand me. I can't get to the computer itself. I can do all the monipulations only on the SD card. Your scenario suggests that I am on the device. The device has neither the keyboard nor the monitor.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1267
Re: I don’t understand how to set up wifi
« Reply #5 on: January 07, 2024, 10:10:37 PM »
You have 2 options

1) connect a keyboard and monitor to configure WiFi.  Then disconnect everything.
2) connect using Ethernet, setup WiFi,  then disconnect the Ethernet and reboot.

Offline heiheshang

  • Newbie
  • *
  • Posts: 24
Re: I don’t understand how to set up wifi
« Reply #6 on: January 07, 2024, 10:17:59 PM »
You have 2 options

1) connect a keyboard and monitor to configure WiFi.  Then disconnect everything.
2) connect using Ethernet, setup WiFi,  then disconnect the Ethernet and reboot.
It seems to me to be a way to write down the settings on the SD card. I do this with Raspberry OS, probably the same can be done with Tinycore

Offline CentralWare

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 776
Re: I don’t understand how to set up wifi
« Reply #7 on: January 07, 2024, 10:34:42 PM »
@heiheshang: Welcome to the forum!

Maybe if we knew a few additional details we'd be able to assist you better.

1. Which Raspberry Pi (Pi4, Pi0-W, Pi0-2W, etc.) are you working with?
2. Which PiCore (version) are you working with?
3. What reason(s) prevent you from being able to use a keyboard and a monitor on the Raspberry Pi?

If we could visualize the environment you're working with, there may be a quick and reasonably painless solution.

Offline heiheshang

  • Newbie
  • *
  • Posts: 24
Re: I don’t understand how to set up wifi
« Reply #8 on: January 07, 2024, 11:14:53 PM »
@heiheshang: Welcome to the forum!

Maybe if we knew a few additional details we'd be able to assist you better.

1. Which Raspberry Pi (Pi4, Pi0-W, Pi0-2W, etc.) are you working with?
2. Which PiCore (version) are you working with?
3. What reason(s) prevent you from being able to use a keyboard and a monitor on the Raspberry Pi?

If we could visualize the environment you're working with, there may be a quick and reasonably painless solution.
1. raspberry pi 3b
2. 14.0.1
3. I have no HDMI cable to connect. There is LCD screen, but it is difficult to connect it

Offline heiheshang

  • Newbie
  • *
  • Posts: 24
Re: I don’t understand how to set up wifi
« Reply #9 on: January 08, 2024, 04:40:53 AM »
Connected to the router with a cable. I accessed the device via ssh. I see that the driver for the Wi-Fi card has not loaded. Which driver and how should I download it?
tc@box:/etc$ sudo /usr/local/bin/wifi.sh
No wifi devices found!

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 722
Re: I don’t understand how to set up wifi
« Reply #10 on: January 08, 2024, 06:57:04 AM »
The picore isn't built what you expect.

First you need to connect to a screen with hdmi and usb keyboard, and then you can expand the sd card, and set the configurations like you want and save that, so next time you boot the system your settings will be populated with example with ssid and password, and so on.
And then you can disconnect the screen and keyboard and just connect with ssh from the network.
And i found this...you may use this..But you need some linux machine to do this:
Dont' know why this is not imported into the new wiki.. some web pages missing from the old wiki.

https://web.archive.org/web/20191011060430/http://wiki.tinycorelinux.net/picore:pi_zero_w_wifi
« Last Edit: January 08, 2024, 07:11:05 AM by patrikg »

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 722
Re: I don’t understand how to set up wifi
« Reply #11 on: January 08, 2024, 08:21:03 AM »
And when searching in this forum, you may find some another users asked the same question.

https://forum.tinycorelinux.net/index.php/topic,21134.msg145053.html

Offline CentralWare

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 776
Re: I don’t understand how to set up wifi
« Reply #12 on: January 08, 2024, 08:59:55 AM »
@heiheshang: Since you can SSH into the device, let's get you set up.

1. Partition and Format your SD card's remaining, unused space (which will become mmcblk0p2)
2. Enter blkid | grep mmcblk and you should see mmcblk0p2 listed; the UUID number here is required below where it says [YourUUID]
3. Edit /mnt/mmcblk0p1/cmdline.txt and add this to the end of the existing string of text:
Code: [Select]
tce=UUID="[YourUUID]" opt=UUID="[YourUUID]" home=UUID="[YourUUID]"
Once finished, reboot and then log back into the device.

Run the program tce-ab and Search (one at a time) for each of the following extensions and Install them:
wifi
wireless_tools
wireless
(and select wireless-#.#.#-piCore-v#.tcz)
wpa_supplicant
...and I think RasPi3's had a special firmware package, so search for
rpi3b
...it will begin with firmware-rpi3b-something if it still exists.

You should now be able to test for wifi connectivity.  If everything done above is successful, your extensions should be available automatically after you reboot again.  IF SO, return here to the forum - there have to be plenty of RasPi posts on how to set up and PERSIST your wpa settings for every time you reboot.

Offline heiheshang

  • Newbie
  • *
  • Posts: 24
Re: I don’t understand how to set up wifi
« Reply #13 on: January 09, 2024, 02:51:17 AM »
And when searching in this forum, you may find some another users asked the same question.

https://forum.tinycorelinux.net/index.php/topic,21134.msg145053.html
my question is not how to turn on wifi, but how to do it on the sd card, and not on the device itself. All recipes work if you are connected to the device.

Offline heiheshang

  • Newbie
  • *
  • Posts: 24
Re: I don’t understand how to set up wifi
« Reply #14 on: January 09, 2024, 02:51:57 AM »
@heiheshang: Since you can SSH into the device, let's get you set up.

1. Partition and Format your SD card's remaining, unused space (which will become mmcblk0p2)
2. Enter blkid | grep mmcblk and you should see mmcblk0p2 listed; the UUID number here is required below where it says [YourUUID]
3. Edit /mnt/mmcblk0p1/cmdline.txt and add this to the end of the existing string of text:
Code: [Select]
tce=UUID="[YourUUID]" opt=UUID="[YourUUID]" home=UUID="[YourUUID]"
Once finished, reboot and then log back into the device.

Run the program tce-ab and Search (one at a time) for each of the following extensions and Install them:
wifi
wireless_tools
wireless
(and select wireless-#.#.#-piCore-v#.tcz)
wpa_supplicant
...and I think RasPi3's had a special firmware package, so search for
rpi3b
...it will begin with firmware-rpi3b-something if it still exists.

You should now be able to test for wifi connectivity.  If everything done above is successful, your extensions should be available automatically after you reboot again.  IF SO, return here to the forum - there have to be plenty of RasPi posts on how to set up and PERSIST your wpa settings for every time you reboot.
I have no problems with this.