ciphermethod.com

Linux

GPG Key Trust

by on Sep.17, 2012, under Linux



When importing a public key onto another machine, you may have configure gpg to
trust the key. Otherwise, when you use the key to do encryption, you may
see a prompt like this:

It is NOT certain that the key belongs to the person named
in the user ID. If you *really* know what you are doing,
you may answer the next question with yes.

Use this key anyway? (y/N)

To trust the key, run:
gpg --edit-key NAME

GPG will output some information, and show a line like:
trust: undefined validity: unknown

You will be at a console, and you have to type "trust":
Command> trust
Please decide how far you trust this user to correctly verify other users' keys
(by looking at passports, checking fingerprints from different sources, etc.)

1 = I don't know or won't say
2 = I do NOT trust
3 = I trust marginally
4 = I trust fully
5 = I trust ultimately
m = back to the main menu

Your decision? 5
Do you really want to set this key to ultimate trust? (y/N) y

Type "quit" to quit. If you run gpg --edit-key NAME again, you will
see a line as below, which means the key is now trusted.
trust: ultimate validity: ultimate

Leave a Comment more...

Missing insserv

by on Aug.20, 2012, under Linux, Ubuntu

# chkconfig saned off
/sbin/insserv: No such file or directory

# chkconfig webmin off
/sbin/insserv: No such file or directory

# ln -s /usr/lib/insserv/insserv /sbin/insserv

# chkconfig saned off
#

I <3 Ubuntu

Leave a Comment more...

error: Could not load ssh_host_ecdsa_key

by on Aug.20, 2012, under Linux, Ubuntu

Error in log:
error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key

Fix:
sudo ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ”

The ecdsa SSH key in not being generated by default.

Leave a Comment more...

Change Default Text Editor in Linux Mint/Ubuntu

by on Aug.03, 2012, under Linux, Ubuntu

Command:
$ sudo update-alternatives --config editor

There are 3 choices for the alternative editor (providing /usr/bin/editor).

Selection Path Priority Status
------------------------------------------------------------
* 0 /bin/nano 40 auto mode
1 /bin/ed -100 manual mode
2 /bin/nano 40 manual mode
3 /usr/bin/vim.tiny 10 manual mode

Press enter to keep the current choice[*], or type selection number: 3
update-alternatives: using /usr/bin/vim.tiny to provide /usr/bin/editor (editor) in manual mode.


Leave a Comment more...

No support for locale: en_US.utf8

by on Jun.18, 2012, under Linux, Ubuntu

Error:
update-initramfs: Generating /boot/initrd.img-3.0.0-12-generic
Warning: No support for locale: en_US.utf8

Issue:
The problem is that /usr/share/initramfs-tools/hooks/root_locale is expecting to see individual locale directories in /usr/lib/locale, but locale-gen is configured to generate an archive file by default.

Fix:

# locale-gen --purge --no-archive
Generating locales...
en_AG.UTF-8... done
en_AU.UTF-8... done
en_BW.UTF-8... done
en_CA.UTF-8... done
en_DK.UTF-8... done
en_GB.UTF-8... done
en_HK.UTF-8... done
en_IE.UTF-8... done
en_IN.UTF-8... done
en_NG.UTF-8... done
en_NZ.UTF-8... done
en_PH.UTF-8... done
en_SG.UTF-8... done
en_US.UTF-8... done
en_ZA.UTF-8... done
en_ZM.UTF-8... done
en_ZW.UTF-8... done
Generation complete.

or

# dpkg-reconfigure locales
Generating locales...
en_AG.UTF-8... done
en_AU.UTF-8... done
en_BW.UTF-8... done
en_CA.UTF-8... done
en_DK.UTF-8... done
en_GB.UTF-8... done
en_HK.UTF-8... done
en_IE.UTF-8... done
en_IN.UTF-8... done
en_NG.UTF-8... done
en_NZ.UTF-8... done
en_PH.UTF-8... done
en_SG.UTF-8... done
en_US.UTF-8... up-to-date
en_ZA.UTF-8... done
en_ZM.UTF-8... done
en_ZW.UTF-8... done
Generation complete.


Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

But Wait, There's More!

A few highly recommended friends...