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

learn more… | top users | synonyms

5
votes
2answers
619 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
384 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
5k views

Locate and updatedb doesn't work. What should I do?

My locate command doesn't work, but I found out I had to run updatedb. However, upon invoking that command, bash says bash: updatedb: command not found. What should I do?
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
304 views

How can I install packages without starting their associated services?

As you're probably aware, by default when you install a package on a Debian or Ubuntu based system, if the package contains a service, that service will generally be enabled and started automatically ...
5
votes
2answers
2k 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
243 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
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
4k 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
372 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
2answers
6k views

How to move /var to another existing partition?

I have a / partition which contains /var and is too small. I have another existing partition with enough space. Here is my df: File system Size. Occ. Avai. %Ful. Monté sur /dev/sda1 ...
5
votes
1answer
466 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
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
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?
5
votes
1answer
4k views

HP DL380 G7 + Smart Array P410i + sysbench -> poor raid 10 performance

I have running system with low IO utilization: HP DL380G7 ( 24gb RAM ) Smart Array p410i with 512mb battary backed write cache 6x SAS 10k rpm 146gb drives in RAID10 Debian Squeze linux, ext4 + LVM, ...
5
votes
1answer
1k 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
4answers
925 views

Debian - What to do when upgrading packages and a config file has changes?

I'm new to system administration and I'm helping admin a server for a student group. I was wondering, what is the best practice for when you're upgrading packages and a config file has changes. I've ...
5
votes
5answers
2k views

Can anybody tell me how to create my own local package repository for my packages in Ubuntu?

I want to create a package repository for my packages in ubuntu and this repository will be using in multiple Ubuntu systems to install and update packages.
5
votes
3answers
150 views

Audit files on a Debian box

Is it possible to list every file on the system that does not belong to a package? or if they have been modified? Might need to use something like: apt-get, apt-files, dpkg-query, etc For context, ...
5
votes
4answers
755 views

What are the performance implications of running VMs on a ZFS host?

I'm considering migrating from ext3 to ZFS for data storage on my Debian Linux host, using ZFS on Linux. One killer feature of ZFS that I really want is its data integrity guarantees. The ability to ...
5
votes
2answers
432 views

Puppet sometimes can't find standard facts like osfamily

Quick brief - for testing purpose, I installed puppet agent on 5 nodes (Debian Squeeze + puppet 2.7.20-1puppetlabs1), and puppet master on 1 server (same version). On puppetmaster side in every ...
5
votes
3answers
4k 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 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.
5
votes
3answers
497 views

Clock is 10% faster than normal

I'm having some strange problem with the clock on my server – it's about 10% faster than normal. The problem started 2 days ago and I've not done anything special with the server. I tried to turn of ...
5
votes
2answers
2k views

Duplicate incoming TCP traffic on Debian Squeeze

I have to test a homebrew server that accepts a lot of incoming TCP traffic on a single port. The protocol is homebrew as well. For testing purposes, I'd like to send this traffic both : - to the ...
5
votes
4answers
3k views

Rsync over ssh with root access on both sides

I have one older ubuntu server, and one newer debian server and I am migrating data from the old one to the new one. I want to use rsync to transfer data across to make final migration easier and ...
5
votes
4answers
4k views

Amazon EC2 tools for Debian?

What is the recommended way of getting command-line Amazon EC2 tools on Debian? So, basically the same as this question, but for EC2 instead of S3. Ubuntu has ec2-ami-tools and ec2-api-tools, but I ...
5
votes
5answers
3k views

Securely restrict access to a private Debian repository

I was looking for a method to restrict access to a private Debian repository and be able to authenticate to it non-interactively (i.e. using a script) The most useful article I found if actually one ...
5
votes
1answer
182 views

Doing a remote fsck - possible?

We've been deploying fanless PCs for a research study. Some of these are having HD issues as their OS runs from an SD card. I'm seeing cases where I need to fsck a folder or two. I've tried using ...
5
votes
1answer
353 views

100% packets dropped on first RX queue on 3/5 raid6 iSCSI NAS devices using intel igb (resolved)

Edit : The issue is resolved. The Queues in question have been used for Flow Control Packets. Why the igb driver propagated FC packets up to have them dropped (and counted) is another question. But ...
5
votes
1answer
5k views

Gitolite clone not working as intended

I am running a Debian system, and have recently installed gitolite using the DEB package. Here is my problem: I have tried to clone the gitolite-admin.git repository (which is used for configuring ...
5
votes
5answers
6k views

Debian Squeeze Hyper-V Drivers

I have a fresh Debian 6.0.0 (Squeeze) server running on Hyper-V and I'm trying to get the synthetic drivers loaded into the kernel (2.6.32-5-amd64). The research I've done says that the Linux ...
5
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 ...
5
votes
3answers
2k views

server virtualization: hypervisor (xen) or virtualbox?

Hey guys! I just set up a debian server for websites but now I need to install a windows server on the same machine because I need to run a game server (windows-only). Virtualbox is already installed ...
5
votes
2answers
3k views

symbolic link and filezilla over sftp

I'm pretty new to debian, and I'm trying to set up a server. I created a user which can only access to his folder /home/username (and its subdirectory). Now I want to use that user for the webserver ...
5
votes
2answers
1k views

How do I optimize TCP stack for HTTP server?

I have a HTTP server that serves only two kinds of page: about 10 KB and about 16 KB (both compressed, other files are from CDN). As the latency is quite high (ping takes more than 300 ms), I want to ...
5
votes
4answers
14k views

Downgrade PHP 5.4 to 5.3 in Debian

I had to do a Debian dist-upgrade on my server... in the process, PHP got upgraded to 5.4. We use ioncube which only supports up to 5.3 atm, and I'm having some trouble finding how to downgrade to ...
5
votes
2answers
1k views

RAID Read/Write Speed Gradually Slows

This is actually a server at home, but I felt it was sufficiently complicated as to not have it on SuperUser and could easily apply to a professional situation. I have a file server running Debian ...
5
votes
3answers
2k views

Linux software RAID 10 implementation

I don't want to force anybody to make it on behalf of me but trust me: i've looked hundreds of sites and i can't find a good starting point for this. I have 4x500Gb HDD's which i want to set up in ...
5
votes
3answers
3k views

Transactions and Rollback with Debian

I don't know if it is common knowledge, but RPM has support for rollbacking to a previous installation after performing an upgrade (which breaks something for instance). You can pass rpm the ...
5
votes
1answer
360 views

Debian/Ubuntu set preseed mirror variable via early/run command

I need to know how can I add this to preseeding via d-i early/command or d-i preseed/run to set my mirror inside preseed.cfg from /proc/cmdline argument. If I do: d-i preseed/run string ...
5
votes
2answers
101 views

Non-deterministic behavior of `sudo`

I've got a rather strange problem with sudo. Basically, it authenticates, but sometimes just doesn't launch the command provided. For example: liori@marvin:~$ sudo whoami root liori@marvin:~$ sudo ...
5
votes
4answers
4k views

Debian Lenny to Debian Squeeze upgrade problems

Yesterday I made a dist-upgrade on my Debian Lenny server. I thought it will be easy as an usual upgrade, but it's not. I got a lot of problem after the update: # apt-get upgrade Reading package ...
5
votes
3answers
5k views

How do you uninstall the rubygem application?

We have installed the rubygem application (version 1.3.6) on a Debian system by downloading the rubygems tar.gz archive and running the setup.rb command. What is the best way to uninstall this ...
5
votes
1answer
122 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 ...
5
votes
1answer
106 views

Ubuntu to list relevant security advisories

If I want to find out what security updates there are on a redhat/centos server and the coresponding security advisory I can run this command: yum --security list-security That would include data ...
5
votes
1answer
2k views

SSI includes not working on Debian with Apache

I'm trying to get SSI to work on Debian running Apache, however the .shtml files are not being parsed. From a PHP file with phpinfo() I can see that the following show up in the loaded modules ...
5
votes
3answers
726 views

Virtualbox HTTP load testing, host CPU overload issues

I'm doing HTTP load testing benchmarks (using Apache Benchmark and Siege) on a small Java EE 1.7.0 / Tomcat 7.0.26 application running on a Debian Squeeze 6.0.4 x64 virtualized with Virtualbox 4.1.8. ...