Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
3 answers
5009 views
Extract part of filename?
I have a file in the form of: XXX XXXX XXX-6VwvOkZvzuI.description How can I get just the file name `XXX XXXX XXX`? I've tried: for file in $(ls .d*) do fname="${file%*-}" ext="${filename%.*}" done
I have a file in the form of: XXX XXXX XXX-6VwvOkZvzuI.description How can I get just the file name XXX XXXX XXX? I've tried: for file in $(ls .d*) do fname="${file%*-}" ext="${filename%.*}" done
Dark_Stoner (147 rep)
Jun 20, 2021, 08:58 AM • Last activity: Sep 20, 2025, 04:18 AM
7 votes
1 answers
549 views
Why does make's `dir` function add additional directories?
When I apply [`dir`](https://www.gnu.org/software/make/manual/make.html#index-dir) to a list of files, it adds additional directories. For example, with the following file/directory structure: ``` . ├── a │ └── foo.c ├── b │ └── foo.c ├── c │ └── foo.c ├── d ├── Makefile └── readme.md ``` and this `...
When I apply [dir](https://www.gnu.org/software/make/manual/make.html#index-dir) to a list of files, it adds additional directories. For example, with the following file/directory structure:
.
├── a
│   └── foo.c
├── b
│   └── foo.c
├── c
│   └── foo.c
├── d
├── Makefile
└── readme.md
and this Makefile:
FILES=*/foo.c
DIRS=$(dir */foo.c)

all:
    @echo $(FILES)
    @echo $(dir $(FILES))
    @echo $(DIRS)
running make results in the following output:
a/foo.c b/foo.c c/foo.c
a/ b/ c/ d/
a/ b/ c/ d/
Why is the directory d added to the list? The [definition](https://www.gnu.org/software/make/manual/make.html#index-dir) of $(dir names) says > Extracts the directory-part of each file name in names. Thus, I expect $(dir $(FILES)) or $(dir */foo.c) to be only a/ b/ c/, that is, the directories where the foo.c files reside in. I am using GNU Make 4.4.1.
Robert (215 rep)
Sep 18, 2025, 05:33 AM • Last activity: Sep 20, 2025, 04:16 AM
0 votes
0 answers
18 views
What's the best way to ask for source code from Epson?
Epson has a printer driver that is open source called [ESCPR](https://support.epson.net/linux/Printer/LSB_distribution_pages/en/escpr.php). This driver only supports printers up to a certain year. Newer printers are not supported by this driver. They've since ditched that one and created another dri...
Epson has a printer driver that is open source called [ESCPR](https://support.epson.net/linux/Printer/LSB_distribution_pages/en/escpr.php) . This driver only supports printers up to a certain year. Newer printers are not supported by this driver. They've since ditched that one and created another driver called [ESCPR2](https://support.epson.net/linux/Printer/LSB_distribution_pages/en/escpr2.php) but this only contains partial source code, some files are pre-compiled static libraries (.a). [Here is the direct driver download link to the ESCPR2 "source".](https://download3.ebz.epson.net/dsc/f/03/00/17/28/09/4e8dc40219d4b52e414b608de92552af4fd46eca/epson-inkjet-printer-escpr2-1.2.35-1.tar.gz) There's an AUTHORS file with the email: > Seiko Epson Corporation What's the best way to ask for the source code of their newer ESCPR2 driver?
Daniel (701 rep)
Sep 19, 2025, 09:09 PM • Last activity: Sep 20, 2025, 04:14 AM
0 votes
0 answers
6 views
Installing Ubuntu 10.04
I'm trying to install Linux 10.04 so I can use an old piece of hardware (an audio interface) but I'm getting an error. I added the log file to the following paste bin: https://pastebin.com/33dp5AuG Does it have something to do with the squashfs file not being found?
I'm trying to install Linux 10.04 so I can use an old piece of hardware (an audio interface) but I'm getting an error. I added the log file to the following paste bin: https://pastebin.com/33dp5AuG Does it have something to do with the squashfs file not being found?
tdrsam (101 rep)
Sep 20, 2025, 03:20 AM • Last activity: Sep 20, 2025, 04:08 AM
1 votes
2 answers
3907 views
VBox Guest Additions installation can't find headers for Kali kernal 4.14.0-kali1-amd64
I have installed Kali in VirtualBox and now trying to install Guest Additions to get full screen view. I updated and installed my packages and installed dkms. When I try to install linux-headers I get the following: # apt-get install linux-headers-$(uname -r) Reading package lists... Done Building d...
I have installed Kali in VirtualBox and now trying to install Guest Additions to get full screen view. I updated and installed my packages and installed dkms. When I try to install linux-headers I get the following: # apt-get install linux-headers-$(uname -r) Reading package lists... Done Building dependency tree Reading state information... Done linux-headers-4.14.0-kali1-amd64 is already the newest version (4.14.2-1kali1). 0 upgraded, 0 newly installed, 0 to remove and 86 not upgraded. The headers installed are as follows: # dpkg --get-selections | grep linux-headers linux-headers-4.14.0-kali1-amd64 install linux-headers-4.14.0-kali1-common install linux-headers-amd64 install When I try to run the Guest Additions CD I get the following: Verifying archive integrity... All good. Uncompressing VirtualBox 5.0.40 Guest Additions for Linux............ VirtualBox Guest Additions installer Removing installed version 5.0.40 of VirtualBox Guest Additions... Removing existing VirtualBox DKMS kernel modules ...done. Removing existing VirtualBox non-DKMS kernel modules ...done. update-initramfs: Generating /boot/initrd.img-4.13.0-kali1-amd64 update-initramfs: Generating /boot/initrd.img-4.14.0-kali1-amd64 Copying additional installer modules ... Installing additional modules ... Removing existing VirtualBox DKMS kernel modules ...done. Removing existing VirtualBox non-DKMS kernel modules ...done. Building the VirtualBox Guest Additions kernel modules The headers for the current running kernel were not found. If the following module compilation fails then this could be the reason. Building the main Guest Additions module ...fail! (Look at /var/log/vboxadd-install.log to find out what went wrong) Doing non-kernel setup of the Guest Additions ...done. Press Return to close this window... It appears to me that the correct linux headers for the kernal are installed. Why is VBox not able to find them? Tried updating to VBox 5.2.2 but after removing existing version and installing 5.2.2 I was unable to launch Kali-Linux - screenshot attached Image.
Chris Fgl (19 rep)
Dec 18, 2017, 09:25 AM • Last activity: Sep 20, 2025, 04:01 AM
0 votes
1 answers
2172 views
CIFS mount incorrect disk space
I defined a new samba mount in an ubuntu VM via `/etc/fstab` ``` //x.x.x.x/share /share cifs credentials=/.smbcreds,uid=1000,gid=1000,vers=3.0 0 0 ``` With this I get the following output from `df -h` ``` filesystem Size Used Avail Use% Mounted On //x.x.x.x/share 5.0G 79M 5.0G 2% /share ... ``` This...
I defined a new samba mount in an ubuntu VM via /etc/fstab
//x.x.x.x/share  /share  cifs  credentials=/.smbcreds,uid=1000,gid=1000,vers=3.0  0  0
With this I get the following output from df -h
filesystem       Size   Used  Avail  Use%  Mounted On
//x.x.x.x/share  5.0G   79M   5.0G   2%    /share
...
This is a ZFS share on the host and I am using samba to expose it here. I would expect to see about 12TB of free space, which is what I see if I run df -u on the samba host. Running du -f --max-depth=1 in the ubuntu VM reports this:
2.2T   /share
...
Which is the correct usage for the mount. Ultimately I am having issues where services are trying to write files to the mount that are larger than the total reported filesystem space and they fail since they do a check on available space before writing.
Michael (1 rep)
Apr 20, 2020, 10:31 AM • Last activity: Sep 20, 2025, 03:03 AM
4 votes
1 answers
3008 views
QEMU Guest using huge amounts of compressed memory on boot
Virt Manager configuration: [![enter image description here][1]][1] Guest memory usage right after booting (nothing is running): [![enter image description here][2]][2] I'm running `virt-manager` on a standard Ubuntu 17.10 system. In Proxmox, the same general configuration (with ballooning enabled)...
Virt Manager configuration: enter image description here Guest memory usage right after booting (nothing is running): enter image description here I'm running virt-manager on a standard Ubuntu 17.10 system. In Proxmox, the same general configuration (with ballooning enabled) would allocate 8GB of the host but the guest would have roughly 1-2GB used out of 16GB instead of this. I'm pretty sure I have all the guest drivers installed. (qemu guest, virtio stuff, balloon driver & service) This is not my first QEMU VM, but the only one outside of Proxmox (which I'm assuming does some extra stuff that virt-manager doesn't). What really exacerbates this issue is if I set the **Current allocation** to 2GB, the guest has about 15.6GB compressed and most software won't launch or run correctly because there's no free system memory... ---------- Host: :~$ free -m total used free shared buff/cache available Mem: 32163 20273 8949 176 2940 11325 Swap: 2047 2 2045 enter image description here Hardly anything is running on the host. It looks like the entire 16GB is getting claimed but simultaneously most of that memory is inaccessible to the guest.
Status3543 (283 rep)
Dec 29, 2017, 08:37 PM • Last activity: Sep 20, 2025, 02:05 AM
2 votes
1 answers
2649 views
Why is "/usr/lib/upower/upowerd" consuming 100% cpu causing freezes for seconds, frequently
I'm running Ubuntu 20.04 on my laptop and today it suddenly started freezing up frequently for seconds on end. When I check the running processes it seems that a process called "upowerd" is hogging up the CPU causing lag spikes rendering my system useless. I tried disabling this service and killing...
I'm running Ubuntu 20.04 on my laptop and today it suddenly started freezing up frequently for seconds on end. When I check the running processes it seems that a process called "upowerd" is hogging up the CPU causing lag spikes rendering my system useless. I tried disabling this service and killing the process hoping to fix it but it keeps starting again. Note, I don't have an iPhone, I have a mouse and a keyboard connected through USB and an external monitor connected through HDMI. My laptops battery is pretty much dead so I always use it connected to the power. Any help is appreciated as I'm not able to play any games or even properly use my laptop anymore. Please let me know if there are any extra info I can provide to help debug the issue. Thanks in advance.
Ediz Arca (21 rep)
Apr 28, 2021, 05:51 PM • Last activity: Sep 20, 2025, 01:01 AM
0 votes
1 answers
16 views
If a partition that has always been able to be mounted normally,suddenly cannot be mounted and enters Emergency Mode,what might be the reason?
For many years, my system's `\home` partition has always been able to be mounted normally after the system starts. Every time I shut down, I will use the `shutdown` command to shut down,thereforce,there are almost any issues,but now for unknown reason,the system has entered Emergency Mode|Control-D...
For many years, my system's \home partition has always been able to be mounted normally after the system starts. Every time I shut down, I will use the shutdown command to shut down,thereforce,there are almost any issues,but now for unknown reason,the system has entered Emergency Mode|Control-D Error and I can no longer enter the system desktop normally. I typed the lsblk -l command and got this result: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 373.8M 1 loop /snap/anbox/186 loop1 7:1 0 4K 1 loop /snap/bare/5 loop2 7:2 0 401.5M 1 loop /snap/blender/6514 loop3 7:3 0 401.5M 1 loop /snap/blender/6559 loop4 7:4 0 104.2M 1 loop /snap/core/17212 loop5 7:5 0 104.2M 1 loop /snap/core/17247 loop6 7:6 0 55.5M 1 loop /snap/core18/2940 loop7 7:7 0 55.5M 1 loop /snap/core18/2947 loop8 7:8 0 63.8M 1 loop /snap/core20/2582 loop9 7:9 0 63.8M 1 loop /snap/core20/2599 loop10 7:10 0 73.9M 1 loop /snap/core22/2082 loop11 7:11 0 73.9M 1 loop /snap/core22/2111 loop12 7:12 0 66.8M 1 loop /snap/core24/1055 loop13 7:13 0 67.2M 1 loop /snap/cups/1100 loop14 7:14 0 66.8M 1 loop /snap/core24/1151 loop15 7:15 0 68.4M 1 loop /snap/cups/1085 loop16 7:16 0 5.7M 1 loop /snap/evince/1060 loop17 7:17 0 5.7M 1 loop /snap/evince/1063 loop18 7:18 0 164.8M 1 loop /snap/gnome-3-28-1804/194 loop19 7:19 0 164.8M 1 loop /snap/gnome-3-28-1804/198 loop20 7:20 0 218.4M 1 loop /snap/gnome-3-34-1804/90 loop21 7:21 0 218.4M 1 loop /snap/gnome-3-34-1804/93 loop22 7:22 0 349.7M 1 loop /snap/gnome-3-38-2004/140 loop23 7:23 0 349.7M 1 loop /snap/gnome-3-38-2004/143 loop24 7:24 0 505.1M 1 loop /snap/gnome-42-2204/176 loop25 7:25 0 516M 1 loop /snap/gnome-42-2204/202 loop26 7:26 0 618.3M 1 loop /snap/gnome-46-2404/125 loop27 7:27 0 604M 1 loop /snap/gnome-46-2404/121 loop28 7:28 0 81.3M 1 loop /snap/gtk-common-themes/1534 loop29 7:29 0 91.7M 1 loop /snap/gtk-common-themes/1535 loop30 7:30 0 43M 1 loop /snap/kooha/9 loop31 7:31 0 290.8M 1 loop /snap/mesa-2404/887 loop32 7:32 0 290.8M 1 loop /snap/mesa-2404/912 loop33 7:33 0 100.6M 1 loop /snap/prusa-slicer/96 loop34 7:34 0 68.7M 1 loop /snap/scrcpy/425 loop35 7:35 0 14.4M 1 loop /snap/simple-scan/785 loop36 7:36 0 48.2M 1 loop /snap/simple-scan/798 loop37 7:37 0 33.5M 1 loop /snap/scrcpy/439 loop38 7:38 0 12.2M 1 loop /snap/snap-store/1216 loop39 7:39 0 12.9M 1 loop /snap/snap-store/1113 loop40 7:40 0 49.3M 1 loop /snap/snapd/24792 loop41 7:41 0 50.8M 1 loop /snap/snapd/25202 loop42 7:42 0 79.3M 1 loop /snap/telegram-desktop/6798 loop43 7:43 0 78.3M 1 loop /snap/telegram-desktop/6767 loop44 7:44 0 8.9M 1 loop /snap/v2ray-core/557 loop45 7:45 0 23.6M 1 loop /snap/v2raya/46 loop46 7:46 0 23.6M 1 loop /snap/v2raya/49 loop47 7:47 0 321.1M 1 loop /snap/vlc/3721 loop48 7:48 0 321.1M 1 loop /snap/vlc/3777 loop49 7:49 0 122.3M 1 loop /snap/yt-dlp/822 loop50 7:50 0 122.3M 1 loop /snap/yt-dlp/834 sda 8:0 0 1.8T 0 disk ├─sda1 8:1 0 485M 0 part /boot/efi ├─sda2 8:2 0 38.2G 0 part / ├─sda3 8:3 0 7.6G 0 part [SWAP] ├─sda4 8:4 0 28.6G 0 part ├─sda5 8:5 0 64G 0 part ├─sda6 8:6 0 186.3G 0 part ├─sda7 8:7 0 500G 0 part /mnt/video └─sda8 8:8 0 1T 0 part sdb 8:16 1 115.5G 0 disk └─sdb1 8:17 1 115.5G 0 part /mnt/udisk When I enter the journalctl -xb|grep failed command, the result is this: 9 18 19:30:12 ********************* systemd-udevd: controlC0: Process '/usr/sbin/alsactl -E HOME=/run/alsa -E XDG_RUNTIME_DIR=/run/alsa/runtime restore 0' failed with exit code 99. 9 18 19:30:24********************* systemd-fsck: fsck failed with exit status 4. -- Subject: Unit failed -- The unit systemd-fsck@dev-disk-by\x2duuid-ef42fc86\x2d1d9c\x2d4885\x2d8747\x2d8f5d03b1bf9b.service has entered the 'failed' state with result 'exit-code'. -- Subject: A start job for unit systemd-fsck@dev-disk-by\x2duuid-ef42fc86\x2d1d9c\x2d4885\x2d8747\x2d8f5d03b1bf9b.service has failed -- The job identifier is 28 and the job result is failed. 9 18 19:30:24 ********************* systemd: Dependency failed for /home. -- Subject: A start job for unit home.mount has failed 9 18 19:30:24 ********************* systemd: Dependency failed for Local File Systems. -- Subject: A start job for unit local-fs.target has failed 9 18 19:30:24********************* systemd: local-fs.target: Job local-fs.target/start failed with result 'dependency'. 9 18 19:30:24 ********************* systemd: home.mount: Job home.mount/start failed with result 'dependency'. When I enter the journalctl -b 0|grep -i -E "fail|err|warn" command, the result is this: 9 18 19:29:52 ********************* kernel: core: PMU erratum BJ122, BV98, HSD29 worked around, HT is on 9 18 19:29:52 ********************* kernel: ACPI: Using IOAPIC for interrupt routing 9 18 19:29:52 ********************* kernel: ACPI: PCI: Interrupt link LNKA configured for IRQ 11 9 18 19:29:52 ********************* kernel: ACPI: PCI: Interrupt link LNKB configured for IRQ 10 9 18 19:29:52 ********************* kernel: ACPI: PCI: Interrupt link LNKC configured for IRQ 6 9 18 19:29:52 ********************* kernel: ACPI: PCI: Interrupt link LNKD configured for IRQ 3 9 18 19:29:52 ********************* kernel: ACPI: PCI: Interrupt link LNKE configured for IRQ 7 9 18 19:29:52 ********************* kernel: ACPI: PCI: Interrupt link LNKF configured for IRQ 15 9 18 19:29:52 ********************* kernel: ACPI: PCI: Interrupt link LNKG configured for IRQ 14 9 18 19:29:52 ********************* kernel: ACPI: PCI: Interrupt link LNKH configured for IRQ 11 9 18 19:29:52 ********************* kernel: fbcon: Deferring console take-over 9 18 19:29:52 ********************* kernel: RAS: Correctable Errors collector initialized. 9 18 19:29:52 ********************* kernel: ACPI Warning: SystemIO range 0x0000000000001828-0x000000000000182F conflicts with OpRegion 0x0000000000001800-0x000000000000187F (\PMIO) (20210730/utaddress-204) 9 18 19:29:52 ********************* kernel: ACPI Warning: SystemIO range 0x0000000000001C40-0x0000000000001C4F conflicts with OpRegion 0x0000000000001C00-0x0000000000001FFF (\GPR) (20210730/utaddress-204) 9 18 19:29:52 ********************* kernel: ACPI Warning: SystemIO range 0x0000000000001C30-0x0000000000001C3F conflicts with OpRegion 0x0000000000001C00-0x0000000000001C3F (\GPRL) (20210730/utaddress-204) 9 18 19:29:52 ********************* kernel: ACPI Warning: SystemIO range 0x0000000000001C30-0x0000000000001C3F conflicts with OpRegion 0x0000000000001C00-0x0000000000001FFF (\GPR) (20210730/utaddress-204) 9 18 19:29:52 ********************* kernel: ACPI Warning: SystemIO range 0x0000000000001C00-0x0000000000001C2F conflicts with OpRegion 0x0000000000001C00-0x0000000000001C3F (\GPRL) (20210730/utaddress-204) 9 18 19:29:52 ********************* kernel: ACPI Warning: SystemIO range 0x0000000000001C00-0x0000000000001C2F conflicts with OpRegion 0x0000000000001C00-0x0000000000001FFF (\GPR) (20210730/utaddress-204) 9 18 19:29:52 ********************* kernel: i801_smbus 0000:00:1f.3: SMBus using PCI interrupt 9 18 19:29:52 ********************* kernel: EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro. Quota mode: none. 9 18 19:30:10 ********************* kernel: lp0: using parport0 (interrupt-driven). 9 18 19:30:12 ********************* systemd-udevd: controlC0: Process '/usr/sbin/alsactl -E HOME=/run/alsa -E XDG_RUNTIME_DIR=/run/alsa/runtime restore 0' failed with exit code 99. 9 18 19:30:15 ********************* systemd-fsck: /dev/sda4 contains a file system with errors, check forced. 9 18 19:30:24 ********************* systemd-fsck: fsck failed with exit status 4. 9 18 19:30:24 ********************* systemd: systemd-fsck@dev-disk-by\x2duuid-ef42fc86\x2d1d9c\x2d4885\x2d8747\x2d8f5d03b1bf9b.service: Main process exited, code=exited, status=1/FAILURE 9 18 19:30:24 ********************* systemd: systemd-fsck@dev-disk-by\x2duuid-ef42fc86\x2d1d9c\x2d4885\x2d8747\x2d8f5d03b1bf9b.service: Failed with result 'exit-code'. 9 18 19:30:24 ********************* systemd: Failed to start File System Check on /dev/disk/by-uuid/ef42fc86-1d9c-4885-8747-8f5d03b1bf9b. 9 18 19:30:24 ********************* systemd: Dependency failed for /home. 9 18 19:30:24 ********************* systemd: Dependency failed for Local File Systems. 9 18 19:30:24 ********************* systemd: local-fs.target: Job local-fs.target/start failed with result 'dependency'. 9 18 19:30:24 ********************* systemd: home.mount: Job home.mount/start failed with result 'dependency'. When I enter the blkid command, the result is this: /dev/sda3: UUID="f24599be-510f-4c07-b108-5e3444cb50e7" TYPE="swap" PARTUUID="f4409f05-27d0-4bad-b9e3-3e8d2612b8c7" /dev/sda2: UUID="3c7aa930-dcfb-4d7f-87f5-fa99b21a08ea" TYPE="ext4" PARTUUID="c8ee1d23-fb56-4c04-8887-4702a2e63b1c" /dev/loop0: TYPE="squashfs" /dev/loop1: TYPE="squashfs" /dev/loop2: TYPE="squashfs" /dev/loop3: TYPE="squashfs" /dev/loop4: TYPE="squashfs" /dev/loop5: TYPE="squashfs" /dev/loop6: TYPE="squashfs" /dev/loop7: TYPE="squashfs" /dev/sda1: UUID="DA9B-5033" TYPE="vfat" PARTUUID="a56b9f29-59c1-4f67-a897-4cc585b940a1" /dev/sda4: UUID="ef42fc86-1d9c-4885-8747-8f5d03b1bf9b" TYPE="ext4" PARTUUID="2ae17499-eac0-4396-93f9-211d2a9d7b80" /dev/sda5: LABEL="Android-x86" UUID="033e8fc7-4cfe-9454-bc59-df7329ca862d" TYPE="ext4" PARTLABEL="android x86" PARTUUID="2390cafc-0674-4078-80e7-fdf2574e4130" /dev/sda6: LABEL="Data and Documen" UUID="9914344f-c6b6-45b4-9671-ba5523c5318c" TYPE="ext4" PARTUUID="905a2c1f-7b0b-4dfa-8b93-c9d267c3455e" /dev/sda7: UUID="f5d62565-7539-40b4-bfb1-8139be636f91" TYPE="ext4" PARTUUID="229aa38d-537c-46fa-b274-b075f3df7639" /dev/sda8: UUID="3e59d6b3-cd1b-449a-90ba-747ea7943b36" TYPE="ext4" PARTUUID="4b656bb3-a00a-4417-a23b-33c5c82f50ba" /dev/loop8: TYPE="squashfs" /dev/loop9: TYPE="squashfs" /dev/loop10: TYPE="squashfs" /dev/loop11: TYPE="squashfs" /dev/loop12: TYPE="squashfs" /dev/loop13: TYPE="squashfs" /dev/loop14: TYPE="squashfs" /dev/loop15: TYPE="squashfs" /dev/loop16: TYPE="squashfs" /dev/loop17: TYPE="squashfs" /dev/loop18: TYPE="squashfs" /dev/loop19: TYPE="squashfs" /dev/loop20: TYPE="squashfs" /dev/loop21: TYPE="squashfs" /dev/loop22: TYPE="squashfs" /dev/loop23: TYPE="squashfs" /dev/loop24: TYPE="squashfs" /dev/loop25: TYPE="squashfs" /dev/loop26: TYPE="squashfs" /dev/loop27: TYPE="squashfs" /dev/loop28: TYPE="squashfs" /dev/loop29: TYPE="squashfs" /dev/loop30: TYPE="squashfs" /dev/loop31: TYPE="squashfs" /dev/loop32: TYPE="squashfs" /dev/loop33: TYPE="squashfs" /dev/loop34: TYPE="squashfs" /dev/loop35: TYPE="squashfs" /dev/loop37: TYPE="squashfs" /dev/loop36: TYPE="squashfs" /dev/loop38: TYPE="squashfs" /dev/loop39: TYPE="squashfs" /dev/loop40: TYPE="squashfs" /dev/loop41: TYPE="squashfs" /dev/loop43: TYPE="squashfs" /dev/loop42: TYPE="squashfs" /dev/loop44: TYPE="squashfs" /dev/loop45: TYPE="squashfs" /dev/loop46: TYPE="squashfs" /dev/loop47: TYPE="squashfs" /dev/loop48: TYPE="squashfs" /dev/loop49: TYPE="squashfs" /dev/loop50: TYPE="squashfs" /dev/sdb1: UUID="A685-237C" TYPE="exfat" PTTYPE="dos" PARTUUID="46607328-01" What could be the reason that causes such an error?What should I do to make my Linux System out fo the Emegency Mode|Control-D Error?Under the sda6 partition, there is a list folder that I moved from the root directory and created a soft link.Can I manually mount sda4(\home) and sda6 to a specific directory by editing the /etc/fstab file?
LingChuan_Struggler (3 rep)
Sep 20, 2025, 12:08 AM • Last activity: Sep 20, 2025, 12:18 AM
2 votes
1 answers
2722 views
SSH connection refused. Error 61
So, I set up another FreeBSD server. Everything was ok until I tried to connect to it via my old FreeBSD. On connection it echoes: ```test Unable to connect to relay host, errno=61 ssh_exchange_identification: Connection closed by remote host ``` But I just used Putty to connect to it and it works....
So, I set up another FreeBSD server. Everything was ok until I tried to connect to it via my old FreeBSD. On connection it echoes:
Unable to connect to relay host, errno=61
ssh_exchange_identification: Connection closed by remote host
But I just used Putty to connect to it and it works. On top of it, I had connected to my old via SSH with no problem. It still can't connect to new one. **TL;DR:** SSH * Win->Old = ok * Win->New = ok * New->Old = ok * Old->New = *no_go* What am I doing wrong?
h0l3 (21 rep)
Jun 26, 2015, 09:34 AM • Last activity: Sep 20, 2025, 12:05 AM
0 votes
2 answers
4722 views
Debian - enable broadcom wireless controller
Ok, this is driving me crazy. I'm setting up an old Dell Precision M60 notebook, and I can't manage to enable support for its wireless device on debian squeeze. What I tried: lspci | grep -i wireless 02:03.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 02)...
Ok, this is driving me crazy. I'm setting up an old Dell Precision M60 notebook, and I can't manage to enable support for its wireless device on debian squeeze. What I tried: lspci | grep -i wireless 02:03.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 02) nice. I found this page on debianwiki: bcm43xx . First of all, let's check if the device is really supported. lspci -vnn -d 14e4: 02:03.0 Network controller : Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller [14e4:4320] (rev 02) Subsystem: Dell TrueMobile 1300 WLAN Mini-PCI Card [1028:0001] Flags: bus master, fast devsel, latency 32, IRQ 5 Memory at fafec000 (32-bit, non-prefetchable) [size=8K] Capabilities: Kernel driver in use: b43-pci-bridge so it's [14e4:4320] (rev 02). And yes, it's supported . Back to the debianwiki page " For 802.11b-only devices (BCM4301) or **802.11b/g devices with the BCM4306 revision 2 chipset, install firmware-b43legacy-installer**" let's try: sudo aptitude install firmware-b43legacy-installer .. firmware-b43legacy-installer E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up firmware-b43legacy-installer (4.178.10.4-4) ... Not supported card here (PCI id 14e4:165 14e4:4320)! Use b43 firmware. This is just for the b43legacy driver. Aborting. dpkg: error processing firmware-b43legacy-installer (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: firmware-b43legacy-installer Setting up firmware-b43legacy-installer (4.178.10.4-4) ... Not supported card here (PCI id 14e4:165 14e4:4320)! Use b43 firmware. This is just for the b43legacy driver. Aborting. dpkg: error processing firmware-b43legacy-installer (--configure): subprocess installed post-installation script returned error exit status 1 configured to not write apport reports Errors were encountered while processing: firmware-b43legacy-installer E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up firmware-b43legacy-installer (4.178.10.4-4) ... Not supported card here (PCI id 14e4:165 14e4:4320)! Use b43 firmware. This is just for the b43legacy driver. Aborting. dpkg: error processing firmware-b43legacy-installer (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: firmware-b43legacy-installer What? Let's try with the firmware-b43-installer aptitude install firmware-b43-installer It works. But: sudo iwconfig wlan0 IEEE 802.11bg ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm Retry long limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:off sudo ifconfig wlan0 up SIOCSIFFLAGS: No such file or directory Again? I googled the error and it is related to the firmware, but i Installed it! I already checked in lib/firmware, there's a b43 folder with the .fw files Any idea?
randomUser (1 rep)
Feb 28, 2013, 01:54 PM • Last activity: Sep 19, 2025, 11:05 PM
2 votes
1 answers
8115 views
"incorrect mount option was specified" when mounting krb5p nfs4 partition on Ubuntu
I have a NFS4 share running with krb5p. I have no problems accessing it from CentOS clients, all that is required is: yum install krb5-workstation setup krb5 (edit krb5.conf, setup keytab) systemctl enable nfs-secure.service && systemctl start nfs-secure.service systemctl enable nfs-client.target &&...
I have a NFS4 share running with krb5p. I have no problems accessing it from CentOS clients, all that is required is: yum install krb5-workstation setup krb5 (edit krb5.conf, setup keytab) systemctl enable nfs-secure.service && systemctl start nfs-secure.service systemctl enable nfs-client.target && systemctl start nfs-client.target mkdir /mnt/x Add the following to fstab: server.example.com:/srv/share/subdir /mnt/x nfs4 defaults,sec=krb5p,noexec,nosuid,_netdev,auto 0 0 This works great on CentOS, I've setup a dozen client hosts so far that way. However on Ubuntu, I get : mount.nfs4: an incorrect mount option was specified I think the Ubuntu error is to do with nfs-secure.service however there seems to be no equivalent on Ubuntu that gets installed with NFS client ? (I am using Ubuntu 16.04.5 LTS). ***UPDATE:*** I have tried: systemctl enable rpc-gssd.service && systemctl start rpc-gssd.service That launches OK: # systemctl status rpc-gssd.service ● rpc-gssd.service - RPC security service for NFS client and server Loaded: loaded (/lib/systemd/system/rpc-gssd.service; static; vendor preset: enabled) Active: active (running) since Thu 2018-10-04 16:49:40 BST; 6min ago Process: 51689 ExecStart=/usr/sbin/rpc.gssd $GSSDARGS (code=exited, status=0/SUCCESS) Main PID: 51691 (rpc.gssd) Tasks: 1 Memory: 516.0K CPU: 13ms CGroup: /system.slice/rpc-gssd.service └─51691 /usr/sbin/rpc.gssd But Ubuntu just hangs when trying to mount ? # mount -v -t nfs4 -o defaults,sec=krb5p,noexec,nosuid,_netdev,auto server.example.com:/srv/dir/example /mnt/example mount.nfs4: timeout set for Thu Oct 4 16:54:40 2018 mount.nfs4: trying text-based options 'sec=krb5p,addr=10.10.10.10,clientaddr=10.10.10.9' # NOTHING ELSE HAPPENS.....
Little Code (491 rep)
Oct 4, 2018, 03:15 PM • Last activity: Sep 19, 2025, 10:04 PM
0 votes
1 answers
11171 views
YUM: Downloading successful, but checksum doesn't match
On RHEL9 i created a local YUM Repo, i copied all the files under /RHEL9-REPO. Content of /etc/yum.repos.d/rhel-lcoal.repo [rhel-baseos] name= RHEL 9.0 Local BaseOS YUM REPO baseurl= file:///RHEL9-REPO/BaseOS enabled=1 gpgcheck=0 [rhel-AppStream] name= RHEL 9.0 Local AppStream YUM REPO baseurl= file...
On RHEL9 i created a local YUM Repo, i copied all the files under /RHEL9-REPO. Content of /etc/yum.repos.d/rhel-lcoal.repo [rhel-baseos] name= RHEL 9.0 Local BaseOS YUM REPO baseurl= file:///RHEL9-REPO/BaseOS enabled=1 gpgcheck=0 [rhel-AppStream] name= RHEL 9.0 Local AppStream YUM REPO baseurl= file:///RHEL9-REPO/AppStream enabled=1 gpgcheck=0 When i run "dnf clean all" and "dnf repolist -v" it gives this error Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, kpatch, needs-restarting, playground, product-id, repoclosure, repodiff, repograph, repomanage, reposync, subscription-manager, uploadprofile Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. DNF version: 4.10.0 cachedir: /var/cache/dnf RHEL 9.0 Local BaseOS YUM REPO 94 MB/s | 1.7 MB 00:00 Errors during downloading metadata for repository 'rhel-baseos': - Downloading successful, but checksum doesn't match. Calculated: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855(sha256) Expected: 951a2367c42d5c3fb70e6d8ad430d120cc32e639b361139eaf68d8d2c6569003(sha256) Error: Failed to download metadata for repo 'rhel-baseos': Yum repo downloading error: Downloading error(s): repodata/951a2367c42d5c3fb70e6d8ad430d120cc32e639b361139eaf68d8d2c6569003-productid.gz - Cannot download, all mirrors were already tried without success
OmiPenguin (4408 rep)
Nov 28, 2022, 01:08 PM • Last activity: Sep 19, 2025, 09:03 PM
0 votes
2 answers
40 views
Service on raspberry pi only starts working after ssh
I have a rather weird and repeatable issue. I have 3 pi's, left, right, and base. The left and right have cameras and perform computer vision. They regularly send UDP packets to the base. The program that sends these packets is started by a service. When I reboot everything the base starts receiving...
I have a rather weird and repeatable issue. I have 3 pi's, left, right, and base. The left and right have cameras and perform computer vision. They regularly send UDP packets to the base. The program that sends these packets is started by a service. When I reboot everything the base starts receiving packets from left, but not right. The base can ping both of them with low latency. So now I try to ssh into right to see what's happening (left and right are both headless). For some reason as soon as I ssh into right, it immediately starts working. I've done this over and over and it is repeatable. Previously I was unable to ssh into the right because it perpetually said "booting try again later" or something like that. I fixed this by disabling pam_nologin.so. I think a service was failing and holding up the boot. So my best guess is that a service is still hanging and holding up the computer vision service (or maybe that's the one hanging). Then for some reason when I ssh in, it un-hangs, or aborts or something. All pi's are running raspbian buster. What is going on here? What are some steps I can use to narrow it down? **Edit:** As grawity suggested I saved the output of journalctl -b It seems as though the computer vision program doesn't even try to run at boot. I waited about 4 minutes and then SSH'd in, just so there would be a clear break in the logs. This is what happens immediately after I SSH in: Jul 30 05:56:12 right sshd: PAM (sshd) illegal module type: 7 Jul 30 05:56:12 right sshd: PAM (sshd) no control flag supplied Jul 30 05:56:12 right sshd: PAM (sshd) no module name supplied Jul 30 05:56:12 right sshd: Accepted publickey for pi from [REDACTED, base ip] port [REDACTED] ssh2: RSA SHA256:[REDACTED] Jul 30 05:56:12 right sshd: pam_unix(sshd:session): session opened for user pi by (uid=0) Jul 30 05:56:12 right dbus-daemon: [system] Activating via systemd: service name='org.freedesktop.login1' unit='dbus-org.freedesktop.login1.service' requested by ':1.3' (uid=0 pid=500 comm="sshd: pi [priv] ") Jul 30 05:56:12 right systemd: Created slice User and Session Slice. Jul 30 05:56:12 right systemd: Starting Login Service... Jul 30 05:56:12 right systemd-logind: New seat seat0. Jul 30 05:56:12 right dbus-daemon: [system] Successfully activated service 'org.freedesktop.login1' Jul 30 05:56:12 right systemd: Started Login Service. Jul 30 05:56:12 right systemd: Created slice User Slice of UID 1000. Jul 30 05:56:12 right systemd: Starting User Runtime Directory /run/user/1000... Jul 30 05:56:12 right systemd-logind: New session 2 of user pi. Jul 30 05:56:12 right systemd: Started User Runtime Directory /run/user/1000. Jul 30 05:56:12 right systemd: Starting User Manager for UID 1000... Jul 30 05:56:12 right systemd: pam_unix(systemd-user:session): session opened for user pi by (uid=0) Jul 30 05:56:13 right systemd: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers). Jul 30 05:56:13 right systemd: Listening on GnuPG cryptographic agent and passphrase cache (restricted). Jul 30 05:56:13 right systemd: Listening on GnuPG cryptographic agent (ssh-agent emulation). Jul 30 05:56:13 right systemd: Listening on GnuPG cryptographic agent and passphrase cache. Jul 30 05:56:13 right systemd: Starting D-Bus User Message Bus Socket. Jul 30 05:56:13 right systemd: Reached target Timers. Jul 30 05:56:13 right systemd: Listening on GnuPG network certificate management daemon. Jul 30 05:56:13 right systemd: Reached target Paths. Jul 30 05:56:13 right systemd: Listening on D-Bus User Message Bus Socket. Jul 30 05:56:13 right systemd: Reached target Sockets. Jul 30 05:56:13 right systemd: Reached target Basic System. Jul 30 05:56:13 right systemd: Started User Manager for UID 1000. Jul 30 05:56:13 right systemd: Started Session 2 of user pi. Jul 30 05:56:13 right systemd: Started Run Boomer Camera. Jul 30 05:56:13 right systemd: Reached target Default. Jul 30 05:56:13 right systemd: Startup finished in 248ms. Jul 30 05:56:17 right [REDACTED, CV program]: [REDACTED, computer vision program output] Jul 30 05:56:17 right [REDACTED, CV program]: [REDACTED, computer vision program output] Jul 30 05:56:18 right kernel: sched: RT throttling activated UID 1000 does not appear anywhere in the log before this. I'm not a linux expert, but it seems like the user under which the service runs is not "started" until I ssh in. I'm not sure how to fix that. I do have linger enabled for user pi. I also noticed that the working raspberry pi has Machine model: Raspberry Pi 4 Model B Rev 1.4, whereas the non-working on has Machine model: Raspberry Pi 4 Model B Rev 1.2
Drew (101 rep)
Sep 19, 2025, 04:03 PM • Last activity: Sep 19, 2025, 08:44 PM
2 votes
1 answers
71 views
dhcpcd does not send hostname, reverse DNS does not work
I am using Debian Trixie on a server. I have installed it using ZFSBootMenu [documentation](https://docs.zfsbootmenu.org/en/v3.0.x/guides/debian/uefi.html), without a desktop environment. The installation is quite minimal in term of packages. My motherboard has 2 ethernet interfaces. My hostname is...
I am using Debian Trixie on a server. I have installed it using ZFSBootMenu [documentation](https://docs.zfsbootmenu.org/en/v3.0.x/guides/debian/uefi.html) , without a desktop environment. The installation is quite minimal in term of packages. My motherboard has 2 ethernet interfaces. My hostname is configured correctly (I think, I have done systemctl set-hostname servername). /etc/hosts:
127.0.0.1     localhost
::1           localhost ip6-localhost ip6-loopback
ff02::1       ip6-allnodes
ff02::2       ip6-allrouters

127.0.0.1     servername
/etc/hostname:
servername
/etc/network/interfaces:
auto lo
iface lo inet loopback
auto eno1
iface eno1 inet dhcp
    hostname servername
auto eno2
iface eno2 inet dhcp
    hostname servername
/etc/dhcpcd.conf:
# was: hostname
hostname servername
# was: duid
clientid

persistent

vendorclassid

option domain_name_servers, domain_name, domain_search
option classless_static_routes
option interface_mtu

option host_name

require dhcp_server_identifier

slaac private
extract from /etc/nsswitch.conf:
# hosts:          files mdns4_minimal [NOTFOUND=return] dns # stock Debian conf
hosts:          files myhostname mdns4_minimal [NOTFOUND=return] dns mdns4
netgroup:       nis
find /usr/lib -iname '*libnss*':
/usr/lib/x86_64-linux-gnu/libnss_mdns.so.2
/usr/lib/x86_64-linux-gnu/libnss_mdns6.so.2
/usr/lib/x86_64-linux-gnu/libnss_compat.so
/usr/lib/x86_64-linux-gnu/libnss_mdns_minimal.so.2
/usr/lib/x86_64-linux-gnu/libnss_files.so.2
/usr/lib/x86_64-linux-gnu/libnss_compat.so.2
/usr/lib/x86_64-linux-gnu/libnss_hesiod.so.2
/usr/lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2
/usr/lib/x86_64-linux-gnu/libnss_hesiod.so
/usr/lib/x86_64-linux-gnu/libnss_dns.so.2
/usr/lib/x86_64-linux-gnu/libnss_mdns6_minimal.so.2
/usr/lib/x86_64-linux-gnu/libnss_mdns4.so.2
extract from systemctl status:
│ ├─networking.service
           │ │ ├─1010 "dhcpcd: eno1 [ip4] [ip6]"
           │ │ ├─1011 "dhcpcd: [privileged proxy] eno1 [ip4] [ip6]"
           │ │ ├─1013 "dhcpcd: [network proxy] eno1 [ip4] [ip6]"
           │ │ ├─1016 "dhcpcd: [control proxy] eno1 [ip4] [ip6]"
           │ │ ├─1093 "dhcpcd: [DHCP6 proxy] fe80::redacted"
           │ │ ├─1094 "dhcpcd: [BPF ARP] eno1 192.168.1.82"
           │ │ ├─1110 "dhcpcd: [DHCP6 proxy] 2a01:redacted"
           │ │ ├─1122 "dhcpcd: eno2 [ip4] [ip6]"
           │ │ ├─1123 "dhcpcd: [privileged proxy] eno2 [ip4] [ip6]"
           │ │ ├─1124 "dhcpcd: [network proxy] eno2 [ip4] [ip6]"
           │ │ ├─1125 "dhcpcd: [control proxy] eno2 [ip4] [ip6]"
           │ │ └─1163 "dhcpcd: [BOOTP proxy] 192.168.1.82"
extract from ip addr:
2: eno1:  mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether ac:redacted brd ff:ff:ff:ff:ff:ff
    altname enp2s0
    altname enxac1f6bd3405a
    inet 192.168.1.82/24 brd 192.168.1.255 scope global dynamic noprefixroute eno1
       valid_lft 40861sec preferred_lft 35461sec
    inet6 2a01:redacted/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 86377sec preferred_lft 86377sec
    inet6 fe80::redacted/64 scope link 
       valid_lft forever preferred_lft forever
extract from journalctl -u networking.service:
servername dhcpcd: eno1: carrier acquired
servername dhcpcd: DUID 00:01:00:01:30:5d:c4:58:ac:1f:6b:d3:40:5b
servername dhcpcd: eno1: IAID 6b:d3:40:5b
servername dhcpcd: eno1: adding address fe80::redacted
servername dhcpcd: eno1: soliciting a DHCP lease
servername dhcpcd: eno1: soliciting an IPv6 router
servername dhcpcd: eno1: probing for an IPv4LL address
servername dhcpcd: eno1: carrier lost
servername dhcpcd: eno1: deleting address fe80::redacted
servername dhcpcd: eno1: carrier acquired
servername dhcpcd: eno1: IAID 6b:d3:40:5b
servername dhcpcd: eno1: adding address fe80::redacted
servername dhcpcd: eno1: soliciting a DHCP lease
servername dhcpcd: eno1: offered 192.168.1.126 from 192.168.1.254
servername dhcpcd: eno1: soliciting an IPv6 router
servername dhcpcd: eno1: probing address 192.168.1.126/24
servername dhcpcd: eno1: leased 192.168.1.126 for 43200 seconds
servername dhcpcd: eno1: adding route to 192.168.1.0/24
servername dhcpcd: eno1: adding default route via 192.168.1.254
servername dhcpcd: eno1: Router Advertisement from fe80::redacted
servername dhcpcd: eno1: adding address 2a01:redacted
servername dhcpcd: eno1: adding route to 2a01:redacted
servername dhcpcd: eno1: adding default route via fe80::redacted
The system is using the DHCP client dhcpcd. My router is a Freebox. The system gets an IP address from the router but reverse DNS does not work: nmap -sP -T4 192.168.1.0/24 gives:
Starting Nmap 7.93 ( https://nmap.org  ) at 2025-09-17 13:58 CEST
Nmap scan report for laptop (192.168.1.16)    > DiG 9.18.33-1~deb12u2-Debian > 192.168.1.82
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 53842
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;192.168.1.82.			IN	A

;; AUTHORITY SECTION:
.			486	IN	SOA	a.root-servers.net. nstld.verisign-grs.com. 2025091801 1800 900 604800 86400

;; Query time: 112 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Thu Sep 18 21:07:31 CEST 2025
;; MSG SIZE  rcvd: 116
I have installed avahi and avahi works (ping servername.local works) but reverse DNS still does not work. I have tried to specify the hostname in /etc/dhcpcd.conf, changed from duid to clientid, delete leases, rebooted, but no improvement. I would like to get dhcpcd to work because it is the default one that came when I installed Debian Trixie. I think the Raspberry pi official Linux also use (used?) dhcpcd and has reverse DNS working, so this should be possible.
Gabriel Devillers (1436 rep)
Sep 17, 2025, 12:08 PM • Last activity: Sep 19, 2025, 08:16 PM
7 votes
2 answers
6266 views
How to resize at the beginning/move a btrfs partition on the command line?
I have a Linux/Windows dual boot setup on my notebook, in which I used to keep most of the data on the Windows partition to be able to access it from both systems. Since I almost never use Windows I shrunk the NTFS partition and plan to move the data to the Linux partition which is formatted as btrf...
I have a Linux/Windows dual boot setup on my notebook, in which I used to keep most of the data on the Windows partition to be able to access it from both systems. Since I almost never use Windows I shrunk the NTFS partition and plan to move the data to the Linux partition which is formatted as btrfs. Beforehand the btrfs partition needs to be expanded at the beginning where the now free space is. fdisk can move the beginning of a partition but leaves the filesystem untouched. parted cannot handle the filesystem, either, since version 3.0. One solution to the problem would be to create a partition in the free space and add it as a backing device to the btrfs, then removing the original btrfs from btrfs (using btrfs device) and the partition table and after that expanding the remaining btrfs+partition to the end of the drive. The problems here are that the new free space must be big enough to hold all the files from the btrfs and that all the data has to be moved. So my question is: Is there some other, preferably more elegant and generally applicable, way to expand a btrfs at the beginning? ***Edit: (Solution)*** Even if GParted might be able to resize at the beginning by automatically moving the filesystem, I tried the way described above since I have the free space. As it took ages (perhaps because of many subvolumes), used many cpu and I/O resources and then aborted with an I/O error, I used btrfs replace instead which worked just fine: It took a few hours during which the computer was perfectly usable.
jorsn (183 rep)
Oct 31, 2017, 10:04 AM • Last activity: Sep 19, 2025, 08:06 PM
0 votes
1 answers
1284 views
ssh stuck at debug1: client_input_channel_req: channel 0 rtype keepalive@openssh.com reply 1
I am trying to ssh into a device like the following: ssh admin@169.254.10.1 then its asks for the password, as soon as I enter the password it shows the last login and then the cursor starts blinking in the next line without opening the prompt: C:\Windows\system32>ssh admin@169.254.10.1 admin@169.25...
I am trying to ssh into a device like the following: ssh admin@169.254.10.1 then its asks for the password, as soon as I enter the password it shows the last login and then the cursor starts blinking in the next line without opening the prompt: C:\Windows\system32>ssh admin@169.254.10.1 admin@169.254.10.1's password: Last login: Tue Sep 5 09:42:25 2023 from 169.254.52.134 how do I proceed further into the device? I tried using -vvv then it shows the following: rahulsharma@Rahuls-MacBook-Air ~ % ssh admin@192.168.1.16 -vvv OpenSSH_9.0p1, LibreSSL 3.3.6 debug1: Reading configuration data /Users/rahulsharma/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files debug1: /etc/ssh/ssh_config line 54: Applying options for * \debug2: resolve_canonicalize: hostname 192.168.1.16 is address debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/rahulsharma/.ssh/known_hosts' debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/rahulsharma/.ssh/known_hosts2' debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling debug3: ssh_connect_direct: entering debug1: Connecting to 192.168.1.16 [192.168.1.16] port 22. debug3: set_sock_tos: set socket 3 IP_TOS 0x48 debug1: Connection established. debug1: identity file /Users/rahulsharma/.ssh/id_rsa type -1 debug1: identity file /Users/rahulsharma/.ssh/id_rsa-cert type -1 debug1: identity file /Users/rahulsharma/.ssh/id_ecdsa type -1 debug1: identity file /Users/rahulsharma/.ssh/id_ecdsa-cert type -1 debug1: identity file /Users/rahulsharma/.ssh/id_ecdsa_sk type -1 debug1: identity file /Users/rahulsharma/.ssh/id_ecdsa_sk-cert type -1 debug1: identity file /Users/rahulsharma/.ssh/id_ed25519 type 3 debug1: identity file /Users/rahulsharma/.ssh/id_ed25519-cert type -1 debug1: identity file /Users/rahulsharma/.ssh/id_ed25519_sk type -1 debug1: identity file /Users/rahulsharma/.ssh/id_ed25519_sk-cert type -1 debug1: identity file /Users/rahulsharma/.ssh/id_xmss type -1 debug1: identity file /Users/rahulsharma/.ssh/id_xmss-cert type -1 debug1: identity file /Users/rahulsharma/.ssh/id_dsa type -1 debug1: identity file /Users/rahulsharma/.ssh/id_dsa-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_9.0 debug1: Remote protocol version 2.0, remote software version OpenSSH_8.2 debug1: compat_banner: match: OpenSSH_8.2 pat OpenSSH* compat 0x04000000 debug2: fd 3 setting O_NONBLOCK debug1: Authenticating to 192.168.1.16:22 as 'admin' debug1: load_hostkeys: fopen /Users/rahulsharma/.ssh/known_hosts2: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory debug3: order_hostkeyalgs: no algorithms matched; accept original debug3: send packet: type 20 debug1: SSH2_MSG_KEXINIT sent debug3: receive packet: type 20 debug1: SSH2_MSG_KEXINIT received debug2: local client KEXINIT proposal debug2: KEX algorithms: sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256 debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 debug2: compression ctos: none,zlib@openssh.com,zlib debug2: compression stoc: none,zlib@openssh.com,zlib debug2: languages ctos: debug2: languages stoc: debug2: first_kex_follows 0 debug2: reserved 0 debug2: peer server KEXINIT proposal debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256 debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ssh-rsa debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 debug2: compression ctos: none debug2: compression stoc: none debug2: languages ctos: debug2: languages stoc: debug2: first_kex_follows 0 debug2: reserved 0 debug1: kex: algorithm: curve25519-sha256 debug1: kex: host key algorithm: rsa-sha2-512 debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: compression: none debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: compression: none debug3: send packet: type 30 debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug3: receive packet: type 31 debug1: SSH2_MSG_KEX_ECDH_REPLY received debug1: Server host key: ssh-rsa SHA256:lo8VeFhLKWf4YLYyYOWlgYcqQo6JGeIp2O6JZbJV/oY debug1: load_hostkeys: fopen /Users/rahulsharma/.ssh/known_hosts2: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory debug3: hostkeys_find_by_key_hostfile: trying user hostfile "/Users/rahulsharma/.ssh/known_hosts" debug3: hostkeys_foreach: reading file "/Users/rahulsharma/.ssh/known_hosts" debug1: hostkeys_find_by_key_cb: found matching key in ~/.ssh/known_hosts:4 debug1: hostkeys_find_by_key_cb: found matching key in ~/.ssh/known_hosts:5 debug3: hostkeys_find_by_key_hostfile: trying user hostfile "/Users/rahulsharma/.ssh/known_hosts2" debug1: hostkeys_find_by_key_hostfile: hostkeys file /Users/rahulsharma/.ssh/known_hosts2 does not exist debug3: hostkeys_find_by_key_hostfile: trying system hostfile "/etc/ssh/ssh_known_hosts" debug1: hostkeys_find_by_key_hostfile: hostkeys file /etc/ssh/ssh_known_hosts does not exist debug3: hostkeys_find_by_key_hostfile: trying system hostfile "/etc/ssh/ssh_known_hosts2" debug1: hostkeys_find_by_key_hostfile: hostkeys file /etc/ssh/ssh_known_hosts2 does not exist The authenticity of host '192.168.1.16 (192.168.1.16)' can't be established. RSA key fingerprint is SHA256:lo8VeFhLKWf4YLYyYOWlgYcqQo6JGeIp2O6JZbJV/oY. This host key is known by the following other names/addresses: ~/.ssh/known_hosts:4: 192.168.1.24 ~/.ssh/known_hosts:5: 169.254.10.1 Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '192.168.1.16' (RSA) to the list of known hosts. debug3: send packet: type 21 debug2: ssh_set_newkeys: mode 1 debug1: rekey out after 134217728 blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug3: receive packet: type 21 debug1: SSH2_MSG_NEWKEYS received debug2: ssh_set_newkeys: mode 0 debug1: rekey in after 134217728 blocks debug1: get_agent_identities: bound agent to hostkey debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no identities debug1: Will attempt key: /Users/rahulsharma/.ssh/id_rsa debug1: Will attempt key: /Users/rahulsharma/.ssh/id_ecdsa debug1: Will attempt key: /Users/rahulsharma/.ssh/id_ecdsa_sk debug1: Will attempt key: /Users/rahulsharma/.ssh/id_ed25519 ED25519 SHA256:WPKAU4zppdVLB60mOTZbjK+xEpjsQQ5skQ0HcB/jpeA debug1: Will attempt key: /Users/rahulsharma/.ssh/id_ed25519_sk debug1: Will attempt key: /Users/rahulsharma/.ssh/id_xmss debug1: Will attempt key: /Users/rahulsharma/.ssh/id_dsa debug2: pubkey_prepare: done debug3: send packet: type 5 debug3: receive packet: type 7 debug1: SSH2_MSG_EXT_INFO received debug1: kex_input_ext_info: server-sig-algs= debug3: receive packet: type 6 debug2: service_accept: ssh-userauth debug1: SSH2_MSG_SERVICE_ACCEPT received debug3: send packet: type 50 debug3: receive packet: type 51 debug1: Authentications that can continue: publickey,password debug3: start over, passed a different list publickey,password debug3: preferred publickey,keyboard-interactive,password debug3: authmethod_lookup publickey debug3: remaining preferred: keyboard-interactive,password debug3: authmethod_is_enabled publickey debug1: Next authentication method: publickey debug1: Trying private key: /Users/rahulsharma/.ssh/id_rsa debug3: no such identity: /Users/rahulsharma/.ssh/id_rsa: No such file or directory debug1: Trying private key: /Users/rahulsharma/.ssh/id_ecdsa debug3: no such identity: /Users/rahulsharma/.ssh/id_ecdsa: No such file or directory debug1: Trying private key: /Users/rahulsharma/.ssh/id_ecdsa_sk debug3: no such identity: /Users/rahulsharma/.ssh/id_ecdsa_sk: No such file or directory debug1: Offering public key: /Users/rahulsharma/.ssh/id_ed25519 ED25519 SHA256:WPKAU4zppdVLB60mOTZbjK+xEpjsQQ5skQ0HcB/jpeA debug3: send packet: type 50 debug2: we sent a publickey packet, wait for reply debug3: receive packet: type 51 debug1: Authentications that can continue: publickey,password debug1: Trying private key: /Users/rahulsharma/.ssh/id_ed25519_sk debug3: no such identity: /Users/rahulsharma/.ssh/id_ed25519_sk: No such file or directory debug1: Trying private key: /Users/rahulsharma/.ssh/id_xmss debug3: no such identity: /Users/rahulsharma/.ssh/id_xmss: No such file or directory debug1: Trying private key: /Users/rahulsharma/.ssh/id_dsa debug3: no such identity: /Users/rahulsharma/.ssh/id_dsa: No such file or directory debug2: we did not send a packet, disable method debug3: authmethod_lookup password debug3: remaining preferred: ,password debug3: authmethod_is_enabled password debug1: Next authentication method: password admin@192.168.1.16's password: debug3: send packet: type 50 debug2: we sent a password packet, wait for reply debug3: receive packet: type 52 Authenticated to 192.168.1.16 ([192.168.1.16]:22) using "password". debug1: channel 0: new [client-session] debug3: ssh_session2_open: channel_new: 0 debug2: channel 0: send open debug3: send packet: type 90 debug1: Requesting no-more-sessions@openssh.com debug3: send packet: type 80 debug1: Entering interactive session. debug1: pledge: filesystem debug3: receive packet: type 80 debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0 debug3: client_input_hostkeys: received RSA key SHA256:lo8VeFhLKWf4YLYyYOWlgYcqQo6JGeIp2O6JZbJV/oY debug1: client_input_hostkeys: searching /Users/rahulsharma/.ssh/known_hosts for 192.168.1.16 / (none) debug3: hostkeys_foreach: reading file "/Users/rahulsharma/.ssh/known_hosts" debug3: hostkeys_find: found ssh-rsa key under different name/addr at /Users/rahulsharma/.ssh/known_hosts:4 debug3: hostkeys_find: found ssh-rsa key under different name/addr at /Users/rahulsharma/.ssh/known_hosts:5 debug3: hostkeys_find: found ssh-rsa key at /Users/rahulsharma/.ssh/known_hosts:6 debug1: client_input_hostkeys: searching /Users/rahulsharma/.ssh/known_hosts2 for 192.168.1.16 / (none) debug1: client_input_hostkeys: hostkeys file /Users/rahulsharma/.ssh/known_hosts2 does not exist debug3: client_input_hostkeys: 1 server keys: 0 new, 1 retained, 0 incomplete match. 0 to remove debug1: client_input_hostkeys: no new or deprecated keys from server debug3: receive packet: type 91 debug2: channel_input_open_confirmation: channel 0: callback start debug2: fd 3 setting TCP_NODELAY debug3: set_sock_tos: set socket 3 IP_TOS 0x48 debug2: client_session2_setup: id 0 debug2: channel 0: request pty-req confirm 1 debug3: send packet: type 98 debug1: Sending environment. debug3: Ignored env __CFBundleIdentifier debug3: Ignored env TMPDIR debug3: Ignored env XPC_FLAGS debug3: Ignored env TERM debug3: Ignored env SSH_AUTH_SOCK debug3: Ignored env XPC_SERVICE_NAME debug3: Ignored env TERM_PROGRAM debug3: Ignored env TERM_PROGRAM_VERSION debug3: Ignored env TERM_SESSION_ID debug3: Ignored env SHELL debug3: Ignored env HOME debug3: Ignored env LOGNAME debug3: Ignored env USER debug3: Ignored env PATH debug3: Ignored env SHLVL debug3: Ignored env PWD debug3: Ignored env OLDPWD debug1: channel 0: setting env LC_CTYPE = "UTF-8" debug2: channel 0: request env confirm 0 debug3: send packet: type 98 debug3: Ignored env _ debug3: Ignored env __CF_USER_TEXT_ENCODING debug2: channel 0: request shell confirm 1 debug3: send packet: type 98 debug2: channel_input_open_confirmation: channel 0: callback done debug2: channel 0: open confirm rwindow 0 rmax 32768 debug3: receive packet: type 99 debug2: channel_input_status_confirm: type 99 id 0 debug2: PTY allocation request accepted on channel 0 debug2: channel 0: rcvd adjust 2097152 debug3: receive packet: type 99 debug2: channel_input_status_confirm: type 99 id 0 debug2: shell request accepted on channel 0 Last login: Fri Sep 8 05:43:22 2023 from 169.254.99.139 This is my ssh_config file: # $OpenBSD: ssh_config,v 1.35 2020/07/17 03:43:42 dtucker Exp $ # This is the ssh client system-wide configuration file. See # ssh_config(5) for more information. This file provides defaults for # users, and the values can be changed in per-user configuration files # or on the command line. # Configuration data is parsed as follows: # 1. command line options # 2. user-specific file # 3. system-wide file # Any configuration value is only changed the first time it is set. # Thus, host-specific definitions should be at the beginning of the # configuration file, and defaults at the end. # This Include directive is not part of the default ssh_config shipped with # OpenSSH. Options set in the included configuration files generally override # those that follow. The defaults only apply to options that have not been # explicitly set. Options that appear multiple times keep the first value set, # unless they are a multivalue option such as IdentityFile. Include /etc/ssh/ssh_config.d/* # Site-wide defaults for some commonly used options. For a comprehensive # list of available options, their meanings and defaults, please see the # ssh_config(5) man page. # Host * # ForwardAgent no # ForwardX11 no # PasswordAuthentication yes # HostbasedAuthentication no # GSSAPIAuthentication no # GSSAPIDelegateCredentials no # BatchMode no # CheckHostIP yes # AddressFamily any # ConnectTimeout 0 # StrictHostKeyChecking ask # IdentityFile ~/.ssh/id_rsa # IdentityFile ~/.ssh/id_dsa # IdentityFile ~/.ssh/id_ecdsa # IdentityFile ~/.ssh/id_ed25519 # Port 22 # Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc # MACs hmac-md5,hmac-sha1,umac-64@openssh.com # EscapeChar ~ # Tunnel no # TunnelDevice any:any # PermitLocalCommand no # VisualHostKey no # ProxyCommand ssh -q -W %h:%p gateway.example.com # RekeyLimit 1G 1h # UserKnownHostsFile ~/.ssh/known_hosts.d/%k Host * SendEnv LANG LC_*
Rahul Sharma (101 rep)
Sep 7, 2023, 09:55 AM • Last activity: Sep 19, 2025, 07:51 PM
1 votes
2 answers
59 views
How to have bash logging ("set -x") only log the main command line (not split into pipelines)?
Consider this one-liner bash example: ``` $ (function test() { echo "testing a string" | grep "a" | sed 's/i/y/g'; }; set -x; test | grep "test" ) + grep --color=auto test + test + grep --color=auto a + sed s/i/y/g + echo 'testing a string' testyng a stryng ``` The "main" command line after the `set...
Consider this one-liner bash example:
$  (function test() { echo "testing a string" | grep "a" | sed 's/i/y/g'; }; set -x; test | grep "test" )
+ grep --color=auto test
+ test
+ grep --color=auto a
+ sed s/i/y/g
+ echo 'testing a string'
testyng a stryng
The "main" command line after the set -x here is test | grep "test"; could I somehow set up bash to only log the "main" command lines? In this case I'd simply want the printout
+ test | grep "test"
testyng a stryng
sdbbs (590 rep)
Sep 18, 2025, 01:43 PM • Last activity: Sep 19, 2025, 07:35 PM
0 votes
1 answers
13655 views
How to Install GTK-2 on Linux
I tried installing "libgtk2.0-dev" with below command. But it failed with yum install libgtk2.0-dev Error "No package libgtk2.0-dev available" There are many posts related to this issue but none works out as no post covered this issue in entirety example: One Post recommended to follow below steps....
I tried installing "libgtk2.0-dev" with below command. But it failed with yum install libgtk2.0-dev Error "No package libgtk2.0-dev available" There are many posts related to this issue but none works out as no post covered this issue in entirety example: One Post recommended to follow below steps. I tried it but of no avail yum groupinstall "Development Tools" yum install gtk+-devel gtk2-devel I am using "Red Hat Enterprise Linux Server release 5.3 (Tikanga)". Can someone help with steps to install this library ( in plain english as I have never installed one )
Revenant (1 rep)
Mar 7, 2017, 06:52 AM • Last activity: Sep 19, 2025, 07:03 PM
0 votes
0 answers
26 views
shared mem synchronization with xen
I use xen with a buildroot on the CPU0 and a baremetal written in C on the CPU1. The arch is ARM64. The shared mem works with 1k of pages (an array of 4096 values). I am trying to send data from the linux to the baremetal and the opposite. I have written this code : Linux : #define BUFF_SIZE 4096 #d...
I use xen with a buildroot on the CPU0 and a baremetal written in C on the CPU1. The arch is ARM64. The shared mem works with 1k of pages (an array of 4096 values). I am trying to send data from the linux to the baremetal and the opposite. I have written this code : Linux : #define BUFF_SIZE 4096 #define ITERATIONS 10000 volatile char *memory = (volatile char *)xc_map_foreign_range(xc, domainid, 0x1000, PROT_WRITE | PROT_READ, (unsigned long) 40000000 >>12); uint8_t *local_buf = malloc(BUF_SIZE); memset(local_buf, 0xAB, BUF_SIZE); int i; double start = now(); memory = 0; for (i = 0; i < ITERATIONS; i++) { memcpy(memory+1, local_buf, BUF_SIZE-1); truc = 1; while (memory) __asm__ volatile("yield"); } double end = now(); double elapsed = end - start; double total_bytes = (double)BUF_SIZE * 1 * ITERATIONS; // écriture + lecture double mbps = (total_bytes / elapsed) / (1024.0 * 1024.0); printf("%.2f MB in %.3f sec = %.2f MB/s\n", total_bytes / (1024.0 * 1024.0), elapsed, mbps); Baremetal : uint8_t *local = (uint8_t *) malloc(sizeof(uint8_t) * 0x1000); volatile char *tmp = (uint8_t *) (BUF+0); for (;;) { if (tmp == 1) { memcpy(local, (uint8_t *) tmp+1, 0x10000-4); tmp = 0; } } I know, this is archaic ! My problem is the sync method, but with a baremetal I don't know if an other method is possible. More than 2G/s without sync but 200K/s with. I must have 5M/s at least. I tried to use the event libs from xen but my project is complex and includes a lot of libs from xilinx. What other method exists? --- edit --- I want to send ip packets with latency less than 10 ms because I will have video and audio data. Max size is 4096 bytes per packets but most of time it should be around 1500 bytes because of MTU.
rbe (61 rep)
Sep 19, 2025, 04:51 PM • Last activity: Sep 19, 2025, 06:54 PM
Showing page 1 of 20 total questions