All Questions

Filter by
Sorted by
Tagged with
1 vote
3 answers
759 views

OpenGL fails to load due to nvidia driver

I have 2 video cards and installed the nvidia driver: ❯ lspci -nnk | grep -iA3 -E "(vga|NVIDIA).*(controller|GeForce)" 00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics ...
0 votes
3 answers
53 views

What are the file size options for "find . -size" command?

I found out that to look for file size in bytes, I use 'c'. So I can look for file size with 1000 bytes by using: find . -size 1000c But what about different kind of size such as Mb, Gb or even bits? ...
0 votes
0 answers
3 views

Stamp serial / bates number while printing

I want to print 50 copies of the same 16-page document but have a serial number stamped on each one. I'm printing to a Ricoh/Lanier multifunction printer. Right now I print and staple through lpr with ...
0 votes
0 answers
5 views

Archlinux - no package found when upgrade through yay

When trying to update system, I encounter a peculiar issue where yay identifies that a nodejs-lts-gallium would need to be upgraded, through direct? or indirect (most likely) depdency: $ yay -Syu (...)...
3 votes
4 answers
6k views

Kali Linux on WSL break after upgrade

so my problem is as follows. I install Kali Linux from the wsl store with $wsl --install -d kali-linux. Following has been installed PRETTY_NAME="Kali GNU/Linux Rolling" NAME="Kali GNU/...
2 votes
1 answer
3k views

CentOS 7 stuck at grub prompt after upgrading Kernel

I tried to upgrade the Kernel using YUM and when I ran [root@AFIBAMBOO bin]# grub2-mkconfig -o /boot/grub2/grub.cfg No path or device is specified. Usage: grub2-probe [OPTION...] [OPTION]... [PATH|...
1 vote
1 answer
26 views

How to reliably maintain watches on edited files with inotify?

I'd like to monitor a file with inotify, and trigger some code when someone changes the content (IN_MODIFY or IN_CLOSE_WRITE), but I'm running into problems where inotify stops returning events when ...
0 votes
1 answer
2k views

How to Add some System Memory to be shared with the GPU in Linux?

I have switched from Windows 10 to linux mint 21.1 I tried playing GTA 5 on lutris (wine emulation) however the game is almost unplayable on linux as big parts of the map will not load because of my ...
1 vote
2 answers
2k views

Displaying messages to tty using whiptail through monit

I would like to display a whiptail message on the login screen that is triggered by monit, but I am without luck. I understand it might be something to do with interactive/non-interactive shell. Here ...
2 votes
0 answers
28 views

Ubuntu server, packets from outside network not reaching local socket but seen on tcpdump

I am running Ubuntu server 22.04, and have a peculiar port forwarding issue with a local machine. This machine has two Ethernet interfaces and the connected enp1s0 interface has an IP address 192.168....
0 votes
0 answers
8 views

slurm - is it possible to query slurmctld/slurmd to know if they are using the right slurm.conf version?

I am facing a problem where slurmctld and slurmd are not in sync in terms of using the same slurm.conf file so we have this: error: Node node1 appears to have a different slurm.conf than the slurmctld....
2 votes
4 answers
86 views

How prepend appropriate amount of 0's to numbers contained in image names?

I've got a folder /User/me/Desktop/folder/images with files like key 1--name.jpg, key 10--name1.jpg, etc. The files are sorted incorrectly when fed to my site so I get an arrangement like key 84--name....
4 votes
3 answers
2k views

Flush the pipe/printf buffers externally for already running process with known PID

I am writing a data logging app, all programs are started like: ./program > out.bin The data collector periodically pools the stdout output files and reads the data. The issue is that the IO ...
0 votes
3 answers
180 views

sudo: get sound playback running as another user

I block all Internet traffic for my kids' Linux accounts using iptables. Sometimes I want to allow them to use one program or another. In such cases I enable them to run that programs as another(...
-1 votes
1 answer
32 views

What is so bad about Debian Nouveau drivers for NVIDIA GPU?

After breaking my setup for the 9999999^10th time with Nvidia Firmware & Drivers, I just did: sudo apt purge nvidia* sudo apt purge cuda* Now my system boots faster and I really can't tell the ...
0 votes
1 answer
3k views

Old CentOS 5.6, Due to github.com delete the TLSv1/TLSv1.1 support, How can I access to github.com/repo.git using git system

Now I have a cluster with Rocks 5.4 based on CentOS 5.6. When I git push the code to github.com, I run into the errors: error: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert ...
9 votes
2 answers
1k views

What does "6" mean in glibc.so.6?

When exploring the C++ binary, I find that libstdc++.so.6 is dyn-linked into libm.so.6 and libc.so.6: ldd /lib/x86_64-linux-gnu/libstdc++.so.6 linux-vdso.so.1 (0x00007ffcb737b000) ...
1 vote
0 answers
23 views

How to config SSH authen with all 3 components: publickey, password and OTP

Update 1: I'm able to apply all publickey + password + OTP with this basic config in /etc/pam.d/common-auth. auth [success=ok] pam_unix.so auth [success=1] pam_google_authenticator.so nullok ...
3 votes
1 answer
142 views

How to get display to show a pdf properly

When I do: display file.pdf it shows this: I can't resize the little window that it adds but I can remove it by clicking on the x. I can also remove the checkerboard effect that comes from assuming ...
2 votes
4 answers
4k views

Count the maximum character length for all the data fields in a simplified csv file and output to txt

Given a simplified CSV (max one line per row) with many data fields (>50), how can I count the maximum character length for each data field and then export all the counts to a txt file? BTW, I want to ...
6 votes
3 answers
2k views

Pass login messages to tmux

When I login, I connect to a tmux session (either by exec'ing tmux if there is no current session, or exec'ing tmux attach if there is). However this means I don't see the login messages (/etc/issue, /...
0 votes
0 answers
18 views

Behavior of ffmpeg when recording a stream and then network does not work for a while

I think it would be good, if ffmpeg would exit with error, if it finds out that network is not working and it thus can not record the given URL. But in my experience it just leaves there and can not ...
6 votes
4 answers
12k views

Determine maximum column length for every column in a simplified csv-file (one line per row)

To determine the maximum length of each column in a comma-separated csv-file I hacked together a bash-script. When I ran it on a linux system it produced the correct output, but I need it to run on OS ...
0 votes
1 answer
3k views

Mounting a share in fstab (Debian 11) fails with BAD_NETWORK_NAME

I can run sudo mount -t cifs -o guest,user=root //SERVER_NAME/SHARE /mnt/FOLDER without issue. However, I cannot run mount -a or mount /mnt/folder when I have this line in fstab: //SERVER_NAME/SHARE /...
1 vote
1 answer
21 views

How to Set Up Individual Bash History Files for Each Container Alongside a Unified History File?

In my current setup, all of my bash histories are stored in a single file, which is pointed to HISTFILE. This history includes a history of the host system and all containers. Along with this history, ...
0 votes
1 answer
15 views

Recommended and alternate dependencies in FreeBSD .pkg

A FreeBSD package typically specifies dependencies in its manifest as follows: deps: # python39, version 3.9 or higher python39: {origin: lang/python39, version: 3.9} # bind-tools, any version ...
22 votes
5 answers
26k views

how to shift array value in bash

we want to build 6 mount point folders as example /data/sdb /data/sdc /data/sdd /data/sde /data/sdf /data/sdg so we wrote this simple bash script using array folder_mount_point_list="sdb sdc sdd ...
0 votes
0 answers
8 views

Simultaneous volume control for devices on Pipewire

I'm on Debian Bookworm with KDE plasma. To replace pulseaudio with pipewire, I cleared the directories with pulseaudio settings: ~/.config/pulse, /etc/pulse and /usr/share/pulse and installed the ...
4 votes
1 answer
245 views

Typing in the Terminal on Ubuntu takes seconds until the typed character appears

The problem: typing in the terminal on Ubuntu takes seconds until the typed character appears. I first noticed this after I moved large chunks of data onto another LUKS encrypted HDD which I mounted ...
1 vote
1 answer
3k views

Use xorg.conf to fix touchscreen X axis reversed

I setup Fedora 35 with my Titan6001 touchscreen. Although Linux is responding to touches, the X axis is reversed (touch on the right mouse goes to left side, and vice versa). Y axis is fine. How do ...
15 votes
3 answers
24k views

How does one capture traffic on virtual interfaces?

I would like to capture traffic on Linux virtual interfaces, for debugging purposes. I have been experimenting with veth, tun and dummy interface types; on all three, I am having trouble getting ...
34 votes
7 answers
104k views

Find latest files

How do I find out the most recently accessed file in a given directory? I can use the find command to list out all files modified/accessed in last n minutes. But here in my case, I'm not sure when ...
-1 votes
1 answer
30 views

What is the scope of /var/log/user.log file?

/var/log/user.log What's the scope of this log file? Is it related only to currently logged in user or to multiple users and which ones? What this log file is about and when should I look into it?
11 votes
3 answers
9k views

unshift args after calling shift 1

I have this scenario first_arg="$1"; if foo; then shift 1; node foo.js "$@" elif bar; then shift 1; node bar.js "$@" elif baz; then shift 1; node baz.js "$@" else node ...
6 votes
3 answers
28k views

How can I find the newest file in a directory that contains a certain string?

I have a need to search a certain folder for the newest created file and grep the contents for a pattern. I have had ok success so far using this command: find /var/log/folder -type f -printf '%T+ %p\...
5 votes
2 answers
2k views

Is there a way to lock terminal's title?

Sometimes there're lots of different sessions opened in own terminal's tabs and it's rather desirable to have theirs initial titles (named by session name) locked since local title tweaks make those ...
0 votes
0 answers
27 views

Find youngest file in a dir easily [duplicate]

Is there a bash-command that gives my the youngest file of a directory. Or even better the youngest file that matches a given pattern. The best I can think of is this. ls -t | head -n1 or for a ...
1 vote
2 answers
9k views

How can I run an ExecStartPost command from a systemd unit file that may or may not terminate

I am trying to write a systemd unit file. When I start the service siad, I then want to launch another command, /usr/sbin/clearshare-scheduler.sh, which may run for hours or it may complete ...
883 votes
13 answers
1.0m views

How can I reduce a video's size with ffmpeg?

How can I use ffmpeg to reduce the size of a video by lowering the quality (as minimally as possible, naturally, because I need it to run on a mobile device that doesn't have much available space)? I ...
0 votes
0 answers
22 views

I want to do minimal installation in Debian 12 with additional info

Good day to you I want to do Debian installation in few client we have and we want to have additional file need to add in to the /etc/apt/sources.list with this conf file: deb http://deb.debian.org/...
1 vote
1 answer
57 views

mysqld Settings in my.cnf not Being Applied When Executing mysql

mysql is ignoring the settings under [mysqld] in my.cnf, it picks up the settings for [client] and [mysql]. How do I fix this? I tried brew services mysql restart, but it didn't make a difference. my....
2 votes
2 answers
2k views

Export (via NFS) root (/) FS

I have 3 embedded CPU system running Linux 2.6.37, which are connected via Ethernet. Each CPU has its own NAND flash memory. One of them is "main" CPU number 0, while 2 others are his companions. I ...
5 votes
2 answers
2k views

Add image (cover art) to Opus (ogg) audio file using ffmpeg

Question I have 2 files: audio.opus (extension also possible: .opus.ogg), cover.jpg. How can I use ffmpeg to put cover.jpg as an embedded "cover" image into audio.opus? Constraints I don'...
4 votes
1 answer
3k views

Libparted error "partitions 5. 7, 8...128 on /dev/sda have been written, but we have been unable to inform the kernel of the change"

When opening GParted on my Fedora 32 system, I receive the following message: I'm not sure what exactly is going wrong here. The system boots fine. I tried running fsck (via adding file /forcefsck ...
-1 votes
0 answers
10 views

Ubuntu AppIndicator icons show up as three dots

I have recently installed the latest version of Kali Linux and am running Gnome and GNOME Shell 45.3. Under the Built-in Gnome extensions there is an extension called Ubuntu AppInicator which adds an ...
11 votes
5 answers
30k views

Download Windows ISO from microsoft using wget or curl

Objective: download the official Win10_1909 iso into linux directly via command line Source: https://www.microsoft.com/en-in/software-download/windows10ISO After selecting edition and language you ...
0 votes
0 answers
32 views

How does a Linux terminal draw character?

Say, there's a file stored on disk, whose file name is encoded in binary. When I run ls in the terminal, what will happen? Perhaps like: ls reads in the file name bytes, looks it up in currently set ...
1 vote
1 answer
2k views

ssh PrintLastLog prints actual login

I connect with my server via ssh and always it shows the last log: Last login: Sat Mar 19 14:05:17 2016 from... but that login is my actual login. What's the utility of this info? It should print the ...
0 votes
0 answers
7 views

get access to console of application that is auto started

I have my "c" application which uses a lot of printf to display the necessary information. Application has started automatically at boot time. How I can access to it's console? I am not ...
4 votes
1 answer
3k views

Bluetooth TP-Link UB500 on Debian with kernel 5.18.0

I bought a TP-Link UB500 bluetooth adapter recently but haven't been able to make it work on Debian 11. I've read that the driver for it was integrated in Linux 5.16. So I installed the latest kernel ...

15 30 50 per page
1
2 3 4 5
4776