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

0
votes
1answer
2k views

Unexpected end of file error when executing script

Can somebody help me debug this simple script. Been trying for 2 hrs now but I cant seem to get it to work. #!/bin/bash echo "Search for MMSC or WAP connectivity errors" sftpErrorCount=$(tail -100 ...
1
vote
1answer
240 views

Bundle my scripts to make an installer in Unix?

We've got a PHP script running MongoDB in the background. I want to make it a bundle (Installer) for Unix. I will use it to install the following on any machines: Install Apache, PHP + MongoDB ...
3
votes
2answers
404 views

How to make directory modication date change when files from that dir change?

For example, if a file has been changed in that directory, then directory modification date should be updated. Basically any changes that happen in that directory should trigger a "touch" on the ...
2
votes
2answers
3k views

Can system calls be interrupted?

Please comment on the following sentence: On the standard Linux kernel without the rt patch, interrupts can't interrupt ongoing system calls. The reason why our machine doesn't stop working ...
1
vote
1answer
357 views

Can we create lvm volume group with mapped device?

I can create a lvm volume group with a loop device. But if I use dmsetup to map the loop device into several devices, then I can't create a lvm group with /dev/dm-. Why is it not possible to create ...
10
votes
1answer
22k views

Limits on the number of file descriptors

I'm trying to install 389-ds, And it gives me this warning : WARNING: There are only 1024 file descriptors (hard limit) available, which limit the number of simultaneous connections. I understand ...
1
vote
0answers
716 views

Restore a Linux backup on virtual machine

I have made a backup of my Linux OS in a bacukp.tgz, the OS is Centos 6.4. Now I want to create a new VMWare virtual machine from it. Do I first need to install Centos from CD or ISO, and then ...
3
votes
1answer
1k views

Are time interrupts always followed by a scheduler call?

When a timer interrupt occurred the ISR is called to service the interrupt. Is it okay to assume that every timer interrupt ends with a call to the scheduler on which process should continue running ...
2
votes
0answers
137 views

Which counter generates timer interrupts?

I did a iotop to observe the interrupts on my computer. This is the interrupt shown most often. 0 [PIC-edge time] 247 Ints/s (max: 389) I believe it's the timer interrupt, well since ...
1
vote
1answer
258 views

chkconfig does not display runlevel links correctly

I am using chkconfig to manipulate runlevel links on my Debian System (LSBInitScripts). I have noticed some inconsistencies, for example According to chkconfig, the script umountiscsi.sh is turned ...
6
votes
3answers
13k views

How can I revert a chmod on the etc directory?

I accidentally executed the following command on the etc directory: sudo chmod -R 700 /etc I know that I have done something very wrong. My terminal now prints: I have no name!@ubuntu: /$ How ...
0
votes
1answer
2k views

What does high, low, negative and constant values from pidstat command mean?

I needed information on the following: Can you please tell me the inference for the following in terms of high, low, negative and constant values from pidstat command in Linux. kB_rd/s, kB_wr/s, ...
4
votes
2answers
4k views

What is a device controller, and where does it fit in between the kernel and the device?

Can someone please explain the concept of a device controller (hard disc controller, NEC PD765 compatible controller etc.). Here are some definition of key terms which might be needed for the ...
3
votes
2answers
309 views

Silencing all stdout during bootup

I am looking for a completely silent bootup of my Ubuntu Server 13.04 installation (dumped to file rather than stdout). What I want is the screen to be blacked out (eventually replaced with a logo) ...
5
votes
1answer
2k views

Find driver (which is not automatically installed) for a specific hardware

Is there some general way to find out the name of the driver which I have to install on my linux system given only the hardware name? Maybe some centralized webpage or application which gatters all ...
3
votes
2answers
674 views

how does ssh discover hostnames on the network?

We have a server on the company network named serverA, and if I type ssh serverA, it will connect my PC to this server, even though there is no entry for this server in my /etc/hosts, but I used to ...
3
votes
1answer
816 views

difference between useradd -b and useradd -d

Can somebody please explain to me the exact differences between useradd -b and useradd -d in [Debian] Linux? Both seem to work quite similar to me, but then I spot differences that confuse me.
1
vote
1answer
580 views

How to make dual boot live dvd

Can we make a live dvd with a dual boot option between Ubuntu and Linux mint? I have both the iso's. They both are larger than 800mb. If I will burn 2 dvd's, Then a lot of space will be wasted. So I ...
6
votes
2answers
3k views

How to get differences between different distributions of linux

I tried out Red Hat, Ubuntu, Kali Linux. While working on them I searched for the difference between the distributions of Linux. One thing I got was the difference in Package Management, (.rpm and ....
20
votes
3answers
13k views

Limit outgoing bandwidth on an specific interface

I would like to know the easiest way to limit outgoing bandwidth for an interface. I want to cap the outgoing port speed so that file transfers between my servers don't fail during busy hours. What's ...
2
votes
1answer
1k views

How does the screen backlight work?

Everything about the backlight settings and controls work for me except: Backlight resets to max. on every reboot/boot. The backlight minimum goes on to complete black screen, instead of the minimum ...
1
vote
1answer
2k views

Kali Linux shows strange line of code using Bash command “set”

I have Kali8 installed - it is a Debian/GNU Linux ("wheezy") based distro - and when I use the Bash built-in command "set" to check my vars from X, like in LXterminal, everything works fine, but when ...
-1
votes
0answers
160 views

file has blank permissions on linux server? [closed]

Why would several files be empty and have blank permissions? For example, ---------- 1 user user 0 Jun 21 00:50 site.com/html/wfc.php ---------- 1 user user 0 Jun 21 00:50 site.com/html/llre.php
9
votes
2answers
12k views

How to check drive temperature on Linux?

I have used of hdparm -n and smartctl -A but it always seem to be a "per drive" technique as a drive may answer for only one of these tools. So, is there a standard way to get the drive temperature ...
1
vote
0answers
165 views

RHEL6 LDAP client not listing all the groups

Using sssd I have a RHEL6 client configured to login using LDAPS. The login works, but if the user logged in is assigned to more than 1 group at the LDAP level, groups only returns 1 group? Could I ...
3
votes
2answers
324 views

Multi-function CapsLock without X

I would like to remap CapsLock to Esc when pressed by itself and Ctrl when pressed with another key without using X. This is similar to a previous question ( Remap CapsLock to Escape and Control ...
1
vote
2answers
7k views

multicast is enabled on ubuntu?

I have one of my Ubuntu machine- rkost@rj-vm9-14105:~/infinispan/infinispan-server-6.0.0.Alpha1/bin$ uname -a Linux rj-vm9-14105 2.6.35-22-server #33-Ubuntu SMP Sun Sep 19 20:48:58 UTC 2010 x86_64 ...
1
vote
1answer
569 views

Thread id on different linux distros

We have a server application which runs fine on ubuntu and the old Mandrake linux, but it consistently fails on Redhat Enterprise Linux (to be precise RHEL 4 Update 8, kernel 2.6.9-89). On RHEL the ...
0
votes
0answers
254 views

Permission in shmget Linux

I've been searching about 0666 permission in shmget(). I know that 0666 permission will grant read & write permission on the shared memory segment. But, how do I prove it have permission if I ...
3
votes
2answers
8k views

How do I find out what file Apache is serving when a port is hit?

I'm working on a server someone else set up. The server is CentOS 4.6 running Apache/2.0.59 (httpd). They have an update service setup on port 8443. I know it is working but I need to find out what ...
6
votes
2answers
7k views

How to recreate EFI boot partition?

I've installed Fedora on my machine with / partition, swap partition and ESP partition for EFI booting. Now, I was installing Elementary OS instead of Fedora. I have formatted the / partition (/dev/...
2
votes
2answers
11k views

Setup Linux backup with Bacula and Webmin

Hi guys I'm having troubles finding a good documentation to setup an easy and possibly web oriented backup solution for one of our CentOS 5.4 file server. The things I need to accomplish are the ...
4
votes
1answer
13k views

How can I install latest VLC player in CentOS 6.4?

I have installed CentOS 6.4 in my laptop, I want to know the method of installing VLC in CentOS 6.4, Is it necessary to download the vlc package and compile or can I use yum install vlc to install the ...
0
votes
1answer
221 views

Execute remote programs and completely detaching it

I need to execute a remote application (named ConnectionManager), which uses the ncurses library, on the remote server launching it from a local pc. ConnectionManager is a program wich use ncurses ...
2
votes
0answers
227 views

Where does Mutt put deleted messages if no purge is performed?

If I delete one or more email messages in Mutt and then say no when it asks (when changing folders or quitting the program) if I want to purge the deleted messages, what does Mutt do with them? After ...
4
votes
2answers
128 views

Should I file bugs upstream, to my distribution maintainers, or both?

I've recently filed a bug with gnome-shell to the GNOME maintainers, on their website (upstream). However, I'm not sure whether I was maybe supposed to file it to the package maintainers of my ...
2
votes
1answer
50 views

Mounting by block address

Is it possible to do a partial mount in Linux? Lets say that you have 1 partition or one device file that contains 50 blocks. You want to write one file system to blocks 0-24, and something else in 25-...
1
vote
1answer
93 views

sensors Information about degree of adapter

In this Image (output of sensors): On the top, just below radeon-pci-0100, it says temperature +511 Deg C, does this really mean 511, will this not blow up my laptop?
2
votes
0answers
143 views

Problems with USB goflex 2 TB

I am using CentOS 5.5 and have been using cpio to write backups to a 2 TB GoFlex USB drive. This drive worked great for over a year, but am now running into a problem and not sure what to do. When ...
2
votes
3answers
7k views

Starting Qt Application On Startup for Embedded Linux

I'm trying to get a Qt application to launch immediately after booting up. When booted, the Linux image does nothing more than launch an X server and a terminal. It also has the cron daemon running in ...
1
vote
2answers
394 views

Setting up a RAID 1 in Funtoo [closed]

In short Following the guide How to Set Up a RAID 1 Under GNU/Linux, I have setup a RAID 1. Checking the RAID Array for validity in various ways, appeared to be normal. However, after rebooting the ...
1
vote
2answers
369 views

Richard Stallman compares Linux with Windows [closed]

I'm posting this here, because I really don't know any other place that could answer this. I'm curious about switching to Linux. I'm referring to this video: https://www.youtube.com/watch?v=...
3
votes
3answers
3k views

How can I create my own distro and include a custom kernel & packages? [closed]

I wanted to know how to add packages to the Linux kernel and then package it to a ISO or CD for friends. Thanks in advance and please don't point me to LFS - Linux From Scratch!
2
votes
1answer
122 views

Unknown source sends “AT+GC” into /dev/rfcomm0 opened by BlueZ

I'm testing a bluetooth application running on an Android device. I registered a dummy service on the device and opened the RFCOMM channels to it from the PC running Ubuntu 12.04: bluez-test-serial ...
1
vote
0answers
600 views

Compiling PHP-FFMPEG Extension

cd ffmpeg-php* phpize ./configure --with-ffmpeg=/usr/local/cpffmpeg make Then I end up with the following issues on my make: ... ... ... /usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c:86: warning: (...
-1
votes
1answer
83 views

How to upgrade Linux version without breaking the original settings or configs? [closed]

I want to upgrade my linux version to an upper level, but I am afraid of by doing that, it will format the original settings or configs on my machine. So is there any way that we can avoid this happen?...
8
votes
5answers
49k views

Parse XML to get node value in bash script?

I would like to know how I can get the value of a node with the following paths: config/global/resources/default_setup/connection/host config/global/resources/default_setup/connection/username ...
3
votes
0answers
70 views

Maintain different Dropbox locations for one Dropbox account on different hosts

We've got a user who is asking if it's possible to keep two config.db's, and use one or the other based on the host name, for the same Dropbox account (not two Dropbox accounts). For example: ~/....
0
votes
2answers
643 views

Which linux distribution is best for multimedia and gaming? [closed]

I am looking for a Linux distribution which has good multimedia and gaming support for my laptop.
0
votes
1answer
164 views

Is my approach to performance testing in Linux environment correct?

I want to do performance testing in a Linux environment for a C++ application. I need to measure the CPU & Memory usage of the application. This application is a multi-threaded application. In ...