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

13
votes
2answers
5k views

What happens when I close() a file descriptor?

I am trying to get the whole picture with file descriptors. Say I have process1 which initially has these file descriptors: _process1_ | | | 0 stdin | | 1 stdout | | 2 stderr | ...
5
votes
3answers
8k views

How to share files between Linux and Windows?

I am wondering, is there any way to easily share a folder between Linux and Windows?
1
vote
1answer
97 views

dump out some tables of the database

I am using MySQL v5.1 on Ubuntu machine. I have a database named db_test which contain tables like cars, customers, departments, prices , and so on. I know I can use the following commands to dump ...
9
votes
3answers
4k views

Why does initramfs mount the root filesystem read-only

What is the reason for the root filesystem being mounted ro in the initramfs (and in initrd). For example the Gentoo initramfs guide mounts the root filesystem with: mount -o ro /dev/sda1 /mnt/root ...
4
votes
2answers
2k views

Restricting memory area for linux kernel

I am running ltib Linux on P1022RDK (P1022 Core) platform. I have 512 MB = 0x20000000 memory. I want my Linux kernel to use the second half of the board memory (i.e from 256 MB to 512 MB) and want the ...
0
votes
1answer
582 views

Linux based tools for multiple TV channels (cable TV) digitization

I'm planning to start a service which archives TV video content (at low quality). I'm exploring what software and server setup will be needed. The TV channels in the geography I'm looking at are ...
2
votes
1answer
433 views

Is there a difference between Linux and Unix? [duplicate]

Possible Duplicate: Is Linux a Unix? Kind of confused by the two terms. Is there any difference between the two terms?
4
votes
1answer
7k views

CentOS doesn't know what the internet is

So I've done my share of investigating this problem... I just recently created a CentOS 6 VM on my LinuxMint box using VirtualBox. I left all the recommended values the same upon creation (8GB HDD, ...
10
votes
3answers
4k views

Make changes to /sys persistent between boots

I want to make "echo 1 > /sys/kernel/mm/ksm/run" persistent between boots. I know that I can edit /etc/sysctl.conf to make /proc filesystem changes persist, but this doesn't seem to work for /sys. ...
7
votes
4answers
27k views

How to play RTSP stream under Linux for the BOSCH AutoDome Junior HD IVA camera?

I have a AutoDome Junior HD IVA camera. How do I play RTSP stream in my Linux distro? I tried VLC but it fails. Is there any other reliable tool? Follow up: Try 1: fail $ mplayer ...
2
votes
1answer
2k views

Boot device /dev/sda1 does not exist on Debian in QEmu

I have an image of Debian/LXDE assembled for ARM and I trying to run it in Qemu. I am using this command: sudo qemu-system-arm -M versatilepb \ -kernel ./vmlinuz-2.6.32-5-versatile \ ...
4
votes
1answer
165 views

connect() blocked for 3 seconds after a lot of success connect()

I am writing a client-side application which connect() to a server and close it in a for loop. The connect() is done in blocking-mode, and I found that some connect() call will block for about 3 ...
3
votes
2answers
4k views

Postfix: save every outgoing mail in files

I am using postfix as a SMTP server on a network that does not have internet connection. I would like to configure every mail client to send mail to the postfix SMTP server. When the server receive a ...
3
votes
2answers
625 views

Is there a log of past threads that are now closed?

Sometimes, I have a rogue Java process which takes up 100% of my CPU and makes it jump about 30C in temperature (usually resulting in a crash if not killed). Problem is, I can never really identify ...
2
votes
3answers
531 views

advance strategy to interrupt a linux application that has “hung” and made X desktop unresponsive

When an application (thunderbird) has a problem, sometimes it goes into an unresponsive state where it has blocked the UI, is blocking login processes (at tty terminals) and also is preventing a ...
1
vote
0answers
790 views

Why is this ALSA configuration file preventing aplay and arecord from listing PCM devices?

In my embedded system I have this configuration file in /etc/asound.conf: pcm_slave.sl2 { pcm "hw:0,0" rate 48000 channels 2 format S16_LE } pcm.rate_convert { ...
1
vote
1answer
756 views

How can I learn some advanced logrotate techniques? [closed]

The logrotate section in the Linux administrator's handbook is very brief. The man page is ok but lacks examples. Where can I find some more comprehensive information, examples, and best-practice ...
4
votes
2answers
2k views

Russian timezone is not up-to-date

I have noticed, that the Russian timezone is not up-to-date. The GMT offset is set to +3 h now, whereas the current GMT offset is +4 hours. Could someone tell me how can i manually edit the tzdata ...
2
votes
2answers
1k views

How can I make bash more readable? [closed]

As a linux user, I spend a lot of time mucking about in bash. I've always been a bit frustrated by how poor the readability is. Today this annoyed me enough to spur me into action. My immediate ...
1
vote
1answer
904 views

redhat oauth.so missing

I tried to put the oauth on my redhat server, but since I got this message : PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/oauth.so' - /usr/lib/php/modules/oauth.so: ...
8
votes
4answers
3k views

How to perform a sed in-place substitution that only creates backups of files that were changed?

I ran the following to replace a term used in all files in the current working directory: $ find . -type f -print0 | xargs -0 sed -i'.bup' -e's/Ms. Johnson/Mrs. Melbin/g' This performed the word ...
2
votes
2answers
2k views

Checking the type of NAT

I have read that there are many types of NATs available like symmetric NAT, full-cone NAT, etc. If I am behind a NAT, is there any way to find out the type of NAT behind which I am currently working ...
8
votes
3answers
1k views

How to enable safeguards for CPU temperature

My desktop has a nasty habit. When I have several high intensity applications running and my CPU is at maximum usage for a period of time, the core temperature rises and my computer auto-shuts off. ...
3
votes
1answer
715 views

Modify list of devices mounted at boot on Linux

Where do you configure or what command do I use to mount device at boot? Is it in the file /etc/fstab ?
3
votes
1answer
498 views

Why does Ubuntu recommend download the 32-bit version?

Why does Ubuntu recommend download the 32-bit version? On their 32bit_and_64bit Page they even say Unless you have specific reasons to choose 32-bit, we recommend 64-bit to utilise the full capacity ...
1
vote
1answer
257 views

Delete zsh auto completion suggestion

When I use tab-completion in zsh, the shell suggests me files and I discover that I'm in the wrong directory. How can I just delete the suggestion instead of backspace'ing it?
2
votes
0answers
786 views

Asus G53S keyboard backlight

I have troubles enabling keyboard backlight in Asus G53SW-XR1 (2.6.39-2 kernel) with modules: $ lsmod | grep asus asus_nb_wmi 12393 0 asus_wmi 18488 1 asus_nb_wmi ...
2
votes
1answer
3k views

gcc: -pthread: No such file or directory

Trying to compile following code in terminal i got gcc: -pthread: No such file or directory, what does this error means and how to eliminate it? file name: window.c code: #include ...
1
vote
1answer
402 views

Javascript Adobe Reader problem in some linux distributions

Adobe Reader doesn't execute initial javascript code of 3D scene in pdf document. With friends we've tested several linux distributions, namely CentOS, Ubuntu, Arch Linux, Mandriva, OpenSUSE. Also ...
5
votes
2answers
2k views

How to manually manage grub.cfg for Grub2?

I am setting up my system. The features of it are: GPT partition table (not sure how important this is) Triple boot - Gentoo, Debian and Mint. Custom kernel (kernel git repo) shared amounst distros. ...
2
votes
3answers
685 views

VPN and gateway problems

I've got a corporate VPN, which I use to access the Internet. When it's on, I cannot reach the servers inside the corporate network anymore, so I think there are some problems with the gateway setup. ...
15
votes
2answers
4k views

What are the main differences between BSD- and linux-based operating systems?

I am a long time linux user and have recently become interested in playing about with BSD-based operating systems. What are the differences between linux and BSD-based systems. I am interested in ...
2
votes
0answers
1k views

Restart USB (ehci) in Fedora 14

I am looking for a way in Fedora 14 to restart the USB system so that all USB devices disconnect and reconnect to the OS (due to some slightly dubious USB peripherals that I have no choice but to ...
2
votes
1answer
3k views

Disable/modify middle-click-to-paste in X11/Xorg

I am using Slackware 13.1 (kernel 2.6) with FVWM as my desktop manager. I have frequently had issues when coding where my over-sensitive mouse registers a middle-button (mouse-wheel) click while ...
3
votes
3answers
2k views

How to determine bitness of hardware and OS?

Output of uname -a on my RHEL 5.4 machine is: Linux <machine name> 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux Does it mean that hardware is 64 bit ...
29
votes
4answers
1k views

Execution of possibly harmful program on Linux

I'm writing a program that will test programs written by students. I'm afraid that I can't trust them and I need to make sure that it won't end up badly for the computer running it. I was thinking ...
1
vote
3answers
220 views

How to clean up my desktop?

Now, I see that my desktop running rhel 5.6 has run out of space. Now I need to clean it up. There must be some unintentional files adding up. What I would like to be able to do is list the files in ...
1
vote
2answers
3k views

Choosing a filesystem for a shared disk (not a cluster filesystem like GFS)

I have a bunch of servers connected to a SAN. One server hosts the production database server, performing full database backups to a filesystem on a LUN that is exported to all servers. Only the ...
4
votes
1answer
1k views

Is it possible to install a custom Linux on an Android phone?

I have an Xperia X8 phone, and I'd like to know if I can install a non-Android Linux OS on it? I would like to have a light Linux Distro, like Kolibri or something like that.
2
votes
0answers
275 views

My touchpad malfunctions after running for a while

I have 2-finger scrolling set up on my touchpad, using GNOME settings. After running my laptop for a while (several hours), such scrolling is no longer functional, and the touchpad itself is rather ...
4
votes
2answers
1k views

How to listen to all ports (UDP and TCP) or make them all appear open in Debian

I got an external Debian server. The problem is that my university campus doesn't allow connections to go outside when the port is different than TCP port 22, 80, 443, or UDP port 123. I tested them ...
2
votes
4answers
7k views

Linux distributions for ARM processors

Are there any Linux distributions (Other than Backtrack and Android) available for ARM processors? specifically ARM 11 (SE Xperia X8)
37
votes
4answers
46k views

What's the best way to join files again after splitting them?

If I have a large file and need to split it into 100 megabyte chunks I will do split -b 100m myImage.iso That usually give me something like xaa xab xac xad And to get them back together I have ...
0
votes
0answers
309 views

Why do you need sudo for “sudo su root”? [duplicate]

Possible Duplicate: When do su and sudo use different passwords? Why do you need to use sudo su root ? Why won't it work to just use su root?
2
votes
1answer
795 views

Controlling users' default printer as an administrator

What are the necessary steps to change the default printer for individual users on a reasonably recent Linux system using CUPS? (i.e. not the system-wide default) The CUPS lpr manpage indicates that ...
3
votes
1answer
4k views

“INIT: version 2.86 reloading” - cause and fix?

INIT: version 2.86 reloading appears on screen. Encountered this error and it seems there is no other way to fix this other than rebooting the system. unable to ssh in, unable to login via ...
2
votes
1answer
2k views

Power off USB storage device/port to avoid power consumption

A connected USB storage device, even if unused (unmounted, etc.), consumes power. How can I turn it off / turn its power off so that it doesn't consume power as if it was disconnected, but without ...
2
votes
4answers
6k views

How to set CST timezone w/o daylight period?

I want to configure linux box to use CST w/o daylight. My first idea was using the UTC-06 zone file, but for some weird reason it provides UTC+6, not UTC-6 time! After that I read the List of tz ...
3
votes
2answers
285 views

Why does linux scan my cdrom on boot?

My linux system scans my cdrom on boot. Can I disable that feature without removing my cdrom tray?
1
vote
2answers
153 views

How can I change the default action of C-a in screen to just a backtick `?

I tried something like escape ^` But that did not do it? I just want to change the default ctrl-a behavior. Also, is it possible to bind each numeric key (1, 2, 3, 4, 5) to change those specific ...