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)

6
votes
3answers
345 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
3answers
367 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
1answer
6k 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
9k views

File in Ubuntu equivalent to /etc/inittab file in RedHat

I searched a lot but can't get any solution. My question is what file in Ubuntu is equivalent to /etc/inittab file in RedHat. In RedHat /etc/inittab file contains the setting related to runlevel in ...
6
votes
3answers
11k views

How to get back sudo on Ubuntu?

I have done this: sudo chown -R myname /usr/ and now I can't use the sudo command because of this error: sudo: must be setuid root And as I read this means that the owner of this file ...
6
votes
2answers
3k 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
7k 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
2answers
7k views

Use shared libraries in /usr/local/lib

I have build some libraries from sources, and the files after make install are in /usr/local/lib For example, in my case I have the file libodb-2.2.so which is in this directory. However when I ...
6
votes
2answers
1k views

How to implement package install suggestion on Debian?

I have noticed that while on Ubuntu, if I type the following: mc and it isnt installed, I get the message below: The program 'mc' is currently not installed. You can install it by typing: sudo ...
6
votes
3answers
22k views

How to mount/recover data on a disk that was part of a mdadm raid 1 on another machine?

Some background The disk itself was "worked on" by a friend and is said to be still intact, undamaged and still mountable/recoverable The disk was part of a software raid 1 on Ubuntu 12.04 The other ...
6
votes
1answer
9k views

Zip everything in current directory

I'd like to compress and package everything, including files and folders in current directory, into a single ZIP file on Ubuntu. What would be the most convenient command for this (and name of the ...
6
votes
1answer
1k 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
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
165 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
1answer
717 views

Security of an encrypted (dm-crypt & LUKS) Ubuntu 12.04 installed by somebody else?

Suppose I want an Ubuntu setup (let it be 12.04) with full disk encryption. Ubuntu offers this as an option during installation. Suppose also that I have somebody (e.g. my vendor) else set this up ...
6
votes
3answers
1k views

Get diff changes between original files installed with apt and current files

I installed php5-fpm package using apt; then I made some changes to the PHP configuration files. Now I would get the diffs between the original files versions (the ones of the package installed) and ...
6
votes
1answer
15k 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 ...
6
votes
2answers
3k views

My .xsession and .xinitrc files are not executing

I have installed xmobar, xmonad on ubuntu 11.04. #!/bin/bash trayer --edge top --align right --SetDockType true --SetPartialStrut true \ --expand true --width 10 --transparent true --tint ...
6
votes
2answers
719 views

emacs does not see my fonts in gentoo

I copied my ~/.emacs file from ubuntu linux; I've installed Consolas font (and it works in gnome terminal, and as a default Monospace font); but Emacs does not see it (custom-set-faces '(default ((t ...
6
votes
1answer
515 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
404 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
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
317 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
311 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
3answers
5k views

How to get rid of the “scanning for btrfs file systems” at start-up?

After upgrading from Ubuntu 12.04 to Ubuntu 12.10, I get a message "scanning for btrfs file systems" at starting-up. I don't have any BTRFS filesystem. It delays the booting for about 15 seconds. How ...
6
votes
3answers
4k views

How do I “merge” two text files?

I recently upgraded from Ubuntu 12.04 to 12.10 and at one point, it encountered an Apache config file conflict in apache2.conf. I didn't give me a merge option at that point, so I just rejected the ...
6
votes
2answers
195 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
610 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
1answer
3k views

Can the focus of a Microsoft LifeCam HD-5000 be fixed at infinity under linux?

I have two Microsoft LifeCam HD-5000 webcams which I am using as a home security system with the Motion package for linux. One problem I have is that because these webcams have auto-focus, sometimes ...
6
votes
3answers
2k 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
3answers
3k views

A Web ssh/telnet client

I'm in kind of a tight spot right now. I wanted to know if someone has seen a HTML, or PHP web ssh client as both my company and school block everything besides port 80. I'm a control freak when it ...
6
votes
1answer
520 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
137 views

Copy a long single-line text from a terminal with undesired change-line

locate ... | less outputs a long path, which is shown as several lines in the terminal, although it is actually a single line. I copy the path from the terminal by selecting the text with mouse and ...
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 ...
6
votes
4answers
3k 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
3k 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
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
1answer
847 views

Can I use and install Ubuntu packages in Debian?

I'm looking to install Linux Mint on my main work computer. Presently, I'm running Ubuntu 10.04 on it after upgrading from 9.10 (both 64bit). Previously, I have always backed up and formatted my hard ...
6
votes
2answers
3k views

Getting Ubuntu working with eSATA (Intel H57 chipset)

Does anyone know if there's kernel support for the eSATA controller in the Intel H57 chipset, or if there's a driver for it somewhere? (Full disclosure: Asked over on SuperUser.com, no luck, but as ...
6
votes
1answer
2k views

Creating UFW rule to allow application to use dynamic ports

I am currently trying to get a Google Chromecast device to work through my Ubuntu 13.04 based computer. Currently, the Google Chrome extension shows "no devices found" as long as my UFW firewall is ...
6
votes
2answers
2k views

Configuring File Associations in Ubuntu with Wine

Related to this question, I have Ubuntu 20.04.1 LTS. I downloaded PlayOnLinux 4.1.9 (the Precise version) and used it to install Microsoft Office 2010 Pro. PlayOnLinux downloaded Wine 1.5.21 and ...
6
votes
1answer
5k views

How can I make this daemon/init run as a non root user?

I have an init script to kick off a daemon. The problem is it runs as root. I would like it to run as a user called "deploy". Ubuntu 12.04 #! /bin/sh # File: /etc/init.d/unicorn ### BEGIN INIT ...
6
votes
1answer
2k views

Using setkeycodes to map pressed and released to different “keys”

I have a keyboard that has a scroll wheel, but it doesn't work on Ubuntu and xev command doesn't show anything when moving it. But with the dmesg command I found this: When moving the scroll wheel ...
6
votes
1answer
1k views

Dual monitors on dual video cards on Ubuntu

I have been trying this to no avail. I am new to Linux, so a step by step explanation would be greatly appreciated. I have two NVIDIA GeForce 8600 GT video cards. I want a monitor to run on each card, ...
6
votes
1answer
3k views

Fritz WLAN USB stick - Xlib/Xfree86 dev packages for installing Wine

I have installed Ubuntu 10.4 and want to install the driver for my Fritz WLAN USB stick according to http://wiki.ubuntuusers.de/fritz!wlan_usb_stick (German site... sorry). Now I am trying to install ...
6
votes
2answers
792 views

Cisco-like command Line Interface

I'm looking for a way to implement a fairly basic Cisco like command line interface on my Ubuntu server appliance (12.04 in particular). I've come across the following project: CLISH however, ...
5
votes
5answers
2k views

How do you free up resources in Ubuntu?

What steps do you take to make a vanilla Ubuntu system run faster and use less memory? I'm using Ubuntu as the OS for my general purpose PC, but it's on slightly older hardware and I want to get as ...
5
votes
5answers
954 views

Consumer Level software RAID5 and LVM

Hi I am going to build a 6 drive consumer level RAID 5 (10TB) with Ubuntu10.10 and using EXT4 as filesystem, and OS on another drive. Question: Should you use LVM on top of the RAID5 or should just ...
5
votes
3answers
9k views

Automating textual input from a bash script without using EOF

I'm running Ubuntu Linux. Suppose there is a program called myprogram. This program prompts the user for input; specifically, the user must type an integer when prompted and press Enter. I would ...