LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-28-2023, 02:58 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Rep: Reputation: 255Reputation: 255Reputation: 255
How to setup the wifi into DEBIAN Raspbian?


Hello,

How to setup the wifi into DEBIAN Raspbian? (wlan0)

There is no raspi-config ...

Kind regards
 
Old 09-28-2023, 04:51 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,445

Rep: Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340
You shouldn't have to. There's networkmanager in their window manager which lets you choose a network and enter a password.

If there's no raspi-config it makes me wonder how complete your install is. That would be a very good reason for lack of wifi.
 
Old 09-28-2023, 06:49 AM   #3
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,514

Rep: Reputation: Disabled
These may help...

https://wiki.debian.org/WiFi/HowToUse

https://raspberrytips.com/configure-wifi-debian/
 
Old 09-28-2023, 08:40 AM   #4
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
systemctl replaces wpa_supplicant right ?
 
Old 09-28-2023, 09:28 AM   #5
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,514

Rep: Reputation: Disabled
No idea - I use Devuan these days, & it 'just works' for me....
 
Old 09-28-2023, 01:41 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,781

Rep: Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935
Quote:
How to setup the wifi into DEBIAN Raspbian?
Raspbian is based upon debian and is now called Pi OS. There is also a debian arm version. It is important to know the actual version you are running.

If you are actually running raspbian there should be a network icon in the upper panel next to the clock. If you click on that you should be able to setup wifi. Do you have a directory/file like

/etc/wpa_supplicant/wpa_supplicant.conf
 
Old 10-23-2023, 06:34 AM   #7
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
This is the command to bring up the wifi :

ip link set wlan0 up


https://wiki.somlabs.com/index.php/C...wpa-supplicant


/etc/wpa_supplicant/wpa_supplicant-wlan0.conf

Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1

network={
  ssid="<NETWORK_SSID>"
  psk="<NETWORK_PASSWORD>"
  key_mgmt=WPA-PSK
  proto=WPA2
  pairwise=CCMP TKIP
  group=CCMP TKIP
  scan_ssid=1
}

Create the /etc/systemd/network/25-wlan.network file:
Code:
[Match]
Name=wlan0

[Network]
DHCP=ipv4
Enable the wpa_service for the wlan0 interface:
Restart the systemd-networkd and wpa_supplicant services:

Code:
systemctl enable wpa_supplicant@wlan0.service
systemctl restart systemd-networkd.service
systemctl restart wpa_supplicant@wlan0.service
 
Old 10-23-2023, 09:45 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,445

Rep: Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340
Do you know Debian bookworm is out and presumably available for all boxes? For My Pi 4 it's 2023-10-10-raspios-bookworm-arm64-full.img and for sure it does have networkmanager.
 
Old 10-23-2023, 10:51 AM   #9
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 496

Rep: Reputation: 182Reputation: 182
PI OS Bookworm is out and I have the 64bit version running on a PI-4. Networking has 'changed' now that they went to Network Manager. Use the application 'nmtui' to configure your networking now instead of raspi-config or modifying the files directly with a text editor. BTW raspi-config is still in the new PI OS. Not sure why your not seeing it. I REALLY dislike going to NM as I was used to the old way (could jump into the files) which worked just fine. To change to a different network model just for the heck of it seems stupid to me . Not broke, ... so why 'fix' it?

It is supposed to work on all platforms (pick the 32bit unless rpi-4, rpi-5).

Last edited by rclark; 10-23-2023 at 10:59 AM.
 
Old 10-23-2023, 02:18 PM   #10
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,888
Blog Entries: 28

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
You can setup wifi when you Imager. That way when you first boot rpios it will already be working.
The new rpios Bookworm is nice, although it does have bugs.
One of the nice things about it, both Chromium and Firefox support drm.
 
Old 10-23-2023, 02:39 PM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,445

Rep: Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340
On RPi OS boo0kworm, you can simply dd the image,
Code:
dd if=<image> of=/dev/sdX bs=1M status=progress
Point at the sdcard, not any partition of it.
and the first boot follow the prompts to set up the network. If you know your own SSID and password, it's a breeze.
 
Old 10-23-2023, 02:48 PM   #12
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 496

Rep: Reputation: 182Reputation: 182
Quote:
You can setup wifi when...
What good does that do when you don't even have a 'user' setup yet? Since I run most of my RPIs headless, I used to be able to to just ssh (place ssh empty file in /boot and after finding which IP was assigned) into the RPI to set it up with default user 'pi'. Now, with Bookworm, I have to setup a keyboard/mouse/display to initially configure the RPI with a user and the networking. . Doable, but not as easy as it was before Bookworm.
 
Old 01-03-2024, 10:18 PM   #13
niceflipper8827
Member
 
Registered: Sep 2023
Location: Washington State,USA
Distribution: ChromeOS,SlackWare,Android and Lubuntu
Posts: 68

Rep: Reputation: 2
Just because pure Debian might be a little more challenging than Rasbian doesn't mean anyone who is up for a challenge could even possibly turn out to be a very beneficial learning experience for the OP. I know that when I first tried Linux especially Debian and was damn near frightened right back to MS Windows but I powered right on ahead and wound up not only learning how things are done in a different operating environment but also myself as a person and my tenacity.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Raspbian GNU/Linux upgrade from Stretch to Raspbian Buster 10 LXer Syndicated Linux News 0 07-26-2019 06:12 PM
LXer: Raspbian GNU/Linux upgrade from Jessie to Raspbian Stretch 9 LXer Syndicated Linux News 0 03-01-2018 07:50 PM
LXer: Raspbian GNU/Linux upgrade from Wheezy to Raspbian Jessie 8 LXer Syndicated Linux News 1 06-09-2016 12:12 PM
Maxxter wifi adapter on Raspbian wheezy albertjan Debian 2 04-18-2015 05:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration