Questions specifically about Linux, as opposed to Unix-like systems in general, or to questions about a specific distribution or program.

learn more… | top users | synonyms

2
votes
2answers
1k views

How do i know the process ID of the parent process?

I have a script with loop like while read host do ./script & done I want to know the process id of the current process which is starting the ./script in background and use it in script.
3
votes
1answer
1k views

How to distinguish input from different keyboards?

I want to write an application in Python that you can use with your default keyboard and a specially designed one for the application. I will design it simply by using a small numerical keyboard with ...
2
votes
3answers
1k views

Linux / JVM - OutOfMemoryError: unable to create new native thread

I have a memory problem with a Linux server (CentOS). It is a VM. Below is the context. It has 70Gb of RAM. There are 2 tomcat running on it. One tomcat is given a heap of 13Gb and the other one a ...
0
votes
3answers
127 views

Why 32 bit OS has less requirement when compared to 64 bit

In my Organization for routing we are using 32 bit os rather than using 64 bit os on a host with 3GB RAM. Since 64 bit faster than 32 bit why do sometimes people use 32 bit OS rather than 64 bit. ...
1
vote
2answers
2k views

cannot mount .img file - “not a directory” error

I try to execute the following command on an ubuntu 12.04 system: sudo mount minix203.img -o loop -t minix /mnt/myminix/ in order to mount an .img file with minix partition; and get the following ...
5
votes
2answers
4k views

How to grant non-root user access to device files

I have device file that appears in /dev when a specific board is plugged in. The read and write operations to it work just fine, but in order to open the device file the program needs to be executed ...
0
votes
2answers
746 views

how does linux update page table after context switch

How does Linux's Virtual Memory system handle the following case: Process 1 maps one of its virtual page to physical frame 1. Context switches to process 2. Process 2 swaps out frame 1 and replace ...
1
vote
2answers
11k views

how to fix EXT2-fs (sda1): error: ext2_lookup deleted inode referenced XXXX

Some time ago I installed Kubuntu 12.10 on Acer TravelMate 8572G which has Linpus LiveCD Editon v9.2 installed. When I tried to remove Kubuntu, something went wrong and I ended up with a broken Grub. ...
5
votes
4answers
27k views

Mounting all partitions on hard disk automatically on Linux Mint

Issue I have a Linux Mint installation. Every time that I boot, I need to manually mount the two partitions on my computer(New volume D and Drive C). If I don't do this, these drives don't show up ...
1
vote
1answer
993 views

issues booting Ubuntu [Firmware Bug ] : ACPI _BQC method, cannot determine initial brightness

I am running into an issue booting Linux on a new machine. I started with Ubuntu Server edition. I completed the initial setup via an ISO image, however when the machine restarted and went to load ...
1
vote
0answers
90 views

How iconify xterm when it loses focus?

I am attempting iconify a xterm terminal when it loses focus in fluxbox. I am following this wiki: http://fluxbox-wiki.org/index.php?title=Make_xterm_act_like_a_PC_game_console And so far, I've got ...
3
votes
1answer
193 views

Where can you host a custom Linux Distribution?

I've recently been creating a custom Linux distribution based on Gentoo that includes a custom installer, artwork, development tools, and desktop environment. I have an ISO image and a local mirror ...
0
votes
2answers
339 views

SOLVED: linux vmware player installation “VMs are running” error

I was evaluating vmware workstation lately but as my trial period ran out i decided not to go for a license so I uninstalled the now defunct workstation 9 in order to re install the player. The ...
14
votes
5answers
26k views

Check if folder is a mounted remote filesystem

What is the best way (reliable, portable, etc.) to check if a given folder is on a mounted remote (nfs) filesystem within a shell script? I am looking for a command that would look like: ...
1
vote
1answer
310 views

how to use syslog to avoid log file being garbled when multiple proceses are trying to write to the same log fille?

I wanted to know usage of syslog when multple processes are trying to write to the same log file like for i in $var do some process >> logfile & done wait
1
vote
1answer
107 views

Nexenta (Solaris), strange user membership from LDAP

Anybody help me, why do run id command in the Nexenta OS (Solaris+Ubuntu), i get different result? a_ay@nexenta:/etc$ id -G 513 512 1000 201 203 1010 1013 1019 1020 1036 1039 1040 1041 1045 1046 1047 ...
1
vote
2answers
580 views

Should I be worried? Segfaults reported in syslog when merging LVM snapshot (reverting the original back to the snapshot)

I was just experimenting with snapshots in LVM on Ubuntu 12.10. I created a snapshot logical volume of 6.5 GiB, and after making some changes to the origin decided to merge the snapshot back in to ...
1
vote
0answers
952 views

Why doesn't /etc/udev/rules.d/70-persistent-net.rules exist on virtual machines?

CENTOS 5.9 I'm curious, why doesn't /etc/udev/rules.d/70-persistent-net.rules exist on virtual machines with CentOS 5.9? Is there an alternative file name for this when using a virtual machine?
0
votes
1answer
277 views

How do I install Fedora 18 without SELinux?

How can I install Fedora 18 without SELinux ever being part of the installation? I don't want to just disable SELinux after it's installed, I want to never install SELinux at all. Is there a way to do ...
0
votes
2answers
69 views

ssh with identical machines

I have two identical beaglebones that I'm working with. They have the same hostname and originally had the same IP, though I changed one to see if that made a difference. They're going to be deployed ...
4
votes
2answers
26k views

Correct way to mount a hard drive

I have a 2nd hard drive SDB but not sure how to mount it under linux. mount -a did not seem to mount all. Also would like to mount this RO for recovery.
2
votes
2answers
84 views

Grab text from detached screen [duplicate]

I am working on a collectd plugin to monitor a program I have running in a detached screen session. This program constantly updates the terminal with its status by replacing its old status (similar to ...
0
votes
1answer
216 views

replacing text and deleting text using awk in file using

I have a script and I want to do some replace and delete operations on it. I used sed to extract values between words SendCommands and end like this sed -n '/SendCommands/,/end/p' ddtt As awk was ...
1
vote
1answer
1k views

SMTP connectivity issue in Zenoss (“Connection unexpectedly closed”)

I am using Zenoss for monitoring purpose. I have been using its mail service for a long time. Suddenly my mail service in zenoss stopped and started showing <class ...
1
vote
1answer
147 views

Determine how much a process is using each disk?

How do I tell how much load a particular process is contributing to each of several available volumes/mounts? It seems that dstat only shows aggregate stats across all processes per disk, and iotop ...
5
votes
2answers
1k views

iotop but for particular disk?

Is there a tool like iotop but for monitoring IO on specific volumes? (Or perhaps I missed a way to filter iotop?) If not is there any way to get at this information via (say)/proc? (dstat etc. ...
2
votes
1answer
546 views

is free command displaying all physical memory or there is some RAM reserved and hidden?

I am supposed to have 512MB of ram on my VM, however I see 495mb of total ram when I do free command. I would like to know if in case my system really had "precisely" 512MB of physical ram, if in ...
1
vote
2answers
324 views

How to decrease ps aux output to a few lines?

When my computer is slowing down, I usually run ps aux --sort -rss to find out which process consumes too much memory. There may be a lot of processes. How to see only a few ones?
3
votes
2answers
141 views

How to test whether Linux is running on a ThinkPad?

I need to programmatically detect if Linux is running on a ThinkPad. A shell script would be ideal but I can programmatically generate any binary by downloading some source and compiling it on the ...
0
votes
1answer
192 views

How to get the Installation path of binary and logic file in Daemon in Arch Linux

I want to know that if i install a daemon service in Arch Linux, then what will be the path of the files that will get install. also which files will be install where.
2
votes
3answers
5k views

Is there any website having command line environment of Linux, for practicing commands? [duplicate]

I was wondering whether I could practice Linux commands and shell scripting, online, over a website which could provide me an editor to practice them. And I know that probably the easiest thing to do ...
13
votes
1answer
340 views

Can entropy consumption at program start be prevented?

I use Knoppix (or other Live CDs/DVDs) as a secure environment for creating valuable crypto keys. Unfortunately entropy is a limited resource in such environments. I just noticed that each program ...
4
votes
2answers
8k views

Correct use of TZ, date, and hwclock?

I'm working on an Buildroot developed ARM/ulibc Linux distribution for a custom board. I'm trying to understand the relationship between If I do this, as I've seen on a few examples online: # date ...
1
vote
2answers
258 views

Configure remote control Zydacron

I have found an old infrared remote controller with the receptor connected as USB. I connect it into my Linux box (Mint LMDE kernel 3.2.0-4-amd64). It's recognized with lsusb as "Zydacron HID Remote ...
0
votes
3answers
263 views

Choosing a desktop linux distro based on work server distro [closed]

for several years I've managed a server or two on CentOS distro with cPanel (or not) and I was wondering if I should actually use a desktop linux distro based on CentOS/RHEL instead of going for ...
0
votes
1answer
4k views

GRUB reported “error: file not found.” when booting CentOS 5

I installed CentOS 5.3 by using a 4GB USB disk on an old PC that I used run a Debian on it. After a series of housework on the fresh system, I reboot the system using: sudo shutdown -r now After ...
0
votes
1answer
268 views

Postfix header_checks

I want to forward a copy of the users email which has the specific subject. I have tried the below settings, able to Redirect that particular subject mail. But I want to forward a copy of that mail to ...
0
votes
1answer
60 views

Need to reset the Keyboard shortcuts defined

I bound some keys by mistake, and they don't work any more, such as HOME, END, UP, DOWN, LEFT, RIGHT. Is there a way to reset all the bound keys to their original state? I know this might be ...
0
votes
0answers
65 views

How can I add PAM functionality in netkit-rsh-0.17

I am using CentOS. In my project, that is working on a network, I need an rsh utility. I downloaded netkit-rsh-0.17 for that and until recently all worked fine. But now I found that this utility ...
0
votes
1answer
321 views

gstreamer: no element >>x264enc<<

I want to encode a videostream to h264. But when I start the gstreamer program I get the following error. No Element >>x264enc<< I installed the gst-plugins-bad, gst-plugins-ugly and ...
0
votes
1answer
459 views

USB-Serial Driver(Exar Xr21v1414) Run Error

I'm currently trying to run the bellow driver in linux-3.8.3 on Exar xr21v1414 http://www.exar.com/connectivity/uart-and-bridging-solutions/usb-uarts/xr21v1410, but when i install the driver ...
1
vote
1answer
963 views

Net-SNMP over TCP?

Is it possible to get Net-SNMP running over TCP instead of UDP? The daemon program can be configured at the termiinnal to listen for TCP connections with: snmpd tcp:1161 However, there are no flags ...
15
votes
2answers
3k views

Linux: Total swap used = swap used by processes +?

So, I'm trying to do some investigation on where does swap use come from in a system with high swap usage: # free total used free shared buffers cached Mem: ...
0
votes
3answers
674 views

Sorting IP address according to the second field in file

in my ksh script I need to add the following task ( OS - linux/solaris ) I have the following file more test.txt /etc/backup/app 172.1.120 172.110.120 /etc/backup/app 172.1.120.12 ...
2
votes
1answer
292 views

Explanation of bandwidth management script calling tc

I have some scripts in Linux to manage internet bandwidth, but I do not understand what they do. What is the meaning of the following scripts: tc qdisc add dev $IF root handle 1: htb default 256 tc ...
3
votes
2answers
585 views

How to add a ms-dos partition table to a loop device?

I recently made a dd from a disk partition. I want to use it as a disk in a virtual machine. I can't because the disk has no partition table. Can I had a partition table to a loop device? how? ...
1
vote
1answer
608 views

Is there a way to store mail attachments outside of mailboxes?

Nowadays, size limits on mail attachments are less comprehensible by traditional users. I am looking for a way to extract mail attachments as simple files that I would be able to manage elsewhere. On ...
2
votes
2answers
1k views

Delete whitespace in filenames in directory

I have a directory where some filenames have been wrongly named something .pdf rather than something.pdf. Is there a quick one liner I can use to delete the whitespace in the filenames. I have tried ...
0
votes
2answers
2k views

What are “kernel data structures”?

While reading about the Linux kernel I came across the notion of kernel data structures. I tried to find more information via Google, but couldn't find anything. What are kernel data structures? ...
1
vote
1answer
584 views

Internal microphone doesn't work on Dell Vostro 3360

I've got Dell Vostro 3360 laptop, and internal mic doesn't work. I use 3.8 series kernel. When I try to record sound from mic I get only weird noise. All sliders in alsamixer are 100% and capture is ...