Debian is a popular and influential GNU/Linux distribution. Questions here should generally be about Debian Server.

learn more… | top users | synonyms

6
votes
5answers
6k views

Find (and kill) old processes

Basically I need to be able scan the process tree and find processes that match a certain name and started running more than a week a go. Once I have them, I need to kill them. All the processes are ...
6
votes
2answers
2k views

Debian 'ignores' /etc/network/if-pre-up.d/iptables

I want my iptables rules to automatically be loaded on startup. According to the wiki on Debian this can be done by placing a script with the name iptables in /etc/network/if-pre-up.d/ So I did, this ...
6
votes
1answer
2k views

Debian SSH - Resizing terminal does not register with bash

We recently reinstalled our server due to a disk failure, and now we're having an issue with resizing terminals. We installed Debian 6.0.6. Symptoms When you resize a terminal, no ncurses-based apps ...
6
votes
1answer
2k views

How Do You Non-Destructively Check if grub2 is Installed in The Boot Sector or is Being Chain-Loaded by grub1, Without Rebooting?

We're upgrading several systems from Debian Lenny to Squeeze and I'd like to ensure that I haven't missed any grub2 installations. By default, Squeeze chain-boot-loads from grub1 and you have to run ...
6
votes
2answers
173 views

How to *add* rules in local fail2ban filter definition?

I have installed fail2ban as packaged by Debian on a server under my control. Since I have some failregexes from before, I'm putting those into the local filter definition file so they will be ...
6
votes
1answer
520 views

How can I apt-pin stable?

I changed my mind some time after install, and would prefer stable to testing for this particular system. Unfortunately, I currently have packages at old testing versions. I need to force a downgrade ...
6
votes
1answer
814 views

Why won't this apt pinning stick?

I'd like to prefer the installation in nginx from squeeze-backports over that in mainline stable. I've got the backports repository enabled. I have this preference file: # ...
6
votes
1answer
3k views

Why do I have so many apache2 processes?

I have a Debian 6.0.1 machine running GNU/kFreeBSD 8.1-1-amd64 and Apache. I installed apache2-mpm-worker using apt-get, and my apache2.conf file contains: <IfModule mpm_prefork_module> ...
6
votes
2answers
686 views

Setting up a forwarding-only email server

All I want to do is install postfix, and forward emails. I don't need anything to stay on my server. This is giving me hell. I tried the best I could, but postfix is denying all relays. What I want ...
6
votes
2answers
2k views

Do dell perc 6i cards support online expansion of a raid 1 array when both drives have been replaced with larger ones?

Do Dell perc 6i cards support online expansion of a raid 1 array when both drives have been replaced with larger ones? For example the the Logical Drive 0 (LDO) has two member 73gb drives. We have ...
6
votes
3answers
560 views

Monit failing to connect to Dovecot over SSL IMAP

I run Monit to keep check on processes on a Debian server. It's working as normal for all other services (Apache SSL, Postfix, SSH etc.) but Monit's checks on Dovecot are failing repeatedly. I think ...
6
votes
1answer
139 views

Minimising downtime during apt-get upgrades

Running apt-get update, there are a few hundred minor patches to apply. APT decides to stop postgres from running, spend 20 minutes applying all the patches, then starts postgres at the end. If I ...
6
votes
1answer
883 views

System Upgrade introduced an unusual mysql privilege error

After a box running mysql was upgraded a backup script is returning an error for databases with Innodb tables. A system running Debian 5 (Lenny) has been upgraded to Debian 6 (Squeeze), and the ...
6
votes
2answers
2k views

How to get Linux udev to play nice with Hyper-V IC synthetic network driver

I managed to get the Debian 6.0.1 to work with the Microsoft Hyper-V synthetic drivers, thanks to this question. However, if I don't remove the entry for the synthetic ethernet card from ...
6
votes
2answers
5k views

Best sysctl.conf configuration for high load - extremely busy content streaming server

What is the best sysctl.conf configuration for a high load, extremely busy content streaming server ? The server fetches the content from remote servers like amazon, s3, etc. then uses php to ...
6
votes
3answers
2k views

Compile a debian package for amd64 on a i386 machine?

I have a i386 ubuntu hardy machine, and an amd64 ubuntu hardy machine. I want to compile a debian package (a.k.a. deb) for the amd64 machine on the i386 (because I don't have enough memory to compile ...
6
votes
1answer
1k views

fibre channel debian problem

I have a QLogic Fibre Channel card installed in a Debian box (Lenny), and after some tiffs with the firmware, I managed to get the operating system to recognize the card (DKMS driver, and the ...
6
votes
1answer
780 views

Debian, 6rd tunnel, and connection troubles

Long story short I am having issues with IPv6 using a 6rd tunnel with my ISP, charter business. They offer a 6rd tunnel that I think I have properly set up, but the server doesn’t reply to every ipv6 ...
6
votes
3answers
659 views

Timing issues with OpenVPN and NFS mounts (Debian Squeeze)

I'm trying to mount NFS filesystems over an OpenVPN link on Debian Squeeze. The problem is that the default layout of init scripts and such tries to mount the NFS filesystems before bringing up the ...
6
votes
1answer
907 views

Time too quick in debian, 72 minutes pass in system date in one real world second

Having trouble with system date/time in GNU/Linux/Debian: Time goes too fast for date, time, cron. The sleep command works fine, file modification times are correct. The issue explained via commands: ...
5
votes
3answers
13k views

How to force Linux to reacquire a new IP address from the DHCP server?

The environment is Debian, although the answer will apply to all distros.
5
votes
8answers
4k views

How do I add outbound only mail service for local tools to a 'minimal' debian system?

I have several servers running applications on debian. Each has the packages it requires for the application, and no more. Currently, none have mail sending capability. However, I would like the ...
5
votes
6answers
3k views

What is the perfect setup for a small Linux virtual server?

I have my own email server, and it serves a couple of dozen users. I need to replace it right now, and I want the replacement to be a virtual server image running under a hypervisor. My plans for ...
5
votes
5answers
21k views

How to list all physically installed Network Cards (Debian)?

My "Dedicated Server" should have two NICs installed but I can only find one. My Question: What other commands and methods are available to test how many network cards are installed on my server ...
5
votes
5answers
2k views

Disable/Remove Apt(-get)

Is there anyway to disable/remove apt-get on a debian based server. I'd prefer to use aptitude, and don't want the other users to be installing packages with apt-get, to avoid package/database issues. ...
5
votes
2answers
662 views

Load Average above 20 for single core vps on debian

OS: Debian 6.0 RAM:3072 M, CPU:single core. top: top - 08:56:43 up 21 days, 12:37, 1 user, load average: 28.38, 22.48, 15.95 Tasks: 8 total, 1 running, 7 sleeping, 0 stopped, 0 zombie ...
5
votes
2answers
7k views

How to completely remove a package in Debian?

I tried to use this: aptitude remove denyhosts And it seemed successfully but after a reboot after I use: ps aux | grep "denyhosts" I see denyhosts is still loaded after startup. So what am I ...
5
votes
3answers
2k views

How can I uprade my software RAID1 set of drives?

I've got two 600GB drives in a software RAID1 setup on a physical Debian server. I want to be able to upgrade the capacity of the server by cloning the drives to a matching pair of 2TB drives. I can ...
5
votes
4answers
4k views

Check integrity of Debian system after possible rootkit?

I have a system that was possibly rootkited (the IRC bot was installed and +ai attributes were set on /usr/bin, /usr/sbin, /bin, /sbin). The IRC bots were deleted and system was upgraded to 5.0.4 from ...
5
votes
2answers
641 views

Low memory application priority

I'm running Debian on a machine that has limited memory and no option to add swap space. The machine serves as a web and database server. The problem I'm seeing is that when multiple web requests come ...
5
votes
4answers
433 views

“The Right Way” to enable modules / virtualhosts in Apache

Debian systems (and perhaps others) have the following layout in /etc/apache2/ mods-available/ mods-enables/ sites-available/ sites-enabled/ The default setup has a tonne of files in both ...
5
votes
4answers
13k 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
5
votes
2answers
1k views

How to version lock packages in Ubuntu? [duplicate]

On CentOS exists the yum versionlock option, where you can lock a package to a specific version, so it is never upgraded past that. I would like that puppet-server-2.7.19-1 puppet-2.7.19-1 stays ...
5
votes
2answers
3k views

SSH from PuTTy to Debian “authorized_keys is not a regular file” Error

I cannot connect from my Windows 7 computer using PuTTy to a newly configured Debian Squeeze server using SSH RSA key authentication. I get this error when running SSH in debug mode: User myuser ...
5
votes
3answers
302 views

Can I place my script in /usr/bin?

I wrote a small bash script for starting, stopping and restarting my java applications and I want to make it available to all users so they could run it. Should I just place it in /usr/bin to do that? ...
5
votes
2answers
3k views

Slab uses 88Gb of 128Gb available. What could cause this?

We run a debian 2.6.26-2-amd64 x86_64 GNU/Linux on a server with 128 Gb. Recently it our available memory became rather low. Looking at the /proc/meminfo showed that the Slab was using 88Gb, which is ...
5
votes
2answers
2k views

push commits to git (gitolite) repository messes up file permissions (no more trac access)

already posted here so feel free to answer there. everytime i commit/push something to the git server the file permissions change (all added/edited files in the repository have no read and execute ...
5
votes
4answers
3k views

mysql connection is slow (5seconds)

After building my webapp on a first boot i create 2 connections to mysql on debian then 1-2 (r/w) for every page after that. The connection consistently take 5.2 seconds to connect. Debian is in a VM ...
5
votes
6answers
5k views

Why would anacron not be running?

I have a Ubuntu system that has anacron installed. However I'm pretty sure it's not running. It's not running the commands in /etc/cron.daily to rotate the syslog files (I'm using sysklog, which has ...
5
votes
2answers
2k views

init script is not getting installed to /etc/init.d

I have a source package where I want to add a simple init.d script. I know dh_installinit should help : when I run it, it creates examples of postrm, prerm, postinstall to perform an update-rc.d ...
5
votes
5answers
644 views

Use or don't use virtualization for Linux Webserver?

I maintain the servers for a big webproject (java + postgres + some tools around) which is currently hosted on three machines: Machine: Mailserver (postfix), Ad-Server (lighttpd + php + openx) ...
5
votes
4answers
13k views

Is there a way to remove “Last message repeated x times” from logs?

I have a script that updates me on any changes to the kernel log on my (Debian) servers. The problem is that occasionally the log contains lines like: last message repeated 4 times I realize that ...
5
votes
5answers
396 views

Generating erroneous traffic for testing

I remember that in Linux (when doing make menuconfig) somewhere there was an option that said something like this: Use this only if you want to generate network traffic, or if you want to ...
5
votes
1answer
4k views

How to reset sysctl to it's OS defaults?

I couldn't find an answer in the man pages for sysctl. My sysctl.conf file is still at it's default state, I'm testing several values and loaded new settings via sysctl -p newsettings.conf. I though ...
5
votes
3answers
5k views

debian 6 preseeding keeps asking “Write the changes to disks and configure LVM?”

I try to use an expert recipe configuring lvm for debian 6.0.5 netinstall. I don't want to be asked any questions, but it keeps asking me "Write the changes to disks and configure LVM?" Here is part ...
5
votes
3answers
2k views

Debian - how to dump virtual hosts

With Apache 2 running on windows or other Linux distros (eg Centos) you can show a list of virtual hosts by typing httpd -S at the command line. You get a nice listing of virtual hosts and where they ...
5
votes
2answers
2k views

how to enable ls highlighting in Debian

I'm a Centos user and have just started my first Debian install. In Centos the ls command lists output in color to indicate whether an item is a file, directory, symlink and if a file/directory is ...
5
votes
1answer
493 views

DHCP-Server - tell clients to renew lease

I have just set up a new DHCP server (dhcpd - package is dhcp3-server) on a Debian 6 box.The new server is up and running, and I have successfully connected a client. Formerly a router acted as the ...
5
votes
6answers
3k views

In Linux/Debian, did the passwords (/etc/passwd) ever been stored as plain text?

Someone is telling me so and I have some doubt but I can't find any information on the web.
5
votes
2answers
2k views

Dependencies from a .deb file

Given just a .deb file, how do I get the list of dependencies?