Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [debian]

Questions specific to the Debian official distribution (stable, testing, or unstable); if you are using a derivative of Debian (e.g. Mint, Ubuntu, Kali, etc), then use that distribution’s tag instead.

70
votes
2answers
92k views

How do I run 32-bit programs on a 64-bit Debian/Ubuntu?

I have a 64-bit (amd64 a.k.a. x86_64) Debian or Ubuntu installation. I need to run 32-bit (i386/i686) programs occasionally, or to compile programs for a 32-bit system. How can I do this with a ...
4
votes
1answer
8k views

Wi-Fi problems using ASUS USB-N13 adapter (realtek)

I have recently bought an ASUS Wi-Fi adapter (USB-N13), and I seem to be having some trouble with it. Every so often, the Wi-Fi connection just stops working, but the indicator says that I'm still ...
19
votes
2answers
12k views

How can I install more recent versions of software than what Debian provides?

Suppose I want a more recent version of software than is available for my current version of an operating system, what can I do? Cases to consider: There are semiofficial/official sources of ...
38
votes
3answers
16k views

How to find out which (not installed) Debian package a file belongs to?

On Debian systems (and derivatives): $ dpkg --search /bin/ls coreutils: /bin/ls That is, the file /bin/ls belongs to the Debian package named coreutils. But this only works if the package is ...
9
votes
2answers
13k views

Separate Network Traffic on Two Network Interfaces

I am not an R&S professional, so much of that realm of computing escapes me. Could you lend your expertise in helping understand how to go about configuring the separation of network traffic on ...
2
votes
1answer
380 views

Whither /etc/init.d/skeleton?

Long-standing advice on writing van Smoorenburg rc scripts for Debian, from many sources including the Debian Policy Manual and answers on StackExchange, until now has been: An example on which you ...
27
votes
3answers
10k views

Access to original contents of mount point

On my headless NAS I have sdf1 (a flash-card) mounted as / while /home is mounted from lv00 (an LVM volume backed by a software RAID). To be able to access the machine when the RAID fails, I have a ...
7
votes
1answer
9k views

CIFS randomly losing connection to Windows share

I have had a couple of directories mounted remotely from a Debian Jessie, in a Windows share, for a few months. In the last weeks, I keep having complaints of random disconnects from the mountpoint, ...
22
votes
1answer
1k views

What's with all the renames: prename, rename, file-rename?

On my Debian system (well, my LMDE system, but close enough), I have at least 3 different rename programs: /usr/local/bin/rename : This is a Perl script, written by Tom Christiansen. Oddly enough, I ...
6
votes
2answers
2k views

Can not create SFTP user Debian 7

I have a linode and I access via ssh throw terminal. I need to create an sftp user which his default directory (and the only he can access) is /var/www/xxxxxx.com/public_html/directory Now, I did it, ...
138
votes
4answers
390k views

How to add repository from shell in Debian?

In Ubuntu one can add a repository via following command - sudo add-apt-repository ppa:yannubuntu/boot-repair As Ubuntu is based on Debian code base, I was expecting that the same would work in ...
20
votes
2answers
24k views

Debian based system, only one gui program, nothing else

I would like to make a debian system where you can only open one GUI program at boot, no other graphical interface, no minimize, or any X apart from that program, is there a way to do it on debian if ...
10
votes
4answers
8k views

What should I do before dual-booting Windows 7 and Debian on EFI?

I'm about to purchase an Asus motherboard with EFI firmware and wanted to prepare myself for installing Windows and Debian once the hardware arrives. I was hoping that someone who has gone down this ...
4
votes
3answers
10k views

How Smooth is Upgrading Linux kernel in Debian 8.5?

I would like to upgrade my Linux kernel to 4.7 in Debian 8.5, since it has significant better Skylake 6th generation support than the current linux kernel. In Ubuntu 16.04, the upgrade is easy. ...
168
votes
3answers
25k views

Why is 'ls' suddenly wrapping items with spaces in single quotes?

I just noticed that on one of my machines (running Debian Sid) whenever I type ls any file name with spaces has single quotes surrounding it. I immediately checked my aliases, only to find them ...
7
votes
1answer
9k views

Installing Debian on Kaby Lake machine: difficulties with X.org

I just recently bought a new PC, and I am unable to install debian system proprerly. Now I will provide you in most detailed way my configuration and status: PC: CPU: i7 7700K (Kaby Lake with Intel ...
84
votes
8answers
167k views

How to install Python 3.6?

I'd like to install the latest Python, which is 3.6 at the time of this post. However, the repository is saying that Python 3.4.2 is the newest version. I've tried: $ sudo apt-get update $ sudo apt-...
39
votes
3answers
49k views

How do I install a single package from Debian testing or unstable on stable?

I want to install a single package (and its dependencies, but only to the extent those are not satisfiable in Wheezy) from Debian Jessie onto my Wheezy system, without upgrading "everything and the ...
4
votes
2answers
7k views

getting Checkpoint VPN SSL Network Extender working in the command line

The official Checkpoint out command line tool from CheckPoint, for setting up a SSL Network Extender VPN is not longer working from the Linux command line. It is also no longer actively supported by ...
98
votes
9answers
83k views

List packages on an apt based system by installation date

How can I list installed packages by installation date? I need to do this on debian/ubuntu. Answers for other distributions would be nice as well. I installed a lot of stuff to compile a certain ...
4
votes
3answers
9k views

Installing Steam on Debian

I have ran into some issues when it went down to install Steam on Debian. The console as well as Apper comes up with missing dependencies and the package isn't going to install.
8
votes
2answers
620 views

System crash - strange chars in syslog

I have a small server which I use for testing and programming. Currently it runs Debian 9.4 stretch with 4.14.0-0.bpo.3-amd64 kernel. Today I tried to connect through SSH but I couldn't then I tried ...
250
votes
10answers
105k views

What is the real difference between “apt-get” and “aptitude”? (How about “wajig”?)

I know that both apt-get and aptitude are command line package management interfaces on Debian derived Linux, with different options, but I'm still somewhat confused. Under the hood, aren't they ...
68
votes
3answers
63k views

What does adduser do that useradd doesn't?

In addition to the more widespread useradd, Debian based systems also contain an additional adduser command which provides a higher level interface for adding users and some related tasks. There are ...
17
votes
3answers
95k views

Can I resize the root partition without uninstalling and reinstalling Linux (or losing data)?

I have started using a machine that has both Debian and Windows 7 installed. However, after installing some programs I started getting a message that there is not enough space. I knew that the system ...
19
votes
1answer
6k views

How to ensure exclusive CPU availability for a running process?

At first, the question seems to be a little bit silly/confusing as the OS does the job of managing process execution. However, I want to measure how much some processes are CPU/IO-bound and I feel ...
16
votes
2answers
13k views

How do I replicate installed package selections from one Debian system to another? (Debian Wheezy)

I am trying to set up a staging environment in a VM, in order to test updates before applying them to my main system. In order to do so, I have done a basic installation of Debian Wheezy (same as on ...
15
votes
3answers
27k views

What packages are installed by default in Debian? Is there a term for that set? Why some of those packages are `automatically installed` and some not?

Is there a term to refer to the subset of packages that is automatically installed by Debian distribution? I though that it had something to do with packages priorities, but it doesn't seem to be the ...
5
votes
3answers
1k views

Better method for acting on IP address change from the ISP?

I have a Debian server at home. The server is my router and provides VPN access to the outside. I do not have a static IP address; the lease time given by the ISP is two hours. This cable cell which ...
8
votes
3answers
11k views

Automount USB drives with no GUI requirement (halevt replacement)

For minimal installations of Debian, I have been using halevt to enable automounting of USB drives. Halevt is reliable and requires no configuration aside from installing the package. Now, halevt has ...
7
votes
2answers
3k views

SSH tunnel through middleman server - how to connect in one step (using key pair)?

My question is basically how to turn my existing two steps into one step. I have a working SSH tunnel set up between two computers using a middleman server like this: Kubuntu_laptop--->nat_fw---&...
44
votes
7answers
48k views

How to create a DEB file manually?

I want to create a DEB file manually. I would like to just provide a folder which contains data to install, and a script to be executed after installation. Is this possible?
32
votes
7answers
124k views

Why can't I run GUI apps from 'root': “No protocol specified”?

I installed debian onto my machine last night. Now, I don't understand why I can't run GUI apps from a terminal when running as root. For example: sudo -i glxgears Generates the following output: ...
67
votes
4answers
102k views

Purpose and typical usage of /etc/rc.local

The header looks like this: #!/bin/sh -e # # rc.local - executed at the end of each multiuser runlevel # # Make sure that the script will "exit 0" on success or any other # value on error. What is ...
22
votes
6answers
49k views

How to install CUDA Toolkit 7/8/9 on Debian 8 (Jessie) or 9 (Stretch)?

How to install Cuda Toolkit 7.0 or 8 on Debian 8? I know that Debian 8 comes with the option to download and install CUDA Toolkit 6.0 using apt-get install nvidia-cuda-toolkit, but how do you do this ...
16
votes
1answer
6k views

What is the difference between the “jessie” and “jessie-updates” distributions in /etc/apt/sources.list?

The debian wiki page for the apt sources list gives this example file: deb http://httpredir.debian.org/debian jessie main deb-src http://httpredir.debian.org/debian jessie main deb http://httpredir....
6
votes
2answers
673 views

Is there a command that outputs ONLY the packages explicitly installed by the user? (ubuntu/debian)

I have tried searching for this but there seems to be no command that can output a list of packages (ideally in Ubuntu) that I have installed, not including any dependencies.
6
votes
2answers
5k views

Debian 9, APT, and “GPG error: … InRelease: The following signatures were invalid:”

I publish a Debian repository. It was signed with a 4096-bit GPG key, and has been merrily in use from Debian 7 and Debian 8 systems for some time. Recently, one of my users reported that Debian 9 ...
5
votes
1answer
815 views

Why is the rename utility on Debian/Ubuntu different than the one on other distributions, like CentOS?

On CentOS, the rename command uses two simple strings, from and to. rename from to file... while on Debian/Ubuntu it uses a perl-style regular expression. rename [ -v ] [ -n ] [ -f ] perlexpr [ ...
0
votes
2answers
5k views

rc.local Not working Debian 8

I'm trying to start a Shell Script on boot/startup I tried to edit the /etc/rc.local file, but it didn't work #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser ...
1
vote
3answers
8k views

startx autologin does not run in /etc/inittab in after Debian Jessie update

I installed a minimal Debian system (stable) without GUI, switched to testing/jessie to be able to get the Cinnamon desktop, but X didn't start on boot. If I log in as myself at the CLI, I can type ...
3
votes
1answer
817 views

Not sure what starts this systemd unit file

So I've been looking at the openvpn configuration on my Debian 9 based server and found something that I cannot explain in the systemd unit files for the openvpn daemon. The daemon itself is starting ...
121
votes
8answers
175k views

“no public key available” on apt-get update

When performing apt-get update, I get the following error: root@ADS3-Debian6:/home/aluno# apt-get update Atingido http://sft.if.usp.br squeeze Release.gpg Ign http://sft.if.usp.br/debian/ squeeze/...
27
votes
7answers
29k views

Simplest way to send one-line mail out via command line using gmail?

Using Raspbian and Ubunntu 16.04 LTS so need a generic Linux solution. Requirement is simple: I need a way to send one-line email messages from the command line. I have set up a gmail account just ...
52
votes
2answers
203k views

How to enable diffie-hellman-group1-sha1 key exchange on Debian 8.0?

I am unable to ssh to a server that asks for a diffie-hellman-group1-sha1 key exchange method: ssh 123.123.123.123 Unable to negotiate with 123.123.123.123 port 22: no matching key exchange method ...
43
votes
1answer
13k views

What is $debian_chroot in .bashrc?

What is the debian_chroot variable in my bashrc file? and what is it doing here? PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
33
votes
3answers
36k views

How to undo sudo add-apt-repository?

I run sudo add-apt-repository ppa:noobslab/indicators to install my-weather-indicator but it requires GTK3 and I don't want to proceed. So I'd like to undo that command. I'd checked my /etc/apt/...
8
votes
1answer
33k views

How do I install “non-free firmware” (wifi driver) from USB? (Debian)

I just installed Debian on laptop, it tells me Some of your hardware needs non-free firmware files to operate. The firmware can be loaded from removable media, such as a USB stick or floppy. ...
30
votes
4answers
57k views

locale not found/setting locale failed - what should I do?

I've installed Debian 7 i386 on my VPS (OpenVZ). Everything works fine, except locales - any attempt to install anything shows: [...] perl: warning: Setting locale failed. perl: warning: Please check ...
20
votes
4answers
43k views

How to install GCC 5 on debian jessie 8.1

I tried many solutions to install update for my gcc compiler on debian server. None of them worked. I need the compiler update to use new features of c++11, as this provides a stable libcxx11 ABI, and ...