Quantcast
Channel: Active questions tagged networking - Ask Ubuntu
Viewing all 23516 articles
Browse latest View live

TPLink Archer T2U Ubuntu 20.04

$
0
0

I had really big ping problems with games, so my friend said that i should get a new network adapter. I got a TP-Link Archer T2U Plus. I installed drivers I found here. It shows up as a device but I cant connect to any networks.

Here`s my lsusb:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 004: ID 041e:4088 Creative Technology, Ltd Live! Cam Chat HD [VF0700]Bus 001 Device 034: ID 2357:0120 TP-Link 802.11ac WLAN Adapter Bus 001 Device 006: ID 09da:f6f3 A4Tech Co., Ltd. Bus 001 Device 005: ID 046d:c24b Logitech, Inc. USB2.0 HUBBus 001 Device 002: ID 214b:7000  USB2.0 HUBBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I have Ubuntu 20.04


Ethernet cable unplugged setting after suspend - Ubuntu 20.04

$
0
0

Reference: Ubuntu 18.04 - Ethernet disconnected after suspend

When waking up from 'suspend', the wired Ethernet connection is not working.
In the Network section of Settings it says that the cable is unplugged.
I can manually turn it on with modprobe as described in several answers in the reference post:
sudo lshw -C network (To find the name of the driver. sky2 in my case.)
sudo modprobe -r sky2
sudo modprobe -i sky2

I then placed the full script of the Ubuntu 18.04 reference post inside /lib/systemd/system-sleep and made it executable, but it didn't work in my case (I did change the driver name from r8169 to sky2).

Then I simplify the script to just this and it worked:
#!/bin/bash
modprobe -r sky2
modprobe -i sky2

I would appreciate an expert opinion to know if the simplified script is good enough or if I should expect any bad secondary effect. Thanks!

WiFi AX200 is not connecting automatically on Ubuntu 20.10

$
0
0

I upgraded my Wireless Card from Intel Wireless 9560 to AX200.I have Dual Boot Windows OS & Ubuntu 20.10 on my HP Omen.

I updated my wireless driver on my Windows 10 environment.Everything working perfectly.Every time I boot into my Ubuntu 20.10,I have to connect to my hidden Wifi every time.

I tried to see if Ubuntu recognizing the AX200 drive.This is what I found:

    krillavilla@krillavilla-OMN:~$ sudo dmesg | grep iwlw[sudo] password for krillavilla: [    3.259537] iwlwifi 0000:04:00.0: enabling device (0000 -> 0002)[    3.269345] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-cc-a0-56.ucode failed with error -2[    3.270894] iwlwifi 0000:04:00.0: api flags index 2 larger than supported by driver[    3.270911] iwlwifi 0000:04:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 89.3.35.22[    3.270915] iwlwifi 0000:04:00.0: Found debug destination: EXTERNAL_DRAM[    3.270917] iwlwifi 0000:04:00.0: Found debug configuration: 0[    3.271217] iwlwifi 0000:04:00.0: loaded firmware version 55.d9698065.0 cc-a0-55.ucode op_mode iwlmvm[    3.271333] iwlwifi 0000:04:00.0: Direct firmware load for iwl-debug-yoyo.bin failed with error -2[    3.358293] iwlwifi 0000:04:00.0: Detected Intel(R) Wi-Fi 6 AX200 160MHz, REV=0x340[    3.561857] iwlwifi 0000:04:00.0: base HW address: e0:d4:e8:53:eb:b1[    3.577475] iwlwifi 0000:04:00.0 wlp4s0: renamed from wlan0krillavilla@krillavilla-OMN:~$ lspci -nn | grep Network04:00.0 Network controller [0280]: Intel Corporation Wi-Fi 6 AX200 [8086:2723] (rev 1a)

UPDATEI went to the Intel website to load the driver using the instructionprovided on this link Intel Linux Wireless Driverl

I still get kicked off my Wifi randomly

UPDATEIt's been 4 hours and I did not get kick off my wifi yet.I did some research and found this article Kernel Updatewhich I already have an updated version of the kernel.

krillavilla@krillavilla-OMN:~$ uname -r5.8.0-28-generic

Also, people had reported disabling Fast Boot and secure on Windows 10 OSIntel Fast Boot. I already disable Fast boot startup and my secure BIOS is disabled since I have Windows OS dual boot.

Now, my issue is my throughput on my Windows 10 OS speed test is over 120mbps download speed. On my Ubuntu 20.10, I get a 55mbps download speed.All the other devices connected to my TP-Link AX6000 getting over 200+mpbs download speed. my laptop is the only device that getting less than 200mbps.

Why is that?

UPDATE

I restart my computer and Ubuntu 20.10 didn't connect to my Wifi automatically. I have to go to Network Manager and connect it manually.

UPDATE

Its been several hours and I didn't get kicked off my wifi but I stillhave to connect to it manually after restart or reboot.

I have 4 questions I need help with:

  1. Can someone help me resolve this error message:

     [3.484752] iwlwifi 0000:04:00.0: enabling device (0000 -> 0002) [3.498326] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-cc-a0-56.ucode failed with error -2
  2. Can someone help me figure out why Ubuntu won't connect to my WifiAutomatically after reboot/restart?

  3. Can anyone explain to me why my Windows 10 OS has way faster Link speed/throughput than my Ubuntu 20.10? Is there a fix for this issue?

4.Is there a way to install WPA 3 and 802.11ax on my Ubuntu laptop?

enter image description here

enter image description here

Lenovo's Wifi RTL8822BE not working on Ubuntu 18.04

$
0
0

I'm new to linux I'm using linux on my laptop but the only problem is that the wifi not working before the laptop was on windows and the wifi working

I think this information can help to find a solution

admin@Lenovo:~$ uname -r5.4.0-54-genericadmin@Lenovo:~$ uname -sLinuxadmin@Lenovo:~$ uname -nLenovoadmin@Lenovo:~$ uname -v#60~18.04.1-Ubuntu SMP Fri Nov 6 17:25:16 UTC 2020admin@Lenovo:~$ uname -mx86_64admin@Lenovo:~$ sudo lshw -C network  *-network UNCLAIMED              description: Network controller       product: RTL8822BE 802.11a/b/g/n/ac WiFi adapter       vendor: Realtek Semiconductor Co., Ltd.       physical id: 0       bus info: pci@0000:01:00.0       version: 00       width: 64 bits       clock: 33MHz       capabilities: pm msi pciexpress bus_master cap_list       configuration: latency=0       resources: ioport:3000(size=256) memory:a1100000-a110ffffadmin@Lenovo:~$ lspci01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapteradmin@Lenovo:~$ lspci -k01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter    Subsystem: Lenovo Device b023    Kernel modules: rtwpci, wladmin@Lenovo:~$ inxi -nx  Network:   Card: Realtek RTL8822BE 802.11a/b/g/n/ac WiFi adapter port: 3000 bus-ID: 01:00.0             IF: N/A state: N/A mac: N/Aadmin@Lenovo:~$ rfkill list all0: ideapad_wlan: Wireless LAN    Soft blocked: no    Hard blocked: no1: ideapad_bluetooth: Bluetooth    Soft blocked: no    Hard blocked: no2: hci0: Bluetooth    Soft blocked: no    Hard blocked: no

dual wifi (intel broadcom) minipci card thinkpad r400 troubleshooting help needed

$
0
0

I recently installed a Broadcom Wi-Fi card in my laptop. There are now 2 Wi-Fi mini PCI cards in the laptop.

The Intel Wi-Fi card works fine (always has). After installing the Broadcom card, I ran Additional Drivers and installed the proprietary drivers for it,but on rebooting both Wi-Fi cards are disabled.

I have also tried running:

sudo apt remove broadcom-sta-dkms bcmwl-kernel-source

and then reinstalling the Broadcom drivers.

Currently I have removed the Broadcom drivers and rebooted. Now the Intel card works OK.

sudo lshw -c network[sudo] password for admn:   *-network                        description: Ethernet interface       product: 82567LM Gigabit Network Connection       vendor: Intel Corporation       physical id: 19       bus info: pci@0000:00:19.0       logical name: enp0s25       version: 03       serial: 00:22:68:0e:96:bd       capacity: 1Gbit/s       width: 32 bits       clock: 33MHz       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=1.8-3 latency=0 link=no multicast=yes port=twisted pair       resources: irq:29 memory:fc200000-fc21ffff memory:fc225000-fc225fff ioport:1840(size=32)  *-network       description: Network controller       product: BCM4311 802.11a/b/g       vendor: Broadcom Inc. and subsidiaries       physical id: 0       bus info: pci@0000:02:00.0       version: 02       width: 64 bits       clock: 33MHz       capabilities: pm msi pciexpress bus_master cap_list       configuration: driver=b43-pci-bridge latency=0       resources: irq:16 memory:f4200000-f4203fff  *-network       description: Wireless interface       product: PRO/Wireless 5100 AGN [Shiloh] Network Connection       vendor: Intel Corporation       physical id: 0       bus info: pci@0000:03:00.0       logical name: wlp3s0       version: 00       serial: 00:22:fa:dc:83:ea       width: 64 bits       clock: 33MHz       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless       configuration: broadcast=yes driver=iwlwifi driverversion=5.3.0-46-generic firmware=8.83.5.1 build 33692 ip=192.168.1.13 latency=0 link=yes multicast=yes wireless=IEEE 802.11       resources: irq:32 memory:f4300000-f4301fff
$ lsmodModule                  Size  Used byccm                    20480  3snd_hda_codec_hdmi     61440  1snd_hda_codec_conexant    28672  1snd_hda_codec_generic    81920  1 snd_hda_codec_conexantsnd_hda_intel          49152  3snd_intel_nhlt         20480  1 snd_hda_intelsnd_hda_codec         131072  4 snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_intelthinkpad_acpi         106496  0snd_hda_core           90112  5 snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codecnvram                  16384  1 thinkpad_acpisnd_hwdep              20480  1 snd_hda_codeci915                 1949696  17ledtrig_audio          16384  3 snd_hda_codec_generic,snd_hda_codec_conexant,thinkpad_acpicoretemp               20480  0snd_pcm               106496  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_coreradeon               1478656  1ttm                   106496  1 radeonsnd_seq_midi           20480  0iwldvm                241664  0joydev                 28672  0input_leds             16384  0serio_raw              20480  0drm_kms_helper        184320  2 radeon,i915snd_seq_midi_event     16384  1 snd_seq_midib43                   417792  0snd_rawmidi            36864  1 snd_seq_midiwmi_bmof               16384  0snd_seq                69632  2 snd_seq_midi,snd_seq_midi_eventdrm                   491520  13 drm_kms_helper,radeon,i915,ttmpcmcia                 65536  0cordic                 16384  1 b43bcma                   65536  1 b43i2c_algo_bit           16384  2 radeon,i915fb_sys_fops            16384  1 drm_kms_helpersnd_seq_device         16384  3 snd_seq,snd_seq_midi,snd_rawmidimac80211              851968  2 iwldvm,b43syscopyarea            16384  1 drm_kms_helperiwlwifi               348160  1 iwldvmyenta_socket           49152  0mei_me                 40960  0sysfillrect            16384  1 drm_kms_helperpcmcia_rsrc            24576  1 yenta_socketsysimgblt              16384  1 drm_kms_helperpcmcia_core            28672  3 pcmcia,pcmcia_rsrc,yenta_socketlibarc4                16384  1 mac80211snd_timer              36864  2 snd_seq,snd_pcmcfg80211              712704  4 iwldvm,b43,iwlwifi,mac80211mei                   110592  1 mei_mesnd                    90112  18 snd_hda_codec_generic,snd_seq,snd_hda_codec_conexant,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,thinkpad_acpi,snd_pcm,snd_rawmidisoundcore              16384  1 sndmac_hid                16384  0kvm_intel             278528  0kvm                   659456  1 kvm_intelirqbypass              16384  1 kvmbinfmt_misc            24576  1sch_fq_codel           20480  6parport_pc             40960  0ppdev                  24576  0lp                     20480  0parport                53248  3 parport_pc,lp,ppdevip_tables              32768  0x_tables               40960  1 ip_tablesautofs4                45056  2ssb_hcd                16384  0ahci                   40960  2firewire_ohci          40960  0firewire_core          65536  1 firewire_ohcicrc_itu_t              16384  1 firewire_corepsmouse               155648  0i2c_i801               32768  0libahci                32768  1 ahcilpc_ich                24576  0ssb                    73728  2 b43,ssb_hcde1000e                258048  0wmi                    32768  1 wmi_bmofvideo                  49152  2 thinkpad_acpi,i915

Sound not working on Ubuntu

$
0
0

Using an ASUS TUF FX505GD. My Speakers just stopped working and I think is something to do with my graphics card.

This is what it shows up when I run lspci:

00:00.0 Host bridge: Intel Corporation Device 3e10 (rev 07)00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07)00:02.0 VGA compatible controller: Intel Corporation Device 3e9b00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 07)00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th Gen Core Processor Gaussian Mixture Model00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)00:14.3 Network controller: Intel Corporation Wireless-AC 9560 [Jefferson Peak] (rev 10)00:15.0 Serial bus controller [0c80]: Intel Corporation Device a368 (rev 10)00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)00:17.0 SATA controller: Intel Corporation Device a353 (rev 10)00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port 9 (rev f0)00:1d.4 PCI bridge: Intel Corporation Device a334 (rev f0)00:1e.0 Communication controller: Intel Corporation Device a328 (rev 10)00:1f.0 ISA bridge: Intel Corporation Device a30d (rev 10)00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev ff)02:00.0 Non-Volatile memory controller: Sandisk Corp Device 5003 (rev 01)03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

And this is what it shows when I run aplay --list-devices:

**** List of PLAYBACK Hardware Devices ****card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]  Subdevices: 1/1  Subdevice #0: subdevice #0

Would really appreciate some help.

Cannot connect to wifi ubuntu server 20.04 fresh installation

$
0
0

I installed a fresh ubuntu server 20.04. Then I am unable to connect to my home internet wifi. I followed this How to enable wireless on Ubuntu Server 18.04 via CLI?, but isn't helping either. I have attached screenshot of the terminal outputs, please let me know if this is enough.

enter image description here

enter image description here

enter image description here

enter image description here

The screenshots show following outputs:

  1. Ubuntu version to confirm (Pic 1)
  2. Filename of default yaml file and its content after I changed (Pic 1)
  3. output of ip addr show. I used the wlp8s0 in the yaml file (Pic 1)
  4. output of netplan generate (Pic 2)
  5. output of netplan apply (Pic 3)
  6. error outputs when pinging (Pic 4)

What could be going wrong?

Thank you in advance.

No network after upgrade to 16.04

$
0
0

I upgraded my server to 16.04 from 14.04, which in turn was upgraded from 12.04, all using the command line do-release-upgrade. This is a server build, with absolutely no GUI. It runs apache2, bind9, nfs, and a few other network-related services. For the most part, nothing was broken in the upgrade... except the network. Now, I have to run

sudo /etc/init.d/networking start

after every reboot to get it to connect to the network. Not very helpful for a server. My guess is that the networking script simply isn't being run on startup; normally, I could fix the issue by running

sudo update-rc.d networking defaults

but the above command just gives an error about being unable to connect to upstart.

What can I do to fix my network?

Edit: The contents of /etc/network/interfaces:

#loopbackauto loiface lo inet loopback#eth0auto eth0iface eth0 inet dhcp

SSH Connection Fails from Workstation to Server but works from Server to Workstation [closed]

$
0
0

I have two PCs running Linux Mint 20.10. One is my daily workstation and the other is used as a server for Home Assistant. I have installed both the openssh client and server on both PCs and confirmed they are enabled and started. I've checked and the Linux firewalls are not blocking port 22 and my router is allowing connections to 22 on my LAN. When I try to connect from my workstation to the Home Assistant (HA) server with any ssh client, the connection always times out without any connection being made. I am able to ssh from the server to my workstation without any problem.

I have tried using the verbose mode of ssh as well as looking at the auth_logs to see if they might give me a clue on the problem. Neither shows anything about the connection once the "connecting 192.168.1.193" is issued. I can ping the HA server from my workstation without issue. However when I do a traceroute I get nothing but asterisks. Interestingly my Home Assistant instance is running inside VirtualBox bridged to the servers ethernet connection and has it's own IP. When I traceroute to the HA IP address I get the route info, no asterisks.

RESULT OF SSH TO SERVERresto@AMD9-3900-Mint:/etc/ssh$ ssh -v 192.168.1.193OpenSSH_8.2p1 Ubuntu-4ubuntu0.1, OpenSSL 1.1.1f 31 Mar 2020debug1: Reading configuration data /etc/ssh/ssh_configdebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no filesdebug1: /etc/ssh/ssh_config line 21: Applying options for *debug1: Connecting to 192.168.1.193 [192.168.1.193] port 22.debug1: connect to address 192.168.1.193 port 22: Connection timed outssh: connect to host 192.168.1.193 port 22: Connection timed outresto@AMD9-3900-Mint:/etc/ssh$

TRACEROUTE TO THE HOME ASSISTANT INSTANCE ON SERVERresto@AMD9-3900-Mint:/etc/ssh$ sudo traceroute 192.168.1.194traceroute to 192.168.1.194 (192.168.1.194), 30 hops max, 60 byte packets1 192.168.1.194 (192.168.1.194) 0.618 ms 0.582 ms 0.569 ms

TRACEROUTE TO THE SERVER HOSTING MY HOME ASSISTANT INSTANCEresto@AMD9-3900-Mint:/etc/ssh$ sudo traceroute 192.168.1.193traceroute to 192.168.1.193 (192.168.1.193), 30 hops max, 60 byte packets1 * * *2 * * *3 * * *4 * * *5 * * *6 * * *7 * * *8 * * *9 * * *10 * * *11 * *^Cresto@AMD9-3900-Mint:/etc/ssh$

I have Googled descriptions of my problem and have learned a lot but not the answer. Hoping someone here might know what's happening and how I can fix it.

Thanks, Jeff

iwlwifi 11n_disable=1 - Why does this work briefly?

$
0
0

OS = Ubuntu 18.04 LTSPC = Lenovo Ideapad Y500 (released 2012)Wireless card = Intel Centrino Wireless N2230

I just installed Ubuntu 18.04 LTS on an old Lenovo Ideapad (notebook) model Y500. It works OK, but for WiFi to work, I have to provide these commands in a Terminal:

sudo modprobe -r iwlwifisudo modprobe iwlwifi 11n_disable=1

This works, but only for a little while. If the computer goes to sleep (or is rebooted), I have to give these commands again.

  1. I have no clue what these commands do.

  2. Whatever these fixes, I would like to make permanent.

  3. When this works, WiFi speed is horrible (about 20 Mbps), but wired ethernet speed is wonderful (about 930 Mbps - I have fiber internet).

I have no clue what Ubuntu sees as my WiFi card. If this were Windows, I could look at the Device Manager and see what Windows thought it is (which can be wrong). With Linux, I'm too stupid to figure out what the OS thinks the card is.

Is it possible that Ubuntu is misidentifying my wireless card? If yes, can I fix this (and improve speed) by using a different driver?

Login to Existing Windows Domain through Ubuntu

$
0
0

So following is my scenario.

I have a domain network and only single machine with Ubuntu. All users are registered on this windows domain.I have no control over domain network it is maintained by someone else. What is happening is the machine with Ubuntu is being continuous thrown off the network cause the user is not of the windows domain. I want to use the existing windows Active Directory or User Directory. I am bad with network terminology and integrate it with Ubuntu.

I have been referring the following guides for the same(Am only allowed to post 2 links):ActiveDirectoryWinbindHowto

Now the issues is steps are written to follow and proceed. But it doesnt explain what each does so i cannot predict what can go wrong after doing this in my case. Moreover I am very poor at Networking and its concept. And I do not understand LDAP and SAMBA configuration.

Is there an easier resource or easy to use automation tools to take care of this on Ubuntu. I refer the following for automated tools:likewiseopenBut again how it does at the back is not explained so I cannot predict what can go wrong and it will be difficult to go back.

So now questions are 1 - Is there a guide that actually explains the steps you are doing ??2 - Is there a safe practice to follow if we take these steps from online for ease of reverting back what has been done?3 - Are there any currently active automated tools available for this kind of stuff in ubuntu?And last but not the least4 - Is this process really this complex??

Any help and direction for proper resource or proper terminology to use for search would be great help.

Ubuntu 20.04. Two network cards. Netplan. Can't configure in parallel

$
0
0

I have a problem. There is a server. It has two network cards installed.

Logically, one network card (enp4s0) for the Internet.

Second network card (enp2s5) for network users to access the server (server IP: 192.168.1.5).

The problem is my config only works for one network card.

When I change the metrics, only access from the network works, or access to the server from the Internet. I need everything to work in parallel.

Please tell me what is my mistake?

According to the configuration below, I can access the server, both from the Internet and from the local network, but users do not see it (since the metrics for enp4s0 are lower than for enp2s5)

Netplan

network:  ethernets:    enp4s0:      dhcp4: no      addresses: [192.168.0.222/24]      nameservers:        addresses: [1.1.1.1, 2.2.2.2]    routes:      - to: 0.0.0.0/0        via: 192.168.0.1        metric: 1    enp2s5:      dhcp4: no      addresses: [192.168.1.5/24]      routes:        - to: 0.0.0.0/0          via: 192.168.1.1          metric: 2        - to: 0.0.0.0/0          via: 192.168.2.1          metric: 2  version: 2  renderer: networkd          

Device /dev/ttyUSB2 is locked

$
0
0

My GSM modem is attached to ttyUSB2 port but I am not able to access the port for AT commands. When I try to access it I get an error as below:

$ sudo minicomDevice /dev/ttyUSB2 is locked.

Ping failure monitor

$
0
0

the network frequently fails and I would like to monitor the output. I tried to makeshift a command like:

ping www.google.fr | while read pong; do echo "$(date): $pong"; done 1>/dev/null && 2> ~/ping_err.log

but the STDERR is still redirected to STDOUT instead ping_err.log

note: I want only STDERR in the file (not 2>&1)

Thanks!

netplan switch connection on renderer networkd

$
0
0

I have installed on rpi4 8Gb an ubuntu 20.04 server image for rpi4 64Bit

then I have installed ubuntu-desktop

I have problem on wifi and setup this bug

I have disable NetworkManager thinking the pakage have some bug

I have to stay on LTS version 20.04 so if it work on 20.10 I have to wait a backport

I configure netplan to use networkd as renderer.

I future I have to configure vpn.

I have not found maual/help/google on how to change connection.
On NetworkManager I can setup 4 connection for example

  1. conn1 using dhcp
  2. conn2 using fix IP for test
  3. conn3 using wifi
  4. con4 using a vpn

then I can choose the connection to use.
close connection 1 ad open connection 2 etc.

How con do this on my configuration using netplan, systemd-networkd?

best regards,
Leonardo


how to communicate from an external os to an virtualbox machine

$
0
0

i have two pc and in one of them i have an ubuntu and on another i have an ubuntu that installed virtualbox machine on it.

i want the VM on the second pc be in an separate network and i can communicate to that via first pc.
(for example all devices on the main network are in the 192.168.1.0/24, but i don't want that the VM be in the main network and i want to be able to connect to that, via first machine that is not the host)
if i set the NAT network, i be able to connect from the VM to the first pc, but i want to comminucate from first pc to the VM.
and if i set bridged network, everything is good, but the VM is in the main network, that i don't want like that.

is that possible? maybe i should add an static route in the first pc.

"ssh_exchange_identification: Connection closed by remote host. Lost Connection." When coping a file over ssh, using scp file.pdf user@ssh-sissa

$
0
0

I am trying to copy a pdf file named cvlatex.pdf from my machine to my personal space on a university server. On my machine, the file is located at C:\Users\matte\OneDrive\Desktop\Web Page

If I connect to the server with nrungi@ssh-sissa and I run pwd, it prints /u/n/nrungi/ and if I run ls it prints many directories including public_html which is the one I want to move my pdf in.

I tried with the control scp cvlatex. nrungi@ssh-sissa:/u/n/nrungi/public_html/, but this returns the error message ssh_exchange_identification: Connection closed by remote host. Lost Connection.

I've read that this control should work but I don't understand why it doesn't contain the path to the file on my computer. In fact, in my case it does not work.

What is the right control?

P.S. I'm connecting via ssh by using the program PuTTy on Windows 10.

Linphone: could not start tls transport on port 5060, maybe this port is already used?

$
0
0

update:

Probably this is because of NAT, although that might an Ekiga specific problem.

I've tried multiple clients on this machine, cannot get any SIP clients to work for me. On the same network, an Android tablet can call an IP phone, no problem, using free SIP accounts. Also, an IP phone, SPA 942, works fine with anveo. The hardphone worked fine with a free Anveo account, so I upgraded ($5/month or so?) to the paid service.


Why is linphone reporting that port 5060 is in use?

thufir@doge:~$ thufir@doge:~$ sudo netstat -peanutActive Internet connections (servers and established)Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode       PID/Program nametcp        0      0 127.0.1.1:53            0.0.0.0:*               LISTEN      0          24006       2764/dnsmasq    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          27787       2336/sshd       tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      0          121080      9291/cupsd      tcp        0      0 0.0.0.0:119             0.0.0.0:*               LISTEN      0          19800       2117/inetd      tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      0          22477       2600/sendmail: MTA:tcp        0      0 127.0.0.1:587           0.0.0.0:*               LISTEN      0          22478       2600/sendmail: MTA:tcp        0      0 192.168.1.4:57926       104.20.60.241:80        TIME_WAIT   0          0           -               tcp        0      0 192.168.1.4:60302       104.20.59.241:80        ESTABLISHED 1000       123617      9759/firefox    tcp        0      0 192.168.1.4:59140       173.194.202.108:993     ESTABLISHED 1003       42919       4757/alpine     tcp        0      0 192.168.1.4:32832       216.58.194.202:80       ESTABLISHED 1000       123738      9759/firefox    tcp        0      0 192.168.1.4:57924       104.20.60.241:80        TIME_WAIT   0          0           -               tcp        0      0 192.168.1.4:49692       35.165.39.15:443        ESTABLISHED 1000       123774      9759/firefox    tcp        0      0 192.168.1.4:34044       173.194.203.108:993     ESTABLISHED 1000       61100       7178/alpine     tcp        0      0 192.168.1.4:57922       104.20.60.241:80        TIME_WAIT   0          0           -               tcp        0      0 192.168.1.4:48654       199.96.57.6:443         ESTABLISHED 1000       123739      9759/firefox    tcp        0      0 192.168.1.4:57320       216.58.192.14:443       ESTABLISHED 1000       123765      9759/firefox    tcp        0      0 192.168.1.4:39708       74.125.28.109:993       ESTABLISHED 1000       117469      7178/alpine     tcp        0      0 192.168.1.4:57930       104.20.60.241:80        TIME_WAIT   0          0           -               tcp        0      0 192.168.1.4:59144       173.194.202.108:993     ESTABLISHED 1003       42929       4757/alpine     tcp        0      0 192.168.1.4:45048       72.21.91.29:80          ESTABLISHED 1000       126693      9759/firefox    tcp        0      0 192.168.1.4:32772       173.194.202.108:993     ESTABLISHED 1000       60713       7178/alpine     tcp        0      0 192.168.1.4:57326       216.58.192.14:443       TIME_WAIT   0          0           -               tcp        0      0 192.168.1.4:49188       216.58.192.14:80        ESTABLISHED 1000       123770      9759/firefox    tcp        0      0 192.168.1.4:41466       74.125.28.108:993       ESTABLISHED 1000       117366      7178/alpine     tcp        0      0 192.168.1.4:45530       52.27.92.252:443        ESTABLISHED 1000       126723      9759/firefox    tcp        0      0 192.168.1.4:55378       202.81.252.44:119       ESTABLISHED 9          117373      8590/fetchnews  tcp        0      0 192.168.1.4:57928       104.20.60.241:80        TIME_WAIT   0          0           -               tcp6       0      0 :::22                   :::*                    LISTEN      0          27789       2336/sshd       tcp6       0      0 ::1:631                 :::*                    LISTEN      0          121079      9291/cupsd      udp        0      0 0.0.0.0:38810           0.0.0.0:*                           111        19008       2200/avahi-daemon: udp        0      0 127.0.1.1:53            0.0.0.0:*                           0          24005       2764/dnsmasq    udp        0      0 0.0.0.0:68              0.0.0.0:*                           0          26745       3432/dhclient   udp        0      0 0.0.0.0:5353            0.0.0.0:*                           111        19006       2200/avahi-daemon: udp        0      0 0.0.0.0:631             0.0.0.0:*                           0          20616       2279/cups-browsedudp6       0      0 :::43979                :::*                                111        19009       2200/avahi-daemon: udp6       0      0 :::5353                 :::*                                111        19007       2200/avahi-daemon: thufir@doge:~$ thufir@doge:~$ lsof -i -n -P | grep 5060thufir@doge:~$ thufir@doge:~$ lsof -i :5060thufir@doge:~$ 

screenshot:

port 5060 in use

the debug window:

message: Using (r/w) config information from .linphonercmessage: Initializing LinphoneCore 3.6.1message: oRTP-0.22.0 initialized.message: assigning PCMU/8000 payload type number 0message: assigning GSM/8000 payload type number 3message: assigning PCMA/8000 payload type number 8message: assigning speex/8000 payload type number 110message: assigning speex/16000 payload type number 111message: assigning speex/32000 payload type number 112message: assigning telephone-event/8000 payload type number 101message: assigning G722/8000 payload type number 9message: assigning H263/90000 payload type number 34message: assigning theora/90000 payload type number 97message: assigning H263-1998/90000 payload type number 98message: assigning MP4V-ES/90000 payload type number 99message: assigning H264/90000 payload type number 102message: assigning VP8/90000 payload type number 103message: assigning x-snow/90000 payload type number 96message: assigning iLBC/8000 payload type number 100message: assigning AMR/8000 payload type number 104message: assigning AMR-WB/16000 payload type number 105message: assigning 1015/8000 payload type number 106message: assigning G726-16/8000 payload type number 107message: assigning G726-24/8000 payload type number 108message: assigning G726-32/8000 payload type number 109message: assigning G726-40/8000 payload type number 113message: assigning AAL2-G726-16/8000 payload type number 114message: assigning AAL2-G726-24/8000 payload type number 115message: assigning AAL2-G726-32/8000 payload type number 116message: assigning AAL2-G726-40/8000 payload type number 117message: assigning SILK/8000 payload type number 118message: assigning SILK/12000 payload type number 119message: assigning SILK/16000 payload type number 120message: assigning SILK/24000 payload type number 121message: assigning G729/8000 payload type number 18message: assigning mpeg4-generic/22050 payload type number 122message: assigning mpeg4-generic/44100 payload type number 123message: assigning opus/48000 payload type number 124message: assigning 1016/8000 payload type number 1message: assigning GSM/8000 payload type number 3message: assigning G723/8000 payload type number 4message: assigning LPC/8000 payload type number 7message: assigning PCMA/8000 payload type number 8message: assigning G722/8000 payload type number 9message: assigning L16/44100 payload type number 10message: assigning L16/44100 payload type number 11message: assigning G729/8000 payload type number 18message: assigning H261/90000 payload type number 31message: assigning MPV/90000 payload type number 32message: assigning H263/90000 payload type number 34message: Mediastreamer2 2.9.1 (git: 2.9.0-7-g51d3c20) starting.message: ms_base_init() donemessage: Registering all soundcard handlersmessage: Card 'ALSA: default device' addedwarning: Could not attach mixer to card: Invalid argumentwarning: Strange, sound card HDA Intel does not seems to be capable of anything, retrying with plughw...message: Card 'ALSA: HDA Intel' addedmessage: Card 'PulseAudio: default' addedmessage: New PulseAudio context state: PA_CONTEXT_CONNECTINGmessage: Registering all webcam handlersmessage: Webcam StaticImage: Static picture addedmessage: New PulseAudio context state: PA_CONTEXT_AUTHORIZINGmessage: New PulseAudio context state: PA_CONTEXT_SETTING_NAMEmessage: New PulseAudio context state: PA_CONTEXT_READYmessage: ms_voip_init() donemessage: Loading ms plugins from [/usr/lib/x86_64-linux-gnu/mediastreamer/plugins]message: Cannot open directory /usr/lib/x86_64-linux-gnu/mediastreamer/plugins: No such file or directorymessage: Cannot open directory /usr/lib/liblinphone/plugins: No such file or directorymessage: linphone_core_set_playback_gain_db(): no active call.message: linphone_core_set_mic_gain_db(): no active call.message: MTU is supposed to be 1300, rtp payload max size will be 1240message: Could not find encoder for 1016message: Could not find decoder for 1016message: Could not find encoder for GSMmessage: Could not find decoder for GSMmessage: Could not find encoder for G723message: Could not find decoder for G723message: Could not find encoder for LPCmessage: Could not find decoder for LPCmessage: Could not find encoder for G729message: Could not find decoder for G729message: Could not find encoder for iLBCmessage: Could not find decoder for iLBCmessage: Could not find encoder for telephone-eventmessage: Could not find decoder for telephone-eventmessage: Could not find encoder for AMRmessage: Could not find decoder for AMRmessage: Could not find encoder for AMR-WBmessage: Could not find decoder for AMR-WBmessage: Could not find encoder for 1015message: Could not find decoder for 1015message: Could not find encoder for SILKmessage: Could not find decoder for SILKmessage: Could not find encoder for SILKmessage: Could not find decoder for SILKmessage: Could not find encoder for SILKmessage: Could not find decoder for SILKmessage: Could not find encoder for SILKmessage: Could not find decoder for SILKmessage: Could not find encoder for mpeg4-genericmessage: Could not find decoder for mpeg4-genericmessage: Could not find encoder for mpeg4-genericmessage: Could not find decoder for mpeg4-genericmessage: Could not find encoder for H261message: Could not find decoder for H261message: Could not find encoder for MPVmessage: Could not find decoder for MPVmessage: Could not find encoder for x-snowmessage: Could not find decoder for x-snowmessage: Could not find encoder for H264message: TLS server methodwarning: no system certificate loadederror: eXosip: Couldn't read CA listmessage: eXosip: Trusted CA folder : '/etc/ssl/certs'warning: no system certificate loadedmessage: getaddrinfo failure. 0.0.0.0:5060 (-9)warning: Could not start tls transport on port 5060, maybe this port is already used.message: Local interface to reach 87.98.157.38 is 192.168.1.4.message: Local interface to reach 87.98.157.38 is 192.168.1.4.message: New local ip address is 192.168.1.4message: Network state is now [UP]message: Local interface to reach sip.linphone.org is 192.168.1.4.error: wrong state: create transport layer firsterror: wrong state: create transport layer firsterror: wrong state: create transport layer firstmessage: allocating transaction resource 1 828422930message: Sending a new SUBSCRIBEerror: wrong state: create transport layer firsterror: wrong state: create transport layer firsterror: eXosip: missing via headermessage: allocating transaction resource 2 647562304message: linphone_friend_apply() done.message: Sending a new SUBSCRIBEerror: wrong state: create transport layer firsterror: wrong state: create transport layer firsterror: eXosip: missing via headermessage: allocating transaction resource 3 1353760134message: linphone_friend_apply() done.message: Sending a new SUBSCRIBEerror: wrong state: create transport layer firsterror: wrong state: create transport layer firsterror: eXosip: missing via headermessage: allocating transaction resource 4 885502749message: linphone_friend_apply() done.message: Local interface to reach 87.98.157.38 is 192.168.1.4.message: Local interface to reach 87.98.157.38 is 192.168.1.4.message: Local interface to reach 87.98.157.38 is 192.168.1.4.message: Local interface to reach 87.98.157.38 is 192.168.1.4.message: Local interface to reach 87.98.157.38 is 192.168.1.4.message: Local interface to reach 87.98.157.38 is 192.168.1.4.message: Local interface to reach 87.98.157.38 is 192.168.1.4.message: Local interface to reach 87.98.157.38 is 192.168.1.4.message: Local interface to reach 87.98.157.38 is 192.168.1.4.message: Local interface to reach 87.98.157.38 is 192.168.1.4.message: Local interface to reach 87.98.157.38 is 192.168.1.4.message: Local interface to reach 87.98.157.38 is 192.168.1.4.message: Local interface to reach 87.98.157.38 is 192.168.1.4.message: Local interface to reach 87.98.157.38 is 192.168.1.4.message: Local interface to reach 87.98.157.38 is 192.168.1.4.

After trying to change the SIP port to 5069:

thufir@doge:~$ thufir@doge:~$ linphonecALSA lib conf.c:4738:(snd_config_expand) Unknown parameters 0ALSA lib control.c:954:(snd_ctl_open_noupdate) Invalid CTL default:0ALSA lib conf.c:4738:(snd_config_expand) Unknown parameters 0ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default:0ALSA lib conf.c:4738:(snd_config_expand) Unknown parameters 0ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default:0Warning: Could not start tls transport on port 5069, maybe this port is already used.ReadyWarning: video is disabled in linphonec, use -V or -C or -D to enable.linphonec> linphonec> portssip port = 5069audio rtp port = 7078video rtp port = 9078linphonec> linphonec> statesGlobal liblinphone stateLinphoneGlobalOnCall statesId |            Destination              |      State      |    Flags   |------------------------------------------------------------------------(empty)Proxy registration states           Identity                      |      State------------------------------------------------------------sip:thufir@sip.linphone.org              | LinphoneRegistrationProgresslinphonec> linphonec> quitTerminating...ortp-error-cannot unsubscribe, no dialog !ortp-error-cannot unsubscribe, no dialog !ortp-error-cannot unsubscribe, no dialog !thufir@doge:~$ 

From the GUI I set NAT and entered my external IP. After switching to ipv6 the GUI showed that the registration failed.

I would prefer to use linphonec, which is the CLI. It's just for chat.

I was able to use the OnSIP web-application to call an ekiga account registered on an Android tablet on the network.

see also:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=743494

http://www.linuxquestions.org/questions/linux-software-2/configuring-linphone-4175485161/

http://nongnu.13855.n7.nabble.com/The-port-5060-already-used-problem-td197509.html

https://opensips.org/pipermail/users/2014-September/029913.html

Dynamic IP to Domain assignment [closed]

$
0
0

Is there anyway to automatically assign a dynamic IP to a domain (sub-domain) that I own?

I have a domain at A2 Hosting, let's say mysillysites.com and I've created the sub-domain homesvr.mysillysites.com . Now, at home I have a System of Ubuntu server 20.04 and I want to access it from anywhere using a my sub-domain: homesvr.mysillysites.com

Is it possible ?

Can't access local server via ssh - How to debug?

$
0
0

I can't access a server via ssh from a specific client.

  1. server ssh is working fine because I can access it from another clients

  2. client machine is working fine because I can access all other servers from it

  3. I try to debug using -vvv but I got no response:

josir@casa2:~/bin$ ssh -vvv supervisor@192.168.0.20OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017debug1: Reading configuration data /home/josir/.ssh/configdebug1: Reading configuration data /etc/ssh/ssh_configdebug1: /etc/ssh/ssh_config line 19: Applying options for *debug2: resolving "192.168.0.20" port 22debug2: ssh_connect_direct: needpriv 0debug1: Connecting to 192.168.0.20 [192.168.0.20] port 22.debug1: connect to address 192.168.0.20 port 22: Connection refusedssh: connect to host 192.168.0.20 port 22: Connection refused

Client (192.168.0.34) and Server (192.168.0.20) are on the same network.

How can I debug to find where the problem is?

Viewing all 23516 articles
Browse latest View live


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