Version `ZLIB_1.2.9' not found (required by libpng16.so.16) in Debian Posted: 21 Aug 2021 09:45 AM PDT I know this is basically the exact question as in https://stackoverflow.com/questions/48306849/, but the answer there does not seems right to me, as they all saying creating a libz.so.1 symlink. However, In my Debian bullseye, I already have libz.so and libz.so.1 , both symlinking to libz.so.1.2.11 . So this seems to be a problem that libpng16.so.16 insists on a lower version of ZLIB (v1.2.9), while mine is already v.1.2.11 , right? Here are all the details: /tmp/_MEIi9PAKI/libz.so.1: version `ZLIB_1.2.9' not found (required by /lib/x86_64-linux-gnu/libpng16.so.16) cd /usr/lib/x86_64-linux-gnu $ ls -l libz.so* lrwxrwxrwx 1 root root 36 2020-02-24 16:07 libz.so -> /lib/x86_64-linux-gnu/libz.so.1.2.11 lrwxrwxrwx 1 root root 14 2020-02-24 16:07 libz.so.1 -> libz.so.1.2.11 -rw-r--r-- 1 root root 113088 2020-02-24 16:07 libz.so.1.2.11 $ apt-cache policy libpng16-16:amd64 libpng16-16: Installed: 1.6.37-3 Candidate: 1.6.37-3 Version table: *** 1.6.37-3 500 500 http://deb.debian.org/debian bullseye/main amd64 Packages 100 /var/lib/dpkg/status $ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux bullseye/sid |
A question abount NUMA Posted: 21 Aug 2021 09:32 AM PDT I study the task_struct and I am not able to find information about the fields numa_scan_seq numa_scan_period numa_scan_period_max numa_preferred_nid numa_migrate_retry node_stamp; last_task_numa_placement; last_sum_exec_runtime; numa_work; (I found a lot of patches and commits but with no information about all these). Is there a document or some other info (web page, pdf) to read and learn about all these parameters? Thanks a lot !! |
How to install IronPython in ArchLinux? Posted: 21 Aug 2021 09:02 AM PDT I would like to install IronPython2.7 for ArchLinux. I've already installed mono and extracted a file containing the source, a solution file and others but I cannot find any instructions on how to install it. If anyone knows the steps it would be greatly appreciated! |
Hard time to install nvidia-340 driver on Ubuntu machine Posted: 21 Aug 2021 08:46 AM PDT I just upgraded to the new UBUNTU 20.04 but my nvidia-340 driver stop to work, i tried so much solutions over the net but nothing works for me... tried to purge nvidia-* and to reinstall, sudo apt-get -f install and more of those solutions and nothing has worked for now.. here is some outpots of lshw and dmks status and more/// i am having hard time to install it and tried to sudo dpkg -i --force-overwrite /var/cache/apt/archives/nvidia-340_340.108-0ubuntu5.20.04.2_amd64.deb but nothing works and i am still can not install the driver.. i even tried to download the .deb and run it by myself with chmod but its still send me this error... Thanks. |
Debian Live USB error. Help? Posted: 21 Aug 2021 08:24 AM PDT So I have a laptop (Dell G3 3779) with Windows 10 and Pop OS installed (both are on seperate hard drives). Recently, I installed some Dell UEFI Firmware update though Windows 10 and everything was working fine. Both Windows and Pop OS booted normally. I wanted to delete my Pop OS installation and replace it with Debian 11, so I downloaded one of the nonfree (unofficial) ISOs and burned it to a flash drive. However, when I entered my boot menu to boot from that live USB, it goes to a black screen with the following error message: set_second_stage() failed: Invalid parameter Something has gone seriously wrong: shim_init() failed: Invalid parameter Then it shuts off. I don't know why this happened, as I've installed Debian and booted from USB before, so maybe the firmware update did something? Secure Boot is Disabled, so I'm not sure how to fix this issue. I've also tried installing other Debian ISOs like the live install version (nonfree) but the same thing happens. How do I fix this? |
Fixing problem with %(%H)T giving 12 hour Posted: 21 Aug 2021 09:57 AM PDT I am passing a time interval (in seconds) in ts . ts=13 printf -v hours '%(%H)T' "$ts" printf '%s\n' "ts: $ts ; hours: $hours" This is the incorrect result. ts: 13 ; hours: 12 As one can see, I am getting 12 rather than 00 for 13 seconds. |
Is it possible to get gnu-screen instance to print output to the monitor of the PC running it? Posted: 21 Aug 2021 08:15 AM PDT I have a little raspbery pi running a twitter bot. I have programmed it to print some bits of info to the terminal when it does the job successfully, fails or waits. I launch the application via SSH using gnu-screen to keep the app running even if I disconnect from ssh session. My question is - is it possible to configure screen in such a way that I can launch it via SSH but have it print it's output to the display connected to the rapsberry pi? Currently even though I can launch the app vis SSH and screen, all I see on the pi is the login prompt (terminal only raspberry os lite). |
Preparing debian iso file for usb Posted: 21 Aug 2021 07:54 AM PDT I downloaded debian 11 from this address. And i downloaded the firmware from this address. Then i wrote the following commands from linux terminal. sudo umount /dev/sda1 sudo dd if=/dev/zero of=/dev/sda sudo fdisk /dev/sda sudo mkfs.vfat /dev/sda1 I formatted the usb. (W95 fat32) Then i downloaded the iso file and copied it into this usb. sudo dd if=/PATH/debian-11.0.0-amd64-netinst.iso of=/dev/sda bs=4M status=progress && sync It's over. However, i need to add firmwares into this usb. How can i do that? I couldn't find anything about my problem on the internet. I checked the usb if it is working properly and it is working. |
ASMedia SATA controller 106x not working under ubuntu Posted: 21 Aug 2021 07:51 AM PDT I've added PCIe ASMedia SATA controller to my PC. It's working fine under win10 but not with ubuntu. lspci returned that: 01:00.0 IDE interface: ASMedia Technology Inc. Device 0624 (rev 01) (prog-if 85 [PCI native mode-only controller, supports bus mastering]) Subsystem: ASMedia Technology Inc. Device 1060 Flags: fast devsel, IRQ 16 I/O ports at e040 [size=8] I/O ports at e030 [size=4] I/O ports at e020 [size=8] I/O ports at e010 [size=4] I/O ports at e000 [size=16] Memory at df180000 (32-bit, non-prefetchable) [size=8K] Expansion ROM at df100000 [disabled] [size=512K] Capabilities: <access denied> Kernel modules: pata_acpi Motherboard controller works fine under ahci: 00:17.0 SATA controller: Intel Corporation Q170/Q150/B150/H170/H110/Z170/CM236 Chipset SATA Controller [AHCI Mode] (rev 31) (prog-if 01 [AHCI 1.0]) Subsystem: Elitegroup Computer Systems Q170/Q150/B150/H170/H110/Z170/CM236 Chipset SATA Controller [AHCI Mode] Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 124 Memory at df228000 (32-bit, non-prefetchable) [size=8K] Memory at df22d000 (32-bit, non-prefetchable) [size=256] I/O ports at f090 [size=8] I/O ports at f080 [size=4] I/O ports at f060 [size=32] Memory at df22c000 (32-bit, non-prefetchable) [size=2K] Capabilities: <access denied> Kernel driver in use: ahci Kernel modules: ahci Any ideas what can I do to make it work? |
Cleanup HTML using lxml and XPath in Python Posted: 21 Aug 2021 07:43 AM PDT I'm learning python and lxml toolkit. I need process recursively multiple local .htm files within the directory and remove unwanted elements include its content (divs with IDs "box",local"columnRight", "adbox", footer", div class="box", plus all stylesheets and scripts). Can't figure out how to do this. import requests import lxml.html import os html = requests.get('/local/path/to/directory') def cleanup_html(doc, level = "") doc.xpath('//link[@rel="stylesheet"]').each do |css| css.remove end doc.xpath('//div[@id="header"]').each do |div| div.remove doc.xpath('//div[@id="adbox"]').each do |div| div.remove end ... |
zsh completion: complete _values, but case-insensitive Posted: 21 Aug 2021 06:47 AM PDT I have the following completion script to complete a list of roles: host /usr/share/zsh/vendor-completions # cat _foo #compdef foo local -a values=('ROLE_ADMIN[Admin]' 'ROLE_USER[User]') _values -s , 'roles' $values This works fine so far; it'll complete the roles: host ~ # foo ROLE_<TAB> roles ROLE_ADMIN -- Admin ROLE_USER -- User But I want the completion to work case-insensitively, ie. if I type now type ad after ROLE_ , I want it to complete ROLE_ADMIN , which doesn't work. I've figured out that I need to use compadd -M with a match-spec like 'm:{[:lower:]}={[:upper:]}' , but I can't figure out how to pass this to _values which doesn't seem to support -M . |
Different scales for join displays? Posted: 21 Aug 2021 06:06 AM PDT Is it possible to have different scales for join displays? I tried the solution suggested here: gsettings set org.gnome.mutter experimental-features "['x11-randr-fractional-scaling']" but it didn't do anything. I have a laptop (with Debian 11 and Gnome 3 X11) with a 4K display and I got a second (portable) 1080p monitor. For the main display, in Settings->Displays, I put a Scale of 200%. When I connect the second monitor, it works fine, but also has the 200% Scale, which makes it unusable. I have the option to change the scale of the second monitor back to 100%, but then that automatically puts the scale of the primary display to 100% as well. |
apt preference pinning file with comment does not work in Debian 11 Bullseye: "no Package header" Posted: 21 Aug 2021 06:26 AM PDT I get the following error with apt operations on Debian 11: E:Invalid record in the preferences file /etc/apt/preferences.d/filename.pref, no Package header Whereas the referenced file looks like this: // Custom rule Package: some-package Pin: release a=stable Pin-Priority: 100 This pin worked in Debian 9 and Debian 10 flawlessly, but with Debian 11 Bullseye it doesn't. |
Problems installing Manjaro with RTX 3080 Laptop GPU Posted: 21 Aug 2021 06:27 AM PDT I have gotten a new laptop as my old one has gotten quite old. The new laptop is the ROG Zephyrus G15 with the RTX 3080. The first thing I did was download the XFCE version of Manjaro from their website. But when I tried installing it always stopped loading when it got to the graphical interface. I am guessing that this is due to the 3080 not being supported natively. How would I install this driver without having Linux installed? |
Is it possible to make a device accessible exclusively by certain programs? Posted: 21 Aug 2021 06:35 AM PDT I have a device (a video card) that I need only two programs (expressed as paths, e.g. /usr/bin/myprogram ) to access. The device has a /dev file (e.g. /dev/mydev1 ), but I can also use other references if required (bus id, vendor/product id etc.). Is there anything that I can do (e.g. udev rules), that prevents any program from access, except the ones I specify? |
Why two ip address for only one network card in my pc? Posted: 21 Aug 2021 07:19 AM PDT There is only one network card in my pc. lshw -class network WARNING: you should run this program as super-user. *-network description: Ethernet interface product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller vendor: Realtek Semiconductor Co., Ltd. physical id: 0 bus info: pci@0000:06:00.0 logical name: enp6s0 version: 15 serial: size: 1Gbit/s capacity: 1Gbit/s width: 64 bits clock: 33MHz capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.10.0-8-amd64 duplex=full ip=192.168.31.43 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s resources: irq:32 ioport:f000(size=256) memory:fcd04000-fcd04fff memory:fcd00000-fcd03fff *-network:0 description: Ethernet interface physical id: 1 logical name: anbox0 serial: capabilities: ethernet physical configuration: autonegotiation=off broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=192.168.250.1 link=no multicast=yes *-network:1 description: Ethernet interface physical id: 2 logical name: lxcbr0 serial: capabilities: ethernet physical configuration: autonegotiation=off broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=10.0.3.1 link=no multicast=yes WARNING: output may be incomplete or inaccurate, you should run this program as super-user. Show all ip address: ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 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 2: enp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether xxxxxxxxxxxxxxxxxxxx brd ff:ff:ff:ff:ff:ff inet 192.168.31.43/24 brd 192.168.31.255 scope global dynamic enp6s0 valid_lft 37676sec preferred_lft 37676sec inet 192.168.31.42/24 brd 192.168.31.255 scope global secondary enp6s0 valid_lft forever preferred_lft forever inet6 fe80::2e0:70ff:fec2:2e91/64 scope link valid_lft forever preferred_lft forever 3: anbox0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether brd ff:ff:ff:ff:ff:ff inet 192.168.250.1/24 scope global anbox0 valid_lft forever preferred_lft forever inet6 fe80::bce8:93ff:fe88:11c1/64 scope link valid_lft forever preferred_lft forever 4: lxcbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether brd ff:ff:ff:ff:ff:ff inet 10.0.3.1/24 brd 10.0.3.255 scope global lxcbr0 valid_lft forever preferred_lft forever Why ther are two ip address 192.168.31.43 and 192.168.31.42 in my pc? Os info: cat /etc/issue Debian GNU/Linux 11 \n \l The network configuration file: cat /etc/network/interfaces source /etc/network/interfaces.d/* auto lo iface lo inet loopback allow-hotplug enp6s0 iface enp6s0 inet dhcp Which ip address is used in my local network? sudo nmap -sP 192.168.31.0/24 Starting Nmap 7.80 ( https://nmap.org ) at 2021-08-21 21:41 HKT Nmap scan report for XiaoQiang (192.168.31.1) Host is up (0.00026s latency). Nmap scan report for 192.168.31.42 Host is up. Nmap scan report for 192.168.31.43 Host is up. Nmap done: 256 IP addresses (3 hosts up) scanned in 1.98 seconds 192.168.31.1 is a router which connect internet and intranet. Both two ip 192.168.31.42 and 192.168.31.43 are used at the same time? Add a new pc into the local network which combined with a simple home router. sudo nmap -sP 192.168.31.0/24 Starting Nmap 7.80 ( https://nmap.org ) at 2021-08-21 21:41 HKT Nmap scan report for XiaoQiang (192.168.31.1) Host is up (0.00026s latency). MAC Address: (Unknown) Nmap scan report for 192.168.31.70 Host is up (0.000057s latency). MAC Address: 00:E0:72:64:2C:19 (Lynk) Nmap scan report for 192.168.31.42 Host is up. Nmap scan report for 192.168.31.43 Host is up. Nmap done: 256 IP addresses (4 hosts up) scanned in 1.98 seconds The new pc's ip is 192.168.31.70 ,try to connect from 192.168.31.70 to ``192.168.31.42and 192.168.31.43`. ssh root@192.168.31.42 ls /home/debian content1 ctrl+D ,exit the connection ssh root@192.168.31.43 ls /home/debian content2 Strange thing happens: content1 == content2 ! Two ip point to same one network card at the same time!! |
Delete imap folder in Neomutt Posted: 21 Aug 2021 06:28 AM PDT When saving an email to an imap folder not yet existent neomutt will create it for me. But how can I delete a folder? |
Re-number and rename Posted: 21 Aug 2021 07:43 AM PDT I got into a situation that I need to rename lots of files in the form of: file.csv file_1.csv file_2.csv file_3.csv file_4.csv file_5.csv file_6.csv file_7.csv file_8.csv To better order, i.e.: file_1.csv file_2.csv file_3.csv file_4.csv file_5.csv file_6.csv file_7.csv file_8.csv file_9.csv I.e., I can manually rename the first file, but for the remaining "_# " files, I need to renumber them with +1 . I tried to use rename -n -v 's/_(.*)./.(\1+1)./' but got file_(1+1).csv file_(2+1).csv etc. Any easy way to batch remain the "_# " files please? PS, better as file_01.csv . . . file_09.csv file_10.csv . . . if possible. UPDATE: Thanks to cas' answer. Because I'll rename them as zero-padded names, so there won't be conflict in file names, so to me the command can be simplified as: touch file.csv file_{1..9}.csv $ rename -v 's/^(file_)(\d+)(\.csv)$/$1 . (sprintf "%02i", $2 + 1) . $3/e' file_* file_1.csv renamed as file_02.csv file_2.csv renamed as file_03.csv file_3.csv renamed as file_04.csv file_4.csv renamed as file_05.csv file_5.csv renamed as file_06.csv file_6.csv renamed as file_07.csv file_7.csv renamed as file_08.csv file_8.csv renamed as file_09.csv file_9.csv renamed as file_10.csv Note the last two file names: file_09.csv file_10.csv |
Delete all folders in specified path that do not have word "edit" in them? Posted: 21 Aug 2021 08:13 AM PDT I'm trying to set up a simple script that would clean up my working folder . The working folder is structured like that: Project 1 Project 1 [edited] Project 2 Project 2 [edited] Project 3 Project 3 [edited] ... All project folders contain only files. The objective is to get rid of all folders within working folder that do not have [edited] in name. |
Is there an in-kernel way to debug netlink protocol communications? Posted: 21 Aug 2021 08:50 AM PDT Netlink (as in, the kernel internal protocol) seems to be very difficult to debug without additional tools - which I can't actually use because I'm on a very confined embedded system. Is there an in-kernel debugging option for netlink if I recompile from source? e.g. logs confirming messages have been received and understood I've set debug verbosity to 15 but I can't find an option that specifically relates to netlink |
Kali Linux automatic detecting Lid Closed and opened multiple times Posted: 21 Aug 2021 06:35 AM PDT I have a dell vostro 15 3568, and primary operating system I use is kali linux My system automatically detects lid closed and lid opened while I am working on it first I thought it was a operating system problem, but this problem also occurs on the BIOS menu, currently, I have altered my /etc/systemd/logind.conf so it doesn't go to sleep by detecting lid closed, But otherwise, if I try to boot from live Pendrive or any other media, it detects lid closed and sleeps. I want to know how to make it stop detecting this, because its detecting it multiple times in a second and filling up my ram and log files exponentially fast makeing the system very slow ┌──(root💀Alex)-[~] └─# cat /etc/systemd/logind.conf [Login] #NAutoVTs=6 #ReserveVT=6 #KillUserProcesses=no #KillOnlyUsers= #KillExcludeUsers=root #InhibitDelayMaxSec=5 #UserStopDelaySec=10 #HandlePowerKey=poweroff HandleSuspendKey=ignore HandleHibernateKey=ignore HandleLidSwitch=ignore HandleLidSwitchExternalPower=ignore HandleLidSwitchDocked=ignore #HandleRebootKey=reboot #PowerKeyIgnoreInhibited=no SuspendKeyIgnoreInhibited=yes #HibernateKeyIgnoreInhibited=no LidSwitchIgnoreInhibited=no #RebootKeyIgnoreInhibited=no #HoldoffTimeoutSec=30s #IdleAction=ignore #IdleActionSec=30min #RuntimeDirectorySize=10% #RuntimeDirectoryInodes=400k #RemoveIPC=yes #InhibitorsMax=8192 #SessionsMax=8192 This is my system config └─# uname -a 130 ⨯ Linux Alex 5.10.0-kali7-amd64 #1 SMP Debian 5.10.28-1kali1 (2021-04-12) x86_64 GNU/Linux and these are the logs from journalctl └─# journalctl --follow -- Journal begins at Wed 2021-07-21 22:32:02 IST. -- Aug 19 18:52:44 Alex systemd-logind[831]: Lid closed. Aug 19 18:52:44 Alex gnome-shell[2310]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat Aug 19 18:52:44 Alex systemd-logind[831]: Lid opened. Aug 19 18:52:44 Alex kernel: ACPI Error: Thread 967520256 cannot release Mutex [PATM] acquired by thread 1084612608 (20200925/exmutex-378) Aug 19 18:52:44 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20200925/psparse-529) Aug 19 18:52:44 Alex kernel: ACPI Error: Thread 2205057024 cannot release Mutex [PATM] acquired by thread 1084612608 (20200925/exmutex-378) Aug 19 18:52:44 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20200925/psparse-529) Aug 19 18:52:44 Alex gnome-shell[2310]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat Aug 19 18:52:45 Alex kernel: ACPI Error: Thread 2205147136 cannot release Mutex [PATM] acquired by thread 967520256 (20200925/exmutex-378) Aug 19 18:52:45 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20200925/psparse-529) Aug 19 18:52:45 Alex kernel: ACPI Error: Cannot release Mutex [PATM], not acquired (20200925/exmutex-357) Aug 19 18:52:45 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_MUTEX_NOT_ACQUIRED) (20200925/psparse-529) Aug 19 18:52:45 Alex systemd-logind[831]: Lid closed. Aug 19 18:52:45 Alex gnome-shell[2310]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat Aug 19 18:52:46 Alex systemd-logind[831]: Lid opened. Aug 19 18:52:46 Alex kernel: ACPI Error: Thread 2205057024 cannot release Mutex [PATM] acquired by thread 2205122560 (20200925/exmutex-378) Aug 19 18:52:46 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20200925/psparse-529) Aug 19 18:52:46 Alex gnome-shell[2310]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat Aug 19 18:52:46 Alex kernel: ACPI Error: Thread 2205147136 cannot release Mutex [PATM] acquired by thread 2205122560 (20200925/exmutex-378) Aug 19 18:52:46 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20200925/psparse-529) Aug 19 18:52:46 Alex systemd-logind[831]: Lid closed. Aug 19 18:52:47 Alex gnome-shell[2310]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat Aug 19 18:52:47 Alex systemd-logind[831]: Lid opened. Aug 19 18:52:47 Alex kernel: ACPI Error: Thread 2205057024 cannot release Mutex [PATM] acquired by thread 1568354304 (20200925/exmutex-378) Aug 19 18:52:47 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20200925/psparse-529) Aug 19 18:52:47 Alex gnome-shell[2310]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat Aug 19 18:52:47 Alex kernel: ACPI Error: Thread 1083676672 cannot release Mutex [PATM] acquired by thread 1568354304 (20200925/exmutex-378) Aug 19 18:52:47 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20200925/psparse-529) Aug 19 18:52:47 Alex kernel: ACPI Error: Cannot release Mutex [PATM], not acquired (20200925/exmutex-357) Aug 19 18:52:47 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_MUTEX_NOT_ACQUIRED) (20200925/psparse-529) Aug 19 18:52:48 Alex systemd-logind[831]: Lid closed. Aug 19 18:52:48 Alex gnome-shell[2310]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat Aug 19 18:52:48 Alex systemd-logind[831]: Lid opened. Aug 19 18:52:48 Alex gnome-shell[2310]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat Aug 19 18:52:48 Alex kernel: ACPI Error: Thread 1157771264 cannot release Mutex [PATM] acquired by thread 1568354304 (20200925/exmutex-378) Aug 19 18:52:48 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20200925/psparse-529) Aug 19 18:52:48 Alex kernel: ACPI Error: Thread 1085091840 cannot release Mutex [PATM] acquired by thread 1568354304 (20200925/exmutex-378) Aug 19 18:52:48 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20200925/psparse-529) Aug 19 18:52:48 Alex kernel: ACPI Error: Thread 967520256 cannot release Mutex [PATM] acquired by thread 1568354304 (20200925/exmutex-378) Aug 19 18:52:48 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20200925/psparse-529) Aug 19 18:52:49 Alex kernel: ACPI Error: Cannot release Mutex [PATM], not acquired (20200925/exmutex-357) Aug 19 18:52:49 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_MUTEX_NOT_ACQUIRED) (20200925/psparse-529) Aug 19 18:52:49 Alex systemd-logind[831]: Lid closed. Aug 19 18:52:49 Alex gnome-shell[2310]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat Aug 19 18:52:49 Alex systemd-logind[831]: Lid opened. Aug 19 18:52:49 Alex gnome-shell[2310]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat Aug 19 18:52:49 Alex kernel: ACPI Error: Thread 1084612608 cannot release Mutex [PATM] acquired by thread 2205122560 (20200925/exmutex-378) Aug 19 18:52:49 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20200925/psparse-529) Aug 19 18:52:49 Alex kernel: ACPI Error: Thread 1084239872 cannot release Mutex [PATM] acquired by thread 2205122560 (20200925/exmutex-378) Aug 19 18:52:49 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20200925/psparse-529) Aug 19 18:52:49 Alex kernel: ACPI Error: Thread 2205147136 cannot release Mutex [PATM] acquired by thread 2205122560 (20200925/exmutex-378) Aug 19 18:52:49 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20200925/psparse-529) Aug 19 18:52:50 Alex kernel: ACPI Error: Thread 1084239872 cannot release Mutex [PATM] acquired by thread 2205122560 (20200925/exmutex-378) Aug 19 18:52:50 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20200925/psparse-529) Aug 19 18:52:50 Alex kernel: ACPI Error: Cannot release Mutex [PATM], not acquired (20200925/exmutex-357) Aug 19 18:52:50 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_MUTEX_NOT_ACQUIRED) (20200925/psparse-529) Aug 19 18:52:50 Alex systemd-logind[831]: Lid closed. Aug 19 18:52:50 Alex gnome-shell[2310]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat Aug 19 18:52:50 Alex systemd-logind[831]: Lid opened. Aug 19 18:52:50 Alex gnome-shell[2310]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat Aug 19 18:52:50 Alex kernel: ACPI Error: Thread 1083676672 cannot release Mutex [PATM] acquired by thread 2205057024 (20200925/exmutex-378) Aug 19 18:52:50 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20200925/psparse-529) Aug 19 18:52:50 Alex kernel: ACPI Error: Thread 2205147136 cannot release Mutex [PATM] acquired by thread 2205057024 (20200925/exmutex-378) Aug 19 18:52:50 Alex kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_AML_NOT_OWNER) (20200925/psparse-529) |
What is the point of btrfs subvolumes? Posted: 21 Aug 2021 08:40 AM PDT The system administrator guide of the Btrfs wiki (here) says: A Btrfs subvolume can be thought of as a POSIX file namespace. I remember at first it saying that a subvolume is, as opposed to being able to be thought of as, a "POSIX file namespace". A Google search for "POSIX file namespace" turn up only things about Btrfs, so the phrase is unhelpful. Just what is a subvolume in Btrfs? If a subvolume is accessible as a directory from the filesystem root, then how is mounting subvolume any different from bind mounting a directory on any other filesystem to another location without intermediately mounting the root of said filesystem? This is what I mean: # standard bind mount mkdir /mnt/data mkdir /mnt/docs mount /dev/sda2 /mnt/data mount --bind /mnt/data/docs /mnt/docs umount /mnt/data rmdir /mnt/data # hypothetical method of directly mounting # a file/directory on a filesystem # to some path that achieves the same # as the above mkdir /mnt/docs mount -o path_on_fs=/docs /dev/sda2 /mnt/docs # if /docs on sda2 was a subvolume mkdir /mnt/docs mount -o subvol=/mnt /dev/sda2 /mnt/docs What is the purpose of the subvolume feature? An example: /var/lib/machines.raw is a Btrfs filesystem image that is used by systemd-machined and machinectl to store virtual machines and/or containers. Presumably, Btrfs is used for subvolumes. What do the subvolumes do for that? If a subvolume is useful for containers, does it have built-in isolation for processes running in different subvolumes? |
How to compare string to a wild card string in shell script? Posted: 21 Aug 2021 06:36 AM PDT I want to compare file name string with file mask in a ksh shell script. Can you please correct the syntax? if [ "NPER20200422TEST.PTN" = "NPER*.PTN" ] then echo "File matched" else echo "File not matched" fi I want to match my file string with given file mask. |
How to unload kernel module 'nvidia-drm'? Posted: 21 Aug 2021 06:12 AM PDT I'm trying to install the most up-to-date NVIDIA driver in Debian Stretch. I've downloaded NVIDIA-Linux-x86_64-390.48.run from here, but when I try to do sudo sh ./NVIDIA-Linux-x86_64-390.48.run as suggested, an error message appears. ERROR: An NVIDIA kernel module 'nvidia-drm' appears to already be loaded in your kernel. This may be because it is in use (for example, by an X server, a CUDA program, or the NVIDIA Persistence Daemon), but this may also happen if your kernel was configured without support for module unloading. Please be sure to exit any programs that may be using the GPU(s) before attempting to upgrade your driver. If no GPU-based programs are running, you know that your kernel supports module unloading, and you still receive this message, then an error may have occured that has corrupted an NVIDIA kernel module's usage count, for which the simplest remedy is to reboot your computer. When I try to find out who is using nvidia-drm (or nvidia_drm ), I see nothing. ~$ sudo lsof | grep nvidia-drm lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs Output information may be incomplete. ~$ sudo lsof -e /run/user/1000/gvfs | grep nvidia-drm ~$ And when I try to remove it, it says it's being used. ~$ sudo modprobe -r nvidia-drm modprobe: FATAL: Module nvidia_drm is in use. ~$ I have rebooted and started in text-only mode (by pressing Ctrl+Alt+F2 before giving username/password), but I got the same error. Besides it, how do I "know that my kernel supports module unloading"? I'm getting a few warnings on boot up related to nvidia, no idea if they're related, though: Apr 30 00:46:15 debian-9 kernel: nvidia: loading out-of-tree module taints kernel. Apr 30 00:46:15 debian-9 kernel: nvidia: module license 'NVIDIA' taints kernel. Apr 30 00:46:15 debian-9 kernel: Disabling lock debugging due to kernel taint Apr 30 00:46:15 debian-9 kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module 375.82 Wed Jul 19 21:16:49 PDT 2017 (using threaded interrupts) |
Error (qt5_add_resources) when build kaffeine in debian jessie Posted: 21 Aug 2021 08:05 AM PDT in Kaffeine <1.3 is bug with samba, I try to build version 1.3.x. But after call cmake, I get an error: -- The C compiler identification is GNU 4.9.2 -- The CXX compiler identification is GNU 4.9.2 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done CMake Error at CMakeLists.txt:6 (qt5_add_resources): **Unknown CMake command "qt5_add_resources".** -- Configuring incomplete, errors occurred! I test version and settings: $ qtchooser -print-env QT_SELECT="default" QTTOOLDIR="/usr/lib/x86_64-linux-gnu/qt5/bin" QTLIBDIR="/usr/lib/x86_64-linux-gnu" $ qmake -v QMake version 3.0 Using Qt version 5.3.2 in /usr/lib/x86_64-linux-gnu $ cmake --version cmake version 3.0.2 |
`source .../settings.csh` not working from `sh ./test.sh` Posted: 21 Aug 2021 07:05 AM PDT I want to source Xilinx ise setiin64.csh file with the source command. I have source /home/xilinx/ise_14.5/14.5/ISE_DS/settings64.csh in another file, test.sh . So I want to run only test.sh file as sh ./test.sh But I am not getting Xilinx ISE 14.5 version when I do which ise . If I execute command source /home/xilinx/ise_14.5/14.5/ISE_DS/settings64.csh directly in terminal then it works fine. |
Can't get docker to forward ports Posted: 21 Aug 2021 09:05 AM PDT I've been following a tutorial to try and learn docker, however, for some reason I can't seem to access any of the ports it's meant to be opening. For some reason it just times out. Where can I look to get more details on why I'm not able to access this, or otherwise what can I do access the docker container. Steps done so far: $ docker run hello-world # works fine $ docker run -d -P --name static-site prakhar1989/static-site # works and returns a docker container id $ docker port static-site 443/tcp -> 0.0.0.0:32768 80/tcp -> 0.0.0.0:32769 Then I access one of the host through http://localhost:32768/ but nothing. After reinstalling it doesn't even time out anymore and just says the site can't be reached. Also, I tried accessing the container directly on those ports but without any success. |
Is there a way to sync only one partition? Posted: 21 Aug 2021 09:45 AM PDT Is there a way to sync only one partition instead of all partitions? Something like "sync /dev/sdc1". |
Reply on same interface as incoming? Posted: 21 Aug 2021 06:34 AM PDT I have a system with two interfaces. Both interfaces are connected to the internet. One of them is set as the default route; a side effect of this is that if a packet comes in on the non-default-route interface, the reply is sent back through the default route interface. Is there a way to use iptables (or something else) to track the connection and send the reply back through the interface it came from? |
No comments:
Post a Comment