Ubuntu is a Linux distribution with an emphasis on ease of use and installation. Note that http://askubuntu.com is specifically dedicated to Ubuntu questions.

learn more… | top users | synonyms (1)

56
votes
19answers
7k views

Root access that can't change root password?

We are having a little problem on a server. We want that some users should be able to do e.g. sudo and become root, but with the restriction that the user can't change root password. That is, a ...
50
votes
7answers
11k views

What is the Linux equivalent to C:\Program Files?

I understand that in Windows as well as Linux and Unix, a program|application|software can be installed in any directory. Also if packages are installed using the distribution's packaging system, ...
42
votes
12answers
33k views

How can I get distribution name and version number in a simple shell script?

I'm working on a simple bash script that should be able to run on Ubuntu and CentOS distributions (support for Debian and Fedora/RHEL would be a plus) and I need to know the name and version of the ...
33
votes
1answer
8k 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\$ '
27
votes
4answers
3k views

How to recover from a chmod -R 000 /bin?

And now I am unable to chmod it back.. or use any of my other system programs. Luckily this is on a VM I've been toying with, but is there any way to resolve this? The system is Ubuntu Server 12.10. ...
25
votes
8answers
16k views

How to copy text from vim to an external program?

I'm trying to copy-paste some text from vim. I'm doing v to enter visual mode, then y once I selected my block. It appears to copy the text into vim's clipboard, because p will paste it. But in ...
24
votes
2answers
12k 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 ...
21
votes
6answers
16k views

Differences between Debian and Ubuntu

I'm getting sick of Ubuntu's seemingly random changes. I'm thinking of switching to Debian permanently. Does anyone know if there's a list of changes between the two distros somewhere? I want to know ...
20
votes
4answers
3k views

What doesn't need defragmentation? Linux or the ext2 ext3 FS?

Why don't you have to defrag a Linux system? Because it's using the ext2/ext3 file system or because it's Linux? That's relevant, because a have a double boot system (W7 / Ubuntu) and a common ...
19
votes
6answers
5k views

Force directory to always be in cache

I've been testing out different methods to improve the time it takes to compile my entire c++ project. Currently it takes ~5 minutes. I experimented with distcc, ccache, and others. Recently, I ...
18
votes
7answers
19k views

Create services in Linux (Start up in linux)

I need one process run before log in to system. how to run it like services?(how do I make services in Linux?) in Ubuntu and Fedora ? the service is customized tomcat
18
votes
4answers
11k views

How can I play a sound when script execution is ready?

I am executing every now and then some python scripts which take quite long to execute. I execute them like this: $ time python MyScript.py How can I play a sound as soon as the execution of the ...
18
votes
4answers
17k views

How to record Skype video calls on Linux?

I'd like to conduct recorded video interviews with Skype and am looking for a reliable tool to accomplish that. Is there anything out there that's not slow or buggy? I'm running (K)Ubuntu.
17
votes
1answer
874 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 ...
16
votes
4answers
2k views

What makes CentOS “enterprisey” compared to “generic” distributions like Ubuntu?

What makes CentOS "enterprisey" compared to "generic" distributions like Ubuntu? When I say "enterprisey" I actually mean "better for server deployments". Just a general question, because I was ...
16
votes
1answer
5k views

Run script on screen lock/unlock

I'd like to run a screen if the Gnome session is locked and unlocked. Is there a way that I can intercept this and perform certain actions when the desktop is locked or unlocked?
16
votes
3answers
5k views

bulk rename (or correctly display) files with special characters

I have a bunch of directories and subdirectories that contain files with special characters, like this file: robbie@phil:~$ ls test�sktest.txt test?sktest.txt Find reveals an escape sequence: ...
15
votes
5answers
2k views

Advantages of Debian over Ubuntu

What are the main advantages of using Debian instead of Ubuntu?
15
votes
8answers
5k views

Ubuntu list explicitly installed packages

In Gentoo there is the file /var/lib/portage/world that contains packages that I explicitly installed. By explicit I mean, packages that I choose, not including anything installed by default, or ...
15
votes
2answers
429 views

Is there an online/web interface to search and list apt-get packages and see summaries and recommendations?

I'm looking for sort of an 'app-store' or Google Play store type functionality for apt-get packages. What I'd really like to do is select a category, like 'Music' or 'Internet' and see the list of ...
14
votes
4answers
433 views

What specific vulnerabilities am I creating by disabling the sudo password?

Here are some instructions on how to disable your sudo password. These carry the following warning If you disable the sudo password for your account, you will seriously compromise the security of ...
14
votes
3answers
3k views

Are multiple @daily crontab entries processed in order, serially?

I want two jobs to run sometime every day, serially, in exactly the order I specify. Will this crontab reliably do what I want? @daily job1 @daily job2 I'm assuming they run one after the other, ...
14
votes
1answer
1k views

How to prevent shutdown when an SSH user is logged in?

I'm administrating a networked environment and I had an interesting situation arise yesterday. When a host is required to shutdown by a regular user, it refuses to do so if other users are logged in ...
13
votes
6answers
1k views

Is there a root password on OS X and Ubuntu?

When you setup a new Ubuntu or OS X installation a user is generally created for you. On OS X it is whatever username you pick. On Ubuntu (the server version) usually the ubuntu user is created. The ...
13
votes
3answers
1k views

How can I de-fragment a drive using Ubuntu?

Is it necessary to defrag drives in Ubuntu? If so, how do I do it and how often should it be done?
13
votes
2answers
7k views

What is the proper way to manage multiple python versions?

I have a machine with Python 2.6 installed as the default Python. Then, I installed Python 2.7, and manually created /usr/bin/python as a symlink to the new installation. Then, I was running into ...
13
votes
1answer
2k views

Meaning of colours in htop

Given the option: [ ] Detailed CPU time (System/IO-Wait/Hard-IRQ/Soft-IRQ/Steal/Guest) In htop (Version 1.0.1) what are the meanings of the colours? In the following image, I'm seeing rather a lot ...
12
votes
2answers
1k views

(SSH) Is it dangerous to close terminal without “exit”?

This happened many times. While the SSH active, I'm so tired and just close the terminal without exit Is it dangerous to doing like that?
12
votes
5answers
14k views

Ubuntu12.04: How to disable a daemon process at startup

I normally use service start/stop or initctl start/stop to start or stop a daemon process but now what I am looking for is to disable a daemon process from starting at startup example mysqld. ...
12
votes
3answers
9k views

Linux, disable /dev/fd0 (floppy)

Is it possible to make Linux kernel completely ignore the floppy disk controller? I do not have the drive but obviously my motherboard does contain the controller. I would like to disable the /dev/fd0 ...
12
votes
2answers
17k views

File permission issues with shared folders under Virtual Box (Ubuntu Guest, Windows Host)

I am using Ubuntu on Virtual Box and I have a folder which is shared between the host (Windows) and the VM (Ubuntu). When I open any file in the share folder in Ubuntu, I can not change it as its ...
11
votes
5answers
4k views

What is the difference between ls and l?

I accidentally typed l instead of ls today and found that the command still printed a list of the files in my current directory. Trying l --help brings up the help file for ls suggesting that l is ...
11
votes
4answers
1k views

Accidentally executed sudo rm /* on a remote server

I accidentally executed rm /* while logged in as root in a remote Ubuntu Server and deleted pretty much all bash commands and currently I can neither log in via ssh or ftp to restore the files (and ...
11
votes
5answers
14k views

How do I set up dual monitor wallpaper (Ubuntu/NVIDIA)?

On Ubuntu 10.4 with NVIDIA drivers I have dual monitors setup with TwinView. How do I configure a single wallpaper to span both monitors? Right now the same wallpaper is replicated on both monitors. ...
11
votes
1answer
2k views

What happens in each step of the Linux kernel-building process?

I've read many tutorials about how to build custom kernels and boot Ubuntu using those kernels, and successfully followed the guides and booted custom kernels, but I have no understanding about what ...
11
votes
1answer
3k views

Installing two glibc alongside in debian/ubuntu

Is it possible to install and use two different glibc versions on the same machine. Where one version is only used to run legacy software, which relies on old glibc binaries? Is it possible to do ...
10
votes
4answers
13k views

What program do I use to check mail?

I'm receiving "You have mail" messages and according to How to remove “You have mail” welcome message I should read my mail with mail. However I cannot find the command in my system (Ubuntu 10.04 ...
10
votes
7answers
272 views

Can I label a disk device rather than a partition?

I know about the e2label and friends program for attaching a label to a disk partition e.g. e2label /dev/sda1 bla What I want to do is something different: I want to create a label for a hard ...
10
votes
4answers
3k views

'mv' equivalent of drag and drop with replace?

In a GUI environment, a drag-and-drop with replace will replace files and entire directories (including contents) with whatever is being copied in. Is there a way to accomplish this same intuitive ...
10
votes
3answers
2k views

Why don't my arrow keys work in sh?

I recently installed Ubuntu and when I run sh on the Terminal my arrow keys don't work so I can't go through my call history or edit whatever I'm typing. It just comes out as weird characters like ...
10
votes
2answers
521 views

Removing abstraction from Ubuntu boot process

I have been using Linux after almost 5 years and observed that boot process has been almost abstracted. I mean, not much is visible to the user what is going on behind the scenes (Due to splash ...
10
votes
4answers
5k views

Screen turns on automatically (xset dpms force off)

I am using xset dpms force off to manually turn my screen off to save power. However, it turns back on after some time (20 - 40 seconds). Distro: Ubuntu-Lucid Graphics: Intel 4500 MHD ...
10
votes
2answers
1k views

Is it possible to simulate installation of Debian packages, still marking them installed?

Here's what I would like. Start with a virtual system with no installed packages. Then I invoke a tool similar to apt-get to ask it to compute the dependencies and mark all the packages that would be ...
10
votes
1answer
275 views

How can I monitor CPU usage by user?

I need to monitor CPU usage by users of two servers' (Ubuntu and CentOS). For example: user1 5% user2 10% ... Is there a tool similar to top or htop that can do that?
10
votes
2answers
15k views

Mouse clicks stop working after random time, using Awesome WM + Gnome

I'm using the Awesome Window Manager together with Gnome in Linux Mint. I experience the following problem several times a day: Suddenly the mouse partially stops working, which means that I'm still ...
10
votes
2answers
636 views

Driver is sometimes loaded, sometimes not

I was assigned an Ubuntu desktop with some stuff already on it. I did not reformat it, but attached a mini-PCI wireless card over a PCI to mini-PCI adapter. I manually built the madwifi driver and ...
9
votes
2answers
985 views

How do I log into my Linux laptop if I have forgotten both the login and password?

How do I log into my Linux laptop if I have forgotten both the username and password?
9
votes
7answers
7k views

How do I work with GUI tools over a remote server?

I have an Ubuntu server running on EC2 (which I didn't install myself, just picked up an AMI). So far I'm using putty to work with it, but I am wondering how to work on it with GUI tools (I'm not ...
9
votes
6answers
7k views

Linux equivalent for Windows Startup

Is there any way to add an application/script to the Linux startup so every time the system is on it executes [i'm looking for some automated way, user should not add this by cron job or something ...
9
votes
5answers
624 views

What should I expect if I switch from Ubuntu to openSuse

As probably most of you I have been long using Ubuntu. I'm not an expert, but I have been using different distros until I settled with Ubuntu. I started using SuSE 5.x, Conectiva (that later became ...