All Questions
235,897
questions
0
votes
1
answer
32
views
Returning lines from a JSON log file which contain IP and timestamps read from a CSV file?
so I'm new to Shell Scripting and could use some help. So in my CSV file, I want to see if IP and timestamp values exists in some way in the line entries of the JSON log file, and if so, return that ...
0
votes
0
answers
39
views
systemd - Is this how to require a service by an installed program?
The essence:
I want the systemd to symlink specific directories to /tmp/some_folder before it starts services from various installed packages and system services (like cups, pacman, etc.), the reason: ...
-1
votes
1
answer
17
views
CD-ROM drive fails to open/recognize inserted cd in Legacy boot mode
Recently I wanted to check that I'm able to read cd/dvd disks. No my surprise my "old" laptop failed to do so. After investigating today I've found out cd drive works on Linux Mint 17.x ...
0
votes
0
answers
23
views
What is the best tool to recover data from Centos Linux volumes
I have this error when starting Centos 7,
[ 198.942749] dracut-initqueuel3371: Warning: /dev/centos/root does not exist
[ 198.9438971 dracut-initqueue[337]: Warning: /dev/centos/swap does not exist
[ ...
-1
votes
0
answers
35
views
Creating login access to for system-user (for www-data)
How can I create login access to system user www-data? So to be able to login using ssh right away into www-data system user?
0
votes
0
answers
27
views
How do I get this report emailed to me from this script?
How do I get this report emailed to me from this script? I'm so new to Linux and it is frustrating. Below is what I have so far:
curmth=`date +%m`
mth=(Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov ...
0
votes
0
answers
10
views
Internal Error: libxenlight failed to create new domain "FreeBSD-13.2"
I tried to use xen as a hypervisor instead of kvm + libvirt + virt-manager to boot FreeBSD on my ARM Chromebook where I have installed Devuan 5,since Stefano said :
Libvirt + virt-manager with the xen ...
0
votes
1
answer
70
views
Upload a file with SSH and then give back the control to the user
I'm trying to create a script that, when you connect on a remote server with SSH, the script checks things and deploy your personals scripts before giving you back the stdin, all in one SSH connection ...
0
votes
1
answer
24
views
The grub2-mkconfig does not propagate renamed root logical volume on RHEL 9
On the RHEL 9.3 I have renamed the logical volume (LV) /dev/lvm01/root to /dev/lvm01/root.vol. I did everything to make the new name correctly recognized:
changed /etc/fstab entry
reloaded systemd ...
0
votes
0
answers
32
views
Is it possible to run x86_64 programs on ARM32?
I've recently bought a micro:bit and I would like to use it with my Raspberry Pi 4 using Mu (a python IDE).
I coded the program which should display "Hello World" on the micro:bit, however I ...
0
votes
0
answers
16
views
startup message in Centos 7: could not boot
Dead community,
Does anyone know the solution to this error message that I get when starting Centos Linux (3.10.0-1160.66.1.el7.x86_64) 7 (Core)
[ 198.942749] dracut-initqueuel3371: Warning: /dev/...
0
votes
1
answer
25
views
Unusual Permission for Directory
I am using Fedora as shown below:
[root@PANTRY 1000]# os
Linux 6.5.12-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Nov 20 22:12:09 UTC 2023 unknown
[root@PANTRY 1000]#
I have a sub directory that is ...
0
votes
0
answers
38
views
Updating from Fedora 37 to 39 - everything works but the filesystem
I had a machine still working on Fedora 37 and used the instructions in Fedora Docs to upgrade to 39. All went very well and the system seems to behave fine. The only exception is the package ...
-1
votes
2
answers
36
views
How to prepend a prefix to variables sourced from a config/env file
I have this situation:
source local.env
run_my_app
In local.env, I have a bunch of environment variabless that pertain specifically to run_my_app, like this:
es_protocol="http"
es_host=0.0....
0
votes
1
answer
28
views
problematic script: query buku, select via fzf and then print using (again) buku
First and foremost, thank you for taking the time to review the question.
I have the following script: select an array of IDs from buku's database, and then use buku again to print information using ...
0
votes
0
answers
25
views
ClamAV clamscan Warning Gives No File Path
I am running ClamAV on RedHat 9.3 and getting some new output from our daily scan that uses the command /bin/clamscan -r / --exclude-dir=/sys/ --log=/var/log/clamscan.log --infected --quiet:
...
0
votes
1
answer
48
views
How to disable/enable keyboard?
Is there a command line (CLI) command to disable all keyboards on a machine, and then also a CLI command to re-enable them?
I'm on a laptop with an internal and external keyboard, I need to disable/...
2
votes
0
answers
56
views
How to disable tty's?
I want Ctrl+Alt F* to do nothing
Currently I go to a tty at F3-F6, the login screen at F1 and the DE at F2.
How to remove that ability?
0
votes
0
answers
13
views
is it possible to prevent rsyslog messages going to systemd-journal log and how?
I have an iptables rule that is logging some of my networks activities into a log file using the jump LOG rule.
I filter the events to go to a specific file using the following rsyslog configuration ...
0
votes
0
answers
16
views
Picking icon in font for polybar
I always am in trouble with picking icons in my fonts to build my polybar.
I tried with some gnome tools like gnome-characters or gnome-font-viewer but I can't figure out how to display icons (instead ...
1
vote
1
answer
17
views
Make a window handle * input?
Xorg/DE always handles some keyboard/mouse input events rather than the currently focused window, which is useful, but I want to make an exception for a particular app (because reasons).
That is, is ...
0
votes
0
answers
9
views
Set proxy on login if proxy server is reachable
I have to move between work, where we have a firewall and have to connect to the internet through a proxy and home where I do not need a proxy.
Since there are no global proxy settings in Linux and a ...
2
votes
1
answer
85
views
Ubuntu 22.04 iptables command not working
Totally new to netfilter thing, currently am running an application which uses three interfaces eth0/eth1/eth2, my application will run on two servers and they both can communicate between them via ...
0
votes
0
answers
10
views
Update warning when shutting down or restarting Linux-Deepin
I recently installed Linux Deepin, I used it before without any problems, it is in perfect condition, the only problem is that every time I restart or shut down the system, this warning message ...
0
votes
0
answers
14
views
Unable to log in to a Ubuntu remote server from a Mac client using VNC after screen lock
I can log in and use a remote Ubuntu-20.04 server from my MacOS-13 client. If the screen is left idle for X mins, it locks itself up.
However, I am unable to log in back into the same session and the ...
1
vote
1
answer
26
views
Rescan for matching kernel modules
So normaly during boot or when a device is hotplugged Linux loads kernel modules for hardware based on modaliases.
Is there a way to manually trigger this for a specific device or a general "...
0
votes
0
answers
46
views
Mobaxterm text editor [closed]
I use mobaxterm to connect via ssh.
I would like to about the tab sizes in the Mobaxterm text editor. I would like to increase the size of each tab to view the whole file title. Is that possible?
...
1
vote
2
answers
44
views
How to set single key for customization keyboard shortcuts in gnome
I'm trying to set single key to operate anything i want in gnome settings.
I'm using Debian-12 and Gnome 43.
Settings->Keyboard>View and Customize Shortcuts(Keyboard Shortcuts)->Custom ...
0
votes
2
answers
88
views
I lose permission every day at midnight
I require a file at the top of my PHP scripts. The file just has connection object for MySQL:
$c->new mysqli('host','usr','pass','db')
The file has 400 permission: -r--------
and I keep it in /etc/...
3
votes
4
answers
571
views
Copy an evenly spaced subset of files
For example I have files :
file0.txt
file1.txt
file2.txt
....
file100.txt
I would like to copy 5 files in bash, which will produce result :
file0.txt
file19.txt
file39.txt
file59.txt
file79.txt
Edit....
0
votes
0
answers
17
views
How to forward traffic to another server adhoc
I have a webservice that is hosted on a server A. It is accessible via the internet. There is a public IP that is assigned to A.
In case of maintenance (of the webservice!) I would like to forward ...
0
votes
0
answers
11
views
Mount overlay and assign owner to myuser
I've an entry in /etc/fstab like this:
overlay /etc/myfolder overlay defaults,x-systemd.requires-mounts-for=/var/data,lowerdir=/etc/myfolder,upperdir=/var/data/overlay/myfolder/upper,workdir=/var/...
1
vote
1
answer
58
views
How can I remove aliases "which-command=whence" and "run-help=man"?
I'm running Artix Linux and using zsh, and these two aliases return no matter how many times I unalias them or remove them from my aliasrc:
run-help=man
which-command=whence
And they don't exist in ...
0
votes
0
answers
37
views
Start of the line with regex in Ubuntu 22.04's gedit text editor
I try to use regex such as ^ to find the start of the line in the gedit editor in Ubuntu 22.04 but it doesn't work. Also for $ as the end of the line.
Other regular expressions such as \n,\d,\s work ...
0
votes
0
answers
13
views
How to debug bzImage's decompress?
I already know that vmlinux is needed when debugging the kernel through gdb.
But I need to debug the decompress and EFI entrypoint of bzImage.
In this case, how can I debug bzImage with gdb?
Currently,...
0
votes
1
answer
80
views
shell .sh script does not execute all tasks within, except when run manually [duplicate]
I run a shell script at reboot, by having it in my crontab:
@daily apt-get update && apt-get upgrade -y
@reboot bash /root/Start.sh
@reboot /bin/bash -c 'sleep 10 && /bin/mount -a'
...
...
0
votes
0
answers
15
views
Any options to prevent a rename command to move files from subdirectories to the parent directory after renaming?
I have following subdirectories in the parent directory ./
find . -type d|sort
.
./M1_DMSO_120h
./M1_DMSO_24h
./M1_GW4869_120h
./M1_GW4869_24h
./M2_DMSO_120h
./M2_DMSO_24h
./M2_GW4869_120h
./...
0
votes
1
answer
10
views
Failed to run init with error: jffs2: compression type 0x06 not available
I am working on an embedded Linux system (5.10.24), and I am using jffs2 as the rootfs.
Now I changed the kernel configuration of jffs2 as follows,
# CONFIG_JFFS2_FS_WBUF_VERIFY is not set
# ...
0
votes
0
answers
13
views
Permission Denied error when I try to open the image file stored on the ZFS disk accessed through sshfs from another machine
I would like to boot the FreeBSD 13.2 image file using Libvirt + virt-manager. I have stored the image on the external hard drive,"formatted" with ZFS while I'm using Devuan 5 installed on ...
0
votes
2
answers
56
views
Why .profile and .bash_profile have non-owner R permissions?
On the Linux systems I've seen the files .profile and .bash_profile in ~ have permissions -rw-r--r--.
People seem to put various env vars into these files quite often, including smth like AWS keys, ...
0
votes
2
answers
45
views
Disable MOK password prompt, load GRUB immediately
I have a fresh install of Debian 12, but every time I boot it prompts me for a MOK password (just the password, no other options). I know what the password should be, but entering it says it doesn't ...
0
votes
0
answers
28
views
No audio heard, yet Linux thinks played successfully
I had audio working on my AlmaLinux 9 installation, using a USB sound card. I seemed to have changed something because I no longer hear audio (but AlmaLinux thinks its successfully playing a sound). ...
-2
votes
0
answers
31
views
Rufus Live Boot Persistance Kali Linux error
o basically i have an external 1TB HDD, USB c connection. When I try to write with Rufus the kali live boot on the HDD, it doesn't even get to 40% formatting and it gives me an error, then of course ...
0
votes
0
answers
20
views
How to get exit status of a command in zsh precmd function?
I am using add-zsh-hook precmd with a function so that I can add some contextual information around a command being run.
That said, it seems the invocation of the precmd function does not provide any ...
0
votes
1
answer
63
views
How to mount external NTFS hard disk without superuser?
I have got some issue with auto mount any external drives or partitions !! And every time I need to give sudo command from telnet to mount it such as
sudo mount /dev/sdc1 /media/raed
I have tried ...
0
votes
0
answers
15
views
Sign-in options problem in chromium with podman on wsl
I have some usage on aws-cli command on wsl debian/ubuntu no matter what distro, in which before some transition to other account everything worked fine with AWS SAML endpoint. Authentication did not ...
1
vote
0
answers
50
views
Apache/PHP gets stuck although there are enough resources
The server has a 4C/8T CPU and 32GB RAM. OS: Debian 12. Apache/PHP becomes unresponsive after ~500MB usage. I tried PHP8.2 and PHP8.1, but the result is the same. If I restart PHP, Apache starts ...
0
votes
0
answers
14
views
Cannot create a new virtual sink with pulse audio without feedback on the main sink by default instead of only selected sinks using it
I am using Linux, Ubuntu, with pulse audio and want to apply an audio effect to an audio source (eg microphone) and pipe that to a new sink which can be used by either arecord or another application ...
0
votes
1
answer
19
views
Trying to periodically backup /var/log while using journald
I'm trying to periodically backup my /var/log directory, but journald manages the logging on my system. Is the correct way to just tar -cf log.tar /var/log?
The way journald saves it's log files in /...
1
vote
1
answer
31
views
mplayer command line only show timestamp
I want to use mplayer command line to play music files in the terminal and keep the output messages quiet only except for audio timestamp. Only keep the last line A: 133.5 (02:13.4) of 347.1 (05:47.0) ...