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

0
votes
1answer
10 views

Find newest file. Multiple Filetype restrictions

I want to write a command that gives me the newest file in a directory recursively. But that's not my only limitation. The files has to be an mp3 or a jpg file. (case insensitive prefered) I only need ...
2
votes
1answer
22 views

How can I remotely debug a broken initrd?

Background I have a system that runs Linux. It's a NAS, and does not have any monitor, keyboard, or serial port. It does have a network port. I'm not happy with the software running on it, and am ...
1
vote
1answer
238 views

No on-board sound on Dell Optiplex SX-280 post Linux Mint Petra Install

Not sure this fits in here.. We recently installed Linux Mint Petra on this small-form-factor dell desktop. The weird thing is, the sound does not work on board, but works on a speaker connected to ...
0
votes
0answers
31 views

Fedora not shutting down

Whether I do shutdown -P now or sudo shutdown --halt now Fedora does not shutdown. It will send SIGTERM and SIGKILL as usual, but then just stops at the screen with the fedora logo. My only option is ...
1
vote
2answers
3k views

ATOP shows red line vmcom and vmlim. What does it mean?

utility atop shows: ATOP - MyServer 2013/01/07 00:03:57 10 seconds elapsed PRC | sys 2.18s | user 8.33s | #proc 141 | #zombie 0 | #exit 0 | CPU | sys 21% | ...
2
votes
3answers
108 views

What is $() in a command?

What is $() in Linux Shell Commands? For example: chmod 777 $(pwd)
0
votes
1answer
47 views

Why does my 64bit redhat only see 3832MB of my 4096MB Ram

This time i am setting up a lot of 64bit RedHat VMs (VMware vsphere) for our development department in my company. Most of them start with 4096MB ram, but Linux only seems to recognize 3832MB of ...
0
votes
0answers
31 views

/dev/root does not exist in CentOS 7

I take an error message when installing CentOS 7 from usb. What is it solution?
0
votes
1answer
24 views

How to evaluate a variable length in shell script?

I want to write a shell script, in which it will call different command according to the variable length. But I didn't figure it out yet. My unwork script is here: for i in n5 n25 if ${#i} == 2; ...
0
votes
0answers
9 views

gpg: Bad signature

I'm trying to sign a public PGP key but am encountering a 'Bad signature' error: gpg --edit-key someone@somedomain.com ... gpg> sign ... You need a passphrase to unlock the secret key for user: ...
-2
votes
1answer
31 views

What does it mean?

I would like to know what does this code means, that I found in Linux CentOS. adduser openerp DIR="/var/run/openerp /var/log/openerp" for NAME in $DIR do if [ ! -d $NAME ]; then mkdir $NAME ...
0
votes
2answers
61 views

Difference between Unix OS Types [on hold]

What is the difference between Linux, AIX, Solaris, MAC. Aren't these all some kind of Unix flavors ? Why do we need so many types. Why can't there be just one type ?
0
votes
0answers
11 views

How to connect to ssh-server running on embedded linux without /etc/passwd?

After installing ssh server on my remote machine (which runs embedded Linux), I tried to connect to ssh server from host machine but it failed. This is because I could not specify user account when ...
3
votes
4answers
694 views

Clock skews on remote machines

I am performing some experiments on a network of about 10 remote Linux computers which are geographically scattered. I suspect some of them have clock skews but they are seen transiently (eg. once in ...
0
votes
0answers
5 views

/usr/bin/X :0 -audit process

Hello I am trying to solve some internet problems that I have. It is a university computer and I do not have root access. I want to understand what is this processor, that root has started, and if you ...
2
votes
2answers
487 views

Lost window title bars and everything after selecting bad window theme in Linux Mint

I've selected a window theme from the "Advanced Settings" in Linux Mint 12 which seems to be corrupted and I've lost everything on my desktop. I can't start any applications but I can open the ...
0
votes
0answers
8 views

How to programmatically read until a certain character in a file? [migrated]

My C program writes a .json file. Few of the values in the schema of the .json file is string and has variable length. I am using jansson library. I will have to read a complete .json object ...
0
votes
0answers
22 views

How to check my account on embedded linux without “/etc/passwd”?

On some embedded linux systems, there is no /etc/passwd file and /etc directory is not writable (which means I cannot set user account and password?). Then what is my (default) account name and ...
4
votes
2answers
145 views

Live Distros: UBCD boot Deft, Caine, and Tails from Custom Menu

I'm building my own UBCD and I'm using dual layer to fit 7.5Gigs Useful resources for UBCD customization: The SYSLINUX Project UBCD Customize Casper Man Page Live Boot Man Page Here's my ...
2
votes
1answer
14 views

Pin Lock Screen

Is there a way to replace password lock screen in Linux (Mint Debian Edition) with a pin lock screen? Like the one found in Windows 8 for example. It's annoying/inconvenient to have to input 16 ...
0
votes
1answer
459 views

Linux Mint CPU cores balancing and high temprature

I'm using Linux Mint. My laptop has a Corei5 CPU. When I check the system monitor, it shows that the CPU 1 usage is between 90 to 100% and CPU 2,3,4 are less than 5%. why it doesn't balance processes ...
-1
votes
0answers
7 views

Gnome Crashes after installing Php5.2.17 and Apache2.0.64

I was installing Php5.2.17, Apache2.0.64 and zlib on my machine with RHEL 5.4 OS, after the installation I restarted my computer. Before it loads the Login screen however, a message appears : It's ...
4
votes
3answers
646 views

Why is the 'sudo' password different than the 'su root' password

On my personal machine, I often type sudo in front of certain commands in order to accomplish administrative tasks. I had hoped to avoid doing this throughout the day, by typing su root and providing ...
1
vote
1answer
262 views

User gets rejected after system crash on CentOS

The power went out on my PC running CentOS 6.3 while I was logged in as a regular user. Since then, when I try to login from the GUI, my screen flashes to black then returns to the login screen, ...
1
vote
1answer
16 views

accessing substrings from lines in a text file and storing them

I have a text file like this chr1:16840617-16840780 RNU1-1 (2 columns are tab separated) chr3:142139047-142139211 RNU1-100P ............ ............ I want to loop over the lines ...
1
vote
1answer
20 views

How to decrease the time the processes would wait (blocked) for disk reads (only to discover an error)?

Waiting too long when encountering an unreadable sector on a disk is really very annoying. (Especially if you are trying to read as much data as can be read from a disk with bad sectors, and do it ...
3
votes
0answers
36 views
+50

Reduce bad block retry / wait times in Ubuntu

How can I reduce the IO wait time and retry times so that the OS doesn't continually try to write to a failing drive? I have an system that I use to make copies of demo content that gets loaned out ...
0
votes
0answers
35 views

Set permissions not to change permissions [duplicate]

Consider an example File1.txt, t3dev and ttuser own this file actually but When I use my id(user1) and edit this file, the file user and group are changed to my id(user1). I want to set the ...
1
vote
0answers
33 views

How to properly start and stop shell script in linux, busybox?

I am trying to write a small shell script that would send some commands to my tv set from my set top box that has busybox on it. The problem is that it generates huge amount of zombie processes, and ...
0
votes
1answer
93 views

Recommended Linux Distro for 'MMO' Server [closed]

Given its UNIX ancestry (the de facto standard for mainframes, back in the days when I first learned programming), using Linux as the OS for an experimental MMO is something of a no-brainer. That ...
1
vote
1answer
27 views

Real vs Actual memory in Xymon/Hobbit

What is the difference between real and actual memory usage in xymon ?
0
votes
3answers
135 views

Search in iptables.log file takes a long time

I have used iptables to save information about connections by modifying the /etc/syslog.conf file to save information in /var/log/iptables.log. So, every X hours, I need to extract information from ...
0
votes
0answers
5 views

In Linux count number of key presses except those in the browser

I want to count the number of key-presses in Linux, except those in the browser. There was a solution proposed here but not sure how to ignore browser key-presses.
3
votes
0answers
38 views

RAID-1 mirror has become a single hard disk

I have an HP N40L microserver, with 2 identical drives, I used the system to hardware-RAID them as a mirror. I then installed mint on the system about a year ago. This has been running perfectly, ...
0
votes
1answer
24 views

Solid State drive vs. traditional hard disk in a virtual server environment

I am currently considering upgrading my virtual-hosting plan because of very bad write performance (mostly writing to a MySQL database, but I notice it also when compiling a program or copying files - ...
0
votes
2answers
40 views

how to remove all double quotes from csv except specific field

I want to remove all double quotes from my csv but not the fourth field (because the four fields represent PATH of file) Please advice how to implement this by sed or awk or perl one liner , etc ...
2
votes
0answers
19 views

Linux kernel module to read out GPS device via USB [migrated]

I'm writing a Linux kernel module to read out a GPS device (a u-blox NEO-7) via USB by using the book Linux Device Drivers. I already can probe and read out data from the device successfully. But, ...
2
votes
1answer
386 views

What is the difference in CPU utilization between 'ps aux' and 'ps -ef'?

I use Ubuntu 12.04.1 Linux. I see a difference between %CPU and C output format of ps command for a process. It is not clearly noted in the ps man page. Man pages says: CODE HEADER ...
0
votes
1answer
38 views

Unable to delete a file

An update has corrupted my system, I attempt a receipt and update of php5 error that you can not write /usr/lib/php5/libexec. When I try to read this file, which I find is this: ...
0
votes
0answers
8 views

PlayOnLinux(POL) Excel 2007 can not open more than one spreadsheet

I have Installed CentOS 6.5 - i386 and PlayOnLinux 4.1. On that MS Office 2007 is installed. Word 2007 is able to open more than one document simultaneously and also possible to perform Cut, Copy and ...
2
votes
1answer
13 views

awk + gsub + how to work with all kind of characters

The following awk command target is remove spaces and unnecessary quotes from CSV file and only from single words between separators awk 'gsub(/("[ ]+|[ ...
4
votes
2answers
615 views

Output sound by writing to /dev/dsp

I know that it is possible to write arbitrary data into /dev/dsp and a noise will come up from the speakers. But whatever data I pass to this file the noise is the same. I wonder is it possible to ...
0
votes
1answer
41 views

How to know free disk size witout df command? [on hold]

Is it possible to check free disk size in Linux without using command lines such as df? Since my host machine is embedded Linux, there are no direct command lines that show free disk size.
13
votes
10answers
21k views

List partition labels from the command line

Is there a command that will list all partitions along with their labels? sudo fdisk -l and sudo parted -l don't show labels by default. EDIT: (as per comment below) I'm talking about ext2 labels - ...
2
votes
6answers
931 views

Unable to do paswordless ssh even after following standard procedure

I have two systems named Interface(10.1.1.87) and Client-Interface(10.1.1.91). I want to automatically mount an sshfs share from Client-Interface on Interface on boot. I am using the command: sshfs ...
3
votes
1answer
443 views

Kernel booting stops right after “Uncompressing Linux…”

I'm trying to bring up an ARM-based board. I've got U-Boot working but can't seem to get the kernel to load. Most of the time it only goes as far as: Starting kernel ... Uncompressing Linux... A ...
42
votes
13answers
27k views

How can I get my external IP address in bash?

I need to find my external IP address from a bash script. At the moment I use this function: myip () { lwp-request -o text checkip.dyndns.org | awk '{ print $NF }' } But it depends on ...
3
votes
2answers
48 views

Is Android compatible with the Linux Standard Base?

Moved from Stack Overflow, where I realize it was off-topic since it was asking for sources - far as I can tell, the rules forbid that there but not here. I know that the kernel in Android is now ...
2
votes
1answer
672 views

/proc/cpuinfo showing zero cpu clock speed

I saw an interesting issue where the cpuinfo file from /proc filesystem shows the cpu clock speed as zero. It is a physical host with no virtualization. Can someone explain to me some probable reasons ...
0
votes
0answers
2 views

Pantheon lost keyboard configurations

I install Pantheon yesterday and now every time startx my keyboard configurations back to us, but the correctly is br+abnt2. So I need to run in terminal (after startx) the command: setxkbmap ...