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

Tool to give only the built linux source code

Linux is large complex program. A running kernel in the system would not be using all the code. I'm looking for a tool which can give me a source code specific only for the .config I used to build ...
-3
votes
0answers
12 views

best linux for low graphics(7872kb)? [on hold]

iam looking for best linux distibution for low graphics.,,.,.,.
1
vote
1answer
18 views

What are the advantages of GRUB over LILO?

Why is GRUB so much more popular than LILO? The only distribution that I can think of that uses LILO by default is Slackware Linux. All other distributions use GRUB. To this day I've never understood ...
3
votes
1answer
16 views

Why does BASH process substitution not work with some commands?

On occasion process substitution will not work as expected. Here is an example: Input: gcc <(echo 'int main(){return 0;}') Output: /dev/fd/63: file not recognized: Illegal seek collect2: ...
2
votes
4answers
57 views

Where does `hostname` store the hostname that I've set?

This is quite puzzling. Does anyone know where the hostname command stores and reads hostname from? I thought it was /etc/hostname but there is no such file on this Linux system that I'm using. I ...
0
votes
0answers
10 views

CentOS 7 and howto extend my current WIFI network

I am running CentOS 7 and I have both a wired cable and a WIFI on my box. The WIFI on my CentOS box I would really like to use to extend my current WIFI network if this is possible. My current network ...
0
votes
0answers
13 views

What tools can show me the CPU usage that doesn't appear in top/sar?

I have a virtual machine that's using ip_tables to set up some connection forwarding. According to top, sar and /proc/stat, I'm > 99% idle. However, perf says I'm only about 72% idle, with the rest ...
-2
votes
0answers
16 views

Need Script to Find Duplicate PID in a process [on hold]

I need a Shell script to find the duplicate pids in the process. Please advise me Thanks, Srikanth.V
0
votes
1answer
26 views

Why do web create separate user for each software?

This is a very noob question, but whenever I am installing something, like ghost, nginx, mysqld I see commands such as, useradd ghost useradd mysql What is the reason for this? I can guess this ...
0
votes
0answers
22 views

Are there scenarios where a space is required after a redirection symbol? [duplicate]

I was recently reviewing some old cron tasks and noticed that I had entries ending with >/dev/null 2>&1 instead of > /dev/null 2>&1 (note the space). That got me to thinking - ...
2
votes
1answer
22 views

Move thousands of jpg files into daily directories based on the files EXIF creation date

I have thousands of jpg's and mp4's that need sorting into a directory structure which name is based on the date the picture was created. Preferably from the EXIF date as the files modified date might ...
1
vote
1answer
9 views

What's the purpose of the --class option in grubs menuentry?

As the title say, why would I want to add a class to my menuentry (in grub2)? If I understand the grub manual correctly, it could be used with themes.. But is that all?
3
votes
1answer
35 views

SSH not logging properly

I am looking at /var/log/auth.log on a Debian Webserver, and the last thing it logged was: Jul 2 21:09:01 h311 /USR/SBIN/CRON[25912]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d ...
0
votes
2answers
19 views

Resize root LVM and FS in Debian 7

I have a Debian server and I would like to increase the "root" partition from 5GB to 17GB and to diminish the "home" partition from 14GB to 2GB. I am a newbie in linux sysadmin, so a really need your ...
2
votes
2answers
108 views

Shell script to assign values from a lookup table is too slow

I'm trying to assign some variables from a lookup file with a shell script. I have something working but it seems unnecessary slow. Script: while read line do ...
0
votes
0answers
8 views

How to find out if F20 (Linux) is reaping the maximum benefit from my hardware

I have a new laptop HP Pavilion x360 and I wiped out the windows 8 and replaced it with Fedora 20. My question is if there is a way for me to find out if my display driver can be improved or if any ...
1
vote
0answers
9 views

How to disable USB Keyboard at run time from udev.c not from udev rules

I want to disable my USB keyboard at boot time (in some scenarios) without modifying udev rules, as I know udev rules only works when a device is attached or detached from the target. Is there any ...
-3
votes
0answers
12 views

How mail works? What are the files it refers to send a mail from a mail client to get acknowledgement from mail server? [on hold]

Logically how mail works? from source to destinations how many files, stages it referes. How mail works? What are the files it refers to send a mail from a mail client to get acknowledgement from mail ...
1
vote
1answer
14 views

How to do mac spoofing on Linux Mint 17?

How to do mac spoofing on Linux Mint 17? Through macchanger -a I've tried to changemy mac address but new mac id doesn't authenticates successfully. pppd gives successful authentication message only ...
0
votes
2answers
23 views

How to install jdk in Linux Mint

I am unable to install jdk on Linux Mint. I tried the following: # apt-get install openjdk-7-jdk openjdk-7-doc openjdk-7-jre-lib Reading package lists... Done Building dependency tree Reading ...
0
votes
0answers
4 views

OpenSuse 11.1 Keyboard Issuses

Im having some repeat issues with my keyboard being unresponsive. Im using opensuse 11.1 with a 2.26.27* kernal and it seems to be getting worst. When the keyboard dies (although the mouse works) , ...
0
votes
1answer
23 views

Using find to search and report files that have one but not two keywords inside

I'd like to use find to report files under the following conditions: If the file contains the word "Serializable" Then report the file if it does NOT contain the word "serialVersionUID" Something ...
1
vote
0answers
18 views

grep not matching patterns in scripted session [on hold]

We have a bunch of reports that run on a Linux server and I am trying to automate checking them and bringing back relevant parts using Powershell. I'm using a module called SSH-Sessions to connect to ...
0
votes
0answers
12 views

How to Install PHP 5.3.7 On Godaddy Linux VPS using SSH

I have bought a New VPS from Godaddy. They supported PHP 5.3.5 earlier and then 5.4.34 but I need to use PHP 5.3.7 on my VPS.
1
vote
1answer
35 views

Place grub on virtual disk

To learn about Linux startup process I placed grub in a disk image file and tried to boot using qemu. I currently has not put any kernel image into the drive just grub. I installed grub using kpartx ...
4
votes
1answer
39 views

inotifywait - get old and new file name when renaming

I'm looking for a reliable way to detect renaming of files and get both old and new file names. This is what I have so far: COUNTER=0; inotifywait -m --format '%f' -e moved_from,moved_to ./ | while ...
2
votes
1answer
29 views

Bash script to verify that an rpm is at least at a given version

I need to write a script to verify that an RPM is at least a given version in Linux. QUESTION 1: How can I get the RPM version in a variable $RPM_VERSION, so that it contains the version all the way ...
0
votes
0answers
13 views

uBoot on BananaPi, stuck waiting for waiting for root device /dev/mmcblk0p2

I flashed banian linux 14.09 to an SD card stolen from a raspberrypi. I've plugged a 2.0amp raspberrypi power supply into the correct microusb power port (the one by the SATA connector). Boot stops ...
1
vote
0answers
19 views

Git, Linux kernel and ticketing/bug-reporting

We all know that Linus Trovalds created git because of issues with Bitkeeper. What is not known (at least to me) is, how were issues/tickets/bugs tracked till then. I tried but didn't get anything ...
1
vote
1answer
19 views

What directory houses the scripts that get executed with new kernel installations?

This one is pretty much a straightfoward question/answer I just can't locate the information. I'm trying to automate the re-installation of VMWare tools based off when a new kernel is installed. I ...
1
vote
1answer
24 views

How to check PIPESTATUS equivalent during PROMPT_COMMAND execution?

I have a custom $PROMPT_COMMAND in bash that logs the last executed command and its return code. I was using $? for the latter happily until I realized that for piped commands this was insufficient. I ...
0
votes
0answers
14 views

Debian Active Directory to LDAP migration [on hold]

These days I am working on LDAP and Active Directory migration. I want to migrate to LDAP but I cannot get passwords from Active Directory. I want to seemlesly migrate to LDAP, and I want a solution ...
0
votes
1answer
39 views

How to move a file to another directory, as soon as it is created, in linux? [duplicate]

I want to move all the *.xxx file created in a directory to another directory. But, I want that as soon as the files are created, they should move to another directory. Please Help. Thanks in advance. ...
0
votes
4answers
37 views

How to save in a variable the convert from decimal to binary without use an echo

I've been trying to save in a variable the value of the convert of a number from decimal to binary, like this: num1=10 echo "obase=2;$num1" | bc | tee -a register.txt but I don't want to show it ...
0
votes
0answers
32 views

Linux (CentOS) corrupts my BIOS?

Ever since I switched to CentOS from Windows, I've had to replace the motherboard twice on my Thinkpad T430 - the system isn't able to boot or even run diagnostics or go into the BIOS settings. It is ...
3
votes
1answer
22 views

Is is possible to recover from the unexpected removal of the root device?

As it says on the tin, is it possible to recover from the entire removal and reinsertion of the root device (I.E. remounting it after reinsertion)? The reason I'm asking is I'm attempting to teach a ...
0
votes
0answers
11 views

Loading linux environment variables [duplicate]

I have a set of environment variables and i would like to load it automatically on each startup. As of now i am doing the following: In /etc/environment export FLEETCTL_TUNNEL=10.77.189.179 In ...
0
votes
0answers
13 views

RHEL 6.5 erroneously marking Fusion-io RAID1 card as failed

I am getting the following error every hour for a Fusion-io ioscale2 RAID1 (mirror) configuration. However, the logical volume is mounted and accessible. I do not see similar error in the ...
0
votes
1answer
3 views

Why process wasn't killed after closing SSH connection

I launched this command via SSH on a Debian server: watch --precise -n 1 top -b -n 1 -p 27330 | tail -n 1 | awk "{print \$9}" >> 27330.log & After a while I quit my terminal. When I ...
2
votes
1answer
10 views

Why is it that my initrd only has one directory, namely, 'kernel'?

I'm using debian live-build to work on a bootable system. By the end of the process i get the typical files used to boot a live system: a squashfs file, some GRUB modules and config files, and an ...
1
vote
0answers
34 views

How shareable is /var/cache?

I know that some subdirectories of /var/cache are pretty much shareable, for example /var/cache/pacman (in case of ArchLinux), and possibly others (/var/cache/man?), but at least /var/cache/ldconfig ...
0
votes
0answers
7 views

Receive multicast on any source

I'm using Ubuntu 12.04.5 LTS for IPTv multicasting. If i use same Source-IPv4 address then I can receive stream over multicast from the sender. If I've different Source-IPv4 addresses on sender and ...
0
votes
1answer
24 views

linux after restore + GRUB error

I restored Linux machine , and when the Linux machine startup I get the following errors GNU GRUB version 0.97 GRUB> Please advice how we can fix that? In order to startup my linux ...
0
votes
1answer
19 views

How to know different types of events and their ID's in linux [on hold]

How can I know what all types of events generated by Linux. I can get this from the logs, but reading logs and noting ID's is very time consuming. All events might not be triggered. I need this ...
0
votes
0answers
9 views

Why can't I start a VNC session using the randr flag?

I'm using Ubuntu 12.04 (I think it's desktop...) and can successfully run vncserver (which ultimately links to /usr/bin/vnc4server) and connect with my client, and I can also add the -geometry flag ...
1
vote
1answer
29 views

DVD giving inconsistent size informatin

I have a (read-only, commercial, dual-layer) DVD which I’m trying to create a backup copy of on my computer (because DVDs can be damaged). However, when I try to determine the size of the disc, I get ...
1
vote
0answers
19 views

NAT-T set up using 3 linux machines

I am trying to have a simple NAT-T setup using 3 linux machines. Linux1 Linux2(NATdevice) Linux3 (eth0) 192.168.1.51 <--->(eth1)192.168.1.80 & ...
1
vote
0answers
14 views

How/where are linux device capabilities / bitfields set?

I have a device that has this output in /proc/bus/input/devices: I: Bus=0003 Vendor=05b8 Product=3280 Version=0111 N: Name="PixArt USB Optical Mouse" P: Phys=usb-0000:00:1a.0-1.1/input0 S: ...
3
votes
1answer
28 views

How to find the file corresponding to a pipe opened by a process? [duplicate]

I created this script, which listens for characters received on a hardcoded pipe, and tries to eval those characters. I call my script loop_executor.sh This is all it contains: !/bin/bash while : do ...
1
vote
1answer
37 views

Why does mouse and keyboard freeze when Linux swaps

I have noticed that under Linux, when there is heavy swapping, the mouse cursor freezes, and even CapsLock or Ctrl+Alt+F1 don't work. The system uses the deadline I/O scheduler but this should not ...