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

learn more… | top users | synonyms (1)

2
votes
2answers
2k views

Correct way to give elevated privileges to mono application?

I have a mono application (on Ubuntu) that tails /var/log/messages and picks up USB insertions, and if that device is on a certain port, needs to partition, format, and mount it. Obviously this ...
1
vote
0answers
668 views

Is this firewall for openvpn tunnel ok?

Here is the script I want to use to setup secure firewall for openvpn tunnel in which all my internet traffic goes through the vpn. I have a couple of questions below: #!/bin/sh # # iptables example ...
1
vote
2answers
512 views

Java process eating up all the “low memory” on my Xen VPS

This is on Centos 5, Linux 2.6.33.3-xenU #1 SMP Wed May 5 00:49:22 UTC 2010 i686 i686 i386 GNU/Linux I have a java server process which I normally run with the following configuration -Xmx700m ...
1
vote
3answers
1k views

Running a Linux terminal server (multi-user) which is compatible with Microsoft Terminal Services Client

My situation is that I have a VPS that I have recently purchased just to tinker with (through Linode, if that matters) and I would like to setup a 2-3 user Terminal Server compatible with the windows ...
1
vote
2answers
12k views

The Linux SCSI layer does not automatically remap LUN assignments

I've got some iSCSI/FC storage, currently using only iSCSI. I have in general no problems with mounting LUNs - under Linux and under Windows. Unfortunately - when I add LUN for my Linux iSCSI ...
1
vote
2answers
1k views

Tomcat Server won't respond on port 80

I'm standing up a TeamCity server that's running it's own embedded Tomcat instance on Amazon EC2. I have successfully gotten the instance to respond on port 8111 or 8080, but when I try to change the ...
2
votes
1answer
4k views

Online EXT4 on LVM resize

Have such partitions/volumes/mountpoints: =$ LC_ALL=C df -hP | column -t Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg0-rootlv 19G 854M 17G 5% / ...
4
votes
3answers
20k views

How to display used devices/free space when using LVM?

I have following situation: =$ LC_ALL=C df -hP | column -t Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg0-rootlv 19G 854M 17G 5% / /dev/mapper/vg0-homelv 19G ...
0
votes
2answers
2k views

Email: Remote host address is the local host

I try to send an e-mail to my Ubuntu server. After waiting a long wail, nothing happens. This is what I found in my log files: 2011-04-22 15:23:01 1QDGK5-0003BI-On remote host address is the local ...
0
votes
1answer
116 views

On RHEL 6 or Fedora 14 is it possible to share or take over a graphical session without interrupting processes?

What I'm trying to do is come up with a way for a user to take over another users local session on a linux box. For example userA logs into a RHEL desktop and starts a process that lasts several ...
1
vote
2answers
149 views

Installing software from RPMForge repo

I have a centos 5 x86 vps and I want to install openvpn in the easiest and fastest way possible. So I decided to use a repo. The rpmforge repo has openvpn. As you can see, that link shows that there ...
1
vote
2answers
2k views

set headless ubuntu linux display resolution

We bought a small box as our server and we installed ubuntu linux. We don't plug any display to it, instead, we remote desktop/vnc to the server (using TightVNC). However, the display by default is ...
5
votes
4answers
3k views

rsync to NAS copies everything every time

I run Ubuntu Linux and use backup script that copies things over using rsync: rsync -rc /home/user/source /media/nas/destination or rsync -r /home/user/source /media/nas/destination However - it ...
1
vote
4answers
939 views

remote monitoring of linux logs

I would like to monitor syslog logs on few dozens of linux servers. In ideal world I'd prefer pull method where central monitoring server collects once per day logs from all machines via ssh, applies ...
3
votes
1answer
298 views

SysRq, task list and missing processes

I've been troubleshooting a pretty difficult issue on Linux where a JVM appears to hang. As part of the investigation, I've been trying to capture the list of current tasks and their state using one ...
0
votes
1answer
173 views

Running a script as root at bootup

I have a simple script to help me do some power saving: #!/bin/bash echo 1 > /sys/module/snd_hda_intel/parameters/power_save echo min_power > ...
3
votes
1answer
1k views

How is the cgroup pam module configured?

Linux has a PAM module that manipulates cgroups. How is it configured (what options does it support?)
2
votes
3answers
2k views

real time traffic monitoring with rrd

Is there any way to monitor bandwidth in visualization form with RRDTool?
1
vote
3answers
319 views

ISP like Linux WAN router/gateway

My ISP has installed a fiber link at the place where I work. It has provided an ethernet WAN link to my office and has given a set of static ip's on 187.xxx.xxx.224/29 network. I need to setup a linux ...
1
vote
1answer
500 views

How do I remove an A record with the Plesk command line utility?

I'm trying the following /usr/local/psa/bin/dns -d domain.tld -a sub.domain.tld -ip 127.0.0.1 Getting the error: Unable del record in DNS server: unable find DNS record But in the zone file I ...
0
votes
1answer
115 views

Best practices for software location in building custom AMIs

I've been experimenting with AWS, and learning about AMIs, how they run, and how to build them. I'm curious if anyone here has any thoughts on the following: Is it better to build an AMI with all ...
0
votes
1answer
361 views

copy Linux server from one box to another [duplicate]

Possible Duplicate: Clone a working Linux server We have a Linux CentOS server set up to server a php/mysql web application. We would like to move this to a new larger server. It appears ...
0
votes
2answers
858 views

Server overloaded with log messages: “tty_release_dev: pts0: read/write wait queue active!”

In the logs, I have this (extract from the full kernel messages logges at 06:01:14): Apr 21 06:01:14 ip-10-49-109-107 kernel: [233185.863038] BUG: unable to handle kernel NULL pointer dereference at ...
1
vote
3answers
86 views

Passing file contents vs file name with commands

I have a program that normally takes a file name as input for a file to read from but instead, for scripting purposes , I want to pass the file contents as a parameter. I cannot re write the program ...
0
votes
1answer
328 views

unzip into subdirectory in Linux

I have a zip file, and would like to unzip a subdirectory of it to another subdirectory, overwriting all existing files. How can this be done in Linux? Example: The zip file hi.zip has a "me" folder ...
3
votes
1answer
912 views

/var/opt/ vs /var/lib

I can't decipher the deciding factor on where to place "variable program data" for an /opt installed package. On one hand the FHS says to place all variable data that dictates a program's state into ...
10
votes
4answers
4k views

Hard drive read errors that… stop?

My story starts out quite simply. I have a light-duty server, running Arch Linux, which stores most of its data on a RAID-1 composed of two SATA drives. It was working without any problems for about ...
1
vote
3answers
2k views

Linux Backing up /var

Does anybody have a good solution for backing up /var on a live system? All the recommendations I have seen so far have not taken into account the fact that /var holds live data and that restoring a ...
1
vote
1answer
682 views

Ubuntu 10.10 apt-get

Alright, I've been having this issue for a while now, and I've done a ton of googling for it but nothing has helped fix my issue yet. I've tried a bunch of things, some of them including, making sure ...
1
vote
2answers
2k views

Unusual traffic to my webserver, asking for myinfo.any-request-allowed.com

Running apache on a debian server, I have been starting to monitor logs, and have found some odd occurrences. Does anyone know what this any-request-allowed.com site is trying to do... and how can I ...
1
vote
1answer
255 views

snmp get value from a file

I've a script getting value in form of 33333 or 23939 etc. i.e. ./script output: 24310 Is there any possibility that i could monitor in nms over snmp by using the above value. If the value is greater ...
0
votes
1answer
113 views

Server load average soaring+network usage 5X up on production server, need quick help

My main app server is experiencing unprecedented peak in network usage and load average. The server is on Ec2/Scalr running php+memcache the graphs shows this kind of load has never happened before ...
41
votes
3answers
14k views

.profile vs. .bash_profile vs. .bashrc

what are the functional differences between these guys?
0
votes
1answer
66 views

suse linux ftp maximum number of files

How do I change the maximum number of files allowed to be listed/transferred... on suse linux? both client and server are suse linux machines.
2
votes
3answers
2k views

How to undo an mdadm RAID 1 without losing data

I have a two disk, RAID 1 set up from mdadm. Long story short, turns out this server has an actual RAID controller, so a hardware raid would be more preferable than the software raid. In addition, the ...
1
vote
2answers
973 views

same users and accounts on different machines using rsync?

I have two machines, same hardware (one should be for backup), same software (red hat 4). I need to know how to sync all the users used for ftp and email accounts. It's enough to copy the /etc/passw ...
2
votes
1answer
4k views

On Linux, how can I tell how many ephemeral ports are left available?

Is there a method in Linux to check how many ephemeral ports are left available? I occasionally see "Address already in use" errors as a result of running out of ephemeral ports. A machine reboot will ...
-1
votes
1answer
1k views

bash script to rename (mv) a file on a remote machine in linux

I would like to have a script rename a remote file (with ssh?). I'm not sure how to do it.
0
votes
4answers
81 views

Linux server distro where default server packages customized the least?

I'm using Ubuntu server right now (for local development) and noticed that some Ubuntu packages like apache have their config files... um... scattered. While official Apache docs primarily refer to ...
4
votes
2answers
2k views

Cannot mount /dev/sdc1 on Debian 5.0, special device /dev/sdc1 doesn't exist

I'm trying to fix an odd problem I'm having that I've never seen or heard of before. I have a disk, /dev/sdc and I'm trying to mount it, but cannot. sudo mount /dev/sdc1 /mnt mount: you must ...
2
votes
3answers
368 views

Reverse SSH tunnel from Internet-less server

I have the following scenario: Win laptop --> Cisco VPN --> SSH --> Internet-less linux server Now, I need to install node.js on that server but it is a pain to do so without an Internet ...
1
vote
3answers
6k views

How to write to a tape using hardware compression on Linux?

I have an LTO-4 tape connected to a Linux host and Linux creates all the usual devices for this tape as follows: /dev/nst0 /dev/nst0a /dev/nst0l /dev/nst0m /dev/st0 /dev/st0a /dev/st0l /dev/st0m I ...
0
votes
1answer
206 views

OpenVPN bridging

I was wondering, if I am setting up an Linux OpenVPN server using ethernet bridging rather than a routed tunnel. Do I still need to push a route to the client that is connecting to me? I am setting ...
2
votes
1answer
274 views

Guest Access in QEMU-KVM

I am having trouble in accessing my Guest OS running on QEMU-KVM. However, I noticed that the Guest OS is capable of accessing Host OS easily thru telnet; basically every IP address appear in ifconfig ...
0
votes
1answer
2k views

How to redirect traffic on port 80 to Tomcat port 8080 whilst still allowing the server to send/receive on port 80

I have a web application running on a Linux box using Tomcat6. I have setup port forwarding so that any requests on port 80 get redirected to port 8080 which works fine. The problem I have is that ...
0
votes
2answers
731 views

How do I get Busybox Linux/ESXi 4U1 to recognized expanded RAID 5 disk array?

I'm in the process of upgrading a pair of physical servers to 3 virtual machines. The 2 physical boxes (HP DL380 G5 with Smart Array P400 disk controller) will run VMware ESXi 4 update 1. Each ...
0
votes
1answer
268 views

ionice or chrt for Bonnie benchmark

I am running Bonnie benchmark on an embedded device and I am getting variable results for every run. I am contemplating using ionice and / or chrt to get around it. Can you suggest which option is ...
0
votes
2answers
241 views

How to upgrade apache, php, mysql

I'm looking to update our web server, and my experience with updating is slim. I have done clean installs of apache, php, and mysql, but this will be my first time upgrading. Hoping someone can give ...
0
votes
1answer
1k views

How to quickly configure a pppd server on “linux”?

Purpose: boot an Ubuntu 10.10 LiveCD, and run a pppoe server on it... I thought it's just like this: 1) I create a user 2) I run "pppd require-pap" ...but noooo why? I'm trying to run pppd but it ...
3
votes
1answer
420 views

Mixing NFSv4 all_squash and sshfs access

I have a problem with my server. In my internal network I hand out several network shares using NFSv4 from a Debian Squeeze server to my clients. These shares use the all_squash option because I want ...