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

Need Help Executing commands inside of Bash Script

$
0
0
Hello all - Scripting n00b here. I'm setting up the UFW and I have a file with about 80,000 commands I need to run. I figured I would just loop through the file and execute the commands, but I'm have an issue doing it. Need some help. Here's what I built so far:

SetupUFW.sh
Code:

#!/bin/bash
while read p; do
  echo "$p"
done < BlockList.txt

BlockList.txt (80,000 lines that look like this:)
Code:

sudo ufw deny from 1.0.1.0/24
sudo ufw deny from 1.0.2.0/23
sudo ufw deny from 1.0.8.0/21

As you can see, I'm trying to loop through the file called BlockList.txt as I have already built it with the commands necessary. How can I loop through each line and execute the lines? Any help you can provide would be appreciated.

[Samba v2] Duplicate entries?

$
0
0
Hiya!

I don't know much about Samba, but why do I see two entries of the same Samba Server on my local network?

Here I have two server machines, UBUNTU64 (Samba v1) and M75Q (Samba v2):



Why two M75q?

Multiple ISPs and static IP from one ISP

$
0
0
Dear All,
Question before I make a mistake.
I currently have a wan connection (internet), which hosts 8 ip address (on router A from ISP A), apart from the networking required addresses 1 is used as a default route and the remaining 5 are forwarding traffic (NOT NATTING) to 5 internal devices which are accessible from the internet. Router A has a number of static routes all pointing to an internal ubuntu machine acting as a router for the subnets. All works perfectly.

If I wanted to add an addition ISP via router B (much faster connections but no services such as mail DNS , static IPs) as a new outbound default route…

I assume I can use the ubuntu router to by default route all traffic via router B, BUT any traffic to from my servers with static ip addresses from router A still to use router A for outbound & access to specific services at ISP A to be touted via router a ?

Lastly if ISP B fails, to be able to switch back the default route to ISP A automatically if possible

Would this be route commands on the ubuntu server and if so any tips?

Many Thanks
Andrew

[SOLVED] strange wifi behavior.

$
0
0
I have a laptop whose wifi suddenly stopped working, but only for one ssid. It was connected to the desired ssid and working fine with my manual config, but not anymore. I tried switching back to dhcp but that didnt help. I can connect to my service providers ssid just fine.

When connected to the desired ssid i get the little connected to wifi icon in the top bar, but i cant even ping the gateway. I updated everythin and tried a restart but still cant get internet.

i am genuinely baffled. heres some more info:

Code:

Ubuntu 20.04.1 LTS

--> lshw
*-network
            description: Wireless interface
            product: Wireless-AC 9560 [Jefferson Peak]
            vendor: Intel Corporation
            physical id: 14.3
            bus info: pci@0000:00:14.3
            logical name: wlo1
            version: 10
            serial: 30:24:32:5a:73:73
            width: 64 bits
            clock: 33MHz
            capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
            configuration: broadcast=yes driver=iwlwifi driverversion=5.8.0-40-generic firmware=46.6bf1df06.0 9000-pu-b0-jf-b0- ip=192.168.1.168 latency=0 link=yes multicast=yes wireless=IEEE 802.11


--> kernel
Linux rxlx 5.8.0-40-generic #45~20.04.1-Ubuntu SMP Fri Jan 15 11:35:04 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux


--> modinfo btintel
filename:      /lib/modules/5.8.0-40-generic/kernel/drivers/bluetooth/btintel.ko
firmware:      intel/ibt-12-16.ddc
firmware:      intel/ibt-12-16.sfi
firmware:      intel/ibt-11-5.ddc
firmware:      intel/ibt-11-5.sfi
license:        GPL
version:        0.1
description:    Bluetooth support for Intel devices ver 0.1
author:        Marcel Holtmann <marcel@holtmann.org>
srcversion:    A42C3539AE01FBB98F673AD
depends:        bluetooth
retpoline:      Y
intree:        Y
name:          btintel
vermagic:      5.8.0-40-generic SMP mod_unload
sig_id:        PKCS#7
signer:        Build time autogenerated kernel key

z490 ethernet issue

$
0
0
Dear all.

I have bought 2 new pc. they both are z490 m/b (with wifi adaptor).
I ran into networking issues both pc cannot connect to the internet (not found either ethernet cable or wifi adaptor).
However, I need to use Kernel version 4.15 and ubuntu 18.04.

1st pc Spec
CPU: Intel I9-10900K
M/B: ASUS ROG STRIXX Z490-F Gaming
VGA: RTX3080
RAM: DDR4 16GB/3600x2
SSD: 2TB Samsung 970 Evo+
Wifi script output :
Code:


########## wireless info START ##########


Report from: 02 Feb 2021 05:58 +07 +0700


Booted last: 02 Feb 2021 00:00 +07 +0700


Script from: 25 Jan 2020 03:34 UTC +0000


##### release ###########################


Distributor ID:    Ubuntu
Description:    Ubuntu 18.04 LTS
Release:    18.04
Codename:    bionic


##### kernel ############################


Linux 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


Parameters: ro, quiet, splash, vt.handoff=1


##### desktop ###########################


Ubuntu


##### lspci #############################


00:14.3 Network controller [0280]: Intel Corporation Device [8086:06f0]
    Subsystem: Intel Corporation Device [8086:0074]


00:16.0 Communication controller [0780]: Intel Corporation Device [8086:06e0]


05:00.0 Ethernet controller [0200]: Intel Corporation Device [8086:15f3] (rev 02)
    Subsystem: Gigabyte Technology Co., Ltd Device [1458:e000]


##### lsusb #############################


Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 2516:0015 
Bus 001 Device 003: ID 046d:c08f Logitech, Inc.
Bus 001 Device 004: ID 1e71:2007 NZXT
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 007: ID 8087:0026 Intel Corp.
Bus 001 Device 006: ID 048d:5702 Integrated Technology Express, Inc.
Bus 001 Device 008: ID 0781:5567 SanDisk Corp. Cruzer Blade
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


##### PCMCIA card info ##################


##### rfkill ############################


##### secure boot #######################


SecureBoot disabled


##### lsmod #############################


wmi_bmof              16384  0
intel_wmi_thunderbolt    16384  0
mxm_wmi                16384  1 nouveau
wmi                    24576  4 wmi_bmof,intel_wmi_thunderbolt,mxm_wmi,nouveau


##### interfaces ########################


[/etc/network/interfaces]
auto lo
iface lo inet loopback


##### ifconfig ##########################


1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback <MAC address> brd <MAC address>
    inet 127.0.0.1/8 scope host lo
      valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
      valid_lft forever preferred_lft forever


##### iwconfig ##########################


lo        no wireless extensions.


##### route #############################


##### resolv.conf #######################


[777 root '/etc/resolv.conf' -> '../run/systemd/resolve/stub-resolv.conf']


nameserver 127.0.0.53


##### network managers ##################


Installed:


    NetworkManager


Running:


root      820    1  0 05:26 ?        00:00:00 /usr/sbin/NetworkManager --no-daemon


##### NetworkManager info ###############


##### NetworkManager.state ##############


cat: /var/lib/NetworkManager/NetworkManager.state: No such file or directory


##### NetworkManager config #############


[[/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf]]
[connection]
wifi.powersave = 3


[[/etc/NetworkManager/NetworkManager.conf]]
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
[device]
wifi.scan-rand-mac-address=no


[[/usr/lib/NetworkManager/conf.d/10-dns-resolved.conf]]
[main]
dns=systemd-resolved


[[/usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf]]
[keyfile]
unmanaged-devices=*,except:type:wifi,except:type:wwan


[[/usr/lib/NetworkManager/conf.d/20-connectivity-ubuntu.conf]]
[connectivity]
uri=http://connectivity-check.ubuntu.com/


[[/usr/lib/NetworkManager/conf.d/no-mac-addr-change.conf]]
[device-mac-addr-change-wifi]
match-device=driver:rtl8723bs,driver:rtl8189es,driver:r8188eu,driver:8188eu,driver:eagle_sdio,driver:wl
wifi.scan-rand-mac-address=no
wifi.cloned-mac-address=preserve
ethernet.cloned-mac-address=preserve


##### NetworkManager profiles ###########


##### Netplan config ####################


[/etc/netplan/01-network-manager-all.yaml]
network:
  version: 2
  renderer: NetworkManager


##### iw reg get ########################


Region: Asia/Bangkok (based on set time zone)


global
country 00: DFS-UNSET
    (2402 - 2472 @ 40), (6, 20), (N/A)
    (2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
    (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
    (5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
    (5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
    (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
    (5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
    (57240 - 63720 @ 2160), (N/A, 0), (N/A)


##### iwlist channels ###################


lo        no frequency information.


##### iwlist scan #######################


lo        Interface doesn't support scanning.


##### module infos ######################


##### module parameters #################


##### /etc/modules ######################


##### modprobe options ##################


[/etc/modprobe.d/blacklist-ath_pci.conf]
blacklist ath_pci


[/etc/modprobe.d/blacklist.conf]
blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5
blacklist eth1394
blacklist snd_intel8x0m
blacklist snd_aw2
blacklist i2c_i801
blacklist prism54
blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp
blacklist pcspkr
blacklist amd76x_edac


[/etc/modprobe.d/blacklist-rare-network.conf]
alias net-pf-3 off
alias net-pf-6 off
alias net-pf-9 off
alias net-pf-11 off
alias net-pf-12 off
alias net-pf-19 off
alias net-pf-21 off
alias net-pf-36 off


[/etc/modprobe.d/iwlwifi.conf]
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211


##### rc.local ##########################


grep: /etc/rc.local: No such file or directory


##### pm-utils ##########################


##### udev rules ########################


##### dmesg #############################


[ 1331.956889] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 1918.956024] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2


########## wireless info END ############

2nd pc Spec
CPU: Intel I7-10700K
M/B: ASROCK Z490 STEEL LEGEND
VGA: RTX3070
RAM: DDR4 16GB/3200x2
SSD: 1TB WD Blue M.2 NVMe
Wifi script output :
Code:


########## wireless info START ##########


Report from: 02 Feb 2021 05:02 +07 +0700


Booted last: 02 Feb 2021 00:00 +07 +0700


Script from: 25 Jan 2020 03:34 UTC +0000


##### release ###########################


Distributor ID:    Ubuntu
Description:    Ubuntu 18.04 LTS
Release:    18.04
Codename:    bionic


##### kernel ############################


Linux 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


Parameters: ro, quiet, splash, vt.handoff=1


##### desktop ###########################


Ubuntu


##### lspci #############################


03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. Device [10ec:8125] (rev 05)
    Subsystem: ASRock Incorporation Device [1849:8168]


04:00.0 Non-Volatile memory controller [0108]: Sandisk Corp Device [15b7:5009] (rev 01)


##### lsusb #############################


Bus 002 Device 002: ID 174c:3074 ASMedia Technology Inc. ASM1074 SuperSpeed hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 0781:5567 SanDisk Corp. Cruzer Blade
Bus 001 Device 004: ID 174c:2074 ASMedia Technology Inc. ASM1074 High-Speed hub
Bus 001 Device 003: ID 046d:c08f Logitech, Inc.
Bus 001 Device 002: ID 2516:0015 
Bus 001 Device 006: ID 26ce:01a2 
Bus 001 Device 005: ID 1e71:2007 NZXT
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


##### PCMCIA card info ##################


##### rfkill ############################


##### secure boot #######################


SecureBoot disabled


##### lsmod #############################


wmi_bmof              16384  0
intel_wmi_thunderbolt    16384  0
mxm_wmi                16384  1 nouveau
wmi                    24576  4 wmi_bmof,intel_wmi_thunderbolt,mxm_wmi,nouveau


##### interfaces ########################


[/etc/network/interfaces]
auto lo
iface lo inet loopback


##### ifconfig ##########################


1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback <MAC address> brd <MAC address>
    inet 127.0.0.1/8 scope host lo
      valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
      valid_lft forever preferred_lft forever


##### iwconfig ##########################


lo        no wireless extensions.


##### route #############################


##### resolv.conf #######################


[777 root '/etc/resolv.conf' -> '../run/systemd/resolve/stub-resolv.conf']


nameserver 127.0.0.53


##### network managers ##################


Installed:


    NetworkManager


Running:


root      693    1  0 05:01 ?        00:00:00 /usr/sbin/NetworkManager --no-daemon


##### NetworkManager info ###############


##### NetworkManager.state ##############


Sorry, try again.
cat: /var/lib/NetworkManager/NetworkManager.state: No such file or directory


##### NetworkManager config #############


[[/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf]]
[connection]
wifi.powersave = 3


[[/etc/NetworkManager/NetworkManager.conf]]
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
[device]
wifi.scan-rand-mac-address=no


[[/usr/lib/NetworkManager/conf.d/10-dns-resolved.conf]]
[main]
dns=systemd-resolved


[[/usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf]]
[keyfile]
unmanaged-devices=*,except:type:wifi,except:type:wwan


[[/usr/lib/NetworkManager/conf.d/20-connectivity-ubuntu.conf]]
[connectivity]
uri=http://connectivity-check.ubuntu.com/


[[/usr/lib/NetworkManager/conf.d/no-mac-addr-change.conf]]
[device-mac-addr-change-wifi]
match-device=driver:rtl8723bs,driver:rtl8189es,driver:r8188eu,driver:8188eu,driver:eagle_sdio,driver:wl
wifi.scan-rand-mac-address=no
wifi.cloned-mac-address=preserve
ethernet.cloned-mac-address=preserve


##### NetworkManager profiles ###########


##### Netplan config ####################


[/etc/netplan/01-network-manager-all.yaml]
network:
  version: 2
  renderer: NetworkManager


##### iw reg get ########################


Region: Asia/Bangkok (based on set time zone)


global
country 00: DFS-UNSET
    (2402 - 2472 @ 40), (6, 20), (N/A)
    (2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
    (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
    (5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
    (5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
    (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
    (5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
    (57240 - 63720 @ 2160), (N/A, 0), (N/A)


##### iwlist channels ###################


lo        no frequency information.


##### iwlist scan #######################


lo        Interface doesn't support scanning.


##### module infos ######################


##### module parameters #################


##### /etc/modules ######################


##### modprobe options ##################


[/etc/modprobe.d/blacklist-ath_pci.conf]
blacklist ath_pci


[/etc/modprobe.d/blacklist.conf]
blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5
blacklist eth1394
blacklist snd_intel8x0m
blacklist snd_aw2
blacklist i2c_i801
blacklist prism54
blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp
blacklist pcspkr
blacklist amd76x_edac


[/etc/modprobe.d/blacklist-rare-network.conf]
alias net-pf-3 off
alias net-pf-6 off
alias net-pf-9 off
alias net-pf-11 off
alias net-pf-12 off
alias net-pf-19 off
alias net-pf-21 off
alias net-pf-36 off


[/etc/modprobe.d/iwlwifi.conf]
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211


##### rc.local ##########################


grep: /etc/rc.local: No such file or directory


##### pm-utils ##########################


##### udev rules ########################


##### dmesg #############################


[  78.907929] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2


########## wireless info END ############



I think there is a driver compatibility problem.
Thank you in advance.

Why is ping command not resolving names?

$
0
0
Hey,

Why is the ping command not resolving the name of a server?



Thanks!

HP networkprinter (partially) unreachable

$
0
0
Hi all!

I encountered the following strange behavior on the Ubuntu laptop from a friend. She updated from 18.04 to 20.04 last week and wanted to reinstall her HP OfficeJet Pro 8720 network printer, which was working correctly before.

Since she didn't like the auto discovered printers popping-up all the time, I've tried to disable the auto-discovery. I might have messed up something here. What I did was:
  1. systemctl stop cups-browsed
  2. systemctl disable cups-browsed

Since that didn't work I've enabled an started the service again. I've also tried to put BrowseProtocols to None in /etc/cups/cups-browsed.conf, which also didn't seem to work. I've reverted these settings.

Since she's using HPLIP (repository version), we wanted to reinstall the printer here. Unfortunately the printer was not found anymore. Nevertheless, the printer seemed to be auto-discovered again in the Ubuntu printer screen.
I've tried to ping the printer, which was not possible. Also trying to open the embedded web server of the printer was not working (address unreachable). However if she tries to open the embedded web server from her smartphone in Chrome (same WiFi network), this works. Why it is not reachable from her laptop (Firefox and Chromium) is not clear to me. I have the same printer at home as well, and I can ping it and browse to it from mu Ubuntu 20.04 desktop.
FYI: other IP's like the default gateway are pingable and reachable via the web-browser, only the IP address of the printer is not reachable.

I've tried to remove HPLIP and CUPS afterwards (apt purge), and reinstall it, that however didn't solve anything, as I was afraid. Next I've removed HPLIP and downloaded the latest version from the HP website. I've installed it, but also here the same problem: no printer found with HPLIP. I've removed the downloaded version again and reinstalled the version from the repository, however now I cannot startup the HP toolbox at all anymore (it crashes: I think the version from the HP website did break something).

I can add the printer manually via CUPS in the web browser. It is displayed there and I can install it. However when trying to print something, it says that communication with the printer is not possible.

I'm out of ideas at the moment, what can be wrong. Can someone help?

Many thanks in advance!

Atheros Killer E2201 LAN chip

$
0
0
Please give me instructions as if I was a child who knows nothing of linux.

I just downloaded ubuntu-20.04.1-desktop-amd64 today.
I installed it on my PC with a gigabyte g1.Sniper H6 that uses the Qualcomm® Atheros Killer E2201 LAN chip (10/100/1000 Mbit)
The installation seems to have gone fine with the exception that ubuntu says my ethernet cable is unplugged. Which it is not.
I have read that the e2200 series is a pain to get working. Can anyone link me to a thread that shows how to get it up and running for Ubuntu 20.04.1?

I have no way of accessing the internet with the PC in question.
I do have access to a laptop running windows 10, which I am using to make this post.

I see chili555 fixed this problem for version 13.04
https://ubuntuforums.org/showthread....ighlight=E2200

ples halp meh. .

Realtek Ethernet connection stops working when I leave it plugged in

$
0
0
This is a weird issue that I've had for years, except now I kind of need to be able to leave my LAN wire plugged in.

I have a Toshiba Satellite P755. I have a dual boot with Windows. This issue doesn't happen with Windows.

When I turn it on, if the cable is plugged in, the ethernet port won't even be recognized by Ubuntu. I've tried plugging the cable in and out, and nothing changes. If I unplug the wire, turn the computer off completely, and then boot up, the ethernet port will be there, and I can get a wired connection by just plugging it back.

I can plug it in without issues after the Mate logo goes away during bootup. At that point, it shows what looks like a console screen with a few short messages, saying that it's already loaded drivers and it's executing something like "script/init-premount". However, I can't leave it plugged in during shutdown.

This is the normal output of sudo lshw -C network:

Code:

  *-network               
      description: Ethernet interface
      product: RTL810xE PCI Express Fast Ethernet controller
      vendor: Realtek Semiconductor Co., Ltd.
      physical id: 0
      bus info: pci@0000:01:00.0
      logical name: enp1s0
      version: 05
      serial: b8:70:f4:69:5b:4c
      size: 100Mbit/s
      capacity: 100Mbit/s
      width: 64 bits
      clock: 33MHz
      capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
      configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=full firmware=rtl_nic/rtl8105e-1.fw ip=192.168.0.54 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
      resources: irq:16 ioport:e000(size=256) memory:f0004000-f0004fff memory:f0000000-f0003fff
  *-network
      description: Wireless interface
      product: Centrino Wireless-N 1000 [Condor Peak]
      vendor: Intel Corporation
      physical id: 0
      bus info: pci@0000:02:00.0
      logical name: wlp2s0
      version: 00
      serial: 74:e5:0b:06:f2:62
      width: 64 bits
      clock: 33MHz
      capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
      configuration: broadcast=yes driver=iwlwifi driverversion=5.4.0-65-generic firmware=39.31.5.1 build 35138 ip=192.168.0.53 latency=0 link=yes multicast=yes wireless=IEEE 802.11
      resources: irq:40 memory:f7e00000-f7e01fff


When it's failing, the output is the same for the Wireless interface, but the Ethernet block doesn't show up.

This looks to me like a driver issue, but I'm not sure. The Additional Drivers application doesn't show any new drivers, and "Install Firmware Package" didn't help either. Has anyone encountered this before? Is there a solution?

I'm hoping it can be solved with something like changing how or when the drivers are loaded, or adding a couple of lines to a script that runs during bootup. Any ideas to what that script is at the beginning?

RDP connection to Windows server 2016?

$
0
0
Fresh install of Ubuntu 20.10 on a raspi.

Trying to make a remote desktop connection to a Windows system using Remmina does not succeed in even the first stages of connecting/authentication. Tried all options (RDP, NLA, SSH).

No solutions found in various forums. Is this hopeless?

External hard drive - use by both Ubuntu and Windows, and share using samba questions

$
0
0
I recently obtained a large external drive that I will use for backing up of my critical data (separately from cloud backups).

I formatted the drive using FAT and my plan is to encrypt it using VeraCrypt. That way I can read/write from both my Ubuntu and Windows PCs (when directly plugged in).

Question #1, should I encrypt the entire partition in VeraCrypt or create a very large encrypted volume?

Second, it would be nice if I could access this drive across my network via a share (leaving it plugged into my Ubuntu machine, using the share to access it from Windows and hopefully my phone). Right up front I'll state that I'm not knowledgeable on creating shares in Ubuntu so I'll need help with that.

Question #2, is what I'd ideally like to do (above) doable with a share, considering that I'm sharing a drive encrypted with Veracrypt? This circles back to Question #1, since I assume one method would make it easier to share than the other? Maybe not.

Appreciate any input! Thanks.

[SOLVED] WiFi hard blocked on linux but works on Windows

$
0
0
I have been using Ubuntu and Windows dual boot for over an year now on my HP laptop with Ralink RT3290 wireless card. My wifi worked out of the box on both Windows and Ubuntu. A few days back I decided to update my BIOS from F.18 to F.45 version. After this update my wifi was hard blocked on Ubuntu, although it still worked on Windows. It was even hard blocked on other linux live usbs.

Code:

0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: yes

I have tried almost every possible solution that have been posted on the internet. Things that I have tried:-

Toggling physical wifi switch.

sudo rfkill unblock all

Disabling fast boot on windows.

Turning on/off wifi on windows and then trying it on linux.

Disabling `turn off wifi to save power` in windows.

Checking `sudo dmesg` for any errors related to the wifi and wifi driver `rt2800pci`

All these things on Ubuntu 16.04, 18.04, 20.4 and Arch linux live usb.

Resetting the BIOS. Also my BIOS does not have any option to enable/disable wifi.

Updating the kernel to 5.9.0

Black listing hp_wireless and toggling physical wifi switch, black listing hp_wmi and then toggling physical wifi switch. And all possible combination of black listing the above two modules.

After power off, removing battery, power cord and then holding power button for 1 min. Then putting back the battery, power cord and trying wifi on linux.

Pray to the lord to do a miracle.

But nothing worked. What should I do now?

Some useful information,

Code:

$ sudo lshw -C network
  *-network               
      description: Ethernet interface
      product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
      vendor: Realtek Semiconductor Co., Ltd.
      physical id: 0
      bus info: pci@0000:08:00.0
      logical name: enp8s0
      version: 07
      serial: 34:64:a9:7c:f9:c3
      size: 10Mbit/s
      capacity: 100Mbit/s
      width: 64 bits
      clock: 33MHz
      capabilities: pm msi pciexpress msix vpd bus_master cap_list  ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
      configuration: autonegotiation=on broadcast=yes driver=r8169  driverversion=2.3LK-NAPI duplex=half firmware=rtl8106e-1_0.0.1 06/29/12  latency=0 link=no multicast=yes port=MII speed=10Mbit/s
      resources: irq:18 ioport:4000(size=256) memory:b5600000-b5600fff memory:b5400000-b5403fff
  *-network DISABLED
      description: Wireless interface
      product: RT3290 Wireless 802.11n 1T/1R PCIe
      vendor: Ralink corp.
      physical id: 0
      bus info: pci@0000:0a:00.0
      logical name: wlp10s0f0
      version: 00
      serial: 38:b1:db:0e:c2:49
      width: 32 bits
      clock: 33MHz
      capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
      configuration: broadcast=yes driver=rt2800pci  driverversion=4.18.0-15-generic firmware=N/A latency=0 link=no  multicast=yes wireless=IEEE 802.11
      resources: irq:16 memory:b5510000-b551ffff
  *-network
      description: Ethernet interface
      physical id: 3
      logical name: enp0s20u1
      serial: e6:10:d3:c4:ce:c1
      capabilities: ethernet physical
      configuration: broadcast=yes driver=rndis_host driverversion=22-Aug-2005 firmware=RNDIS device link=yes multicast=yes

$ ifconfig
enp0s20u1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 2402:3a80:915:c061:bd59:fca6:7c0e:f4ba  prefixlen 64  scopeid 0x0<global>
        inet6 2402:3a80:915:c061:847b:1ace:7982:c38b  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::8a40:3adf:c7b3:4023  prefixlen 64  scopeid 0x20<link>
        ether e6:10:d3:c4:ce:c1  txqueuelen 1000  (Ethernet)
        RX packets 69289  bytes 55005112 (55.0 MB)
        RX errors 30  dropped 0  overruns 0  frame 30
        TX packets 58525  bytes 11380820 (11.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp8s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 34:64:a9:7c:f9:c3  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        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

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 7850  bytes 934318 (934.3 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 7850  bytes 934318 (934.3 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

$ iwconfig
lo        no wireless extensions.

wlp10s0f0  IEEE 802.11  ESSID:off/any 
          Mode:Managed  Access Point: Not-Associated  Tx-Power=off 
          Retry short  long limit:2  RTS thr:off  Fragment thr:off
          Power Management:off
         
enp0s20u1  no wireless extensions.

enp8s0    no wireless extensions.

$ sudo uname -a
Linux ubuntu 4.18.0-15-generic #16~18.04.1-Ubuntu SMP Thu Feb 7 14:06:04 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

$ sudo dmesg

https://paste.ubuntu.com/p/tSwhQ2XW2G/

I am speculating that rt2800pci is not compatible with my new BIOS version and I need a different driver. I tried building rt3290sta driver but coundn't do it.

Help :'(

[ubuntu] Setting up a Samba AD DC on Ubuntu 20.04 LTS advice/instructions

$
0
0
I'm about to embark on installing a new SAMBA AD DC server on Ubuntu 20.04.

This is in anticipation of future removal of NT style Domains from Samba. Its something I've been putting off for years.

Can anyone direct me to a Ubuntu 20.04 tutorial or cook book for accomplishing this task?
Installing samba is easy - configuring it seems complicated and I'm not familiar with most of the necessary components.
I'm a little surprised someone hasn't built a tool for configuring it, although given the variations between different version of Linux it would not be a trivial task.
I've found several on the internet including generic ones from the SAMBA Team and some written by individuals around the internet.
The Samba Team ones seem to be generic Linux and not Ubuntu Specific.
All of the individual ones seem full of editorial comments and personal preferences.

I'm more interested in simplicity than perfection.

[xubuntu] WIFI drops out but comes right back

$
0
0
Correction: it is wired internet: not wifi.

A couple weeks ago I had problems with the 5.8 kernel: no sound or internet. Manually booting into a 5.4 kernel, everything was fine. So, in Synaptic, I removed all 5.8 kernels. Everything was fine for a couple days. But now, I'll get a message on the screen saying that my internet connection is lost. However, it only stays that way for maybe 4 or 5 seconds and then I get a message saying that it is restored. This happens maybe every 8-10 minutes apart. When it says that the internet connection is lost, it really is for those 4 or 5 seconds. It does not do this in Win10. Any ideas?

[ubuntu_mate] Network Manager and Systemd-Network Daemons Running

$
0
0
Having installed some kvm guests that are NAT connected I would like to have them in bridge mode. I have followed a number of instructions and believe I have now created and enabled a bridge on my host and all is working well. Except ..... I seem to have both systemd-networkd and network manager up and running. Is this a conflict - should both be running or just systemd-networkd?

Code:

dad@dadubuntu:~$ systemctl status systemd-networkd
● systemd-networkd.service - Network Service
    Loaded: loaded (/lib/systemd/system/systemd-networkd.service; enabled; ven>
    Active: active (running) since Tue 2021-02-09 18:53:43 GMT; 50min ago
TriggeredBy: ● systemd-networkd.socket
      Docs: man:systemd-networkd.service(8)
  Main PID: 481 (systemd-network)
    Status: "Processing requests..."
      Tasks: 1 (limit: 18943)
    Memory: 5.5M
    CGroup: /system.slice/systemd-networkd.service
            └─481 /lib/systemd/systemd-networkd

Feb 09 18:53:43 dadubuntu systemd-networkd[481]: rtnl: received neighbor for li>
Feb 09 18:53:43 dadubuntu systemd-networkd[481]: virbr0-nic: Link UP
Feb 09 18:53:43 dadubuntu systemd-networkd[481]: virbr0-nic: Gained carrier
Feb 09 18:53:43 dadubuntu systemd-networkd[481]: virbr0: Link UP
Feb 09 18:53:43 dadubuntu systemd-networkd[481]: virbr0-nic: Link DOWN
Feb 09 18:53:43 dadubuntu systemd-networkd[481]: virbr0-nic: Lost carrier
Feb 09 18:53:46 dadubuntu systemd-networkd[481]: eno1: Gained carrier
Feb 09 18:53:46 dadubuntu systemd-networkd[481]: br0: Gained carrier
Feb 09 18:53:47 dadubuntu systemd-networkd[481]: br0: DHCPv4 address 192.168.1.>
Feb 09 18:53:48 dadubuntu systemd-networkd[481]: br0: Gained IPv6LL

Code:

dad@dadubuntu:~$ systemctl status network-manager
● NetworkManager.service - Network Manager
    Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendo>
    Active: active (running) since Tue 2021-02-09 18:53:43 GMT; 51min ago
      Docs: man:NetworkManager(8)
  Main PID: 779 (NetworkManager)
      Tasks: 3 (limit: 18943)
    Memory: 14.6M
    CGroup: /system.slice/NetworkManager.service
            └─779 /usr/sbin/NetworkManager --no-daemon

Feb 09 18:53:43 dadubuntu NetworkManager[779]: <info>  [1612896823.7154] device>
Feb 09 18:53:43 dadubuntu NetworkManager[779]: <info>  [1612896823.7157] device>
Feb 09 18:53:43 dadubuntu NetworkManager[779]: <info>  [1612896823.7158] device>
Feb 09 18:53:43 dadubuntu NetworkManager[779]: <info>  [1612896823.7165] device>
Feb 09 18:53:43 dadubuntu NetworkManager[779]: <info>  [1612896823.7326] device>
Feb 09 18:53:43 dadubuntu NetworkManager[779]: <info>  [1612896823.7329] device>
Feb 09 18:53:43 dadubuntu NetworkManager[779]: <info>  [1612896823.7329] device>
Feb 09 18:53:45 dadubuntu NetworkManager[779]: <info>  [1612896825.4657] agent->
Feb 09 18:53:46 dadubuntu NetworkManager[779]: <info>  [1612896826.9113] device>
Feb 09 18:53:46 dadubuntu NetworkManager[779]: <info>  [1612896826.9121] device>
lines 1-20/20 (END)

Code:

dad@dadubuntu:~$ networkctl status -a
● 1: lo                                                       
            Link File: /usr/lib/systemd/network/99-default.link
          Network File: n/a                                   
                  Type: loopback                               
                State: carrier (unmanaged)       
                  MTU: 65536                                 
  Queue Length (Tx/Rx): 1/1                                   
              Address: 127.0.0.1                             
                        ::1                                   

● 2: eno1                                                             
            Link File: /usr/lib/systemd/network/99-default.link     
          Network File: /etc/systemd/network/1-br0-bind.network       
                  Type: ether                                         
                State: enslaved (configured)
                  Path: pci-0000:00:1f.6                             
                Driver: e1000e                                       
                Vendor: Intel Corporation                             
                Model: Ethernet Connection (7) I219-V               
            HW Address: 2c:f0:5d:92:6d:9e (Micro-Star INTL CO., LTD.) 
                  MTU: 1500 (min: 68, max: 9000)                     
  Queue Length (Tx/Rx): 1/1                                           
      Auto negotiation: yes                                           
                Speed: 100Mbps                                       
                Duplex: full                                         
                  Port: tp                                           

Feb 09 18:53:43 dadubuntu systemd-networkd[481]: eno1: Link UP
Feb 09 18:53:46 dadubuntu systemd-networkd[481]: eno1: Gained carrier

● 3: br0                                                                   
              Link File: /usr/lib/systemd/network/99-default.link         
            Network File: /etc/systemd/network/2-br0-dhcp.network         
                    Type: bridge                                           
                  State: routable (configured) 
                  Driver: bridge                                           
              HW Address: 2c:f0:5d:92:6d:9e (Micro-Star INTL CO., LTD.)   
                    MTU: 1500 (min: 68, max: 65535)                       
          Forward Delay: 15s                                             
              Hello Time: 2s                                               
                Max Age: 20s                                             
            Ageing Time: 5min                                             
                Priority: 32768                                           
                    STP: no                                               
  Multicast IGMP Version: 2                                               
    Queue Length (Tx/Rx): 1/1                                             
                Address: 192.168.1.146 (DHCP4)                           
                          2a00:23c8:4182:ba00:2ef0:5dff:fe92:6d9e         
                          fdaa:bbcc:ddee:0:2ef0:5dff:fe92:6d9e             
                          fe80::2ef0:5dff:fe92:6d9e                       
                Gateway: 192.168.1.254 (Sagemcom Broadband SAS)           
                          fe80::7a65:59ff:fe7b:dd5d (Sagemcom Broadband SAS)
lines 1-52

The output of /etc/netplan/01-network-manager-all.yaml reads:

Code:

# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager

I have (managed?) to delete the network manager gui from my host machine panel so I'm not sure where I am. My kvm machine says its Network Source is Bridge br0: Host device eno1 - which looks OK to me - and within the guest machine it says it's ip address is 192.168.1.148 which is the same as my host range. The kvm guest interface is Ethernet (enp1s0). So what is my question? It looks OK to me in that the kvm guests are now 192.168.1.x instead of 192.168.122.x but is it right that both systemd-networkd and Network Manager are both running?

Error with Sudo nm-connection-editor

$
0
0
Hey guys,
I'm trying to make changes to my wired connections, like automatically connecting to the VPN. I can do a straight nm-connection-editor and the connection editor GUI comes up, but it won't let me change anything. So I thought I would try SUDO NM-CONNECTION-EDITOR and that gives me the follow error

No Protocol Specified
Unable to init server: could not connect" connection refused

I have gone through the update steps in the sticky before posting and that didn't help. I've also searched the web for this type of error and can't find anything this specific.

One other thing I'm trying to do is get PLEX to bypass the VPN. I have it setup up in the GUI. There is no CONFIG file in /etc/openvpn/client. If I create one in there with just route plex.tv 255.255.255.255 192.168.1.1 will that work, or do I have to create the whole VPN config file with all the settings. I really would like to just keep the GUI setup and control.

Details -
I am running this on Ubuntu 20.04 LTS
The server has a dual NIC setup and I get the same results on both NICs (deactivating one doesn't help)
Both nics are just connected to my switch

[SOLVED] problem in installing wifi driver for Dell Vostro 1520 wifi

$
0
0
Hello every one.
I installed a 32 bit version of ubuntu on my laptop. and I have problem with wifi.
please tell me how can I install wifi driver?

[ubuntu] VLC / SMB - Watching videos via network-computer

$
0
0
Hey Everyone,


I am having problems watching videos over a network-connection using VLC and MPV media players. I have Ubuntu Gnome (20.04) installed on my laptop and I am trying to access my Mac Mini server (Running MacOS Big Sur) over SMB Protocol to watch videos / movies (streaming) on VLC. When I try to open a video on a network-share via smb / VLC, I get the following error message:

VLC is unable to open the MRL ‘smb://pc_name/directory/Scrubs%20-%20S03E02.avi’

What I am trying to understand:


  • Is a problem with the smb password / authentication (also i don’t think so) - I have set my SMB password inside VLC preferences with no improvements.


  • All my other devices (Apple Laptops, Windows Laptops, Phones, etc.) can access the Mac Mini server and play videos without ANY issues.


  • When I copy the file (also over SMB) locally to my laptop, I can then play the video in VLC with NO issues.


When I try to play things in the command line, using MPV, this is the output I get:

````
mpv -v '/run/user/1000/gvfs/smb-share:server=asifs-mac-mini.local,share=asifs%20hd/Asif/Bolt.avi'  2 ✘
[cplayer] Command line options: '-v' '/run/user/1000/gvfs/smb-share:server=asifs-mac-mini.local,share=asifs%20hd/Asif/Bolt.avi'
[cplayer] mpv 0.33.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
[cplayer] built on UNKNOWN
[cplayer] FFmpeg library versions:
[cplayer] libavutil 56.51.100
[cplayer] libavcodec 58.91.100
[cplayer] libavformat 58.45.100
[cplayer] libswscale 5.7.100
[cplayer] libavfilter 7.85.100
[cplayer] libswresample 3.7.100
[cplayer] FFmpeg version: n4.3.1
[cplayer]
[cplayer] Configuration: /usr/bin/waf configure --prefix=/usr --confdir=/etc/mpv --enable-cdda --enable-dvb --enable-dvdnav --enable-libarchive --enable-libmpv-shared --disable-build-date
[cplayer] List of enabled features: 52arch alsa asm caca cdda cplayer cplugins cuda-hwaccel cuda-interop debug-build drm dvbin dvdnav egl egl-drm egl-helpers egl-x11 ffmpeg ffnvcodec gbm gbm.h gl gl-wayland glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg lcms2 libarchive libass libavdevice libbluray libdl libm libmpv-shared libplacebo librt linux-fstatfs linux-input-event-codes lua memfd_create optimize plain-gl posix posix-or-mingw pthreads pulse rubberband shaderc shaderc-shared stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-vulkan vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vt.h vulkan wayland wayland-protocols x11 xv zlib
[cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[cplayer] Applying profile 'default'...
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Waiting for scripts...
[osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Done loading scripts.
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook
[ytdl_hook] not a ytdl:// url
[ifo_dvdnav] Opening /run/user/1000/gvfs/smb-share:server=asifs-mac-mini.local,share=asifs%20hd/Asif/Bolt.avi
[cplayer] Set property: shared-script-properties -> 1
[osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[cplayer] Set property: shared-script-properties -> 1
[bdmv/bluray] Opening /run/user/1000/gvfs/smb-share:server=asifs-mac-mini.local,share=asifs%20hd/Asif/Bolt.avi
[file] Opening /run/user/1000/gvfs/smb-share:server=asifs-mac-mini.local,share=asifs%20hd/Asif/Bolt.avi
[demux] Trying demuxers for level=normal.
[lavf] No format found, try lowering probescore or forcing the format.
[demux] Trying demuxers for level=unsafe.
[lavf] No format found, try lowering probescore or forcing the format.
[cplayer] Opening failed or was aborted: /run/user/1000/gvfs/smb-share:server=asifs-mac-mini.local,share=asifs%20hd/Asif/Bolt.avi
[cplayer] Running hook: ytdl_hook/on_load_fail
[ytdl_hook] full hook
[cplayer] finished playback, unrecognized file format (reason 4)
[cplayer] Failed to recognize file format.
[cplayer]
[cplayer] Exiting... (Errors when loading file)
[cplayer] Set property: shared-script-properties -> 1
````

So this makes me think it is a SMB / connection issue to the Mac Mini Server, and ONLY with Ubuntu, and no other devices, since I am able to copy and then play the files locally. If anyone has any ideas / feedback / advice, it would be greatly appreciated.

Thanks for any help you can provide!

OPNSense Policy based WAN

$
0
0
I'm taking... I believe TheFu's advice and doing an OPNSense instead of rolling my own via iptables. My testing is going well. I'm almost ready to move it to primary routing on my lan. I have 2 wan ports coming in. I'm still sorting out how to do the rules but getting it.

My question is of capability. Is it possible to change a wan based on latency for a specific ip automatically? Ultimately my wife's work at home stuff will be on one WAN and rest of our stuff is on the other. 2 isps. If not it's not a big deal and I can create a user for her to switch it herself. I'd just like to make it as easy as possible. Due to our only options for internet being fixed wireless the latencies are usually good but occasionally go sideways hence having both available.

Samba gui?

$
0
0
I am in the process of updating our Samba Servers to use AD-DC and would like to find a GUI that would make adding users and machines to the Domain easier.
Is there such a thing? if so what is it.
Viewing all 23300 articles
Browse latest View live


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