Questions tagged [debian]
Debian GNU/Linux is a widespread Linux distribution focusing on stability, security, and the free software philosophy.
6,255 questions
605
votes
16
answers
560k
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 sessions?
...
411
votes
7
answers
304k
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 ...
391
votes
9
answers
432k
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?
295
votes
17
answers
509k
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 ...
262
votes
5
answers
864k
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 ...
213
votes
4
answers
458k
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 apt-get install ./package.deb?
If not, how to handle the dependencies in a very very easy way?
185
votes
6
answers
84k
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 ...
142
votes
8
answers
402k
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 ...
140
votes
8
answers
1.2m
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, poweroff,...
130
votes
5
answers
84k
views
How do I find out which package owns a file?
How do I find out what Debian package a file came from?
130
votes
11
answers
560k
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 ...
109
votes
4
answers
116k
views
How do I remove all i386 architecture packages from my Debian installation?
I added foreign architecture i386 to my Debian amd64 installation. How do I remove it? When I try this command: dpkg --remove-architecture i386, I am told to first remove all i386 packages.
109
votes
3
answers
126k
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:
"/var/log/...
107
votes
7
answers
208k
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 ...
99
votes
5
answers
66k
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 merged ...