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
15
votes
7 answers

Is there any other reason for "no space left on device"?

I am using Dirvish on a Ubuntu server system for backing up a hd to an external usb 3.0 drive. Until a few days ago, everything worked fine, but now every backup fails with "no space left on device (28)" and "file system full". Unfortunately it is…
dummzeuch
  • 607
  • 1
  • 9
  • 20
15
votes
2 answers

Adding a route to specific host go out a specific interface

I have a Red Had Linux machine with two NICs: eth0 - 10.0.1.253 | 255.0.0.0 eth1 - 10.0.1.1 | 255.255.255.0 So the first one is on a class A subnet, the second is on a class C subnet. This is what my routing table looks like: Destination …
Andy Arismendi
  • 1,188
  • 5
  • 16
  • 27
15
votes
3 answers

Is it necessary to manually set the interface broadcast address?

I'm converting my scripts from old net-tools: ifconfig eth0 192.168.2.1 netmask 255.255.255.0 to iproute2: ip link set eth0 up ip addr add 192.168.2.1/24 dev eth0 and I notice that the new commands do not set the broadcast address by default. What…
Powerman
  • 575
  • 1
  • 4
  • 12
15
votes
3 answers

Resetting a queue discipline back to the default pfifo_fast one?

I'm trying to temporarily set a rate-limited queue discipline and then remove it a bit later: # /sbin/tc qdisc add dev eth1 root tbf rate 600kbit latency 50ms burst 1540 # /sbin/tc qdisc del dev eth1 root Unfortunately, this entirely removes the…
François Marier
  • 381
  • 2
  • 3
  • 12
15
votes
3 answers

Why chroot is considered insecure?

I've been playing around with CentOS box for couple of years now. So I'm pretty comfy with terminal. However, I read a lot of blog-post claiming that chroot is insecure and amount of those posts frightens. Is it really so? Why? I use chroot to…
Aleksandr Makov
  • 310
  • 2
  • 10
15
votes
3 answers

How do you test iptables rules to prevent remote lockout and check matches?

As I'm learning about iptables I've made a couple of mistakes and locked myself out. What method(s) do you use to test rules without locking yourself out? I'm using ubuntu server 12.04 LTS All the answers below were helpful. In the end I used a…
hookenz
  • 14,472
  • 23
  • 88
  • 143
15
votes
6 answers

How can I easily convert HTML special entities from a standard input stream in Linux?

CentOS Is there an easy way to convert HTML special entities from a data stream? I'm passing data to a bash script and sometimes that data includes special entities. For example: "test" & test $test ! test @ # $ % ^ & * I'm not sure why…
Mike B
  • 11,871
  • 42
  • 107
  • 168
15
votes
4 answers

Installing PHP extensions on Linux

Please bear with me; I'm a developer, not a server admin. My company wants to explore using Magento. They've handed me a pre-configured Linux server with apache and PHP installed, but when I try to run the Magento setup, it tells me that there are…
EmmyS
  • 253
  • 1
  • 2
  • 7
15
votes
9 answers

wget starts downloading then stops "cannot write to"

I'm using wget to mirror some files across from one server to another. I'm using the following command: wget -x -N -i http://domain.com/filelist.txt -x = Because I want to keep the directory structure -N = Timestamping to only get new files -i = To…
John Mellor
  • 310
  • 1
  • 3
  • 9
15
votes
5 answers

Install ssconvert (part of gnumeric) on a server without GNOME

I need to use gnumeric's file conversion tool ssconvert on a server. The problem is that gnumeric is a gnome application and can't be installed without a desktop installed. There is also no separate packages for ssconvert, and I can not compile it…
Martin Taleski
  • 373
  • 3
  • 5
  • 14
15
votes
3 answers

Deciphering continuing mpt2sas syslog messages

Summary I have been getting these cryptic messages in syslog since I installed some new hardware and I can't figure out what the problem is, if it's serious, or what to do about it. They're from the new SATA HBA and they follow a pattern. I will get…
Chris Smith
  • 580
  • 1
  • 4
  • 13
15
votes
1 answer

Where are ethernet errors logged?

Munin is showing me a graph like this: During that spike, I was unable to access my server through the eth0 port (I could access it through my IPMI port). I'm trying to figure out what happened, but I can't seem to locate any log files for eth0. I…
Matt
  • 207
  • 1
  • 3
  • 6
15
votes
1 answer

Resizing a LUKS encrypted volume

I have a 500GiB ext4 filesystem on top of LUKS on top of an LVM LV. I want to resize the LV to 100GiB. I know how to resize ext4 on top of an LVM LV, but how do I deal with the LUKS volume? mgorven@moab:~% sudo lvdisplay /dev/moab/backup ---…
mgorven
  • 30,615
  • 7
  • 79
  • 122
15
votes
1 answer

finding PCIe lanes in linux

I have a PCIe (ver 2) linux system. I want to find out how many PCIe lanes were negotiated and are being used between my device and the host controller . (I do not know how many lanes my device supports or how many lanes the slot has)
MK.
  • 305
  • 1
  • 3
  • 6
15
votes
2 answers

is UNC S.M.A.R.T. Error serious? need to take action?

I have a 300G Western Digital Raptor, recently showing UNC SMART, wondering anyone who has experience knows should I replace it and get warranty form WD? Details of smartctl -a as follows: smartctl 5.41 2011-06-09 r3365 [FreeBSD 8.2-RELEASE-p6…
c2h2
  • 768
  • 2
  • 9
  • 20