LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-07-2017, 10:33 AM   #1
tomx2
LQ Newbie
 
Registered: Sep 2017
Posts: 4

Rep: Reputation: Disabled
Cannot enable network-applet in Kali Nethunter


Hi.
I cannot enable the nm-applet in my Linux environment on my Android 7.1.2 OnePlus One device. Without enabling, I am unable to add/edit connection or connect wireless to wlan1.
Been trying to resolve this problem for 2 weeks, but cannot find a solution. Hopefully someone can help. Thanks: TC.

Info:
- ROM: Lineageos 14.1 bacon Android 7.1.2 Marshmallow. Device: OnePlus One.
- Uname: Linux Nethunter 3.15. Kernel 3.4.112-lineageos-g23c699a armv71.
- Distro: Kali Linux Rolling V2017.1
- Architecture: Armhf
- CurrentDesktop: XFce V4.1,2
- Client: VNC Viewer V3.3.1 connect via localhost 127.0.0.1 to linux
- Network-Manager and Gnome v1-8-2-1 armhf

Wireless WIFI Use:
Wlan1 is my external wifi dongle TP-Link-TL-WN722N, use specifically for Linux.
Use otg cable to connect Phone Device to wifi dongle.
I can successfully run all aircrack-ng commands putting wlan1 in monitor mode.
BTW: TL-WN722N dongle works fine when I access Linux with my Xps13 Laptop.

Prior to starting network manager, I initiate Ifconfig & airmon-ng cmds to start Wlan1.

Network Manager Applet responses:
Installed network-manager successfully. NM-applet appears on the top-right panel. Two monitors joined displaying “x” in window.
Right click the nm-applet shows the following:
- enable networking option (greyed out),
- enable notification open,
- connection info option(greyed out),
Tic edit connections get not response.

Left click nm-applet, shows the following message:
“network manager is not running” grayed out.
Go to application, settings, network connection and double click network connections, get no response.

Click on the front nm-applet, display message “network manager is disable”.


My Question is: How can I enable nm-applet in kali linux nethunter to configure my network connections? I cannot see any available wireless networks.
Once enabled, I should be able to “Ticked On” networking option in the applet, then connect wireless to the internet. From what I've read, most Networking problems are related to missing or faulty drivers. Is this true?

Tried:
- stop, restarting network manager service
- uninstalling/reinstalling network-manager & Gnome.
- Setting Managed=true In r.conf
- Killed all using rfkill command.
- Nm-connection-editor - 7214 Warning couldn't construct the client instance.
Could not connect, no such file or directory. Failed to initialize the UI.
- /etc/init.d/network-manager restart
- /usr/share/polkit-1/actions/org.freedesktop.network-manager-r..policy <allow_inactive> element. Change "no" to "yes"

Files:
/etc/dbus-1/system.d/nm-applet.conf
nm-applet.conf Does not exist in system folder. Is this normal?

etc/network/Interfaces:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback

etc/network manager:
system connection – has only Network Manager USRP document.
Network manager r.conf - (main) plugins=ifupdown,keyfile (ifupdown) managed=false

Var /Network Manager - NetworkEnable=true, WirelessEnabled=true, WWANenabled=true

Some commands:
lspci
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method
I have Pcutils installed. I may not have any bus/pci installed.
Is there substitute command or file you can recommend to display?

AIRMON-NG
root@kali:~# airmon-ng start wlan1
Found 1 processes that could cause trouble.
If airodump-ng, aireplay-ng or airtun-ng stops working after
a short period of time, you may want to run 'airmon-ng check kill'

PID Name
2627 wpa_supplicant

PHY Interface Driver Chipset

phy0 p2p0 ?????? Not pci, usb, or sdio
phy0 wlan0 ?????? Not pci, usb, or sdio
phy1 wlan1 ?????? Atheros Communications, Inc. AR9271 802.11n

(mac80211 monitor mode vif enabled for [phy1]wlan1 on [phy1]wlan1mon)
(mac80211 station mode vif disabled for [phy1]wlan1)

rfkill list all
root@kali:~# rfkill list all
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: phy1: Wireless LAN
Soft blocked: no
Hard blocked: no

lsusb
root@kali:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsmod (file empty)
root@kali:~# lsmod
Module Size Used by

modrobe.d/blacklist
root@kali:~# cat /etc/modrobe.d/blacklist.libnfc.conf
blacklist nfc blacklist pn533

dmesg | grep usb

root@kali:~# dmesg | grep usb
[ 461.249782] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 461.250106] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 461.250596] usb usb1: Product: xHCI Host Controller
[ 461.250848] usb usb1: Manufacturer: Linux 3.4.113-lightning-kernel-v38-ga6181dd88ba-dirty xhci-hcd
[ 461.251161] usb usb1: SerialNumber: xhci-hcd
[ 461.261324] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[ 461.268275] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 461.269008] usb usb2: Product: xHCI Host Controller
[ 461.269281] usb usb2: Manufacturer: Linux 3.4.113-lightning-kernel-v38-ga6181dd88ba-dirty xhci-hcd
[ 461.269369] usb usb2: SerialNumber: xhci-hcd
[ 462.011147] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 462.035979] usb 1-1: New USB device found, idVendor=0cf3, idProduct=9271
[ 462.036415] usb 1-1: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 462.036639] usb 1-1: Product: USB2.0 WLAN
[ 462.037038] usb 1-1: Manufacturer: ATHEROS
[ 462.037261] usb 1-1: SerialNumber: 12345
[ 462.067316] usb 1-1: ath9k_htc: Firmware htc_9271.fw requested
[ 462.388608] usb 1-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272

root@kali:~# ifconfig wlan1mon

wlan1mon: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
unspec 84-16-F9-07-CA-88-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
RX packets 11926 bytes 5538795 (5.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

IWCONFIG

root@kali:~# ifconfig wlan1mon
wlan1mon: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
unspec 84-16-F9-07-CA-88-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
RX packets 11926 bytes 5538795 (5.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


wlan0 Qcom:802.11n ESSID:"BayBreeze Hotel" Nickname:""
Mode:Managed Frequency:2.437 GHz Access Point: 26:A4:3C:4F:49:4A
Bit Rate=9 Mb/s Tx-Power=16 dBm
RTS thr=2347 B Fragment thr=8000 B
Encryption key:B776-423D-5C59-D0D9-C5C1-1CA0-DD8B-F04A-C03E-B990-525C-9620-5BA4-6A58-3254-3048 [2] Security mode:restricted

rmnet4 no wireless extensions.

rev_rmnet1 no wireless extensions.

p2p0 Qcom:802.11n ESSIDff/any Nickname:""
Mode:Managed Channel:0 Access Point: Not-Associated
Bit Rate:0 kb/s Tx-Power=0 dBm
RTS thr=2347 B Fragment thr=8000 B
Encryption keyff

sit0 no wireless extensions.

dummy0 no wireless extensions.

lo no wireless extensions.


wlan1mon IEEE 802.11bgn Mode:Monitor Frequency:2.457 GHz Tx-Power=30 dBm
Retry long limit:7 RTS thrff Fragment thrff
Power Managementff
 
Old 09-11-2017, 11:24 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,514

Rep: Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619
i am guessing you did not read the kail documents
the network is disabled by default for security reasons

you DO NOT want any wi-fi networks pinging you !!!!!

so please READ the docs

https://www.kali.org/kali-linux-documentation/
 
Old 09-11-2017, 03:17 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 16,858
Blog Entries: 10

Rep: Reputation: 5013Reputation: 5013Reputation: 5013Reputation: 5013Reputation: 5013Reputation: 5013Reputation: 5013Reputation: 5013Reputation: 5013Reputation: 5013Reputation: 5013
kali linux on a vm on an android phone!
how could that ever serve its purpose?
 
Old 09-12-2017, 02:55 AM   #4
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 708

Rep: Reputation: 302Reputation: 302Reputation: 302Reputation: 302
https://forum.xda-developers.com/one...us-3t-t3507816
Personally, for Kali, I'd use other websites, like Kali forums, Google, ...
 
Old 09-12-2017, 04:16 AM   #5
tomx2
LQ Newbie
 
Registered: Sep 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
@John VV
If I inferred Network Manager should not be disabled on boot, that was not my intention. My post is meant to ask the board members for help how to enable network manager once my interface (wlan1) starts up successfully in Kali Nethunter.

I also have a xps13 PC laptop using Kali Linux Debian. On boot up, network manager is disabled. I plug in wlan1 (interface of my external wifi adapter TP-Link-TL-WN722N) into usb port, the wifi adapter lights up (turns green). I then have network manager enabled to connect my wlan1 interface.

Using kali nethunter with TL-W722N (wlan1), wifi adapter lights up, but network manager remains disabled. Cannot edit connections. I can go into monitor mode and perform aircrack-ng cmds with nethunter.
Note: I previously installed the Atheros drivers into kali nethunter.

I realized we are talking two different architecture. Nethunter is built for Android architecture whereas kali linux is standard for all PCs. But maybe a member who is using Nethunter with Network Manager can give me advice what actions to take in resolving this.

Is this a Driver issue, Network Manager not detecting my wlan1 interface drivers Atheros AR9271?

Thanks.
TC.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Dual Boot: Kali Linux NetHunter and Google Nexus 6 Marshmallow d.vulcan Linux - Mobile 1 02-11-2016 12:33 AM
Cannot access Network in Kali Linux!!!!!!!!! KillahBeez Debian 9 08-20-2015 05:37 AM
Failed to fetch http://http.kali.org/kali/dists/kali/Release.gpg aymeric75 Linux - General 2 07-11-2015 06:10 AM
[SOLVED] Nm-Applet can't enable mobilebroadband option ( OB + Tint2 ) hellnest Arch 1 11-26-2010 02:38 AM
Network Manager Applet (nm-applet) dwhitney67 Linux - Newbie 5 02-02-2010 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:27 AM.

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