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

learn more… | top users | synonyms

0
votes
1answer
72 views

/var/log/syslog is empty. Service rsyslog is running, but not installed

Problem Periodically I encounter the problem that /var/log/syslog is empty. $ ls /var/log/syslog -rw-r----- 1 root adm 0 Dez 31 06:29 /var/log/syslog Environment and Installed packages I am using ...
13
votes
3answers
777 views

SSH session never closes when executing “apt-get install”

Problem When running apt-get install in an non-interactive SSH session, the session never closes. Example: ssh user@target "sudo apt-get -y install my_package" The my_package does get installed ...
11
votes
6answers
38k views

Debian. How can I securely get debian-archive-keyring, so that I can do an apt-get update? NO_PUBKEY

I have a catch 22 trying to: # apt-get update [... good lines omitted] W: GPG error: http://backports.debian.org lenny-backports Release: The following signatures couldn't be verified ...
2
votes
2answers
1k views

Apache2 merge multiple Set-Cookie headers

We have a server running varnish. In order that it works correctly with Magento it analyses whether a Set-Cookie: EXTERNAL_NO_CACHE=1 header is passed through. Only problem is that we have several ...
0
votes
0answers
31 views

postgresql in lxc container doesn't start after reboot

Debian stable (Jessie) I have few containers - in one container there is postgresql. I want to start it first (I hope that my config does it). After reboot all containers starts, but i can't log in ...
1
vote
1answer
4k views

how to get nginx to gzip all files and add an expires header

recently got into VPS systems and installing them, and all that blah blah etc etc. So, I have a couple working websites, and on one of them I'm trying to really optimize it for speed. Using Yahoo's ...
1
vote
2answers
6k views

Pure-FTPD chroot not working on a fresh Debian install?

I am trying to get chroot to work with virtual Pure-FTPD users, but for some reason it simply is not working. I changed the following options: /etc/default/pure-ftpd-common: VIRTUALCHROOT=true ...
1
vote
1answer
351 views

Updated cURL not taking effect in PHP

I have an application running through Docker, based on the official PHP Docker image. I've extended it to update cURL and get it working with nghttp2 and openssl, which is what I need for HTTP/2 ...
2
votes
2answers
171 views

script migration from CentOs to Debian - error message “[: 10: -lt: unexpected operator”

As I was trying to execute a script in a new environment, I came up with this error: [: 10: -lt: unexpected operator Here is the painful part of the script: end=$((SECONDS+60)) while [ $SECONDS ...
0
votes
1answer
1k views

Exim4: How to add or rewrite Reply-to: header in outgoing messages?

How can I configure exim header rewriting to take care of forgotten Reply-To: headers in emails leaving our company? We want to have certain Reply-To: headers added to all official emails leaving ...
0
votes
2answers
60 views

How to route requests between Nginx servers on the same IP address based on domain name?

I'm running a Debian server with Nginx installed, as well as OpenResty. I have a domain, a subdomain of that domain, and in the future will have multiple domains pointed at its IP address with A ...
1
vote
3answers
3k views

snmpd.conf: can't exec script (Permission denied)

I am trying to exec command to perform checks through snmp. I am on Debian 6.0 Here is my snmpd.conf file rwcommunity public 172.23.129.0/29 syslocation "Blah syscontact admin@domain.net sysname ...
1
vote
1answer
163 views

Is it possible and wise to put the grub bios partition on a software raid?

in a two disk setup /dev/sda /dev/sdb i created per disk 3 partitions bios_grub 1mb linux raid 512mb md0 (/boot - ext3) linux raid rest md1 (physical volume for lvm) the answer on ...
0
votes
1answer
24 views

monit can not resolve hostname: getaddrinfo does not find host

I use monit v5.16 running on Debian Wheezy to check if a server is up or down using the ping instruction. Here is my configuration: check host my.server.domain with address my.server.domain ...
-1
votes
1answer
41 views

Debian SSH disabled password logins but can still login [duplicate]

I have setup a debian install on a VPS and have successfully implemented key based logins to increase security. Now I am trying to disable password based logins entirely using the guide found at ...
0
votes
0answers
16 views

How do you speed up an SQL query on a huge database? [duplicate]

I'm currently dealing with a table that has 30 million rows of 8 columns. I'm only selecting the columns that I need. SELECT column_a, column_b FROM table_name This is happening from a python script ...
10
votes
3answers
6k views

Confused about alias_maps and virtual_alias_maps

I have already re-read the docs on this as well as other posts here and this is still very unclear to me. I have been testing various things to understand the difference between alias_maps and ...
0
votes
0answers
28 views

Strange chkconfig behaviour on Debian for samba service

The service "samba" is not starting at boot on this standard Debian 7.7 installation while it should. Based on the chkconfig man page, I did this, but it still doesn't start at boot : chkconfig ...
0
votes
1answer
20 views

Does ntpdate work with SNTP?

I have an embedded system with Debian on ARM. I use ntpdate for time synchronization, but I am not sure whether it supports SNTP.
4
votes
2answers
4k views

Debian: how can I know if reboot is required after update?

I have 4 servers with Debian Wheezy OS. I have Apticron installed that informs me about updates. Debian updates are realized so often that when I finish to update the last of 4 servers I get new email ...
0
votes
0answers
84 views

ZFSonLinux : process stuck in D state, iowait for CPU 100%, HDD idle

I have a problem that occurs regularly,cca every 5 seconds. the rtorrent process gets stuck on disk wait D state for approx. 1-2 seconds,then continues with full speed. Sometimes the hangs take ...
-6
votes
2answers
46 views

Should I use SSL on SSH [closed]

I am trying to setup a web server in Linux (Debian). I have modified the IP tables to provide access only SSH and HTTP/S. Also SSH port has been changed to non-standard one. Apart from these steps, ...
1
vote
2answers
2k views

start-stop-daemon saves wrong PID

$ ps aux | grep svn root **4458** ... /usr/bin/svnserve -d -r /var/svn manuel 4466 ... grep --color=auto svn $ sudo kill **4458** $ sudo rm /var/run/svnserve.pid $ sudo start-stop-daemon ...
1
vote
1answer
68 views

Why does “cat /proc/net/dev” show only 0 for non-root users?

Recently, I've noticed that my script to monitor the network showed me nothing at all when it was run with a non root user. My script is simply looking at /proc/net/dev which has the following ...
2
votes
1answer
145 views

KVM / QEMU: connect to VM without GUI [closed]

Short Version (Solution is below): I have a Windows PC. I have a Debian server (without desktop environment). I have a Ubuntu VM running on Debian server via KVM/QEMU. Question: How can I connect to ...
2
votes
1answer
10k views

proFTPD unable to determine IP address

When starting the server this error is returned Starting ftp server: proftpd2014-08-03 18:39:22,045 web-amd-3700-2gb proftpd[22126]: warning: unable to determine IP address of 'web-amd-3700-2gb' ...
0
votes
0answers
30 views

beanstalkd - unable to connect to remote host: connection refused

Attempting to set-up a remote beanstalkd server. I have 2 digital ocean instances. For purposes of example we will call them vmbeanstalk and vmapp. My OS is Debian Jessie. Let us assume: vmbeanstalk ...
0
votes
1answer
54 views

Debian hangs entering single user mode

My Debian system hangs when trying to enter single user mode on "start job is running for LSB" as shown in screenshot below. Any idea how to recovery it? This thing started occurring after restarting ...
0
votes
0answers
10 views

service --status-all freezes part way through displaying list

debian 8.0, logged in over ssh service --status-all freezes part way through displaying list of services it gets to ssh and then doesn't display anything else and doesn't finish, it doesn't matter ...
0
votes
1answer
152 views

Debian : configure an send-only smtp server (exim or postfix)

I’m configuring a debian server and I need a mail server for all notifications (fail2ban, logwatch, etc). I need those notification to be send to a specific email address. I have an smtp account with ...
1
vote
1answer
37 views

When does a Debian server require restart? [duplicate]

I have Debian 8.3 installed on my vServer, hosting websites and other applications. For instance, my VM didn't boot properly after my hoster rebooted the node. So there must be something that gets ...
0
votes
0answers
26 views

debian active directory join issue

I have interesting issue. If I install debian with preseed file, Cant authenticate AD. but If install debian with manual installation I can authenticate AD AD Server : Windows Language : English ...
1
vote
3answers
2k views

Using Apache / Kerberos / Keytab to Authenticate Redmine Users Against Active Directory

Please bare with me, as I am still fresh to these technologies. We have a Debian (squeeze) server to which I have root access. It is running Apache, and Redmine is deployed to the server (currently ...
0
votes
1answer
61 views

zfs: dataset does not exist

I'm not able to set mountpoint to the pool. # zpool import pool: wd-black id: 18120690490361195109 state: ONLINE action: The pool can be imported using its name or numeric identifier. ...
0
votes
1answer
22 views

pgbouncer:is it OK putting on localhost or it's better on another server?

I'm about to migrate my (tiny) server farm to Google Cloud Platform and so giving the architecture a small restyling. One of the changes I'm about to commit is the introduction of pgBouncer, to manage ...
-1
votes
1answer
83 views

Configure proftp ftp server on debian so that a user can only upload and does not see the files

I installed and configured proftp on Debian using this howto and it works nicely. Effectively, the changes to the config are: [...] UseIPv6 off [...] <Global> RootLogin off ...
2
votes
1answer
2k views

pure-ftpd debian, can't get www-data user working

I'm trying to add FTP access to the Apache web files, in the past I have done this with an ftpuser and group arrangement. This time I would like to make it possible to login directly as www-data (the ...
1
vote
1answer
36 views

Bind9 warning on Debian

I'm running a Bind9 (9.8.4-rpz2+rl005.12-P1) DNS on a Debian 7.9 server and all is working fine, but whenever I try to restart the named service I get the following error into syslog: WARNING: key ...
0
votes
1answer
39 views

Unattended upgrades not running under Ubuntu 14.04

I have a bunch of servers running Ubuntu 14.04. They all have the unattended-upgrades package installed. I've created a file called: /etc/apt/apt.conf.d/local-50-unattended And I've added the file ...
1
vote
0answers
28 views

IP Aliassing - Multiple Public IP Address [closed]

I have a problem with IP Aliassing. I want that all IP addresses have ism traffic but it does not work except to redirect eth0 with iptables DNAT and SNAT which is ineffective. auto lo iface lo inet ...
119
votes
8answers
98k views

How can I run Debian stable but install some packages from testing?

Say you're running a server and you don't want to upgrade to Testing (Squeeze) from Stable (Lenny) to just install a required package or two. What's the best way of installing only certain packages ...
1
vote
2answers
2k views

SSH on Debian: Password prompt hang

A friend is having an issue on his SSH login prompt where the username prompt responds instantly (right when you connect VIA ssh), but the password prompt (right after you enter the username) hangs ...
1
vote
1answer
726 views

Change PS1 value for all Bash users

I am trying to change the prompt value for all users of a system (the $PS1 variable) to the same value. I have the following stored in file /etc/ps1: PS1='` if [ $? -eq 0 ]; then echo -n ...
1
vote
1answer
35 views

How to exclude Apache VirtualHost from global rewriting?

I have setup Let's Encrypt SSL certificate on my VPS, which works fine, but now all VirtualHost are trying to load over https://. I have found RewriteRule directive in le-redirect.conf: ...
0
votes
0answers
21 views

tcp receive buffer size min value seems not work

I tried to increase tcp min receive buffer size to 87380, so in my test it would OOM quickly with a little connections. net.ipv4.tcp_rmem = 87380 87380 6291456 net.ipv4.tcp_wmem = 87380 87380 ...
2
votes
1answer
318 views

cannot boot because of networking service

I have a fresh install of debian 8.3 jessie on a new server with all upgrades However each time I try to reboot the machine, debian enter in emergency mode The screen got stucked at "A start job is ...
1
vote
0answers
74 views

How to prevent persistent naming of network interfaces, like eth1

I have a freshly installed Debian Jessie. I had two NICs, which were eth0 and eth1, now I took out one, however I still have eth1 left in the system: % dmesg ... tg3 0000:03:00.0 eth0: Tigon3 ...
2
votes
4answers
2k views

Using proftpd how do I disable regular ftp but leave sftp running

We have a Debian Linux box with proftpd, we have both FTP and SFTP running, but we would like to disable regular FTP and just leave the SFTP running Is there some way to do this?
0
votes
2answers
3k views

403 Forbidden warning after installing/enabling usermod

I'd like to have per-user web directories on my Linux Mint workstation in the same general way I have had on OS X. In order to do this, I created a public_html directory in ~/. and chmod'd it to 755 ...
0
votes
1answer
15 views

Increase in “table lookup” on old Postfix/PostgreSQL installation

The box is still running PostgreSQL 8.1 and this started to increase a few weeks ago. It is only happening while the server is a bit busy. fatal: ...