Linux is the generic term for a UNIX-like open source operating system based on the Linux kernel.

learn more… | top users | synonyms (1)

1
vote
2answers
362 views

Monitoring instantaneous network throughput at one second intervals?

For a testing setup I have, I need to monitor the throughput through a "router"* at regular intervals of around 5 seconds or less (sub-second intervals would be very nice, but not required). Ideally, ...
1
vote
1answer
631 views

“Attempt to serve directory:” Nagios throwing errors through httpd error log

I am trying to install Nagios on a centos vm on Ec2 from yum. When trying to restart httpd to get Nagios up I was hit with this bug form the http error log Attempt to serve directory: ...
2
votes
2answers
2k views

CentOS server. What does it mean when the total used RAM does not equal the sum of RES?

I'm having a problem with a virtual hosted server running CentOS. In the past month a process (java based) that had been running fine started having problems getting memory when the JVM was started. ...
1
vote
2answers
195 views

Disk not available for use under Linux on Sun hardware

We have a Sun 4140 running Linux (CentOS 5.5). A disk failed in a software RAID-1 array. We powered off the system and added a two new disks to empty slots in the chassis (we couldn't simply replace ...
3
votes
3answers
420 views

Queue emails under linux

I have a slow distant mail relay server and a web application I'm using locks up when sending e-mails to that distant mail server, until the e-mail is sent. After the e-mail is sent the page comes ...
0
votes
2answers
326 views

linux useradd limited

How do I make a user account using useradd and give the user access to only the dir where he can just read write files. The user when login goes to this base dir I provide and cannot access anything ...
0
votes
2answers
875 views

Rsync Push files from linux to windoes. ssh issue - connection refused

For some reason I want to run a script to move files from Linux machine to Windows. I have installed cwRsync on my windows machine and able to connect to linux machine. When i execute following ...
6
votes
3answers
11k views

Pick the default network interface

I have a server with 2 interfaces. eth0 is 100 times faster than eth1. Though for some reason, every reboot, the default interface is picked at random. To make things more annoying, they both use the ...
1
vote
3answers
674 views

How can I prevent people from looking at a listing of files in parent directory if I haven't uploaded index.html?

I haven't uploaded index.html or index.php to my root directory. How can I prevent people from looking at a listing of files in parent directory? Also, is it possible for people to obtain a list ...
6
votes
3answers
433 views

Centralised Authentication - Recommendations?

I have a challenge presented before me, and that is to centralise authentication. Period. That's because me and my big mouth said I like LDAP, and anything can authenticate against it. I have pretty ...
-3
votes
1answer
789 views

Create subdomain from command line

I need to create some subdomains for a domain but I can't use cpanel to do that. The server that I'm working on just doesn't have it so don't suggest anything related to cpanel as I've seen on most ...
0
votes
1answer
53 views

unable to do switchover in postgresql9.0

I m trying to do switchover in postgresql. That means making standby server as master and master as standby server. But it's writing these lines in log file... 2011-06-24 09:15:45 ETC/GMT LOG: ...
-1
votes
2answers
136 views

Industry Standard DNS & Authentication?

I'm just curious as to what is considered industry standard when it comes to doing DNS and authentication on an environment with mainly linux machines? Do people use Windows DNS & Windows AD to ...
4
votes
2answers
1k views

Why can't I attach a screen session

I've got a screen session running which I would like to :quit, but I can't because when I try to re-attach, I get an error saying it can't open my terminal. I'm sure I could kill the daemon or ...
-3
votes
3answers
694 views

What's the short cut for fg in linux? [closed]

ctrl-z is the short cut for bg,what's for fg? Anyone knows this?
2
votes
2answers
1k views

How to use suse linux as a small router

I have 2 subnets 192.168.1.0/24 and 192.168.2.0/24 and one suse linux server. The linux has 2 interfaces, eth0 and eth1. I want to configure the suse linux server as a router so that I can make ...
0
votes
2answers
1k views

sendmail is timing out

sendmail is timing out on one of our CentOS servers. Here is my test [root@testserver ~]# echo "Subject: test" | /usr/lib/sendmail -v john@ourdomain.com Here is the output: john@ourdomain.com... ...
-1
votes
1answer
340 views

Tuning Ubuntu for Java

I'm developing a system in java that should be running 24/7 on a linux box. It is a soap consuming application and should be making about 15 calls per second. I'm aware of the premature optimization ...
1
vote
2answers
115 views

Why do I get an “No default printer” error when using “ssh lpr” but not when I ssh in?

I have a remote (linux) server that I ssh to from my (also linux) pc to print my stuff. Everything works if I do: ssh ${remote_server} (now in remote server) lpr readme.txt Or: ...
1
vote
3answers
4k views

Creating user accounts in Amazon EC2

I am putting together a test environment using Amazon's EC2 for me and some friends to collaborate on a project. I am not a server guy but I do know my way around a bash prompt and have done some ...
3
votes
2answers
812 views

Prevent a single host from consuming entire bandwidth?

We have a linux router providing internet connectivity to several PCs. It's currently using shorewall to help make the iptables setup easier. Is there a way I can set it such that any individual host ...
0
votes
1answer
311 views

Cannot query SNMP agent from hosts in the local network

I'm trying to configure SNMP (net-snmp) daemon on my OpenSuse box. Agent works on 192.168.1.3 address, and I'd like to send requests from other hosts in 192.168.1.0/24 network. My snmpd.conf file has ...
0
votes
1answer
73 views

Can i take dump of /proc/pid/exe

One of process invaded my system. I traced that process id, and wanted to dump /proc/pid/exe to that i can investigate later. Please advice how i take dump of /proc/pid/exe
2
votes
3answers
164 views

Looking for a host based network monitor solution

Hi all! Problem So, my hosting company has a network usage graph for my dedicated server. It seems that one day earlier this month, my network usage suddenly spiked with several hundred megabytes ...
6
votes
2answers
1k views

TCP SYN Flooding Detection Method in the Linux Kernel

When the Linux kernel detects SYN Flooding it logs a message like: possible SYN flooding on port 80. Sending cookies Does anyone know the exact method that the kernel uses to detect this?
3
votes
4answers
12k views

`Permission Denied` to CD into a directory even though permissions are correct

This is so wierd. Logged in to a Linux (RHEL) box as a user 'g', doing an ls -lah shows drwxrwxrwx 6 g g 4.0K Jun 23 13:27 . drwxrw-r-x 6 root root 4.0K Jun 23 13:15 .. -rwxrw---- 1 g g ...
1
vote
1answer
48 views

how to list all function of man page 9

I did "man copy_to_user" - It shows some kernel help text. It belongs to section 9. Now I would like to know ,whether is there way to display all function belongs to this section 9.
0
votes
3answers
3k views

Pinging Virtual IP for Linux HA cluster from a different subnet does not work

I have setup a Linux cluster with Corosync/Pacemaker, and the two cluster nodes are within the same subnet sharing a virtual IP. For machines within the same subnet, they can ping the virtual IP ...
0
votes
1answer
3k views

Correct way of using the --remove-files option with TAR

What is the correct way to use the --remove-files option when using tar? Is it... tar -cfvj --remove-files archive.tar.bz2 archive/ Or... tar -cfvj archive.tar.bz2 archive/ --remove-files
2
votes
1answer
641 views

How can I re-install live production server with minimal downtime?

I need to reinstall Ubuntu Server running on VMWare VPS. The simplest way would certainly be to make a fresh install from mini ISO. But it's a production server and I can't afford an hour or more of ...
2
votes
1answer
3k views

Is there a way to ignore the “fsck.ext3: Unable to resolve LABEL” error during the boot?

We have a file-cluster on servers with multiple disks, and we have created a software RAID1 over boot and / partitions, planning that if a single disk goes down, we still will be able to boot and ...
3
votes
1answer
71 views

Subversion Repo Mirroring

We are running subversion 1.1.4-2 on debian sarge and have many repository. A repo of a client needs to be mirrored with remote server. can anyone please help me how to do that. I am very new to ...
2
votes
1answer
216 views

Weird console problem in linux, usually right before OOM

So I've noticed this happen more than once. If I remember correctly, this usually happens right before OOM, and/or kernel panic that if you type into a tty and then try to backspace it, the same ...
2
votes
2answers
261 views

File Permissions on Ubuntu (umask)

I want to make all folders in a directory chmod to 755 and individual files to chmod 644. Is there a way I can use umask (e.g. umask 022) to specify these permissions in the future? Thanks in ...
0
votes
1answer
218 views

Linux, PHP, and mysqlnd?

Looks like most common distros build their PHP packages without mysqlnd, instead relying on the old libmysql library. Are there any distros that do include the new mysql native driver even as an ...
2
votes
1answer
436 views

Managing logs for several dynamic instance on Amazon

I have this problem or rather an itch that I could really use help with. I use autoscale and several instances on Amazon. Problem is I have all these logs PHP, Apache, system but also my web app ...
0
votes
2answers
1k views

Cannot install postgres due to missing directory

On Ubuntu Natty when trying to install postgres I get the following error /var/lib/postgresql/8.4/main is not accessible or does not exist How can I fix this?
2
votes
1answer
155 views

SSH: How to disable password authentication?

I created a pub/pri key combo with putty. In putty I can set where the private key is, and login that way. BUT if I dont set my pri key , the server still asks for my password and lets me login. How ...
2
votes
2answers
51 views

How to restrict access to a file on a server to specified IPs

I have a file on my apache server which i do not want the public to access. I have a couple of IP addresses that will be needing the file, hence i want to grant them access to the file. How can i go ...
0
votes
1answer
1k views

memcached install issues with lib event on server

I've installed libevent on my server in the directory root/data/ and have i'm about to install memcached with ./configure –with-lib-event=/data/; make; make install However, after running a bit I ...
1
vote
2answers
187 views

RedHat iptables firewall entry

Could someone shed some light on what the current iptables entry on my RedHat machine means? -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited It is the last line in my ...
2
votes
3answers
571 views

Is it possible to create and setup a virtual machine from command line?

I currently have a dedicated server running Gentoo Linux with only an SSH access and I was wondering if it's possible to create and setup a virtual machine from command line using VirtualBox ? (Like ...
0
votes
3answers
2k views

iptables to modify all source ports to 1 single source port

How can I route all outgoing packets from all applications from their respective source ports to port x so they all look as if they come from port x. Is it possible ? I do not know much about ...
0
votes
1answer
32 views

add additional mysql master

I currently have 2 mysql servers running, 1 as master and 1 as slave as in the mysql manual http://dev.mysql.com/doc/refman/5.0/en/replication-howto.html master->slave What I want to do is add a new ...
0
votes
2answers
861 views

Force program to use only specific local port

For example: Firefox uses random local port numbers to connect to websites. (Dozens of different local ports can be used at any given time.) Is it possible to force a program to only use specific ...
0
votes
1answer
516 views

Create a new route for a bond alias

I have an IP address in my linux box 1.2.3.4 that is eth0:1. Alias of eth0. I want to create a route from that IP to an external 5.6.7.8 IP in another box. How can I do it? Do I need netmask and ...
-1
votes
1answer
41 views

mysql on ubunto 4 is not running and is not remotely accessible

Currently i installed ubunot on ubunto 4.4, and using following commands i can see mysql, mysqld running ps -ef | grep mysql ps -ef | grep mysqld but when I run, netstat i don't see mysql and ...
0
votes
1answer
841 views

mail to alert when process start or stop

I have a requirement to raise alert when a particular process(suppose abc) start or stop. One of idea is to write a script that monitor process , Can you suggest any better idea. I can't install any ...
2
votes
1answer
9k views

How to change receive queue length of a network interface in Linux?

I have a server running Linux (kernel 2.6.18) which is dropping incoming network packets drastically. I thought it is suffering from this because the length of the receive queue of that interface is ...
1
vote
1answer
667 views

How to backup bugzilla

The server is bit old running on Debian sarge 3.1. What are the important things to backup while making a backup of bugzilla? Please guide me how to process with it.