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
0 answers
1k views

Linux power management: is it possible to wake up on lid open only and ignore lid close?

uname -a Linux 820g3 5.9.1-arch1-1 #1 SMP PREEMPT Sat, 17 Oct 2020 13:30:37 +0000 x86_64 GNU/Linux In /etc/systemd/logind.conf: If HandleLidSwitch=suspend then laptop goes to sleep on lid close and ...
Darren Ng's user avatar
  • 389
0 votes
1 answer
1k views

Why does Linux need cvs for ssh?

I just set up a new Debian 10 system today. I was able to ssh in, then, when I thought I had all my config stuff setup, I rebooted to be sure it as all sticking and I had done it right. Then I tried ...
Tango's user avatar
  • 147
4 votes
2 answers
8k views

Is there a way to execute a perl script from any location in the machine?

I'd like to know if there are other ways to execute a perl file without giving the path explicitly. example: perl ./images/seed/test.pl I read on the export path command but I don't quite understand. ...
Alyssa Low's user avatar
0 votes
1 answer
849 views

Correctly redirect traffic from 80/443 to NodePort exposed Traefik 30080/30443 on Kubernetes using iptables

In a Kubernetes setting, Traefik is deployed as follows using HelmRelease: apiVersion: helm.fluxcd.io/v1 kind: HelmRelease metadata: name: traefik-default namespace: kube-system spec: chart: ...
Dyin's user avatar
  • 157
0 votes
1 answer
286 views

Convert text framed with asterisks(**) to italic, using sed command in Linux

The requires are bellow: Convert text framed with asterisks to italic. Don't touch text in double asterisks (bold). Use sed command. For example, *italic* => <em>italic<\em> **not ...
Vivian's user avatar
  • 1
0 votes
0 answers
29 views

Can a laptop be used as second monitor? [duplicate]

I have two systems, a Ubuntu PC and a Ubuntu laptop. I wonder if there is any way (wireless) to use my laptop as a second display? Because my laptop is too slow nowadays.
Howsen's user avatar
  • 715
1 vote
1 answer
1k views

Set environment variables on ssh session and be kept after logout

I want to understand how can I set some environment variables on a remote session that are kept even after i logout and login again afterwards. So,what i normally do userssh@sshserver:~> export ...
Filip Rus's user avatar
1 vote
2 answers
873 views

Burn ISO to USB with free space left

From what I tried, when you download for example Tails usb image (.img) and burn it to USB, it will only take space required for the image and will left remaining space free so I can format it and use ...
asdfggj's user avatar
  • 13
0 votes
1 answer
1k views

Partitions exist, but won't show in Linux / Windows file system

Background: I was using RAID1 configuration with two HDDs. It was set up using motherboard's (Asus x470 Prime Pro) RAID controller, which was working fine for Windows, but was not usable under Linux ...
PookyFan's user avatar
  • 111
0 votes
1 answer
159 views

Can't record or share my screen

Hi guys I face a problem, I can't share my entire screen on discord or any platform. It just goes black and no one can see anything except my mouse pointer! The problem is not on discord only but I ...
M.T.W tutorials's user avatar
63 votes
3 answers
107k views

How to unlock linux user after too many failed login attempts

After trying to login with the wrong password, my account is locked. When logging in on a TTY console I get the following message mylaptop login: myUsername The account is locked due to 3 failed ...
Joost's user avatar
  • 1,553
1 vote
1 answer
312 views

Linux Failing Drives Cant Find the Drives

I am being told I have a failing hard drive but no one can tell me which one. I have 2-146GB drives and 4-1TB drives. Accoring to my list I only see 2 of the actual drives? How can I get a list of the ...
user1687407's user avatar
2 votes
2 answers
5k views

64GB memory installed but only 32GB detected in UEFI BIOS and OS

I have extended my memory to 64GB (4x16GB) and noticed a strange behavior: First the mainboard doesn't boot and turned of automatically. Then I updated the UEFI (changelog shows memory compatibility ...
Lion's user avatar
  • 885
2 votes
1 answer
2k views

how to setup IPv6 ULA advertisement and -DHCPv6 in home network?

I am on ArchLinux, and I am running IPv6 in my local home network. IPv6-Internet comes with my fritz.box and works well with all clients. On my home server, I set up radvd to advertise my local ULA ...
Produnis's user avatar
  • 419
0 votes
0 answers
561 views

Linux doesn't see Windows Boot Manager while installing

On the other day I was installing Linux on my new laptop, which I just have obtained. It didn't have any system preinstalled so I installed Windows 10. After that I realized that I want to do some job ...
LeopardL GD's user avatar
0 votes
1 answer
232 views

Debian Buster - Avahi uninstalled itself, and can no longer use hostname on Windows PC

This is a bit of a weird one. I had a Debian 8 system, which I updated to Debian 9 and then Debian 10. After this was completed, I could no longer access it via the hostname, and instead have to use ...
Jademalo's user avatar
  • 139
0 votes
2 answers
263 views

Does using splitted VM-images make RSYNC-backups more efficient when using "--whole-file"?

I'm backing up some VMs of VirtualBox with somewhat large image files for their HDDs using RSYNC currently. Some of those images are 100 GiB in size, one is even 750. Backing those files up by letting ...
Thorsten Schöning's user avatar
0 votes
2 answers
2k views

Rsync Over SSH without PWD as Root -Catch-22

I have a remote directory that I want to rsync to my local machine over a ssh without a password because I want it be run as a cronjob (root user) This command (no sudo) fails because it cannot write ...
mjones's user avatar
  • 307
0 votes
2 answers
4k views

Can't run the ls command on the root directory without using sudo

CentOS 7.6.180 GNOME-CLASSIC 3.28.2 I've always been able to run ls on the / directory in the system above. Now it just hangs when I run ls. Same if I try to see the / dir with software other than ...
user787832's user avatar
0 votes
0 answers
209 views

After my first log in my VM the VM screen goes black, but after the session times out and I log in again everything is fine. What might be going on?

I'm several weeks into a cybersecurity bootcamp. As part of the course, we're diving into Linux via a virtual machine. The VM is being run on VirtualBox and is running the Debian distro of Linux and ...
user3810657's user avatar
5 votes
1 answer
7k views

Force a process to only use swap memory?

I have a custom program that performs analysis on some data. This is a very memory-hungry operation that can potentially use thousands of gigabytes of RAM. My computer only has 16gb of RAM, so my only ...
AlexRamallo's user avatar
2 votes
0 answers
224 views

Booting Linux from scratch off of an external hard drive

I first posted this on stack overflow and it got closed with the suggestion to post here. I have finished the building portion of Linux from scratch (Version 10.0) for the first time. I opted to build ...
derric-d's user avatar
1 vote
0 answers
147 views

How can I solve Linux Installer not showing partitions correctly?

I have a 120 GB SSD and a 500 GB HDD on my computer. I wanted to install Linux (Zorin OS) on my machine. Windows 10 is installed on the SSD while the HDD has 3 partitions. I have one partition empty ...
Max Programming's user avatar
0 votes
0 answers
28 views

Internal devices cannot access VirtualBox guest centos

My host ( Ubuntu ) can access to the webpage-wordpress running on VirtualBox guest centos8. But the other devices on the internal network cannot. The network setting is Bridged. I added some rules to ...
0sunday's user avatar
0 votes
2 answers
1k views

HDD with bad sectors, MBR gone, how to recover partitions

The hard drive in my old laptop started returning errors, so I stopped using it (probably a bit too late). It's in an external cradle now, that I've mounted read-only a couple of times. Unfortunately ...
AI0867's user avatar
  • 101
0 votes
0 answers
22 views

Linux server supervision with manager not in local network

I have several Ubuntu 16.04 servers (the "hosts") on a local network and I want to monitor them with a CentOS 7 server (the "supervisor") which is not on the local network. I want ...
ZoltanCocsis's user avatar
0 votes
2 answers
4k views

Ctrl + Alt + Del using "Apple Magic Keyboard 2 with keypad" on Windows

There is a similar question already, but it relates basically to MAC keyboard. And is quite old. Since it does not talk about Apple Magic Keyboard 2 with keypad, and it looks to be having a separate ...
ashishsony's user avatar
0 votes
2 answers
6k views

Cannot mount nfs at boot but works manually "Network is unreachable" w/ systemd

Debian 10 box will not mount NFS share from /etc/fstab however executing mount -a mounts said share. I noticed a longer boot time. # systemctl status home-user-weather-images.mount ● home-user-weather-...
user515655's user avatar
0 votes
2 answers
766 views

What would happen if I unplug the main SSD of my Computer while running? (Linux)

recently the laptop of my sis had some problems with windows that it could not access the bootpartition of drives connected via SATA properly, so it was bluescreening always on start. We tried to ...
NosClldms's user avatar
0 votes
2 answers
2k views

In bash, how can I replace empty lines with null and vice-versa?

How can I replace two newline characters \n\n with a null \0 character in bash, and vice-versa? I see that td can replace a single newline with null, but not two consecutive newline characters. I ...
Christopher King's user avatar
0 votes
1 answer
61 views

How to determine why there was a reboot

After a boot/reboot, is there a way of figuring out why there was a reboot? I can think of some reasons I would like to detect: Automatic reboot due to system upgrade Powerfailure User run sudo ...
UlfR's user avatar
  • 213
0 votes
1 answer
1k views

How to delete all files except some specific file (for many folders in a directory)? via bash script

So I have a Master folder that contains about 800 sub-folders (eg. 1,2,3...) which contains many files but I want to delete everything else except the file that ends with *tsv. Is there a way to do ...
JJ_K's user avatar
  • 3
1 vote
1 answer
185 views

Not able to run “sudo” after rebooting my Odroid-C2 system running Ubuntu 20?

I was happily working on my Ubuntu when suddenly — after a reboot — I realised I cannot longer invoke sudo nor root. Basically, this is what I get no matter what: lui@odroid:~$ su root su: ...
Manolete's user avatar
  • 111
4 votes
2 answers
1k views

Is it safe to move a LUKS encrypted partition to another system and be able to use the same passphrase?

If I have a LUKS encrypted partition with a passphrase, is all the information to unlock the partition contained in the header? Is the following correct: The passphrase allows access to the header ...
ram's user avatar
  • 161
0 votes
1 answer
20 views

What can be the cause of this error when attempting port forwarding for SSH?

I've checked my IP on whatismyipaddress, and then I entered it on whois to verify it is public, as described here. This was superfluous already, as I've been accessing my PC from abroad via ssh ...
Enlico's user avatar
  • 189
0 votes
2 answers
377 views

Mendeley doesn't start

I have installed Mendenley (32 bits) on a fresh Ubuntu Mate 18.04.5 LTS 32 bits, when I try to launch it by this command mendeleydesktop , it shows me the following error message: /usr/bin/../../opt/...
Lee's user avatar
  • 1
3 votes
2 answers
24k views

Can we clean yum cache files manually?

I am using Redhat 7 while running yum update I am getting Bus error (core dumped) error. After troubleshooting I found that / was full because of /var/cache/yum/x86_64/7server/rhel-x86_64-server-7/gen ...
max's user avatar
  • 3,943
0 votes
1 answer
671 views

I can't get my wildcard certificate to work

I'm running Apache v 2.4.38 on Debian 10 4.19.0-11-cloud (amd64), and I can't my wildcard certificate to work Steps I done (all as root) : Issued a Let's Encrypt certificate using acme.sh acme.sh --...
Nicolas Formichella's user avatar
0 votes
1 answer
6k views

Installing Linux headers on Kali

I recently installed Kali on Virtual Box and when I try to install the Linux-headers by using the code sudo apt update && sudo apt install -y linux-headers - $(uname -r) it reads the ...
Sathya's user avatar
  • 1
0 votes
1 answer
168 views

Ubuntu 16.0.4 - How to run PHP 5 in a specific directory

I have a VPS running ubuntu 16.0.4. I have already installed the lamp stack. I have an application I bought from code canyon which needs PHP 5.6 to run. Main App (directory) -------- code-canyon-app ...
jixodoj's user avatar
0 votes
0 answers
138 views

How much time it take to create partition table on wd green hdd?

I'm creating partition table using KDE partition manager. Formatting to NTFS but it doesn't yet done for creating file system of first drive dev/sda1. It's been just running at process Job: Create ...
Hemlata's user avatar
  • 113
0 votes
3 answers
883 views

iptables drop INPUT packets if they're not from my country

I'm thinking about adding rules to my iptables (Debian system) INPUT chain in my VPS that would only accept packets coming from my home country (my country isn't a huge one). I've found a site that ...
Kibartas's user avatar
  • 103
0 votes
1 answer
712 views

gpg-agent hangs after failed exit from password prompt

After trying to connect to an existing gpg-agent (with keychain for linux) and entering the password for it in the terminal with pinentry-curses, I for some reason failed to enter it correctly, and ...
Connor's user avatar
  • 301
0 votes
1 answer
739 views

How to completely scrub an raid disk?

I have started working on raid devices related project. And I would like to be able to test my changes easily. The problem is whenever I need to create or remove a new raid device, I have to go ...
feeling_lonely's user avatar
1 vote
0 answers
1k views

Docker-proxy prevents container to start after reboot

I have a PC used as a NAS running a NextCloud instance as a set of docker containers managed via docker-compose, I'll provide the docker-compose.yml below. My problem is that, even though all my ...
GTP95's user avatar
  • 11
0 votes
2 answers
1k views

Finding the IP of a VM in Bridged mode on another VM in bridged mode

I am trying to break into a VM (all legal) using another VM. They are both running in Bridged mode. The IP of my VM is 10.0.2.15 so my logic is to run nmap -sn 10.0.2.0/24 to scan my network but I'm ...
Matej Malešević's user avatar
5 votes
3 answers
10k views

How to change the encoding my SFTP server is using?

I have an Ubuntu server that is hosting some .png files using SFTP. When I try to access those files from my Windows laptop, using FileZilla, or WinSCP, the files are not transferred successfully if ...
John Stoneman's user avatar
1 vote
0 answers
156 views

Nginx Fails with [emrg] error

My web app has failed to load after I tried uploading some of my folders with Filezilla. On inspection of the problem, I found that Nginx service isn't running. The result of sudo nginx -t is: nginx: [...
Favour George's user avatar
1 vote
1 answer
1k views

How can I share inbuilt wifi adapter in guest linux os using virtualbox (Here No USB adapter used)

Installed Linux OS in virtualBox over windows 10 where I want to mount existing/internal laptop wifi adapter in guest os (in linux) as a bridge. Problem : If I mapping laptop wifi to guest os then I ...
Nullpointer's user avatar
3 votes
1 answer
1k views

What is “/dev/ploop15234p1” on my VPS?

After transferring some big files to my VPS I started getting "No space left on device". Even though du -sh / showed I had plenty of space, df -h reported differently: Filesystem ...
seattleite7's user avatar

1
172 173
174
175 176
1176