Jean-Baptiste-Lasselle / debian-wireless

One day, i had to add a COTS Wireless adapter to my Debian Workstation
0 stars 0 forks source link

frist try #1

Open Jean-Baptiste-Lasselle opened 4 years ago

Jean-Baptiste-Lasselle commented 4 years ago
curl -LO "https://static.tp-link.com/2018/201812/20181207/Installation%20Guide%20for%20Linux.pdf"
# And ok, there are multiple options, closest to debian is ubuntu, but they also have... Kali ...?/!....
# -- nevermind 'ill try Ubuntu isntruction, adapted with no apt repo
Jean-Baptiste-Lasselle commented 4 years ago
lsusb
dpkg -l | grep firmware
lsmod
uname -a 
jbl@pc-alienware-jbl:~/TL-WN823N_EU_V3_160315_Linux/Driver$ # sudo install -p -m 644 ./bin/8192eu.ko  $(MODDESTDIR)
jbl@pc-alienware-jbl:~/TL-WN823N_EU_V3_160315_Linux/Driver$ export MODDESTDIR=/lib/modules/${KVER}/kernel/drivers/net/wireless/
jbl@pc-alienware-jbl:~/TL-WN823N_EU_V3_160315_Linux/Driver$ sudo install -p -m 644 ./bin/8192eu.ko  $(MODDESTDIR)
-bash: MODDESTDIR: command not found
install: missing destination file operand after './bin/8192eu.ko'
Try 'install --help' for more information.
jbl@pc-alienware-jbl:~/TL-WN823N_EU_V3_160315_Linux/Driver$ sudo install -p -m 644 ./bin/8192eu.ko  $(MODDESTDIR)/8192eu.ko
-bash: MODDESTDIR: command not found
jbl@pc-alienware-jbl:~/TL-WN823N_EU_V3_160315_Linux/Driver$ sudo install -p -m 644 ./bin/8192eu.ko  /lib/modules/${KVER}/kernel/drivers/net/wireless/
jbl@pc-alienware-jbl:~/TL-WN823N_EU_V3_160315_Linux/Driver$ sudo /sbin/depmod -a ${KVER}
jbl@pc-alienware-jbl:~/TL-WN823N_EU_V3_160315_Linux/Driver$ export KVER=4.9.0-7-amd64
jbl@pc-alienware-jbl:~/TL-WN823N_EU_V3_160315_Linux/Driver$ uname -r
4.9.0-7-amd64
jbl@pc-alienware-jbl:~/TL-WN823N_EU_V3_160315_Linux/Driver$ ls -allh
total 120K
drwxrwxr-x 9 jbl jbl 4.0K Sep  1 05:27 .
drwxr-xr-x 3 jbl jbl 4.0K Sep  1 05:29 ..
drwxrwxr-x 2 jbl jbl 4.0K Sep  1 05:27 bin
-rw-r--r-- 1 jbl jbl   64 Sep  1 05:27 clean
drwxrwxr-x 3 jbl jbl 4.0K Sep  1 05:27 core
drwxrwxr-x 8 jbl jbl 4.0K Sep  1 05:27 hal
-rw-r--r-- 1 jbl jbl   54 Sep  1 05:27 ifcfg-wlan0
drwxrwxr-x 4 jbl jbl  12K Sep  1 05:27 include
-rw-r--r-- 1 jbl jbl  110 Sep  1 05:27 Kconfig
-rw-r--r-- 1 jbl jbl  52K Sep  1 05:27 Makefile
drwxrwxr-x 3 jbl jbl 4.0K Sep  1 05:27 os_dep
drwxrwxr-x 2 jbl jbl 4.0K Sep  1 05:27 platform
-rw-r--r-- 1 jbl jbl  423 Sep  1 05:27 runwpa
drwxr-xr-x 9 jbl jbl 4.0K Sep  1 05:27 testjb1
-rw-r--r-- 1 jbl jbl  294 Sep  1 05:27 wlan0dhcp
-rw-r--r-- 1 jbl jbl 1.5K Sep  1 05:27 wpa_0_8.conf
jbl@pc-alienware-jbl:~/TL-WN823N_EU_V3_160315_Linux/Driver$ 
[device]
wifi.scan-rand-mac-address=no
# ip a
# sudo iw dev
# sudo ip link set wlp2s0 up
$ su -l
# iwlist scan
Jean-Baptiste-Lasselle commented 4 years ago

Load the driver as LSB Module

Load the DriverHere we show the 88x2bu.ko wireless driver loading process as an example.

$ sudo cp 88x2bu.ko /lib/modules/[kernel version]/kernel/drivers/net/wireless/
$ sudo depmod -a 
$ sudo modprobe 88x2bu
$ sudo insmod 88x2bu.ko
Jean-Baptiste-Lasselle commented 4 years ago

no success yet