Greatest Hits

77
votes
8answers
210k 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.
69
votes
6answers
99k 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?
54
votes
3answers
243k 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 ...
68
votes
4answers
116k 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 ...
12
votes
4answers
210k 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 ...
94
votes
14answers
259k 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 ...
291
votes
39answers
272k 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 ...
18
votes
1answer
170k 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 ...
97
votes
7answers
283k 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 ...
156
votes
14answers
337k views

How can you log out via the terminal?

Is there a command, that will take you back to the login screen?
154
votes
5answers
244k 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?
59
votes
4answers
144k 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: ...
20
votes
3answers
119k 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?
126
votes
5answers
171k 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 ?
102
votes
3answers
132k 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 ...
32
votes
6answers
228k 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?
131
votes
6answers
239k 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] ...
62
votes
7answers
173k 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.
159
votes
8answers
284k 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 ...
294
63
votes
12answers
124k 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 ...
111
votes
7answers
366k 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 ...
146
votes
7answers
237k 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 ...
41
votes
3answers
181k 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 (...
140
votes
12answers
228k 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?
36
votes
5answers
155k 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 ...
46
votes
3answers
203k 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?
66
votes
5answers
174k 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.
35
votes
6answers
310k 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 ...
17
votes
9answers
112k 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 ...
224
149
votes
16answers
202k views

How to check battery status using terminal?

I would like a command that check the battery status through the terminal
69
votes
5answers
224k 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. ...
178
46
votes
3answers
222k 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 ...
19
votes
2answers
171k 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 ...
50
votes
11answers
129k 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... ...
31
votes
4answers
177k views

How to check opened/closed port on my computer?

I was wondering how to check the opened/closed port on my computer. I used netstat -a on command line, Is the port status "LISTENING" indicated that the port is opened? Any port that are not shown in ...
72
92
votes
2answers
168k views

How to add programs to the launcher?

How can I add new programs to the launcher in Ubuntu?
293
76
votes
3answers
239k views

How to set JAVA_HOME for Java?

I've installed a version of Java. How can we set the $JAVA_HOME environment variable correctly?
233
45
votes
5answers
307k 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 ...
176
15
votes
1answer
57k views

Ubuntu 16.04 LTS Shown in Upgrade Manager Now

I see the next upgrade available as 16.04 LTS shown in update manager. But the release date (from wiki) is written as April 2016. And it's not shown in Ubuntu page yet. Why is it already available ...
117
votes
3answers
254k 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 ...
205
133
votes
13answers
305k views

How do I install Java?

How do I install Java, including in my browser, so websites with Java work?
22
votes
4answers
139k views

How can I install photoshop cs6 on ubuntu 14.04?

How can I install photoshop cs6 on ubuntu 14.04? Anyone help me ?
161
69
votes
9answers
315k views

How to remove all files from a directory?

The closest I've gotten is # rm /path/to/directory/*.* but that doesn't work for files that don't have an extension...
26
votes
6answers
166k 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 ...
77
votes
7answers
323k 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 ...
186
votes
11answers
209k views

How to really clear the terminal?

I can issue the clear command or press Ctrl + L to clear the current Ubuntu terminal, but this just shifts previous output upwards and if you use mouse scroll or PgUP and PgDown keys it's hard to ...
62
votes
2answers
191k views

Change password on root user and user account

Just want to ask, if i change the password on the root user, is that going to automatically change the password to on the user account? i found this link to change the root user http://www.wikihow....
150
60
votes
14answers
183k 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 ...
48
votes
5answers
206k 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? ...
256
38
votes
4answers
159k 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 ...
333