Greatest Hits

91
votes
14answers
253k 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 ...
95
votes
7answers
274k views

Command-line to list DNS servers used by my system

Is there a command to list dns servers used by my system? I tried $ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE ...
69
votes
7answers
113k views

How to add Android Studio to the launcher?

I'm trying to install the android studio so that I can launch it from a launcher instead of via terminal. Android Studio -> Tools -> Create Desktop Entry doesn't do antything Can someone give ...
290
votes
39answers
266k 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 ...
154
votes
14answers
330k views

How can you log out via the terminal?

Is there a command, that will take you back to the login screen?
67
votes
6answers
92k views

How to install Visual Studio Code on Ubuntu?

I just downloaded VSCode-linux-x64 from the Microsoft website. It's a 62 MB zip file. How can I install it on my Ubuntu system?
135
votes
5answers
107k views

Which one is better: using ; or && to execute multiple commands in one line?

In tutorials and how-to's I often see commands combined. For instance, sudo apt-get update && sudo apt-get install pyrenamer There seem to be four possible connectors: &, &&, || ...
61
votes
7answers
167k views

Getting + installing gcc/g++ 4.9 on Ubuntu?

How do I install the latest version of gcc and g++? I am using a variety of C++11 and C++1y features; which is why I need this.
124
votes
5answers
163k views

How can I empty the trash using terminal?

I am not able to search trash anywhere. Can you please tell me a command or anything like that to empty the trash using terminal ?
150
votes
5answers
237k views

How can I fix a 404 Error when using a PPA or updating my package lists?

PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown: W: Failed to fetch http://ppa.launchpad.net/ 404 Not Found How do I fix these errors?
127
votes
6answers
229k views

How to know what program is listening on a given port?

I suspect a program is listening on port 8000 on my machine. When I run the following command, I get that error: > python -m SimpleHTTPServer # Lots of python error socket.error: [Errno 98] ...
57
votes
4answers
138k views

How to run 32-bit app in Ubuntu 64-bit?

I installed Ubuntu 14.04 and the current Android development SDK, which contains 32-bit executables. I found that I cannot run those 32-bit binaries. Trying to start them from bash gives me an error: ...
50
votes
11answers
126k views

Adobe Flash Plugin is vulnerable/outdated in 14.04 but there is no update in Firefox

I am using Ubuntu 14.04 LTS. When I open a site which requires flash plugin (e.g. Youtube), Firefox says This plugin is vulnerable and should be updated. However if I click Check for updates... ...
36
votes
5answers
154k 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 ...
31
votes
6answers
219k views

Is there a way to make a fullscreen on VirtualBox?

I tried many ways to make a bigger screen in VirtualBox because I do not like the small size of the guest window? Is there is a way to make it big?
58
votes
14answers
105k views

SMBus/ BIOS error while booting Ubuntu in VirtualBox

I am trying to boot Ubuntu 13.04 in VirtualBox, but every time I boot, I get an error that says: SMBus base address uninitialized - upgrade BIOS or use force_addr=0xaddr This happens right after ...
20
votes
3answers
115k views

How to install the MPEG-4 AAC decoder and the H.264 decoder?

Where do I get the MPEG-4 AAC decoder, and the H.264 decoder. How to install them and play the multimedia?
62
votes
12answers
121k views

Error: kernel headers not found. (But they are in place)

I'm trying to install the Guest Additions in VirtualBox 4.04. Host OS is Ubuntu desktop 11.04 64bit, guest OS is Ubuntu server 11.10 64bit. $ sudo ./VBoxLinuxAdditions.run After some output this ...
110
votes
7answers
355k views

How can I create a zip archive of a whole directory via terminal without hidden files?

I have a project with lots of hidden folders / files in it. I want to create a zip-archive of it, but in the archive shouldn't be any hidden folders / files. If files in a hidden folder are not ...
33
votes
6answers
306k 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 ...
154
votes
8answers
275k views

How do I create a permanent Bash alias?

I would like to create an alias to rm command in order to have a confirmation message after executing this command. So I am creating an alias like this alias rm='rm -i'. But as far as I know this is a ...
285
142
votes
7answers
227k views

How can I decode a base64 string from the command line?

I would like to write a bash script to decode a base64 string. For example I type decode QWxhZGRpbjpvcGVuIHNlc2FtZQ== and it prints Aladdin:open sesame and returns to the prompt. So far I have tried ...
134
votes
12answers
218k views

How to display network traffic in terminal

how to display the actual network traffic (wireless) in a terminal? Additionally: Is it possible to add this info to the chart of top?
45
votes
3answers
216k views

How to install the Java plugin for Firefox?

I am trying to install Java and plugins for Firefox. I installed both the JDK and JRE. When I try with the sudo update-alternatives --config java command it shows only one choice available. Plugins ...
67
votes
5answers
217k views

How to read and write HFS+ journaled external HDD in Ubuntu without access to OS X?

I have a HFS+ journaled external hard-drive and need to be able to write to it on Ubuntu. I don't have access to my Mac, it's thousands of miles away and I won't have access to it for three months. ...
173
95
votes
3answers
126k views

What is the safest way to clean up /boot partition?

I have 200 MB assigned for the /boot partition. Whenever I try to update the kernel, I receive an error message that basically states /boot is full. What can I do to cleanup /boot and remove/backup ...
46
votes
3answers
198k views

How to access phpMyAdmin after installation?

I've installed phpmyadmin sudo apt-get install phpmyadmin. Of course, I have also mysql and a web server running properly. Now how can I reach it?
45
votes
5answers
301k views

mount: you must specify the filesystem type

I want to mount a partition to an auxiliary folder via mount to fix a damaged grub. I used the command. sudo mount /dev/sdb2 /home/ubuntu/temp and got as error: mount: you must specify the ...
175
96
votes
5answers
46k 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 ...
15
votes
9answers
105k views

Installing Steam in Ubuntu 14.10

I am currently using Ubuntu 14.10. Steam is showing up in the Ubuntu Software Center, but when I click on it it says: Not found There isn't a software package called "steam" in your current ...
215
140
votes
16answers
196k views

How to check battery status using terminal?

I would like a command that check the battery status through the terminal
19
votes
2answers
167k views

How do I use Unetbootin to make a bootable Windows USB installer?

it says missing bootmngr or something like that. I'm on ubuntu 12.04 or whatever, the newest one using the gparted to format to NTSC and then unetbootin to install the bootloader, and the iso, then ...
38
votes
3answers
174k views

Boot drops to a (initramfs) prompts/busybox

I am running an HP pavilion dv6000 dual boot win7 and Ubuntu 12.04. (well, up until today). After a reboot, the boot process drops to the BusyBox shell and I end up at the prompt: BusyBox v1.18.5 (...
91
votes
2answers
165k views

How to add programs to the launcher?

How can I add new programs to the launcher in Ubuntu?
288
63
votes
5answers
163k views

How do I save terminal output to a file?

How do I save the output of a command to a file? Is there a way without using any software? I would like to know how.
144
votes
6answers
119k 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 ...
26
votes
6answers
160k views

What do I need for remotely accessing my Ubuntu 14.04 desktop?

I am at a loss as to how to set up my machine for remote connection. Do I need to install a VNC server (which one?) or is Vino (installed by default) enough? I opened Desktop Sharing Preferences ...
21
votes
4answers
133k views

How can I install photoshop cs6 on ubuntu 14.04?

How can I install photoshop cs6 on ubuntu 14.04? Anyone help me ?
154
74
votes
7answers
317k views

Where is the X.org config file? How do I configure X there?

As Ubuntu 10.10 seems to neither detect my graphics card (Intel 82852/855GM) automatically nor use the corresponding Intel driver even after manually installing it, I am looking into manually ...
130
votes
13answers
294k views

How do I install Java?

How do I install Java, including in my browser, so websites with Java work?
75
votes
2answers
200k 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 ...
111
votes
3answers
246k views

How to run sudo command with no password?

How does the ubuntu user on the AWS images for Ubuntu Server 12.04 have passwordless sudo for all commands when there is no configuration for it in /etc/sudoers? I'm using Ubuntu server 12.04 on ...
195
15
votes
4answers
167k views

A “failed to fetch” error occurs when apt-get update is run. How do I fix this?

Contrary to the note above, I haven't found the answer to my problem. I have read almost a dozen apt-get update questions, most from askubuntu.com, with "failed to fetch" errors and tried the ...
37
votes
8answers
179k 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 ...
37
votes
4answers
155k views

I've downloaded a .sh file - how do I install this?

I'm new to Ubuntu and know installing programs only from window. It is very easy there: Just double-click the setup.exe and the things start. But how do I install a program on Ubuntu? I want to ...
331
47
votes
10answers
126k 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 ...
59
votes
14answers
179k views

How can I create a select menu in a shell script?

I'm creating a simple bash script and I want to create a select menu in it, like this: ./script echo "Choose your option:" 1) Option 1 2) Option 2 3) Option 3 4) Quit And according to ...
35
votes
5answers
275k views

How do I remove a folder?

I'm a new user and Im trying to remove a specific folder. I am using sudo rm /path/ but its not working. What is the correct command to use? It is a file catolog I am attempting to remove but im ...
29
votes
3answers
217k views

How to setup static IP in Ubuntu Server 12.04?

sudo apt-get update sudo apt-get upgrade ifconfig sudo nano /etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.1.150 netmask 255.255.255.0 network 192.168.2.0 broadcast 192....
48
votes
5answers
199k views

Permanently removing apache2

It seems a simple apt-get remove apache2 does not completely remove apache2 as I can still see it on one of the processes when running top. How does one remove apache2 completely on his ubuntu server? ...
249