Questions specifically about Linux, as opposed to Unix-like systems in general, or to questions about a specific distribution or program.

learn more… | top users | synonyms

31
votes
10answers
45k views

List partition labels from the command line

Is there a command that will list all partitions along with their labels? sudo fdisk -l and sudo parted -l don't show labels by default. EDIT: (as per comment below) I'm talking about ext2 labels - ...
3
votes
2answers
2k views

How on earth can I stop this CUPS-related message on my Debian 6 virtual machine?

I’ve got a Debian 6 VMWare virtual machine that I mostly use via SSH (but occasionally via the GUI). Every few minutes, the following message gets printed in my terminal: CUPS config timestamp ...
9
votes
0answers
493 views

How to determine distribution from command line? [duplicate]

Possible Duplicate: Bash: Get Distribution Name and Version Number Given (root) access to a machine with Linux through the command line(over ssh), how can I determine which distribution is ...
2
votes
1answer
1k views

Message while booting : “can't allocate mem resource [0xc0000000-0xbfffffff]”

I get the following message on the console every time the Linux kernel boots: pci 0000:00:00.0: BAR 0: can't allocate mem resource [0xc0000000-0xbfffffff] Is this an error message? What causes this ...
4
votes
2answers
3k views

Configuring cron.hourly

I am unable to configure a cron job to run by placing it in /etc/cron.hourly folder. SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # run-parts 01 * * * * root run-parts ...
8
votes
4answers
9k views

when does the system send a SIGTERM to a process?

My server program received a SIGTERM and stopped (with exit code 0). I am surprised by this, as I am pretty sure that there was plenty of memory for it. Under what conditions does linux (busybox) send ...
18
votes
1answer
3k views

per process swapiness for linux

/proc/sys/vm/swappiness is nice but i want a knob that's per process like /proc/$PID/oom_adj so that i can make certain processes less likely than others to have any of their pages swapped out unlike ...
1
vote
1answer
1k views

Use math.h and link objects files without -lm

I am currently reading Advanced Linux Programming and in the section 2.3.3 it is said that if I use some function from math.h I have to link the object files with -lm. But I am pretty sure that I ...
11
votes
2answers
2k views

Is there a downside to ksplice?

ksplice is an open source extension of the Linux kernel which allows system administrators to apply security patches to a running kernel without having to reboot the operating system. (From ...
3
votes
4answers
4k views

Why did my package get installed to /opt?

A while back I installed couchdb from source on my debian machine. It seemed to install okay and everything worked. A few weeks later I wanted to upgrade and installed from a .deb using dpkg. ...
15
votes
2answers
53k views

Orphaned connections in CLOSE_WAIT state

I've got a SLES machine that accumulates TCP connections in a CLOSE_WAIT state for what appears to be forever. These descriptors eventually suck up all available memory. At the moment, I've got 3037 ...
17
votes
5answers
4k views

How to start a new Linux distro?

Some of my friends and I are interested in starting a new Linux distro. How do we do that? What do we need to plan? Backstory I represent a community of Linux sysadmins/implementors whose special ...
3
votes
1answer
1k views

Open Source firmware for e-ink book reader

Is there any open source version of firmware for ebook readers or maybe project like RockBox? AFAIK most of e-ink readers runs linux, so maybe exists at least one model of e-reader with an open ...
18
votes
3answers
19k views

Where can I see a list of kernel killed processes?

Is there some way I can check which of my processes the kernel has killed? Sometimes I log onto my server and find that something that should've run all night just stopped 8 hours in and I'm unsure if ...
7
votes
2answers
3k views

Small Distributed Computing Cluster

I'm a high school student trying to build a linux cluster for a project (I have a bunch of decent computers slated for re-image this summer, so the tech department basically says as long as I don't ...
20
votes
2answers
9k views

/proc/PID/fd/X link number

In Linux, in /proc/PID/fd/X, the links for file descriptors that are pipes or sockets have a number, like: l-wx------ 1 user user 64 Mar 24 00:05 1 -> pipe:[6839] l-wx------ 1 user user 64 Mar 24 ...
0
votes
1answer
807 views

internal speaker not working ubuntu 10.10

I have a dv6000 laptop . My speaker and mic were working few days ago . But now only external speaker works. Can anyone suggest me some solutions please. Thanks.
4
votes
1answer
1k views

Safe to delete System.map-* files in /boot?

I'm experimenting with generating some custom kernels using genkernel. However, each iteration leaves a file in /boot called System.map-genkernel-<arch>-<version>. Is it safe to rename ...
34
votes
11answers
17k views

How do I find how long ago a Linux system was installed?

How can I find the time since a Linux system was first installed, provided that nobody has tried to hide it?
4
votes
1answer
597 views

Does IO prioritise by the very nature of renicing a task?

The CFQ IO scheduler supports priorities though I am not sure that Deadline does (I believe not). The premise is that when I renice a task it gets a larger share of CPU under the Completely Fair ...
6
votes
6answers
13k views

How does a kernel mount the root partition?

My question is with regards to booting a Linux system from a separate /boot partition. If most configuration files are located on a separate / partition, how does the kernel correctly mount it at boot ...
1
vote
2answers
1k views

iptables rule for local network with free internet blocking unrequested connection from internet to server?

I have a home server (with slackware 13) with a eth0 for the local network and a eth1 for the internet (cable modem with dynamic ip). While I do want to learn more about iptables I am still on the ...
11
votes
2answers
7k views

How to investigate cause of total hang?

My Arch machine sometimes hangs, suddenly not responding in any way to the mouse or the keyboard. The cursor is frozen. Ctrl-Alt-Backsp won't stop X11, and ctrl-alt-del does exactly nothing. The ...
0
votes
1answer
101 views

Kernel - Starting the application

I placed the uBoot loader and the kernel into the raw flash image. This does not contain any root file system. (I copied uBoot and kernel image using dd command to a flash image). Now i have to ...
1
vote
2answers
399 views

Google chat video - Fedora / Google Chrome

The webcam is working, because i can see me with the "Cheese" app. ok..... I installed: google-talkplugin_current_i386.rpm then i opened chrome, and this is what i see: ...
2
votes
1answer
11k views

How do I determine LVM mapping on a physical device?

I have a server (SUSE 11.5) that has two disks. There is only one volume group (vg01). How do I determine the physical device on which that vg exists?
5
votes
3answers
6k views

How to cd to a Windows file share?

At work, I spend a lot of time manipulating files on a networked computer that's running SME Server (but that's set up for Windows filesharing, if that somehow makes a difference). I have been ...
2
votes
1answer
885 views

Where is CONFIG_COMPAT_VDSO in make menuconfig?

I'm trying to compile a Linux Kernel to run light and paravirtualized on XenServer 5.6 fp1. I'm using the guide given here: ...
9
votes
7answers
17k views

How do I work with GUI tools over a remote server?

I have an Ubuntu server running on EC2 (which I didn't install myself, just picked up an AMI). So far I'm using putty to work with it, but I am wondering how to work on it with GUI tools (I'm not ...
2
votes
1answer
183 views

Only output printable chars OpenWrt

perl is not a very good idea, because it's an OpenWrt router, so not enough space for it. "cat -v" doesn't works, because it doesn't supports the "-v" option Any ideas? :\ Here's a bad text: ...
0
votes
2answers
4k views

How can I get the error code (exit code) of “xdg-mime query filetype” command?

I ran xdg-mime query filetype <file name> to check the MIME type of a file, and it failed. How can I print the error code (exit code) of the xdg-mime command? I want to know what error ...
3
votes
2answers
1k views

Why does `xdg-mime query filetype …` fail to find a new added file type?

I installed a new file type to share MIME database. But xdg-mime query filetype cannot tell the new type. This problem only happens on my own Linux OS which does not use GNOME or KDE as its desktop. ...
7
votes
4answers
360 views

How can I safely give a shell to somebody?

I have a question about giving a shell account to somebody. How safe is it? He could read /etc. How can I give a secured shell account that will only restrict the user to some bins and his own home? ...
0
votes
1answer
415 views

Setting a Multi-Terminal Linux Server

So Im a complete newb when it comes to enterprise level linux distros, and linux servers in general. I know my way around Most Linux Desktops, but Im going to be setting up a small Linux Server that ...
4
votes
3answers
388 views

Is it possible to simulate “no external access” from a Linux machine when developing?

Sometimes I upload an application to a server that doesn't have external internet access. I would like to create the same environment in my machine for testing some features in the application and ...
1
vote
1answer
1k views

Device names for logical volumes

Consider this: # fdisk -l /dev/sda Disk /dev/sda: 298.9 GB, 298999349248 bytes 255 heads, 63 sectors/track, 36351 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot ...
1
vote
1answer
2k views

How can I get an ELO Touch Screen to work?

I have bought a new touchscreen POS machine and I have installed fedora 14 on it. I couldn't make the touch screen work, as the ELO touch manufacturers have drivers only for kernel 2.6.14 versions. ...
0
votes
1answer
548 views

Hide referer with privoxy

How can i set a privoxy rule in the user.action file to block the referer information on any site?
2
votes
1answer
386 views

How is MIME type “text/html” registered to shared-mime-info? Where is its *.xml file?

On Ubuntu 10.10, which XML file under the directory /usr/share/mime/applications is for MIME type text/html? I checked xml.xml and xhtml+xml.xml, but neither has a glob pattern of *.html. So where is ...
4
votes
3answers
513 views

Multicasting in Linux

I want to do multicasting in linux for the video/audio/data file transmission. Is there any utility/tool to do so ?
7
votes
2answers
242 views

Hibernate and security considerations

How do Linux and OSX handle sensitive memory pages (e.g. cryptographic keys) when running OS is suspended to disk? If the memory image written is encrypted, how are its keys handled?
2
votes
2answers
3k views

Numbering convention for the linux kernel?

What is the convention for numbering the linux kernels? AFAIK, the numbers never seem to decrease. However, i think I've seen three kinds of schemes 2.6.32-29 2.6.32-29.58 2.6.11.10 Can anybody ...
3
votes
1answer
2k views

Privoxy redirect rule for Wikipedia

I have a few Privoxy rules, that can redirect HTTP Wikipedia [en,de] traffic to HTTPS: (a little part from the "user.action" file) { ...
0
votes
1answer
493 views

I am failing to build gudev with JHBuild

When I run jhbuild buildone gudev I get: <SNIP> Making all in . CC extras/gudev/extras_gudev_libgudev_1_0_la-gudevclient.lo CC ...
2
votes
2answers
312 views

Different sleep binaries on Mac (Darwin) and in Linux. How to properly handle the differences?

In my Linux box, sleep accepts seconds, minutes and hours. So: sleep 10m Sleeps for 10 minutes (or 600s). sleep on Mac only accepts seconds as argument. sleep 10m doesn't work, only sleep 600s. ...
7
votes
1answer
3k views

Can new glibc versions be used with an old kernel?

Apparently glibc can be compiled with --enable-kernel to support older kernel versions. However, I haven't been able to find information on what kernel versions are supported on a particular glibc ...
4
votes
1answer
3k views

Terminal charset / font

I want to write a game which runs in a terminal. I do some terminal coloring and wanted to use some unicode characters for nice ascii art "graphics". But a lot of unicode characters aren't supported ...
3
votes
2answers
458 views

How limited is the Linux-based distribution on the Nokia n900?

I am interested what N900 can do with Linux-based Maemo 5 system installed. Can it for example: Compile c++ or java files? Hack into wifi (I meant advanced wlan card features) Create own wifi ...
3
votes
1answer
158 views

Filesystem and journal layout

Is there any tools or some way in linux which can be used to view internals of filesystems ? How to view the inode related structures and journal ? and cached pages of files (pagecache).
5
votes
1answer
2k views

How to view bad blocks on mounted ext3 filesystem?

I've ran fsck -c on the (unmounted) partition in question a while ago. The process was unattended and results were not stored anywhere (except badblock inode). Now I'd like to get badblock ...