Unable to install vala-panel-appmenu-xfce-git and vala-panel-appmenu-common-git in Manjaro Posted: 20 Jan 2022 06:00 AM PST I wanted to install vala-panel-appmenu-xfce-git and vala-panel-appmenu-common-git in Manjaro. So I first used: pamac build vala-panel-appmenu-xfce-git in the terminal. This is the output I got: Preparing... Cloning vala-panel-appmenu-xfce-git build files... Generating vala-panel-appmenu-xfce-git information... Checking vala-panel-appmenu-xfce-git dependencies... Resolving dependencies... Checking inter-conflicts... To build (2): vala-panel-appmenu-common-git 0.7.6.r13.gb5e9b0a-1 AUR vala-panel-appmenu-xfce-git 0.7.6.r13.gb5e9b0a-1 AUR Edit build files : [e] Apply transaction ? [e/y/N] y Building vala-panel-appmenu-xfce-git... ==> Making package: vala-panel-appmenu-xfce-git 0.7.6.r13.gb5e9b0a-1 (Thursday 20 January 2022 07:23:39 PM) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Updating vala-panel-appmenu git repo... Fetching origin ==> Validating source files with sha256sums... vala-panel-appmenu ... Skipped ==> Removing existing $srcdir/ directory... ==> Extracting sources... -> Creating working copy of vala-panel-appmenu git repo... Cloning into 'vala-panel-appmenu'... done. ==> Starting pkgver()... ==> Removing existing $pkgdir/ directory... ==> Starting build()... The Meson build system Version: 0.60.3 Source dir: /var/tmp/pamac-build-anujtambe/vala-panel-appmenu-xfce-git/src/vala-panel-appmenu Build dir: /var/tmp/pamac-build-anujtambe/vala-panel-appmenu-xfce-git/src/build Build type: native build Project name: vala-panel-appmenu Project version: 0.7.6 C compiler for the host machine: cc (gcc 11.1.0 "cc (GCC) 11.1.0") C linker for the host machine: cc ld.bfd 2.36.1 Vala compiler for the host machine: valac (valac 0.54.5) Host machine cpu family: x86_64 Host machine cpu: x86_64 Found pkg-config: /usr/bin/pkg-config (1.8.0) Run-time dependency gio-unix-2.0 found: YES 2.70.2 Run-time dependency gdk-pixbuf-2.0 found: YES 2.42.6 Run-time dependency gtk+-3.0 found: YES 3.24.31 Run-time dependency libbamf3 found: YES 0.5.5 Run-time dependency libwnck-3.0 found: YES 40.0 Run-time dependency vala-panel found: YES 0.4.92 Run-time dependency libmatepanelapplet-4.0 found: YES 1.26.1 Run-time dependency libxfce4panel-2.0 found: YES 4.16.3 Run-time dependency libxfconf-0 found: YES 4.16.0 Found CMake: /usr/bin/cmake (3.22.1) WARNING: CMake Toolchain: Failed to determine CMake compilers state Run-time dependency budgie-1.0 found: NO (tried pkgconfig and cmake) vala-panel-appmenu/meson.build:81:0: ERROR: Dependency "budgie-1.0" not found, tried pkgconfig and cmake A full log can be found at /var/tmp/pamac-build-anujtambe/vala-panel-appmenu-xfce-git/src/build/meson-logs/meson-log.txt ==> ERROR: A failure occurred in build(). Aborting... And then i ran: pamac build vala-panel-appmenu-common-git This is what I got: Preparing... Checking vala-panel-appmenu-common-git dependencies... Resolving dependencies... Checking inter-conflicts... To build (1): vala-panel-appmenu-common-git 0.7.4-1 AUR Edit build files : [e] Apply transaction ? [e/y/N] y Building vala-panel-appmenu-xfce-git... ==> Making package: vala-panel-appmenu-xfce-git 0.7.6.r13.gb5e9b0a-1 (Thursday 20 January 2022 07:25:16 PM) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Updating vala-panel-appmenu git repo... Fetching origin ==> Validating source files with sha256sums... vala-panel-appmenu ... Skipped ==> Removing existing $srcdir/ directory... ==> Extracting sources... -> Creating working copy of vala-panel-appmenu git repo... Cloning into 'vala-panel-appmenu'... done. ==> Starting pkgver()... ==> Removing existing $pkgdir/ directory... ==> Starting build()... The Meson build system Version: 0.60.3 Source dir: /var/tmp/pamac-build-anujtambe/vala-panel-appmenu-xfce-git/src/vala-panel-appmenu Build dir: /var/tmp/pamac-build-anujtambe/vala-panel-appmenu-xfce-git/src/build Build type: native build Project name: vala-panel-appmenu Project version: 0.7.6 C compiler for the host machine: cc (gcc 11.1.0 "cc (GCC) 11.1.0") C linker for the host machine: cc ld.bfd 2.36.1 Vala compiler for the host machine: valac (valac 0.54.5) Host machine cpu family: x86_64 Host machine cpu: x86_64 Found pkg-config: /usr/bin/pkg-config (1.8.0) Run-time dependency gio-unix-2.0 found: YES 2.70.2 Run-time dependency gdk-pixbuf-2.0 found: YES 2.42.6 Run-time dependency gtk+-3.0 found: YES 3.24.31 Run-time dependency libbamf3 found: YES 0.5.5 Run-time dependency libwnck-3.0 found: YES 40.0 Run-time dependency vala-panel found: YES 0.4.92 Run-time dependency libmatepanelapplet-4.0 found: YES 1.26.1 Run-time dependency libxfce4panel-2.0 found: YES 4.16.3 Run-time dependency libxfconf-0 found: YES 4.16.0 Found CMake: /usr/bin/cmake (3.22.1) WARNING: CMake Toolchain: Failed to determine CMake compilers state Run-time dependency budgie-1.0 found: NO (tried pkgconfig and cmake) vala-panel-appmenu/meson.build:81:0: ERROR: Dependency "budgie-1.0" not found, tried pkgconfig and cmake A full log can be found at /var/tmp/pamac-build-anujtambe/vala-panel-appmenu-xfce-git/src/build/meson-logs/meson-log.txt ==> ERROR: A failure occurred in build(). Aborting... And When I wrote the names of both packages at the same time like in pacman that is: pamac build vala-panel-appmenu-common-git vala-panel-appmenu-xfce-git It just told me this: Preparing... Checking vala-panel-appmenu-common-git dependencies... Error: Failed to prepare transaction: target not found: vala-panel-appmenu-xfce-git Edit build files : [e] Apply transaction ? [e/y/N] ^C It didn't find vala-panel-appmenu-xfce-git. Please help |
How to merge txt file with the same name from all subdirectories Posted: 20 Jan 2022 05:43 AM PST I have folders with a lot of files, Each folder has txt files of the same name, I want to merge all txt files from all subdirectories into a single folder. Example: /home/parent/Folder1 ===> txtfile1.txt, txtfile2.txt, txtfile3.txt /home/parent/Folder2 ===> txtfile1.txt, txtfile2.txt, txtfile3.txt /home/parent/Folder3 ===> txtfile1.txt, txtfile2.txt, txtfile3.txt I want to merge all files with the same name into a different folder. /home/parent/Merged ===> txtfile1.txt, txtfile2.txt, txtfile3.txt |
How to bind multiple hid sub drivers to different interfaces of a single USB-HID device? Posted: 20 Jan 2022 05:51 AM PST Short background on the issue I'm facing. I'm working on implementing simultaneous UART/I2C operation using a usb bridge, the FT260. The chip relies on HID reports to provide these functionalities. Plugged in, the hid-generic driver detects two interfaces, 0 and 1, the first is for I2C and the second is for UART. Currently, I have the FT260 driver supporting I2C only loaded as a module (i.e., hid-ft260) and it works fine. Then the latter takes over hid-generic and I think the usbhid is responsible for that. lsusb -t returns: |__ Port 2: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M |__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M dmesg shows the following during boot-up: hid-generic 0003:0403:6030.0001: hidraw0: USB HID v1.11 Device [FTDI FT260] on usb-xhci-hcd.1.auto-1.2 hid-generic 0003:0403:6030.0002: hidraw1: USB HID v1.11 Device [FTDI FT260] on usb-xhci-hcd.1.auto-1.2 ft260 0003:0403:6030.0001: hidraw0: USB HID v1.11 Device [FTDI FT260] on usb-xhci-hcd.1.auto-1.2/input ft260 0003:0403:6030.0002: hidraw1: USB HID v1.11 Device [FTDI FT260] on usb-xhci-hcd.1.auto-1.2/input For UART, I had to use an application that works with the hid-generic. While the driver for I2C can be extended to support UART, maybe as virtual COM port, but it's not that trivial (at least I think) plus I have a working code that I'd like to use and carry on with the rest of the project. When I try to unbind the interface UART using the following command: echo -n 0003:0403:6030.0002 > /sys/bus/hid/drivers/ft260/unbind I can see the binding is gone. However, when I try to bind the exact interface (if 1) to hid-generic echo -n 0003:0403:6030.0002 > /sys/bus/hid/drivers/hid-generic/bind I get: -bash: echo: write error: No such device hid-generic gets loaded automatically (hot-plug) though when I unload the module hid-ft260 using: modprobe -r hid-ft260 It sounds like the usbhid locks to a single sub driver at a time based on PID and VID, but could be something else. If you have insights on bypassing this, that'll be very helpful. Thank you. |
extract file to generate and rename differenf files Posted: 20 Jan 2022 05:59 AM PST I have a csv (in which firt and second column are separeted by ",") file like this: Column1,Column2 4e,info1 4t,info2 45t,info3 3,info4 I would like to obtained 4 different file, one for each row and the file names are taken from the Column1 while the content from the Column2. my expected output are: filename1 = 4e.smi info1 filename2 = 4t.smi info2 filename3 = 45t.smi info3 filename4 = 3.smi info4 I think that I could generate two different variable, one related to the first column and the other to the second one and use this variable to create new file doing this in loop for all the rows. But I tried this cmd line but it didn't work: while IFS=',' read -r name smile; do write "$smile" "$name".smi; done < InputFIle.txt Could someone help me please with this challange? Thanks. |
How to track open() syscalls in FUSE filesystem? Posted: 20 Jan 2022 05:00 AM PST I want to track all open() syscalls of a process inside a FUSE filesystem. Two concerns: Is there any usecase, when open() syscall will not trigger a FUSE filesystem operation? For example syscall will be handled internally by kernel. Which FUSE operations may be triggered after open() syscall? I've found those in libfuse documentation: - open()
- mknod() + create()
- ... any other?
|
Sharing scanner from linux with windows Posted: 20 Jan 2022 04:47 AM PST I want to share scanner of Cannon G2000 printer connected with Linux to Windows 10 on same wifi connection. How can I do it? |
How to kill all network access to linux iso Posted: 20 Jan 2022 04:24 AM PST I am trying to set up a Linux environment on a laptop that is completely unable to have any network communication from a software angle. No WiFi, No Bluetooth, No Ethernet.(Inbound and outbound) To start I am using bodhi linux (for its small size) as I was having issues adding repositories using slax linux. After making a fresh install there are a number of applications I need to install on the iso before configuring it to be completely offline. The reason for this is from a security perspective to prevent any possible hacks. I know it might seem like a silly question, but I cant seem to find any answer anywhere as my searches keep throwing back links and questions to people asking for help enabling network access. whilst I want to completely kill it. |
iptables port forwarding not working under switch Posted: 20 Jan 2022 04:22 AM PST I making my linux router, and wanna set portforwarding to pc2 eth1, pc1,pc2 is connected to same switch wan - eth0(linux) eth1(linux) - switch - pc1,pc2 ( web server ) let eth0 ip 1.1.1.1/24 let eth1 ip 2.2.2.1/24 let pc1 ip 2.2.2.2/24 let pc2 ip 2.2.2.3/24 at linux iptables -P FORWARD -j ACCEPT iptables -P INPUT -j ACCEPT iptables -P OUTPUT -j ACCEPT iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE iptables -t nat -A PREROUTING -i eth0 -p TCP --dport 80 -j DNAT --to-destination 2.2.2.3:80 now, i can use internet on my pc1,pc2 i can use my webserver from lte (smartphone) => portforwarding seems ok BUT, on pc1(2.2.2.2), connecting to 1.1.1.1:80 fails (connecting to 2.2.2.3:80 is ok ) what's the matter? and what should i do? please help me |
why fail "mkfs" on WSL2? Posted: 20 Jan 2022 03:07 AM PST when I manage the filesystem on my WSL2, version ubuntu 20.04, I create the partition on the virtual disk /dev/sda, and use partprobe to update but it fails when I use mkfs.xfs /dev/sda1 and get the message mkfs.xfs: cannot open /dev/sda1: Device or resource busy I check with dmsetup ls and only get "no device", does anyone know the reason?tks! |
Simple way to send email to Dovecot mailbox from Unix scripts? Posted: 20 Jan 2022 05:34 AM PST I'm looking to send emails to myself from various scripts on my Linux (Debian 10) system. My thought was to install just Dovecot, and not an MTA like Postfix, to avoid the complexity of configuring the MTA. All I want to do is drop myself the odd email from a script, and then connect to my mail server with Thunderbird and pull those emails. I used to run my own email server, however, and the way I sent scripts on there was to use /usr/sbin/sendmail . This binary seems to have been supplied by Postfix, because it isn't there with just a Dovecot install. Assuming I have already set up Dovecot to successfully allow retrieval of email from local user mailboxes via eg. POP3, what's the simplest way (least configuration, basically) for me to send email to those local mailboxes from a unix script? I'd like to avoid installing a full-on MTA, or ideally, anything else at all. I'd like some sort of equivalent to: /usr/sbin/sendmail "to@address.com" <<EOF_emailContent (email here) EOF_emailContent |
How do I alter datestamps of files recursively but only if the existing file doesn't match a particular date? Posted: 20 Jan 2022 04:25 AM PST I have a folder (many files and subfolders, a few hundred gigabytes). I duplicated the folder with rsync, but forgot to preserve the timestamps. The new folder has now had many new files added to it and existing files modified. I need to copy across the timestamps of the old folder to the new folder, but only if the files haven't been modified after Jul 9 2021. I don't think rsync will do it. I think I'll have to use touch -t , but need an efficient way to process all the files. Is there a better way? Or, how can I process all the files and update the timestamps if the files haven't been modified since Jul 9. Thanks. |
Static noise on laptop screen after update Posted: 20 Jan 2022 04:25 AM PST I've just updated my laptop running KDE Neon with the help of pkcon refresh && pkcon update . After restarting my laptop screen shows a weird static noise on the screen which I cannot remove. You can see this in the following video I made: https://www.youtube.com/watch?v=k-oZB6sCptU Weirdly enough, my external screens are working just fine. neofetch shows the following: display manager: ssdm I really have no clue what might be causing this and how to solve it. Does anyone know what is going wrong here? Please let me know if I need to provide more info! |
find files that were modified between 2 and 5 days ago Posted: 20 Jan 2022 04:45 AM PST I know of this command find . -type f -newermt 2010-10-07 ! -newermt 2014-10-08 , which can find the files modified between two dates. But here, the problem is to find files that were modified between 2 and 5 days. So giving dates is not an option. Is there some option of the find command which can do this, or some alternative? |
How to check if printer is out of paper Posted: 20 Jan 2022 03:08 AM PST How can I check if cups printer is out of paper using commands only (no gui). |
What does the PID number mean in Linux? Posted: 20 Jan 2022 05:36 AM PST I'm wondering what is the meaning of the process identifier in Linux, is it the order of the process? Is it a code that identifies the nature of the process or simply a number randomly generated to uniquely identify a process? Are different processes with a similar PID related in some way? |
Cannot launch xorg on intel graphics i5-8250U computer Posted: 20 Jan 2022 04:50 AM PST I bought a used computer on Ebay last week and have been trying to install Arch Linux (my usual OS). For the most part it went smoothly, it boots fine without any issues and I can get a TTY for my user. The last step remaining was launching i3wm. However, startx isn't working. I looked at the Xorg.0.log file and there appears to be a segfault: [ 134.360] X.Org X Server 1.21.1.3 X Protocol Version 11, Revision 0 [ 134.367] Current Operating System: Linux thinkpad-t480 5.16.0-arch1-1 #1 SMP PREEMPT Mon, 10 Jan 2022 20:11:47 +0000 x86_64 [ 134.367] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=97a6e99b-b821-4676-9825-5f4b12fd9a64 rw loglevel=3 quiet cryptdevice=UUID=6f35e165-8b99-4b64-9b71-155ff64b0568:root root=/dev/mapper/root [ 134.372] [ 134.373] Current version of pixman: 0.40.0 [ 134.375] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 134.375] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 134.384] (==) Log file: "/home/keeyan/.local/share/xorg/Xorg.0.log", Time: Sat Jan 15 09:50:35 2022 [ 134.387] (==) Using config directory: "/etc/X11/xorg.conf.d" [ 134.389] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [ 134.390] (==) No Layout section. Using the first Screen section. [ 134.390] (==) No screen section available. Using defaults. [ 134.390] (**) |-->Screen "Default Screen Section" (0) [ 134.390] (**) | |-->Monitor "<default monitor>" [ 134.390] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 134.390] (==) Automatically adding devices [ 134.390] (==) Automatically enabling devices [ 134.390] (==) Automatically adding GPU devices [ 134.390] (==) Automatically binding GPU devices [ 134.390] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 134.392] (WW) The directory "/usr/share/fonts/misc" does not exist. [ 134.392] Entry deleted from font path. [ 134.392] (WW) The directory "/usr/share/fonts/TTF" does not exist. [ 134.392] Entry deleted from font path. [ 134.392] (WW) The directory "/usr/share/fonts/OTF" does not exist. [ 134.392] Entry deleted from font path. [ 134.392] (WW) The directory "/usr/share/fonts/Type1" does not exist. [ 134.392] Entry deleted from font path. [ 134.394] (==) FontPath set to: /usr/share/fonts/100dpi, /usr/share/fonts/75dpi [ 134.394] (==) ModulePath set to "/usr/lib/xorg/modules" [ 134.394] (II) The server relies on udev to provide the list of input devices. If no devices become available, reconfigure udev or disable AutoAddDevices. [ 134.394] (II) Module ABI versions: [ 134.394] X.Org ANSI C Emulation: 0.4 [ 134.394] X.Org Video Driver: 25.2 [ 134.394] X.Org XInput driver : 24.4 [ 134.394] X.Org Server Extension : 10.0 [ 134.394] (++) using VT number 1 [ 134.396] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31 [ 134.397] (II) xfree86: Adding drm device (/dev/dri/card0) [ 134.397] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0 [ 134.397] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0 [ 134.401] (--) PCI:*(0@0:2:0) 8086:5917:17aa:225d rev 7, Mem @ 0xe7000000/16777216, 0xc0000000/268435456, I/O @ 0x0000e000/64, BIOS @ 0x????????/131072 [ 134.401] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory) [ 134.401] (II) LoadModule: "glx" [ 134.401] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so [ 134.408] (II) Module glx: vendor="X.Org Foundation" [ 134.408] compiled for 1.21.1.3, module version = 1.0.0 [ 134.408] ABI class: X.Org Server Extension, version 10.0 [ 134.408] (==) Matched intel as autoconfigured driver 0 [ 134.408] (==) Matched modesetting as autoconfigured driver 1 [ 134.408] (==) Matched fbdev as autoconfigured driver 2 [ 134.408] (==) Matched vesa as autoconfigured driver 3 [ 134.408] (==) Assigned the driver to the xf86ConfigLayout [ 134.408] (II) LoadModule: "intel" [ 134.408] (WW) Warning, couldn't open module intel [ 134.408] (EE) Failed to load module "intel" (module does not exist, 0) [ 134.408] (II) LoadModule: "modesetting" [ 134.408] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so [ 134.414] (II) Module modesetting: vendor="X.Org Foundation" [ 134.414] compiled for 1.21.1.3, module version = 1.21.1 [ 134.414] Module class: X.Org Video Driver [ 134.414] ABI class: X.Org Video Driver, version 25.2 [ 134.414] (II) LoadModule: "fbdev" [ 134.414] (WW) Warning, couldn't open module fbdev [ 134.414] (EE) Failed to load module "fbdev" (module does not exist, 0) [ 134.414] (II) LoadModule: "vesa" [ 134.414] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so [ 134.415] (II) Module vesa: vendor="X.Org Foundation" [ 134.415] compiled for 1.21.1.1, module version = 2.5.0 [ 134.415] Module class: X.Org Video Driver [ 134.415] ABI class: X.Org Video Driver, version 25.2 [ 134.415] (II) modesetting: Driver for Modesetting Kernel Drivers: kms [ 134.415] (II) VESA: driver for VESA chipsets: vesa [ 134.415] xf86EnableIO: failed to enable I/O ports 0000-03ff (Operation not permitted) [ 134.415] (II) modeset(0): using drv /dev/dri/card0 [ 134.415] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support [ 134.415] (II) modeset(0): Creating default Display subsection in Screen section "Default Screen Section" for depth/fbbpp 24/32 [ 134.415] (==) modeset(0): Depth 24, (==) framebuffer bpp 32 [ 134.415] (==) modeset(0): RGB weight 888 [ 134.415] (==) modeset(0): Default visual is TrueColor [ 134.415] (II) Loading sub module "glamoregl" [ 134.415] (II) LoadModule: "glamoregl" [ 134.415] (II) Loading /usr/lib/xorg/modules/libglamoregl.so [ 134.422] (II) Module glamoregl: vendor="X.Org Foundation" [ 134.422] compiled for 1.21.1.3, module version = 1.0.1 [ 134.422] ABI class: X.Org ANSI C Emulation, version 0.4 [ 134.531] (EE) [ 134.531] (EE) Backtrace: [ 134.536] (EE) 0: /usr/lib/Xorg (xorg_backtrace+0x89) [0x55bf51a04049] [ 134.536] (EE) 1: /usr/lib/Xorg (0x55bf518b4000+0x15ae69) [0x55bf51a0ee69] [ 134.536] (EE) 2: /usr/lib/libpthread.so.0 (0x7fc5e6e05000+0x13870) [0x7fc5e6e18870] [ 134.537] (EE) 3: /usr/lib/libLLVM-13.so (0x7fc5dd6dd000+0x1acb683) [0x7fc5df1a8683] [ 134.538] (EE) 4: /usr/lib/libLLVM-13.so (0x7fc5dd6dd000+0x98d5f8) [0x7fc5de06a5f8] [ 134.538] (EE) 5: /lib64/ld-linux-x86-64.so.2 (0x7fc5e7282000+0xfe2e) [0x7fc5e7291e2e] [ 134.538] (EE) 6: /lib64/ld-linux-x86-64.so.2 (0x7fc5e7282000+0xff1c) [0x7fc5e7291f1c] [ 134.538] (EE) 7: /usr/lib/libc.so.6 (_dl_catch_exception+0xe5) [0x7fc5e6d6cd45] [ 134.538] (EE) 8: /lib64/ld-linux-x86-64.so.2 (0x7fc5e7282000+0x1420a) [0x7fc5e729620a] [ 134.538] (EE) 9: /usr/lib/libc.so.6 (_dl_catch_exception+0x88) [0x7fc5e6d6cce8] [ 134.538] (EE) 10: /lib64/ld-linux-x86-64.so.2 (0x7fc5e7282000+0x139bb) [0x7fc5e72959bb] [ 134.538] (EE) 11: /usr/lib/libdl.so.2 (0x7fc5e706d000+0x236c) [0x7fc5e706f36c] [ 134.538] (EE) 12: /usr/lib/libc.so.6 (_dl_catch_exception+0x88) [0x7fc5e6d6cce8] [ 134.538] (EE) 13: /usr/lib/libc.so.6 (_dl_catch_error+0x33) [0x7fc5e6d6cdb3] [ 134.538] (EE) 14: /usr/lib/libdl.so.2 (0x7fc5e706d000+0x2b99) [0x7fc5e706fb99] [ 134.538] (EE) 15: /usr/lib/libdl.so.2 (dlopen+0x48) [0x7fc5e706f3f8] [ 134.538] (EE) 16: /usr/lib/libgbm.so.1 (0x7fc5e6006000+0x66fc) [0x7fc5e600c6fc] [ 134.538] (EE) 17: /usr/lib/libgbm.so.1 (0x7fc5e6006000+0x85a0) [0x7fc5e600e5a0] [ 134.539] (EE) 18: /usr/lib/libgbm.so.1 (0x7fc5e6006000+0x871f) [0x7fc5e600e71f] [ 134.539] (EE) 19: /usr/lib/libgbm.so.1 (0x7fc5e6006000+0x8f1f) [0x7fc5e600ef1f] [ 134.539] (EE) 20: /usr/lib/libgbm.so.1 (0x7fc5e6006000+0x6885) [0x7fc5e600c885] [ 134.539] (EE) 21: /usr/lib/libgbm.so.1 (gbm_create_device+0x11a) [0x7fc5e600c9ca] [ 134.539] (EE) 22: /usr/lib/xorg/modules/libglamoregl.so (glamor_egl_init+0x67) [0x7fc5e5d6d697] [ 134.539] (EE) 23: /usr/lib/xorg/modules/drivers/modesetting_drv.so (0x7fc5e7264000+0x1096f) [0x7fc5e727496f] [ 134.539] (EE) 24: /usr/lib/Xorg (InitOutput+0x18b3) [0x55bf51a2b943] [ 134.539] (EE) 25: /usr/lib/Xorg (0x55bf518b4000+0x3c334) [0x55bf518f0334] [ 134.539] (EE) 26: /usr/lib/libc.so.6 (__libc_start_main+0xd5) [0x7fc5e6c5bb25] [ 134.539] (EE) 27: /usr/lib/Xorg (_start+0x2e) [0x55bf518f175e] [ 134.539] (EE) [ 134.539] (EE) Segmentation fault at address 0x7fc9e3ec23b0 [ 134.539] (EE) Fatal server error: [ 134.539] (EE) Caught signal 11 (Segmentation fault). Server aborting [ 134.539] (EE) [ 134.539] (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 134.539] (EE) Please also check the log file at "/home/keeyan/.local/share/xorg/Xorg.0.log" for additional information. [ 134.540] (EE) [ 134.565] (EE) Server terminated with error (1). Closing log file. I decided to try with xf86-video-intel which sometimes helps and sometimes hurts. Once installed it went a little bit better. i3 launched fine, but now any GUI apps that I try to launch coredump (e.g. nm-applet, alacritty, brave etc.): Jan 15 10:23:05 thinkpad-t480 systemd[1]: Started Process Core Dump (PID 3678/UID 0). Jan 15 10:23:05 thinkpad-t480 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@2-3678-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Jan 15 10:23:05 thinkpad-t480 kernel: audit: type=1130 audit(1642242185.889:130): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@2-3678-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Jan 15 10:23:06 thinkpad-t480 systemd-coredump[3679]: Process 3677 (alacritty) of user 1000 dumped core. Module linux-vdso.so.1 with build-id 3b23eb9fafd9a6683da8f2a15381914a95d54b1e Module libicudata.so.70 with build-id e1dcc2a88cfaafed882d09c90c668af0eed4efed Module liblzma.so.5 with build-id 8b615460aa230708c5183f16bede67aa0437d95e Module libicuuc.so.70 with build-id 2e245c2bf12f95fd8ab79b3a4be99524677cbd70 Module libxml2.so.2 with build-id b710b880b0d4e9c93554fa632129db44c20632cd Module libncursesw.so.6 with build-id 859adb8b03a5655151b4da104bc4b326a0d4bc8c Module libedit.so.0 with build-id 4b0babfcad161c2ad0af6e59e2493258db23a331 Module libffi.so.8 with build-id f90d8b734f6de9b25faedb8cbfab7054dafc0a42 Module libvulkan.so.1 with build-id 0c8486d8689e18bd837da80fe4d17664a248bc10 Module libdrm_nouveau.so.2 with build-id ee16fa6a4d0bd08f5448cfc046ccb76b49aaa8a3 Module libdrm_amdgpu.so.1 with build-id 30d019987d514b23115b47d6b47c1e45c18fdbaf Module libelf.so.1 with build-id a4fb077dcec6ee26a5fab1fa10c59bd03b1078e4 Module libdrm_radeon.so.1 with build-id 5d1615e0467d0a34a5a82cbd4ebc84851e116307 Module libsensors.so.5 with build-id dc8b2c1c0d8525411aca188ea3cc3fb86d381d30 Module libzstd.so.1 with build-id 6214183688018e3fba6d66db10c2c8d0b45e0578 Module libLLVM-13.so with build-id 82982c299d46219d0eab8ee9cb8bb7365483453b Module iris_dri.so with build-id ebdb09c64ad01a77f899d04accb3d2e414fe5cf1 Module libstdc++.so.6 with build-id 9b5eeeb149bf3c4efe787fb398b44f00507aec87 Module libxcb-xfixes.so.0 with build-id a6b197ace5b9b59f913f5969eb419a88d1194f47 Module libxshmfence.so.1 with build-id 8876d9ccf620858795724ca24b9e567585a77cec Module libxcb-sync.so.1 with build-id dda14591103b01b1311906053bf1ca9e82ade35c Module libxcb-present.so.0 with build-id 68f5465258750e2397b1333b3ffc01ee33caa4e1 Module libxcb-dri3.so.0 with build-id 9407a2480e09dc5a1dd9d9a0652fa8d32b328c91 Module libxcb-shm.so.0 with build-id fb797f299a446f559a95afcc168227482cc800d1 Module libXxf86vm.so.1 with build-id 01e8243d0c6c971fa9e743e6e53d606b1cb76f6e Module libxcb-dri2.so.0 with build-id 2dd6e65129a809dab828a1d26215a3f7a363fcc8 Module libxcb-glx.so.0 with build-id 8ad115382ad874165523dc5b4488c99d73bbc3c4 Module libdrm.so.2 with build-id 457a1a1bd25f1d5541a10d3f16c5dc1440d77c7d Module libglapi.so.0 with build-id 9331aed5060062bcfafd463d36506312fab59549 Module libGLX_mesa.so.0 with build-id 76cdb170e96b9ad2d09c67051436088c007f4b7b Module libGLX.so.0 with build-id 2a08836c6e6126ce9ff4496b6aacaf29ae9b4e7b Module libGLdispatch.so.0 with build-id 501765b3a78d668860fa54229b18107473aeda4c Module libGL.so.1 with build-id 912ac4f37a9fa2d5abcf7a9088c9983cfe46f12a Module libX11-xcb.so.1 with build-id 0db4f94d8ae31b8dc9a83f825a9171656f1e532c Module libXi.so.6 with build-id 16603be937a02a7e61b0b0395d064be7efd86f49 Module libXext.so.6 with build-id d70f24beb4fad748d6becffdcc13e51be0a2ebfa Module libXrandr.so.2.2.0 with build-id d4e869b5c72541e1de8f96b456248987ea52d51b Module libXfixes.so.3 with build-id 0a05c7e8714522bfbdd7c0027c3e2a94965664b0 Module libXrender.so.1 with build-id 97e0b9ab6ba96ebc86527cc2b3c3078aad8616b3 Module libXcursor.so.1 with build-id eb6315bcd7526aaf51b0a1307efdc587cea0a152 Module libX11.so.6 with build-id 5ba5798d193c0065014b8c6252a0678671c8d478 Module libpcre.so.1 with build-id 845483dd0acba86de9f0313102bebbaf3ce52767 Module libbrotlicommon.so.1 with build-id a4ba3f4b4571c8272343b621da812a6e24a202a7 Module libglib-2.0.so.0 with build-id 220436a4e27f39372710df014d2517c0387eefa4 Module libgraphite2.so.3 with build-id 47761dc11e553f519cde97ed9ee985be12ccdae2 Module ld-linux-x86-64.so.2 with build-id 040cc3dd10461562f177df39e3be2f3704258c3c Module libXdmcp.so.6 with build-id 8ca0792d23c8b8b4c0864297512349292bea5955 Module libXau.so.6 with build-id 1c67764663e07bec24d8951e5fd93f4d165979ff Module libexpat.so.1 with build-id 16023a53e7b5bbdff92bd0bf2eebd36f9b5b879f Module libbrotlidec.so.1 with build-id 45defc036e918e0140a72f1fbce6e7692d38241d Module libharfbuzz.so.0 with build-id 1d9dee49dd99162c3f83eb3259c3c88c6b4cd7fe Module libpng16.so.16 with build-id 2dc0bce07f199bf983c07a05fb95a6f4af83a9b3 Module libbz2.so.1.0 with build-id 919597c477c9b2cb9cdbb7745ed6494ac0e6da60 Module libz.so.1 with build-id 0c1459c56513efd5d53eb3868290e9afee6a6a26 Module libc.so.6 with build-id 4b406737057708c0e4c642345a703c47a61c73dc Module libm.so.6 with build-id 2b8fd1f869ecab4e0b55e92f2f151897f6818acf Module libpthread.so.0 with build-id 07c8f95b4f3251d08550217ad8a1f31066229996 Module librt.so.1 with build-id 75484da2d6f1515189eefa076e0a40328834cd16 Module libutil.so.1 with build-id af6d8200064ee6e6a01252884d166b44f0a6121b Module libgcc_s.so.1 with build-id 7f8508bb914546ada778809b64b99d234337d835 Module libdl.so.2 with build-id 5abc547e7b0949f89f3c0e21ab0c8331a7440a8a Module libxcb.so.1 with build-id 0d1ef11740a5daad2ee331e812a51aa6574af222 Module libfontconfig.so.1 with build-id 1103a641395c7d3b42e49b793d3a9ea927c77bf6 Module libfreetype.so.6 with build-id 26c5f833068ff72660d1975cbc2074c3eb47fad8 Module alacritty with build-id 1e625a961519ee171ca24b2cbf8a2f2901d9132e Stack trace of thread 3677: #0 0x00007fd3e11c0683 n/a (libLLVM-13.so + 0x1acb683) #1 0x00007fd3e00825f8 _ZN4llvm3orc13MachOPlatform14notifyRemovingERNS0_15ResourceTrackerE (libLLVM-13.so + 0x98d5f8) #2 0x00007fd3e9052e2e call_init (ld-linux-x86-64.so.2 + 0xfe2e) #3 0x00007fd3e9052f1c _dl_init (ld-linux-x86-64.so.2 + 0xff1c) #4 0x00007fd3e8cb0d45 _dl_catch_exception (libc.so.6 + 0x138d45) #5 0x00007fd3e905720a dl_open_worker (ld-linux-x86-64.so.2 + 0x1420a) #6 0x00007fd3e8cb0ce8 _dl_catch_exception (libc.so.6 + 0x138ce8) #7 0x00007fd3e90569bb _dl_open (ld-linux-x86-64.so.2 + 0x139bb) #8 0x00007fd3e8ed836c n/a (libdl.so.2 + 0x236c) #9 0x00007fd3e8cb0ce8 _dl_catch_exception (libc.so.6 + 0x138ce8) #10 0x00007fd3e8cb0db3 _dl_catch_error (libc.so.6 + 0x138db3) #11 0x00007fd3e8ed8b99 n/a (libdl.so.2 + 0x2b99) #12 0x00007fd3e8ed83f8 dlopen (libdl.so.2 + 0x23f8) #13 0x00007fd3e7ed8208 n/a (libGLX_mesa.so.0 + 0x51208) #14 0x00007fd3e7edabc9 n/a (libGLX_mesa.so.0 + 0x53bc9) #15 0x00007fd3e7edbb5e n/a (libGLX_mesa.so.0 + 0x54b5e) #16 0x00007fd3e7ebe141 n/a (libGLX_mesa.so.0 + 0x37141) #17 0x00007fd3e7ebe954 n/a (libGLX_mesa.so.0 + 0x37954) #18 0x00007fd3e7ebed13 n/a (libGLX_mesa.so.0 + 0x37d13) #19 0x000055dcf1a4d59f n/a (alacritty + 0xa859f) #20 0x000055dcf1b11b71 n/a (alacritty + 0x16cb71) #21 0x000055dcf1a5c9a6 n/a (alacritty + 0xb79a6) #22 0x000055dcf1a589b9 n/a (alacritty + 0xb39b9) #23 0x000055dcf1a3264b n/a (alacritty + 0x8d64b) #24 0x000055dcf1b58f83 n/a (alacritty + 0x1b3f83) #25 0x000055dcf1a40689 n/a (alacritty + 0x9b689) #26 0x00007fd3e8b9fb25 __libc_start_main (libc.so.6 + 0x27b25) #27 0x000055dcf1a1011e n/a (alacritty + 0x6b11e) ELF object binary architecture: AMD x86-64 Jan 15 10:23:06 thinkpad-t480 systemd[1]: systemd-coredump@2-3678-0.service: Deactivated successfully. Jan 15 10:23:06 thinkpad-t480 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@2-3678-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Jan 15 10:23:06 thinkpad-t480 kernel: audit: type=1131 audit(1642242186.009:131): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@2-3678-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Jan 15 10:23:06 thinkpad-t480 audit: BPF prog-id=0 op=UNLOAD Jan 15 10:23:06 thinkpad-t480 audit: BPF prog-id=0 op=UNLOAD Jan 15 10:23:06 thinkpad-t480 audit: BPF prog-id=0 op=UNLOAD Jan 15 10:23:06 thinkpad-t480 kernel: audit: type=1334 audit(1642242186.139:132): prog-id=0 op=UNLOAD Jan 15 10:23:06 thinkpad-t480 kernel: audit: type=1334 audit(1642242186.139:133): prog-id=0 op=UNLOAD Jan 15 10:23:06 thinkpad-t480 kernel: audit: type=1334 audit(1642242186.139:134): prog-id=0 op=UNLOAD I also tried the following xorg.conf (as well as a few different alterations, like disabling Accel) with and without xf86-video-intel, but it doesn't seem to help (found at https://bbs.archlinux.org/viewtopic.php?id=208252): Section "Device" Identifier "Intel Graphics" Driver "intel" Option "AccelMethod" "uxa" EndSection I tried booting a Linux Mint live USB and everything works fine. I can launch the desktop environment, watch videos etc. without any issues. It also came pre-installed with Windows and Windows worked fine as well. Since I bought the PC second hand I ran all the bios diagnostics (for unrelated reasons) just to check that it's all okay and all tests passed as well. I also tried switching to linux-lts and that made no difference either :( I've spent quite some time looking into this issue and haven't been able to figure it out. Any help is really appreciated :) UPDATE: After reinstalling Arch from scratch, X seems to be working fine. I haven't ran any of my setup scripts yet (they install packages I use, configure things etc.), so there is likely something wrong there that broke it. I'm going to start manually running parts of that script until I figure out what part broke X, and once I do I'll post an answer here explaining what caused it. |
Xfce didn't start after login loop Posted: 20 Jan 2022 03:09 AM PST After the login loop my laptop stuck at the debian theme and xfce desktop didn't load in please help im using well till today |
Deactivate Linux Sleep/freeze/hibernate state without systemctl Posted: 20 Jan 2022 03:06 AM PST I have a system with a very specific Linux compilation that runs on ARM CPUs. It lacks almost all services (systemctl included) and generally-included software (apt-get, snap, etc.) and it is not connected to the web, so I cannot download anything (I can although send files through scp). The system can be accessed through ssh which is managed by dropbear (or alternatively I can access the system through UART). I work on the system by doing ssh. The problem is that every morning I cannot access it in any way, even though every led is blinking green. It is like the system went into freeze/hibernation/sleep/dunno and all I/Os are deactivated. If I restart the system, everything starts working again. Is there a way I can wake up the system or not make it go to sleep? I need something I can do through vim, like edit some configuration files, etc. (I have root access). Thanks to everyone, Please Help Eventine |
How to undo/fix autoremove's change to initramfs-tools? (Causes error in Whonix) Posted: 20 Jan 2022 04:18 AM PST I executed sudo apt autoremove to free space in boot. I realized in hindsight that there are better ways to free space. I don't notice any problems on my host os, but when I start Whonix KVM it shows me an error message about being unable to find the command for initramfs-tools. I have to press any key to continue booting Whonix. I don't notice any problem while using Whonix, but I'm not experienced enough to understand what kind of issues the error message could cause. What I've tried: Restarting the computer. sudo apt install initramfs-tools It says it's already installed and up to date. sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils libguestfs-tools genisoimage virtinst libosinfo-bin virt-manager It says they're already installed and up to date. I'm using the latest Whonix KVM version 16.0.3.1 The exact message I get while booting Whonix (same message in both Gateway and Workstation): Booting 'Whonix GNU/Linux' error: can't find command initramfs-tools loading linux 5.10.0-9-amd64... Loading initial ramdisk... Press any key to continue |
Empty login screen with two monitors (lightdm) Posted: 20 Jan 2022 05:07 AM PST I'm using Kali Linux 2020.4 with xfce4=4.16 and lightdm=1.26.0-7 . I have two monitors setup: HDMI 1920x1080 (shows up as 2nd, HDMI1 in xrandr ) and VGA 1366x768 (shows up as 1st, DP1 in xrandr ), using HDMI monitor as primary. First issue: when lightdm login screen shows up after system boot, lightdm takes 1920x1080_60.00 resolution, second monitor works in mirror mode with the same resolution but image gets cropped at 1366x768 . Not critical issue but a bit annoying. Probably it's configurable, but I found nothing useful about this on google , stackoverflow , askubuntu and etc. Second issue: when I click lock button (which calls xflock4 as far as I know), both screens turn off. To unlock the computer, I move mouse and screens turn on, lightdm shows, but nothing like lightdm panel on top of the screen, no login form, nothing. Restarting/reloading lightdm doesn't fix it, only reboot helps (but then I lose all running apps, they just get forcibly killed). Very annoying issue. If you want to help, don't focus on the first issue, it doesn't prevent me from working or something like that. Thank you for answer(s). |
Cannot telnet host from ec2 instance behind a proxy Posted: 20 Jan 2022 05:24 AM PST Let me try to rephrase the whole question as it was not very clear the first time. I need to understand and workout port forwarding. I have an ec2 instance running behind a proxy server. I need to telnet from my ec2 instance to a server outside, 'in internet' through port (let's say) 1919 . In security groups I have allowed tcp traffic on port 1919 from my ec2 instance to the proxy and back and from proxy to the remote server. To be able to telnet from my ec2 instance to remote server, i think i will have to port forward 1919 in proxy to be able to get to the remote server. I tried it with iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 9093 -j DNAT --to *ipaddofEC2*:1919 iptables -A FORWARD -p tcp -d --dport 1919 -j ACCEPT In my squid I have : acl servicebus_port_9093 port 1919 and http_access allow allowed_source_hosts allowed_messaging_sites servicebus_port_9093 and acl allowed_messaging_sites dstdomain .servicebus.windows.net (remote host's url finishes with windows.net) Still I have not been able to telnet from my ec2 to remote server. Ps. ip forwarding is on in proxy and I tried to tcpdump in proxy while trying to telnet from my ec2 instance to remote server but I get nothing. (I dont know much about tcpdump) I get timeout error. |
createrepo and yum update with new rpm files, metadata? Posted: 20 Jan 2022 04:03 AM PST So I [almost] know how to update an offline rhel/centos 7 system, I am using a second identical system which is registered with RHN and other repositories. In /etc/yum.conf I have keep_cache = 1 and I have 1000+ rpms under /var/cache/yum/x86_64/7Server/<repo>/packages/ update: forgot to mention i also am doing /etc/yum.repos.d/local.repo having file:///root/localrepo On the first time, if I put simply put ALL rpm's under one folder /root/localrepo/ for example then do createrepo /root/localrepo then a yum update works fine. In the future, on my RHN connected system I get new rpm's, I move and add them to my offline system under that /root/localrepo but a yum update does not automatically see them. What is the correct usage of createrepo then to make yum update work as expected on this offline system? |
curl request to IPv6 localhost gets stuck Posted: 20 Jan 2022 04:51 AM PST A docker container of mine exposes a HTTP interface on port 8500, which is mapped to host port 8500. It is not IPv6 enabled. This still means, I should be able to access it at localhost:8500. IPv6 is preferred, so I end up with a request to [::1]:8500. This one gets stuck, it never returns. Reproducing this with curl, this command gets stuck: curl -g -6 "http://[::1]:8500" curl's --verbose option reveals nothing, neither does --ascii-trace. At the same time, a request to IPv4's localhost succeeds: curl http://127.0.0.1:8500 giving me the expected HTML. If I run an IPv4 HTTP server on loopback, using python -m SimpleHTTPServer 4001 then I get lots of HTML for IPv4's localhost curl http://127.1:4001 and a proper connection failure for IPv6: curl -g -6 "http://[::1]:4001" curl: (7) Failed to connect to ::1 port 4001: Connection refused Things to note: Docker 1.7.1. IPv6 is not enabled for the container, hence there are no IPv6 iptable rules. (ip6tables -v -L gives nothing) My question is: Why does the request get stuck, and doing what? |
Delete trailing commas in line Posted: 20 Jan 2022 03:32 AM PST How do I delete a set of trailing commas in bash: a,b,c,d,,,, 1,2,3,,,, Desired Output: a,b,c,d 1,2,3 Tried doing this: grep "5628" test.csv | sed 's/,*$//g' but it doesn't work. The file originally came from a Windows machine. |
grep: input file 'X' is also the output Posted: 20 Jan 2022 04:07 AM PST I use ubuntu 14.4 , and been attempting to redirect the output of grep command to a file, but I keep getting this error: grep: input file 'X' is also the output I run the following command: grep -E -r -o -n r"%}(.*){%" > myfile As the error states, it seems that somehow it's interpreting the input and output as same name/obj. I searched but couldn't find what exactly is the problem?! |
What does "Cannot make/remove an entry for the specified session" mean? Posted: 20 Jan 2022 03:37 AM PST Instead of logging me in, PAM greets me with the message "Cannot make/remove an entry for the specified session" after I enter the password. What entry is it talking about (and what session)? The string with the error message is found in libpam.so.0 (.83.1). My system is based on binaries from Fedora release 20 (Heisenburg). How can I troubleshoot PAM to figure out what is needed to successfully login? I have no syslog (and no persistent disk, only an initramfs). Updates: SELinux is Disabled. I am more than willing to replace the entire PAM config with something simple that allows login (normal user and root) on the virtual consoles only. Source code from Linux-PAM-1.1.8, libpam/pam_strerror.c reveals that the message comes from the error code PAM_SESSION_ERR , which can be caused by all sorts of internal problems, such as memory allocation error or failure to locate the users home directory. So much for trying to interpret the error message. :-( Below are my config files based on the comment indicating /etc/pam.d/login as a starting point: (I have also tried removing all lines containing pam_loginuid.so without any noticeable difference) /etc/pam.d/login: auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so auth substack system-auth auth include postlogin account required pam_nologin.so account include system-auth password include system-auth session required pam_selinux.so close session required pam_loginuid.so session optional pam_console.so session required pam_selinux.so open session required pam_namespace.so session optional pam_keyinit.so force revoke session include system-auth session include postlogin -session optional pam_ck_connector.so /etc/pam.d/postlogin: session [success=1 default=ignore] pam_succeed_if.so service !~ gdm* service !~ su* quiet session [default=1] pam_lastlog.so nowtmp showfailed session optional pam_lastlog.so silent noupdate showfailed /etc/pam.d/system-auth: auth required pam_env.so auth sufficient pam_fprintd.so auth sufficient pam_unix.so nullok try_first_pass auth requisite pam_succeed_if.so uid >= 1000 quiet_success auth required pam_deny.so account required pam_unix.so account sufficient pam_localuser.so account sufficient pam_succeed_if.so uid < 1000 quiet account required pam_permit.so password requisite pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type= password sufficient pam_unix.so sha512 shadow nullok try_first_pass use_authtok password required pam_deny.so session optional pam_keyinit.so revoke session required pam_limits.so -session optional pam_systemd.so session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid session required pam_unix.so I have these shared PAM-related libraries: libpam_misc.so.0 libpam.so.0 pam_access.so pam_console.so pam_deny.so pam_env.so pam_fprintd.so pam_gnome_keyring.so pam_keyinit.so pam_lastlog.so pam_limits.so pam_localuser.so pam_loginuid.so pam_namespace.so pam_nologin.so pam_permit.so pam_pkcs11.so pam_pwquality.so pam_rootok.so pam_securetty.so pam_selinux_permit.so pam_selinux.so pam_sepermit.so pam_succeed_if.so pam_systemd.so pam_timestamp.so pam_unix_acct.so pam_unix_auth.so pam_unix.so pam_xauth.so as well as these that are referenced by the above shared libraries (according to ldd ): libattr.so.1 libaudit.so.1 libcap.so.2 libcrack.so.2 libcrypt.so.1 libc.so.6 libdbus-1.so.3 libdbus-glib-1.so.2 libdl.so.2 libffi.so.6 libfreebl3.so libgcc_s.so.1 libgio-2.0.so.0 libglib-2.0.so.0 libgmodule-2.0.so.0 libgobject-2.0.so.0 liblzma.so.5 libnsl.so.1 libnspr4.so libnss3.so libnssutil3.so libpcre.so.1 libpcre.so.3 libplc4.so libplds4.so libpthread.so.0 libpwquality.so.1 libresolv.so.2 librt.so.1 libselinux.so.1 libsmime3.so libssl3.so libutil.so.1 libz.so.1 |
how to set crontab PATH variable Posted: 20 Jan 2022 03:28 AM PST I had a problem running a script from crontab. After some research I understood the problem was because PATH parameter doesn't include /sbin. I looked what it does include in /etc/crontab: PATH=/sbin:/bin:/usr/sbin:/usr/bin As a test - simple cron job to print the PATH variable: * * * * * echo $PATH &> /root/TMP.log the output is: cat /root/TMP.log /usr/bin:/bin I don't understand this behaviour... How do I set the PATH variable..? Or better - how to add paths to it? |
Kernel module blacklist not working Posted: 20 Jan 2022 04:28 AM PST I'm trying to figure out how to blacklist modules, and I'm trying it on the USB storage. Unfortunately it seems to have no effect, and I get the module in even if it's not used (apparently). My experiment is taking place on an Ubuntu 12.04.3 LTS. raptor@raptor-VirtualBox:/etc/modprobe.d$ lsmod | grep usb usb_storage 39720 0 usbhid 46054 0 hid 82511 2 hid_generic,usbhid raptor@raptor-VirtualBox:/etc/modprobe.d$ cat blacklist.conf | grep usb blacklist usb_storage blacklist usbmouse blacklist usbkbd |
WiFi not working - wlan0 FAILED Posted: 20 Jan 2022 05:01 AM PST My Arch (3.6.5-1 ) is exhibiting a rather peculiar problem: when wifi is set up, all logs indicate that the setup was successful and that the interface is up and functional. However, when attempting to access a website (or execute ping) all requests time out (despite that connection is reported as working and signal at 63% strength). This tends to happen randomly after laptop is switched on - after some time the connection usually starts working and does not break until next shutdown/suspend. Relevant dmesg entries (full dmesg output can be found here): [ 13.858528] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 14.024275] r8169 0000:02:00.0: eth0: link down [ 14.024339] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 34.895920] wlan0: authenticate with 00:24:6c:c8:e4:a1 [ 34.900827] wlan0: send auth to 00:24:6c:c8:e4:a1 (try 1/3) [ 34.902963] wlan0: authenticated [ 34.908362] wlan0: associate with 00:24:6c:c8:e4:a1 (try 1/3) [ 34.911153] wlan0: RX AssocResp from 00:24:6c:c8:e4:a1 (capab=0x1431 status=0 aid=9) [ 34.911217] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 34.911294] wlan0: associated ip -s link shows: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT qlen 1000 link/ether 50:b7:c3:1e:f4:21 brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 14970982 50472 0 0 0 0 TX: bytes packets errors dropped carrier collsns 19116 233 0 0 0 0 ip minotor outputs some failure messages: [NEIGH]144.32.78.1 dev wlan0 FAILED [NEIGH]144.32.78.1 dev wlan0 FAILED [LINK]3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> link/ether [LINK]3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN link/ether 50:b7:c3:1e:f4:21 brd ff:ff:ff:ff:ff:ff [LINK]3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state DORMANT link/ether 50:b7:c3:1e:f4:21 brd ff:ff:ff:ff:ff:ff [LINK]3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> link/ether [LINK]3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> link/ether [NEIGH]144.32.78.1 dev wlan0 FAILED [NEIGH]144.32.78.1 dev wlan0 FAILED [LINK]3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP link/ether 50:b7:c3:1e:f4:21 brd ff:ff:ff:ff:ff:ff [NEIGH]144.32.78.1 dev wlan0 FAILED [NEIGH]144.32.78.1 dev wlan0 FAILED [NEIGH]144.32.78.1 dev wlan0 FAILED [NEIGH]ff02::2 dev wlan0 lladdr 33:33:00:00:00:02 NOARP [NEIGH]ff02::1:ff1e:f421 dev wlan0 lladdr 33:33:ff:1e:f4:21 NOARP [NEIGH]ff02::16 dev wlan0 lladdr 33:33:00:00:00:16 NOARP [NEIGH]144.32.78.1 dev wlan0 FAILED [NEIGH]144.32.78.1 dev wlan0 FAILED [NEIGH]144.32.78.1 dev wlan0 FAILED [NEIGH]144.32.79.218 dev lo lladdr 00:00:00:00:00:00 NOARP [NEIGH]144.32.78.1 dev wlan0 FAILED [NEIGH]144.32.78.1 dev wlan0 FAILED [NEIGH]144.32.78.1 dev wlan0 FAILED [NEIGH]144.32.78.1 dev wlan0 FAILED [LINK]3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> link/ether [NEIGH]144.32.78.1 dev wlan0 FAILED [NEIGH]144.32.78.1 dev wlan0 FAILED [NEIGH]144.32.78.1 dev wlan0 FAILED [NEIGH]144.32.78.1 dev wlan0 FAILED [NEIGH]144.32.78.1 dev wlan0 FAILED All that should be loaded seem to be (output of lsmod). Any idea on how to solve this or what the problem is? |
No comments:
Post a Comment