Most Popular

1500 questions
157
votes
7 answers

How do I run a 'sudo' command inside a script?

To do a patch manually I must type this command sudo ./playback_delete_data_patch.sh 09_delete_old_data_p.sql There is a space just before the 09: sudo ./playback_delete_data_patch.sh [space] 09_delete_old_data_p.sql How can I run this inside a…
user251948
  • 1,571
157
votes
6 answers

How do I set a custom resolution?

I tried to use xrandr to set 1680x1050 as a new mode to VGA output, but it says: sudo xrandr --addmode VGA-0 1680 X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 140 (RANDR) Minor opcode of failed…
user216356
  • 1,571
157
votes
6 answers

Make Command Not Found

I am having a problem that doesn't seem to be common based on searching various forums. I cannot run the Make command. Message: The program 'make' is currently not installed. You can install it by typing: sudo apt-get install make So do this: sudo…
snoopdogg
  • 1,571
157
votes
13 answers

Is there a way to disable a laptop's internal keyboard?

A week ago, I spilt the contents of my cup onto my laptop keyboard. Half of the keys no longer work, except one! The letter Q which is very active regularly. This is very disturbing as I work. Is there a way to disable the internal keyboard of a…
atmon3r
  • 1,683
156
votes
4 answers

How to remove a user from a group?

I added a user account to the admin group and discovered I added wrong user. So I now have to remove the account from the admin group. How can I remove an account from a group without deleting the user?
Eonil
  • 2,111
156
votes
6 answers

How to show seconds on the clock in GNOME 3?

Is it possible to show the seconds on the clock in GNOME 3?
Riki137
  • 3,651
156
votes
4 answers

What does "${debian_chroot:+($debian_chroot)}" do in my terminal prompt?

In my terminal prompt definition in my .bashrc file, among other things, I have this snippet of code: ${debian_chroot:+($debian_chroot)} What does this do, and do I need it?
fouric
  • 4,708
156
votes
8 answers

Use path bar and address bar in Nautilus

By default, Nautilus use/show the path bar: Using Ubuntu Tweak I managed to set by default the address bar: Is it possible to set both of them as default (show both: the buttons and the text input)? Note: I know that I can use Ctrl + L to switch…
Radu Rădeanu
  • 174,437
156
votes
4 answers

What is the difference between dpkg and aptitude/apt-get?

When installing a software via dpkg -i packageA.deb , will the dependencies required by packageA be downloaded and installed automatically? How is this different from using apt-get or aptitude ?
156
votes
4 answers

How can I recursively search for directory names with a particular string where the string is only part of the directory name

How can I recursively search for directory names with a particular string where the string is only part of the directory name? For example: the directory name is "8.0.3-99966_en", but I want to recursively search for directories with the string…
Bob Perez
  • 1,661
155
votes
1 answer

How do I install Ubuntu on a VirtualBox client from an ISO image?

I have the ISO image file (that is, *.iso ) and I am trying to boot my VirtualBox installation with this image. Is it possible? I know how to mount my ISO image to my filesystem (on my host machine), but I don't think VirtualBox boots an OS from a…
deostroll
  • 1,769
155
votes
9 answers

bash: ./program: cannot execute binary file: Exec format error

I'm trying to run a program, but it gives an error: bash: ./program: cannot execute binary file: Exec format error The result of file program was: program: ELF-32-bit LSB executable, ARM, EABI4 version 1 (SYSV), dynamically linked (uses share libs),…
155
votes
4 answers

How do I install the latest version of Git with apt?

I read about a security flaw in Git, which was fixed in version 2.2.1. I currently have Git 2.1.0 on my system (Ubuntu 14.10), and tried to reinstall it with apt. However, apt told me that I currently have the latest version. The Git website does…
190n
  • 1,689
155
votes
8 answers

How do I disable my system from going to sleep?

I am getting a web server setup at home on an older AMD 2400+ desktop. I have Ubuntu 11.04 installed and running however, after a time, I can no longer browse to the server. When I go to the keyboard and press a key, everything magically works…
Mike Wills
  • 1,843
155
votes
6 answers

Where are the Unity Launcher .desktop files?

I'd like to know which folder the Unity Launcher .desktop files are stored in, as they're not anymore in /.gconf/desktop and I need to add a custom application to the launcher bar (adding it in /usr/share/applications doesn't seem to be enough).…
Tigull
  • 3,591