Debian GNU/Linux is a widespread Linux distribution focusing on stability, security, and the free software philosophy.

learn more… | top users | synonyms

109
votes
5answers
100k views

How to list files of a Debian package without install

This command can only list contents of installed packages, dpkg -L PACKAGENAME but how to list contents of a non-installed package, to preview/examine the package?
96
votes
6answers
35k views

How to tell from what Ubuntu or Debian repository a package comes?

On a Debian-based system, including Ubuntu, how can one tell which repository a package will be downloaded from, without actually beginning the download? aptitude show and apt-cache info will show the ...
94
votes
8answers
42k views

Find what package a file belongs to in Ubuntu/Debian?

I frequently find myself missing a program, man page, or other file when working on my Ubuntu 8.04 system. Is there any simple way to look up what package contains a given file (whether it is ...
88
votes
5answers
280k views

How to install the real Firefox on Debian?

Debian 6 ("Squeeze") uses a rebranded version of Firefox called Iceweasel. It, however, lacks plugin support, and most of my favorites don't work. So what is best way to install the "real" Firefox on ...
87
votes
7answers
21k views

Is it possible to ping an address:port?

I am not into networking, and I have the following question related to the Linux ping command. Can I only ping an address? For example: miner@raspberrypi ~ $ ping onofri.org PING onofri.org ...
77
votes
5answers
34k views

Aptitude vs. apt-get: Which is the recommended (aka the “right”) tool to use?

Some time ago I read that aptitude is the preferred tool for installation on Debian-based systems. But when you search around on how to administer a Debian-based system, then aptitude is rarely ...
55
votes
4answers
130k views

How to reinstall a package using apt-get?

It seems that my aptitude is somehow broken sudo aptitude update 0% [Working]Segmentation fault dmesg [223282.616599] aptitude[30972]: segfault at 67707f ip 7f954dcfae5d sp 7ffff5a5f950 error 4 in ...
53
votes
8answers
27k views

Reload a Linux user's group assignments without logging out

When assigning a user's secondary group list using: # usermod -G <grouplist> <user> is it possible to force this group assignment to take effect without logging out all running ...
49
votes
3answers
65k views

How to install local .deb packages with apt-get

Is there a way to install packages store on your HD with apt-get, like a "apt-get install ./package.deb ? If not how to handle the dependencies in a very very easy way.
41
votes
11answers
7k views

What is the relationship between Unix, Linux, Ubuntu and Debian?

What is the relationship between Unix, Linux, Ubuntu, and Debian? I suspect they are all Operating Systems that are based upon one another - similar to how Windows is based on DOS. Is my suspicion ...
41
votes
8answers
51k views

How can I produce high CPU load on a Linux server?

I'm currently in the process of debugging a Cacti installation and want to create CPU load to debug my CPU utilization graphs. I tried to simply run cat /dev/zero > /dev/null, which works great, ...
39
votes
3answers
41k views

Did Debian lenny repositories vanish?

Today, I tried to install packages through apt-get, but I encountered a lot of 404 errors. My sources.list was fully working last Friday (no changes to my knowledge), now I get: W: Failed to fetch ...
35
votes
7answers
3k views

How can a Linux OS be “based on” another Linux OS?

I've been looking through quite a number of Linux distros recently to get an idea of what's around, and one phrase that keeps coming up is that "[this OS] is based on [another OS]". For example: ...
34
votes
2answers
35k views

Can I create an SSH user which can access only certain directory?

I have a Virtual Private Server which I can connect to using SSH with my root account, being able to execute any linux command and access all the disk area, obviously. I would like to create another ...
34
votes
1answer
7k views

Anything like the Debian Package Manager for Windows? [on hold]

I know that sounds a weird request. But I was installing a bunch of packages in Ubuntu yesterday, using apt-get and I started wondering if anyone had adapted it or produced anything similar for ...
31
votes
3answers
8k views

How do I find out which package owns a file?

How do I find out what Debian package a file came from?
30
votes
1answer
18k views

logrotate configuration file syntax - multiple wildcard entries possible?

Since the man page doesn't answer my question and I don't want to force a rotation cycle, I decided to ask the question here. The man page for logrotate gives the following example: ...
28
votes
4answers
54k views

mount dev, proc, sys in a chroot environment?

I'm trying to create a Linux image with custom picked packages.What I'm trying to do is to hand craft the packages I'm going to use on an XO laptop, because compiling packages takes really long time ...
27
votes
6answers
37k views

Apt-cache: How to list all installed packages with version number?

apt-cache dump --installed doesn't work, it lists uninstalled packages as well. I want to list the install packages each by one line, with the installed version number.
25
votes
7answers
35k views

How do I fix the Shellshock security vulnerability in debian testing/jessie?

The test command x='() { :;}; echo vulnerable' bash shows that my Debian 8 (Jessie) installation is vulnerable, even with the latest updates. Research shows that there's a patch for stable and ...
24
votes
2answers
8k views

What's the difference between “adduser” and “useradd”?

I wonder: Why are there these two commands on Debian Linux, with very similar names and functionality? This has always been confusing for me. Is any of them superior to another? Why aren't they ...
21
votes
5answers
9k views

What is the difference between Debian and Ubuntu?

From what I heard Ubuntu is a basically a Debian Linux with some extra applications and drivers pre-installed in order to make it more user friendly. Is that all? Or are there deeper, more ...
21
votes
4answers
2k views

Can unexpected power loss harm a Linux install?

I am developing an application on a Linux embedded board (runs Debian) e.g. Raspberry Pi, Beagle Board/Bone, or olimex. The boards works on an environment that the electricity is cut unexpectedly (it ...
21
votes
1answer
12k views

Ubuntu's /etc/alternatives mechanism

I'm trying to better understand Ubuntu's /etc/alternatives mechanism. The basics are easy: it allow for multiple "providers" to be installed on the same machine, and configures which is the default. ...
20
votes
3answers
6k views

How do you find the Ubuntu version (release number / name) from the command line?

How do you find the Ubuntu version (release number / name) from the command line?
19
votes
3answers
1k views

Why a non-root user can delete files created by root?

Given a non-root user "joshua", as root I created a file called "foo" at joshua's home directory (/home/johsua/); it look like this: -rw-r--r-- 1 root root 0 12-19 21:00 foo and then ...
18
votes
1answer
39k views

Why use the command apt-get --purge remove over apt-get purge in Linux?

I have been uninstalling applications as well as removing or purging their configuration files using the command apt-get --purge remove {package_name}. I have come across several posts on the net ...
17
votes
6answers
58k views

How to install debian from a usb drive?

I've got a shining new x64 laptop running Windows 7 and I want to dual boot debian stable. I've installed ubuntu on loads of laptops in the past using a USB drive, but I can't find decent ...
16
votes
2answers
12k views

Which Debian package architecture am I using?

What's the command to find out which Debian package architecture I'm using? eg, on a 64 bit x86, I'm expecting something like amd64, i386 on 32 bit x86 and darwin-x86_64 from OSX 10.6 (via Fink).
16
votes
5answers
674 views

How risky it is to have a personal server with ssh opened to the Internet?

Title continuation would be “while having limited knowledge of Internet security”. I have recently set up a small server with a low end computer running debian with the aim to use it as a personal ...
14
votes
2answers
48k views

gcc path not valid when installing VMWare Tools from VMWare Workstation 7.1.1 build-282343 on Debian squeeze

I am trying to install VMWare tools on Debian Squeeze. My error: Before you can compile modules, you need to have the following installed... make gcc kernel headers of the running kernel ...
13
votes
2answers
13k views

How to set up wireshark to run without root on Debian?

I'm trying to use wireshark on a Debian machine, but when I run it with my non-root user account, it doesn't detect any network interface. I also tried running wireshark as root, but wireshark tells ...
13
votes
4answers
27k views

Unable to install VIrtualbox, `“Specify KERN_DIR=<directory>”` — installing Virtual Box to Debian?

I am getting this error "Makefile:181: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop." What is this error and how to ...
13
votes
2answers
12k views

Windows 8 + Linux Dual Boot under UEFI BIOS

My intent in a very near future is to set up a dual boot system with Windows 8 and Debian Linux (for testing purposes) on a Lenovo Ideapad 205, that has UEFI BIOS. I saw several articles about the ...
12
votes
4answers
12k views

How can I map Win + L to lock screen in KDE4?

How can I map the keyboard shortcut to locking a session in KDE 4?
12
votes
5answers
12k views

How do I make sshfs work in Debian? (I get /dev/fuse: Permission denied )

I've moved from Ubuntu to Debian on a machine and all my sshfs mounting scripts fail with fuse: failed to open /dev/fuse: Permission denied now. Am I missing something simple?
12
votes
2answers
2k views

How can I make “ls” show dotfiles first?

Somewhere along the way I screwed up my ls command and now I get this ordering when running $ ls -AhHl --color=auto -rwxr-xr-x 1 clang clang 640 Mar 1 02:46 apple-touch-icon-precomposed.png ...
12
votes
5answers
9k views

How to search for debian packages with command line?

I do know http://packages.debian.org/ provide the search facillity. The problem is how could I search the packages with just command line?
12
votes
3answers
4k views

Font substitution with ~/.fonts.conf

I'm trying using ~/.fonts.conf to replace Helvetica with Droid Sans, here's the content of the file: <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> ...
12
votes
1answer
14k views

Using multiple USB webcams in Linux

Running more than one USB webcam in Debian/Linux results in the the following error: libv4l2: error turning on stream: No space left on device VIDIOC_STREAMON: No space left on device What ...
12
votes
4answers
1k views

Am I attacked or just stupid?

I run a server using Debian Squeeze with several OpenVZ containers. The containers run mostly Squeeze, some Lenny, and some already updated to Wheezy. The host doesn't do that much beyond iptables and ...
12
votes
1answer
724 views

Assigning USB hub to specific seat in multiseat configuration

On my debian-based machine, I have a working multiseat configuration. One annoying detail that so far I couldn't fix is that any USB hardware I connect is always assigned to the primary seat. ...
11
votes
3answers
18k views

finding L2 cache size in Linux

I wanted to know how to find L2 cache size in Linux... for L1 cache size, I am doing the following pico /proc/cpuinfo what about L2 cache size?
11
votes
4answers
98k views

How can I resolve the error “cannot execute binary file”?

When I login using SSH, all I can see is this... -bash: /usr/bin/id: cannot execute binary file -bash: [: : integer expression expected I couldn't do anything in here. Commands such as halt, ...
11
votes
2answers
31k views

How to fix “/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found”?

How to fix this error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found Platform: Linux alef 3.2.0-4-amd64 #1 SMP Debian 3.2.35-2 x86_64 GNU/Linux
11
votes
2answers
11k views

How to display a message before login?

I need to display a message before any login on a Linux box, either locally and for remote login via SSH. How can I achieve this? Edit: Thanks for your answers. I had to pick one accepted answer, ...
11
votes
2answers
4k views

Make ulimits work with start-stop-daemon

I have an init.d script that starts an app using start-stop-daemon --chuid SOME_SYSTEM_USER. That is, the app runs under a different user, not root. Problem is, the app needs special limit settings ...
11
votes
2answers
8k views

How do I migrate from Ubuntu to Debian?

I've been considering migrating my laptop from Ubuntu to Debian. I didn't set up a separate home partition. Is it as easy as just installing Debian over Ubuntu?
11
votes
1answer
9k views

The simplest way to set up a secure, IMAP, email server? [closed]

I would like to get rid of Google as an email provider, and set up a complete email solution on my dedicated server. The issue: I wish the setup to be as simple as possible, so that it wouldn’t be a ...
11
votes
1answer
2k views

how to disable SendEnv variables set in ssh_config from ~/.ssh/config

I couldn't find that anywhere so I'm wondering am I the only one hitting such issue. By default ssh on Red Hat and Debian at least has a ssh_config with SendEnv option passing LC* and LANG variables ...