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
0 votes
1 answer
5k views

How to change my working directory using "Execute shell script on remote host using ssh" in Jenkins?

I put these commands inside the command field just to check if I am able to change my working directory.. pwd cd /apps/working/agent/working_agent/ (Directory path to run my script) pwd However ...
0 votes
1 answer
28 views

The last command output in linux for reboot is not giving the uptime instead it says still running twice

[root@localhost test]# last -x reboot -s -30days reboot system boot 5.14.0-325.el9.x Sun Mar 10 10:51 still running reboot system boot 5.14.0-325.el9.x Tue Mar 5 03:05 still running In the ...
0 votes
0 answers
6 views

Kerio Connect Attachments missing after moving mails

I got kerio connect as mail server. The host is running on Linux. I moved mails from a public folder to a local user. Now all my attachments are missing. Is there a way to recover them? What I tried: ...
2 votes
0 answers
39 views

Why my terminal throws control characters while using arrows in mysql-client?

I have a situation with remote servers (all Debians) where I get control chars into mysql-client command line when I try to search in history (CTR+R) and try to make the first move: mysql> update ...
1 vote
0 answers
32 views

Can I pipe a large file into ftp connection?

I need to create a very large tar file (25GB) and transfer it to another site using ftp. Rather than first creating the tar file and then transferring it, I wonder if its possible to pipe the output ...
8 votes
6 answers
6k views

Allowing automatic command execution as root on Linux using SSH

What is a good setup that allows automatic execution of a command or a script on a remote server with root privileges using SSH? I'm aware (only vaguely for some the options) of the following options: ...
2 votes
1 answer
35 views

On Linux I cannot bind to wireguard network interface via IP, but can with interface name

I have a WireGuard connection on my computer that I wish to only bind certain programs to. Programs that bind via the interface name (wg0 in my case) bind correctly, but programs that bind via ...
0 votes
0 answers
11 views

Apache failover BalanceMember

An interesting question crept up on me when I made the following configuration (names and IPs are fictitious). Background: route 1 - 10.10.10.10 is an IPSec tunnel route 2 - 20.20.20.20 to the ...
0 votes
0 answers
4 views

Apple Thunderbolt Display does not wake up on Mac Mini running Linux (Devuan)

My Mac Mini has two monitors attached to it: a Mac Display one, on its thunderbolt port, and a small generic monitor attached to its HDMI port (using a HDMI-to-VGA adapter). This is how xrandr sees ...
0 votes
0 answers
14 views

On measuring the current DPI of mouse being implemented/used [closed]

On Linux, how is the simplest way to measure the current DPI of mouse being utilized/used (by any, S/W, H/W, low=level/high-level program, etc, as long as it's definitive, viable way) ?
64 votes
2 answers
150k views

Ubuntu server - create group, create user, user specific access

I am new to ubuntu server. How can I create a group lets call that group 'mypeople' then add a user to 'mypeople' lets use user 'brad'. and have 'brad' only access to /var/www/brad/. 'brad' can ...
2 votes
2 answers
4k views

can we do the full disk encryption of a already installed Linux machine?

I need some information regarding any possibility to do full disk encryption for a already installed Linux system(e.g centOS or Ubuntu). Is there any default mechanism for FDE present in Linux like "...
1 vote
0 answers
33 views

How to Safely Copy Entire Ubuntu Root Directory to Different Drive and use it as system drive via SSH?

I'm currently maintaining a remote Ubuntu server with two drives: one SSD and one HDD. The HDD is currently mounted at /, serving as the system drive, while the SSD is empty and mounted at /mnt/nvme. ...
3 votes
2 answers
3k views

What is the difference between “/var/lib” and “/var/run?”

I am studying Unix-like filesystem structure especially FHS (Filesystem Hierarchy Standard). Anyways I know in the recent FHS /var/run is moved to /run. I can’t understand the difference between lib ...
0 votes
1 answer
16 views

SSH / RDP Reverse Tunnel through intermediary

The problem I am trying to solve is how to establish SSH & RDP connection to a Linux machine that is behind a firewall, with a non-static public IP, and no port forwarding capability: Customer ...
0 votes
0 answers
54 views

Does Virtual Box Support Guest Suspend/Hibernate?

I set up a Debian VM using Virtual Box to experiment with suspend/hibernation when LUKS is enabled. But I don't seem to be able to sleep the guest. My question is not about setting up hibernation. I ...
2 votes
1 answer
4k views

How to remove file permissions from an external hard drive?

My macbook recently died and I am currently trying to figure out how to copy my data. What I did was, I took out the hard drive, put it in an enclosure and plugged it in to my other laptop that runs ...
-1 votes
1 answer
32 views

How to actually install newer video drivers on manjaro / arch?

As you see below, the closed source driver is 1 year old. Why is this so old? This laptop is not that old, so a newer driver might make a difference. Also, why is the open source driver, video-linux , ...
1 vote
2 answers
7k views

Can not get vncserver to start on rhel 7

Good day I'm running RHEL 7.6 with kernel version 3.10.0-514.el7.x86_64. Vncserver version is tigervnc-server-1.8.0-17.el7.x86_64. My vncserver@:1.service file looks like this, I have replaced <...
1 vote
1 answer
3k views

Enable FTP disable SSH

I would like to know how to enable FTP access while disabling SSH access for all users except root and admin. I tried to change the shell : /usr/sbin/nologin, but this is no good because disabling ...
0 votes
1 answer
32 views

I have a undeleteable Linux icon which leads to wsl.localhost on my windows 10 desktop

So one day when I boot up my Windows 10 PC, there was a Linux icon on my desktop which leads to wsl.localhost in the file manager. And like I’ve said in the title, the icon/shortcut thing can’t be ...
18 votes
2 answers
13k views

What is the difference between DESKTOP_SESSION, XDG_SESSION_DESKTOP, and XDG_CURRENT_DESKTOP?

I want to detect which desktop manager I am running, and I found out that there are three environment variables, DESKTOP_SESSION , XDG_SESSION_DESKTOP , and XDG_CURRENT_DESKTOP which could help me do ...
0 votes
1 answer
4k views

ssh connection error "Permission denied (publickey)"

So I have been trying to build ssh connections between google cluster container containing 1 master node and 2 worker nodes. I have used ssh-keygen to generate key pairs for all three nodes, send the ...
28 votes
8 answers
104k views

What is the terminal command other than ctrl + c to exit a running Node.js program in a macOS?

In Linux terminal if I run a command like: $ node httserver.js The command runs and by doing ctrl + c the program is terminated and new line comes in terminal for us to enter a command. I felt ctrl ...
2 votes
1 answer
1k views

How do you move (mv) in ZSH all files from current directory except two or more to a child directory?

(There is plenty of information about this on bash, but much less on zsh and NOT AT ALL for TWO or more files. No idea how to apply the ^ ("caret") TO MORE THAN ONE FILE). I want to know (...
0 votes
0 answers
23 views

'ifconfig' Not Showing Wireless Card

I am running MX Linux (Debian based), and my wireless card had no issues after OS install. Everything working, up until today, no software updates or changes, and all of a sudden my Wifi connection is ...
1 vote
3 answers
829 views

how to fill-in absolute path filename in mc?

Please, I cannot figure out how to fill-in absolute path filename in mc (Midnight commander)? I am familiar with ALT+ENTER to drop the filename onto the line, but that is just the relative filename, I ...
10 votes
1 answer
10k views

Raspberry Pi won't bring up wlanX interface - multiple wireless interfaces

Let me jump straight in. I am using a raspberry pi 3 running latest version of raspbian (pixel) as a router/wifi hotspot I have 3 wireless interfaces: built in wifi interface (brcmfmac) TP-Link ...
2 votes
4 answers
4k views

sudo very slow after winbind to AD on RHEL6

When I run a sudo command after binding my linux machine to an AD domain using samba/winbind, it takes anywhere between 10 seconds and 2 minutes to respond before prompting for my password. I've ...
0 votes
1 answer
14 views

How can I split from /dev/nvme0n1p3 to /dev/nvme0n1p2

I only have one disk, an SSD on my laptop. My disk status is as shown above. The /dev/nvme0n1p2 disk part (mounted at /) is too small. I plan to move 42GB from /dev/nvme0n1p3 to /dev/nvme0n1p2, but /...
4 votes
2 answers
22k views

Unable to find or install amazon-linux-extras

I am trying to install nginx on AWS EC2 instance. As this is done using amazon-linux-extras as per AWS documentation, I tried that. But I am unable to find the package or install it using yum install(...
3 votes
5 answers
32k views

How to get rid of "I have no name"?

I accidentally set 777 permissions with chmod on the /var/ directory on a Linux server. Now I'm observing the following errors: id: cannot find name for user ID 673910804 id: cannot find name for ...
130 votes
14 answers
146k views

How to force GPG to use console-mode pinentry to prompt for passwords?

Using gpg from a console-based environment such as ssh sessions fails because the GTK pinentry dialog cannot be shown in a SSH session. I tried unset DISPLAY but it did not help. The GPG command line ...
-2 votes
2 answers
57 views

execute command after switch to different user with sudo

I am trying to execute this command: echo hello | sudo su - dp-postgres But I get this: -bash: line 1: hello: command not found I also tried this: sudo su - dp-postgres -c 'echo hello' But that is ...
1 vote
1 answer
1k views

How to reset a lost root password in SmartOS

I'm running SmartOS version joyent_20130405T010449Z off a bootable USB. Long story short, the root password is lost to the ages. I tried "root" as the password, no luck. I tried no password, didn't ...
-2 votes
0 answers
21 views

FTP SCRIPT bagaimana untuk menggunakannya? [closed]

bantu saya mengatasi ini?? from ftplib import FTP Fungsi untuk mengunggah file ke server FTP def upload_file_ftp(host, username, password, file_path, remote_dir): try: # Membuat koneksi FTP ftp = FTP(...
2 votes
2 answers
9k views

What does push "route 0.0.0.0" do in the OpenVPN server.conf file?

I am wondering what is the role of push "route 0.0.0.0" in /etc/openvpn/server.conf. In fact, I had a push "route 0.0.0.0 " line (notice the space at the end) in my server.conf file, and I had to ...
3 votes
2 answers
6k views

iptables rules to allow devices on VPN to access internet

I have a linux firewall setup as my home network gateway that is correctly leasing IP addresses to devices on my network, and those devices have internet access. I also setup OpenVPN on the same ...
-1 votes
2 answers
21 views

How to boot an HP XW8000 from a USB flash drive?

I have an old XW8000 machine that I’ve been trying and failing boot from USB flash drive for the last week. I’ve tried burning Ubuntu 6.0, 8.0, 14.0, 22.04 on USB media using PowerIso and BalenaEtcher ...
1 vote
1 answer
1k views

pip error "No module named ordered_dict"

I'm creating a docker that includes the following: FROM debian:jessie RUN sed -i '/jessie-updates/d' /etc/apt/sources.list # Now archived RUN apt-get update && apt-get install -y python ...
2 votes
1 answer
6k views

ffmpeg: library configuration mismatch

In trying to tidy up old files using sudo apt-get autoremove I've messed up my install of ffmpeg on Ubuntu 17.10. I've tried to remove ffmpeg using sudo apt-get remove ffmpeg and then reinstall a ...
11 votes
5 answers
9k views

Get file from remote over ssh, with simple "get file"?

Is there a way to get a file from a remote server you are connected to via ssh, by simply running a command like get file within the ssh session? Is there a method, or pre-existing tool, to do this? ...
0 votes
0 answers
98 views

Port forwarding from VM via OpenVPN

I'm sorry if this problem has already been explained in another thread, but I couldn't find a solution to my problem anywhere. I have a question about the attached network diagram. Can I permanently ...
1 vote
2 answers
177 views

Linux shell command to replace path with file content

I have a file that includes a relative path in angle brackets, such as the following (example.txt): Some content containing <../another.txt> file Then in the parent directory, the file another....
1 vote
1 answer
3k views

How to override a file via scp not being the owner, but preserve timestamp?

I have 2 users on a remote machine (let's call them user1 and user2, with both being in the common group upload). I want to be able to upload/override a file via scp, from different machines. Whereas ...
0 votes
1 answer
45 views

Display issues on Notebook, but not in Windows

Since some time, there are some kind of screen Artifacts on my Notebook screen. From the bottom, there are around 50 rows on the screen, which do not Display the appropirate output they should(Aka the ...
0 votes
1 answer
24 views

Capturing traffic in the cloud

I am trying to work out a solution for capturing traffic in the cloud and currently running out of ideas. We need to capture traffic from servers in the cloud and send it to the sensor of the NTA (the ...
159 votes
12 answers
286k views

Copy entire file system hierarchy from one drive to another

I would like to copy the entire file system hierarchy from one drive to another..i.e contents of each directory as well as regular files in Linux platform. Would be gratefull to know the best way to ...
-1 votes
0 answers
17 views

cant open linux and is stil showing me this eror

VM Name: kali-linux-2024.1-virtualbox-i386 Could not open the medium 'C:\kali-linux-2024.1-virtualbox-i386.vdi'. VD: error VERR_FILE_NOT_FOUND opening image file 'C:\kali-linux-2024.1-virtualbox-i386....
-1 votes
1 answer
289 views

cant install gnome on parrot os because of unmet dependency

I have been trying to install parrot-desktop-gnome on parrot os. running sudo apt install parrot-desktop-gnome gives me this output: Here I tried update and upgrade commands this is my source.list: ...