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.

Filter by
Sorted by
Tagged with
38
votes
5answers
72k views

How to disable X server autostart in Debian Jessie?

I have a remote machine running Debian 8 (Jessie) with lightdm installed. I want it to start in no-GUI mode, but I don't want to remove all X-related stuff to still be able to run it though SSH with ...
38
votes
1answer
3k views

How do Ubuntu and Debian manage $HOME for users with sudo privileges?

I have a bash script myhome.sh containing only one line: echo $HOME The script's owner is a user: $ ls -l myhome.sh -rw-rw-r-- 1 user user <date> <time> myhome.sh In Ubuntu 16.04 and ...
38
votes
1answer
6k views

How to create a darknet/Tor web site in Linux?

I have heard a lot about creating darknet sites lately. I also use the Tor browser frequently. The tor service is running in my Debian server at home, and it was installed with: sudo apt-get ...
38
votes
2answers
50k views

How to get back from “testing” to “stable” - Kernel downgrade

currently I am having lot's of fun with apt-get - and the bad thing is, it was my own fault. I had enabled the testing packages in /etc/apt/sources.list to install a certain package. And I told my ...
37
votes
8answers
137k 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: ...
37
votes
5answers
29k views

How to see package version without install?

I want to see the version of a package before I install it. How can I do this?
37
votes
3answers
9k views

Linux Debian codenames

I've got a few, quite silly, non-technical questions about giving codenames to Debian releases. Each Debian release has its unique codename, which is (so far) a characters' name from Toy Story movies ...
37
votes
2answers
22k views

What's the difference between /usr/lib/systemd/system and /etc/systemd/system?

Before all the unit files were in /etc/systemd/system/ but now some are showing up in /usr/lib/systemd/system (<- on CentOS, or /lib/systemd/system <- on Debian/Ubuntu), what is the difference ...
36
votes
1answer
92k views

How to apt-delete-repository? [duplicate]

I would like to run the reverse of this command to remove the non-compatible repository in Debian 8.1 sudo add-apt-repository -y ppa:nemh/systemback where the command add-apt-repository is in the ...
36
votes
3answers
38k 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/...
36
votes
4answers
184k views

How to install the latest Python version on Debian separately or upgrade?

I'm still new to Linux, so I'm still trying to understand where executables and their libraries are and how to install packages, so I have Debian Wheezy 7.3 which has these Python versions: Python 2....
36
votes
7answers
29k views

How to convert a 32-bit (x86) Debian-based system to 64-bit

I have a 32-bit system which runs on a 64-bit processor. How do I convert it to be all-64-bit, without re-installing? I have seen somewhere that it is doable as a result of the new Multiarch framework....
35
votes
7answers
84k views

Backspace, Tab not working in terminal (using ssh)

When I ssh into another machine with Debian with my account(with sudo permissions), my backspace key generates some awkward symbols on pressing. Also Tab & del keys don't work too. On the other ...
35
votes
7answers
51k views

postfix/smtpd: warning: connect to Milter service unix:/var/run/opendkim/opendkim.sock: No such file or directory

I have problem with postfix on debian after upgrading from squeeze to wheezy. Postfix was configured to sign messages using dkim-filter. Before update, everything was working flawlessly, now it fails ...
35
votes
4answers
144k views

Where in Apache 2 do you set the ServerName directive globally?

NOTE: This is related to my question: "Apache 2.4 won't reload, any problem with my configuration?". I'm trying to test a local site, locally. As I understand Apache 2 (and perhaps Apache as well) ...
35
votes
1answer
94k views

Debian: The repository does not have a Release file

Whenever trying to install some programs from source, or specifically running apt update, I receive this message: E: The repository 'http://ftp.ca.debian.org/debian stretch/updates Release' does not ...
34
votes
4answers
30k views

How is Ubuntu based on Debian?

Linux Mint is based on Ubuntu. Ubuntu is based on Debian. Like this, there are several other linux distributions that are based on Ubuntu, Debian, Slackware, etc. What confuses me is what does this ...
34
votes
3answers
120k views

How to automatically mount an USB device on plugin-time on an already running system?

I know how to use /etc/fstab to automatically mount devices on boot or when doing sudo mount -a, which works perfectly fine. For example, here is my current line for my device UUID=B864-497A /media/...
33
votes
1answer
35k views

How can I access a directory outside a chroot from within it?

I have a user which is chrooted to her home directory, but I want her to also be able to manage files within /var/www. As such, I did the following: root@server:/home/username# ln -s /var/www www ...
33
votes
3answers
17k views

How Debian package should create user accounts?

The package qqq.deb installs the program qqq that should run from uqqq user account. The package consist of the qqq program, qqq.conf config file and /etc/init.d/qqq initscript. How should the ...
32
votes
6answers
49k views

Count number of lines of output from previous program

I'm trying to count the number of lines of output a certain program produces. The problem is, the program takes a long time to run, and I want to display the output to the user. Is there a way to ...
32
votes
4answers
59k 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 ...
32
votes
1answer
20k views

The difference between deb versus deb-src in sources.list

I don't understand the difference between these two lines in my sources.list, please explain: deb http://mirror.optus.net/debian/ testing main contrib non-free versus deb-src http://mirror.optus....
32
votes
7answers
131k views

Tab completion errors: bash: cannot create temp file for here-document: No space left on device

When using the tab bar, I keep getting this error: bash: cannot create temp file for here-document: No space left on device" Any ideas? I have been doing some research, and many people talk about ...
31
votes
4answers
41k views

Set systemd service to execute after fstab mount

I'm working on a systemd .service script that is supposed to start after a CIFS network location is mounted via /etc/fstab to /mnt/ on boot-up. The script waits for an OpenVPN dependency script to ...
31
votes
7answers
36k 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 ...
31
votes
3answers
12k 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 ...
31
votes
3answers
46k views

Unable to add gpg key with apt-key behind a proxy

Adding a gpg key via apt-key systematically fails since I've switched to Ubuntu 17.04 (I doubt it's directly related though). Example with Spotify's repo key: $ sudo apt-key adv --keyserver hkp://...
31
votes
6answers
54k views

What is the difference between Iceweasel and Firefox?

I used Mozilla Firefox in Windows, and now I'm using Iceweasel in Debian 6. Is there any difference to the two programs? What are the advantages and disadvantages to each program? Which one seems ...
31
votes
1answer
17k views

Why does verifying SHA256 checksum with `sha256sum` fail on Debian and work on Ubuntu?

On Ubuntu 14.04, sha256sum from coreutils works as I expected: echo 879dd0d7637876be4796f7e6f194a111d21088be85cfe717fc97e2e7f05e79d2 /tmp/myfile | sha256sum -c /tmp/myfile: OK However, the exact ...
31
votes
1answer
8k views

How does apt-get really work?

Okay, I understand how I may use apt-get {install|upgrade|remove} mypackages to install, upgrade, or remove binaries as well as their configuration data files and dependencies (actually, remove will ...
31
votes
3answers
55k views

Installing a .deb package in home directory

Is it possible to install a .deb package completely under my home directory at debian?
30
votes
3answers
96k views

Install python pip in Debian Wheezy

How to install pip in Debian Wheezy? I've found many advises apt-get install python-pip but the result is "Unable to locate package python-pip" Is pip available in Debian Wheezy? I'm using 7.8
30
votes
2answers
48k views

clear apt-get list

I am building an image for an embedded Linux based on Debian. I did use apt-get update before on the device that I want to use as a base for that image, so the lists under /var/lib/apt/lists are quite ...
30
votes
6answers
54k views

How to completely disable swap?

I am using Debian sid, hard drive formatted with ext4, running on linux 3.1 I remember on previous linux versions (maybe before 3.0), if I run out of memory, and swap is not enabled, programs will ...
30
votes
3answers
54k views

Debian/Grub2: Moving root partition to new drive?

Does anybody have a suggestion for how to move the root partition to a new drive and set up grub2 to boot on that drive? I seem to have no luck instructing grub-mkconfig what it is I want to do (e.g. ...
29
votes
5answers
35k views

vim cut&paste not working in Stretch / Debian 9

Upgraded here a few VM servers to Debian 9. Now when using ssh, we cannot copy and paste between remote terminals. The cursor seems to be doing the movements, and marking the text, albeit in a ...
29
votes
5answers
81k views

How to install latest NodeJS on Debian Jessie?

I just installed NodeJS & NPM on Debian Jessie using the recommended approach: apt-get install curl curl -sL https://deb.nodesource.com/setup | bash - apt-get install -y nodejs However it’s a ...
29
votes
4answers
212k views

How to bring up a wi-fi interface from a command line?

I can't figure out how to properly bring up the wi-fi card on my laptop. When I turn it on and issue $ sudo iwconfig wlan0 txpower auto $ sudo iwlist wlan0 scan wlan0 Interface doesn't support ...
29
votes
2answers
183k views

How to create a bootable Debian USB drive using Windows

I am running Windows 10 and am starting to learn how to boot from USB devices. I have a 16GB USB (USB 3.0) drive and I want to do the following: Make the 16GB USB drive run Debian Linux. Keep ...
27
votes
6answers
9k views

Why is it that my initrd only has one directory, namely, 'kernel'?

I'm using debian live-build to work on a bootable system. By the end of the process i get the typical files used to boot a live system: a squashfs file, some GRUB modules and config files, and an ...
27
votes
3answers
84k views

Changing timezone on Debian keeps Local Time in UTC

I'm trying to get programs to log in local time for my own sanity. I have updated my timezone with: dpkg-reconfigure tzdata But the result of that command is: Current default time zone: '...
27
votes
3answers
4k views

How to get rid of “nano not found” warnings, without installing nano?

Installed Debian Stretch (9.3). Installed Vim and removed Nano. Vim is selected as the default editor. Every time I run crontab -e, I get these warnings: root@franklin:~# crontab -e no crontab for ...
27
votes
3answers
85k views

How to determine why my computer crashed?

Yesterday, I ran a bash script for about 10 hours. When I went to use the computer, it locked up. I have an Eee PC with Debian. The screen was still visible, but the mouse or keyboard had not effect. ...
26
votes
6answers
46k views

Crontab never running while in /etc/cron.d

Here's what I did on Debian Jessie: install cron via apt-get install cron put a backup_crontab file in /etc/cron.d/ However the task is never running. Here are some outputs: /# crontab -l no ...
26
votes
7answers
16k views

Process Monitor equivalent for Linux?

Is there a Unix/Linux equivalent of Process Monitor, whether GUI or CUI? If it makes a difference, I'm looking at Ubuntu, but if there's an equivalent for other systems (Mac, other Linux variants ...
26
votes
3answers
11k views

Why does the 'bin' user need a login shell?

During an audit of /var/log/auth.log on one of my public webservers, I found this: Jan 10 03:38:11 Bucksnort sshd[3571]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=...
25
votes
7answers
11k views

Advantages of Debian over Ubuntu [closed]

What are the main advantages of using Debian instead of Ubuntu?
25
votes
3answers
130k views

How can I expand ext4 partition size on debian

I have a drive with this configuration: fdisk -l Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size ...
25
votes
2answers
38k views

In which log should I check for udev errors?

I've written a udev rule which is run each time my device is mounted/dismounted. However, in which Linux (Debian) error log should I check when debugging such rules?