Questions specifically about Linux but not specific to a particular distribution. If the question could apply to any Unix-like system, 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
1k views

Extended attribute on symbolic link

I'm trying to set some extended attributes on a symbolic link on Fedora 15. According to setfattr's usage, there is an option -h for such purpose: setfattr 2.4.44 -- set extended attributes Usage: ...
4
votes
2answers
5k views

Disabling USB ports in Linux

Recently my motherboard's built-in USB ports started malfunctioning. On Windows it said power surge in USB port, and in Linux it says nothing but also in Linux USB ports malfunction. So I installed a ...
5
votes
3answers
5k views

How do I open a .bak file on Linux?

I have received a file of .bak format, let it be foo.bak. I don't know if it is a MS-DOS file or Linux/Unix file. What I know is that I can't open it because my Linux (Ubuntu) does not give any hint ...
10
votes
3answers
15k views

Can't Install build-essential on CentOS

When I run the command: sudo apt-get install build-essential I get the following error message: Reading Package Lists... Done Building Dependency Tree... Done E: Couldn't find package ...
11
votes
3answers
9k views

How to check which GPU is active

I have 2 GPU's in my netbook. How do I know which one I'm actually using at any given moment?
3
votes
2answers
3k views

256 color in real console

I have in my .bashrc export TERM=xterm-256color but this cause blinking all colored text (ls --color, in vim etc.) in real console (CTRL + ALT + F1) . So is there any possibility to recognize in ...
3
votes
1answer
433 views

Xenomai and Ubuntu

I have installed xenomai 2.4.8 in Ubuntu 11.04 with this command: apt-get install libxenomai-dev Now I want test a simple vxWorks program, but when I compile my program, I receive this message: ...
3
votes
2answers
154 views

Installing drivers in ubuntu

I just installed Ubuntu 10.4LTS on my machine and I'm having trouble following the driver install directions. I am told to execute this command in the 'linux source tree': make ...
5
votes
2answers
8k views

How do I check how much free space left on a device to create a partition

Let's say I have this virtual machine running: [root@centos ~]# fdisk -ul Disk /dev/sda: 8589 MB, 8589934592 bytes 255 heads, 63 sectors/track, 1044 cylinders, total 16777216 sectors Units = sectors ...
5
votes
1answer
194 views

How do I know which files will be included in a linux kernel before I build it?

I am working on a project that includes building an old kernel version of linux. This is fine, but I still need to patch the kernel of all previously found security vulnerabilities based on CVEs. I ...
0
votes
2answers
268 views

Linux (Debian) web server advice

I'm at the start of a new company in which the main activity is building internet web apps. I was very familiar with linux 8-9 years ago, but since then, I've lost a lot of touch with it (couldn't ...
3
votes
2answers
96 views

Forbid a given user to use a given range of port

I would like to forbid a user account on linux to use a a given port. So far, without root privileges, a user can't use ports under 1024. Is there a way to limit a user to a given range of ports, let ...
2
votes
2answers
621 views

How should I install Fedora or any other Linux in USB hard disk and configure booting?

I want to install Fedora or any other Linux in USB hard disk. I have Windows XP installed in internal HDD. When USB HDD is attached to my PC, it should ask me to boot from Win XP or Linux. ...
2
votes
2answers
5k views

Suse filesystem turns read-only

I've installed openSUSE 11.2 (64bit) a while ago, and am mainly using it as a dedicated Apache hosting machine. Everything has been working properly for a while (~1 month), but as of a few days back, ...
7
votes
4answers
1k views

How to check if /proc/ is mounted

How can I check if /proc/ is mounted? Using /etc/mtab is discouraged as it might be inconsistent. Using /proc/mounts is also not an option as might not exist if /proc/ is not mounted (although ...
1
vote
3answers
455 views

Running mame on Linux

I tried to install mame on Linux, and the icons appear inside the game folder (xmame, xmame.sdl, xmame.x11) but none of them would run. What is the problem? Edit: It says they are read-only, but I ...
4
votes
1answer
680 views

Resizing logical volume with no free extents but with free disk space

I have a 7.9 TB logical volume formatted with XFS filesystem. I have 8 1 TB RAID devices as physical volumes, and 1 volume group that contains all of these devices. I have 2.5 TB free space on my ...
3
votes
1answer
1k views

description of linux kernel boot parameters 'real_root' and 'cdroot'

I am looking for a formal description of the following boot parameters in the linux kernel: real_root cdroot I have problems tuning them to create my own bootable LiveUSB system. Are they ...
-3
votes
1answer
157 views

Linux configuration settings

Where are the following configuration files located (e.g., Redhat)? network settings (static/DHCP/DNS) timezone proxy for network default language
3
votes
3answers
2k views

How to check if CONFIG_HIGH_RES_TIMERS enable?

I have to program a realtime application on Linux, but don't know whether the standard installation of Ubuntu has CONFIG_HIGH_RES_TIMERS enabled. How can I check this? I'm using Ubuntu 11.04 64bit.
2
votes
1answer
210 views

Is there any user space SDIO driver in Linux?

sdio_driver in kernel: Just 1 sdio_driver in "linux-2.6-daf54f1\drivers\mmc\card" (sdio_uart) There are some in linux-2.6-daf54f1\drivers\net\wireless. My questions are: Is there any user space ...
13
votes
3answers
4k views

Automatically rename files when they are placed in a specific directory

Is it possible to automatically rename a file when it's placed in a specific directory? For example I have a directory named "dir0".I move or copy a file named "file1" to "dir0".then "file1" should ...
1
vote
1answer
3k views

how to use nvidia vdpau decoding for mplayer video player in linux?

How can I manage to switch on nvidia vdpau decoding on mplayer video player in Ubuntu 11.04? It doesn't work with default options. I've got the proprietary drivers installed: dpkg -l nvidia-current ...
3
votes
1answer
880 views

Bootable USB appearing as HDD not Removable Device

I have a unique problem with an older Toshiba satellite laptop that happens to be a LegacyFree laptop meaning you can't access the bios via the normal F2, Del, Esc, etc. I can only select a boot ...
6
votes
2answers
3k views

Permanently remapping a key on Linux

I'm using an aluminum Apple keyboard with my Mandriva 2010.2 Linux system. I remap the Apple Command key (⌘) to control using the following .Xmodmap file: keycode 134 = Control_R remove mod4 = ...
4
votes
2answers
2k views

What tools do I need to intercept and change an incoming packet on a WP2-Personal wifi hub

Which tools should I research into to intercept a plain text packet, edit it and then continue it on it's way. I am using Ubuntu 11.04 and Backtrack 5; my wifi is WPA2-person encrypted. I need to edit ...
2
votes
1answer
1k views

Pinguy 11.04 wireless not working

I just installed Pinguy OS 11.04 (a derivative of Ubuntu) and I can't seem to get the wireless to work. I've tried everything on this question and a bunch of other stuff. I even reinstalled and that ...
1
vote
4answers
4k views

Libre Office change printer language type from PDF to Postscript

I have a problem printing from Libre Office (3.4.0 build 12). OS: Arch Linux, CUPS version 1.4.6 Printer: Description: Brother HL-2040 Location: Home Driver: Brother HL-2040 ...
2
votes
1answer
603 views

Preparing a Linux image in a virtual machine

I am trying to set up a system to prepare a Linux system on a virtual machine and then deploy it onto an SD card. The target system has an Atom processor, so there aren't architecture compatibility ...
9
votes
3answers
3k views

What does the -e do in a bash shebang?

I have a bash script with the following: #!/bin/bash -e egrep "^username" /etc/passwd >/dev/null if[ $? -eq 0 ] then echo "doesn't exist" fi This script will not run without the -e. What ...
6
votes
2answers
6k views

iptables port-mirroring

I need to be able to get a copy of packets received on port 8001 to port 8002. I have tried the following but I get an error that --tee is undefined. sudo iptables -t nat -A PREROUTING -p TCP -s ...
7
votes
3answers
817 views

How to prevent user from changing files using linux permission

Is it possible, using linux permission scheme, to allow users create files but not edit or delete them at a later time? I mean, we have a delivery folder where users put artifacts there and we do not ...
3
votes
1answer
2k views

Disable Address space layout randomization (ASLR) for my processes

I want to run some programs in Linux where I want to disable Address Space Layout Randomization (ASLR). I know to disable it at system level, which is by setting /proc/sys/kernel/randomize_va_space to ...
3
votes
0answers
132 views

129 MB used space shown in the SD card even after formatting it with mkfs.ext4 [duplicate]

Possible Duplicate: ext4: How to account for the filesystem space? The full 2 GB space doesn't get shown as free space even after fully formatting it with mkfs.ext4. Are these some system ...
4
votes
1answer
542 views

WD 'elements' disk spins down, disappears

I have a 1TB Western Digital Elements USB drive connected to a sheeva plug with Debian installed. I use autofs for auto mounting USB drives. Here are the options I currently use. usb1 ...
2
votes
2answers
141 views

Linux project work [closed]

I am a b.tech 2nd yr. student from Motilal Nehru National Institute of Technology - Allahabad. I am currently doing linux system administration course in this summer. I want to do a project work ...
6
votes
2answers
995 views

What can you do to a file without triggering the “Change” Timestamp?

What can you do to a file without triggering the "Change" stat? For instance, it appears that simply changing a bit will trigger Change.
7
votes
2answers
426 views

How do I get just the user-manual for Vim

To get the vim user-manual I am doing vi test and then, once the file is opened, I do :help user-manual This opens up a split window, which makes reading manual inconvenient to read. How do I ...
5
votes
1answer
515 views

Linux process scheduling - Cap/Weight based?

I am just trying to understand the basics of Linux scheduler. Is Linux scheduler a Cap based or weight based scheduler? I was previously using Xen. Now I am moving from Xen to KVM. I read VMs are ...
1
vote
2answers
845 views

How to Optimize an IPTABLES script?

If I could list that which iptables rule has how many matched packets, then I could create a better/faster iptables script that's faster. That rule would be at top/first that has the more packets ...
1
vote
1answer
2k views

What does “sudo chown -R hadoop:hadoop hadoop” do?

I saw the following script, posted online, that was used during the hadoop installation process. sudo tar xzf hadoop-0.20.2.tar.gz sudo mv hadoop-0.20.2 hadoop sudo chown -R hadoop:hadoop ...
10
votes
2answers
6k views

How come no core dump is create when an application has SUID set?

I setup my environment to create a core dump of everything that crashes, however when I run an program with SUID set on a different user than the executing user it doesn't create a core dump. Any ...
2
votes
3answers
1k views

Shift+delete vs rm -rf

Are Shift+Delete and rm -rf different? Is it possible to recover deleted data after performing either of them?
4
votes
3answers
1k views

emacs can't open display

Just recently this has started happening; I run: /usr/bin/emacsclient --alternate-editor="" --no-wait -c and get: ERROR: Display :0.0 can't be opened No other applications do this. The output ...
8
votes
2answers
2k views

real time backup if file changed?

Are there any linux/unix console applications similar to Yadis that would allow me to: be set up from the console backup multiple directories backup / sync in real time after the files (text files) ...
1
vote
1answer
674 views

How to install/use sshuttle on Fedora?

How exactly can I install/use sshuttle under Fedora? It's not in the repositories
3
votes
4answers
730 views

Which of the bigger distributions offers the latest updates?

I am currently using Ubuntu and I appreciate the big community, the Software Center and the fact that it's very easy to use. But additionally I'd like to have the latest updates, like e.g. LibreOffice ...
9
votes
2answers
3k views

Several questions about file-system character encoding on linux

Due to a lot of file exchange works between Windows (GBK encoding) and Linux (UTF-8 encoding), it will encounter character encoding issues easily, such as: zip/tar files whose name contains chinese ...
1
vote
3answers
506 views

PHP package won't install correctly

Yesterday I did apt-get upgrade on my Debian/testing and broke a php5 package. I even tried to remove & purge with apt and dpkg clean apt cache. When installed again clean, it fails with ...
0
votes
1answer
783 views

“Unable to initialize SDL” error when trying to play games

When I run one of my games I get: Unable to initialize SDL: No available video device I think that this is due my built-in SIS graphics card, which doesn't have a driver. However, flash games ...