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

learn more… | top users | synonyms (3)

2
votes
1answer
3k views

How to migrate a running KVM (with full disk copy) to another node?

I'm doing tests on KVM, and I'd like to see if I can make a hot migration, I mean the virtual machine won't stop running during the migration (but a few seconds of freeze is ok). I use a small ...
1
vote
2answers
296 views

LAMP vs Windows Server 2008 scenario

I see there is a lot of things online about this, but wanted an answer specific to this scenario. I can think of a few issues with this, but wanted to ask everyone to get the whole picture. Can ...
5
votes
1answer
414 views

Where is the best place for LUKS to sit in a RAID/LVM/LUKS stack?

I am implementing a server storage setup making use of software RAID, LVM and LUKS. I can think of three combinations this configuration could take: RAID, LVM, LUKS RAID, LUKS, LVM LUKS, RAID, LVM ...
0
votes
1answer
3k views

How to change library default dir for gcc or add another path?

Related topic is here Tried to link some files to /lib like this [/opt/lib] # ln -s libncurses.so.5.7 /lib/ [/opt/lib] # ln -s libncursesw.so.5.7 /lib/ Compiler still can't find any ncurses ...
1
vote
3answers
3k views

hosts.deny not blocking ip addresses

I have the following in my /etc/hosts.deny file # # hosts.deny This file describes the names of the hosts which are # *not* allowed to use the local INET services, as decided # by the ...
3
votes
3answers
3k views

Linux - Best file system for /var/log partition? [closed]

I am under Debian Squeeze 6.0. What is the best file system for the /var/log partition, and why ?
4
votes
7answers
3k views

Linux tool/command to check file system performance

What is the simplest way to check read/write performance to a specific location (e.g. a mounted iSCSI device). I suspect I can't use hdparm because that's lower level. Am I right?
0
votes
1answer
650 views

Logwatch not showing FTP (Proftpd) success or failed logins, only shows uploades/downloads

Server: CentOS 5.2, Proftpd 1.3.3d, Logwatch 7.3-8.el5.noarch (updated with yum). I've just setup Logwatch and got the email output, it does show some FTP info for example it shows uploaded and ...
0
votes
1answer
117 views

Declare my own script to execute file

I have two files, the first is 'ax': #!/usr/bin/env zsh print "Params: $*" cat $* And another one 'tst': #! /home/me/ax A B C When I am in sh/csh/bash shell: > ./tst ./tst: line 2: A: ...
0
votes
1answer
361 views

/var/log/secure user activity. also, httpd can not start without two users

i found some strange informations in /var/log/secure file: Feb 10 02:02:04 server2364 usermod[30750]: unlock user `username1' password Feb 10 02:02:04 server2364 usermod[30811]: lock user `username2' ...
7
votes
2answers
7k views

Using rsync's archive flag without copying symbolic links

As stated in rsync's man page, the -a (archive) switch is equivalent to -rlptgoD. However, i have a situation where i don't want symbolic links retained. Is there any way to keep using the -a switch ...
1
vote
1answer
4k views

MySQL open files limit

This question is similar to set open_files_limit, but there was no good answer. I need to increase my table_open_cache, but first I need to increase the open_files_limit. I set the option in ...
0
votes
1answer
156 views

debian-sys-maint user in mysql?

i just installed mysql on debian 6. With phpmyadmin i noticed there are already 4 mysql user: debian-sys-maint (localhost) root (127.0.0.1) root (localhost) root ...
1
vote
2answers
371 views

difference between mysql and mysqldump

I am going to importi a database.. (db.sql) I will use something like: mysql -u root -p db < db.sql Can you tell me what the difference is between this and mysqldump? Thanks
4
votes
2answers
137 views

how do I find where apt-get installs files belonging to a package

I installed a package with apt-get, and now I need to locate where these files have been placed. I tried: sudo apt-cache show <package> and, sudo find / -name <package> but it did ...
0
votes
1answer
156 views

SCEP routing using iptables

Does anyone know about SCEP routing table on linux? I would like to know if it is possible using software routing to scep requests go to another machine then usually goes using 443 or 80? tks
2
votes
1answer
1k views

Iptables - Forwarding + Masquerading

I am new to iptables and trying to set my linux server as a gateway for my other computers.So naturally I am playing with iptables and needed some help My server has 2 NIC cards, eth0(WAN) and ...
0
votes
1answer
200 views

mysql version with apt-get too old?

i just installed mysql with apt-get: apt-get install apache2-mpm-prefork libapache2-mod-php5 mysql-server php5-mysql But phpMyadmin says: Version MySQL: 5.1.49-3 isn't that a bit too old ...
3
votes
4answers
16k views

HP Smart Array; How to safely remove a physcial drive with SMART predictive failure from array so it can be replaced?

hpacucli controller slot=1 ld 1 show detail Smart Array P400 in Slot 1 array A Logical Drive: 1 Size: 273.3 GB Fault Tolerance: RAID 1+0 Heads: 255 ...
0
votes
2answers
441 views

Help with SED command to replace text in several files

EDIT: I found the solution. This command works, in case someone finds it useful. The i.bak modifier makes a backup of every changed file. find /pathoffilestochange -name "*.php" | xargs sed ...
0
votes
2answers
165 views

Default virtualhost setting for apache2?

in sites-available/default there is some default configuration.. like: ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> [...] and Alias /doc/ "/usr/share/doc/" ...
3
votes
1answer
1k views

XFS I/O Error accessing Logical Block 0 of an LVM snapshot: is the drive or snapshot bad?

I have OpenSuSE 11.3 running as a Xen host on a machine with 8x296GB Cheetah 15k.6 SAS disks, 4 of which are mirrored, the other 4 striped. I'm using LVM to manage the disks and they are formatted ...
0
votes
1answer
86 views

What permissions are needed to ftp to Centos server [closed]

What permissions are needed to ftp to Centos server?
1
vote
2answers
2k views

Linux - How to completely clean up a software installation

I am running under Debian and I have recently upgraded to Squeeze. Since then, I am having so much problems with Webmin. So I have decided to remove it using: apt-get remove webmin And then I ...
1
vote
2answers
998 views

psybnc on nas: ncurses problem

Trying to get compile psybnc on NAS. ipkg is default package manager in here. I've installed ncurses already, it's in /opt/lib (libncurses.so) [\w] # ls /opt/lib | grep ncurses libncurses.so ...
2
votes
1answer
453 views

unable to install neo4j-python on jython2.5.1 : keyError 'project.artifactId'

I have this error: KeyError: 'project.artifactId' admmarc@fbmgrid01:~/neo4j-server/neo4j-python$ ../jython2.5.1/jython setup.py install Traceback (most recent call last): File "setup.py", line 146, ...
0
votes
1answer
115 views

Which Linux tool to do a full backup of pc on my LAN running windows?

I would like to backup my small home LAN computers (5 of them) using my ubuntu server (but I can change distro if needed). I've read about backuppc but I don't understand if I can fully backup a pc ...
1
vote
1answer
3k views

Bringing the xenbr0 interface up on XEN under Ubuntu 8.04

I installed XEN on Ubuntu 8.04 using this tutorial but after I reboot with the XEN kernel, I don't have xenbr0 device. I see that network-bridge script runs and it creates peth0 device, but not ...
0
votes
3answers
582 views

Extreme fine tuning MySQL performance wise on a Linux server

I would like to know all of the key points where MySQL can be fine tuned performance wise on a Linux server through my.cnf or through other methods, libraries and tools. Tips and tricks and shady ...
0
votes
1answer
134 views

Strange TCP connection

Machine is RHEL 5.3 (kernel 2.6.18). Some times I notice in netstat that my application has connection, when Local Address and Foreign Address are same. How it's possible? Update 1 I catch it on ...
1
vote
3answers
5k views

which Linux iSCSI target support SCSI 3 Persistant reservations?

looking for Linux iSCSI target software that support SCSI-3 persistent reservations? isci enterprise target tgt: scsi-target-utils open-iscsi
4
votes
4answers
6k views

How do I use crontab to start a screen session?

I want to create a crontab entry so that it starts screen, starts a gameserver and detaches. This is for in case the server is rebooted and I want it to automatically start this for me. 0 0 0 0 0 ...
0
votes
2answers
169 views

apt-get for installing lamp

i am on a debian 6 at 64bit. I need to install LAMP. apt-get update apt-get upgrade apt-get install apache2-mpm-prefork libapache2-mod-php5 mysql-server php5-mysql php5-gd are those command ...
5
votes
6answers
2k views

Automating and deploying new linux servers

I'm in the process of developing a method to automate new virtual machines into my environment. 90% of our machines are virtual but the process is similar for both physical and vmware based images. ...
5
votes
4answers
12k views

Installing apache2 with apt-get, apache2-mpm-prefork?

I have a debian 6 at 64bit. I want install lamp. On some website i find: apt-get install apache2 on some other: apt-get install apache-mpm-prefork Which one should I choose? Thanks
2
votes
6answers
6k views

create an image of currently linux installed with ssh?

I just bought a dedicated server with debian 6. I will install the classic LAMP. Is there a way to make an image of the hard disk so in case of any problems I can restore this image? Thanks
2
votes
2answers
2k views

Deploy Jetty as port 80 daemon on Linux

I'm curious what techniques you Linux admin gods are using to manage your Jetty deployments. I come from a Windows Server background so I'm still getting used to all of this. I've been looking for a ...
3
votes
3answers
269 views

Transparantly make multiple web applications available at a single address

I have multiple web applications running on their own http server, e.g. a ruby/rails application on port 8080 and a python/cherrypy application on 8081. Is it possible to make these transparently ...
4
votes
7answers
2k views

I have a perl script that is supposed to run indefinitely. It's being killed… how do I determine who or what kills it?

I run the perl script in screen (I can log in and check debug output). Nothing in the logic of the script should be capable of killing it quite this dead. I'm one of only two people with access to ...
1
vote
2answers
132 views

Is there a problem with having massive amounts of self-mounts?

I have a configuration in which I want to use a huge amount (1000-10000) of self mounts (mount --bind). My filesystem is ext4 in RAID 1 with two 400GB HDDs. Basically, what I am trying to do is ...
4
votes
6answers
10k views

Linux: How to know where a process was started and how it was started?

I was checking a Linux box and found a perl process running and taking a good share of cpu usage. With top, i could only perl in process name. When i pressed c, to view the command-line, it showed ...
2
votes
1answer
2k views

Set root password in Amazon EC2

I am trying to set the root password on Amazon EC2 (CentOS machine). When I try passwd, I get this: [root@domU-11-33-39-00-85-21 ~]# passwd Changing password for user root. passwd: Authentication ...
3
votes
3answers
23k views

mount: cannot remount block device /dev/sda5 read-write, is write-protected

So, this is it. Everything is working as usual except the disk is read only and dont want to change back. ^_^! thanks. root@NODE02:/tmp# df . Filesystem 1K-blocks Used Available Use% ...
1
vote
1answer
615 views

is it safe to install Debian 6 on a dedicated server? (LAMP)

Is it safe to install Debian 6 on a dedicated server? (LAMP) My hosting company gives the choice to install it ( Debian 6, 64-bit "squeeze" ALPHA ) They said it's wrote ALPHA because it's not a ...
1
vote
2answers
303 views

debian package manager.. php version: 5.3.3-7

I installed apache2 and php with apt-get. But if i check which version did it install on packet manager it's 5.3.3-7 Can you tell me what 3-7 mean? Last version of php is 5.3.5. Thanks
1
vote
2answers
179 views

backing up my linux server to my windows machine

I have a linux server. several days ago one of HDDs attached to the server crashed and i was very lucky not to loose anything important cause that was my backup HDD. Now i'm looking for a solution to ...
3
votes
4answers
973 views

Is it possible to get “find -exec” expand backticks for each file found?

Here's a command that works fine: echo Blah: `stat -c %a .` Is it possible to get find -exec to execute this same thing for every file found, with {} in place of .?
1
vote
1answer
668 views

Is linux kernel 2.6.37 80% slower than 2.6.34 using memory & threads?

If I run the command time perl -e 'use threads; $T=12 ; foreach (1..$T) { $thr[$i++] = threads->create(sub { printf "I am thread %s\n", threads->tid(); foreach (1..9e6) { push(@a, ...
1
vote
5answers
414 views

Permament iptables port forwarding?

I have to set a rule for making my web server (which runs on port 7000) accessible on port 80: ptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 7000 This works perfectly ...
0
votes
3answers
1k views

iptables performance optimization

Iptables can be optimized by putting the mostly used rule on the top such as the known related rule that matches after connection establishment. Also, optimization can be done by using jumps to avoid ...