Ubuntu/Quick Reference

From r00tedvw.com wiki
(Difference between revisions)
Jump to: navigation, search
Line 25: Line 25:
 
  ~$sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
 
  ~$sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
 
  ~$sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
 
  ~$sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
 +
 +
==ubuntu 14.04 locale error==
 +
=====error=====
 +
perl: warning: Setting locale failed.
 +
perl: warning: Please check that your locale settings:
 +
LANGUAGE = (unset),
 +
LC_ALL = (unset),
 +
LANG = "en_US.UTF-8"
 +
    are supported and installed on your system.
 +
perl: warning: Falling back to the standard locale ("C").
 +
=====solution=====
 +
1. check what locales you have available on the machine
 +
~$ locale -a
 +
locale: Cannot set LC_CTYPE to default locale: No such file or directory
 +
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
 +
locale: Cannot set LC_COLLATE to default locale: No such file or directory
 +
C
 +
C.UTF-8
 +
POSIX
 +
2. if you're missing the locale for your area like i was, you can sometimes discover the name
 +
~$ locale
 +
locale: Cannot set LC_CTYPE to default locale: No such file or directory
 +
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
 +
locale: Cannot set LC_ALL to default locale: No such file or directory
 +
LANG=en_US.UTF-8
 +
LANGUAGE=
 +
LC_CTYPE="en_US.UTF-8"
 +
LC_NUMERIC="en_US.UTF-8"
 +
LC_TIME="en_US.UTF-8"
 +
LC_COLLATE="en_US.UTF-8"
 +
LC_MONETARY="en_US.UTF-8"
 +
LC_MESSAGES="en_US.UTF-8"
 +
LC_PAPER="en_US.UTF-8"
 +
LC_NAME="en_US.UTF-8"
 +
LC_ADDRESS="en_US.UTF-8"
 +
LC_TELEPHONE="en_US.UTF-8"
 +
LC_MEASUREMENT="en_US.UTF-8"
 +
LC_IDENTIFICATION="en_US.UTF-8"
 +
LC_ALL=
 +
3. once you know which locale you need, you can build it
 +
~$ sudo locale-gen en_US.UTF-8
 +
Generating locales...
 +
  en_US.UTF-8... done
 +
Generation complete.
 +
4. make sure it's up to date (which is should be)
 +
~$ sudo dpkg-reconfigure locales
 +
Generating locales...
 +
  en_US.UTF-8... up-to-date
 +
Generation complete.
 +
5. check to see if the new locale is listed and verify you no longer get the error
 +
~$ locale -a
 +
C
 +
C.UTF-8
 +
en_US.utf8
 +
POSIX
 +
You'll see here that unlike in step 1, you get the required responses without an error message.

Revision as of 03:46, 27 September 2014

Contents

 [hide

Enable Remote Desktop via VNC (12.04+ - these are just default, you may want to configure more)

Dash Home > [type] Desktop > [Select] either Desktop Sharing or Remote Desktop
[check] Allow view and control > [check] require user to enter password > [type] password

Upgrade from 10.04LTS to 12.04LTS via terminal

$ sudo apt-get update
$ sudo apt-get install update-manager-core
$ sudo vi /etc/update-manager/release-upgrades
verify there is the following line in the file
prompt=lts
$ sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y autoremove
$ sudo do-release-upgrade -d

rename directory with contents

~$ sudo mv -f /path/oldfolderanem /path/newfoldername

ubuntu 14.04 apt-get error

W: GPG error: http://archive.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32

Keys are:

40976EAF437D05B5
3B4FE6ACC0B21F32

fix by importing keys from Canonical's key library:

~$sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
~$sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5

ubuntu 14.04 locale error

error
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
solution

1. check what locales you have available on the machine

~$ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
C.UTF-8
POSIX

2. if you're missing the locale for your area like i was, you can sometimes discover the name

~$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

3. once you know which locale you need, you can build it

~$ sudo locale-gen en_US.UTF-8
Generating locales...
  en_US.UTF-8... done
Generation complete.

4. make sure it's up to date (which is should be)

~$ sudo dpkg-reconfigure locales
Generating locales...
  en_US.UTF-8... up-to-date
Generation complete.

5. check to see if the new locale is listed and verify you no longer get the error

~$ locale -a
C 
C.UTF-8
en_US.utf8
POSIX

You'll see here that unlike in step 1, you get the required responses without an error message.

Personal tools
Namespaces

Variants
Actions
Navigation
Mediawiki