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)

7
votes
1answer
1k views

wubi pros and cons

Do you have experience using Wubi and if so, what are the major pros and cons ? I am of course particularly interested in potential problems.
7
votes
2answers
141 views

Removed apt-get from Ubuntu

Well my fingers did manage to do sudo apt-get remove libstdc++6 and write, yes. That removed alot of system files. Is there any way to bring it up working again? I have connected to terminal, and wget ...
7
votes
2answers
519 views

Should I use http or ftp links in apt sources.list

Should I use http or ftp links in /etc/apt/sources.list? What I mean is is using something like, deb ftp://ftp.debian.org/debian/ squeeze main contrib non-free deb-src ftp://ftp.debian.org/debian/ ...
7
votes
3answers
1k views

How can I set that only root + a given user can shut down my pc?

If I'm using Ubuntu 11.04, how can I configure it such that that only two users can shut down/suspend/hibernate my PC: the root user and one regular user?
7
votes
2answers
5k views

Add Apache to Ubuntu's startup

I'm currently learning the Linux environment, and decided to manually install the Apache server. For educational purposes, I've compiled it into: /server/apache The http.conf location is configured ...
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 ...
7
votes
3answers
18k views

How can I fsck a partition when the device reads as busy (but has been confirmed otherwise)?

I'm attempting to run fsck -p /dev/sda5 to repair errors on an ext4 partition, however the command outputs fsck from util-linux-ng 2.17.2 fsck.ext4: Device or resource busy while trying to open ...
7
votes
2answers
280 views

Can I get infected in this case if I run a live cd?

I recently got rid of a nasty trojan on Windows and want to migrate to Linux(Ubuntu). I want to run a Live CD so that I can format an SD card to put my brand new firmware on my router and format the ...
7
votes
4answers
9k views

How to find the IP address of a KVM Virtual Machine, that I can SSH into it?

I have follow this guide (Virtualization With KVM On Ubuntu 11.10) to setup my KVM (Virtual Machines Software) on my Ubuntu 11.10 Server. However, I didn't setup my VM's IP address when creating the ...
7
votes
1answer
270 views

Finding the library versions a library was linked against

I have a library that was compiled on an unknown Ubuntu machine, And I'd like to determine what version of Ubuntu that machine had at the compile time. My idea was to try and find the versions of ...
7
votes
3answers
2k views

“Unable to resolve hostname” - how to cleanly change hostname without rebooting

At work, I work on a small website using Ubuntu servers hosted on Amazon EC2 instances. We have two webservers, and at any given time one of them is 'live' and one is 'testing', but when we've got our ...
7
votes
5answers
1k views

Unable to connect to a wifi network with a special SSID

My current wifi network (and i'm writing this with the help of Windows -.- ) has a special character in it's SSID: "ö", a so-called "umlaut". If changing the SSID is not an option, how to connect to ...
7
votes
3answers
435 views

Is it possible to execute scripts in BIND based on lookup

Is it possible, to set up BIND as DNS server on my local network, and make execute scripts when it gets a lookup? I would like to execute a Python or Bash script, based on the incoming DNS lookup, ...
7
votes
2answers
348 views

Low battery freezes laptop

I have a laptop Lenovo G575. MS Windows works without any problems on it, but with Linux, it freezes during login or up to 10 minutes after power on. I have tried Ubuntu, Fedora 15 and 16, Fedora 16 ...
7
votes
2answers
510 views

No sound when attached to docking station

I have been using Linux and Ubuntu only since the last two months on my (2006) Sony Vaio VGN A617S laptop which is going pretty well on Ubuntu 10.10. When installing Ubuntu audio did get installed ...
7
votes
1answer
262 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 ...
7
votes
1answer
268 views

Installing USR 5422 on Ubuntu 12.04

I am a newbie to Linux. I was trying to set up the USR5422 USB adapter. It worked fine for the first time, but since then it freezes the computer most of the time. What commands can I fire to see ...
6
votes
2answers
116 views

What is the rationale behind using non-numeric package component for the version?

In ubuntu (and not only in ubuntu) default repository you could see a package version like 2.2.14-5ubuntu8.12. Why do the maintainers give such a weird version in the central package repository? ...
6
votes
3answers
1k views

Command line join of password protected wireless networks in Ubuntu, Arch Linux, or other distros?

Is there a way to join a password protected wireless network via the command line in installations of Ubuntu or Arch Linux with no desktop environment or any GUI installed? Also, could this be done ...
6
votes
3answers
2k views

The rc0.d,rc1.d,… directories in /etc

I'm running Ubuntu 10.04 LTS where I have the directories /etc/rc0.d, /etc/rc1.d, /etc/rc2.d, ..., /etc/rc6.d. Example files from my machine: directory example symlinks in the dir ...
6
votes
3answers
3k views

/etc/rc.d vs /etc/init.d

Is ubuntu's /etc/init.d directory exactly equivalent (functionally) to what I presume to be the more standard /etc/rc.d/ (at least on arch)? Is there any particular reason canonical used init.d ...
6
votes
1answer
5k views

apt-get doesn't stop on Ctrl-c, what to do?

Occasionally I have connection problem with apt-get (typically because I use it behind a proxy and try to install/upgrade flash). I have been trying sending Ctrlc but it would not stop. I thought it ...
6
votes
3answers
229 views

How does bash know how it is being invoked?

I've installed jailkit on Ubuntu 12.04 and I have set up a user's shell to /bin/bash - but when it is invoked it runs /etc/bash.bashrc instead of /etc/profile If you haven't used jailkit before ...
6
votes
3answers
5k views

I changed my hostname, why is my bash PS1 prompt unchanged

I changed my hostname by editing /etc/hostname and can see the new hostname using the hostname and hostname -F commands. But the shell prompt is still showing the old hostname. This is Ubuntu 11.0.4 ...
6
votes
2answers
582 views

Does a bad sector indicate a failing disk?

My Ubuntu 13.10 system has been performing very poorly over the last day or so. Looking at the kernel logs, it appears that the <1yr old 3TB SATA disk is having issues with a particular sector: ...
6
votes
3answers
5k views

How can I install perldoc on Ubuntu?

Ubuntu 10.10 comes with Perl 5.10.1 pre-installed, but strangely enough perldoc isn't part of the package. $ perldoc You need to install the perl-doc package to use this program. How can I make ...
6
votes
1answer
679 views

Find a user's writable files and directories

How can I determine all files and folders that given user can write to? The user is nobody. Some script in bash or python, perhaps? I'm using Ubuntu 11.04
6
votes
2answers
133 views

Is it possible to install a linux desktop environment from a live cd?

My question is about Linux in general but lets suppose my ubuntu isn't working property, booting in tty or whatever. I have no internet connection but I have ubuntu live cd. Is it possible to ...
6
votes
3answers
126 views

Passwords for newly created users?

I am fairly new to Linux and I have question regarding users. When I use the useradd command I don't specify a password. I must use the passwd command afterwards. Does this mean that the user is ...
6
votes
3answers
3k views

Why is my EC2 server's time off by ~10 seconds every day?

I have what I believe is a system file, /etc/cron.daily/ntpupdate which runs ntpdate ntp.ubuntu.com daily to sync with the network time. Every day it generates output very similar to this: ...
6
votes
1answer
481 views

HDD allocation fstab

In my PC running Ubuntu 12.04 LTS I have installed three SATA hard drives. Two of them are installed near a cooler. I want to physically switch two drives (one that is not near the fan should be moved ...
6
votes
2answers
336 views

A simple hierarchical task list (that lets you cross out tasks) for linux in the Ubuntu repositories?

I just spent way too much time looking for this. Treeline is very close, but it doesn't allow marking a task as done with a single key press. It's a powerful data organizer and one has to change ...
6
votes
1answer
2k views

Evince fails to start because it cannot read .Xauthority

I'm logged in remotely over SSH with X forwarding to a machine running Ubuntu 10.04 (lucid). Most X11 applications (e.g. xterm, gnome-terminal) work fine. But Evince does not start. It seems unable to ...
6
votes
2answers
6k views

How to find out which X11 driver system is using?

How to find out which X11 driver system is using? For my chip openchrome is the best driver but I suspect that system is not using it. I just need at least 2D acceleration. How can I check? Here is ...
6
votes
2answers
3k views

Restore /etc/ configuration files from the default

Is there a way to replace /etc configuration files from a package, overwriting my local changes? I've tried apt-get install --reinstall mypackage but it doesn't update the files. How can I do this?
6
votes
2answers
4k views

How can I track who SSH'es into my linux machine?

I'm running Ubuntu 10.04. Is there a way I can get a daily report of who has logged onto the box, what time, and even - this may be asking too much - a report of the commands they used? This is a ...
6
votes
2answers
2k views

Why is screen seemingly doing nothing with commands passed with -X?

I've been trying to set up an automated backup system for a minecraft server, and I'm having trouble with screen, specifically when using 'screen -r sessionname -X "/var/minecraft/somebatchfile"', ...
6
votes
2answers
139 views

How to automatically generate .desktop file?

There's a .deb software that doesn't have a .desktop file, I created that file. I want to create another package for that software, when the user installs it, I want the .desktop file to be generated ...
6
votes
2answers
210 views

Nautilus special URIs

Where are these special URIs used in Nautilus defined in Ubuntu? recent:/// trash:/// x-nautilus-desktop:/// computer:/// burn:/// These can instantly open special locations in Nautilus by typing ...
6
votes
2answers
179 views

du command show a slash after directories?

How to use du command show a slash after directories? For example: du -ab /root/test/php-5.4.8/ Result: 1781 /root/test/php-5.4.8/main/internal_functions.c.in 973596 ...
6
votes
1answer
533 views

Assistance wanted in removing the “No mail.” notification in MOTD for Ubuntu 10.10

How do I remove the No mail. notification on Ubuntu 10.10 Server? This occurs when I log in, and is located underneath the message of the day I have a separate script which uses a different messaging ...
6
votes
3answers
1k views

Why won't my xmodmap command run on startup/login?

I want to run this command every time I log in (or every time I start up, if that doesn't work): xmodmap -e 'keysym Delete = Menu' -e 'keysym Menu = Delete' I've tried many things. I put the command ...
6
votes
1answer
445 views

GPU computing without X?

I am attempting to run GPU computation software on Ubuntu Server 12.04 without X since this box is going to be a dedicated computation machine. However the last requirement "Without X" is proving to ...
6
votes
2answers
930 views

Fixing CTRL-* in vim under GNU screen

When running vim under GNU screen, I'm finding that combinations of CTRL with the arrow and Pg* keys don't work as expected. I'm using the Ubuntu 10.10 vim-gnome package. On a different machine, ...
6
votes
1answer
908 views

is upstart and supervisord used for the same thing?

I have a some jvm based processes that I need to make sure start whenever my server is rebooted, and also if it stops because of an unexpected error etc. I'm running Ubuntu 12.04 in case in matters. ...
6
votes
4answers
2k views

When does chmod fail?

Under what circumstances will chmod fail? I looked at the man page but it only specifies usage and doesn't go into details about what circumstances it won't work in. I'd assume chmod will work if: ...
6
votes
2answers
2k views

How can I set up a remote port forward on port 80 to my localhost with the help of setcap?

I'd like to accept connections briefly for development when I'm NATed, and so I'm attempting to do this: $ ssh ubuntu@example.org -R 80:localhost:80 Which fails as I'm trying to bind a port that is ...
6
votes
1answer
3k 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 ...
6
votes
1answer
130 views

deny any writing to given app and its children

So I have a Python app (which spawns other processes) which I want to deny any writing. It seems like a job for SELinux. Could you describe the steps needed to accomplish this, or perhaps direct me to ...
6
votes
2answers
7k views

How do I make my USB Bluetooth dongle work? (Can't init device hci0: Connection timed out (110))

I have a USB bluetooth dongle: root@maiko-cce-lin:~# lsusb | grep Bluetooth Bus 001 Device 007: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode) It rarely works, and when I do ...