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
477 views

Linux signals logger

I'm looking for a signals logger for the Linux kernel, without patching of kernel. I found many articles with patching, but I am not interested in that. I'm running default Ubuntu 13.04. # uname -a ...
3
votes
2answers
1k views

Display Server vs. Window Manager vs. Graphics Driver?

I am trying to sort my understanding of the different part of graphics on Linux, and I am confused as to the roles played by each of the following concepts. Display Server Window Manager Graphics ...
0
votes
2answers
722 views

How does strace know to use /bin/echo instead of failing on a built-in

When I do strace echo hello, I see it is using /bin/echo, but built-in echo should be found first. Is it a functionality of strace to skip built-in commands? strace -- version 4.5.19 I understand ...
1
vote
2answers
5k views

Can't install PostgreSQL 9.2 on Linux Mint

I'm new with Linux systems. I tried to install PostgreSQL 9.2. I did the following: sudo apt-get update sudo apt-get -y install python-software-properties sudo add-apt-repository ppa:pitti/postgresql ...
5
votes
2answers
11k views

How can I filter those “Permission denied” from find output? [duplicate]

I started using sed recently. One handy way I use it is to ignore unimportant lines of a log file: tail -f example.com-access.log | sed '/127.0.0.1/d;/ELB-/d;/408 0 "-" "-"/d;' But when I try to ...
0
votes
1answer
56 views

Prevent access to files on linux file server

I have a linux system running Debian Wheezy stable on it and am using it as a file repository (not a true file server because I am using BitTorrent sync to move files as I move around the world). Some ...
5
votes
1answer
553 views

How are drivers for peripheral hardware installed in Linux?

I have acquired a new wireless keyboard, and I've tested it out on both a Windows and a Linux box. It worked on both, but with an initial difference - Windows took a minute or two, to look up the ...
4
votes
1answer
897 views

Switch to TTYs without Function keys

At the moment I have a keyboard which lacks function keys (F1 through F12), and I was wondering - is there a way I could switch to textual TTYs (and back, which might prove to be a problem if I were ...
3
votes
2answers
484 views

Copying OS from one drive to another migrating from MBR to GPT - what to watch out for?

I'm looking at replacing my current MBR-partitioned 2 TB system drive with quite possibly a 3 TB drive. Copying the files should not pose a problem, but are there any gotchas to watch out for, ...
6
votes
1answer
7k views

How does umask affect ACLs?

Can someone explain to me how umask affects the default mask of newly created files if ACLs are activated? Is there some documentation about this? Example: $ mkdir test_dir && cd test_dir $ ...
9
votes
4answers
56k views

Linux: clnt_create: RPC: Program not registered

NFS mounts recently automatically got un-mounted. When I checked, the NFS service status it was shown to be running. [root@hsluasrepo]# service nfs status rpc.svcgssd is stopped rpc.mountd (pid 4083) ...
2
votes
2answers
410 views

How to write to ext2 image without having root access

I have been able to mount a ext2 image without having root access by adding an entry to /etc/fstab. However, I am not able to modify this image (copy a new file to it) without having sudo permissions. ...
4
votes
2answers
3k views

How to control thinkpad_acpi via procfs, RHEL 6.4

I'm having trouble with the thinkpad_acpi module on my Thinkpad T400. While the processor temperature can vary, depending on the CPU activity, from 40 to 85 deg. Celsius, my fan speed remains almost ...
1
vote
3answers
85 views

Create a service that logs all input

I need to create a service that logs all input on a certain port to a file. Do I have to create a custom program for this, or is there an existing tool out there that can help me with this?
0
votes
2answers
5k views

How can I install the Atheros AR8161 drivers without an internet connection?

How can I install the Atheros AR8161 drivers without an internet connection for fedora19?
1
vote
1answer
98 views

Significance of certain folders in linux kernel tree

While going through Linux Kernel Source tree, found certain folders, explanation of which was not seen in the popular sites. Could someone tell why these folders are there like: block - This is not ...
-1
votes
1answer
887 views

removing kernel modules not working for some modules [closed]

unfortunately i couldnt install a machine with minimal installation as a virtual machine ,so i am trying to prevent loading of unwanted modules from kernel using blacklist file. Added following to ...
3
votes
1answer
205 views

Why my SSDs are in /dev/hdx instead of /dev/sdx on CentOS 5.9?

I have two SSDs Kingston SH103S3240G plugged on SATA ports of my Intel Server Board S3000AH. The SSDs apear like a PATA device (hdx instead of sdx) on my CentOS 5.9. I'm having problems related to ...
0
votes
1answer
234 views

Ping a list of IP addresses and outputing duplicates

In Linux how can I ping a list of IP addresses (in a text file) and only output those that have duplicate ping replies?
3
votes
1answer
615 views

Finding screen resolutions without $DISPLAY through python or shell scripting

I am developing a personal project/idea for a headless Raspberry Pi that works without a GUI display. I am working on a text graphicsesque design. As the Raspberry Pi allows one to plug into most any ...
1
vote
0answers
91 views

configure allowed_tcp_congestion_control via config files in linux kernel

I am trying to come up with a custom set of TCP congestion control variants as part of the tcp_allowed_congestion_control. I do have multiple variants on my tcp_available_congestion_control list but ...
0
votes
2answers
835 views

What's the difference between Linux and Linux LVM?

If I want to install new hard drive should I make the file system Linux or Linux LVM? Also after that I've got to format again with mkfs.ext4. Actually what are we doing? The first one is formatting ...
-1
votes
1answer
418 views

Instability of debian graphics [closed]

I have done some googling but am unable to find the cause of this problem. I'm using a fresh copy of Debian 7.1 and shortly after, using the machine will start rendering graphics improperly and spit ...
1
vote
1answer
108 views

Can the wilderness chunk be busy?

I'm curious about one aspect of heap management in linux, and particularly in ubuntu's build of glibc 2.17. I understand that the last chunk in each heap, the top or wilderness chunk, tends to be ...
7
votes
4answers
12k views

Understanding of diff output

I have file1.txt this is the original text line2 line3 line4 happy hacking ! and file2.txt this is the original text line2 line4 happy hacking ! GNU is not UNIX if I do: ...
1
vote
0answers
449 views

backlight doesn't work with Linux Mint 14 on my Gateway NV78 laptop

Here is my problem it is Bug 765438--the backlight will not work on my Gateway NV 78 laptop. Won't work with Linux Mint 14, ubuntu from ubuntu 11.04 onward won't work with ps-bcd. Of course it ...
1
vote
2answers
270 views

Migrate Ubuntu to bigger HDD

I have a multi-boot system and want to push my Ubuntu installation to a bigger partition on the same hdd, because I want the system to have more memory available. What I know so far is I can clone ...
3
votes
1answer
6k views

Is “sync” before drop_caches necessary?

I have read a lot of docs saying, it is good idea to do a sync before doing echo [1,2,3] > /proc/sys/vm/drop_caches. I am not able to understand why it is needed, since drop_cache is a non-...
2
votes
4answers
11k views

How to mount aufs file system on boot in archlinux?

I want to use aufs to combine a few disks.I am able to mount the aufs file system using the mount command from the command line. However, when trying to mount the same through an fstab entry, it ...
1
vote
1answer
69 views

Lightweight userspace sandboxing of filesystem

I would like to trick a non-malicious process to think that it is writing to directory $HOME/abc/def/ while it writes in fact to $HOME/xyz/def (the former path is hardcoded and it does not work for my ...
1
vote
2answers
2k views

Change the color of tcsh output for any command

I want a different color for terminal returns: Example: $ pwd //when return key is hit $ /home/user/tools //return value printed in different color, say: grey color This ...
0
votes
1answer
497 views

programs hang due to /etc/localtime timeout

On my server, suddenly most programs stopped working (they just hang). For example midnight commander. When I debug mc with strace, I see it hangs on stat("/etc/localtime") When I try to cat /etc/...
4
votes
0answers
408 views

What does hierarchy support do in cgroup?

cgroup has 2 options for memory control: memory.use_hierarchy = 1 : use hierarchy memory.use_hierarchy = 0 : use flat hierarchy, according to this answer What is the difference between the two? I ...
12
votes
4answers
49k views

How can I change the default “ens33” network device to old “eth0” on Fedora 19?

I've just installed a Fedora 19 on VMware workstation 9. The default network device is "ens33" instead of "eth0" on RHEL. The reason I have to use "eth0" is that the license component of one of our ...
1
vote
2answers
2k views

virt-install and /dev/hda vs. /dev/sda

It appears that my virt-install xml file (i.e. created when defining a VM) specifies targets "hda", "hdb", and so on as the devices for disks, however, the VM, once created, lists /dev/sda, /dev/sdb, ...
5
votes
7answers
549 views

Are there additional ways to protect SSH connections besides firewall and RSA Keys?

Sometimes I don't have a static IP and need to administrate my web server remotely. I'm looking for any additional layers of protection I could add to make opening port 22 safer. Currently I have ...
2
votes
1answer
472 views

vim and tmux are conflicting. How can I fix this? [duplicate]

I'm having a painful experience with tmux. I'm using solarized in vim but when I run tmux then my vim configuration does not work. It's as if solarized is not configured in my .vimrc. Out of tmux ...
4
votes
1answer
4k views

How can I create a shortcut to resize panes in a tmux window?

I am having lots of issues with tmux in mac. Another problem I have is that I can not bind a key in my tmux.conf to be able to resize my panes. What I need is the CTRL-b: resize-pane -U 10 I currently ...
5
votes
3answers
15k views

How can I match a ttyUSBX device to a usb serial device

option driver correctly matched USB ID and loads driver for this device. For example # lsusb Bus 001 Device 002: ID 19d2:0031 ONDA Communication S.p.A. ZTE MF636 Bus 001 Device 003: ID 12d1:14ac ...
1
vote
1answer
83 views

How to autocd in tcsh?

I want to change directory without using cd, I want to access the directory by its name $home/user/tools $cd tools //works fine $tools //permission denied I tried set autocd but still the same?
0
votes
1answer
456 views

Amazon EC2: Giving Permanent Permission To A Sepecific Directory In Amazon Linux AMI

I have a Symfony2 project that needs full read write permissions to three directories: app/cache, app/logs, and few other directories which are used for uploading. The problem is everytime I push an ...
0
votes
1answer
354 views

Systemd: keep forked process alive when service is stopped

I have a systemd service which forks some child processes. In one scenario I start a shell script which is supposed to stop the service which actually started the script. When I call systemd stop xxx....
1
vote
2answers
7k views

list the devices associated with logical volumes without using lvm2 package commands

I want to list all the physical volume associated with logical volume. I know lvdisplay, pvscan, pvdisplay -m could do the job. but I don't want to use these commands. Is there any other way to do it ...
2
votes
2answers
115 views

How to configure hard drive

I have a hard drive that is not configured, it shows this in fdisk -l: Disk /dev/dm-2: 107.4 GB, 107369988096 bytes 255 heads, 63 sectors/track, 13053 cylinders Units = cylinders of 16065 * 512 = ...
10
votes
1answer
6k views

Why are inotify events different on an NFS mount?

Some time ago I noticed that the events reported by inotify are different when the file is saved to an NFS mount vs. a local file system. Shouldn't the underlying VFS provide a uniform view of file ...
0
votes
2answers
126 views

Learning Ubuntu - Testing on Mac OS 10.7?

I'm a beginner in learning Linux. I know that there are many different distributions of Linux including Ubuntu. I consider Mac OS as a distribution of Linux, is that right? My goal in learning Linux ...
3
votes
1answer
357 views

RHEL 5 complex port bonding

The RHEL 5 documentation is good about bonding pairs of ports in various ways. The Oracle team where I work want to get more complex than that. They want an active bonded pair, with a third interface ...
0
votes
1answer
39 views

Read files in Directory and take diff

I have two directories named comp1 and comp2 and both have files named file1 and file2. I need a bash script which read file1 from both the directories and take diff of each file and redirect to some ...
4
votes
1answer
4k views

Match PCI address of SATA controller and SCSI address of attached disks

I have a PCI-attached SATA controller connected to a (variable) number of disks on a machine with a Linux 2.6.39 kernel. I am trying to find the physical location of the disk, knowing the PCI address ...
0
votes
1answer
576 views

Sendmail relay without authentication

I have an issue:when the email is sent from an address other than 127.0.0.1 the authorization is required even if ip is on the same machine. How can I avoid to make request authorization for a given ...