Questions tagged [linux]

A family of Unix-like operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.

Filter by
Sorted by
Tagged with
1 vote
2 answers
21 views

How to detect if “/dev/mapper/dev0” exists in Bash?

I'm trying to make a decryption software for my NAS, so that it automatically mounts all drives and decrypts them. But, I need to know if the sudo cryptsetup luksOpen /dev/blahblahblah dev0 exists ...
Novum Gain's user avatar
0 votes
1 answer
16 views

Changed color settings of ble.sh bash terminal are not applied

I installed the ble.sh from this git repository https://github.com/akinomyoga/ble.sh.git, but i want to customize the color settings with ble-face commands. What happens is that, I changed the color ...
Vitor Martins's user avatar
0 votes
1 answer
20 views

iptables not dropping udp port for exact ip address

My iptables rules are as follows, defined ip and ports are examples: -P INPUT ACCEPT -P FORWARD ACCEPT -P OUTPUT ACCEPT -N f2b -A INPUT -p tcp -m multiport --dports 80,443 -j f2b -A INPUT -d 8.8.8.8/...
user9503's user avatar
1 vote
1 answer
34 views

Is there a way to use Linux-like symlinks on a Windows computer?

My application is writing logs to a directory, which is hardcoded "Logs" and is present under the runtime directory of my application. Today, a customer asked me if it was possible to have ...
Dominique's user avatar
  • 2,193
0 votes
1 answer
7 views

Converting Linux partition to crypto_LUKS

I'm currently working on RHEL 8.9 and attempting to harden a VM of mine, and looking into applying the crypto_LUKS encryption to my active partitions. When I check my partitions using the blkid ...
nxct's user avatar
  • 1
0 votes
1 answer
11 views

Routing a cgroup to a different table and back to the main table

I want to have the following setup. There are two interfaces: wlan0 and wg0. wlan0 is the default, wg0 is a wireguard interface, configured manually. By default traffic goes to wlan0. But if a process ...
EmErAJID's user avatar
1 vote
0 answers
15 views

SSDP Discovery not working for IP address other than WSL's instance IP

I am trying to port a process from Windows to WSL/Linux. Earlier, two Windows process were communicating through TCP connection after successful SSDP discovery. Now, I want similar communication to ...
Piyush Kumar Gupta's user avatar
0 votes
1 answer
13 views

Use a subset of system fonts for LibreOffice, on GNU/Linux

I have a lot of system fonts in my GNU/Linux distribution (in /usr/share/fonts/): most of them are useless for me when I'm using LibreOffice to write or to open a document. I'm using my distribution ...
eliotlencelot's user avatar
0 votes
0 answers
19 views

Tmux session disconnect does not preserve session content when reconnecting

I need to copy a 200gb+ file to multiple servers from one server. I have a sftp transfer running in multiple tmux sessions from the one server. When I press ctrl+b, d to exit the tmux instance and ...
user460178's user avatar
0 votes
0 answers
12 views

SSH over Powershell: read user user groups and assign to other user

We try to administrate our Linux-Servers with Powershell-Scripts. I'm working on a script to automatically create user. In my thoughts I extract the groups of a certain user und assign them to the new ...
stalachristian's user avatar
4 votes
4 answers
985 views

why does assigning a var with command substitution then echoing that var always fail?

Why does the following not work in bash? # ensure TEST is unset export TEST='' echo "Hello world!" > test.txt && TEST="$(cat test.txt)" echo "$TEST" It always ...
Rob's user avatar
  • 43
-1 votes
0 answers
31 views

Quarantining kernel-level games onto a VM

Let's say I have drive running Linux and a partition of that storing a VM containing a game like Valorant using. Is there a way for processes within the VM to break through the virtualization layer ...
snomuffinz's user avatar
0 votes
0 answers
12 views

Remapping Artist Shortcut Remote in Linux

I am using the XP Pen Shortcut Remote that comes with the Deco Pro tablet, it has a dial and 10 keys. Each key (and the dial) is mapped to a keyboard stroke by default. For example pressing the top ...
King Essa's user avatar
0 votes
0 answers
24 views

SSO authentication for Shiny Server

We have been using Shiny Server Pro with LDAP authentication. Now, we want to use Single Sign On (SSO) based service with Shiny Server Pro or the open source version (if possible). I have looked in ...
Maria 's user avatar
0 votes
0 answers
16 views

Alternative for transfer.sh [closed]

I need to transfer something from one machine to another. The problem is that the machine from which I need to send something does not have a desktop and is not in the same network as the other ...
PiotrKulesza's user avatar
0 votes
0 answers
15 views

Cannot setup pam_oath with Yubikey: OTP not authorized to login as user

So, what I want is to login to system with Yubikey as a second factor or the only factor. I use Linux Mint 21.3, my Yubikey is 5C NFC. My /etc/pam.d/common-auth: auth [success=1 default=ignore] ...
MPEI_stud's user avatar
1 vote
1 answer
29 views

Keep command line visible while scrolling

Unsure what the best place to tackle this would be .bashrc? Using different shell? Some fancy terminal emulator? Basically, I just want to keep seeing the command line / the last line of the terminal ...
sonofevil's user avatar
  • 107
0 votes
1 answer
29 views

How does RAID 5 handle unrecoverable sectors on a HDD

I'm going to set up a RAID 5 on 4 hard drives on my ubuntu system. I plan to use ext4 on a logic volume. Suppose one disk reports an unrecoverable sector. How would RAID 5 handle this? My ...
Xylas Quinn's user avatar
0 votes
1 answer
31 views

How to set up port forwarding to guest VM using iptables

I am trying to do a proof of concept for port forwarding to a libvirt guest server. The following are the variables I use for generalization: port=500 # Arbitrary port, for proof of ...
nc404's user avatar
  • 115
0 votes
1 answer
26 views

How to change boot_drive/operating_system from within that operating system?

I'm trying to figure out if it's possible to change boot drive or operating system that PC will boot into during the next startup but from within that operating system (!) as oppose to just going into ...
user3027198's user avatar
0 votes
0 answers
17 views

Brother HL-L2325DW Printer on Arch Linux Will Not Print, Despite Showing That the Job Has Completed

As the title says, I cannot get my printer (A Brother HL-L2325DW) to print. It beeps at me a few times once it receives my print job, and CUPS states that the print job is complete, but beyond the few ...
Dargscisyhp's user avatar
0 votes
0 answers
18 views

Seagate HDD spins up - Not understanding why (WD does not)

I have built a NAS with TrueNAS at my home. I access the data around once every week (twice, as I will run a ZFS scrub once per week), hence I prefer to spin-down the disks when I do not access the ...
Sergio's user avatar
  • 1
0 votes
2 answers
68 views

Remove all files with name starting with single quote

I need to delete all files with these names (the quotes are part of the name): 'index.html?some-query-string' I tried with: rm \'index.html?*\' I get this error: rm: cannot remove ''\''index.html?*'...
Giacomo M's user avatar
  • 133
0 votes
3 answers
41 views

Reassemble RAID0 array despite error

My ancient Synology CS407 was setup (deliberately) with RAID0 and I didn't have a backup system set up yet. There are four 1TB drives making a 4TB volume. One drive had a failure which led to the on-...
Matt Fullerton's user avatar
0 votes
0 answers
17 views

Why would sudo complain about DNS name resolution? [duplicate]

I'm running on Ubuntu 22 Linux. When I try to manually fix my /etc/resolv.conf file using sudo vi /etc/resolv.conf # or sudo cp $HOME/tmp/working-resolv.conf /etc/resolv.conf The command appears to ...
PatS's user avatar
  • 463
0 votes
0 answers
26 views

Appending File Path (With Spaces) to $PATH Variable Removes the Spaces

I have the following command in my .profile file: PATH=$PATH:"/mnt/c/Users/spenpal/AppData/Local/Programs/Microsoft VS Code/bin/". When I start up my terminal and try echo $PATH, I get the ...
spenpal's user avatar
1 vote
0 answers
30 views

Linux won't boot with f2fs

I recently had a hardware failure and replaced by old HDD with an SSD. Therefore I used f2fs for my root partition. But now I am unable to boot properly due to fsck failure. I keep getting the ...
walderich's user avatar
  • 161
1 vote
0 answers
13 views

Discrete graphics card doesn't clock down in a laptop

Recently, I've noticed that sometimes my laptop runs very hot despite nothing happening. Nothing was using the CPU and I found that the graphics card was the culprit (see screenshot below). Note that ...
Banyoghurt's user avatar
0 votes
0 answers
14 views

VMware Workstation linux installation stuck at "clocksource: Switched to clocksource tsc"

During installation XCP-ng 8.2.1, installation stuck at "clocksource: Switched to clocksource tsc". I had the same problem with Virtual Box but this command "vboxmanage setextradata &...
Pawel's user avatar
  • 1
1 vote
0 answers
32 views
+50

GNOME 44.10: Drag-and-drop breaks Alt + Tab window switching in numerous ways

I am running a pretty fresh install of a Bluefin-based Fedora Silverblue atomic desktop with a GNOME shell using Wayland, and mostly Flatpak applications. (For what it's worth, I recently migrated my ...
cr7pt0gr4ph7's user avatar
6 votes
1 answer
706 views

Is it possible to recover bitlocker using a USB drive?

So I've got a laptop currently dual booting windows and linux. I primarily use the linux installation, but I have certain things that need to be on windows. Currently I have bitlocker set up on ...
Obo the Hobo's user avatar
0 votes
0 answers
39 views

How to get Intel i210at NIC ethernet card working on Linux

After my Ethernet port (on asus prime z370-p) mysteriously stopped working, I bought this PCIE ethernet card. I received this. Looks different than advertised, but probably equivalent? I am now ...
Maze's user avatar
  • 1
0 votes
0 answers
17 views

Snap on Arch Linux : Cannot create user directory

I try running termius in Arch using snap, with snap run termius-app, but it says : 2024/03/23 21:28:19.783334 cmd_run.go:1046: WARNING: cannot create user data directory: cannot create snap home dir: ...
FBDev's user avatar
  • 1
-1 votes
1 answer
37 views

Operating system not found after installing linux mint

I installed linux mint along side windows 10 on an old laptop from 2012 (i7-2670QM), after installation, removed mint flash drive -> enter -> laptop rebbot, and getting Operating sytem not found ...
buga's user avatar
  • 99
0 votes
1 answer
12 views

Booting a LUKS-encrypted drive with a flash drive, falling back to keyboard

I have some systems configured using GRUB as my bootloader, with an unencrypted boot partition and everything else using LVM-on-LUKS. Right now, the only way to unlock the system is for me to ...
Paul's user avatar
  • 612
0 votes
0 answers
16 views

Converting WireGuard from docker to k8s, handshake ok but no internet access

Problem: I have a working WireGuard setup in Docker (see guide: link) but am struggling to achieve internet access for clients when porting the configuration to Kubernetes with host networking. I can ...
ohshitgorillas's user avatar
0 votes
1 answer
69 views

Linux to Windows - smbclient works fine but mount.cifs does not

I am using a Ubuntu 22.04 guest in Hyper-V in Windows 11. I have created a file share and shared it for a local user ("shareuser"). I am trying to automatically mount it with cifs and ...
kaidentity's user avatar
0 votes
1 answer
23 views

How can I enable Wayland's autorotation in Plasma 6?

I've recently updated from KDE 5 to KDE 6 on OpenSUSE Tumbleweed on a convertible (Lenovo Thinkpad X390 Yoga). Before the update, the automatic screen rotation in "tablet mode" (apparently ...
Zeta's user avatar
  • 227
0 votes
0 answers
12 views

How do I get a Linux system with legacy mouse support to accept my KVM switch with absolute mouse mode?

One of my customers has a Linux system with the following details: Suse Linux 15 I plugged in a KVM-over-IP device from Raritan (DKX4-101) which introduces a USB-device with Keyboard + mouse in ...
Juergen's user avatar
  • 31
1 vote
1 answer
18 views

Why Linux chooses shorter prefix? (strongSwan, table 220)

I'm having 2 following routes: # ip ro show table 0|grep 10.250 10.250.0.0/16 via 10.80.1.1 dev ens5 table 220 proto static src 10.80.1.76 10.250.1.4 via 10.80.1.45 dev ens5 The first one comes ...
zerkms's user avatar
  • 1,058
0 votes
0 answers
17 views

Properly switch Caps Lock and Esc

I'm on KDE Neon 5.27 with X11, and the settings app has an option "Swap Esc and Caps Lock". I've been using this for a while, but some applications still think they're not swapped. I have to ...
rbits's user avatar
  • 86
1 vote
1 answer
13 views

How to configure junest to mount a specific directory to chroot?

junest automatically mounts /home/$user/ which is really nice, but I also want to mount for example /srv/public or /mnt/something so I can use it, inside a junest environment, how could I do this?
Rainb's user avatar
  • 255
0 votes
0 answers
22 views

how to use curl for single sign website or page

I already written shell script but its exactly not working getting empty response it should first return token and also it should login then registry API thats my task of shell script has to do #!/bin/...
DevOPs's user avatar
  • 1
0 votes
0 answers
16 views

Can i create a new root user with root priviliges when i have just access to the boot partition?

is there any way i can create a new root user when i have just access to the boot partition. I have no access to / partition . This is just a question for my own lap. So don't worry. I running an alma-...
naseweis's user avatar
0 votes
0 answers
28 views

Linux (xcp-ng) installation has around 40GB of MS basic file system

So, I am having this trouble to get rid of these 3 partition that my Lenovo Thinkcenter keep creating when I install XCP-NG. fdisk -l output: So, basically I tried to remove those by fdisk /dev/...
XCP_NG's user avatar
  • 1
0 votes
1 answer
14 views

linux command line, rearrange djvu file to facilitate book index use in reader

To read books that have an index on my laptop or ereader, I like to make the first page in the reader/viewer be the first page of the text, so that the book's Index page numbers correspond directly ...
user985675's user avatar
0 votes
1 answer
34 views

How to simply cleanup a filename?

OS: Kubuntu 22.04.4 LTS x86_64 to display above: neofetch --stdout |grep 'OS:' . How to simply cleanup a filename, not file contents? by removing from a filename: \n newlines \t tabs non printable ...
joseph22's user avatar
  • 347
0 votes
0 answers
11 views

Unable to get to switch_root mode in CentOS 7

I am trying to reset the root password on my old drive, and I followed this instruction: https://www.redhat.com/sysadmin/recover-root-passwd However, instead of booting into a 'rescue' prompt as the ...
HCSF's user avatar
  • 165
0 votes
1 answer
15 views

accessing the filesystem of the host from a docker container running in --privileged mode: unknown filesystem type 'LVM2_member'

I'm running a systemed docker container with ssh conection and now want to mount the host filesystem to gain access to it. ( don't worry this is just for demonstration purpose) If i do mount /dev/vda2 ...
naseweis's user avatar
-1 votes
1 answer
18 views

Moving all files in sub directories into a main directory

I have a directory called "public" that contains a thousand of subdirectories eg: public/63a/e9b/79a/file.pdf public/64a/2cd/184/other_file.pdf ... My aim is to move all the files ...
Duddy67's user avatar
  • 101

1
2 3 4 5
1176