Linux
error: Could not load ssh_host_ecdsa_key
by dervish 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.
Change Default Text Editor in Linux Mint/Ubuntu
by dervish 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.
No support for locale: en_US.utf8
by dervish 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.
apt-get install not replacing deleted config file
by dervish 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
Postfix/Dovecot Install
by dervish 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