#ProxMox WLAN install

1 messages ยท Page 1 of 1 (latest)

tranquil barn
#

root@pveconfig:~/usb/RTL8188 8192EUS_linux_v4.3.0.4_11485.20140519# sudo apt-get install firmware-realtek
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package firmware-realtek is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
pve-firmware

E: Package 'firmware-realtek' has no installation candidate

#

it does not look happy

#

I did find this and tried it already, couldn't work it out

twin ferry
#

You have to add non-free to your /etc/apt/sources.list and run apt update. See here: https://wiki.debian.org/SourcesList.
Should look something like this

deb http://ftp.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://ftp.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware

deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription

non-free shouldn't be necessary for this (see link for difference) but good to have for microcode updates and stuff like that.
sudo is not necessary. You are root. Just apt is the more common way nowadays.

tranquil barn
#
root@pveconfig:~/usb/RTL8188 8192EUS_linux_v4.3.0.4_11485.20140519# nano /etc/apt/sources.list
root@pveconfig:~/usb/RTL8188 8192EUS_linux_v4.3.0.4_11485.20140519# apt update
Hit:1 http://security.debian.org bookworm-security InRelease
Hit:2 http://ftp.au.debian.org/debian bookworm InRelease
Hit:3 http://ftp.au.debian.org/debian bookworm-updates InRelease
Get:4 http://security.debian.org bookworm-security/non-free-firmware amd64 Packages [688 B]
Get:5 http://security.debian.org bookworm-security/non-free-firmware Translation-en [472 B]
Get:6 http://ftp.au.debian.org/debian bookworm/non-free amd64 Packages [96.9 kB]
Get:7 http://ftp.au.debian.org/debian bookworm/non-free Translation-en [66.8 kB]
Get:8 http://ftp.au.debian.org/debian bookworm/non-free-firmware amd64 Packages [6,208 B]
Get:9 http://ftp.au.debian.org/debian bookworm/non-free-firmware Translation-en [20.8 kB]
Err:10 https://enterprise.proxmox.com/debian/ceph-quincy bookworm InRelease
  401  Unauthorized [IP: 103.76.41.50 443]
Err:11 https://enterprise.proxmox.com/debian/pve bookworm InRelease
  401  Unauthorized [IP: 103.76.41.50 443]
Reading package lists... Done
E: Failed to fetch https://enterprise.proxmox.com/debian/ceph-quincy/dists/bookworm/InRelease  401  Unauthorized [IP: 103.76.41.50 443]
E: The repository 'https://enterprise.proxmox.com/debian/ceph-quincy bookworm InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/bookworm/InRelease  401  Unauthorized [IP: 103.76.41.50 443]
E: The repository 'https://enterprise.proxmox.com/debian/pve bookworm InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
#
root@pveconfig:~/usb/RTL8188 8192EUS_linux_v4.3.0.4_11485.20140519# sudo apt install firmware-realtek
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  proxmox-default-kernel proxmox-kernel-6.5 proxmox-ve pve-firmware
The following NEW packages will be installed:
  firmware-realtek
0 upgraded, 1 newly installed, 4 to remove and 0 not upgraded.
Need to get 1,491 kB of archives.
After this operation, 220 MB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://ftp.au.debian.org/debian bookworm/non-free-firmware amd64 firmware-realtek all 20230210-5 [1,491 kB]
Fetched 1,491 kB in 1s (2,913 kB/s)
W: (pve-apt-hook) !! WARNING !!
W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!
W: (pve-apt-hook)
W: (pve-apt-hook) If you really want to permanently remove 'proxmox-ve' from your system, run the following command
W: (pve-apt-hook)       touch '/please-remove-proxmox-ve'
W: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-package
W: (pve-apt-hook) and repeat your apt invocation.
W: (pve-apt-hook)
W: (pve-apt-hook) If you are unsure why 'proxmox-ve' would be removed, please verify
W: (pve-apt-hook)       - your APT repository settings
W: (pve-apt-hook)       - that you are using 'apt full-upgrade' to upgrade your system
E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook
twin ferry
#

Remove the enterprise repo from your configs

#

Check with grep -R . /etc/apt/sources.list*

#

Basically your PVE was never properly configured.

tranquil barn
twin ferry
#

Indeed.

tranquil barn
#

what wouldn't be configured on it

twin ferry
#

Well you can't update for one.

#

You can also check in the GUI via node > Updates > Repositories and node > Summary > Repository Status

tranquil barn
#
twin ferry
#

Why link this?

tranquil barn
#

I found it, wanted to save the link. Shows I need to disable enterprise and enable no subscription

#
root@pveconfig:~/usb/RTL8188 8192EUS_linux_v4.3.0.4_11485.20140519# sudo apt install firmware-realtek
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  proxmox-default-kernel proxmox-kernel-6.5 proxmox-ve pve-firmware
The following NEW packages will be installed:
  firmware-realtek
0 upgraded, 1 newly installed, 4 to remove and 0 not upgraded.
Need to get 0 B/1,491 kB of archives.
After this operation, 220 MB disk space will be freed.
Do you want to continue? [Y/n] y
W: (pve-apt-hook) !! WARNING !!
W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!
W: (pve-apt-hook)
W: (pve-apt-hook) If you really want to permanently remove 'proxmox-ve' from your system, run the following command
W: (pve-apt-hook)       touch '/please-remove-proxmox-ve'
W: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-package
W: (pve-apt-hook) and repeat your apt invocation.
W: (pve-apt-hook)
W: (pve-apt-hook) If you are unsure why 'proxmox-ve' would be removed, please verify
W: (pve-apt-hook)       - your APT repository settings
W: (pve-apt-hook)       - that you are using 'apt full-upgrade' to upgrade your system
E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook
twin ferry
#

Yeah that's what I told you and how above.

tranquil barn
#

man one issue after another

twin ferry
tranquil barn
#
root@pveconfig:~/usb/RTL8188 8192EUS_linux_v4.3.0.4_11485.20140519# apt update
Hit:1 http://security.debian.org bookworm-security InRelease
Hit:2 http://ftp.au.debian.org/debian bookworm InRelease
Hit:3 http://ftp.au.debian.org/debian bookworm-updates InRelease
Hit:4 http://download.proxmox.com/debian/pve bookworm InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
#
/etc/apt/sources.list:deb http://ftp.au.debian.org/debian bookworm main contrib non-free non-free-firmware
/etc/apt/sources.list:deb http://ftp.au.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
/etc/apt/sources.list:# security updates
/etc/apt/sources.list:deb http://security.debian.org bookworm-security main contrib non-free non-free-firmware
/etc/apt/sources.list:deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
/etc/apt/sources.list.d/pve-enterprise.list:# deb https://enterprise.proxmox.com/debian/pve bookworm pve-enterprise
/etc/apt/sources.list.d/ceph.list:# deb https://enterprise.proxmox.com/debian/ceph-quincy bookworm enterprise
twin ferry
#

Hmm.

#

pve-firmware probably includes this.

#

You could run dmesg -Tw and re-plug your USB NIC.

tranquil barn
#
[Wed Jan 24 22:12:35 2024] usb 1-2: USB disconnect, device number 3
[Wed Jan 24 22:12:35 2024] usb 1-2: rtl8192eu_active_to_emu: Disabling MAC timed out
[Wed Jan 24 22:12:35 2024] usb 1-2: disconnecting
[Wed Jan 24 22:12:38 2024] usb 1-2: new high-speed USB device number 4 using xhci_hcd
[Wed Jan 24 22:12:38 2024] usb 1-2: New USB device found, idVendor=0bda, idProduct=818b, bcdDevice= 2.00
[Wed Jan 24 22:12:38 2024] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[Wed Jan 24 22:12:38 2024] usb 1-2: Product: 802.11n NIC
[Wed Jan 24 22:12:38 2024] usb 1-2: Manufacturer: Realtek
[Wed Jan 24 22:12:38 2024] usb 1-2: SerialNumber: 00e04c000001
[Wed Jan 24 22:12:38 2024] usb 1-2: RTL8192EU rev B (SMIC) romver 0, 2T2R, TX queues 3, WiFi=1, BT=0, GPS=0, HI PA=0
[Wed Jan 24 22:12:38 2024] usb 1-2: RTL8192EU MAC: 00:e8:b0:20:10:9b
[Wed Jan 24 22:12:38 2024] usb 1-2: rtl8xxxu: Loading firmware rtlwifi/rtl8192eu_nic.bin
[Wed Jan 24 22:12:38 2024] usb 1-2: Firmware revision 35.7 (signature 0x92e1)
[Wed Jan 24 22:12:39 2024] rtl8xxxu 1-2:1.0 wlx00e8b020109b: renamed from wlan0
twin ferry
#
# dpkg -L pve-firmware | grep RTL
/lib/firmware/RTL8192E
/lib/firmware/RTL8192E/boot.img
/lib/firmware/RTL8192E/data.img
/lib/firmware/RTL8192E/main.img
#

Looks like it works?

tranquil barn
#

ifconfig doesn't show a wlan interface which is why I went down this rabit hole

#
root@pveconfig:~/usb/RTL8188 8192EUS_linux_v4.3.0.4_11485.20140519# ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 00:23:24:ec:7c:63  txqueuelen 1000  (Ethernet)
        RX packets 234753  bytes 276808134 (263.9 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 103090  bytes 13678998 (13.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  memory 0xdf000000-df020000

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 253  bytes 68749 (67.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 253  bytes 68749 (67.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vmbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.236  netmask 255.255.255.0  broadcast 0.0.0.0
        inet6 fe80::223:24ff:feec:7c63  prefixlen 64  scopeid 0x20<link>
        ether 00:23:24:ec:7c:63  txqueuelen 1000  (Ethernet)
        RX packets 228689  bytes 272269664 (259.6 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 101105  bytes 13110368 (12.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
twin ferry
#

Please show ip a's output.

tranquil barn
#
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP group default qlen 1000
    link/ether 00:23:24:ec:7c:63 brd ff:ff:ff:ff:ff:ff
    altname enp0s31f6
4: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:23:24:ec:7c:63 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.236/24 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::223:24ff:feec:7c63/64 scope link
       valid_lft forever preferred_lft forever
5: wlx00e8b020109b: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:e8:b0:20:10:9b brd ff:ff:ff:ff:ff:ff
twin ferry
#

Well there it is.

#

I should have known about pve-firmware but I never needed WiFi drivers. I'll know for next time ๐Ÿ™‚

tranquil barn
#

now I need to go down connecting it to my network. I appreciate all of your help. Sorry it ended up being a nothing burger ๐Ÿ˜›

I thought interfaces showed up in ifconfig?

twin ferry
#

ifconfig is kinda obsolete. Not sure if it's a bug or it doesn't show WiFi stuff by default. I don't really use WiFi much on my servers.

tranquil barn
#

I've never added a wlan interface over cmdline in debian, is it very hard?

twin ferry
#

๐Ÿคท

heavy sonnet
tranquil barn
#

used these resources

#

any experience doing this?

twin ferry
tranquil barn
#

I've decided its easier to just move my router so that I can go wired...

twin ferry
#

Good choice but longer ethernet cables and switches are cheap, you know?

tranquil barn
#

My setup was NBN in the garage wan to kitchen to router. Then there was no way to go anywhere else. So I needed to move router to garage

twin ferry
#

NBN?