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)

2
votes
4answers
390 views

Strange file ownership with Ubuntu

Normally we know when we create one file in Linux, the file's owner and group will set with the creator. For example, I have one user, usera, after I execute usera@srv1:$touch 1.txt I will find the ...
2
votes
2answers
710 views

RAM usage doesn't add up? (Free+used < total)

Lately I've been noticing that my monitoring script which reads from /proc/meminfo and /proc/<pid> has been showing odd readings, where several hundred MB seem to be missing. htop is showing the ...
2
votes
4answers
650 views

Update Linux Path permanently [duplicate]

Possible Duplicate: How do I set a user environment variable? (permanently, not session) How can I permanently modify the PATH variable in Ubuntu? Is it possible to do it without modifying ...
2
votes
2answers
808 views

Why won't my X Server won't start as a regular user?

X won't start on my main machine. I can start it as root, but then it only logs me in as root -- I can't use my regular user account. When I start up, it flashes a black screen, then hangs at ...
2
votes
0answers
868 views

power management of USB-enclosed hard drives [closed]

With a typical USB hard drive enclosure, is the full range of drive power management functionality available? edit: moved this into a separate question: In what may be an unrelated matter: is it ...
1
vote
1answer
722 views

Adding Objective C compiler to GCC 4.7.2

I finished building the GCC 4.7.2 with C, C++ and Go compilers on my Ubuntu 12.04. I now want to add the Objective C compiler, is it possible to add it to the previous build? If so, how should i ...
1
vote
2answers
237 views

Prevent GRUB from showing up by default?

Whenever I boot on Ubuntu, I see the entire GRUB menu by default. Is there a way I could make it simply auto-boot if uninterrupted within X seconds? I remember that this was the case on previous ...
1
vote
1answer
767 views

Why does “xdg-open” fail although “xdg-mime query defaut ” succeeds on Ubuntu 10.10?

On Ubuntu 10.10, xdg-open fails to open the file and give me the error: No application is registered as handling this file But xdg-mime query defaut ... succeeds for the mime type. Why? Here is ...
1
vote
2answers
843 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
96 views

Why does my wlan0 stop working?

A few minutes ago, my internal wireless card wlan0 on Thinkpad T400 starts not working. This always happen after a while (between half an hour and several hours) from starting Ubuntu 12.04, especially ...
0
votes
1answer
4k views

How to recover the partition table (Windows, Ubuntu) of an unallocated disc?

The following screenshot shows the current state of my hard disc. The unallocated part of the disc used to contain two operating systems: Windows and Ubuntu, in this order. Windows has been ...
0
votes
0answers
135 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
684 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 ...
-1
votes
2answers
6k views

Problem Windows 8.1 Ubuntu 14.04 dual boot

I installed Ubuntu 14.04 on a computer that has Windows 8.1 preinstalled, following the next link http://itsfoss.com/install-ubuntu-1404-dual-boot-mode-windows-8-81-uefi/ Now I can not dual boot. ...
23
votes
9answers
9k views

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 ...
28
votes
9answers
60k views

How do I set my DNS on Ubuntu 14.04?

Most of the info I see online says to edit /etc/resolv.conf, but any changes I make just get overridden. $ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by ...
7
votes
5answers
6k 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 ...
16
votes
3answers
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 ...
12
votes
1answer
1k 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 ...
11
votes
5answers
6k 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
6answers
9k 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 ...
8
votes
3answers
12k 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 ...
8
votes
1answer
24k 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 ...
8
votes
4answers
26k 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 ...
22
votes
4answers
15k 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 ...
15
votes
3answers
60k 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 ...
13
votes
2answers
9k 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 ...
9
votes
2answers
15k 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 ...
6
votes
1answer
8k views

~/.xinitrc not being run

I am not able to run my ~/.xinitrc (~/.xsession) scripts when logging into my computer. I'm using Xubuntu 12.10 with vanilla lightgm as the login manager. Both these files have the right permission ...
5
votes
2answers
26k views

How to fix boot into initramfs prompt and “mount: can't read '/etc/fstab': No such file or directory” and “No init found”?

Installing a new system using a GPT partitioned disk dedicated to a single partition, ext4 formatted, extlinux (version 4.05) as bootloader, Ubuntu Core version 13.10 amd64 as rootfs, and Ubuntu ...
4
votes
1answer
2k views

qemu - two clients (tap0 & tap1) via br0 can't ping eachother but server pings ok

I've got: A host system running Ubuntu with KVM (functional) Two clients, one Ubuntu and one Windows 7, nothing fancy. I've also setup (see below) a bridge via br0 for the clients: br0: ...
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
2k 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?
11
votes
5answers
16k 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. ...
7
votes
1answer
4k 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 ...
7
votes
5answers
8k views

Why is this network connection so slow?

I am having some problems with network performance speed on a Linux server running Ubuntu 9.10. Transfer speeds on all types of traffic are around 1.5MB/s on a 1000mbit/s wired ethernet connection. ...
6
votes
3answers
353 views

Effect of compiling from source on already installed applications

I use Ubuntu 12.04. Say I have installed package x from the repository (with all its dependencies) at version 1.7 but I need some functionality that is only available in version 1.8, so I download the ...
6
votes
1answer
16k 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
3answers
3k 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
612 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 ...
4
votes
1answer
1k views

Gnome programs (eog/gnome-terminal) have a slow start and produce a DBus.Error.NoReply Warning

For some time eog and gnome-terminal are starting very slow on my (X)Ubuntu 13.10. I think other gnome tools are affected, too, but I don't use any else. Now I get a ...
4
votes
2answers
987 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, ...
4
votes
2answers
7k 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 ...
4
votes
1answer
371 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
867 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 ...
1
vote
2answers
5k views

can't start x11vnc without attached monitor

I'd like to setup x11vnc (or any other vnc server) to start at boot-time. The display manager is kdm, the distribution is Ubuntu 12.04.2 LTS. When I try to start x11vnc, I'm getting this errors: $ ...
11
votes
3answers
17k 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 ...
10
votes
3answers
7k views

Mount a filesystem read-only, and redirect writes to RAM?

Is it possible to mount a loopback file as read-only, and redirect all writes to RAM?
9
votes
1answer
7k 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
3answers
541 views

Harddrive I/O per Pid

is there any way to see the disk I/O per pid/process ? Monitorix shows me the following and correct me if I´m wrong, but it looks like that the harddrive is slowing down the whole system: UPDATE #1 ...