Questions tagged [debian]

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

Filter by
Sorted by
Tagged with
16 votes
5 answers
16k views

install the same debian packages on another system

How do I export a list of installed Debian packages on a system, and then install those same packages on a new system?
jes5199's user avatar
  • 377
16 votes
3 answers
30k views

Uninstall Docker when installed via curl

I have installed docker un my debian 7 server using the following command : sudo curl -sSL https://get.docker.com/ | sh I would now like to remove docker, how on earth do I uninstall it ?
Purplefish32's user avatar
16 votes
3 answers
25k views

Ulimit file descriptor limits not being applied for particular process

I recently checked one of our redis processes to what ulimits where applied using: cat /proc/<redis-pid>/limits And was suprised to learn that is was at the low default value: Limit ...
UpTheCreek's user avatar
  • 1,638
16 votes
5 answers
26k views

Standard or best way to keep alive process started by init.d

I'm looking for a standard way or best practice to keep a daemon started by an init.d shell script alive. Or even better, is there a way to keep it alive directly from /etc/init.d? Specifically, I ...
Adrian Antunez's user avatar
16 votes
4 answers
47k views

All Debian boot messages

How can the messages that scroll by when booting a Debian system be reviewed later? In other words, how can I review absolutely all of them conveniently? That's the important point to the question; ...
MarkDBlackwell's user avatar
16 votes
3 answers
21k views

Why are outdated packages installed by yum on CentOS? (specifically PHP 5.1) How to fix?

I'm working on a fresh CentOS server and am extremely annoyed to find out that yum does not work as smoothly and brilliantly as "apt-get install" does on Ubuntu. Installing a LAMP stack, I ran the ...
Buttle Butkus's user avatar
16 votes
5 answers
22k views

How do I make a wildcard package search using apt-get?

With yum it was simple: yum list *xxx* but this does not work with apt-get. How can I do a search like this? Also, how do I see what package provides a specific command?
sorin's user avatar
  • 8,236
16 votes
3 answers
36k 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.
user avatar
16 votes
2 answers
10k views

No IPv6 connectivity from docker container

i'm having serious problems enabling IPv6 in docker. Environment The host is running Debian Jessie. It's a virtual Server (KVM). eth0 has a statically configured address like w:x:y:z::1 in a ...
lajuette's user avatar
  • 771
15 votes
7 answers
10k views

Restore SSH session

I have connected to my server via SSH and created a process, but suddenly my internet connection got disconnected. I know that the process is going on, but how can restore previous session to see the ...
Arash Mousavi's user avatar
15 votes
4 answers
13k views

Give root password for maintenance

After entering shutdown now in terminal I get everything running normally and then: All processes ended withing 2 seconds...done INIT: Going single user INIT: Sending processes the TERM signal INIT:...
Jevgeni Smirnov's user avatar
15 votes
5 answers
158k views

WGET can't resolve host

I've got 2 machines on the same sub-net running Debian 5.0. They use the same DNS (/etc/resolv.conf), they route to the same gateway (#route) and they have the same iptables settings (#iptables -L). ...
user avatar
15 votes
2 answers
11k views

sudo not working on certain commands

I have a rather weird problem with sudo on Debian 8. Users cannot execute some of commands in /etc/sudoers.d. I use Chef to distribute configurations, so all files are automatically generated. ...
Lain Iwakura's user avatar
15 votes
4 answers
60k views

Bad ssh config on remote server. Cannot login in

I accidently changed ssh_config instead of sshd_config on a remote debian machine. Whenever i try to loging, i get /etc/ssh/ssh_config: line 55: Bad configuration option: permitrootlogin /...
pritstift's user avatar
  • 271
15 votes
1 answer
23k views

how to set up monit to monitor disk-space

I use monit on my server to monitor apache and mysql running. Now I want to add an alert if the disk gets too full. I added this for testing in /etc/monit/monitrc: check device rootfs with path /dev/...
rubo77's user avatar
  • 2,519
15 votes
2 answers
34k views

How to get IPv6 running properly?

So, my problem is that I just can't get IPv6 to work. Ping6 just tells me connect: Network is unreachable when I try to ping ipv6.google.com for example. ifconfig looks like (a tad censored): eth0 ...
Cobra_Fast's user avatar
15 votes
1 answer
22k views

disabling predictable network interface names in xubuntu 15.10

How do we disable predictable network interface names in xubuntu 15.10 ? I want my old interfaces naming like eth0 ... ethx, some of my software assumes eth0 interface to be present and is hard ...
Ravikumar Tulugu's user avatar
15 votes
1 answer
5k views

api-get "Error reading from server" under Docker

I'm running the following command in Bash: DEBIAN_FRONTEND=noninteractive apt-get update -qq \ && apt-get install -y build-essential git libncurses5-dev openssl \ libssl-dev fop ...
Nathaniel Waisbrot's user avatar
15 votes
3 answers
17k 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 ...
Cheiron's user avatar
  • 458
15 votes
3 answers
13k views

Postfix/postfix-script warning symlink leaves directory: /etc/postfix/./makedefs.out

I trying to get an email server up and running on a raspberry pi running Raspbian Buster. In my postfix checks I am getting a strange notification about a symlink that I definitely did not create ...
DanRan's user avatar
  • 93
15 votes
3 answers
5k views

Where can I find the Dropbox log files?

I am running Dropbox on a Debian server. Once I start Dropbox using python dropbox.py start it stops working after a while and python dropbox.py status reports: Dropbox isn't running! I ...
Ueli Hofstetter's user avatar
14 votes
5 answers
52k views

How to add a script to startup and shutdown in debian?

the title pretty much sums it up. how do I add a startup.sh and shutdown.sh of my server app to the startup and shutdown sequence of the Debian OS?
Amir Arad's user avatar
  • 547
14 votes
3 answers
10k views

How do I check the origin and archive of a package?

I'm trying to figure out why a package was not upgraded unattended, and I have turned my eyes to the Allowed-Origins configuration. However, I do not know how to check the origin and archive of ...
Daniel C. Sobral's user avatar
14 votes
2 answers
21k views

After upgrade from Debian 10 Buster to Debian 11 Bullseye security updates 404 not found

Doing recommended upgrade path, TL;DR: Backup data, then apt update apt upgrade apt dist-upgrade reboot Also disable all non main stream packages if any. Then preparing APT for new distribution: sudo ...
Arunas Bart's user avatar
14 votes
6 answers
21k views

Debian jessie nginx with openssl 1.0.2 to use ALPN rather than NPN

I am running debian jessie on my server and recently upgraded to new nginx web server with http/2 support (nginx 1.10). As today, it works great and webserver is delivering content with http2 protocol....
Juraj Nemec's user avatar
14 votes
6 answers
46k views

Using a self-signed SSL cert for an HTTPS-based internal APT repository

I've set up a Debian repository (Ubuntu actually) for internal use with some private packages, and now want to make it available over the web to some specific servers. I would like apt-get / aptitude ...
shevron's user avatar
  • 336
14 votes
4 answers
13k views

How to use update-alternatives per user

Is there any way to use update-alternative "user wide" ? I mean that it would be great to set preferences per user. Does Debian provide some tools for that?
Maxime's user avatar
  • 251
14 votes
3 answers
9k views

libpam-ldap or libpam-ldapd?

I'm setting up LDAP authentication on my personal VPS, and Ubuntu has two packages for the same purpose: libpam-ldap and libpam-ldapd. Which should I use?
jldugger's user avatar
  • 14.5k
14 votes
2 answers
31k views

How to reset sysctl to its OS defaults?

I couldn't find an answer in the man pages for sysctl. My sysctl.conf file is still at its default state. I'm testing several values and loaded new settings via sysctl -p newsettings.conf. I thought ...
Fleshgrinder's user avatar
  • 3,828
14 votes
3 answers
16k views

How do I ask apt-get to skip all post-install configuration steps?

When installing some packages (like RabbitMQ) on Debian/Ubuntu machines, the post-install step defaults to starting the service. While this is great in most cases, in some cases (when you already ...
Wolph's user avatar
  • 875
14 votes
5 answers
8k views

Compute a list of difference between packages installed on two hosts

I just add some problems with my Debian virtual servers and I add to reinstall all of them from scratch. However, I still had access to the old version and I could retrieve the list of installed ...
krtek's user avatar
  • 603
14 votes
3 answers
21k views

Running out of memory running fsck on large filesystems

I look after an old Debian linux box (running etch) with only 512 MB of RAM, but a lot of external storage attached. One ext3 filesystem is 2.7 TB in size, and fsck can't check it, because it runs ...
TimB's user avatar
  • 1,450
14 votes
5 answers
29k views

Linux router: ping doesn't route back

I have a Debian box which I'm trying to set up as a router and an Ubuntu box which I'm using as a client. My problem is that when the Ubuntu client tries to ping a server on the Internet, all the ...
El Barto's user avatar
  • 973
14 votes
7 answers
125k views

SSH fails: PTY allocation request failed on channel 0

So I googled the error and checked serverfault, but the solutions didn't fit. Most results were problems with /dev/pts, but that is mounted. Other results are errors with git, but there is no git on ...
blauwblaatje's user avatar
14 votes
4 answers
10k views

SSH if command output is more than about 5 lines

I've been advised to ask this question here: I'm baffled by the following issue I'm currently experiencing. I have a Debian 5.0 Linux server connected via an ethernet cable to my DSL router. My laptop ...
user avatar
14 votes
7 answers
15k views

How to create a randomly keyed, encrypted swap partition, referring to it "by-uuid", on Debian?

It is sensible that if you have any sort of block device encryption implemented on your GNU/Linux system, to encrypt your swap partition too, as any decrypted data may be written in cleartext at any ...
Geeb's user avatar
  • 241
14 votes
1 answer
6k views

Enable blowfish-based hash support for crypt

How do I enable crypt_blowfish support for shadowed passwords and PHP on a Linux (Debian) server? I'm referring to the OpenBSD-style Blowfish-based bcrypt, known in PHP as CRYPT_BLOWFISH. As far as ...
Jacco's user avatar
  • 377
14 votes
3 answers
2k 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 ...
Eric Platon's user avatar
13 votes
4 answers
2k views

How to store data on a machine whose power gets cut at random

I have a virtual machine (Debian) running on a physical machine host. The virtual machine acts as a buffer for data that it frequently receives over the local network (the period for this data is 0.5s,...
Sevas's user avatar
  • 249
13 votes
5 answers
24k views

How to Enable IPtables TRACE Target on Debian Squeeze (6)

I am trying to use the TRACE target of IPtables but I can't seem to get any trace information logged. I want to use what is described here: Debugger for Iptables. From the iptables man for TRACE: ...
bernie's user avatar
  • 385
13 votes
6 answers
61k views

Ubuntu - /usr is full up, recommend anything in there I can delete?

A friend of mine partitioned his ubuntu system with /usr on a separate partition. That partition is now full. He can't use apt to install new software. Is there anything in /usr that he can safely ...
Amandasaurus's user avatar
  • 32.3k
13 votes
2 answers
2k views

Allow complex sudo command on Debian Linux

I need to allow a specific command on a Debian Linux box for a single user. I've tried this in the /etc/sudoers file: # User privilege specification zabbix ALL=NOPASSWD: /usr/bin/apt-get --print-...
Daniel's user avatar
  • 3,157
13 votes
4 answers
33k views

Is there a way to remove "Last message repeated x times" from logs?

I have a script that updates me on any changes to the kernel log on my (Debian) servers. The problem is that occasionally the log contains lines like: last message repeated 4 times I realize that ...
Brent 's user avatar
  • 23.3k
13 votes
5 answers
37k views

Set JDK 8 as the default Java on Debian 8

I'm trying to set the Java SDK 8 tools (installed from the debian backports repo) as the defaults. # update-java-alternatives --list java-1.7.0-openjdk-amd64 1071 /usr/lib/jvm/java-1.7.0-openjdk-...
Edd Barrett's user avatar
13 votes
2 answers
45k views

Default arp cache timeout

I didn't found how check and change the default arp cache timeout on Linux. I using debian with kernel 3.x (but I supposed it same with older kernels)
Pol Hallen's user avatar
  • 1,113
13 votes
8 answers
52k views

nmap on my webserver shows TCP ports 554 and 7070 open

I have a webserver that hosts various websites for me. The two services that are accessible outside are SSH and Apache2. These are running on a non-standard and standard port, respectively. All other ...
Alex's user avatar
  • 237
13 votes
4 answers
45k views

Starting a script as another user

I've created a script in /etc/init.d/ which has to run several other scripts from other (non-root privileged) users from their home directories, as if they started them. I launch these scripts with:...
Ivan Kovacevic's user avatar
13 votes
2 answers
69k views

How to do port forwarding/redirecting on Debian?

I have two questions. Question 1: My debian machine has interface eth3 with ip 192.168.57.28. If someone tries to connect to 192.168.57.28:1234 how do I redirect the request to another machine: 192....
Dánjal Salberg Adlersson's user avatar
13 votes
7 answers
39k 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 ...
Ryaner's user avatar
  • 3,127
13 votes
2 answers
61k views

How to remove 'update-alternatives' links on Linux

Sorry for asking this, but I cannot resolve such a simple issue for a few hours: I made a typo mistake in update-alternatives --install /usr/lib64/R/lib/libRblapack.so libRblapack.so /usr/lib64/R/...
user2723490's user avatar