Questions tagged [linux]

Linux is the generic term for a UNIX-like open source operating system based on the Linux kernel.

GNU/Linux is a UNIX-like Open Source operating system. Linus Torvalds originally wrote the Linux kernel with contributions from others on the MINIX usenet board. Since then, Linux had thousands of developers, both paid by companies and volunteers. The main system tools and libraries for GNU/Linux are sourced from the GNU Project, hence the nomenclature GNU/Linux (GNU Toolchain over Linux Kernel). The Linux kernel is licensed under the GPL v2 license.

There are many different Linux Distributions (sometimes shortened to distro), which consist of software applications packaged and provided with the Linux kernel, being Slackware the oldest active distro and Debian, Red Hat and CentOS among the most used on Internet servers¹.

The Linux kernel is commonly run on servers but is highly portable and is used in a variety of applications, from wireless routers and cell phones to clusters and super computers with thousands of nodes and processors.

External Resources:

38271 questions
16
votes
3 answers

How can I diff two Redhat Linux servers?

I have two servers that have should have the same setup except for known differences. By running: find / \( -path /proc -o -path /sys -o -path /dev \) -prune -o -print | sort > allfiles.txt I can find a list of all the files on one server and…
Stuart Woodward
  • 1,343
  • 4
  • 14
  • 29
16
votes
4 answers

chroot fails - cannot run command `/bin/bash': No such file or directory

I'm a chroot novice trying to make a simple chroot jail but am banging my head against the same problem time and time again... Any help would be massively appreciated I've created a directory /usr/chroot that I want to use as a jail and created…
Mike Atkinson
  • 191
  • 1
  • 1
  • 6
16
votes
6 answers

Linux + Active directory authentication + only letting certain groups login

I have some linux boxes that use Windows Active Directory authentication, that works just fine (Samba + Winbind). What I would like to do now though is only allow certain people or certain groups to login using Active Directory credentials.…
Luma
  • 1,460
  • 4
  • 19
  • 31
16
votes
2 answers

Verify A Partition is Aligned in Linux With RAID and LVM

Does anyone know the steps to verify that a XFS filesystem on top of LVM and md RAID is properly aligned on an array of 4096 Byte aka "Advanced Format" sectored disks? Some references…
Kyle Brandt
  • 83,619
  • 74
  • 305
  • 448
16
votes
3 answers

Get log of mail sent with mail() from PHP (sendmail?)

After some server changes our PHP configuration got nuked, which caused a client's large mailing list to time out partially through about 4,000 addresses or more. We want to avoid sending a duplicate mail as much as possible, and we have the…
Kristopher Ives
  • 384
  • 1
  • 3
  • 14
16
votes
7 answers

Linux command to wait for a SSH server to be up

I have a script which creates a virtual machine and gives me back an IP address. Then I would like to do something like this: waitforssh 192.168.2.38 && ssh 192.168.2.38 And it will wait for the machine to be up and ssh to be responding, then ssh…
Weboide
  • 3,345
  • 1
  • 25
  • 33
16
votes
4 answers

How to disable passive mode in linux ftp command

I am using the "ftp" command of linux to send data to a 3rd party provider. This company states that we need to "Disable passive mode in your FTP client", and I confirm it doesn't work in passive mode. However, when I googled the linux command, I…
nute
  • 791
  • 2
  • 11
  • 22
16
votes
2 answers

How to configure a static wildcard subdomain with dnsmasq

I have a network behind a NAT with a few machines. The machines are: router - NAT, dnsmasq, forwarding - directly connected to the inet server - which runs ssh, www and some other stuff clients - which do stuff on server I also have…
Prody
  • 613
  • 3
  • 7
  • 16
16
votes
5 answers

Is online disk resize possible with KVM?

We're evaluting KVM for Linux virtualization on a few projects. All is going well so far. But one of our requirements is the ability to add disk space to a running guest without rebooting or taking it offline. Is this possible with KVM? The only…
Eil
  • 389
  • 2
  • 5
  • 12
16
votes
6 answers

Problems with SCP stalling during file copy over VPN

I have a series of files I need to copy via SCP over a VPN to a remote linux server each night. The files are not large, we're talking about tens of megabytes here, but the file copy almost always stalls after a few seconds. Running the SCP command…
MattC
  • 377
  • 1
  • 4
  • 11
16
votes
3 answers

logrotate does not compress /var/log/messages

Over time I noticed some logs in /var/log such as auth, kern and messages were getting huge. I made logrotate entries for them: $ cat /etc/logrotate.d/auth.log /var/log/kern.log { rotate 5 daily } $ cat /etc/logrotate.d/kern.log…
Mike Mazur
  • 6,133
  • 2
  • 20
  • 13
16
votes
2 answers

What is the difference between /usr/local/bin & /usr/local/sbin

I wrote a simple script which I want to share with my colleagues. Should it be in /usr/local/bin or /usr/local/sbin? What is the typical usage for these directories?
Jérôme Kerviel
  • 161
  • 1
  • 1
  • 3
16
votes
2 answers

'Unrecognised disc label' - when using parted with qemu images

I have a Linux from scratch LiveCD running on qemu vm. I'm using this command to create a hda disc for qemu: qemu-img.exe create -f qcow2 base-linux.img 5G Then I run my vm: qemu.exe -m 1024 -boot d -cdrom lfslivecd-x86-6.3-r2145.iso -hda…
Valentin V
  • 355
  • 1
  • 3
  • 7
16
votes
1 answer

mariadb.service start stuck at activating

I just installed the mariadb in my ubuntu 19.10 by sudo apt install mariadb-server mariadb-client after when I am trying to start the server by sudo systemctl start mariadb.service shell get freeze I have to use Ctl+c to get shell running. In the…
Sarthak Kumar
  • 263
  • 1
  • 2
  • 5
15
votes
3 answers

How can I test a new cron script?

I'm running on a couple of different Linux distros (Fedora 11, CentOS 5 and SuSE 10.2) and often run into a problem where a new script that I want to run as a cron job works fine when called direct from the command line, but fails when called from…
gareth_bowles
  • 9,127
  • 9
  • 34
  • 42