Most Popular

1500 questions
106
votes
11 answers

How to mount a VirtualBox shared folder at startup?

I have Ubuntu installed in Virtualbox. I want to mount my VirtualBox shared folder in Ubuntu automatically when I log in Ubuntu. I put the following line in my ~./bashrc and ~/.bash_profile: sudo mount -t vboxsf windows_share /media/windows_share…
tonga
  • 1,307
106
votes
11 answers

How do I lock the screen from a terminal?

I am using Ubuntu 12.04. Is there any way to lock the screen or session from a terminal command or script?
Raja G
  • 105,627
  • 107
  • 263
  • 332
106
votes
4 answers

How can I tell what version of Java I have installed?

I want to start toying around with java (eventually getting to the point where I can write basic little programs for android or web), but I've managed to have java messed up on my computer (from past experiments). I'm not sure which version of java…
Stramato
  • 1,487
106
votes
7 answers

Locale variables have no effect in remote shell (perl: warning: Setting locale failed.)

I have a fresh ubuntu 12.04 installation. When i connect to my remote server i got errors like this: ~$ ssh example.com sudo aptitude upgrade ... Traceback (most recent call last): File "/usr/bin/apt-listchanges", line 33, in <module> from ALChacks…
Janning
  • 1,967
106
votes
21 answers

How do I restart Cinnamon from the tty?

I installed Cinnamon on my Ubuntu 12.04, and it works well, but sometimes it just freezes for no reason. I can move my mouse but can't click on anything. So I want to restart Cinnamon from tty, like I used to do with gnome shell. How do I do that? I…
tuks
  • 1,566
  • 2
  • 13
  • 12
106
votes
10 answers

What is the Tomcat installation directory?

Based here I'm trying to setup Tomcat Server, I have successfully installed it and tested it. Then I stopped it as recommended in the tutorial. I'm setting up "New Server Runtime Environment" as you can see under Tomcat Installation Directory is a…
105
votes
5 answers

Pair Bose QuietComfort 35 with Ubuntu over Bluetooth

In System Settings > Bluetooth , the Bose QC 35 is visible when searching for devices but pairing fails. After multiple attempts and playing with the PIN options I managed to pair it but once selected in System Settings > Sound , it would fail and…
Victor
  • 9,244
  • 9
  • 25
  • 34
105
votes
8 answers

"Create new document" - right-click option missing in Ubuntu GNOME

I would like to to have a " create new document " option in the right-click menu. Currently it looks like this : I am using Ubuntu GNOME 16.04 LTS with GNOME 3.20.
Severus Tux
  • 10,136
105
votes
5 answers

Why do I get "Required key not available" when install 3rd party kernel modules or after a kernel upgrade?

This issue happens only on UEFI systems with enabled Secure Boot. When I try to install DKMS modules like VirtualBox, Nvidia, or Broadcom drivers, they do not install and I get Required key not available when I try to modprobe them. VirtualBox…
Pilot6
  • 92,169
105
votes
9 answers

How do I modify the options for the power button?

When I press the power button a dialog opens, but I want to shutdown the system without receiving "Do you really really want to shutdown?". How can I choose a direct shutdown action on a pressed power button? I had the same problem with the 11.04…
NaN
  • 1,435
105
votes
9 answers

How do I setup dual monitors in XFCE?

I've got an laptop with a intel chip, and I'd like to setup dual monitors in Xfce. How do I do this?
105
votes
8 answers

How to enter a directory with the 'cd' command if it has 700 permission and is not owned by me?

I tried to use sudo cd name_of_dir but am getting the error message: sudo: cd: command not found Is there any other way to enter a directory owned by another user which has 700 permission?
Bakhtiyor
  • 12,884
105
votes
7 answers

List of Ubuntu Versions with Corresponding Linux Kernel Version

Is there a list of Ubuntu versions with default corresponding Linux kernel versions somewhere? I would specifically like to know the most recent version of Ubuntu that still used Linux Kernel 2.x.
Jonathan Mee
  • 1,153
105
votes
6 answers

How to avoid being prompted for a password by sudo?

I know I can become root (super user) via the su command but I have to authorize it after entering the commands. Is there a way I can become root and authorize (with password) in one line
Vader
  • 1,472
105
votes
5 answers

Reboot a Server from Command Line?

How do I reboot a Ubuntu Server from the command line? sudo reboot now never seems to work for me. Because its a server, I don't have a window manager installed, so I can't do it from a GUI (which always seems to work). I've had the problem for…
user207039