These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

learn more… | top users | synonyms

3
votes
1answer
2k views

Command line audio - piping for simultaneous playback and recording

I am trying to generate sound data, convert it and store it to a WAV format. I'm almost there - except I'd like to hear the generated sound "while" it is being "recorded". This command line just ...
3
votes
4answers
2k views

Generate a key (number?) based on part of the machine's hardware components

I'm wondering what is the best way to manually generate a hardware key based on certain components of the machine. Here's the thing: I want only certain type of machines to be able to communicate ...
4
votes
1answer
3k views

Replace variable read from a text file (so they can be interpreted)

I tried several stuff with not luck so maybe one of you experts can help me (I hope!). I want to store in a text file some select statement that contain variables like a date: $ cat res.txt select ...
2
votes
1answer
1k views

snmp/snmptrap support of ipv6

I have IPv6 only (not dual stack) system I wondering how to - send snmptrap from this system? - configure snmpd to be able to access it? I mean, is snmp is ready to use in IPv6 only environment?
2
votes
0answers
1k views

on puppy linux, how to manage power settings

I'm new to using Puppy Linux, and I'm not able to find a way to manage power settings. The laptop stops working everytime I close and re-open the lid so I want to disable that function from doing ...
1
vote
2answers
752 views

NAND flash memory wear & virtual memory page swap

For a linux kernel with virtual memory and disk storage, pages are swapped back and forth into swap area. But embedded systems generally use NAND flash instead of disk. A NAND flash has a limited ...
3
votes
3answers
351 views

Creating one-time cgroup

I would like to be able to create a one-time temporary group in hierarchy. For example: #!/bin/sh run_with_csubgroup /sys/fs/cgroup/group/subgroup/ Which creates group say /sys/fs/cgroup/group/...
2
votes
1answer
217 views

Set a callback for when a certain process is spawned

The script I'm writing launches process A, which after an uncertain amount of time, launches a child process B. I need the script to execute a command C which depends on process B. But B might not be ...
18
votes
3answers
42k views

How do I identify which Linux distro is running? [duplicate]

We have some new hardware in our office which runs its own customized Linux OS. How do I go about figuring which distro it's based on?
29
votes
1answer
28k views

Need explanation on Resident Set Size/Virtual Size

I found that pidstat would be a good tool to monitor processes. I want to calculate the average memory usage of a particular process. Here is an example output: 02:34:36 PM PID minflt/s ...
5
votes
2answers
298 views

Any other distro offer like Ubuntu Software Centre?

I want to know does any other linux disto offer anything close to Ubuntu Software Centre? Some of the features I like about it is A) Sandboxing B) Ability to search any of the libs/apps with ...
4
votes
1answer
2k views

Which Linux distro supports GNOME 3 by default?

I was planning on installing a new Linux distribution and I am thinking of trying GNOME 3 interface. Other than Fedora 16 (which has GNOME 3 as default) which other distro supports it? I know it can ...
1
vote
1answer
269 views

iptable rule to redirect only https handshake?

I was reading this interesting article today: http://www.moserware.com/2009/06/first-few-milliseconds-of-https.html A crazy thought came to mind...Is it possible to write an iptable rule that only ...
1
vote
1answer
555 views

Process Migration Scripting

I want to write some shell script which can perform the process migration from one node to another. Is it possible ? Can somebody please help me scripting this. What all should I know before coding ...
5
votes
2answers
3k views

Preventing program from using internet

Is there a way to block certain programs from being able to connect to the internet in Debian (a firewall blocking outgoing connections), so for example, to block a windows program running in wine ...
1
vote
1answer
3k views

ldconfig not finding libprotobuf.so

I am attempting to install the protobuf library on a Redhat system (Amazon EC2's Linux build). I ran configure, make, and make install without a problem, and the .so libraries were copied over to /usr/...
4
votes
4answers
2k views

Partitioning a 2tb drive

Im new to linux Im planning to install Squeeze on a 2tb hard drive a follows: / - 10gb swap remaining space will contain /home, around 1.9tb i hope, i will try to use as lvm to add my old 1tb drive ...
2
votes
2answers
276 views

bash script with network request in pure lsb environment

From what I can understand of LSB documentation, neither wget or netcat are standard tools always available in an LSB environment. Is there some other way to make a http request without being ...
8
votes
5answers
1k views

iptables on tor exit node

I want to run an open Tor router. My exit policy will be similar to ReducedExitPolicy. But I also want to make it hard for the tor network to abuse my resources. Cases I want to prevent clients ...
31
votes
3answers
57k views

Can I connect to Windows machine from Linux shell?

I can connect to Linux machines from Windows using PuTTY/SSH. I want to do the other way round - connect to a Windows machine from Linux. Is this possible?
3
votes
0answers
777 views

Build an Affordable Linux Tablet [closed]

I have 3 young children and my wife has asked that the girls get a tablet, for basic gaming, and online web tutorials (school work usually). Has anyone created or built a good affordable Linux ...
3
votes
3answers
1k views

X11 forwarding through SSH

I have been playing around with X11 forwarding the past few hours and so far I've managed to forward my desktop pc's X Server to my laptop, using X11VNC as server and X2VNC as client. X2VNC uses ...
2
votes
2answers
7k views

How do I change the font size when using lp on Linux?

I used to send files in Unix to a printer with lp, and used -ofp16.16 or -ofp12 to change the size of the fonts. This does not work on Linux; what should I use instead?
8
votes
3answers
3k views

Exploring RAM contents

I am using a redis Database and would like to explore the contents of the RAM the application is using. I feel the explanation of why I want to do this will make more sense then the question I would ...
8
votes
1answer
16k views

Move a logical volume from one volume group to another

Is it possible to move a logical volume from one volume group to another in whole? It is possible to create a (more or less) matching lv and copy the data over, but is there any way to do this with ...
38
votes
8answers
66k views

Correctly determining memory usage in Linux

I'm a bit confused on some of the results I am seeing from ps and free. On my server, this is the result of free -m [root@server ~]# free -m total used free shared ...
5
votes
1answer
1k views

Adding files to initrd makes linux not be able to read it

I'm using clonezilla-1.2.12 and need to add the Broadcom firmware to the initrd so it can netboot. (clonezilla is debian-based and debian no longer includes the firmware blobs as they're non-free. ...
18
votes
2answers
5k views

How to find out the file offset of an opened file?

My problem is that with lsof -p pid I can find out the list of opened file of a process whose process id is pid. But is there a way to find out the file offset of each accessed file ? Please give me ...
1
vote
1answer
997 views

iPod Nano 6G on Linux

I see that Apple no longer supports libgpod for the iPhone4/iPod Touch 4 and Nano 6G. I see also that the system of databases for those new device has to be the same. I found many videos where you ...
1
vote
1answer
239 views

rpm and deb fileformat are blocked by my ISP. How to install software?

I have a very peculiar problem, Just be patient with what I am saying and then see what all suggestion you can give me. I have situation where my ISP has blocked .rpm and .deb files to be downloaded. ...
2
votes
2answers
506 views

Swap alt and windows key except when using an external keyboard

On my laptop the Alt and Windows keys are in the opposite positions that I'd prefer them in. Swapping them is fairly easy. However, my external (USB) keyboard has the Alt and Windows keys in the order ...
8
votes
3answers
11k views

64-bit Linux doesn't recognize my RAM between 3 and 32 GB

My problems were caused by a faulty memory module and quite possibly a broken kernel binary. I just now booted my PC with basically brand new hardware. I've been running Debian 6.0 AMD64 before, ...
-4
votes
2answers
386 views

What is the difference between root and chroot?

Is there any different between root and chroot in Linux? Can anyone please explain them?
2
votes
4answers
27k views

Is there a difference between sudo su - root and sudo -u root -H /bin/bash?

Like title says, is there a difference between these two commands : sudo su - root sudo -u root -H /bin/bash I'm using GNU/Linux, if that makes a difference.
3
votes
2answers
14k views

Clearing DNS Cache in Linux

I work on Linux on my laptop, I could not access a particular website using the URL, so I used sudo /etc/init.d/nscd restart in order to clear the DNS cache, but the URL is still throws 'Server Not ...
6
votes
3answers
4k views

Is the Solaris libc based on the GNU libc?

On Solaris: basename.c #include <stdio.h> #include <libgen.h> int main(int argc, char* argv[]) { int len = strlen(argv[0]); char *bsname = basename(argv[0]); printf("%s\n", ...
0
votes
1answer
456 views

Postgres 9.0 linux command to windows command conversion [closed]

i am working on an application using delphi 7 as the front end and postgres 9.0 as the back end. I have to upload images to the server so i use \lo_import and \lo_export for inserting images on the ...
1
vote
0answers
513 views

Compiling and running linux test project

I'm trying to install Linux Test Project (LTP) on Debian 6.0.2, kernel 2.6.33.20. Compilation and installation went fine and without errors, but when I try to run basic tests $ ./runltp I get ...
3
votes
0answers
327 views

Increasing serial baud rate within Ubuntu under VirtualBox

I'm debugging a kernel module under VirtualBox with a guest and host OS as Ubuntu 10.10. I'm using the virtualbox serial port but I'm maxing out at the baudrate 115200. My grub config looks like this.....
1
vote
1answer
476 views

resolv.conf + PXE server + kickstart files

I use PXE server in order to download kickstart and to install Linux. After installation I saw that /etc/resolv.conf was created with the IP of the PXE server. Why there is PXE server IP address in ...
1
vote
1answer
574 views

Install MultiUpload Extension in MediaWiki

I am trying to install "MultiUpload" mediawiki extension. I followed the installation instructions and added below code to my mediawiki "LocalSetting.php" file require_once("/var/lib/mediawiki/...
3
votes
4answers
2k views

How to remove an empty directory (btrfs filesystem)?

I'm using the experimental btrfs filesystem. My directory looks like this: ls -la empytfolder total 4 drwxr-xr-x 1 root root 0 19. Mär 14:00 . drwxr-xr-x 1 root root 298 19. Mär 13:59 .. I ...
7
votes
1answer
6k views

Ctrl+Alt+F8 meaning

I know that Ctrl+Alt+FX (X=1 to X=7) are 7 different ttys. Suddenly, I tried to find out what other combinations Ctrl+Alt+FX (X=8 to X=12) leads to. After pressing the combinations, I found that a ...
5
votes
6answers
4k views

How to disable shutdown so that an important process cannot be interrupted?

What is the simplest way to disable or temporarily suspend reboot/shutdown when an important process is running? The process takes too long to finish and cannot be paused/resumed so I like to avoid ...
8
votes
2answers
342 views

Linux kernel headers' organization

While I was doing some reading on system calls, I did a search for "syscalls.h" to find the header file in LXR. The search results puzzled me. There is a dozen of "syscalls.h" files coming from ...
2
votes
1answer
2k views

Looking for “Camera Mouse” for Linux

I have come across a cool piece of software called Camera Mouse. It lets you control your mouse cursor with just a webcam. Is there software like that for Linux based operating systems? (I would ...
1
vote
2answers
136 views

Non-distro specific, linux tweaking, hacking and learning support IRC

Distro-specific support channels are good only if you run their clean stable versions out of the box and basically don't install anything other than what you get out of the box. But what about those ...
3
votes
2answers
198 views

What should I teach in my Linux class? [closed]

I'm teaching a basic Unix class using Ubuntu. We've already covered basic Unix stuff such as: bash shell scripting file and directory permissions filesystem hierarchy common commands I would like ...
15
votes
5answers
3k views

How do you properly fork a Linux distro? [closed]

I was wondering, how one would go about creating a Linux distro. LFS seems like overkill, I would rather fork an existing distro. I know there are several "respin" applications, but these only seem to ...
30
votes
5answers
31k views

Why does Linux allow ‘init=/bin/bash’?

I recently found out that if I edit GRUB before booting and I add rw init=/bin/bash I end up with a root shell. Being in a condition that I want to understand everything I would like to know why this ...