Greatest Hits

138
votes
5answers
289k views

How do I install curl in php5?

I currently have PHP 5.3 installed with Apache in 10.04 Lucid. How can I add the PHP Curl libraries? Do I need to install any other dependencies for curl?
287
69
votes
7answers
184k views

How can I use Chromecast

I just saw the video about Chromecast and I am interested in knowing how can I enable this on my Ubuntu PC. My TV has an HDMI port.
143
votes
6answers
116k 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 ...
10
votes
1answer
280k views

How can I chmod 777 all subfolders of /var/www?

I’m running a webserver and FTP server, wherein /var/www is bound to /home/user/www. I set both directories to chmod 777 (which is fine since it’s for testing only). I can upload files into ...
81
votes
5answers
199k views

Unable to correct problems, you have held broken packages

After upgrading from 10.04 to 12.04 I am trying to install different packages. For instance ia32-libs and skype (4.0). When trying to install these, I am getting the 'Unable to correct problems, you ...
254
77
votes
18answers
274k views

How do I install Adobe Flash player?

I have had significant problems with watching flash video in 64-bit Ubuntu. Does anyone know of a good way to get flash running on the platform?
126
votes
14answers
313k views

How to send mail from the command line?

How to send mail from the command line?
22
votes
4answers
221k views

What is a command to compile and run C++ programs?

I am new to Linux. I am using Ubuntu 11.04 and do not know how to compile and execute C++ program in it. I need to know the commands to Compile and Execute a C++ program in Linux.
42
votes
18answers
149k views

Shut down computer from keyboard

Is there a keyboard shortcut available to shutdown the computer? I know I can use the Power button, but I would like to be able to it from the keyboard. If such a shortcut does not exist already, ...
55
votes
2answers
204k views

Find the correct php.ini file

I am currently trying to locate the correct php.ini file to edit it and restart apache so the changes will take place and I'm stumped. What I have done... I have found three different php.ini files ...
150
57
votes
5answers
205k views

How do I uninstall Mysql?

I installed Mysql using sudo apt-get. Now I need to remove it from my system. How can I do that?
165
votes
10answers
119k views

Trouble downloading packages list due to a “Hash sum mismatch” error

When I check for updates, I get a "Failed To Download Repository Information" error. This is what comes up under details: W: Failed to fetch ...
399
68
votes
6answers
295k views

Adding SSH Keys to authorized_keys

I have an Ubuntu server on Amazon EC2, that I use for development, and today I stupidly cleared everything out of my ~/.ssh/authorized_keys file. Luckily I have an SSH open, so I am still connected, ...
18
votes
1answer
110k views

How to install uTorrent v3.3 on 14.04

I've attempted to install utorrent on 14.04 using the Terminal and attempting to install libssl 0.9.8, but with no success. Also, this utorrent version is V3.3 and is located in my Downloads. I've ...
35
votes
5answers
149k views

How can I make Firefox open magnet-links in Transmission?

I can't find out how to make Firefox open magnet-links in Transmission. There is no option to make it the standard program for magnet-links in its properties, and as I am not experienced with the ...
98
votes
10answers
162k views

network manager says “device not managed”

I used to be able to share my network connection by editing the Auto Eth0 to share with other computers in the Ipv4 section and now I upgraded my laptop to 11.10 . Now are there no wired connections ...
143
votes
1answer
279k views

How do I configure swappiness?

I need a step-by-step, simple and easy way to configure swappiness.
211
42
votes
7answers
267k views

SSH connection problem with “Host key verification failed…” error

I can connect to another Ubuntu machine in my LAN via SSH. On both of then PC's I installed openssh-server but from another Ubuntu computer I can not connect to my PC via SSH and I got this error: ...
264
113
votes
6answers
263k views

How to check hard disk performance

How to check the performance of a hard drive (Either via terminal or GUI). The write speed. The read speed. Cache size and speed. Random speed.
81
votes
11answers
257k views

How do I mount shared folders in Ubuntu using VMware tools?

Experts. I've successfully installed VMware tools for Ubuntu. Everything seems to work fine, but shared folders were not mounted automatically. How do I get them to work? If I run vmware-hgfsclient ...
132
votes
5answers
96k 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 ...
81
votes
11answers
163k views

How to fix missing GPG keys?

I have just installed Ubuntu 12.04 and I added some repo and when apt-get update i got missing gpg key. Following command seems to doesn't work for me: apt-get update 2> /tmp/keymissing; for key ...
88
votes
5answers
41k views

Ubuntu 14.10 does not install in virtualbox

I'm currently running Windows 8.1 x64 (a problem in itself that I can't change sadly ;-P) with the latest version of VirtualBox (4.3.18 r96516). I managed to get the server version up and running with ...
179
votes
1answer
100k views

How can I use docker without sudo?

On Docker's documentation pages, all example commands are shown without sudo, like this one: docker ps On Ubuntu, the binary is called docker.io. It also does not work without sudo: sudo docker.io ...
246
57
votes
8answers
153k views

How to switch language keyboard combination?

I would like to type Hebrew in Ubuntu. I tried downloading the Hebrew language pack and then setting alt-shift as my layout-change shortcut in the Options section of "Keyboard Layout". However, when ...
119
votes
6answers
240k views

How do I find the kernel version, Ubuntu release and disk partition information from the terminal?

Which commands will give me information about following using Terminal? Kernel Version Distribution version no. All partition size of the HDD
86
votes
7answers
76k views

Not enough free disk space when upgrading

I'm getting an error in software updater when I try and do my daily updates. it says: The upgrade needs a total of 25.3 M free space on disk `/boot`. Please free at least an additional 25.3 M of disk ...
373
101
votes
10answers
181k views

How to prevent “Write Failed: broken pipe” on SSH connection?

What can I do to configure SSH on both client and servers to prevent Write Failed: broken pipe errors? It often occurs if you sleep your client computer and resume later.
288
25
votes
12answers
49k views

Windows 10 upgrade kills grub and boot-repair doesn't help

I've just upgraded to Windows 10 from Windows 8.1 on my partitioned laptop that has Ubuntu 14.04 installed. Grub no longer appeared on boot so I ran boot-repair from an Ubuntu liveUSB. This didn't ...
78
votes
2answers
71k views

Diskfilter writes are not supported > What triggers this error?

This message occurs when leaving the Grub menu and before the Ubuntu splash screen. How do I fix the problem to clear the message? And what doe is it mean? error: Diskfilter writes are not ...
61
votes
4answers
101k views

Requires installation of untrusted packages?

I tried installing VLC Player yesterday, and I got the Requires installation of untrusted packages error. I searched for hours for a solution to this problem, and finally came upon a suggestion that ...
17
votes
1answer
142k views

How to install g++ compiler?

I have tried the following: sudo apt-get install build-essential Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest ...
81
votes
13answers
223k views

How do I include lines in resolv.conf that won't get lost on reboot?

I have finally migrated to 12.04 from 7.10. I have one last part to complete but I am stumped. I am using Puppet on each server, and in the past I have included a nameserver address and a search ...
30
votes
6answers
284k views

How does one exit the X server?

The command sudo service gdm stop would successfully disable the X server in Ubuntu 11.04 temporarily. However, this same command no longer works in Ubuntu 11.10, because "gdm" is an "unrecognized ...
49
votes
3answers
209k views

How can I uninstall a nvidia driver completely ?

As expected, Nvidia drivers have reduced my customizations. I can't login to Unity 3D session. I can't find any content to help me to uninstall the driver and I don't know what to do as I have never ...
60
votes
4answers
221k views

No such file or directory? But the file exists!

I've downloaded a game (Shank) but the bin file doesn't run. The error that is shown when I try to launch the executable is: bash: ./shank-linux-120720110-1-bin: No such file or directory
156
votes
13answers
308k views

How do I change the computer name?

When I connect to my server (ubuntu server 10.10), I get this: name@server-name.belkin ~> How can I remove ".belkin"?
235
163
votes
23answers
128k views

How can I deactivate Bluetooth on system startup?

How can I deactivate Bluetooth on system startup?
15
votes
7answers
74k views

Trying to install Steam ERROR: You are missing the following 32-bit libraries, and Steam may not run: not

I've already installed Steam, but when I click on the program I get this message ERROR- You are missing the following 32-bit libraries, and Steam may not run: not I don't know what to install or ...
43
votes
9answers
113k views

How do I install Adobe Acrobat Reader from the repository?

How do I install Adobe Acrobat Reader in Ubuntu 14.04 using a Trusty apt repository? This is NOT a duplicate of How do I install Adobe Acrobat Reader?. In Synaptic > Repositories > Other ...
13
votes
5answers
198k views

Apt-Get Update: failure to fetch; can't connect to any sources

I realize there are dozens of "apt-get update: failure to fetch" questions (I read through all I could find), but my present circumstance is unique to 12.04 and it affects all sources; not just ...
278
votes
40answers
239k views

How can I improve Ubuntu overall system performance?

What are your tips for improving overall system performance on ubuntu? Inspired by this question I realized that some default settings may be rather conservative on Ubuntu and that it's possible to ...
146
votes
13answers
295k views

How can you log out via the terminal?

Is there a command, that will take you back to the login screen?
153
votes
10answers
265k views

How do I get the CPU temperature?

How do I get the CPU temperature?
8
votes
3answers
151k views

How to run Terminal as root?

When we want to run a programs as root we use sudo, gksu, gksudo and etc. Now my question is how do we can run a Terminal as the root user in Terminal? I tried with using gksudo terminal and gksu ...
71
votes
4answers
116k views

How to install H.265 / HEVC codec on Ubuntu Linux?

I have seen that the new DivX Player 10 shows off H.265/HEVC playback, the successor of H.264. I wonder how I may get this support in Linux. Is there a need to install a codec specific for this ...
31
votes
4answers
137k views

unzip error “End-of-central-directory signature not found”

I try to unzip a zip file, but got an error: $ unzip COCR2_100.zip Archive: COCR2_100.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one ...
339
61
votes
5answers
337k views

How to enable root login?

I would like to enable the root account on my Ubuntu installation. I realize the security implications of this.
173
34
votes
8answers
167k views

How to install vmware tools?

I installed my Ubuntu in vmware, no I need install vmware tools, I got error: Searching for a valid kernel header path... The path "" is not valid. Would you like to change it?[yes] In ...
71
votes
2answers
182k views

How to install gcc-4.8

I checked the gcc version on my system. It is currently at 4.6.3. I read that gcc-4.8 is out. I tried the following commands without success: sudo apt-get install gcc (gcc is already the newest ...