Greatest Hits

204
votes
7answers
338k views

How do I change the hostname without a restart?

I want to change the OS hostname but I do not want to restart. I have edited /etc/hostname but it requires a restart to get implemented. How to avoid this?
45
votes
10answers
177k views

How to install NVIDIA.run?

I have a Nvidia Ge force Ge6150 SE graphics card. I am running ubuntu 12.04. When I try to install the .run file it fails. It shows the message like this: I Itried to install it after ...
101
votes
10answers
200k views

How to check Internet Speed via Terminal?

Instead of going to sites like speedtest.net, or others, I want to check my current Internet speed from the terminal on Ubuntu. How can I do it?
35
votes
2answers
137k views

How to uninstall Google Chrome?

I decided to try out Google Chrome and see if it was any different from Chromium, but now I can't figure out how to uninstall it. That's what I have installed. How to get rid of it is the question.
158
votes
3answers
322k views

What does “cp: omitting directory” mean?

I've issued the following command: sudo cp ~/Transfers/ZendFramework-1.11.4-minimal/library/Zend/* ~/public_html/cmsk.dev/library/ When I do this, I start getting the following messages: cp: ...
334
94
votes
8answers
400k views

How do you restart Apache?

I switched from SLES to Ubuntu and now I want to restart my local server. In SLES I used : rcapache2 restart but this somehow seems not to work in Ubuntu. :( How do i restart my Apache?
33
votes
6answers
137k views

An easy way to create a desktop shortcut?

I wonder, isn't still there an easy way to create a desktop shortcut in Ubuntu 14.04 (or Unity)? There is no context menu on desktop doing this. So I tried the following: I looked for an app I want ...
353
votes
42answers
247k views

What should I do when Ubuntu freezes?

All operating systems freeze sometimes, and Ubuntu is no exception. What should I do to regain control when... just one program stops responding? nothing at all responds to mouse clicks or key ...
285
votes
11answers
219k views

“The following packages have been kept back:” Why and how do I solve it?

I just added a PPA repository for the development version of the GIMP, but I get this error The following packages have been kept back: gimp gimp-data libgegl-0.0-0 libgimp2.0 Why and how can I ...
41
votes
4answers
158k views

How to successfully restart a network without reboot over SSH?

In Ubuntu 14.04 neither sudo service networking restart nor sudo /etc/init.d/networking restart do anything any more. They also both exit with code 1. Something has obviously changed (or half changed) ...
25
votes
4answers
251k views

How to change root password for mysql and phpmyadmin

I've set up mysql and phpmyadmin and chose not to set a password when installing hoping that once set up i could login with root and no password but i get the following error from phpmyadmin: Login ...
55
votes
11answers
123k views

How can I move all the window controls to the right (or left)?

Downloaded Ubuntu tweak and set window controls to the right side. Only some programs follow the rule. Pidgin as an example has window controls on the right. But Chrome, Thunderbird, Geany, still have ...
444
173
votes
14answers
135k views

How to pin Eclipse to the Unity launcher?

How can I pin eclipse indigo 3.7 I have 'installed' at /opt/ to the taskbar? I have tried launching eclipse and right-clicking to choose the 'keep in launcher' option. But when I click that icon, ...
91
votes
24answers
159k views

How to fix Duplicate sources.list entry?

I keep getting this warning whenever I try to run sudo apt-get update. W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages ...
22
votes
4answers
303k views

How do I login as root?

I want to login as root, but when I enter sudo -s and enter password, this message is shown: "you are not in sudoers file", and when I enter su and enter password, this is shown: ...
285
30
votes
7answers
155k views

How to install Python 3.4 on Ubuntu?

If I open Terminal and type in python, I see the version is 2.7.4. How do I get python 3.4? And do I need IDLE if I have sublime text?
218
votes
2answers
300k views

How to extract files to another directory using 'tar' command?

I think tar archive.tar /users/mylocation will work. But it doesn't. How can I do that?
324
308
votes
15answers
260k views

How can I edit/create new launcher items in Unity by hand?

Will Unity allow making custom launcher icons from .desktop files or via menu editing system? (Right now the launcher doesn't give the option to "keep in launcher" on all programs. For some programs ...
76
votes
15answers
190k views

Higher screen resolution for VirtualBox?

I have been trying this for a while but no luck. I installed ubuntu-11.10-desktop-i386 twice. Also installed guest additions. However I always get maximum screen resolution as, 1024 x 768. Do I need ...
4
votes
5answers
140k views

How do I type an `@` (at sign) symbol?

I have Ubuntu on my MacBook 2007 with a Spanish keyboard, on MacOS the @-sign was typed using Alt (Option) + 2, but on Ubuntu I have no idea. I have to copy and paste it every time. How do I type an ...
176
votes
8answers
127k views

How to add “Open terminal here” to Nautilus' context menu?

I am working on Ubuntu 12.04 64bit. I want to add "Open terminal here" to Nautilus context or right-click menu but it tries to download 32bit version from Internet.
131
votes
5answers
95k views

What is the CVE-2014-6271 bash vulnerability (Shellshock) and how do I fix it?

Recently, there have been news going around regarding "CVE-2014-6271" (See USN-2362-1), which is a vulnerability in Bash. How do I know if I am affected by this, how can I fix it, and why should I ...
74
votes
9answers
238k views

How to mount an ISO file?

I'm running into trouble trying to mount a large iso: dev@dev-OptiPlex-745:~$ sudo mount -o loop /home/dev/Hämtningar/matlab2011a_64.iso /cdrom mount: warning: /cdrom seems to be mounted read-only. ...
293
84
votes
7answers
280k views

How can I resize an ext root partition at runtime?

How can I increase the size of the root partition of a system at runtime? I have a partition that is not allocated after the root partition (which is also ext4), how can I add that unallocated space ...
38
votes
10answers
328k views

How to solve 'Connection refused' errors in SSH connection?

I have an Ubuntu Server 10.10 32-bit in my home. I'm making SSH connections to it from my PC via Putty. The problem is, sometimes I'm able to login seamlessly. However, sometimes it gives me an error ...
299
29
votes
3answers
275k views

How to start GUI from command line?

I've installed the following version of ubuntu om my machine. ubuntu-12.04-desktop-i386.iso But when I switch on the computer, I get command line. Ubuntu 12.04 LTS COMP-1245 tty1 Once I ...
166
votes
13answers
186k views

Error message when I run sudo: unable to resolve host (none)

I have this issue on AWS on some servers. Whenever I run sudo the terminal is stuck doing seemingly nothing, until it finally spits out this error message. My terminal looks like this: ...
48
votes
5answers
339k views

How do I install .run files?

My PC has both Ubuntu and Windows 7 installed. I have installed all my drivers in Windows like Nvidia graphics, motherboard etc. Shall I install them in Ubuntu too? I looked on the web for my Nvidia ...
34
votes
1answer
101k views

How do I do a complete BIND9 DNS Server Configuration with a hostname?

I need a complete step-by-step guide on how to produce such a server configuration. Can anyone help-me?
382
18
votes
4answers
186k views

How do I turn off the firewall in Ubuntu 12.04?

How do I turn off the firewall in Ubuntu 12.04? Thanks for the answers. The reason for turning it off was twofold: I often cannot make a wireless connectin to internet and get the server is unable to ...
289
88
votes
15answers
210k views

Higher screen resolution in VirtualBox?

I've just installed Ubuntu 10.04 into VirtualBox on Windows 7. Unfortunately the only options showing for screen resolution are 640x480 and 800x600 and the monitor is showing as 'Unknown'. How ...
281
votes
11answers
448k views

How can I configure Unity?

Are there any configuration options for the Unity desktop? There are multiple valid answers for this question spanning over several versions of Ubuntu. For your convenience an index of each below ...
184
49
votes
3answers
333k views

How do I remount a filesystem as read/write?

I'm trying to mount an hfsplus filesystem in a Xubuntu 12.04 VM (kernel version 3.2.0-23-generic) but when I type mount -o remount, rw /dev/sdb3 in command line it returns not mounted or bad option. ...
180
votes
10answers
156k views

How do you monitor the progress of dd?

dd is a wonder allowing you to duplicate a hard drive to another, completely zero a hard drive, etc. But once you launch a dd command, there's nothing to tell you of it's progress. It just sits there ...
87
votes
16answers
113k views

How to disable the touchpad?

I want my touchpad to be disabled when I use my mouse. How can I do that? touchpad-indicator has stopped working on 11.10. It used to work on 11.04. Gnome3 is not a solution as I don't like it and ...
439
103
votes
3answers
330k views

What command do I need to unzip/extract a .tar.gz file?

I received a huge .tar.gz file from a client that contains about 800 mb of image files (when uncompressed.) Our hosting company's ftp is seriously slow, so extracting all the files locally and sending ...
141
votes
6answers
112k views

How to patch the Heartbleed bug (CVE-2014-0160) in OpenSSL?

As of today, a bug in OpenSSL has been found affecting versions 1.0.1 through 1.0.1f (inclusive) and 1.0.2-beta. Since Ubuntu 12.04, we are all vulnerable to this bug. In order to patch this ...
139
votes
9answers
261k views

How do I increase the hard disk size of the virtual machine?

I have run out of space on my WinXP virtual machine, which I only gave 10 GB space for when I created it. Is there an easy way to increase it to, say, 20 GB? I can't see any obvious option in ...
82
votes
14answers
219k views

How can I install Windows after I've installed Ubuntu?

I have Ubuntu on my laptop. Now I want install Windows 7 in a dual-boot. How can I do this? I can't lose my Ubuntu files, and I'm afraid that I might break GRUB.
19
votes
3answers
253k views

What is the default root password?

I installed Ubuntu 12.04 LTS (Precise Pangolin), 64 bit. Nowhere was I asked to set password for root. I just installed AccuRev SCM software. It was installed under the /root folder by default. Now I ...
220
14
votes
8answers
44k views

ACPI PPC Probe failed. Starting version 219 NVIDIA

I've recently updated to Ubuntu 15.04 and after installing the latest nvidia drivers (346.59) which worked on ubuntu 14.10 seems to have caused some trouble on boot. All I get is the following when ...
47
votes
7answers
94k views

Problems with Eclipse and Android SDK

I installed Eclipse, openjdk6 and downloaded and extracted the sdk manager file. Now, When I created an Android project I got the following error: 2012-06-06 18:44:40 - contactManager] ...
85
votes
11answers
299k views

How to format a USB flash drive?

In Windows there is a straightforward "Format" option in a flash drive's right-click pop-up menu. Where's that in Ubuntu?
293
votes
6answers
262k views

How to upgrade a single package using apt-get?

How do I update a single package? As far as man apt-get says apt-get upgrade doesn't take a package/list of packages as parameter: upgrade upgrade is used to install the newest versions of ...
304
50
votes
3answers
101k views

Cannot install Ubuntu in VirtualBox due to “this kernel requires an x86-64 CPU, but only detects an i686 CPU, unable to boot” error

I was trying to install Ubuntu 12.04 in VirtualBox 4.2.12r84980. I see this kernel requires an x86-64 CPU, but only detects an i686 CPU, unable to boot But I am using a 64 bit Windows 8, and ...
127
votes
6answers
269k views

What is the correct way to completely remove an application?

I've searched the net for such information and found different command lines, like these ones: sudo apt-get remove application sudo apt-get remove application* sudo apt-get remove --purge ...
71
votes
5answers
142k views

Changing TTY keyboard layout on a server?

I use 12.04 Server in command line mode (no X installed), and I would like to change the keyboard layout. How can I do this?
68
votes
4answers
276k views

How to access a usb flash drive from the terminal? (How can I mount a flash drive manually?)

I only have access to the command line I need to backup my data (on the user folder) to a pen. I don't know where/how can I do this is order to access the pen, and then do the cp command. How can ...
17
votes
3answers
165k views

ERROR 1045(28000) : Access denied for user 'root@localhost' (using password: no )

I got a problem with mysql server Actually i am not sure im tring to install queXS cati app on my ubuntu desktop i installed mysql server and php5 and when im trying mysql -u root it says ...
8
votes
3answers
90k views

How to use(/enable) FN keys to adjust volume at my asus laptop?

I have an ASUS laptop (ASUS X53S series) and I want to adjust the volume by using the FN key and F10 (mute), F11 (vol down), F12 (vol up). Also F9 key is not working as well(this is for ...