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)

1
vote
2answers
760 views

restore suse grub

I upgraded my ubuntu and that resulted in its grub loader being used. I have a triboot of windows, ubuntu and suse. I prefer the suse bootloader which I was using before the ubuntu updates. I would ...
0
votes
0answers
60 views

Error while burning DVD

I'm working on Ubuntu 13.04. I purchased a few DVDs of Sony company from a few different shops but it failed to burn all these. Earlier I had used the Sony DVD only to burn the same date & it ...
0
votes
2answers
480 views

Issue with bad sectors on a laptop hard drive

I had Windows installed on my laptop and suddenly one morning Windows couldn't start. Then I tried after formatting and for once it became possible. I also installed Ubuntu as logical drive (deleted ...
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 ...
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 ...
7
votes
5answers
5k views

Dual monitors and panels

I have a question with regard to a multiple monitor setup. I'm currently primarily a Windows user, but I've been running Ubuntu in dual boot to get a feel for it. The one thing I find lacking that ...
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 ...
9
votes
2answers
14k views

iptables --set-mark - Route diferent ports through different interfaces

Short story, 3 interfaces, eth0 (LAN), eth1(ADSL), eth2(4G). eth0 -> eth1: Works (ports 80, 443, 4070) eth0 -> eth2: Doesn't happen This is a graphical representation of the idea: Port 80 & ...
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 ...
9
votes
1answer
650 views

How do I make my laptop sleep when it reaches some low battery threshold?

I'm using Ubuntu, but I have i3 as my window manager. Under i3, when my battery reaches 0%, the computer will just abruptly shut down, no warning or anything. Is there a simple script or ...
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 ...
8
votes
5answers
5k views

How can I switch between different audio output hardware using the shell?

I use my laptop with an external monitor which has speakers. When the monitor is attached through HDMI I can switch (using the GUI: Sound Setting --> Hardware) between the normal laptop audio output ...
3
votes
2answers
1k views

best practice to backup config files

I want to setup froxlor on not fresh install remote server (Ubuntu 10.04.2). I take care of admin the server since two month. Before I start, the previous guy installed and config some services and ...
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 ...
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 ...
9
votes
4answers
33k views

“Input/output error” when accessing a directory

I want to list and remove the content of a directory on a removable hard drive. But I have experienced "Input/output error": $ rm pic -R rm: cannot remove `pic/60.jpg': Input/output error rm: cannot ...
8
votes
3answers
7k views

How to configure external IP addresses for LXC guests?

I'm exploring the LXC features in Ubuntu 12.04 and I really want to set up a network like this: client1: 192.168.56.101/24 lxc-host: 192.168.56.102/24 guest1 192.168.56.201/24 guest2 ...
7
votes
2answers
265 views

Triggering an action when a specific volume is connected

I have a USB key that contains my keepass2 password database and I'd like to perform some actions when it is plugged into my computer, namely: Auto-mount it to some specific location When the ...
5
votes
1answer
18k views

Booting linux from usb using EFI

I need to use a USB drive as an installation media for my Mint and Ubuntu. For that I have unetbootin to make the usb bootable. But my PC only supports EFI boot (while adding the boot device, I need ...
5
votes
1answer
9k views

Installing openjdk-7-jdk does not update java (which is still version 1.6)

I am having issues updating Java. I am running Ubuntu 11.10. I can execute sudo apt-get install openjdk-7-jdk and it completes successfully. javac -version is 1.7, however java -version is 1.6. This ...
5
votes
2answers
9k views

Ubuntu Server Continuously “goes to sleep”

I am running a web server at home using Ubuntu 11.4 (maybe? I can't 100% recall) on an older AMD 2400+ desktop with 1 or 2 GB of RAM. Sorry I can't recall the details 100%. Anyway, I have a KVM ...
5
votes
3answers
2k views

Prevent claiming of novelty usb device by usbhid so I can control it with libusb?

I have a USB rocket launcher that I wish to experiment with through libusb. However, libusb cannot claim the interface; presumably because the output of usb-devices lists 'usbhid' as the driver for ...
5
votes
2answers
510 views

Sync files from a mac to a flash drive - automatically?

I have a flash drive, let's name it FLASH. I want, when on my mac, when FLASH is plugged (and automatically mounted), execute a specific script and make ~/Documents to be automatically copied to ...
3
votes
3answers
12k views

How can I look up a username by id in linux?

The command id can be used to look up a user's uid, for example: $ id -u ubuntu 1000 Is there a command to lookup up a username from a uid? I realize this can be done by looking at the /etc/passwd ...
3
votes
2answers
918 views

How to see who is logged on to many workstations?

Before I go to work creating my own I would like to find an existing system to do the following: Provide a concise list of users logged on to any of the workstations Show workstation host name, IP, ...
3
votes
1answer
359 views

Problems moving home partition

I was running low in disk space on my Linux box, Ubuntu 10.10 Desktop, (specifically on my /home partition) so I added another disk to it and I am trying to move the home partition into it. I am ...
2
votes
3answers
808 views

Why does the adduser command behave surprisingly?

I see various examples of how to add a user on Ubuntu server I have Ubuntu 10.04.2 LTS I was logged in as root and, when running adduser, my SSH command line asked me for both a 'new password' AND ...
8
votes
1answer
5k views

swapon: Operation not permitted

I'm running this as root, obviously. I've created a file called /swap/sw1, by dumping 512 megs of /dev/zero into it. I then ran mkswap, which said: Setting up swapspace version 1, size = 524284 KiB ...
7
votes
1answer
261 views

No volume control in Nexuiz fullscreen mode

While playing Nexuiz on my Ubuntu in fullscreen mode the volume control buttons on my laptop don't work at all, externally after minimizing the game increasing/decreasing the sound solves the problem ...
6
votes
1answer
2k views

How to launch an application with default “terminal emulator” on Ubuntu?

I wanted to execute some command in terminal emulator, like Konsole, but I need to make this cross-desktop. Is there some command like xdg-open, but for getting the default terminal emulator? I'm ...
5
votes
1answer
702 views

What fast UI mechanisms for page scrolling exist for desktop Linux users?

On Windows, most programs with large, scrollable text containers (e.g. all browsers, most word processors and IDEs) let you press the middle mouse button and then move the mouse to scroll. This ...
5
votes
2answers
9k views

How can I update to a newer version of Git using apt-get?

I've just set up a new machine with Ubuntu Oneiric 11.10 and then run apt-get update apt-get upgrade apt-get install git Now if I run git --version it tells me I have git version 1.7.5.4 but on my ...
5
votes
3answers
1k views

Installation date of Ubuntu

How can I determine when Ubuntu was installed in my computer? There was a different question posted here, but none of them is helpful.
5
votes
3answers
420 views

Suspending my laptop breaks ethernet over firewire, are there commands which can fix it?

As mentioned in this question I am using a firewire cable to provide a private network between my laptop and my desktop, because it makes using the screen sharing program synergy much nicer than using ...
4
votes
1answer
60 views

Why is this static route not taking effect?

Original Question I am running Ubuntu and network manager. I have two different interfaces, eth0 and eth1. Network manager has (as far as I can tell) correctly added this manual route: ~$ ip route ...
4
votes
3answers
1k views

Performing accurate snapshot and incremental backups to a remote server

I have a few Ubuntu (and potentially RHEL) servers I'd like to back up to a central backup server (via rsh/SSH). I'd like to do both snapshot and incremental backups. The goal is that if one of the ...
4
votes
1answer
4k views

How to adjust charging thresholds of laptop battery?

My laptop is Lenovo T400, and OS is Ubuntu 12.04. I have not been able to adjust the thresholds for battery starting charging and stopping charging. I observed that its current starting charging ...
4
votes
1answer
1k views

Run a script after lid is opened

I would like to run a script after my laptop lid is opened. is there anything like rc.local that is run after the laptop wakes up after suspending? I use Ubuntu 12 (I need it because some of the ...
4
votes
1answer
3k views

xinerama, 2 cards, 3 monitors

I've been trying to get this right and I'm so nearly there, but not quite. This machine has an Intel adapter with one monitor, and an ATI adapter with two. I'm happy to use xinerama to get this ...
4
votes
1answer
1k views

The volume “boot” has only 0 byte disk space remaining

I am in Ubuntu 10.04. When I install the software updates with "Update Manager", there is a pop up dialog which tells me "The volume "boot" has only 0 byte disk space remaining" How to get rid of ...
4
votes
2answers
6k views

How to avoid powering down certain USB devices when a machine is suspended

I'd like to maintain power supply to a USB-powered drive when the system goes into suspend (AKA S3 or "suspend-to-RAM") mode. Normally the power is cut while the machine is suspended, which causes it ...
3
votes
6answers
12k views

Black screen at boot with Mint and Ubuntu live CDs

I just bought an HP pavillion g6 laptop, with the hope of installing Linux on it. I have now tried both Linux Mint (my first choice) and Ubuntu, and both simply give me a black screen from the moment ...
3
votes
2answers
2k views

Mount NTFS Partition on Startup in Ubuntu

I have a 10 gigabyte partition which I use for files which I share between my Windows installation and my Oneiric Ocelet (Ubuntu) installation. My Eclipse workspaces exist on this partition. Eclipse ...
2
votes
2answers
141 views

How to know file system of any medium like hard disk, CD/DVD, flash drive? [duplicate]

Is there any command or any way to know what file system is there on a medium like hard disk or CD/DVD or flash drive etc. From GUI gparted one can know the type on hard disks/pen drive but not of ...
2
votes
1answer
257 views

Compile the Ubuntu “Raring” Kernel with the Intel Compiler

Of course, the first question is: why I'm doing this. Just for fun! I'm learning more about Linux kernels and I have a virtual machine that I can replace in 15 minutes. Getting to business, I don't ...
2
votes
2answers
269 views

Can I recover from a system disk error on Ubuntu Linux?

I got a strange looking warning message in Windows Vista about a potential hard disk failure. I say strange because I have never in my life seen that type of warning in Windows. It suggested that I ...
2
votes
1answer
1k views

How to execute a shellscript when I plug-in a USB-device

I want to execute a script when I plug in a device in my Linux machine. For example, run xinput on mouse or a backupscript on a certain drive. I have seen a lot of articles on this, most recently ...
2
votes
2answers
2k views

What do mkfs.xfs and modprobe do when mounting an Amazon EBS instance?

I'm looking through this guide for how to add an EBS volume to an Amazon EC2 instance, and I've found this little part of instructions hard to follow: Create an XFS file system on the EBS volume ...
1
vote
1answer
346 views

How do you fix apt-get update “Hash Sum mismatch”

I have an Ubuntu 12.04 virtual box vm that I instantiate using Vagrant. git clone https://github.com/spuder/puppet-gitlab vagrant up As soon as the vagrant box runs apt-get update, I get the ...