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

1
vote
3answers
155 views

Transferring access privileges from root to regular user

I log in to Ubuntu with the username student. There are some directories only the root user is allowed to access, for example /var/lib/mysql, (I know I can use sudo to access it but it is not what I ...
1
vote
4answers
2k views

Restart MySQL server

I am using MySQL v5.1 on Ubuntu machine. MySQL on my machine used to work. (Running mysql -u root gave me the MySQL command line.) This afternoon, I did the following thing: 1. check active process ...
16
votes
4answers
9k views

Detecting headphone connection/disconnection in Linux

I am trying to detect a signal when a headphone is connected or disconnected from the system. What is the best way to do this? If there is a special board with drivers, that will be my preferred ...
1
vote
1answer
474 views

NetworkManager on Fedora 15 can't find frequently used wireless network

NetworkManager has refused to find the wireless network I always connect to. It sees other wireless networks except the one which I need. In recent past occasions, I've had to delete the wireless ...
4
votes
5answers
491 views

volcopy for Linux?

Reading one of the editions of the Nemeth's book (Nemeth et al), have read about volcopy -- an utility that copies a filesystem from one device to another, making "a literal copy" (here's a man page, ...
0
votes
4answers
4k views

How to set domain name in Crunchbang GNU/Linux?

How can I set the domain name in GNU/Linux?, I am using Crunchbang and I need to set the domain name for my LAN network. EDIT: Let me talk more about my problem: I need to configure a LAN network for ...
5
votes
3answers
668 views

How do I prevent a script from terminating when the shell exits?

In particular, I created a script to start Firefox which I double-click and choose 'Run in terminal,' but when the shell exits Firefox is killed immediately. How do I prevent this from happening?
1
vote
3answers
1k views

Creating a Linux distribution that only runs one application [duplicate]

Possible Duplicate: How can I build a custom distribution for running a simple web browser? Is it possible to create a Linux distribution that only runs one application? For example, I want ...
4
votes
1answer
669 views

automatic proxy selecting depending on target

Situation: ISP with proxy server local TOR service I would like to automatically let all .onion-domain traffic go to the local TOR-service and all other traffic to the ISP proxy (am using TOR only ...
4
votes
1answer
1k views

Linux : Alternative of install_name_tool of MAC in CentOS

I am looking for alternative of install_name_tool of MAC in CentOS. Exactly I want to build MySQL on non default location. Also the shared libraries of the mysql binary should be on non default ...
13
votes
2answers
14k views

How do mouse events work in linux?

This is mostly out of curiosity, I'm trying to understand how event handling works on a low level, so please don't reference me to a software that'll do it for me. If for example I want to write a ...
10
votes
2answers
7k views

Why is (free_space + used_space) != total_size in df? [duplicate]

Possible Duplicate: ext4: How to account for the filesystem space? I have a ~2TB ext4 USB external disk which is about half full: $ df Filesystem 1K-blocks Used Available ...
2
votes
1answer
155 views

Making applications persist when closed (like on Mac OS X) on Linux

Once an application is first launched in OS X from the dock, it stays open in the background, even after you close all open windows for that application. For example, if I open Google Chrome from the ...
1
vote
1answer
14k views

Installing gcc on rhel 6.1

GCC doesnt seem to be installed on my Rhel 6.1 machine. Also, when i did: sudo yum install gcc It barfed: Updating Red Hat repositories. Setting up Install Process No package gcc available. ...
4
votes
1answer
229 views

What does this [number] beginning many lines during the Linux boot screen represent?

My Linux sandbox boots into the text mode. During the boot process many lines are prefixed with a number between brackets ie. [40.000] Normally this number reaches upwards to 80. Recently I've noticed ...
7
votes
2answers
3k views

Making UDEV ignore certain devices during boot.

I'm trying to make UDEV stop mounting one of my devices at boot time, and I've created a rule in /etc/udev/rules.d/ called 1-myblacklist.rules. All the rule does is matches the device by kernel ...
3
votes
2answers
5k views

No, I don't want persistent net rules

I have a bootable Linux memstick that I use on a lot of different PCs (but all of the same model and configuration). Trouble is that udev is renaming the eth interfaces so that what was eth0 on the ...
2
votes
1answer
2k views

Linux 2.6.32, busybox, Identify physical SD device

I have a USB card reader with two SD card interfaces and two USB ports (so it can also act as a USB hub) all on the same device. I am running an embedded Linux device that is unsupervised in its use ...
0
votes
1answer
2k views

Error with grub2 installation on Backtrack 5

I installed BackTrack 5 r1 and I can't select boot option between Windows and BackTrack on start up. How can I fix this, or how can I install grub 2?
13
votes
2answers
6k 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
588 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
434 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
28k 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
166 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
5k 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
638 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
535 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
795 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
777 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
923 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
718 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
501 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
264 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
789 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
407 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
690 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. ...