ciphermethod.com

Linux

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...

apt-get install not replacing deleted config file

by on Feb.23, 2012, under Debian, Linux

Problem:
An apt-get install is not replacing deleted config files…

Example:
Setting up dovecot-common (1:1.2.12-1ubuntu8.3) …
Not replacing deleted config file /etc/dovecot/dovecot.conf
Not replacing deleted config file /etc/dovecot/dovecot-ldap.conf
Not replacing deleted config file /etc/dovecot/dovecot-sql.conf
grep: /etc/dovecot/dovecot.conf: No such file or directory
grep: /etc/dovecot/dovecot.conf: No such file or directory

Solution:

apt-get --purge autoremove package


Leave a Comment more...

Postfix/Dovecot Install

by on Feb.23, 2012, under Linux, Red Hat

Install Postfix:
yum install postfix (RedHat)
apt-get install postfix (Debian)

Add Domains to Accept Mail For:
vi /etc/postfix/main.cf
set
mydestination = localhost.localdomain, localhost, domain.com, host

Tell Postfix to use Maildir instead of mbox format:
postconf -e "home_mailbox = Maildir/"
postconf -e "mailbox_command ="

Set MAIL variable in /etc/profile:
export MAIL=$HOME/Maildir

Restart Postfix:
service postfix restart

Mail local user and confirm mail is delivered.

Install Dovecot:
apt-get install dovecot-common dovecot-imapd dovecot-pop3d

Leave a Comment more...

Dist Switch

by on Jul.26, 2011, under CentOS, Linux

Switched to CentOS 6 as my primary Linux OS.  Fedora is getting the boot after many, many, years of use.  Fedora 15 just has too many things that are wrong with it.  In all fairness, some of the issues are with the path Gnome and Linux has taken in general.  It was a good run.

 

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...