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

learn more… | top users | synonyms

88
votes
5answers
83k 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?
81
votes
5answers
243k 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 ...
81
votes
6answers
30k 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 ...
79
votes
7answers
7k 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 ...
71
votes
7answers
33k 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 ...
67
votes
5answers
29k 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 ...
45
votes
3answers
101k 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 ...
38
votes
3answers
39k 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 ...
36
votes
6answers
21k 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 ...
36
votes
3answers
49k 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.
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
8answers
38k 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, ...
33
votes
6answers
6k views

Anything like the Debian Package Manager for Windows?

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 ...
33
votes
2answers
29k 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 ...
26
votes
3answers
7k views

How do I find out which package owns a file?

How do I find out what Debian package a file came from?
26
votes
4answers
45k views

mount dev, proc, sys in a chroot environment?

I'm trying to create a Linux image with custom picked packages. I followed the guide here http://www.olpcnews.com/forum/index.php?topic=4766.0 However, when I tried to install some packages, it ...
24
votes
6answers
32k 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.
21
votes
1answer
15k 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: ...
21
votes
4answers
1k 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
5answers
8k 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 ...
20
votes
1answer
11k 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. ...
19
votes
3answers
5k 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?
18
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 ...
17
votes
2answers
5k 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 ...
16
votes
5answers
629 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 ...
16
votes
1answer
35k 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 ...
14
votes
6answers
47k 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 ...
14
votes
2answers
11k 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).
14
votes
2answers
45k 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
11k 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
2answers
10k 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 ...
12
votes
4answers
21k 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 ...
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
634 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
10k 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?
11
votes
2answers
10k 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
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
5answers
7k 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?
11
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> ...
11
votes
1answer
11k 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 ...
10
votes
4answers
68k 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, ...
10
votes
8answers
5k views

Disk operations freeze Debian

I have just installed Debian testing on my new desktop and I am not very happy with performance - when I perform a disk intensive operation, e.g. upgrade packages in the system, everything seems to ...
10
votes
2answers
3k 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 ...
10
votes
1answer
1k views

In the output of “aptitude update”, what do “Ign” and the other codes mean?

When I run sudo aptitude update from the console, I see output with lines such as this: Get:1 http://security.ubuntu.com lucid-security Release.gpg [198B] Ign http://security.ubuntu.com/ubuntu/ ...
9
votes
5answers
903 views

How do I install a .deb file in Ubuntu

How do I install a .deb file in Ubuntu
9
votes
9answers
18k views

Is there a “restore point” in Linux (Debian/Ubuntu) like Windows?

I'm working directly in an Ubuntu Virtual Machine (VM). Some updates (like kernel) were available at the update manager. If I weren't using a VM, I wouldn't update it since it's a risk to break ...
9
votes
2answers
689 views

Is there any way to limit my Internet connection to a per program basis?

My Linux connection is REALLY free. I live in Brazil, so where I live I can only have 1 Mbit/s. Yes I know it's sad, but it's not the point. Everytime I'm updating my Ubuntu 9.04 or downloading ...
9
votes
3answers
10k views

How to find out which versions of a package can I install on APT

Using APT, you can install a specific version of a package using: apt-get install package=1.0 But you can't do apt-get install package=1.* So, how can I find out which versions are avaliable for ...
9
votes
7answers
12k views

./configure && make && make install

I am logged in as a regular user. Should I use: ./configure && make && make install or sudo ./configure && sudo make && sudo make install or ./configure ...
9
votes
2answers
6k views

Where should the XDG_CONFIG_HOME variable be defined?

The XDG specification talks about the XDG_CONFIG_HOME variable, but does not specify where it should be defined. Should we define it in /etc/X11/Xsession, or is it the window manager's config file ...