Questions tagged [debian]
Debian is a popular and influential GNU/Linux distribution. Questions here should generally be about Debian Server.
534
questions
3
votes
2
answers
8k
views
Can't install MySQL
I have a Debian machine that I have previously installed MySQL on. In an attempt to delete it, I stupidly deleted the directories/files /etc/mysql/, /etc/init.d/mysql, /usr/lib/mysql/, /var/lib/mysql/....
3
votes
2
answers
27k
views
Curl SSL Certificate: unable to get local issuer certificate
when using curl in verbose mode, I get this error:
Command:
$ curl -vvI https://www.google.com
Error:
successfully set certificate verify locations:
CAfile: none
CApath: /etc/ssl/certs
TLSv1.3 (OUT),...
3
votes
0
answers
3k
views
Replacement for scponly on Debian [duplicate]
scponly has been removed from Debian packages. I'm using scp to pull backups from a Debian 8 server and for previous Debian servers I've set the login shell to scponly in order to restrict the backup ...
3
votes
1
answer
2k
views
Correctly mounting SAN volumes at boot time
I have a system running Debian Wheezy (7.8) that connects to a storage volume exported via iSCSI using the open-iscsi (version 2.0) software initiator. The iSCSI initiator correctly reconnects the ...
3
votes
1
answer
4k
views
check header for Authenticated sender in postfix
My users send email with SMTP AUTH via SASL Authentification. Unfortunately their mails would marked as NoBounceOpenRelay by Amavis.
So I set this to postfix main.cf
smtpd_sasl_authenticated_header ...
3
votes
3
answers
4k
views
Duplicity error: BackendException: ssh connection to SERVER_IP:22 failed: Unknown server SERVER_IP
I'm trying to setup a backup system with Duplicity. I have a server that I want to backup to another SFTP server.
If I try to connect via sftp it works fine:
root@SERVER:~# sftp user@SFTP_IP
...
3
votes
1
answer
5k
views
Gmail bouncing postfix mail [duplicate]
I followed this tutorial to get email working on my VPS. I've been having problems sending email to Gmail.
I can receive emails fine, but any mail that is sent to Gmail is bounced with the following ...
3
votes
1
answer
4k
views
systemd-journal in Debian Jessie LXC container eats 100% CPU
After creating fresh LXC based on Debian Jessie, on a Ubuntu 14.04, systemd-journal eats all CPU available.
lxc-create -n jessie -t debian
3
votes
2
answers
2k
views
connect to 3rd party VPN server but don't use it as the default route?
I would like to connect to a 3rd party VPN server in Linux (e.g. Debian Jessie) but by default still use my eth0 lan interface as the default route, and am curious how to achieve this. I will be using ...
3
votes
4
answers
6k
views
Can I recover from "rm /*"?
I'm running Debian... And, I accidentally ran "rm /*" as root (hurray!) - luckily I didn't use -r, so the dirs are still intact. However, when trying to boot, I get...
run-init: /sbin/init: No such ...
3
votes
1
answer
4k
views
gitlab authentication using HTTP_REMOTE_USER environment variable
we have discovered gitlab, and I would like to integrate it in our global authentication process, which relies on apache HTTP_REMOTE_USER environment variable.
I have seen very little documentation ...
3
votes
1
answer
8k
views
Aliased network interfaces and isc dhcp server
I have been banging my head on this for a long time now. There are many discussions on the net about this and similar problems, but none of the solutions seems to work for me.
I have a Debian server ...
3
votes
2
answers
2k
views
Apache webserver & Tomcat : Runing multiple tomcat webapps and apache webserver app at same time
We have a Debian X64 server which currently has a tomcat instance where we have 3 webapps in WAR file ofcourse. Also, we have an Apache webserver, which has one CMS system running. And one final ...
3
votes
3
answers
4k
views
Install VirtualBox Headless only
I want to install VirtualBox on a fresh debian box without having to install an X-Server.
How can that be done ?
3
votes
4
answers
3k
views
How to config mysql-server for heavy load
Im in the process of setting up a new database server. I have been running a few mysql database servers before and it has been working okay.
But i would like to hear the recommended setup for my ...
3
votes
4
answers
4k
views
Debian Hostname refusing to stick
I'm using VirtualBox for testing and have the latest stable Debian.
When I try to set the hostname of the machine using both:
hostname ayil
and editing /etc/hostname and running /etc/init.d/...
3
votes
2
answers
2k
views
select() hangs due to resource exhaustion - but what resource?
Connecting to my server via sftp sometimes results in a hang here:
if (select(max+1, rset, wset, NULL, NULL) < 0) {
which is line 1428 from openssh 5.2p1's sftp-server.c (main loop of ...
3
votes
1
answer
543
views
Troubles with Dovecot + Webmin on Debian 6.0
I installed Apache, PHP5, MySQL and Webmin on a vps. I host my website on that.
I completely reinstalled whole VPS with fresh installation of Postfix and Dovecot. But Dovecot fails to start, so ...
3
votes
1
answer
929
views
Straight-forward to Virtualise with XEN or KVM on IBM Server System x3650 M4 791562G?
I want to built a virtualised Server Environment using XEN or KVM. The virtual machines should be purely debian systems - so XEN or KVM should be a sane choice. Now while buying servers, I am ...
3
votes
1
answer
242
views
debian: upgrade from etch to lenny fails
The error message is:
error processing /var/cache/apt/archives/debianutils_2.30_i386.deb (--unpack):
trying to overwrite `/usr/sbin/add-shell', which is also in package passwd
How can I solve ...
3
votes
2
answers
10k
views
Debian: Should I add vlan interface into bridge for KVM?
I am setting up a Debian Squeeze box as a KVM host. I want to add multiple interfaces to each KVM guest so I want them to be on different VLANs.
After reading about this, I believe the best method is ...
3
votes
1
answer
2k
views
enabling virtualization on supermicro board
I'm trying to setup a virtualization server on an old Supermicro board (mainly for experimenting a bit), using qemu/kvm (running on Debian/jessie, with a 3.16.0-4-amd64 kernel)
The board is equipped ...
3
votes
2
answers
5k
views
After adding skip-innodb mysql doesn't start
I am trying to setup these values:
#skip-bdb
#skip-locking
#skip-innodb
When I add them to /etc/mysql/my.cnf and even if I turn ON of of, them after I do the service restart mysql fails to start, ...
3
votes
1
answer
5k
views
systemd not restarting my process
I have the following service configured:
[Unit]
Description=HB service started
[Service]
Restart=always # or always, on-abort, etc
RestartSec=3
WorkingDirectory=/home/debian/hb/program
ExecStart=/...
3
votes
1
answer
2k
views
Difference between debian-keyring and debian-archive-keyring?
Do I need both to install packages? What is the purpose of each of those?
3
votes
1
answer
471
views
My server doesn't seem to be caching anything well
I have a VPS from tocici (via BuildYourVPS). It's got 4 GB of RAM (2 GB of it "burst" RAM).
This server has some severe performance issues, however. First, a quick explanation of what this server ...
3
votes
1
answer
4k
views
I manually deleted my /etc/php5/ config files and now they don't reinstall
I wanted a clean reinstall of php5-cli, php5-common, php5-fpm. So what I did was:
rm -rf /etc/php5
rm -rf /usr/local/lib/php5
rm -rf /usr/local/php5
rm -rf /usr/lib/php
apt-get autoremove php5*
apt-...
2
votes
2
answers
8k
views
Finding local IP addresses using Python's stdlib under Debian jessie
I am writing a distributed systems program in python, and in this program I need to know the local ip-address... eg. 168.192.... 10.13..... etc, not 127.0.0.1 or hostname.
I have found following ...
2
votes
1
answer
1k
views
Rebuilding /etc/rc?.d/ links
A regular filesystem check on a Debian Lenny system triggered an fsck, and that nuked a handful of links in the /etc/rc?.d hierarchy (unfortunately I didn't keep a list).
The system seems to boot and ...
2
votes
3
answers
5k
views
Resize partition at VPS without losing data
I have small VPS server with 40 GB disk space. I bought extra 40 GB and now I would like to extend / partition size.
My partitions looks like this:
/dev/vda1 is /boot and /dev/vda5 is my /. My VPS ...
2
votes
3
answers
4k
views
Host a Debian repository on a Windows Web/Ftp server
At the risk of causing a matter vs. antimatter paradox that would end the world as we know it ... Is it possible to host a Debian repository on a Windows server?
We have some applications which are ...
2
votes
4
answers
13k
views
How do you setup multiple instances of vsftpd to run on different listen ports?
I need to setup 2 different instances of vsftpd. Which will listen on 2 different ports such that one instance listens on the default port 21 and the other can listen on another port 1123. Please ...
2
votes
3
answers
11k
views
VLAN support with libvirt for linux bridge to virtual machines
I'm using systemd-networkd to configure network interfaces managed by libvirt for KVM (Kernel-based Virtual Machine) with Debian Bullseye on all nodes. I want to have transparent VLAN support on the ...
2
votes
3
answers
4k
views
KVM-Guests can't get past bridge - no internet connection
I'm running a backported KVM on a Debian Squeeze. ATM the KVM-Guest can't connect to the internet through the bridge I have set up. The guests can reach each other, the host but nothing outside. I can ...
2
votes
1
answer
628
views
In Debian-based script: how to determine if kernel changed and needs reboot?
How can we (more) easily determine if a kernel-change-reboot is required in Debian, other than doing this in a script (which is a bit cumbersome)?
Ubuntu has /var/run/reboot-required and per our ...
2
votes
1
answer
1k
views
How do I convince smartmontools that my SSD is not a hard drive?
I'm running Debian Wheezy, stock smartmontools package (smartctl 5.41).
An SSD, Mushkin MKNSSDCR120GB-MX, is reporting usage lifetime information in SMART attribute id 231 (decimal). For hard drives ...
2
votes
2
answers
3k
views
MySQL extension of PHP not working
In a Debian server, and after intallation and removal of SquirrelMail (with some downgrade and upgrade of php5, mysql...) the MySQL extension of PHP has stopped working.
I have php5-mysql installed, ...
2
votes
2
answers
2k
views
Multiple IP addresses assigned to one KVM VM
System:
OS: Debian 6.0 64-bit with KVM installed from packages
KVM is managed with Cloudmin 6.4.kvm
I have a /29 subnet from my host. The bridge is setup properly for each VM to have its own IP, ...
2
votes
2
answers
12k
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
/...
2
votes
2
answers
1k
views
sshd_config adding a delay between login attempts?
Is there a configuration for this without installing 3rd party software?
2
votes
2
answers
8k
views
How can I use Exim4 to forward email for root to another email address?
I am trying to forward system email (from apt, cron, etc.) addressed to "root" to my personal email address using a smarthost. I am using Debian 9. First, I ran sudo dpkg-reconfigure exim4-config. ...
2
votes
2
answers
6k
views
How to update sources.list for Debian 4.0 Etch?
I am trying to update my /etc/apt/sources.list on my VPS. As I run apt-get update I get all kinds of 404s not found, for example:
Failed to fetch http://debian.newdream.net/dists/etch/main/binary-...
2
votes
2
answers
5k
views
Extremely slow NAT within a VMWare ESXi host using Linux VMs
I have a VMWare ESXi host attached to a fast network.
The host runs two virtual machines:
Gateway
Client
The gateway has two network interfaces, one that's bridged to the external network (vSwitch0),...
2
votes
1
answer
4k
views
Debian 8, Apache 2.4.10: Scoreboard is full, not at MaxRequestWorkers
Fresh install of Debian 8. After running my web server for a few minutes/hours, Apache2 stops working. I always get the error "Scoreboard is full, not at MaxRequestWorkers" from Apache2 error.log.
...
2
votes
3
answers
18k
views
/etc/resolv.conf keeps resetting itself
I'm running some tests on a Debian server. The network in which this server is located has two DNS servers (I don't know why and I can't change this). I used to need to point /etc/resolv.conf to one ...
2
votes
1
answer
5k
views
Remove exim local username
How can i remove the local username in the mail headers with exim4 running on debian 6?
Received: from root by host.domain.com with local (Exim 4.72)
(envelope-from <[email protected]>)
id ...
2
votes
2
answers
872
views
Backup Entire USB Drive Containing Bootable Partitions in Debian [duplicate]
What's the best way to backup a USB drive with bootable data on it? For instance, I have what's called an ESXi server on a bootable USB, it's basically a linux variant with multiple partiions. What'...
2
votes
1
answer
2k
views
encryptfs auto-mounting script
I'm trying to make a script, that creates and mounts encrypted directory using ecryptfs(on ssh logons(with passphrase sent via pipe) and by some other scripts). I know about ecryptfs-setup-private ...
2
votes
1
answer
2k
views
Apache MPM workers stuck in G (gracefully finishing) growing - "scoreboard is full"
Running MPM worker, Apache 2.4.46, Debian 9
Gracefully finishing workers just grows over time, they dont seem to ever finish. Eventually I run out of capacity and get "scoreboard is full" ...
2
votes
1
answer
10k
views
Debian 11 no longer automatically receiving static DHCP IP address, dhclient must be started manually
I am hosting a Debian 11 (no desktop environment) virtual machine on Windows Server 2012 with Hyper-V. This is on a company network with its own DHCP system and the MAC address of the VM is registered ...