RSS Amplifier

Blog

Recent Questions - Unix & Linux Stack Exchange

most recent 30 from unix.stackexchange.com

unix.stackexchange.comSource feed ↗36 posts

Live Last read · last published · next check

Latest posts

systemd, dependency on a check tool

I need to run a "check" type of tool before starting several daemons. How to do it? Basically, I want something like #!/bin/sh check_files_for_consistency || exit daemon_one & daemon_two & How to do that in services of systemd? For one daemon, I can just define the ExecStartPre . But how to share that for the second daemon? ; first daemon [Unit] Before=deamon_two.service [Service] Type=notify…

MediaTek MT7921e disconnects exactly every 60 seconds on 160MHz Wi-Fi 6 (Reason: 3=DEAUTH_LEAVING)

OS: Zorin OS 17 (Ubuntu 22.04 LTS Base) Hardware: HP Victus Laptop, AMD Ryzen 5600H, MediaTek MT7922 (using mt7921e driver) Router: Jio AirFiber Router using (Wi-Fi 6 / 802.11ax), 160MHz Channel Width for 5Ghz I am experiencing mathematically precise Wi-Fi disconnects on the 5GHz band exactly *every 60 to 70 seconds. It does not matter even if the connection is idle. The kernel logs ('') show that…

Why does my laptop Dell XPS 15 9570 shut down instead of sleeping?

After a period of inactivity, my laptop shuts down and it's very hard to turn it on back again, instead of sleeping as it is configured by default. My laptop is an Dell XPS 15 9570, and my OS is Debian 13 Linux/GNU.

How do I find out which bluetooth codecs are supported by my computer's bluetooth adapters?

What utilities can I used to find out which bluetooth codecs are supported by my computer's bluetooth adapters? When it connects to a sound output device how do I tell which codec is in use, and how it was negotiated?

How do I set WSL to use the color scheme for Git Bash?

I recently tried out WSL, and I think it is fantastic. However, after nearly a decade of Git Bash, the default color scheme of WSL is terrible, in my firm opinion. I guess my question is multi-part, in a few ways. Here are the sub-questions. Where do I go to get the color scheme used for ls in Git Bash? I tried echo $LS_COLORS , and it returns nothing. But making LS_COLORS be empty string in WSL…

Issue with Port Proton

I recently bought a Steam Deck and I installed a few non-steam games via PortProton which was easily set up. Now I have a microSD and I thought I could copy/paste the games from the SSD onto the microSD. The games which need PortProton don't get recognized anymore, nor can I "add to steam" via PortProton anymore. Cutting and pasting them back onto the SSD also does not work anymore (the games…

Pipe to tar for simpler from-GitHub installation [duplicate]

I found this great example of how to install the latest release on GitHub over at Taplo : curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-linux-x86_64.gz | gzip -d - | install -m 755 /dev/stdin /usr/local/bin/taplo I like this, because it's a one-liner for what I used to do in several manual steps. However, it only works with .gz archives and I can't figure out how to…

How many passes of MemTest86+ are recommended for a RAM test?

This is a follow-up question to the question above: Is it possible to fix bit flips and page faults on a 32 GB SODIMM in a Thinkpad T480? I want to test specific RAM sticks for errors. They are used RAM sticks that I received yesterday. Are the test runs always the same, and should I change or adjust anything in the configuration, or should I simply start MemTest86+ and let it run? How many test…

systemd service with three processes continues to run when one process crashes

I have a systemd service that runs a sh command line, which, in turn, starts two further python scripts which are chained together by a pipe - stdout from the first 'feeds' stdin of the second, which then does some processing and saves the resulting data to a remote database. When the service is running, I see three processes - the sh process, which is sleeping, waiting for the chained scripts to…

Restore graphics configuration in Debian

Context I have a Debian Trixie (13) installation that I've been upgrading since many stable versions ago, and from laptop to laptop. And I do not want to reinstall or switch OS. However, some months ago, some apps started to freeze and I traced it down to usage of the graphic card. It is an integrated Intel one. Hints The simplest proof of this is that glxgears shows only a black window. I…

USB Mouse troubles - psmouse didn't manage both services

I'm learning about what this driver does. My issue is when I connect my USB mouse; this has a probability to freeze my system :/. I don't have problems using my Dell dragboard, the issue takes relevance using my mouse. This I've found in dmesg logs: angel@debian13/dev/input$ sudo dmesg | grep -i mouse [sudo] contraseña para angel: [ 0.890491] mousedev: PS/2 mouse device common for all mice […

Unable to detect Python kernels in VS Code Jupyter notebooks after migrating from Windows 11 to Arch Linux

Environment Details Previous OS : Windows 11 Current OS : Arch Linux Desktop Environment : KDE Plasma IDE : Visual Studio Code ( OSS CODE ) Required Feature : Jupyter Notebook support Issue Description After migrating from Windows 11 to Arch Linux, I'm unable to get Jupyter notebooks working in VS Code. Specifically, VS Code cannot detect any Python kernels for the notebooks, preventing me from…

SSH hangs/disconnects unless using `-v` option

I have a raspberry pi setup. When connected over ethernet ssh sometimes hangs, but generally works. When connected over wifi ssh is extremely choppy (8/10 connections fail, if I connect it drops within 5 minutes). The interesting part: ssh -v pi.local works flawlessly every time. Potentially some sort of network issue, that the verboseness of -v fixes? Acting as a keep alive? Any idea what config…

Windows 11 (22H2) and Ubuntu server (Samba) compatibility problem

In February some workers in my office got new computers with Windows 11 version 22H2. After joining them to the domain (domain controller is Ubuntu 18.04.6 LTS), nobody could log in on these new computers. I found a solution - to check "Use only Kerberos DES encryption for this account" in AD Users and Computers. I turned this option on for users with new computers. Then they were able to log in,…

How to install libqt4-dev in Ubuntu 20.02

I'm trying to install libqt4-dev on Ubuntu 20.04 but I get the following errors: kjs@PC:~/Downloads$ sudo apt-get install -y libqt4-dev Reading package lists... Done Building dependency tree... 50% Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: libqt4-dev : Depends:…

Recommended scheme for partitioning root file system into subvolumes following the Filesystem Hierarchy Standard

The Filesystem Hierarchy Standard (FHS) is the formal codification for root file tree on Linux installations, as inherited from earlier iterations of Unix and POSIX, and subsequently adapted. It standardizes the exact uses of the familiar /home , /etc , /usr , /var , and so on, from various historic differences of convention, and resolves where application-specific and site-specific file names may…

ffmpeg dash playback stream ends too early

I am trying to play back a dash manifest using ffmpeg but I keep running into the issue of ffmpeg ending with the error [http @ 0x671e580] Stream ends prematurely at 2250, should be 18446744073709551615 The dash manifest is for a livestream. I have tested the live stream in VLC player on Windows and MX player on Android and it plays perfectly fine. The issue seems to be just with ffmpeg . Has…

zip then transfer files from one server to another using scp or rsync

I have estimated 44 GB of data from my web server. I want to transfer it to another server with less time. I am using Putty to transfer file. is there any way to achieve this? I don't know which commands to use but some blogs said to use rsync or scp to transfer these files. your help is greatly appreciated. I've tried scp from local to server but I what I need is from server to server.

Only show entries of the last hour of apache access.log file

I have a huge logfile access.log with entries like: 192.11.111.111 - - [05/Mar/2021:00:00:02 +0100] "GET ..." 192.250.14.80 - - [05/Mar/2021:00:00:09 +0100] "GET ..." 12.249.66.42 - - [05/Mar/2021:00:00:13 +0100] "GET ..." How can I get/filter entries of the last hour only?

How to change the keyboard layout in busybox

I turned off the computer, but when I opened it again, it gave me an error: I find the solution of it,(i need to write fsck /dev/sda8 ) however my keyboard is in russian, so i can not type anything in english. I started search about the problem and found it https://ubuntuforums.org/archive/index.php/t-1002358.html . This guy had a similar problem, so i tried it press e for edit highlight the…

OSSEC HIDS Installation Error

When I try to run the ./install.sh script for the OSSEC HIDS, I keep getting these weird errors: /usr/bin/ld: client-agent/config.o:(.bss+0x0): multiple definition of `server_ibuf'; client-agent/agentd.o:(.bss+0x0): first defined here /usr/bin/ld: client-agent/event-forward.o:(.bss+0x0): multiple definition of `server_ibuf'; client-agent/agentd.o:(.bss+0x0): first defined here /usr/bin/ld:…

Failed to start OpenSSH server daemon loop preventing boot Centos 8

I attempted to allow a usergroup "students" to use password log in over ssh by adding the lines: Match Group students PasswordAuthentication yes to the end of my /etc/ssh/sshd_config file. Then, as the server had been up for 3 weeks or so I decided to run a full yum update and reboot the system. From this point on it has failed to boot. While booting, I see a spinning circle of lines for a while,…

CIFS mount status

I have some embedded devices running Linux (4.14.126), and i want them to write some of their logfiles to a network share on another (Windows 10) computer. Mounting the network share works mostly fine, apart from the fact that i have to provide login credentials (which i wanted to avoid), but i need some reliable way to detect a broken mount (for example when i reboot the PC). Is it possible to…

Timeout when connecting RDS using AWS session manager via EC2 instance

I am having trouble accessing AWS RDS instance in a private subnet using session manager through ec2 instance (Ubuntu). Port forwarding using AWS Session manager - aws ssm start-session --target $INSTANCE_ID \ --document-name AWS-StartPortForwardingSession \ --parameters '{"portNumber":[3307],"localPortNumber":["8000"]}' \ --profile=production \ --region=us-east-1` Now local port 8000 successfully…

Dovecot Sieve Trace does not create a log

I have a problem with my Dovecot 2.2.33.2 and Sieve Pigeonhole 0.4.21. I want to trace which Sieve rules are used if a mail gets moved, deleted, rejected, or whatever Sieve does with the mail. So I found the sieve_trace settings, but Sieve doesn't create a trace log file. I have set up trace debugging in my /etc/dovecot/conf.d/90-sieve.conf , and it looks like this: ## TRACE DEBUGGING # Trace…

High CPU Usage from systemd-udevd

I have a dell studio 1569 and just installed linux onto it. I noticed that the cpu has been running high due to systemd-udevd. Going though different posts on the web including this one, I used "udevadm monitor" to help narrow down what was happening, and here is the output: I first assumed a usb, so I plugged in and unplugged from all ports but soon discovered it did not have the same path as…

grub2 error disk 'hd0,msdos1' not found, ls shows no disk

I have googled a lot for this problem. I found this , but it didn't solve my problem. Other solutions suggest me to reinstall grub (run grub-install), which didn't work either. Here is what I am doing: (my grub version is 2.02) I use grub2-mkrescue to make my X.iso I boot a VMWareWorkstation virtual machine, which has a 1.0GB SATA disk, from X.iso I install X.iso on disk, the details are: erase…

Could not find a suitable MPI compiler (mpicxx or mpic++) whlie using "make -f Makefile.shlib auto"

I'm using Linux to install LIGGGHTS. When I type make -f Makefile.shlib auto , it shows me [auto] Error 2 . I tried to set USE_MPI to OFF , but it did't work. My question is, how do l use the MPICXX_USR variable?

Unable to generate keys for openvpn using easy-rsa

I've been following a tutorial to set up my Raspberry Pi to run OpenVPN (I'm quite new to the Pi and networking, and this seemed to be a fun intro project). However, I've run into a road block when trying to generate keys using easy-rsa. I've edited the vars file to point to the easy-rsa directory, but whenever I try to source the vars file, I get the following message: -bash:…

Mailx command to send the email to gmail account with content type as Content-Type: text/html

I have installed the mailx , on Red Hat Enterprise Linux Server release 7.2 Am able to send the mail successfully, with following command. echo -e "Body content goes here ..." | mailx -v -r "sendermail_id@x.com" -s "subject content goes here" -S smtp=smtp://x.x.x.x receivermail_id@.com Above command sends mail with plain text in the body I want a command wherein i can send mail with html type…

Fixing a problem with lightdm; boot-loop

I think I messed up my Ubuntu 17.04 a little. In order to describe my problem I can only provide the symptoms + a suspicious log-file. My quenstion on this is: 1.: Can I repair it by doing something with lightdm? (cf. below)? Symptoms: When I start the pc, it never reaches the log-in-mask. Instead it seems to be trying to launch the graphical surface over and over again, but always fails to do so.…

How to mount an NTFS partition writable for a non-root user?

I am using Debian 8.8 and am using ntfs-3g to mount an NTFS partition in /etc/fstab . Here is my entry: /dev/sdc1 /mnt/data_backup ntfs-3g rw,uid=1000,gid=1000,dmask=0002,fmask=0003 0 0 It is fine for my account userA to read and write the partition. However, my workstation is open to another userB which is not in the root group. Is there any way to make the partition writable for the non-root…

extglob negation not working as expected

I was trying to use negation to exclude directories from globbing, but directories still appear in pattern match: bash-4.3$ ls file_1.txt testdir bash-4.3$ shopt extglob extglob on bash-4.3$ echo !(*/) file_1.txt testdir bash-4.3$ What exactly am I doing wrong ? Note:I know I can use for loop with [ or find command, but I'm trying to figure out extglob specifically.

How can I install the unity-desktop on Red Hat?

I am using a computer system with the gnome desktop system, with which I am not able to work properly (resizing of windows does not work etc). Therefore I would like to install the unity-desktop. Is that possible on Redhat (Red Hat Enterprise Linux Workstation release 6.8 (Santiago))? And if so, how? A simple yum install unity did not find anything....

Trying to connect bose quietcomfort 35 headset over bluetooth on arch linux

There is another question here , but i followed those instructions and it still didn't work. Here is the systemctl status Oct 06 10:02:38 TRAYUSH bluetoothd[376]: Bluetooth daemon 5.42 Oct 06 10:02:38 TRAYUSH systemd[1]: Started Bluetooth service. Oct 06 10:02:38 TRAYUSH bluetoothd[376]: Starting SDP server Oct 06 10:02:38 TRAYUSH bluetoothd[376]: Bluetooth management interface 1.12 initialized…

Where do my ANSI escape codes go when I pipe to another process? Can I keep them?

I sometime want to pipe the color-coded output fror a process, eg. grep... but when I pipe it to another process, eg. sed, the color codes are lost... Is the some way to keep thes codes intact ? Here is an example which loses the colored output: echo barney | grep barney | sed -n 1,$\ p