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
0answers
7k views

vboxpci: IOMMU not found (not registered)

I'm running Arch with 3.6.10 kernel, When vboxpci module is loaded, it tells me vboxpci: IOMMU not found (not registered), But I checked my kernel config, I have the INTEL_IOMMU set already (I uses ...
1
vote
2answers
7k views

How to extend LVM in RHEL 5.6

I need to extend the LVM on one server. This is the output of df -h: Filesystem Size Used Avail Use% Mounted on /dev/cciss/c0d0p2 58G 26G 29G 48% / /dev/mapper/VolGroup00-...
5
votes
2answers
2k views

Does swap need to be on a contiguous LVM logical volume

I am setting up a machine to run a number of virtual machines. I am using a single HDD with a boot partition and an LVM partition. I read on the Arch wiki that logcial volumes which will be used for ...
0
votes
4answers
3k views

umask is not working for directories

I have an odd problem with umask. My current setting is: $ umask 0022 $ umask -S u=rwx,g=rx,o=rx This only works for files though and not directories: $ touch abc $ ll abc 0 -rw-rw-rw- 1 user1 ...
1
vote
1answer
807 views

Linux + replace STRING/WORD in file according to rule

My target is to replace any word/string/Any characters in file with new word/string according to the following rules: If numeric characters on the left side of word/string then we not replace the ...
3
votes
1answer
353 views

How can Linux detect automatically if kernel must boot on dev hdc or hda

I have an industrial PC mounting Linux. These PC is delivered in two version, each with slightly different internal board and depending on the board type the disk inside the PC is see as hda or hdc. ...
1
vote
1answer
157 views

Don't have write permission in partition

In my PC I have installs Windows7 and then Ubuntu as OSes. When I try to access other partitions ( E: and F: which I'm using from Winsows7 OS) it get mount without any issue and can read and modify ...
7
votes
2answers
11k views

How does copy-on-write in fork() handle multiple fork?

According to Wikipedia (which could be wrong) When a fork() system call is issued, a copy of all the pages corresponding to the parent process is created, loaded into a separate memory location by ...
8
votes
2answers
242 views

Look for a process with a given name

I am trying to convert the VMS command show/system/process=processname into an equivalent Linux command. I tried the following but it returned none of the processes: ps -C /exeimages/processname.pl
0
votes
1answer
631 views

linux + perl + replace any WORD in file with special characters with condition

Example1 work fine when I want to replace OLD_TEXT with NEW_TEXT ( its replace also all special characters as $@^%)(_+`:; etc ..) example1 export OLD_TEXT='$$OLD_WORD$$' export NEW_TEXT='$$...
6
votes
3answers
3k views

merging LVM volume groups

Situation: I have a server with 4 1TB drives in LVM as shown below. The server is a openvz hardware node with a dozen or so openvz containers. At this time each container uses one disk only. This ...
2
votes
1answer
1k views

Sudo does not work in chroot

I would like to be able to use the sudo command in a chroot environment. I start the chroot as follows: chroot /debian-squeeze /bin/bash Now I'm logged in as root in the chroot. I can do su user ...
2
votes
3answers
477 views

Is there a variation of Linux or Unix that does not require open licensing?

In the future I may be building a system with an embedded operating system. Given the commercial properties of this system, it will make sense to have all of the internals as closed source as possible....
0
votes
1answer
136 views

Are there any non-GPL linux package managers?

I'm looking for a linux package manager for personal project. The main criterium is non-GPL (and it's variants) license. So far I've managed to find that only Slackware's pkgtools meet this rule, but ...
1
vote
1answer
161 views

How can I remotely access linux servers

I have a couple of servers that I need to remotely monitor. Is there anyway that I can do that? Should I use vncviewer, ssh, or what?
1
vote
1answer
328 views

Pulseaudio rapidly switches ouputs at high volumes

I'm using Pulseaudio. The image is of the Output Devices tab and shows the Port set to Analog Output. This is fine and works great. There's another option called Headphones but if you try and set the ...
0
votes
1answer
2k views

Fatal error: No compiled in support for x86_64

Can't use gcc on x64 debian: $ gcc a.cpp Assembler messages: Fatal error: No compiled in support for x86_64 what should I do? Some people propose installing binutils, but they are already there. (...
2
votes
1answer
213 views

variable assignment and IFS

Per Greg's Wiki the IFS variable is used: In the read command, if multiple variable-name arguments are specified, IFS is used to split the line of input so that each variable gets a single field of ...
12
votes
1answer
11k views

Linux always send ICMP redirect

I have several Debian Squeeze (6.0.6 up to date) used as routers. When a link is down, they send ICMP redirects to local hosts. This is the default behaviour of Debian and several others. So once the ...
2
votes
1answer
737 views

Machine Check Exceptions with Wildcard TE420 and Asus P5N-E SLI

I have been seeing machine check exceptions when trying to call dahdi_cfg (or, sometimes, even on just loading the kernel module) to configure a Digium Wildcard TE420 Quad-Span T1 PCI-E card. Running ...
4
votes
2answers
14k views

Finding out the values of kernel options related to sysctl.conf and sysctl.d

On my Ubuntu machine, in /etc/sysctl.conf file, I've got reverse path filtering options commented out by default like this: #net.ipv4.conf.default.rp_filter=1 #net.ipv4.conf.all.rp_filter=1 but in /...
2
votes
1answer
172 views

directions about customized Layer 2 implementation in linux

I have some machines running on the same network. One node is the control node which distributes traffic coming to it to the other nodes. The thing is that I want to have a custom protocol header ...
0
votes
2answers
276 views

Sample file for grep

Can anyone please point to some good sample files that helps to learn grep. This is for academic use. It should be a large one so that students could understand its importance
3
votes
1answer
820 views

Does the (source) device in a tmpfs type mount mean anything?

I just went into /etc/fstab (Linux) and changed my line for /tmp (on which a specific ext4 partition was previously mounted) to tmpfs. This was clearly a bit silly, but I wasn't thinking. Anyway, I ...
0
votes
1answer
180 views

linux/solaris + manipulation of Standard Output

I run the following line on linux/solaris machine ( all output will write in to /tmp/Log from application.bin ) ./application.bin 1>>/tmp/Log We can see the content of the /tmp/Log file ...
8
votes
4answers
11k views

How can I assign an initial/default password to a user in Linux?

I found a guide that explains how to set a user's password. I'm trying to automate it and send an e-mail to the user like: userid created with password XYZ. request to change the initial password. ...
1
vote
1answer
178 views

How to change the current directory graphically using the keyboard only?

There was a program named NCD (Norton Change Directory) a few years ago that did a good job at helping me change directory back in the DOS days. This programs displayed a tree, and you could navigate ...
5
votes
2answers
9k views

Do I only need one swap partition for multiple Linux distros? (and other questions)

I have Linux Mint 14 installed as my only OS. I have one extended partition containing /swap, / and /home, and I have some unallocated space on my drive. I'm guessing that Mint decided to put this ...
1
vote
1answer
2k views

connect to a remote server through ssh [duplicate]

Possible Duplicate: How do I execute a remote shell script over SSH and be prompted for passwords by commands that require it in that script? I want to connect to a remote server through ssh. ...
0
votes
1answer
607 views

How to install apt-get without a package manager

How can I install apt-get on a 32-bit Linux System if I don't have an existing package manager, like yum? What do I need to get?
5
votes
2answers
18k views

How to forward a port from one machine to another?

Consider the following situation: At my home, I have a router (which is connected to internet), server (S) and my main machine (M). S is reachable from the internet (it has static IP), and it is up ...
1
vote
1answer
2k views

Building kernel module

I have a 3rd party device driver which I am trying to cross-compile. When I build the driver everything goes smooth but I don't see any driver.ko file, however driver.o file is generated fine and I ...
2
votes
1answer
235 views

Difference between 3 commands which are used to execute shell script? [duplicate]

Possible Duplicate: Different ways to execute a shell script What are the specific differences between the commands listed below? ./<scriptname> . <scriptname> bash <...
1
vote
1answer
793 views

Complete install on RAID1 + LVM

When doing a complete install of Linux is it possible to install everything including /boot on 2 software RAID 1s (4 hdds) + LVM? I haven't been able to figure out whether this is definitely possible....
2
votes
1answer
937 views

Where is max process size specified?

I've got a RHEL4 machine with 1TB of memory and have discovered that malloc and mmap refuse to allocate any memory above 512GB. Meanwhile, I don't seem to have a problem with RHEL5 machines. I'm ...
2
votes
1answer
925 views

Linux Mint 13 XFCE freezes when external monitor connected

I am running Linux Mint 13. The problem is that whenever I connect/disconnect an external monitor to my laptop it freezes. If the monitor is connected on boot it works fine. Any ideas ? Output from ...
1
vote
2answers
452 views

Run program with additional supplementary group

I am looking for something like sudo (or something that can be run from sudo) that allows me to run a program with my uid and primary gid, but with an additional supplementary group.
1
vote
1answer
2k views

Second GPU does not show up in `lspci`

I switched the second GPU in one of our servers (Ubuntu 12.04.1 LTS). But now lspci only gives one entry: $lspci | grep -i nvidia 04:00.0 VGA compatible controller: NVIDIA Corporation G94 [Quadro FX ...
1
vote
0answers
782 views

Debian Console Font with Nvidia Drivers?

On my Debian Squeeze (6.x) installation my system had a nice small login shell font (terminus??) but after installing the nvidia drivers for my machine it boots up using a very chunky font (on a 24 ...
1
vote
2answers
3k views

How to stop telnet access for a particular IP address?

How can I stop telnet access for a particular IP address on the command line?
0
votes
1answer
112 views

Need advice for tools to use in everyday workflow [closed]

I am an open source web developer that has decided to transition away from using the Microsoft stack as the center of my everyday workflow and dive into Linux for my primary workstation. As I am new ...
2
votes
1answer
750 views

Chain loading kernel without a boot loader

I am working on an embedded project that will do in-place upgrades. There may come a time when an upgrade will need to reinstall everything. Since this is a pretty risky thing, I would like to have ...
3
votes
1answer
13k views

How to stream h264 video from web-cam to network?

I have a web-cam which I want to use to stream h264 video. Now I'm streaming mjpg video with mjpg-streamer. And now I'd like to stream h264. I've found that it could be done with gstreamer, but I'm ...
2
votes
1answer
2k views

convert /dev/md0 to /dev/sda1

I used a Software-RAID I and want to access the data without RAID now. After mdadm --fail /dev/md0 /dev/sda1 mdadm --remove /dev/md0 /dev/sda1 I tried mount -t ext4 /dev/sda1 /mnt but dmesg ...
4
votes
3answers
3k views

Undo iptables modification

I ran the following iptables commands to create a blacklist rule but used the wrong port: iptables -A INPUT -p tcp --dport 22 -m state --state NEW -m recent --set --name SSH iptables -A INPUT -p tcp -...
11
votes
1answer
9k views

How can I override the /etc/hosts file at user level? [duplicate]

Possible Duplicate: Can I create a user-specific hosts file to complement /etc/hosts? In short: I would like to know if it is possible to get a ~/hosts file that could override the /etc/hosts ...
6
votes
1answer
11k views

How to understand why the packet was considered INVALID by the `iptables`?

I set up some iptables rules so it logs and drops the packets that are INVALID (--state INVALID). Reading the logs how can I understand why the packet was considered invalid? For example, the ...
9
votes
2answers
21k views

How can I resize my root partition in Debian?

I am trying to add space to my root partition and am really not sure the safest way to go about it. I have read this thread, Can I resize the root partition without uninstalling and reinstalling ...
5
votes
1answer
621 views

How to block glyph fallback on Linux?

I want to block font substitution in specific apps on Linux, but my research indicates that it might be controlled only at the system level, probably with fontconfig. I have found some discussion of ...
1
vote
1answer
568 views

tar -c Error Messages and Source Files?

During a tar archiving operation with tar -cvf archive.tar source does the resulting tar archive that reports a file changed as we read it error still contain "some version" of the source file that it ...