Showing posts with label debian. Show all posts
Showing posts with label debian. Show all posts

18 August 2010

How to Stop Debian Ignoring /etc/security/limits.conf

I was trying to increase the number of open files allowed for a user on a Debian 5 box. Changing /etc/security/limits.conf was being ignored until I added the following line to /etc/pam.d/common-session.

session required pam_limits.so

Logging out and in again after adding that line gave the new session the ulimit I was trying to configure.

Took quite a lot of googling to find this: http://www.zimbra.com/forums/administrators/16066-solved-too-many-open-files-error.html

30 June 2009

Copying package selections with debian/ubuntu

This is documented in lots of places but it seems to always take me a while to find it. Here is how to install the set of packages from one machine to another.
  1. On the source machine: sudo dpkg --get-selections > output_file
  2. Transfer the output file to the target machine
  3. On the target machine: sudo dpkg --set-selections <>
  4. On the target machine: sudo apt-get -u dselect-upgrade