Ubuntu is a free open source operating system based on the Debian GNU/Linux distribution. Consider using http://askubuntu.com/ to ask questions about it.

learn more… | top users | synonyms

27
votes
4answers
2k views

How to create a file which is named like a command line argument?

I was wondering how to make a file named as a flag, e.g., if I wanted to make a folder named -a, what commands would do the trick? I tried mkdir '-a', mkdir \-a, and neither worked. I'm on Ubuntu.
27
votes
2answers
20k views

How can I check the version of packages to be installed with apt-get?

After running apt-get upgrade, I get a list of the packages that will be upgraded. I would like to know the version number for one of these packages. (Not the current one but the one that will be ...
26
votes
8answers
3k views

Swap partition size on a 64 GB RAM computer for memory-intensive work

I have 64 GB RAM and 240 GB SSD on my computer, which I'm going to use for memory-intensive calculations (machine learning, data mining, etc.). Most of the advice I found on the Internet are ...
26
votes
4answers
84k views

How to upload one file by FTP from command line?

I need to upload a single file to FTP server from Ubuntu. This operation should be done in a script (in non-interactive mode). What is the right syntax for ftp? I'm trying this, to no avail: $ ftp ...
25
votes
4answers
32k views

How do I make Bash my default shell on Ubuntu?

I have a .bash_profile in my home directory, but it isn't getting run on login. If I do the following, then things seem to be as I expect: ssh myhost bash source ~/.bash_profile But normally that ...
25
votes
3answers
20k views

Are there any real advantages to assigning more “cores” to VirtualBox?

I have an 2.8 quad core i7 with a VirtualBox. I have the option of assigning up to 4 cores to a guest machine, but I have only been doing two. What are the advantages/disadvantages of assigning more ...
24
votes
7answers
31k views

'No such file or directory' error in bash, but the file exists?

On Ubuntu, I get a 'No such file or directory' error when I try to execute a command. I have checked with ls -la , the file adb is there and it has 'x' flag So why I am getting a 'No such file or ...
24
votes
7answers
4k views

Why create many partitions?

I have noticed that when installing Ubuntu some people create multiple partitions for directories. Like one for root, one for home, one for boot. What is the advantage to doing this over installing ...
24
votes
3answers
29k views

Disable MySQL startup in Ubuntu 10.04

I want to prevent MySQL from starting in Ubuntu 10.04 I have used update-rc.d -f mysql remove and confirmed that there is no link to the /etc/inid.d/mysql script from any of the rc?.d directories. ...
24
votes
8answers
14k views

Clipboard manager for Ubuntu?

I'm looking for a good program for managing clipboard history on the Ubuntu desktop used primaraly for software development. Ditto is exactly what I need, except it wont run on Ubuntu.
24
votes
4answers
36k views

How do I install Maven 3?

I am using Ubuntu and need to upgrade to Maven 3 from Maven 2. Can someone please help me install Maven 3?
24
votes
9answers
15k views

Remote desktop to Mac from various platforms (Windows, Ubuntu)

I fear I know the answer to this already, but I would like to be able to connect to my Mac Mini in a 'remote desktop' fashion. I would like to connect to my Mac as if I were sat at my desk, but I ...
24
votes
8answers
11k views

Find all user-installed packages

Is there any way to get a list of all user-installed packages on an Ubuntu system, i.e. the packages that were installed on top of the default installed packages? (The idea is to get a comprehensive ...
23
votes
3answers
11k views

Convert a PDF to greyscale on the command line in FLOSS?

I have a colour PDF file, and I'm going to print it out and then photocopy it in black and white. I'd like to know what it's like in B&W before photocopying it. Is it possible to 'greyscale' a PDF ...
23
votes
5answers
40k views

How to determine available free space on Ubuntu?

I am in a situation where I am getting an error when I try to save a file to my Ubuntu server via ssh. It says there isn't any available space left. I don't know how that can be true. What should I do ...
23
votes
6answers
61k views

How do you disable an upstart service in ubuntu 10.10?

In 10.10 upstart is being used instead of sysvinit. It's possible to remove annoying upstart services which you do not want by removing the appropriate file in /etc/init/blah.conf However, this ...
22
votes
10answers
24k views

How to upgrade Git on Ubuntu Hardy?

I have Git version 1.5.4.3 installed, but I think this must be an old version. I'm running Ubuntu Hardy 8.04. I need to install at least version 1.6 to get a Git GUI to work. How do I upgrade my ...
22
votes
4answers
66k views

How can I add a regular user to the sudoers file?

How can I add more users to the "sudoers" file?
22
votes
9answers
5k views

How to track LAN usage? (AKA 'top for LAN')

There's an evil application that is eating ALL my upload bandwidth (I'm brazilian, it's only ~35kbps) for like 80% of the time my PC is turned on. I would like to know if there's any way to track ...
22
votes
5answers
14k views

How can I open a .7z file in Ubuntu?

How can I open a .7z file in Ubuntu?
22
votes
8answers
33k views

How to extract text with OCR from a PDF on Linux?

How do I extract text from a PDF that wasn't built with an index? It's all text, but I can't search or select anything. I'm running Kubuntu, and Okular doesn't have this feature.
22
votes
2answers
18k views

Is it possible to install the Helvetica font on linux?

I don't know too much about the licensing issues surrounding fonts, but I would like to install Helvetica on my machine for my own personal use. I haven't been able to find a whole lot about this on ...
22
votes
13answers
30k views

Enable System Beep in Ubuntu

I have tried and tried to get the system beep working, but with no success. I have selected System-->Sound-->System Beep-->Enable Audible Beep (from the Gnome Desktop) I have tried from a Terminal ...
21
votes
6answers
35k views

play mp3 or wav file via Linux command line

I would like to make an alarm system backed by a Ubuntu (no graphical interface) box, which plays various announcement and alarm audio tracks (.mp3 or .wav) via the command line. For example: $ ...
21
votes
2answers
15k views

How to add a mp3 handler to sox?

I want to play music in the terminal with sox. # install sox/lame sudo apt-get install sox sudo apt-get install lame # play music play music.mp3 # play FAIL formats: no handler for file extension ...
21
votes
7answers
37k views

tar: Exiting with failure status due to previous errors

I have written a little script that tars and compresses a list of directories + files. The script appears to run succesfully, in that a useable .tar.gz file is created after the script runs. ...
21
votes
7answers
10k views

Linux keylogger without root or sudo! Is it real?

Somebody on Youtube claims to have a keylogger on Ubuntu that was neither executed nor installed as root. The link below shows a demo of it working. http://www.youtube.com/watch?v=Y1fZAZTwyPQ ...
21
votes
6answers
57k views

Why do I need to enter a password for the Default Keyring to unlock?

When I log into Ubuntu, I am prompted every time to: Enter Password for Default Keyring to Unlock I want to avoid this step since I am the only person using this machine and I see no reason to have ...
21
votes
1answer
11k views

sh: make: not found

I got the following error message: sh: make: not found I guess I need to install make, or a compiler on my Ubuntu 9.04 Could you tell me what I exactly need to type to install it ? thanks
21
votes
5answers
8k views

What is the difference between Debian and Ubuntu?

From what I heard Ubuntu is a basically a Debian Linux with some extra applications and drivers pre-installed in order to make it more user friendly. Is that all? Or are there deeper, more ...
21
votes
4answers
1k views

How can virtual machines consume so little RAM on the physical host machine?

I'm running VirtualBox on a Windows XP machine with 2GB RAM. I've created a virtual Ubuntu machine and allocated it a base memory of 750MB. Just to put it to a test, I ran 20 things at once on the ...
21
votes
2answers
1k views

Use vim to edit ANY text on Linux

I come from the Mac world, where I use http://www.hogbaysoftware.com/products/quickcursor to edit text from anywhere in Vim. Is there anything like that on Linux ? I'm already using "It's All Text" ...
20
votes
4answers
24k views

How do I find (and kill) process running on a certain port? [duplicate]

Possible Duplicate: Finding the process that is using a certain port in Linux I'm using Ubuntu Linux 11.04. How do I write a shell script expression that will find the process running on ...
20
votes
5answers
17k views

How do I stop services from starting on boot on Ubuntu?

I have lots of servers installed (Apache, MySQL, etc.), but I don't want them all to start at boot time (they drain power, and I'm on batteries most of the time). How do I configure this?
20
votes
3answers
14k views

What's difference between group admin and adm?

There's two similar groups in ubuntu: admin and adm, I found that /var/log/apache2 is in the adm group, and default sudoers includes admin group, what's difference between the two?
20
votes
7answers
127k views

boot Windows from GRUB rescue

This is my situation: installed Ubuntu without a CD (using unetbootin) dual boot installation (Windows XP+Ubuntu) didn't like the installation and decided to boot into Windows and delete the Linux ...
20
votes
3answers
12k views

How to open Mac Keynote presentations on Ubuntu?

How to open Mac Keynote presentations on Ubuntu? Can it be imported to Impress?
20
votes
1answer
12k views

Ubuntu's /etc/alternatives mechanism

I'm trying to better understand Ubuntu's /etc/alternatives mechanism. The basics are easy: it allow for multiple "providers" to be installed on the same machine, and configures which is the default. ...
19
votes
4answers
3k views

How to check if two DVDs are exactly the same?

I have two DVDs and if I open the DVDs and copy the content to the HDD and compare the respective files on the HDD it shows no difference. As I know DVD does also have some additional content (this ...
19
votes
3answers
34k views

How to run a cron job as a specific user?

I would like to run a cron job as a specific user on my machine. How may I specify the user for a cron job to run as?. I am running on Ubuntu 10.0.4 [Edit] The cron jobs will be running on a ...
19
votes
3answers
5k views

How do you find the Ubuntu version (release number / name) from the command line?

How do you find the Ubuntu version (release number / name) from the command line?
19
votes
10answers
49k views

Differences between Ubuntu Linux and CentOS?

I'd like to know what are the difference between Ubuntu and CentOS. I'm new to the Linux world. Please help me understand which one is good for me to start out.
19
votes
8answers
73k views

How to get an inactive RAID device working again?

After booting, my RAID1 device (/dev/md_d0 *) sometimes goes in some funny state and I cannot mount it. * Originally I created /dev/md0 but it has somehow changed itself into /dev/md_d0. # mount ...
19
votes
3answers
37k views

How to install vim.full in Ubuntu?

I've installed Ubuntu Server but I have only vim.basic? How do i install vim.full? Tried with aptitude install vim but it said it's always installed. Because vim is a soft link to vim.basic.
19
votes
4answers
46k views

What Filesystem to use for Linux Ubuntu? [closed]

I am new to Linux, coming from Windows background. What Filesystem should I use? I read that Ext3 is default still? Ext4 is unstable at times? true? Also is there any performance different between ...
18
votes
2answers
4k views

Why is it so hard to find a file in Ubuntu?

It's very hard to find files in Ubuntu. In Windows, you could just go to C:\Program Files and you would find what you need. In Ubuntu, you must use search to find something you need. Maybe I am ...
18
votes
8answers
18k views

Is it possible to dual boot two OS's at the same time?

Is it possible to dual boot two OS's at the same time? For example: I'm currently dual booting Ubuntu 11.04 and Windows 7. Ubuntu is running on a single 500gb HDD, Windows 7 is running on 1TB RAID 1 ...
18
votes
6answers
9k views

Alternative for WinMerge in Ubuntu

I need to compare/diff/merge files in an easy way. In windows I would use WinMerge. What alternatives for this are available in Ubuntu? The things I must be able to do: See 2 files line by line ...
18
votes
2answers
38k views

Where can I get the repositories for old Ubuntu versions?

Where can I get the old repositories for Ubuntu versions? In my case, it's 9.04 Jaunty? I found all the official repositories and their mirrors have been removed. I am wondering where I can get the ...
18
votes
5answers
24k views

How can I view results of my cron jobs?

I see so many guides on how to run crontab, but what I need right now is to learn how to Find log files about cron jobs Configure what gets logged