Most Popular

1500 questions
161
votes
6 answers

How to add a PPA on a server?

The server version of Ubuntu does not have the add-apt-repository command. How can I add a Personal Package Archive (PPA) to the server without this command?
Luis Alvarado
  • 211,503
161
votes
4 answers

update-java-alternatives vs update-alternatives --config java

On Ubuntu 12.04 LTS I have installed Sun's JDK7, Eclipse, and the Arduino IDE. I want the Arduino to use OpenJDK 6 and want Eclipse to use Sun's JDK 7. From my understanding I need to manually choose which Java to use before running each…
Stan Smith
  • 1,713
  • 2
  • 11
  • 7
161
votes
5 answers

Unable to update "Snap Store": cannot refresh "snap-store": snap "snap-store" has running apps (ubuntu-software)

I am a new Ubuntu 22.04 user who is facing an issue with the Snap Store. Whenever I try to update the Snap Store I can see these error messages. Pending update of "snap-store" snap Close the app to avoid disruptions (13 days left) Unable to…
ABHILASH T
  • 1,923
161
votes
5 answers

How can I change the default audio device from command line?

Ubuntu's desktop gui is great for changing audio settings (System->Preferences->Sound), like the default input/output device and setting the volume. However, I would like to be able to do these things from the command-line. What tool is the gui…
paleozogt
  • 1,713
161
votes
7 answers

Is Logitech's Unifying receiver supported?

Logitech has a Unifying receiver that you can add several devices using the same USB device. Is this supported in Ubuntu and if so do I have to additionally configure something so that when adding a new wireless device it gets recognized by the same…
Luis Alvarado
  • 211,503
160
votes
7 answers

Play sound through two or more outputs/devices

I have one sound card and one pair of Bluetooth headphones. I want to play my audio through both my sound card and my Bluetooth headphones. I believe Windows has checkboxes that allow you to "check" outputs to enable/disable them, but Ubuntu…
Nathan J.B.
  • 2,640
160
votes
4 answers

How can I display the list of available Wi-Fi networks?

My Ubuntu laptop's Wi-Fi works fine on various Wi-Fi networks. But the list of available networks accessed from the toolbar icon of nm-applet no longer appears. I just see the known networks. The list of hidden networks also doesn't show any new…
Joshua Fox
  • 2,941
160
votes
12 answers

How to measure GPU usage?

Using the top command in the terminal lists processes, sorted by their CPU usage (and you can change it to sort by another parameter) Is there an equivalent for the GPU? This fellow is asking about RAM used by GPU
xxjjnn
  • 1,797
160
votes
4 answers

What is the difference between `ssh -Y` (trusted X11 forwarding) and `ssh -X` (untrusted X11 forwarding)?

What is the difference between ssh -Y (trusted X11 forwarding) and ssh -X (untrusted X11 forwarding)? As far as I have understood it, it has something to do with security, but I did not grasp the difference and when to use which.
160
votes
7 answers

How to open a folder (with GUI) from terminal?

I want to place a link/shortcut/launcher in my unity panel (ubuntu 12.10). I followed this tutorial on handytutorial.com to create a custom launcher and drag it to the panel. I just need to know which command do I have to input. Is this possible?
Tiago
  • 1,751
160
votes
12 answers

How to determine whether a process is running or not and make use it to make a conditional shell script?

How can I determine if a process is running or not and then have a bash script execute some stuff based on that condition? For example: if process abc is running, do this if it is not running, do that.
Nirmik
  • 7,868
159
votes
9 answers

How can I install Adobe AIR?

I am a heavy user of certain applications that are built on AIR. It appears that AIR has discontinued support for Linux. Even the older versions in the Adobe AIR Archives seem to support only 32 bit Linux distributions and I am on 64 bit…
Vamsi Emani
  • 2,575
159
votes
5 answers

Why does su fail with "authentication error"?

I tried to su to root so I could install lights, but I get an authentication error when I try: user@host:~$ su Password: su: Authentication failure
Michael
  • 2,499
  • 5
  • 19
  • 24
159
votes
14 answers

How can I change what keys on my keyboard do? (How can I create custom keyboard commands/shortcuts?)

I want to change the key bindings on some of the keys on my keyboard. I want some to run commands and others to activate different keys. What applications can I use to do this? Index: Xbindkeys Default keyboard and shortcut settings (from…
Seth
  • 58,122
159
votes
13 answers

How to execute a script just by double clicking like .EXE files in Windows?

How can I make a bash script executable by double clicking just like .exe files in Windows? I tried creating a launcher and assigning the script to it, but there are two consequences: the terminal twinkles, disappears, and nothing is done. you must…
user61928