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)

10
votes
2answers
10k 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 ...
10
votes
4answers
5k views

rsync all files of remote machine over SSH without root user?

I have this command to backup a remote machine. The problem is that I need root rights to read and copy all files. I have no root user enabled for security reasons and use sudo the Ubuntu way. Would I ...
10
votes
2answers
2k views

Why is vi apparently broken (viminfo error E576), and how can I fix it?

I am proficient at using Unix/Linux, but I am not an expert. If I want to open a file (for example, file.txt), I use vi: vi file.txt This opens the file, and if I want to close it, I use :q!. I ...
10
votes
2answers
536 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
1answer
710 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
1answer
900 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 ...
10
votes
2answers
660 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
4answers
27k views

SSH login with clear text password as a parameter?

I need to login to a user that I've created on a remote host running Ubuntu. I can't use an ssh key because the ssh login will happen from a bash script ran within a server that I wont have access to ...
9
votes
4answers
2k views

How is Ubuntu based on Debian?

Linux Mint is based on Ubuntu. Ubuntu is based on Debian. Like this, there are several other linux distributions that are based on Ubuntu, Debian, Slackware, etc. What confuses me is what does this ...
9
votes
4answers
4k views

How to truely install a tar.gz file on Linux - how to manage manually-installed (or standalone) applications?

I see all these links explaining packages and .debs... I know that... and there are many kludges to get tar.gz files working (eg: update-alternatives for Java or manually dropping the file in ...
9
votes
7answers
9k 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
5answers
648 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 ...
9
votes
3answers
5k 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
2answers
770 views

Can I unfreeze bash or vim when SSH session freezes from timeout? [duplicate]

When my SSH session times out, the whole terminal freezes. Is there any way to break out of that connection? CTRL+C doesn't cut it.
9
votes
2answers
17k 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 & ...
9
votes
1answer
3k views

What does a kernel source tree contain? Is this related to Linux kernel headers?

In books, I typically read references to the Linux Source Tree at /usr/src/linux with the usual set of subdirectories (arch, block, crypto, ...). I was expecting this tree to contain the binary files ...
9
votes
2answers
6k views

How do I prevent GRUB from using/starting any graphical UI?

I have a problem with an older Laptop (Fujitsu Siemens LifeBook S6010, to be precise) and an Ubuntu (10.10, Xubuntu desktop) installation (fresh install). During installation the graphics hardware ...
9
votes
1answer
1k 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. ...
8
votes
3answers
1k views

Why 'echo $0' gives different result for two different terminals?

I opened a terminal on Ubuntu using Ctrl+Alt+T and a different terminal by going to a directory and then right clicking and choosing "Open in Terminal". I did an echo $0 in both cases. In the ...
8
votes
5answers
10k views

delete line in vi

How can I delete a line in VI? Here what I am doing right now: Open up the terminal alt + ctrl + t vi a.txt I move my cursor to the line which I wan to delete, then what key-combination is should ...
8
votes
5answers
2k views

Can't apply chmod to a file

I have a file on my HDD, cd /media/celebisait/5AC69788C6976355 There is my file called myFile.tar.gz. I do als -l, -rw------- 2 celebisait celebisait 1387745311 Jun 6 2013 myFile.tar.gz ...
8
votes
4answers
783 views

A small challenge to familiarize myself with Linux

I would like to learn more about Linux. I briefly went through a few books and quite a few articles online, but the only way to learn something is to actually start using it. I would like to jump in ...
8
votes
2answers
766 views

View Script Over SSH?

A friend, using a remote machine, SSHed to my machine and ran the following python script: while (1): ....print "hello world" (this script simply prints 'hello world' continuously). I am now ...
8
votes
2answers
13k views

How to install program locally without sudo privileges?

Assume I have ssh access to some Ubuntu server as user and I need some not system tools to be installed for convenience (mc, rtorrent, mcedit). I do not want to bother admins for these small programs. ...
8
votes
5answers
11k views

Can a linux user change their password without knowing the current password?

I'm setting up a few ubuntu boxes, and using opscode's chef as a configuration tool. It would be fairly easy to install public keys for each user on each of these servers, and disable password ...
8
votes
3answers
15k views

VirtualBox: two network interfaces (NAT and host-only ones) in a Debian guest on Ubuntu

I created a Debian VM on VirtualBox with two interfaces: a NAT one (for accessing internet) and a host-only one. However, I do not know how to make both interfaces work at the same time. If I the ...
8
votes
3answers
5k 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 ...
8
votes
2answers
2k views

Launchpad equivalent for Debian

I am thinking of switching to Debian (Squeeze) from Ubuntu (10.10). But these questions have been bugging me: Is there a Launchpad equivalent repository for Debian? I am not able compile packages ...
8
votes
1answer
6k 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 ...
8
votes
3answers
3k views

How do I make my disk unmap pending unreadable sectors

I have a disk with some pending unreadable sectors, according to smartd. What would be the easiest way to make the disk remap them and stop smartd from complaining? Today, I get two of these every ...
8
votes
4answers
13k views

Ubuntu 12.04 hotspot wifi network not visible to Android 4.1.2

I'm running Ubuntu 12.04 LTS on my notebook, and I've got a Motorola Razr which I updated to Android 4.1.2. Before updating, I connected my smartphone to my hotspot wifi very quickly, but after the ...
8
votes
4answers
4k views

Migrating from Ubuntu to Debian

I'm a long term Ubuntu user who is considering migrating from Ubuntu to Debian (mainly because of Unity and the fact that my school has a Debian mirror). I haven't installed Debian on a system before. ...
8
votes
5answers
7k 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
2answers
7k views

How to boot EFI kernel using QEMU (kvm)?

Hey guys I'm trying to emulate a EFI enviroment using QEMU (kmv), virtualbox takes 15 minutes to boot in EFI mode using archboot. Using legacy BIOS mode I can boot using this command: ...
8
votes
3answers
2k 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?
8
votes
3answers
9k 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
2answers
909 views

CPU stuck at 99% for a few hours. Really need help figuring out logs

extract from syslog: CRON[pid]: (user) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin ...
8
votes
2answers
6k views

What is the “/usr/local/src” folder meant for?

I wanted to put my work files (code) in /usr/local/src, but I think it's already a folder that has some other semantic meaning. What is that? Should I put source code there, or is there a better ...
8
votes
4answers
20k 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 ...
8
votes
1answer
309 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 ...
8
votes
2answers
4k views

Merging two internet connections from two network interfaces in order to obtain double speed

I have two network interfaces (one wired & one wireless). I have two internet accounts too (each 256 kBps; one from a modem that I use as wired connection & the other from a wireless network). ...
8
votes
1answer
2k views

How to get Nautilus to “Open with Archive Mounter”?

I see Ubuntu screenshots showing that one can right-click an ISO, and have an option to "Open with Archive Mount". How do I get that running elsewhere where it isn't default (Debian in my case)? This ...
8
votes
1answer
1k views

How do I use a font in .ttc format as the console font?

I rather dislike the available tty fonts and would rather use Menlo, which is what I use in OS X's Terminal. Menlo is in a .ttc format, but (from the contents of /usr/share/consolefonts) Linux seems ...
8
votes
2answers
8k 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 ...
8
votes
2answers
839 views

Kernel Panic because of RAM stick?

one of my RAM sticks causes a Kernel Panic on my Ubuntu 10.10 (something like "not syncing" with a lot of memory adresses shown on screen). It's definitely this one RAM stick and not its socket ...
8
votes
3answers
257 views

What could cause the clock to jump by 5 minutes?

I have a (physical) box running a stripped down Ubuntu; every now and then (6 times in 3 months), the clock jumps backwards by exactly 300 seconds (+- 0.01 seconds; always exactly 300 seconds). It ...
7
votes
4answers
8k views

How to find a file in the filesystem from the command line?

I'm fairly new to Linux, and I've now found myself in a situation where I'd like to find where a file (with a partially-known filename) is in the file system. I'd like to know how to do this from the ...
7
votes
2answers
12k 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 ...
7
votes
3answers
4k 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 ...