Quantcast
Channel: Ubuntu Forums - Networking & Wireless
Viewing all 23300 articles
Browse latest View live

[SOLVED] TP-Link Archer AC1300 T4U Setup

$
0
0
Hi,

I just finished a fresh installation of Ubuntu 20.04 and have been trying to get my USB Wi-FI Adapter (TP-Link AC1300 T4U v3) to work.

After following a number of guides, I believe I have managed to install the device, but am unable to enable it and use it.

I am currently using my android device as a usb tether to access the internet so I could setup the adapter.

Thank you in advance for the help.

lsusb:
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 008: ID 22b8:2e24 Motorola PCS moto g(7) plus
Bus 002 Device 002: ID 2357:0115 TP-Link 802.11ac NIC
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 0d8c:0134 C-Media Electronics, Inc. TONOR TC-777 Audio Device
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 1a2c:4c5e China Resource Semico Co., Ltd USB Keyboard
Bus 004 Device 002: ID 258a:1007 SINOWEALTH Game Mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

sudo lshw (network section only, output is quite long):
*-network:0
description: Ethernet interface
physical id: 1
bus info: usb@2:4
logical name: usb0
serial: 96:1f:96:ec:26:46
capabilities: ethernet physical
configuration: broadcast=yes driver=rndis_host driverversion=22-Aug-2005 firmware=RNDIS device ip=192.168.42.163 link=yes multicast=yes
*-network:1 DISABLED
description: Wireless interface
physical id: 2
bus info: usb@2:2
logical name: wlx00e04c5c08e0
serial: 00:e0:4c:5c:08:e0
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtl88XXau multicast=yes wireless=unassociated




[ubuntu] USB wifi connection is suddenly off

$
0
0
Ubuntu 16.04 LTS running in a desktop PC.

I'm using a TP-LINK TL-WN722N.

It works ok until for unknown reasons there is no more wifi signal. Needless to say alll the other devices, cell phones and a couple of notebooks (running Windows) have wifi.

Sometimes unplugging un plugging back the USB stick works, sometimes I have to restart Ubuntu. And sometimes it will not get any wifi signal after restarting.

It is working at this moment but who knows in the next minutes.

Is there something I can do to fix this issue?

Thanks.

[SOLVED] Weird problem with wireless connection on Bionic

$
0
0
I'm running Ubuntu on an Orange Pi Zero and I have it configured pretty well, except the wireless. I can manually bring up my wlan0 interface successfully when SSH'd over the ethernet link, but I can't get it to connect at startup. wpa_supplicant was giving me issues, but I am able to successfully configure /etc/network/interfaces file to use a wpa key and access point, along with a static IP address using the following configuration:
Code:

auto wlan0
iface wlan0 inet static
  address 10.10.10.140
  netmask 255.255.255.0
  gateway 10.10.10.1
  broadcast 10.10.10.255
  dns-nameservers 10.10.10.125, 10.10.10.126, 8.8.8.8
  wpa-ssid "my cool access point that works!"
  wpa-psk "my cool password that works!"

The strange thing that is happening is that on startup, it seems to connect to the access point and get connectivity to the network, but then disconnect almost immediately. It's then non-responsive until I plug the ethernet cable in and wait for it to get a dhcp address. I run a constant, quick timeout ping of the interface while the system is rebooting on my Windows desktop "ping ubuntu-server-ip -w 100 -t" and I watch the system come online for two pings, then it goes offline again.
Code:

>ping 10.10.10.140 -w 100 -t
...
Request timed out.
Reply from 10.10.10.140: bytes=32 time=2ms TTL=64
Reply from 10.10.10.140: bytes=32 time=3ms TTL=64
Request timed out.
...

The Orange Pi Zero has no display interface, all activity is performed over the network once the system is booted. I can't see what is going on, and I can't find anything in the normal system logs explaining why it would bring the interface up and then shortly after that take it offline. I'm _guessing_ that some conflicting service is taking over and not connecting to the access point properly (because it's not configured in whatever service is doing that), but I can't figure out what may cause that.

Does anyone know how to troubleshoot what may be causing the network interface to come online, and then quickly go back offline? Maybe point me at a log file or something?

Thanks!

PS this device is going to be on a remote part of my property that I don't have hardwired network access, otherwise I'd just plug in to old reliable ethernet. :)

Any risk on modifying /usr/lib/proxychains3/proxyresolv like this?

$
0
0
I had misunderstand the article and I had changed the line of proxyresolv from `DNS_SERVER=${PROXYRESOLV_DNS:-4.2.2.2}` to `DNS_SERVER=8.8.8.8`, the `proxychains` still worked but any risk?

Samba returns this error

[lubuntu] wireless security confusion

$
0
0
I have an older Linksys router named Dayton and a few days ago I changed the security mode setting from WPA Personal to WPA2 Personal.

My desktop PC is running Ubuntu 20.04. When I checked the wifi connection it verified that I am using WPA2.

Ubuntu_connection_information.png

I also have an older Toshiba netbook that is running Lubuntu 20.04. When I checked the wifi connection there it appears that I am using WPA.

Lubuntu_connection_information.png

Is it possible to upgrade the wifi security setting in Lubuntu to WPA2?

Thank you for your assistance.

Kevin

Is it possible to bridge ethernet ports like a switch?

$
0
0
Fresh install of 20.04 on a newly built machine with old parts. G1840, H81 motherboard, 4 port pcie ethernet card + 1* built in port.
I've got a nas, PX4-300D and I'm planning on using this new machine as a pi-hole, owncloud and plex server.
I'm looking to use all the ethernet ports as a bit of a switch. The NAS has bonded ethernet ports for a total of 2gbit.

Is it possible to set up all 5 ports as a bridge so that 1 port feeds into the machine from the local network and 2 of them feed in from the NAS? My VDSL modem router handles all the DHCP networking.

So it'll look like:
Router --> Powerline network --> machine <--> NAS

I kind of got it working manualy via the CLI and brctl utils and restarted the machine and it all broke.

I'm a novice with Ubuntu but understand it's an incredibly useful tool but there's so much to learn.

How do i make hostname.local into just hostname for resolving local dns

$
0
0
On some devices sutch as windows, the servers local hostname resolves fine, but on other devices, it olny resolves if i do hostname.local. How can i make the hostname resolve without putting .local afterward?

[server] Predictable Network Interface naming for USB Wifi Network Interfaces?

$
0
0
OS: Ubuntu server 20.04

I have two USB Wifi network cards, one internal interface. Long story short: sometimes the internal card is called wlan0, other times wlan1, ... when I add or remove cards, the naming becomes completely unpredictable.

I have read documentations saying that there is something like a 'predictable naming' convention. What confuses me is that whenever I read the documentation (see: https://www.freedesktop.org/wiki/Sof...nterfaceNames/), it says it should be disabled and therefore in place by default, but it doesn't seem to be. If I look in '/etc/systemd/network/', I don't see any rules defined either. Needless to say I'm confused.

What I would like to become is that all NIC's always have the same name, regardless if one is unplugged or not. The names can be based on MAC or usb-portnumber. Either way, if I plug in a card, I'd like it to have the same name each time, preferably on MAC address.

P.S. I realize with NetworkManager I can assign profiles/connection based on mac address, however I want to use networkd for managing my connections;
P.S2. When it comes to netplan: the documentation says that can filter based on MAC address or driver, but for networkd, it says I can only match on names... which kinda defies the whole purpose.

I'd really appreciate if someone could shed some light on this.

Reset my network settings

$
0
0
ive have a server running ubuntu 18 for a few months, installed and tried to configure things how i would like - mainly by following online guides.

in that process, i think i have messed up my network settings and have a number of things id like to fix.

everytime i restart my box i have to enter:

Code:

sudo iptables -P INPUT ACCEPT && sudo iptables -F INPUT  && sudo iptables -P OUTPUT ACCEPT && sudo iptables -F  OUTPUT
This line was used following me installing NordVPN and the line was given to me by one of their agents to get the machine working with NordVPN, i no longer use NordVPN.

I cannot use SSH on a local machine following a reset until i enter this, i dont think i should have to enter this every time - how do i fix this?

[ubuntu] Qualcomm QCA6174 - Wifi Unstable - Dell XPS 13 9380 - Ubuntu 20.04 Focal

$
0
0
I have Ubuntu 20.04 installed on Dell XPS 13 9380 (Service Tag: 8SGZPV2) with Qualcomm QCA6174 wifi chip. Every 2-5 minutes, the wifi signal drops off then comes back online after a few seconds. This is a fresh install of Ubuntu Desktop through the usual methods (ie, not a custom OS/kernel build). The original OS was Windows 10 (no wifi problems), and Ubuntu was installed after a hard drive wipe (ie, not a dual-boot).

Here is my wifi hardware.
Code:

$ lspci
02:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
$ dmesg | grep ath
[  23.571480] ath10k_pci 0000:02:00.0: enabling device (0000 -> 0002)
[  23.579850] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[  23.862206] ath10k_pci 0000:02:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1a56:143a
[  23.862209] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[  23.862620] ath10k_pci 0000:02:00.0: firmware ver WLAN.RM.4.4.1-00140-QCARMSWPZ-1 api 6 features wowlan,ignore-otp,mfp crc32 29eb8ca1
[  23.927110] ath10k_pci 0000:02:00.0: board_file api 2 bmi_id N/A crc32 4ac0889b
[  24.000120] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
[  24.020001] ath10k_pci 0000:02:00.0: htt-ver 3.60 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[  24.108647] ath: EEPROM regdomain: 0x6c
[  24.108647] ath: EEPROM indicates we should expect a direct regpair map
[  24.108648] ath: Country alpha2 being used: 00
[  24.108649] ath: Regpair used: 0x6c
[  24.115986] ath10k_pci 0000:02:00.0 wlp2s0: renamed from wlan0
[  25.553827] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536

Here is my OS set up.
Code:

$ lsb_release -d
Description:    Ubuntu 20.04 LTS
$ uname -r
5.4.0-39-generic
$ apt list --installed | grep "linux-generic"
linux-generic-hwe-20.04/focal-updates,focal-security,now 5.4.0.39.42 amd64 [installed]

I've done these steps already: https://askubuntu.com/questions/8780...174-ath10k-pci

This includes:
Code:

sudo apt-get install --reinstall linux-firmware
sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

There were no errors. I rebooted. And the problem persisted.

Another thread (https://askubuntu.com/questions/8704...reless-network) said to install a custom kernel module. I didn't do that, but I did run a few steps to see if it would help.
Code:

sudo modprobe -r ath10k_pci ath10k_core
sudo modprobe ath10k_pci
sudo modprobe ath10k_core

The problem of the wifi signal dropping and coming back up persisted.

Another thread (https://askubuntu.com/questions/1200...-and-bluetooth) also mentioned installing a custom firmware (https://github.com/thebitstick/surfacego-wifi).

I fear bricking my laptop if I try something for a different device altogether. And so I haven't installed any custom kernel modules or firmware. Is this really the answer? If so, which one?

Please help.

VPN work only with the terminal active?

$
0
0
Hi there,

I just bought a 2 years license of Surfshark VPN. To run this VPN it requires to run commands on the terminal, and once I did it the terminal say my new IP address. In the case I turn off my computer, in the moment I turn it on again, the VPN is still working or should I run the command again? Same, If I turn off the terminal, the VPN is still on?

Thanks everybody

[ubuntu] Ubu-20 keeps dropping my WiFi connection. Refuses to connect.

$
0
0
I have Ubuntu 20.04 LTS installed and use a USB Wifi adapter for my Internet connection.

When I start Ubu, my Internet connection ALWAYS starts disconnected. Clicking "Connect" tries for about 20 seconds then gives up.

I have no idea what's wrong. The WiFi connection worked perfectly when I installed Ubu from a thumb drive, including downloading "third-party" drivers and software, but now that installation is complete, it is extremely difficult to establish/maintain a connection (which I'll always lose a few minutes later.)

I'm typing this from Windows on the same PC using the same Wifi adapter. Any ideas? :mad:

TIA

[lubuntu] Trying to figure out how to make network work permanently

$
0
0
Good evening. I installed the newest lubuntu in an old notebook but after ~ 30 minutes I get disconnected from my network. I found this link https://www.reddit.com/r/Lubuntu/com...ects_randomly/ I ran this command
Code:

sudo lshw -C network
and after, this one:
Code:

sudo iwconfig wlp1s0 power off
, I ran the instruction successfully (it said nothing), but then I couldn't change directory to power.d because the only one that was inside /pm was sleep.d. I don't know how to proceed afterwards.

Are "SSH" "PDU's" created at the TCP/IP Model's Application Layer

$
0
0
Question 1: Before the SSH "handshake" between the Client and the Server... where in the process does SSH Protocol do it's thing...

Question 2: I'm assuming it Encodes/Scrambles the original data based on some algorithm... which has been agreed to by the two computers... Client & Server... right?

Question 3: So does this occur at the Application Layer before the segmented data gets it's TCP header added at the Transport Layer?

This is based on the assumption that...

Question 4: SSH traffic travels over the internet as "Frames" ... with a header and trailer... via the following steps... Right?

1 - It all starts out with the raw data at the Application Layer that Computer-1 wants to send to Computer-2... Maybe something as an ASCII text like... "Hello World"

2 - ??


3 - At the Transport Layer the the data got segmented with a Header added and thus became TCP Packets with Source & Destination Ports included

4 - At the Network Layer those TCP Packets had an additional Header added and thus became IP Packets with Source & Destination IP addresses included

5 - At the TCP/IP Updated Model's Data Link layer the IP packets had another Header added plus a "Trailer" with the Source & Destination Mac Address induced

I've Googled & watched Videos until my eyes have rolled back in my head... so I'm hopeful that some kind soul will walk through this with me.

Thanks.

[kde] nextcloud webdav

$
0
0
I used to connect to my nextcloud server with Dolphin; this was (and is) the entry: webdav://ecloud.global/remote.php/webdav/.
In these last times I am asked every time for user and password, and this is very annoying.
I tried to creare an account network, following https://docs.nextcloud.com/server/16...ss_webdav.html,
but unsuccessfully.
I'd like to use Dolphin, and not another app (like nextcloud client). There is a way? I think something like webdav://ecloud.global/remote.php/webdav/ + user and password: but how?
Thanks!

Tunneling Questions like Is SSH Connection created before the "Tunnel" is created?

$
0
0
(Note: This is a follow up to my SSH thread but this is about Tunneling and SSH and so I thought it merited it's own Thread.)

From the Windows Command line...
WinPCpro-L-1 at Location 1 connects over the internet to a Ubuntu Server at Location 2
with...
Putty.exe username@xxx.xx.xx.xxx -P aaaaa -i .\username.ppk
And after entering the password...
WinPCpro-L-1 is connected to the Ubuntu Server and can remotely enter commands.

(I've actually got this working but I want to know what is going on under the hood.)

Question 1:
After the connection is established the commends entered on the PC's keyboard will ultimately be sent to... the Ubuntu Server at xxx.xx.xx.xxx:aaaaa -- that is Public IP Address xxx.xx.xx.xxx Port aaaaa
So this means the Linux Server is "listening" for SSH traffic on Port aaaaa
Right?

Question 2:
Does the Windows Command Line entry
Putty.exe username@xxx.xx.xx.xxx -P aaaaa -i .\username.ppk
also setup a "tunnel" ?

Question 3:
The term "Tunnel" confuses me as it makes me think of some kind of magic hardwired permanent connection... which of course is impossible over a packet switching network like the internet...
So the "tunnel" is virtual... as seen between the TCP/IP Model's "Application" Layers...
Right so for?

Question 4:
And before "Tunneling" can begin the two computers must communicate with each other and setup/agree to things... like maybe what "Tunneling" protocol is going to be used, etc...
Right so for?

Question 5:
So now the SSH "connection" has been established between the 2 computers
And the "Tunneling" protocol has been agreed to by the 2 computers...
Or does this happen differently?

Question 6:
So after the two computers agree to talk and "how" they are going to talk...
- the raw data from the PC Application gets processed by the "tunneling" software...
- and then sent to the SSH client for further processing and forwarding down to...
- the TCP/IP Model and then to the
- Transport/TCP Layer and then to the
- Internet/IP Layer and then to the Data Link Layer and then
- out the NIC door to the network...
Or does this happen differently?

Sorry for all the confusion but I've dived in to learning this stuff now and really appreciate anyone helping me find my way.

Thanks for any help.

PS-1 Hopefully I'm in the right font size so I don't get in trouble again :-)
PS-2 , I've Googled and watched YouTube videos on all this but I'm trying to dig a little deeper into the events and actual sequence of events.

[ubuntu] Broadcom NetXtreme II (BCM5709) doesn't work?

$
0
0
Hey all,

Has anyone else run into this, or have any suggestions on what to try in order to fix it?

I have Dell Power Edge Gigabit Ethernet Card which uses the Broadcom NetXtreme II BCM5709 chip.

lspci shows that the card is there:

Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet

But it never shows up in ifconfig or ip a as a device I can configure.

I searched online and found an old driver, but I have ubuntu 16.04 LTS, is there any new driver compatible with BCM5709? Hence, I do not have internet connection only a loopback interface.

I'd really appreciate any suggestions.

Thanks,
Sadek

server specs:
Ubuntu Server Edition 16.04
Dell Power Edge R710

[server] Network seems to sleep randomly after a seconds of inactivity

$
0
0
I am currently setting up some raspberry pi 4 nodes with Ubuntu 20.04 server with wired ethernet.

Problem is after setting up static ip, by disabling cloud-init and then setting up netplan configs,
network seems to start sleeping every now and then.

For example, when connected via ssh, and then left for a few seconds/minutes, when i try to input, it momentary lags for a few seconds, then gets back to normal.

Another example is when i deploy a simple TCP web server, same thing happens, few minutes/seconds of inactivity causes next request to lag for a few seconds.

Note that this does not occur under fresh install with dhcp issued ip, i also tried reserving the IPs in my router to no avail.

Anyone has any idea why this happens?

[ubuntu] Wifi hotspot enabled across reboot on 20.04?

$
0
0
I wonder if someone who has 20.04 installed could try enabling the wifi hotspot and see if it stays enabled when the laptop is rebooted?

...or, does someone know how to make that happen (ideally on 19.10).
Viewing all 23300 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>