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
1answer
525 views

Do kernel counters for jiffies in state exist in Linux?

I am looking to get time/jiffie stats on the state of a daemon process. The states I'm referring to are mentioned in the Linux Kernel Proc Filesystem document. Running, Sleeping, uninterruptible ...
2
votes
0answers
110 views

How to set up remote graphical sessions on CentOs?

Trying to set up a Centos 6 server configuration where we can automate the running of an application that uses Selenium. In this case, ideally, we should be able to: Create a graphical session ...
1
vote
2answers
513 views

Does linux modules/drivers belong to kernal space or user space

Some articles say that modules/drivers belong to kernel space as it take part in forming the kernel; (reference: http://www.freesoftwaremagazine.com/articles/drivers_linux) While others say that ...
3
votes
1answer
2k views

How to access u boot environment from linux?

How can I access and change the u-Boot env variables in linux. Using the u-boot/tools/env directory in u boot directory: u-boot$ make env Which created the executable file fw_printenv. I copied ...
2
votes
2answers
506 views

Why read() is slower than getc()? [closed]

Why is read slower than getc? For example, this: for (;;) { chr++; amr=read(file1, &wc1, 1); amr2=read(file2, &wc2, 1); if (wc1 == wc2) { if ...
3
votes
1answer
489 views

Confirm before exit the command-prompt

I am trying to have a confirmation message every time I type exit command in the command-prompt. To do this, I have tried to use trap in .bashrc file but it seem like trap is not a solution as it run ...
4
votes
2answers
4k views

Measure disk IO latencies of a running process

I'm trying to measure the disk IO latencies of a running process to make a histogram. I could do this with DTrace in operating systems that provide it (e.g. as in this Joyent paper), but my ...
3
votes
1answer
534 views

How to create rootfs for user mode Linux on Fedora 18?

I want to create a rootfs to be used with an UML kernel and be able to use the internet. I was using febootstrap with packages: bash, coreutils, net-tools, iputils. After using ...
8
votes
0answers
216 views

how to get exit status from the command before the last [duplicate]

I have solaris machine ( solaris 10 ) please Look on the following simple commands (haconf -makerw | grep -iq "Cluster already writable") # haconf -makerw VCS WARNING V-16-1-10364 Cluster ...
3
votes
1answer
1k views

How to guarantee writes are physically committed before reported completed?

When my system boots, as it probes the external, USB-attached hard drive, I get the message Assuming drive cache: write through in the dmesg output, tagged with the device name of the external drive. ...
4
votes
3answers
12k views

Portable Firefox Linux

I've installed latest firefox linux-x86_64 from ftp.mozilla.com on a usb device and created a new profile file with the -P command. Unfortunately, the application does not recognize the flash plugin ...
0
votes
1answer
54 views

What is this feature in Linux 'to highlight characters' with QT?

Recently I came across this site. It says, in Linux with QT, it is possible 'to highlight characters' by pressing ShiftCtrl {Left,Right} or Shift {Left,Right}. Could somebody please explain this ...
1
vote
1answer
499 views

ixgbe: increase rx performance

I have an Intel 82598EB 10GBE NIC. I need to receive traffic without packet loss. Data rate is 4-5 Gbps, packet size is 1500-9600 bytes. I had already configured smb and irq affinity. I also tried ...
6
votes
1answer
2k views

vi[m] read range of lines from another file

On Linux, editing file_B in vim I want to add line 10-25 from file_A. Example: One has a whole set of HTML-Documents with quite the same header and yes, one could create a template and start from ...
1
vote
2answers
9k views

How to detect a possible hardware error?

I'm running Debian Wheezy on a HP Pavilion dv7 laptop and it freezes every now and then, requiring a reboot. One time it didn't even load the operating system, but it wasn't I who was using it so I ...
4
votes
1answer
152 views

What's stopping video cards from being utilized to their full capacity on Linux?

Why do video cards have better quality on Windows? Is there something about Linux that stops video cards from being utilized to their full capacity? What would it take to get the best possible ...
1
vote
2answers
344 views

What does the -c option of sg do?

What does the -c option of sg do? At least on my machine, the man page fails to explain this option.
0
votes
1answer
282 views

RedHat / CentOS 5.5 background process has restricted memory

I run Fisheye that uses Java for Linux. Settings go like this: generate options FISHEYE_OPTS=`$JAVACMD -Xms100m -Xmx200m -cp $FISHEYE_HOME/fisheyeboot.jar com.cenqua.fisheye.boot.OptsSetter` build ...
5
votes
1answer
3k views

How many users does Linux support being logged in at the same time via SSH?

I know Linux supports multiple users being logged in at the same time. But what's the maximum number of users that can be logged into Linux at the same time? I see there are there are 69 tty files ...
1
vote
2answers
2k views

What module for network card Intel Corporation Device 1521?

I'm installing a new server and I'm not able to figure out what module should I load to make its on-board network card work. Calling lspci prints: Ethernet controller: Intel Corporation Device 1521 ...
1
vote
4answers
203 views

concatenating multiple files with multiple headers

Im trying to concatenate multiple files with multiple headers to have one file with all the information in it for example. File 1: Numbers 1 2 3 Letters A B C File 2: Numbers 4 5 6 Letters D E ...
9
votes
1answer
1k views

Why don't Linux terminal emulators support full colors?

I just upgraded my gnome-terminal to use 256 colors, yet I am a bit puzzled on the reason why a terminal emulator can't support the full palette any modern desktop environment provides. I guess ...
11
votes
2answers
19k views

How does cat know the baud rate of the serial port?

I regularly use cat to view debugging information in the console from my FPGA development board over the serial connection, but I never have had to tell linux what the baud rate is. How does cat know ...
1
vote
2answers
4k views

Add new user with permissions same as existing user

How to create a new user with permission exactly same as an existing user in linux.
2
votes
0answers
68 views

How to specify which interface an application uses?

Imagine this example: you have direct access to the internet on eth0, and you have a VPN on tun0. You want one application to access the internet directly through eth0 (using X public IP address) and ...
0
votes
1answer
7k views

How to remove Oracle Wallet using orapki?

Hi i'm on Centos using oracle 11g And i've created a wallet using : $ orapki wallet create -wallet /u01/app/oracle/admin/DB11G/wallet -pwd WalletPasswd123 -auto_login Now i want to remove it to ...
1
vote
1answer
112 views

Effect if any of changing LD_LIBRARY_PATH environnment variable on emacs fonts?

The rendering of my emacs fonts changes if I define a specific list of directories under the LD_LIBRARY_PATH environment variable just before I call emacs. I changed this because I wanted to use emacs ...
3
votes
1answer
2k views

Output of `java -version` not matched by grep or awk

On my Linux machine, it isn't clear to me why if I do the following then I don't get only the version string ("1.5.0_32"). # java -version | grep version | awk '{print $NF}' java version "1.5.0_32" ...
0
votes
3answers
415 views

How to get GPU acceleration working for my old PC?

I am using an old PC Pentium4 2.4Ghz with nVidia GS 7900 AGP 256MB and I would like to support the video play from GPU. As far what I have read, the support for vdpau has come for nVidida 8 series. ...
0
votes
3answers
5k views

libxml2.so.2: cannot open shared object file: No such file or directory

I am using CentOS in which i had removed libxml2 accidentally now it was showing the following error as follows: There was a problem importing one of the Python modules required to run yum. The ...
10
votes
2answers
2k views

A hidden process, what it is?

[root@datacenteronline ~]# ssh root@192.168.1.172 Last login: Wed Apr 17 09:55:45 2013 from 192.168.1.187 [root@localhost ~]# ls /proc/ | grep 2266 [root@localhost ~]# cd /proc/2266 [root@localhost ...
1
vote
1answer
234 views

Looking for /procfs documentation, describing values and units of measurement

Surprisingly, comprehensive documentation for /procfs is hard to find. For my specific question, I am looking at: cat /proc/1/statm (let's use pid=1 because it seems to be always there). I just ran ...
0
votes
1answer
3k views

finger and who commands usage

I know that the finger command used to display information about local and remote users. finger --> display users log in on local machine, even if remotely. finger @hostname --> display users log in ...
5
votes
1answer
341 views

Running one OS per core

I'm interested in using a COTS board like the Wandboard for a project. On one hand I'd like to use something like Ubuntu for user interaction, sounds, TCP/IP stuff, etc. But I also need an RTOS like ...
19
votes
7answers
55k views

Why is USB not working in Linux when it works in UEFI/BIOS?

For background I have just built a new machine with modern hardware including: AMD FX-8350 Gigabyte GA-990FXA-UD3 motherboard 16GB RAM NVidia GTX 650 Ti Kingston SSD Given that, I tried to install ...
1
vote
0answers
152 views

Viewing shared segments created by shmget

I'm trying to "visualize" shared memory between two processes. I've created a little server-client example where the client writes some data to a shared memory location and the server reads from it. ...
-1
votes
1answer
1k views

zsh: Is it worth the switch from bash? Is it the time? [closed]

I have been a bash user for years now. However, I find that zsh is increasingly gaining momentum. I came up with the following questions: Is zsh really becoming that popular? Will it compete with ...
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.
6
votes
1answer
2k 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 ...
3
votes
3answers
2k 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
148 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
3answers
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 ...
6
votes
2answers
9k 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
1k 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
14k 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. ...
6
votes
4answers
44k 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
1k 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
129 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
265 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 ...
1
vote
2answers
392 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 ...