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

learn more… | top users | synonyms

6
votes
3answers
4k views

Debian: How do I check the last time package upgrades/updates were run?

I want to know when we last ran the package upgrades/updates on our Debian server.
6
votes
3answers
15k views

php writing deprecated errors to apache error log

I just upgraded from Debian Lenny to Squeeze and noticed that my /var/log/apache2/errors.log is getting bombarded with the following errors: <b>Warning</b>: Directive 'magic_quotes_gpc' ...
6
votes
4answers
1k views

USB storage media - data integrity issues on linux

I've always been somewhat paranoid about verifying data backed up to removable media, so after copying stuff to a USB flash drive or portable HDD, I invariably unmount the drive, remount it and diff ...
6
votes
1answer
2k views

What is the 'debian way' of installing multiple mysql instances on a single server?

Do you know any 'Debian way' of setting up multiple MySQL instances on a single server? The server would receive data replicated from multiple remote databases. I could use scripts like mysqlsandbox ...
6
votes
1answer
5k views

debconf: DbDriver “config”: /var/cache/debconf/config.dat is locked by another process

I ran apt-get upgrade on my debian/testing system and now I get the error above. How can I fix this? shell transcript follows: 136 upgraded, 0 newly installed, 0 to remove and 40 not upgraded. 1 not ...
6
votes
5answers
716 views

Is there a script/system to check Ubuntu/Debian sources for updates?

Essentially, I'm looking at the .list files in /etc/apt/sources.list.d/. Each of them has a deb entry; I'm curious to know if there's a way to see if any new distribution exists for any of the ...
6
votes
1answer
214 views

Correct usage of /srv on debian systems

I'm a bit confused about what goes inside /srv and looking for good practices about its usage on Debian. Acording to the FHS: "/srv contains site-specific data which is served by this system". ...
6
votes
2answers
434 views

dpkg can install from a file, apt-get can resolve dependencies, can anything do both?

I'm looking for a command line tool that can install a package from a file and automatically resolve dependencies via download. Does such a thing exist?
6
votes
5answers
2k views

Any alternative firewall solutions for debian that aren't based on netfilter / iptables?

I have a virtual server running Debian. It's host OS is using Linux Vserver and due to its lack of support for network namespaces, using iptables to secure the box is not an option. I did many ...
6
votes
6answers
3k views

Which is the best file system to run a web server and a database on debian?

Which is the best file system to run a web server and a database on debian ? Example : On debian ext2 or ext3 take too long to manage huge folder with huge subfolder my administration task take to ...
6
votes
2answers
3k 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
3answers
8k views

How do I install a new schema for OpenLDAP on Debian 5 with dynamic config=cn backend?

I'm importing an openldap database from another server and while importing, I got some errors with some users, the problem is that the mozillaAbPersonAlpha is not a valid objectClass. #!ERROR [LDAP ...
6
votes
2answers
257 views

How do people package internal software to their production servers?

We build .deb packages and host them in a local Debian APT Repository, which we then use Puppet to manage installs from. However, there is surprisingly little written about building or managing an ...
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
532 views

No space left on device error, but df reports as more space available

My PHP sessions on my Debian webserver using Apache2 with mod_php seem to be failing randomly, saying that there’s no space to write them: sudo tail -60 /var/log/apache2/error.log [Fri Jan 30 ...
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
3answers
845 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
2answers
191 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
845 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
1answer
538 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
894 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
3answers
4k views

Troubleshooting linux server reboots?

I have a Linux server I've just set up, debian squeeze, 2.6.32-5-amd64, and over the past week it's rebooted three times, twice in one day. There was no power outage that I am aware of (and it's ...
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
710 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
1answer
5k views

How to correctly ldapmodify replace olcAccess lines?

This is a part from olcDatabase={1}hdb.ldif olcAccess: {0}to attrs=userPassword,shadowLastChange by self write by anonymous auth by dn="cn=admin,dc=somesite,dc=com" write by * none olcAccess: ...
6
votes
1answer
148 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
906 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
6k 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
3answers
711 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
927 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: ...
6
votes
0answers
1k views

`apache2ctl restart` makes apache forget about cgi-bin

On my Debian machine (running the apache as packaged by Debian, package 2.4.7-1), every time apache restarts through apache2ctl restart or apache2ctl graceful, it forgets about my cgi-bin directory: ...
5
votes
8answers
2k views

What is the equivalent for “service servicename start” that Fedora/RHEL/CentOS uses for Debian/Ubuntu?

What is the equivalent for "service servicename start" that Fedora/RHEL/CentOS uses for Debian/Ubuntu? I've just read on some question here on serverfoault that using /etc/init.d/service is obsolete, ...
5
votes
3answers
15k 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
5k 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
7answers
378 views

List of tools you install on your debian/red-hat server [closed]

Here in a list of tools I install after a fresh install (debian most of time): logcheck: to check the log files and generate reports apticron: send me e-mails when packages updates are available ...
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
24k 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
6answers
2k views

Unable to force Debian to do unattended install… libc6 wants interactive confirm

I'm trying to create a script that forces a Debian Lenny install to install the latest version of CRAN R. During the install it appears libc6 is upgraded and the install wants interactive confirm that ...
5
votes
2answers
714 views

Load Average above 20 for single core vps on debian [closed]

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
8k 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
5k 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
33k views

How to list services/daemons started at boot _and_ check their loading order

I want to be sure in what order services are started during boot process in Debian based systems (Debian Squeeze in particular). Thanks in advance.
5
votes
4answers
26k views

Cannot delete folder with rm -rf. Error: device or resource busy

I'm trying to delete /var/www/html but I'm getting this error: rm: cannot remove `html': Device or resource busy
5
votes
2answers
659 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 ...