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.

19,751 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
1 answer
330 views

No network connection when connecting to server directly to router, connections over switch work

Situation/Build First of all i build a small home server for storage proposes. It runs on Linux. Ubuntu 20.04.3 with Kernel 5.13 (HWE) enabled to be more specific. I used a MSI MPG B460I Gaming Edge ...
quercus's user avatar
0 votes
1 answer
2k views

Detect in Linux Bash if USB drive is unmounted and mount it automatically

My USB drive is plugged in to a server with Ubuntu system and constantly unmounts itself for no known reason. I want to write a script in Bash which will be run frequently by cron. My question is how ...
anuritbiz's user avatar
0 votes
1 answer
452 views

Output from command missing when redirecting

I'm trying to capture output and seeing strange behavior. Some output will only show if no redirection is used. Can be replicated reliably with this docker example: FROM alpine RUN apk add git RUN \ ...
srfrnk's user avatar
  • 101
0 votes
0 answers
159 views

Product Information Not Vaild HP Laptop

I got this error on my laptop (HP Folio 9470m) which shows that the product information is not valid. Upon search, I found that it usually occurs after changing the motherboard, (which I didn't, It ...
Yasir Rehman's user avatar
0 votes
1 answer
1k views

How to fix periodic DNS errors when using Pihole and local Bind9 DNS

Summary of the problem: Clients on my network cannot resolve login.live.com. When running "host login.live.com" they get: $ host login.live.com ;; communications error to 10.0.0.52#53: end ...
ervingsb's user avatar
  • 362
0 votes
0 answers
238 views

What can be the reason for missing files in /sbin?

Recently a system with ubuntu installed stopped booting. While trying to fix things from rescue flash drive boot, I have run into a strange phenomenon: there was a big number of files missing/...
Srv19's user avatar
  • 331
0 votes
1 answer
260 views

How to programmatically detect whether rsync detected changes or not?

If I do: echo 'sup' > sup.txt echo 'nup' > nup.txt echo 'sup' > sup2.txt rsync -P --archive --human-readable --itemize-changes --dry-run sup.txt nup.txt rsync -P --archive --human-readable --...
balupton's user avatar
  • 455
0 votes
0 answers
239 views

Temporal downsampling with FFMPEG

My task is simple: I have some video input.avi that consists of N frames. I would like to downsample the video using FFMPEG with respect to the temporal dimension by a factor of M (e.g. M=10). N is ...
Lennart Van der Goten's user avatar
0 votes
1 answer
9k views

Systemd Service does not start on reboot

I have the following systemd service called startupsh.service placed in /etc/systemd/system/ on my raspberry pi running rasbpian. [Unit] Description=Service to start telegram bot After=graphical....
Pepsilon7's user avatar
0 votes
0 answers
160 views

Issue while upgrading my raspberry

My stretch raspberry can't upgrade properly. I've had a lot of issues with Python recently, and this seems to be the bottleneck once again. Upgrade the packages So here what comes when I try to ...
Hybris95's user avatar
  • 121
0 votes
0 answers
80 views

Forward email from public IP to local host

I have a web server running on my public IP address and email server running on my localhost 127.0.0.1 using Mailu.io. I am able to send email from it but when someone replies to the email I want to ...
ServerGuy123's user avatar
0 votes
0 answers
137 views

split command suffix generation/increments

Can someone explain to me how the split command suffix generation works? From https://www.gnu.org/software/coreutils/manual/html_node/split-invocation.html#split-invocation I get that By default ...
Daviid's user avatar
  • 156
0 votes
0 answers
724 views

How to not auto start lightdm at boot

I am working on the project which major on console based on opensuse. But some time need to run some gui application. I installed the lightdm. After rebooting my machine, it will auto launch the ...
xiao's user avatar
  • 21
0 votes
2 answers
2k views

How can I correctly retrieve the PID of a process related to Java using ps aux? and how can I put the headr containing the output column name?

I am not a system administrator (I am a software developer) and I have the following doubt. Performing this command I can see the list of the first 10 process running on my system (correct me if I am ...
AndreaNobili's user avatar
  • 7,161
0 votes
1 answer
283 views

Linux Speeding Up /etc/resolv.conf's search domain Function

I'm running Ubuntu 18.04 on a company intranet, which has two subnets and two associated DNS domains, the Ubuntu box is in the first subnet. I want to be able to use the short names for hosts, not the ...
Tony Cooper's user avatar
0 votes
0 answers
172 views

Centos 8 running as a LXD container fails to install packages: yum ailed to connect to mirrorlist.centos.org port 80: Connection timed out

Under Ubuntu, I created a Centos 8 LXD container: lxc launch images:centos/8 centoscontainer Then, I log into the container with lxc exec centoscontainer /bin/bash. I'm root, and I can access network ...
alci's user avatar
  • 137
0 votes
0 answers
2k views

Install specific python version in docker container (Alpine)

I'm a Linux noob and I try to install Python3 3.6.9 or any Python 3.7 inside a docker container. From what I understand, the container is on Alpine. I tried this code found on a stack overflow thread. ...
Bradford1138's user avatar
0 votes
0 answers
833 views

Ubuntu SSD Failing

I tried to boot my Ubuntu system yesterday but the entire file system went "readonly". Then I tried to boot from usb drive to fix it using fsck.ext4 -f /dev/sdb2 but still "readonly&...
Alex Xu's user avatar
0 votes
0 answers
916 views

SSH config - a better way? WSL & Windows Terminal

At the moment, I've got my .ssh/config file organised to have maybe 20 different hosts, however my roll is expanding to include probably another 30 or so servers with applications on. Is there a ...
Alistair Hardy's user avatar
0 votes
1 answer
138 views

login ssh ubuntu stalls on WSL

I'm trying to login to a remote server with ssh, but when I try to run ssh -p 2022 user@hostname ubuntu is stalling, aborting the command gives me the error: ssh: connect to host hostname port 2022: ...
Ste39's user avatar
  • 1
0 votes
0 answers
2k views

Rename WiFi interface

How to rename WiFi interface on debian root@debian:~# ll /etc/systemd/network/10-persistant-wlan0.link -rw-r--r-- 1 root root 55 Jan 18 12:45 /etc/systemd/network/10-persistant-wlan0.link root@debian:...
Paipito's user avatar
0 votes
0 answers
488 views

Cause for EFI Signature Change on PopOS Linux

I have a system with popos 21.10 installed. I had added the vmlinuz.efi signature to the secure boot list. Today I tried to boot the system after a week idle and it gave me an error saying the ...
alphasierra's user avatar
0 votes
1 answer
6k views

How to turn off / disable "CTRL LOCK"?

I have a ThinkPad T520 with NixOS 21.09 installed with Xmonad. Locked the screen with slock, went to have lunch, and when I got back the cat was peacefully asleep on the keyboard. When unlocked, ...
toraritte's user avatar
  • 748
0 votes
1 answer
1k views

replacing dnsmasq w/ systemd-resolved - alternative to 'address' directive

Been using dnsmasq for ages - mostly for local caching and blocking out dubious domains. Now I have need for split-DNS, so it's time to switch to systemd-resolved. One major feature I'm using from ...
laur's user avatar
  • 227
0 votes
0 answers
594 views

How do I share live data between two applications?

I have an application (A) that updates some data (about 1 MB) every second. I can make this application write the data to a file of my choosing, but other than that it is out of my control. I need to ...
birgersp's user avatar
  • 153
0 votes
1 answer
451 views

When printing from command line how to know what was the default font and font size is being used to print

I am printing from a text file. I would like to know what was the default font and font size is being used. Is there a way to find out? lp template.html -d TVS_MSP-250CH-custom
kumar's user avatar
  • 101
0 votes
1 answer
232 views

What are the default extended file attributes for /etc/fstab?

I made a mistake when editing /etc/fstab. Opened using vim instead of sudoedit (ie. without permissions) and being lazy to type changes twice, I saved file elsewhere and just mv it to correct location....
Martin Mucha's user avatar
0 votes
1 answer
145 views

How to install Python 3 in RHEL in such a way that it won't mess up the current Python 2 installation?

I have an EC2 instance which is running Python 2.x. I want to install python 3.x but I do not know if Python 2 is currently being used by anything. My questions are: How do I install Python 3 in such ...
jmrjmr's user avatar
  • 11
0 votes
0 answers
1k views

permission denied error cloning git repositry with npm on LinuxLite

I am using LinuxLite V5 and I am trying to clone one repository from git using npm V8.3.0 but it throws this exception: fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-...
Navid_pdp11's user avatar
0 votes
1 answer
1k views

How to enable NFS v2 in WSL2?

It only has v3 and v4, but my client (U-Boot) only supports v2 $ rpcinfo -p localhost | grep nfs 100003 3 tcp 2049 nfs 100003 4 tcp 2049 nfs 100003 3 udp 2049 nfs ...
Jks Liu's user avatar
  • 101
0 votes
0 answers
254 views

Mutt cannot delete messages

Running mutt on AWS EC2 instance with Amazon Linux, I cannot delete any messages, running mutt either as a regular user or as root for root mailbox. When quitting, following 'Purge deleted messages' I ...
user48297's user avatar
0 votes
1 answer
464 views

Grub command runs twice

I am trying to change boot priority and time out in grub. When i run 'update-grub' command, I see the same output twice even for one execution. Sourcing file `/etc/default/grub' Sourcing file `/etc/...
Yogendra Atluri's user avatar
0 votes
0 answers
363 views

After removing lxc device, still managed to access device from its boundary directory

I am using Lxd container for my sd card access in Linux based device. i mounted sd card with following commands mount /dev/sda1 /mnt/flash/sdcard. lxc config device add dhaneesh2 sda disk path=/mnt/...
Dhaneesh lal.D.R's user avatar
0 votes
1 answer
68 views

Passphrase for ssh keypair '/home/ec2-user/.ssh/lab-3-key' - AWS, ParallelCluster, FDS, Cloud9

I am attempting to run FDS (CFD code for fire simulation) on Cloud9 pcluster using the following tutorial: https://fds-smv-on-pcluster.workshop.aws/oyo/setup/pcluster.html Basically, you install ...
John S.'s user avatar
0 votes
0 answers
159 views

http://ppa.launchpad.net/ondrej/pkg-gearman/ubuntu impish Release 404 Not Found

Hi I have a linux server (debian 10 buster) w after typing the command: sudo apt-get update for updating there was en error shown : Hit:1 http://deb.debian.org/debian buster InRelease Hit:2 http://deb....
mirena's user avatar
  • 1
0 votes
1 answer
1k views

Can't run dotnet in shell file but can in terminal?

I'm running Ubuntu 20.04 and I'm fairly green to Linux systems. I'm trying to run a shell script that I wrote, which is fairly simple: #!/bin/sh dotnet /some/file.dll The script is located in <...
OmniOwl's user avatar
  • 115
0 votes
0 answers
1k views

Permission Denied When trying to SSH with Public IP

SSH: Permission Denied, when using Public IP address I am trying to remotely connect from one PC to another host's Virtual Machine(VM). I can easily SSH from Host to Virtual Machine but when trying to ...
Mitchell Yuen's user avatar
0 votes
0 answers
74 views

How to redirect incoming IPs to specific eth?

I'm using a storage server to work and share large video files among co-workers (weddings, events...) Server has 2 ethernet cards with 2 different internet providers. We have different internet ...
user avatar
0 votes
0 answers
2k views

SSH Network is unreachable

I have 2 ubuntu systems , 1 lan cable. I need to transfer data(FILE OR DIRECTORY) using lan cable.( Note : there is no online network connection) I tried using ethernet and connected both ends in ...
Vasanth Vel's user avatar
0 votes
0 answers
195 views

How does a packet destined for OpenVPN go through iptables?

I have been interested in this question for a long time. I have an OpenVPN server configured, I followed the logs, and did not quite understand the route of packets from the client to the VPN server. ...
Alex Meryza's user avatar
0 votes
0 answers
633 views

How to zoom cinnamon or gnome terminal window to full size via bash?

The question refers to the following environment: Linux Mint 64, Cinnamon, version 20.x It is known that terminal cinnamon and gnome terminal windows and their fonts can be zoomed in size via ...
Alfred.37's user avatar
0 votes
0 answers
37 views

sort games in their subfolders

Recently I started using Batocera, and I am collecting games. I found on my drive tons of amiga games, which in most cases are in multiple files e.g. samurai1.adf samurai2.adf Battleships.adf exile - ...
Mikołaj Zdanowicz's user avatar
0 votes
0 answers
385 views

How can I redirect the output of a command that only writes to a file, not stdio?

There’s a command I want to run that writes to a specified file. Is it possible to redirect the output of this command to the stdin of another command? The command looks like this: foo -o filename I’...
knpwrs's user avatar
  • 1,403
0 votes
0 answers
75 views

Cronjob not working properly when run as scheduled

This file is placed in /etc/cron.weekly/ : #!/bin/sh # For syncing some files with OneDrive # Assumes that the sync target is set up as OneDrive:Syncs in rclone if [ $(id -u) -eq 0 ]; then exec ...
MathIsNice1729's user avatar
0 votes
0 answers
341 views

Why does a shared samba directory show different file permissions?

The file permission in my samba server (local filesystem) are as follows: -rw-r-----+ 1 sambaserver sambaserver 49 Jan 9 01:14 staticfile.md However, when accessed remotely through a client, the ...
Kosho E's user avatar
  • 11
0 votes
1 answer
94 views

Automatically transferring a string from a Windows PC to a Linux server

This is my current situation: I have a PC running the latest Windows 10 and a Raspberry Pi running Raspbian. On my PC I spoof my MAC address every other day. I always need the current MAC address of ...
Anon756's user avatar
0 votes
0 answers
131 views

Linux Server (Ubuntu 20.04) restarting sometimes

I have a ex62nvme server from Hetzner. Sometimes it automatically restarts. When I trying to connect via SSH it don't accept my password and I can only go restart server from Hetzner panel. The ...
Purya's user avatar
  • 11
0 votes
0 answers
4k views

Why do I have to remove/rescan my PCIe devices for the Kernel to allocate it's BAR memory?

When I cold-boot my SuperMicro server, the kernel dmesg log states that it finds my PCIe cards and their required MEM spaces for their BARs... [ +0.000036] pci 0000:19:00.0: [10de:1eb1] type 00 class ...
IDLacrosseplayer's user avatar
0 votes
0 answers
131 views

Is it possible to move an VM virtual box running Linux Mint that is encrypted to a physical laptop with a HD bigger than the image?

my computer is on Windows 10 running VM virtual box 6.1. I had installed Linux Mint on one of the VM but I had it encrypted during installation. Is it possible to copy this to VM and install it on a ...
Ahdee's user avatar
  • 133
0 votes
1 answer
124 views

Neo Keyboard-Layout Layer4: Fix Space instead of 0 when pressing AltGr

On Linux Mint 20 the neo keyboard layout has multiple layers. Pressing AltGr will act as Mod4 and swtich the layout to layer 4. In this layer, pressing the spacebar would normally result in a press of ...
Semnodime's user avatar
  • 402

1
213 214
215
216 217
396