Most Popular

1500 questions
188
votes
7 answers

Dual monitor workspaces in Ubuntu 18.04

Dual monitor setup on Ubuntu 18.04; when I hit activities only the left monitor switches workspaces while the right monitor just keeps whatever is on its screen. Is there a way to make the workspace span both monitors so that when I switch from one…
Alex
  • 2,025
188
votes
13 answers

Enable fractional scaling for Ubuntu 18.04

I recently installed Ubuntu 18.04 and discovered that the fractional scaling option that was in 16.04 is no longer there. 200% is too big for my display, and this answer didn't work for me (the options didn't change after running the command). Is…
Mitch
  • 2,251
188
votes
6 answers

How do I install the latest Python 2.7.X or 3.X on Ubuntu?

I want to install the latest Python tarball on Ubuntu, downloaded from http://python.org/download/ . Is this is a correct way to install? ./configure make make install If not, how do I do that?
mohammads
  • 2,654
187
votes
11 answers

How to pass an array as function argument?

Struggling for a while passing an array as argument but it's not working anyway. I've tried like below: #! /bin/bash function copyFiles{ arr="$1" for i in "${arr[@]}"; do echo "$i" done } array=("one" "two" "three") copyFiles $array An answer with…
187
votes
15 answers

How do I install Java?

How do I install Java, including in my browser, so websites with Java work?
Jay
  • 1,025
187
votes
12 answers

How can I restart GNOME Shell, after it freezes or becomes unresponsive?

Sometimes, my GNOME Shell freezes. I can see (hear) background processes working (playing music), but I can't do anything in GNOME. No Alt + F2 followed by R and Enter . I can switch to console using: Ctrl + Alt + F1 , login as the same user and…
jk_
  • 1,979
187
votes
24 answers

Tips to extend battery life for laptops and notebooks

This question is present as a matter of historical interest. While you are encouraged to help maintain its answers, please understand that "big list" questions are not generally allowed on Ask Ubuntu and will be closed per the FAQ . Is it possible…
187
votes
9 answers

How do I disable swap?

I have some sensitive data in RAM that I prefer not to be on disk. How do I disable swap? I have more than enough RAM. If RAM consumption gets too high I have no problems with processes being terminated. How do I disable swap? Note: I do not have a…
user4482
187
votes
7 answers

.bashrc not executed when opening new terminal

The code in .bashrc does not execute when I open a new terminal window in Ubuntu 12.04. I noticed this when creating a .bash_aliases file. The aliases did not show up when I opened a new terminal. However when I type source .bashrc the aliases did…
Selah
  • 3,005
  • 3
  • 29
  • 31
186
votes
5 answers

Explicitly accept change for PPA 'Label'

When I run apt-get update on my ubuntu 17.10 I receive the following error: E: Repository 'http://ppa.launchpad.net/ondrej/php/ubuntu artful InRelease' changed its 'Label' value from '***** The main PPA for PHP (5.6, 7.0, 7.1) with many PECL…
Rick
  • 1,911
186
votes
36 answers

What lenses for Unity are available?

This question is present as a matter of historical interest. While you are encouraged to help maintain its answers, please understand that "big list" questions are not generally allowed on AskUbuntu and will be closed per the FAQ . What lenses are…
Lincity
  • 25,809
186
votes
16 answers

Chrome asks for password to unlock keyring on startup

In Google Chrome, when I go to a login page, a window pops up asking to "Enter password for keyring 'default' to unlock". In most cases, whether I click Cancel or enter my password, the login form gets auto filled anyway. How do I get rid of the…
186
votes
6 answers

Should I always restart the system when I see "System restart required"?

These two nice SE posts (1, 2) comment on restarting one's ubuntu machine but they leave me with a few questions: How do you actually do the restart (I'm a beginner and using 12.04.1 LTS)? Should I always restart the system when prompted to? Does…
tim peterson
  • 2,355
186
votes
8 answers

I have a hardware detection problem, what logs do I need to look into?

I am trying to ask a question about getting my hardware to work but I don't know what information to add to my question to get help, what do I need to do? Related if you don't have access to a GUI: How do I get information from the logs on my…
Jorge Castro
  • 73,907
186
votes
11 answers

Command line tool to crop PDF files

I am looking for an open source command line tool to crop PDF file just like we can do in Adobe Acrobat Pro. I have tried PdfTk, ImageMagick, PyPDF, and GhostScript—all with no success so far.