| Is there a way to ssh tunnel, and access a device in the /dev directory, and use it as if it is local? Posted: 14 Jan 2022 11:13 AM PST Is there a way that one computer can share the a device in the /dev/ directory with another computer, and the other computer can interact with it is if it is local? Something analogous to an SSH tunnel? A camera for example, or a serial connection to an arduino, or even the computer's /dev/random? |
| Setting up permanent extra audio sinks/sources for streaming purposes? Posted: 14 Jan 2022 10:25 AM PST So I have been on this for about a month now, and I've tried a dozen different ways of optimizing/automating the process. Basically want to be able to have something setup akin to that of Voicemeeter (windows), but in Linux (arch). My current workaround is the following pactl commands running at startup: { path = "pactl" args = "load-module module-null-sink sink_name=Virtual1" } { path = "pactl" args = "load-module module-null-sink sink_name=Virtual2" } { path = "pactl" args = "load-module module-loopback sink=Virtual1" } { path = "pactl" args = "load-module module-loopback sink=Virtual1" } { path = "pactl" args = "load-module module-loopback sink=Virtual1" } following which, I manually reroute specific channels in pavucontrol. But every now and then (especially post suspend) the routing is reset to something completely random and I have to go back into pavucontrol and make the necessary changes (specifically in the playback tab). The loading order of the loopback modules are also scrambled at times furthering adding to confusion in the manual tasks I have to perform every time I turn on my system. My requirement is to combine mic and application audio to then send it via the mic (example: discord). Is there any way to keep the sinks and sources not reset them on every boot/newly assign them each time? Or perhaps a way to automate the process of rerouting the channels such that they go exactly where I need them (virtual streams at least)? |
| Which Networks are Relevant from ifconfig? Posted: 14 Jan 2022 10:11 AM PST I was asked to move my question here: I know that a single device may be connected to multiple networks, for example: Wifi, 2 Ethernet Networks etc.... I want to detect all these networks with python by running ipconfig, whose output is something like: But the main problem, how may I know which are relevant and which aren't? For example in my case we have: lo0, gif0, stf0, en6, ap1, en0, awdl0, llw0 etc... While my laptop is connected only to wifi network. Is there any extra parameter to provide for this command to get only relative results? I would like to know why ifconfig returned all of these even though I'm connected to one network. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP> inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 nd6 options=201<PERFORMNUD,DAD> gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 stf0: flags=0<> mtu 1280 en6: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ether ac:de:48:00:11:22 inet6 fe80::aede:48ff:fe00:1122%en6 prefixlen 64 scopeid 0x4 nd6 options=201<PERFORMNUD,DAD> media: autoselect (100baseTX <full-duplex>) status: active ap1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=400<CHANNEL_IO> ether fa:ff:c2:05:aa:71 media: autoselect status: inactive en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=6463<RXCSUM,TXCSUM,TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM> ether f8:ff:c2:05:aa:71 inet6 fe80::14d9:10f6:b605:46bd%en0 prefixlen 64 secured scopeid 0x6 inet 10.0.0.5 netmask 0xffffff00 broadcast 10.0.0.255 inet6 2a10:8010:d894:0:8de:8a9:ea3a:cd6a prefixlen 64 autoconf secured inet6 2a10:8010:d894:0:19de:c2d8:dd80:95fd prefixlen 64 autoconf temporary nd6 options=201<PERFORMNUD,DAD> media: autoselect status: active awdl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 options=400<CHANNEL_IO> ether 96:4e:b0:d7:29:0c inet6 fe80::944e:b0ff:fed7:290c%awdl0 prefixlen 64 scopeid 0x7 nd6 options=201<PERFORMNUD,DAD> media: autoselect status: active llw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=400<CHANNEL_IO> ether 96:4e:b0:d7:29:0c inet6 fe80::944e:b0ff:fed7:290c%llw0 prefixlen 64 scopeid 0x8 nd6 options=201<PERFORMNUD,DAD> media: autoselect status: active en3: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 options=460<TSO4,TSO6,CHANNEL_IO> ether 82:43:7a:c3:b8:05 media: autoselect <full-duplex> status: inactive en4: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 options=460<TSO4,TSO6,CHANNEL_IO> ether 82:43:7a:c3:b8:04 media: autoselect <full-duplex> status: inactive en1: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 options=460<TSO4,TSO6,CHANNEL_IO> ether 82:43:7a:c3:b8:01 media: autoselect <full-duplex> status: inactive en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 options=460<TSO4,TSO6,CHANNEL_IO> ether 82:43:7a:c3:b8:00 media: autoselect <full-duplex> status: inactive bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=63<RXCSUM,TXCSUM,TSO4,TSO6> ether 82:43:7a:c3:b8:01 Configuration: id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0 ifmaxaddr 0 port 10 priority 0 path cost 0 nd6 options=201<PERFORMNUD,DAD> media: <unknown type> status: inactive utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380 inet6 fe80::446c:1de1:7516:5c37%utun0 prefixlen 64 scopeid 0xe nd6 options=201<PERFORMNUD,DAD> utun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 2000 inet6 fe80::e9e7:de94:f2b:9726%utun1 prefixlen 64 scopeid 0xf nd6 options=201<PERFORMNUD,DAD> |
| Xorg error when changing to Nvidia GPU with nvidia-prime-select Posted: 14 Jan 2022 10:11 AM PST I'm using Artix Linux (based on Arch Linux) on my Laptop with a Nvidia GeForce MX150. I installed the proprietary nvidia drivers. It's an Optimus GPU (at least it think so), and I wanted to let the X-Server to run on the GPU: I switched to Nvidia with nvidia-prime-ui (AUR: nvidia-prime-select-git). After that the X-Server didn't start anymore /var/log/Xorg.0.log: [ 7197.048] (--) Log file renamed from "/var/log/Xorg.pid-2888.log" to "/var/log/Xorg.0.log" [ 7197.049] X.Org X Server 1.21.1.3 X Protocol Version 11, Revision 0 [ 7197.049] Current Operating System: Linux Jonas 5.15.12-artix1-1 #1 SMP PREEMPT Thu, 30 Dec 2021 11:24:09 +0000 x86_64 [ 7197.049] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=3d98ec6b-0f70-48b2-bf89-d798d47e129b rw loglevel=3 quiet [ 7197.049] [ 7197.049] Current version of pixman: 0.40.0 [ 7197.049] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 7197.049] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 7197.049] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Jan 14 19:01:15 2022 [ 7197.049] (==) Using config file: "/etc/X11/xorg.conf" [ 7197.049] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [ 7197.050] (==) ServerLayout "layout" [ 7197.050] (**) |-->Screen "nvidia_screen" (0) [ 7197.050] (**) | |-->Monitor "<default monitor>" [ 7197.050] (**) | |-->Device "nvidia" [ 7197.050] (**) | |-->GPUDevice "intel" [ 7197.050] (==) No monitor specified for screen "nvidia_screen". Using a default monitor configuration. [ 7197.050] (**) |-->Inactive Device "intel" [ 7197.050] (**) Option "Xinerama" "0" [ 7197.050] (**) Option "IgnoreABI" "1" [ 7197.050] (**) Ignoring ABI Version [ 7197.050] (==) Automatically adding devices [ 7197.050] (==) Automatically enabling devices [ 7197.050] (==) Automatically adding GPU devices [ 7197.050] (==) Automatically binding GPU devices [ 7197.050] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 7197.050] (WW) The directory "/usr/share/fonts/misc" does not exist. [ 7197.050] Entry deleted from font path. [ 7197.050] (WW) The directory "/usr/share/fonts/OTF" does not exist. [ 7197.050] Entry deleted from font path. [ 7197.050] (WW) The directory "/usr/share/fonts/Type1" does not exist. [ 7197.050] Entry deleted from font path. [ 7197.050] (==) FontPath set to: /usr/share/fonts/TTF, /usr/share/fonts/100dpi, /usr/share/fonts/75dpi [ 7197.050] (**) ModulePath set to "/opt/nvidia/xorg/modules,/usr/lib64/xorg/modules" [ 7197.050] (II) The server relies on udev to provide the list of input devices. If no devices become available, reconfigure udev or disable AutoAddDevices. [ 7197.050] (II) Module ABI versions: [ 7197.050] X.Org ANSI C Emulation: 0.4 [ 7197.050] X.Org Video Driver: 25.2 [ 7197.050] X.Org XInput driver : 24.4 [ 7197.050] X.Org Server Extension : 10.0 [ 7197.051] (++) using VT number 7 [ 7197.051] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration [ 7197.052] (II) xfree86: Adding drm device (/dev/dri/card0) [ 7197.052] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0 [ 7197.062] (--) PCI:*(0@0:2:0) 8086:5917:1025:1193 rev 7, Mem @ 0xb2000000/16777216, 0xc0000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072 [ 7197.062] (--) PCI: (1@0:0:0) 10de:1d10:1025:119a rev 161, Mem @ 0xb3000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00004000/128 [ 7197.062] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory) [ 7197.062] (WW) "glamoregl" will not be loaded unless you've specified it to be loaded elsewhere. [ 7197.062] (II) "glx" will be loaded by default. [ 7197.062] (II) LoadModule: "glx" [ 7197.062] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so [ 7197.064] (II) Module glx: vendor="X.Org Foundation" [ 7197.064] compiled for 1.21.1.3, module version = 1.0.0 [ 7197.064] ABI class: X.Org Server Extension, version 10.0 [ 7197.064] (II) LoadModule: "nvidia" [ 7197.064] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so [ 7197.065] (II) Module nvidia: vendor="NVIDIA Corporation" [ 7197.065] compiled for 1.6.99.901, module version = 1.0.0 [ 7197.065] Module class: X.Org Video Driver [ 7197.065] (II) LoadModule: "modesetting" [ 7197.065] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so [ 7197.071] (II) Module modesetting: vendor="X.Org Foundation" [ 7197.071] compiled for 1.21.1.3, module version = 1.21.1 [ 7197.071] Module class: X.Org Video Driver [ 7197.071] ABI class: X.Org Video Driver, version 25.2 [ 7197.071] (II) NVIDIA dlloader X Driver 495.46 Wed Oct 27 16:28:42 UTC 2021 [ 7197.071] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs [ 7197.071] (II) modesetting: Driver for Modesetting Kernel Drivers: kms [ 7197.092] (II) modeset(G0): using drv /dev/dri/card0 [ 7197.092] (WW) Falling back to old probe method for modesetting [ 7197.109] (EE) No devices detected. [ 7197.109] (EE) Fatal server error: [ 7197.109] (EE) no screens found(EE) [ 7197.109] (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 7197.109] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. [ 7197.109] (EE) [ 7197.187] (EE) Server terminated with error (1). Closing log file. Then I executed nvidia-prime-select intel on a terminal session and sddm started normally (on the intel GPU of course). Later I also removed /etc/X11/xorg.config that was created with nvidia-prime-ui (and didn't exist before). But now nvidia-settings sais: ERROR: Unable to load info from any available system Before I could launch it. I also tried to run single programs on the Nvidia GPU with bumblebee, but it's giving an similar error when I use for example optirun supertuxkart: [ 7011.039] X.Org X Server 1.21.1.3 X Protocol Version 11, Revision 0 [ 7011.039] Current Operating System: Linux Jonas 5.15.12-artix1-1 #1 SMP PREEMPT Thu, 30 Dec 2021 11:24:09 +0000 x86_64 [ 7011.039] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=3d98ec6b-0f70-48b2-bf89-d798d47e129b rw loglevel=3 quiet [ 7011.039] [ 7011.040] Current version of pixman: 0.40.0 [ 7011.040] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 7011.040] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 7011.040] (==) Log file: "/var/log/Xorg.8.log", Time: Fri Jan 14 18:58:09 2022 [ 7011.042] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia" [ 7011.042] (++) Using config directory: "/etc/bumblebee/xorg.conf.d" [ 7011.042] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [ 7011.045] (==) ServerLayout "Layout0" [ 7011.045] (==) No screen section available. Using defaults. [ 7011.045] (**) |-->Screen "Default Screen Section" (0) [ 7011.045] (**) | |-->Monitor "<default monitor>" [ 7011.046] (==) No device specified for screen "Default Screen Section". Using the first device section listed. [ 7011.046] (**) | |-->Device "DiscreteNvidia" [ 7011.046] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 7011.046] (**) Option "AutoAddDevices" "false" [ 7011.046] (**) Option "AutoAddGPU" "false" [ 7011.046] (**) Not automatically adding devices [ 7011.046] (==) Automatically enabling devices [ 7011.046] (**) Not automatically adding GPU devices [ 7011.046] (==) Automatically binding GPU devices [ 7011.046] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 7011.046] (WW) The directory "/usr/share/fonts/misc" does not exist. [ 7011.046] Entry deleted from font path. [ 7011.046] (WW) The directory "/usr/share/fonts/OTF" does not exist. [ 7011.046] Entry deleted from font path. [ 7011.046] (WW) The directory "/usr/share/fonts/Type1" does not exist. [ 7011.046] Entry deleted from font path. [ 7011.046] (==) FontPath set to: /usr/share/fonts/TTF, /usr/share/fonts/100dpi, /usr/share/fonts/75dpi [ 7011.046] (++) ModulePath set to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules" [ 7011.046] (==) |-->Input Device "Mouse0" [ 7011.046] (==) |-->Input Device "Keyboard0" [ 7011.046] (==) The core pointer device wasn't specified explicitly in the layout. Using the first mouse device. [ 7011.046] (==) The core keyboard device wasn't specified explicitly in the layout. Using the first keyboard device. [ 7011.046] (II) Module ABI versions: [ 7011.046] X.Org ANSI C Emulation: 0.4 [ 7011.046] X.Org Video Driver: 25.2 [ 7011.046] X.Org XInput driver : 24.4 [ 7011.046] X.Org Server Extension : 10.0 [ 7011.048] (--) using VT number 7 [ 7011.048] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration [ 7011.049] (II) xfree86: Adding drm device (/dev/dri/card0) [ 7011.049] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0 [ 7011.053] (--) PCI: (1@0:0:0) 10de:1d10:1025:119a rev 161, Mem @ 0xb3000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00004000/128 [ 7011.054] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory) [ 7011.054] (II) LoadModule: "glx" [ 7011.057] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so [ 7011.060] (II) Module glx: vendor="X.Org Foundation" [ 7011.060] compiled for 1.21.1.3, module version = 1.0.0 [ 7011.060] ABI class: X.Org Server Extension, version 10.0 [ 7011.060] (II) LoadModule: "nvidia" [ 7011.060] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so [ 7011.068] (II) Module nvidia: vendor="NVIDIA Corporation" [ 7011.068] compiled for 1.6.99.901, module version = 1.0.0 [ 7011.068] Module class: X.Org Video Driver [ 7011.069] (II) LoadModule: "mouse" [ 7011.069] (WW) Warning, couldn't open module mouse [ 7011.069] (EE) Failed to load module "mouse" (module does not exist, 0) [ 7011.069] (II) LoadModule: "kbd" [ 7011.069] (WW) Warning, couldn't open module kbd [ 7011.069] (EE) Failed to load module "kbd" (module does not exist, 0) [ 7011.070] (II) NVIDIA dlloader X Driver 495.46 Wed Oct 27 16:28:42 UTC 2021 [ 7011.070] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs [ 7011.070] (EE) No devices detected. [ 7011.070] (EE) Fatal server error: [ 7011.070] (EE) no screens found(EE) [ 7011.070] (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 7011.070] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information. [ 7011.070] (EE) [ 7011.070] (EE) Server terminated with error (1). Closing log file. When I run __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia supertuxkart it IS using the GPU lspci -k: ... 00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07) Subsystem: Acer Incorporated [ALI] Device 1193 Kernel driver in use: i915 Kernel modules: i915 ... 01:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX150] (rev a1) Subsystem: Acer Incorporated [ALI] Device 119a Kernel driver in use: nvidia Kernel modules: nouveau, nvidia_drm, nvidia ... nvidia-bug-report.sh: https://pastebin.com/HrrEfKrW Questions: - Why doesn't
nvidia-settings work anymore? - Why doesn't the X-Server start when I change to the Nvidia GPU with nvidia-prime-select?
- Why does bumblebee not work?
|
| "curl" downloads .zip file as ASCII text (zipfile is not corrupted!) Posted: 14 Jan 2022 09:52 AM PST I want to download package from Artifactory. If I download it manually from Artifactory UI, and transfer that file to Linux server (RHEL 8) I can see that file is in proper ZIP format: file arena-web.zip arena-web.zip: Zip archive data, at least v2.0 to extract If I try to download it using the CURL from the same Linux server, I get the file as ASCII text which I cannot unzip of course: file arena-web.zip arena-web.zip: ASCII text curl command which I used: curl -u "user:pass" -O https://artifactory_my_domain/packages/arena-web.zip I tried with -L and -o options as well. Is this some sort of a bug or what can be the issue? |
| remove duplicate lines across multiple txt files Posted: 14 Jan 2022 10:38 AM PST I have 12 text files all in one folder, each with about 5 million lines, each file has no duplicate line on its own but there are duplicated across multiple files, I want to remove the duplicate lines in each file but still save them separately, I have tried many Linux sort command and it keep merging the file together, I have Windows, Linus, and Mac, Is there any code or application that can do this? |
| How to list directory files in table format and with file information through a shell script? Posted: 14 Jan 2022 09:46 AM PST I'm new to linux and I wanted to know if there's a way to list the files that are in a directory and show them in a table format, with the following information: date of last access, date of last modification, file extension and size. |
| Using sed to display character string containing one or more pattern characters in a line and ignore other strings Posted: 14 Jan 2022 09:49 AM PST I want to pass the result of a sed command to a variable to only read part of each line of a file. For example, here is the content of my input file named "fic1.txt": -->cat fic1.txt: /data/test/AAAA1.txt: text/plain; charset=us-ascii /data/test/AAAA2.txt: text/plain; charset=us-ascii /data/test/AAAA3.txt: text/plain; charset=us-ascii /data/test/BBBB1.txt: text/plain; charset=iso-8859-1 /data/test/BBBB2.txt: text/plain; charset=iso-8859-1 /data/test/BBBB3.txt: text/plain; charset=iso-8859-1 /data/test/BBBB4.txt: text/plain; charset=iso-8859-1 /data/test/CCCC1.txt: text/plain; charset=iso-8859-1 /data/test/CCCC2.txt: text/plain; charset=unknown-8bit So I want to use sed to pass the result on variable, such as: -> Output_result1: us-ascii us-ascii us-ascii iso-8859-1 iso-8859-1 iso-8859-1 iso-8859-1 iso-8859-1 unknown-8bit -> Output_result2: /data/test/AAAA1.txt /data/test/AAAA2.txt /data/test/AAAA3.txt /data/test/BBBB1.txt /data/test/BBBB2.txt /data/test/BBBB3.txt /data/test/BBBB4.txt /data/test/CCCC1.txt /data/test/CCCC2.txt For the first one output, I'm used this following sed command which works: var_type_fic=`cat fic1.txt |sed -r 's/.*charset=([^ ]+).*/\1/'|sort` for fic in $var_type_fic; do echo "$fic" done But for the second, I can't find the regex match that is going well. Can someone help please? |
| Does GNU GRUB support BLS (Boot Loader Specification)? Posted: 14 Jan 2022 09:58 AM PST |
| Linux shell command : su authentication failed Posted: 14 Jan 2022 08:35 AM PST I upgraded current OS to latest version. i am unable to do su from admin to root user. I checked /etc/password, /etc/shadow, unix_chkpwd and su permission, everything looks ok i dig into the /etc/pam.d/ configuration made some changes to see if any luck, but none of them worked. Below is the error log i can see in system logs, it would be great if any one help on this issue Note: I am able to telnet to root using root password unix_chkpwd[7868]:, check pass; user unknown unix_chkpwd[7868]:, password check failed for user (root) su[7279]:, pam_unix(su:auth): authentication failure; logname= uid=2000 euid=2000 tty=/dev/pts/3 ruser=admin rhost= user=root unix_chkpwd[7874]:, check pass; user unknown unix_chkpwd[7876]:, check pass; user unknown unix_chkpwd[7876]:, password check failed for user (root) su[7279]:, pam_authenticate: Authentication failure su[7279]:, PAM 1 more authentication failure; logname= uid=2000 euid=2000 tty=/dev/pts/3 ruser=admin rhost= user=root su[7279]:, FAILED su for root by admin su[7279]:, su session not logged to /var/log/sulog su[7279]:, - /dev/pts/3 admin:root |
| Cant access windows 10 after dual boot with debian 11 Posted: 14 Jan 2022 09:15 AM PST I have just installed a Debian 11 in dual boot with a pre installed windows 10 in a dell notebook. To make the dual boot and access Debian, i had to access the UEFI and: 1 - Alter the boot order so that it privileges the debian partition; 2 - Disable the secure boot option; 3 - Alter the SATA settings from SATA to AHCI; So now the debian works just fine with the GRUB interface and all. However, if i try to access windows via GRUB interface, it just reinitializes the computer. So to actually access windows i need to enter the UEFI again and revert all changes. But then Debian will be unavailable, so if i want to access debian i need to access the UEFI again and revert changes again and so and so... Also, sometimes when i access windows it states that it hasnt been initialized correcltly and needs to enter repair mode or try again. Is there a way i can just have my old pal GRUB working normally and initializing both debian and windows again? |
| Change the number of values in column [closed] Posted: 14 Jan 2022 08:28 AM PST i have a file like this exemple: 2931 7895 6688 7895 2931 2931 6688 and I want to generate a file that contain this column and another one like this: 2931 1 7895 2 6688 3 7895 2 2931 1 2931 1 6688 3 |
| Why does supervisor does not log the output of a child process? Posted: 14 Jan 2022 08:45 AM PST When I run the script server.sh (runs a quake dedicated server) in the terminal it will create initialization output like ------- Game Initialization ------- gamename: baseqz gamedate: May 25 2016 initializing access list... loaded 0 steam ids into the access list Not logging to disk. 0 teams with 0 entities 21 items registered And when some person connects to the server then this script will output something like Person xyz has connected I want supervisor to manage this server.sh script but supervisor does not output any kind of initialization messages or connecting message (if someone connects). Stdout and stderr are both logged. Why does supervisor not log the output of server.sh? Here is my supervisord.conf [program:prog] command=/home/user/.steam/steamapps/common/qlds/server.sh stdout_logfile=stdout.txt stderr_logfile=stdout.txt [supervisord] nodaemon=true [supervisorctl] serverurl=http://127.0.0.1:9001 [inet_http_server] port=127.0.0.1:9001 [rpcinterface:supervisor] supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface EDIT: I noticed a strange behaviour of server.sh server.sh &> out.txt generates no output in out.txt (no Game initialization, nothink). But only after i typed in stdin "quit" (server.sh quits now) then the Game initialization and so on got written into file out.txt |
| How to assign value using echo to a variable but don't display it in terminal [duplicate] Posted: 14 Jan 2022 08:47 AM PST My bash script #!/bin/bash read -r -p "Enter the filenames: " -a arr for i in "${arr[@]}" do echo $i | sed 's/\(.*\)\..*/\1/' cp -v ~/Desktop/library/template.py "$i".py done If i write A B.py C D.py, this script will turn it into A.py B.py C.py D.py -v flag of cp -v explains what is being done but i don't want to print the edited filenames echo $i. It's annoying.
How can i do that? alternative solutions are also appreciated |
| How do I add a line of text to the middle of a file using awk? Posted: 14 Jan 2022 08:43 AM PST This is an great answer. https://stackoverflow.com/a/6739327/15603477 But Still a little bit confused me. without a variable, awk '/^nameserver/ { printf("nameserver 127.0.0.1\n")} {print}' file2 will get: # Generated by NetworkManager domain dhcp.example.com search dhcp.example.com nameserver 127.0.0.1 nameserver 10.0.0.1 nameserver 127.0.0.1 nameserver 10.0.0.2 nameserver 127.0.0.1 nameserver 10.0.0.3 After try serval combination, I found out that I had to use awk '/^nameserver/ && !a { printf("nameserver 127.0.0.1\n"); a=1 } {print}' file2 But I am still confused with !a and a=1 function to stop the printf("nameserver 127.0.0.1\n") duplication. |
| Ranger file manager as the singleton instance on shell startup Posted: 14 Jan 2022 11:06 AM PST Problem: I use zsh and added to its config file a line of launching ranger on startup. .zshrc # A few other settings and commands. ZSH_TMUX_AUTOSTART="true" plugins=(tmux ...) source ranger Due to it every newly opened(mostly in tmux) zsh runs ranger. Expectation: Lauch a ranger process only if there is no running one. Something like looks as follow: if [[ ! -v RANGER_RUNNIG ]]; then export RANGER_RUNNING="true" source ranger fi |
| Using awk to add a value to a second column and save it as a third column Posted: 14 Jan 2022 09:13 AM PST I have a BED file: MtrunA17CP,0,977,gene:MtrunA17CPg0492171,.,+,EuGene,gene,.,ID=gene:MtrunA17CPg0492171;Name=MtrunA17CPg0492171;locus_tag=MtrunA17_CPg0492171; MtrunA17CP,2410,3570,gene:MtrunA17CPg049219,.,+,EuGene,gene,.,ID=gene:MtrunA17CPg0492191;Name=MtrunA17CPg0492191;locus_tag=MtrunA17_CPg0492191; MtrunA17CP,3571,3697,gene:MtrunA17CPg0492211,.,+,EuGene,gene,.,ID=gene:MtrunA17CPg0492211;Name=MtrunA17CPg0492211;locus_tag=MtrunA17_CPg0492211; How do I add 250 to a second column and replace the third column with this new value using awk? Also is there a way to take into account strandedness (+ or - DNA strands) since adding to a + strand is going downstream - left to right; and adding to a - strand is moving upstream - right to left? CLARIFICATION: Nothing wrong with $2+=250 and $3=$2, I'm a newb. I was thrown into this (long story) but only have the biological training. So now I am trying to speak the language without first understanding it. Regarding strandedness, I got to ponder on it, but what it is essentially: One DNA strand runs in 5' to 3' direction (positions of nucleotides attached at carbon atoms in the sugar rings). This one is labeled with a "+" sign. The other that runs in the other direction is a copy of the "+" strand and is labeled as a "-" The two strands form a double helix. When counting the nucleotides (coding for our genetic info) they are counted in the "5-3" direction for the "+' strand and "3-5" for the "-" strand. Sorry for the complicated question, I could have only posed it as: How do I add 250 to the second column so that the result is represented in the third column? The third column is already populated with some previous values, so obviously I want those values gone. Column delimiter is a comma. Thank you, hopefully I was clear enough |
| xmodmap resets when keyboard mode changes Posted: 14 Jan 2022 08:10 AM PST I have a Keychron K2 mechanical keyboard and the keys on the righthand side of the keyboard look like this:  I would like to swap them to a more standard layout, so that, from top to bottom, I would have Light Toggle, Home, Page Up, Page Down, and End. I used xev to retrieve the key codes and wrote a small script that uses xmodmap to swap them to my liking: #!/bin/bash xmodmap -e "keycode 110 = Next" && xmodmap -e "keycode 112 = Home" && xmodmap -e "keycode 117 = Prior" This script is executed on start up and works exactly as expected. The problem is this keyboard is both wired and Bluetooth. When I switch between wired mode to Bluetooth mode or vice-versa, the keys go back to their default position and I need to manually run my script above one more time. xev shows to me that in both cases the key codes are the same. Is there a better way of tackling this so that these keys are swapped regardless of the keyboard mode I use? |
| disk quota exceeded when trying to deploy Docker container inside LXC Posted: 14 Jan 2022 10:25 AM PST I have an LXC container running docker. Many containers are running successfully but I am unable to add more; I am trying to deploy a new docker container and getting the following error: container init caused "join session keyring: create session key: disk quote exceeded": unknown But the container has plenty of free space, as does the host. I confirmed this with df -h and df -i (so, it's not inodes) What does this error mean and how is it resolved? |
| ACPI BIOS Error / AE_NOT_FOUND Posted: 14 Jan 2022 08:30 AM PST I'm getting these error messages every single time I reboot my desktop (and a couple of more I don't know how to retain when it's shutting down, but those are not relevant to this question so far): [gorre@uplink ~]$ journalctl -p err..alert ... -- Reboot -- May 11 21:47:03 uplink kernel: ACPI BIOS Error (bug): Failure looking up [\_SB.PCI0.RP04.PXSX._SB.PCI0.RP05.PXSX], AE_NOT_FOUND (20180105/dswload2-194) May 11 21:47:03 uplink kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20180105/psobject-252) May 11 21:47:03 uplink kernel: ACPI Error: Method parse/execution failed \_SB.PCI0.RP04.PXSX, AE_NOT_FOUND (20180105/psparse-550) May 11 21:47:03 uplink kernel: ACPI BIOS Error (bug): Failure looking up [\_SB.PCI0.RP08.PXSX._SB.PCI0.RP09.PXSX], AE_NOT_FOUND (20180105/dswload2-194) May 11 21:47:03 uplink kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20180105/psobject-252) May 11 21:47:03 uplink kernel: ACPI Error: Method parse/execution failed \_SB.PCI0.RP08.PXSX, AE_NOT_FOUND (20180105/psparse-550) May 12 07:09:30 uplink kernel: rtc_cmos 00:03: Alarms can be up to one month in the future -- Reboot -- May 12 07:10:32 uplink kernel: ACPI BIOS Error (bug): Failure looking up [\_SB.PCI0.RP04.PXSX._SB.PCI0.RP05.PXSX], AE_NOT_FOUND (20180105/dswload2-194) May 12 07:10:32 uplink kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20180105/psobject-252) May 12 07:10:32 uplink kernel: ACPI Error: Method parse/execution failed \_SB.PCI0.RP04.PXSX, AE_NOT_FOUND (20180105/psparse-550) May 12 07:10:32 uplink kernel: ACPI BIOS Error (bug): Failure looking up [\_SB.PCI0.RP08.PXSX._SB.PCI0.RP09.PXSX], AE_NOT_FOUND (20180105/dswload2-194) May 12 07:10:32 uplink kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20180105/psobject-252) May 12 07:10:32 uplink kernel: ACPI Error: Method parse/execution failed \_SB.PCI0.RP08.PXSX, AE_NOT_FOUND (20180105/psparse-550) I found this article that states someone can add this line: echo "disable" > /sys/firmware/acpi/interrupts/gpe6F to /etc/rc.local, but I'm not sure if that's the correct solution...moreover, if that's only "patching" the error messages, but not fixing the underlying problem ‒ if any. Or maybe should I wait for an upgrade? I'm using: [gorre@uplink ~]$ uname -a Linux uplink 4.16.8-1-ARCH #1 SMP PREEMPT Wed May 9 11:25:02 UTC 2018 x86_64 GNU/Linux ...and this is my hardware: - Corsair RMX750 (750 Watt) 80+ Gold Fully Modular Power Supply
- Intel Core i7-8700 (BX80684I78700) Processor
- Asus Prime Z370-P
- Corsair Force MP500 M.2 2280 240GB NVMe PCI-Express 3.0 x4 MLC SSD
- Corsair Vengeance LPX 32GB (2 x 16GB) 288-Pin DDR4 SDRAM DDR4 2666 (PC4 21300)
UPDATE New kernel 4.19.13-1-lts update: $ uname -a Linux uplink 4.19.13-1-lts #1 SMP Sun Dec 30 07:38:47 CET 2018 x86_64 GNU/Linux ...and the error/warning messages are finally gone! -- Reboot -- Dec 28 09:40:42 uplink kernel: ACPI Error: [_SB_.PCI0.RP05.PXSX] Namespace lookup failure, AE_NOT_FOUND (20170728/dswload2-191) Dec 28 09:40:42 uplink kernel: ACPI Exception: AE_NOT_FOUND, During name lookup/catalog (20170728/psobject-252) Dec 28 09:40:42 uplink kernel: ACPI Error: Method parse/execution failed \_SB.PCI0.RP04.PXSX, AE_NOT_FOUND (20170728/psparse-550) Dec 28 09:40:42 uplink kernel: ACPI Error: [_SB_.PCI0.RP09.PXSX] Namespace lookup failure, AE_NOT_FOUND (20170728/dswload2-191) Dec 28 09:40:42 uplink kernel: ACPI Exception: AE_NOT_FOUND, During name lookup/catalog (20170728/psobject-252) Dec 28 09:40:42 uplink kernel: ACPI Error: Method parse/execution failed \_SB.PCI0.RP08.PXSX, AE_NOT_FOUND (20170728/psparse-550) Dec 28 09:41:08 uplink gnome-session-binary[712]: Unrecoverable failure in required component org.gnome.Shell.desktop Dec 28 11:48:13 uplink flatpak[7192]: libostree HTTP error from remote flathub for <https://dl.flathub.org/repo/objects/3d/b5370c04103b9acd46bca2f315fb4855649926120b099a> Dec 28 11:48:16 uplink flatpak[7192]: libostree HTTP error from remote flathub for <https://dl.flathub.org/repo/objects/e0/a43c4cbae106fc801d3c7bcc004b8222e9bf0528beef04> Dec 29 12:19:37 uplink kernel: rtc_cmos 00:03: Alarms can be up to one month in the future Dec 30 09:03:02 uplink kernel: rtc_cmos 00:03: Alarms can be up to one month in the future Dec 30 19:07:11 uplink kernel: [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=952715 end=952716) time 142 us, min 1073, max 1079, scan> Dec 31 08:11:28 uplink kernel: rtc_cmos 00:03: Alarms can be up to one month in the future -- Reboot -- Jan 01 10:23:42 uplink gnome-session-binary[516]: Unrecoverable failure in required component org.gnome.Shell.desktop |
| How can I fix bluetooth issues which are affecting booting time? Posted: 14 Jan 2022 09:45 AM PST I've recently installed xubuntu 17.10. I noticed some error messages while booting. Here's the my dmesg output(only errors and their previous lines): ... [ 13.717201] usb 5-3: USB disconnect, device number 2 [ 15.164286] Bluetooth: hci0 command 0xfc20 tx timeout ... [ 20.756846] Bluetooth: BNEP socket layer initialized [ 23.260344] Bluetooth: hci0: download fw command failed (-110) The line with [ 15.164286] and [ 23.260344] are shown in red(errors) on my console. I doubt this is what slowing down the boot process(approx. 5 secs). How can I solve this issue? Edit: My lsmod output: Module Size Used by rndis_host 16384 0 cdc_ether 16384 1 rndis_host usbnet 45056 2 rndis_host,cdc_ether bnep 20480 2 arc4 16384 2 rtl8723ae 94208 0 btcoexist 131072 1 rtl8723ae rtl8723_common 24576 1 rtl8723ae rtl_pci 32768 1 rtl8723ae snd_hda_codec_realtek 98304 1 snd_hda_codec_hdmi 49152 1 snd_hda_codec_generic 73728 1 snd_hda_codec_realtek rtlwifi 77824 4 rtl_pci,btcoexist,rtl8723_common,rtl8723ae snd_hda_intel 40960 4 snd_hda_codec 126976 4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek snd_hda_core 81920 5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek kvm_amd 2179072 0 kvm 589824 1 kvm_amd irqbypass 16384 1 kvm snd_hwdep 20480 1 snd_hda_codec snd_pcm 98304 4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi mac80211 782336 2 rtl_pci,rtlwifi snd_seq_midi 16384 0 snd_seq_midi_event 16384 1 snd_seq_midi cdc_acm 32768 0 btusb 45056 0 btrtl 16384 1 btusb btbcm 16384 1 btusb btintel 16384 1 btusb joydev 20480 0 bluetooth 544768 11 btrtl,btintel,bnep,btbcm,btusb sparse_keymap 16384 0 input_leds 16384 0 serio_raw 16384 0 input_polldev 16384 0 ecdh_generic 24576 1 bluetooth i2c_piix4 24576 0 snd_rawmidi 32768 1 snd_seq_midi k10temp 16384 0 rtsx_pci_ms 20480 0 memstick 16384 1 rtsx_pci_ms snd_seq 65536 2 snd_seq_midi_event,snd_seq_midi cfg80211 614400 2 mac80211,rtlwifi snd_seq_device 16384 3 snd_seq,snd_rawmidi,snd_seq_midi snd_timer 32768 2 snd_seq,snd_pcm shpchp 36864 0 snd 81920 19 snd_hda_intel,snd_hwdep,snd_seq,snd_hda_codec,snd_timer,snd_rawmidi,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_seq_device,snd_hda_codec_realtek,snd_pcm soundcore 16384 1 snd mac_hid 16384 0 parport_pc 32768 0 ppdev 20480 0 lp 20480 0 parport 49152 3 lp,parport_pc,ppdev ip_tables 24576 0 x_tables 40960 1 ip_tables autofs4 40960 2 hid_generic 16384 0 usbhid 49152 0 hid 118784 2 hid_generic,usbhid rtsx_pci_sdmmc 24576 0 amdkfd 188416 1 amd_iommu_v2 20480 1 amdkfd radeon 1478656 3 psmouse 147456 0 i2c_algo_bit 16384 1 radeon ttm 94208 1 radeon drm_kms_helper 167936 1 radeon syscopyarea 16384 1 drm_kms_helper r8169 86016 0 sysfillrect 16384 1 drm_kms_helper mii 16384 2 r8169,usbnet sdhci_pci 28672 0 sysimgblt 16384 1 drm_kms_helper fb_sys_fops 16384 1 drm_kms_helper sdhci 45056 1 sdhci_pci ahci 36864 3 libahci 32768 1 ahci drm 360448 6 radeon,ttm,drm_kms_helper rtsx_pci 57344 2 rtsx_pci_sdmmc,rtsx_pci_ms wmi 24576 0 video 40960 0 |
| Uninstall Android Studio + SDK Posted: 14 Jan 2022 11:03 AM PST I am using linux arch. I installed android according to ArchWiki. I uninstalled every skd component and android studio using pacman -Rs. Also, I removed every hidden folder in the home directory that had something to do with android such .android, .gradle, AndroidStudio. But the environment variable ANDROID_HOME is still set and the following command ps aux | grep 'adb' returns adb -L tcp:5037 fork-server server --reply-fd 4 Where is the environment variable ANDROID_HOME set and what means adb -L tcp:5037 fork-server server --reply-fd 4? Is android not properly uninstalled? The command adb returns bash: adb: command not found EDIT: In a /proc/pid/environ, there are still things like /opt/android-sdk/platform-tools:/opt/android-sdk/tools:/opt/android-sdk/tools/bin |
| How do I extract vmlinux from an ARM image? Posted: 14 Jan 2022 10:01 AM PST I am trying to extract vmlinux from Ubuntu's netboot kernel used in the armhf architecture. The script extract-vmlinux returns extract-vmlinux: Cannot find vmlinux. It even fails when I try to use it on a normal x86 kernel. How can I extract vmlinux from this ARM vmlinuz? |
| How to set up automatic connection of bluetooth headset? Posted: 14 Jan 2022 10:33 AM PST My bluetooth headset works fine. Audio sink works. Everything work. But the problem is that I need to connect it manually to the PC: - click on bluetooth icon near the time on kde taskbar => known devices => Connect
# bluetoothctl => connect xx:xx:xx:xx:xx:xx It used to connect automatically just a month ago with standard debian installation/updates. I don't know why it got broken. I didn't install any bluetooth-related packages nor change bluetooth-related configuration files. What I did to fix my problem: How to make it to be able to connect to bluetooth headset automatically when it goes online? I feel like the solution is easy. Debian 8.6, kde 4.14.2. Packages used: bluedevil, bluetooth, bluez, pulseaudio-module-bluetooth. |
| Systemd Restart=always is not honored Posted: 14 Jan 2022 08:59 AM PST Note: I wrote an article on Medium that explains how to create a service, and how to avoid this particular issue: Creating a Linux service with systemd. Original question: I'm using systemd to keep a worker script working at all times: [Unit] Description=My worker After=mysqld.service [Service] Type=simple Restart=always ExecStart=/path/to/script [Install] WantedBy=multi-user.target Although the restart works fine if the script exits normally after a few minutes, I've noticed that if it repeatedly fails to execute on startup, systemd will just give up trying to start it: Jun 14 11:10:31 localhost systemd[1]: test.service: Main process exited, code=exited, status=1/FAILURE Jun 14 11:10:31 localhost systemd[1]: test.service: Unit entered failed state. Jun 14 11:10:31 localhost systemd[1]: test.service: Failed with result 'exit-code'. Jun 14 11:10:31 localhost systemd[1]: test.service: Service hold-off time over, scheduling restart. Jun 14 11:10:31 localhost systemd[1]: test.service: Start request repeated too quickly. Jun 14 11:10:31 localhost systemd[1]: Failed to start My worker. Jun 14 11:10:31 localhost systemd[1]: test.service: Unit entered failed state. Jun 14 11:10:31 localhost systemd[1]: test.service: Failed with result 'start-limit'. Similarly, if my worker script fails several times with an exit status of 255, systemd gives up trying to restart it: Jun 14 11:25:51 localhost systemd[1]: test.service: Failed with result 'exit-code'. Jun 14 11:25:51 localhost systemd[1]: test.service: Service hold-off time over, scheduling restart. Jun 14 11:25:51 localhost systemd[1]: test.service: Start request repeated too quickly. Jun 14 11:25:51 localhost systemd[1]: Failed to start My worker. Jun 14 11:25:51 localhost systemd[1]: test.service: Unit entered failed state. Jun 14 11:25:51 localhost systemd[1]: test.service: Failed with result 'start-limit'. Is there a way to force systemd to always retry after a few seconds? |
| Proxify dns queries at the command-line Posted: 14 Jan 2022 09:17 AM PST I want to use different dns server (not tor, any dns server I set) for certain terminal command. Say it would looks like $ DNS_SERVER=8.8.8.8 dnsify ping example.com and it uses Google dns. I know there's socksify, torrify and other tools like that. I look for any tool, hack, or other way I can set it explicitly for my command or at least restricted to terminal session. So I use different dns for my command or in my terminal session, and main dns for all other software. I tryed proxychains but can't force it to use non-system proxy. So, is there anything for dns proxifying? |
| Segmentation Fault when trying to mount ext(2,3,4) fs, from usb (openwrt) Posted: 14 Jan 2022 08:04 AM PST So I have a TL-MR3220v2 router, which has Openwrt installed, this device only has a 4mb flash so I'm trying to get extroot setup on a USB, to increase disk space. My first attempt I tried using a FAT32 FS, which I was able to get mounted and transfer files, but I quickly realized that this FS would not work as a linux root because of permissions, symlinks, and such. So I tried again this time with a ext4 formatted usb. So I then try to mount this partition onto my device, but every time it results in a 'segmentation fault' with the following in my dmesg log: [ 1146.920000] usb 1-1: new high-speed USB device number 3 using ehci-platform [ 1147.070000] usb-storage 1-1:1.0: USB Mass Storage device detected [ 1147.090000] scsi host1: usb-storage 1-1:1.0 [ 1148.390000] scsi 1:0:0:0: Direct-Access Lexar USB Flash Drive 1100 PQ: 0 ANSI: 4 [ 1148.400000] sd 1:0:0:0: [sda] 31258624 512-byte logical blocks: (16.0 GB/14.9 GiB) [ 1148.410000] sd 1:0:0:0: [sda] Write Protect is off [ 1148.420000] sd 1:0:0:0: [sda] Mode Sense: 43 00 00 00 [ 1148.420000] sd 1:0:0:0: [sda] No Caching mode page found [ 1148.430000] sd 1:0:0:0: [sda] Assuming drive cache: write through [ 1148.440000] sda: sda1 [ 1148.450000] sd 1:0:0:0: [sda] Attached SCSI removable disk [ 1168.550000] CPU 0 Unable to handle kernel paging request at virtual address c0676c40, epc == c0676c40, ra == c0694dd0 [ 1168.560000] Oops[#4]: [ 1168.560000] CPU: 0 PID: 1596 Comm: mount Tainted: G D 3.18.18 #1 [ 1168.560000] task: 8182a220 ti: 8155a000 task.ti: 8155a000 [ 1168.560000] $ 0 : 00000000 00000000 c0698e60 00000000 [ 1168.560000] $ 4 : c06c6b30 00008000 81578700 00000000 [ 1168.560000] $ 8 : 00003100 8157868a 00000010 00000013 [ 1168.560000] $12 : 7fb3d928 00000000 00000000 770b4000 [ 1168.560000] $16 : 80f6c780 81578700 c06c6b30 c06c6b30 [ 1168.560000] $20 : 00000000 00000000 81578c00 770b4000 [ 1168.560000] $24 : 00000010 8016c38c [ 1168.560000] $28 : 8155a000 8155be38 00000000 c0694dd0 [ 1168.560000] Hi : 00000019 [ 1168.560000] Lo : 00000000 [ 1168.560000] epc : c0676c40 0xc0676c40 [ 1168.560000] Tainted: G D [ 1168.560000] ra : c0694dd0 ext4_orphan_del+0x108c/0x1f30 [ext4] [ 1168.560000] Status: 1000fc03 KERNEL EXL IE [ 1168.560000] Cause : 10800008 [ 1168.560000] BadVA : c0676c40 [ 1168.560000] PrId : 00019374 (MIPS 24Kc) [ 1168.560000] Modules linked in: ext4 jbd2 mbcache crc16 crypto_hash usb_storage sd_mod scsi_mod ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_masquerade_ipv4 nf_nat_ftp nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_ftp nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt compat ledtrig_usbdev ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables ipv6 arc4 crypto_blkcipher ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common [ 1168.560000] Process mount (pid: 1596, threadinfo=8155a000, task=8182a220, tls=770c1644) [ 1168.560000] Stack : 80400000 80f6c780 81578700 804073f0 c0698e60 80116f30 81733300 800ffc68 [ 1168.560000] 00000000 81578c00 c06c6b30 81578700 00008000 c06c6b30 80f6c780 81578700 [ 1168.560000] 00008000 80116fdc 00008000 8010a4a0 00000001 7fb3df74 c06c6b30 00000020 [ 1168.560000] 80391f70 00008000 81578700 80119de8 8182ebc0 7fb3df74 0000000a 800ddc68 [ 1168.560000] 81b1f010 8088e4c8 7fb3dc34 770b4000 00000000 0000000a 00000000 81578c00 [ 1168.560000] ... [ 1168.560000] Call Trace: [ 1168.560000] [<c0698e60>] ext4_calculate_overhead+0x4b8/0x3238 [ext4] [ 1168.560000] [<80116f30>] alloc_vfsmnt+0x124/0x16c [ 1168.560000] [<800ffc68>] mount_fs+0x20/0xd8 [ 1168.560000] [<80116fdc>] vfs_kern_mount+0x64/0x114 [ 1168.560000] [<8010a4a0>] user_path_at+0x14/0x20 [ 1168.560000] [<80119de8>] do_mount+0x868/0x974 [ 1168.560000] [<800ddc68>] memdup_user+0x28/0x90 [ 1168.560000] [<8011a178>] SyS_mount+0x90/0xd4 [ 1168.560000] [<80062b5c>] handle_sys+0x11c/0x140 [ 1168.560000] [<80064f40>] __bzero+0xc4/0x164 [ 1168.560000] [ 1168.560000] [ 1168.560000] Code: (Bad address in epc) [ 1168.560000] [ 1168.820000] ---[ end trace 9f7c3beeded42796 ]--- df: root@OpenWrt:/# df -h Filesystem Size Used Available Use% Mounted on rootfs 640.0K 572.0K 68.0K 89% / /dev/root 2.0M 2.0M 0 100% /rom tmpfs 13.9M 656.0K 13.3M 5% /tmp /dev/mtdblock3 640.0K 572.0K 68.0K 89% /overlay overlayfs:/overlay 640.0K 572.0K 68.0K 89% / tmpfs 512.0K 0 512.0K 0% /dev free: root@OpenWrt:/# free total used free shared buffers Mem: 28508 17516 10992 656 568 -/+ buffers: 16948 11560 Swap: 0 0 0 If not sure what going on here, I dont think RAM is a problem as the free command show that half my ram is still unused, and i did try with ext2 and 3 but i just get the same output. So if anyone has any idea i would greatly appreciate it! Thanks! EDIT: So I found this page http://blog.csdn.net/u011839461/article/details/12001437 which say if BadVA == epc then it is most likely memory corruption, but Im not sure what i can do about it. |
| Increase Icon/Text Size in Kali Linux Posted: 14 Jan 2022 08:13 AM PST I am running Kali Linux in a virtual box (VMWare Player), and although the resolution fits my screen properly, the icons, windows, text is so small. In example, when I use the terminal or browse using Iceweasel, the windows they appear in show small text, and everything is not proportioned properly to size. It seems that everything has shrunk in size; even the dropdown menus on the desktop, and windows that open are not properly displayed regarding size. How can I increase the size so that windows, text, desktop icons and desktop menus display properly (standard size)? |
| Unable to use python speech_recognition lib Microphone class due to ALSA Posted: 14 Jan 2022 09:07 AM PST I am attempting to write a speech recognition program for the raspberry pi, however I am facing some issues using python's speech_recognition library. From the error messages (posted below) I think the issue may be with the wrong sound card being accessed, however I am able to record with PyAudio (which I think the microphone class uses) as well as 'arecord' Below is the code I am trying to run: import speech_recognition as sr r = sr.Recognizer() with sr.Microphone() as source: while True: audio = r.listen(source) try: printf("You said " + r.recognize(audio)) except LookupError: printf("Could not understand audio") I have made some adjustments to which soundcard is used as default. My "/etc/modprobe.d/alsa-base.conf" file is untouched and standard. I have created a file in /home/pi under the name ".asoundrc" which contains: pcm.!default { type asym playback.pcm "hw:0,0" capture.pcm "hw:1,0" } This allows for recording from the USB microphone and playback through the on-board headphone jack port. Below is the error message I received when trying to run the python script: pi@raspberrypi ~/Desktop $ python speechtester.py ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.front.0:CARD=0' ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM front ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround40.0:CARD=0' ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround40 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0' ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround41 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0' ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround50 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0' ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround51 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround71.0:CARD=0' ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround71 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM iec958 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM spdif ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM spdif ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started Apologies for the relatively long post I just wanted to provide as much information as possible. |
| Force apt-get to prompt yes/no Posted: 14 Jan 2022 10:07 AM PST Is there a way to force apt-get to display yes/no prompt? A --force-yes option exists, but there seems to be no --force-prompt or similar option. If you attempt to install a package that has all dependencies already installed, it will begin installation without displaying a yes/no prompt. This can be bothersome if you want to review whether dependencies exist and which ones will be installed because you don't know if the potential dependencies are installed ahead of time. NOTE: When does "apt-get install" ask me to confirm whether I want to continue or not? is somewhat related in that it describes under what standard conditions the prompt is displayed. I'm interested to know how to force it though. |
No comments:
Post a Comment