Danske karakterer under Debian Lenny på en NSLU2
Jeg har haft gevaldige problemer med rsync på min NSLU2 kørende Debian Lenny, idet alle filer der indeholdt æ, ø eller å blive ødelagt. Jeg fandt ud af at det heller ikke var muligt at skrive æ, ø eller å i en terminal, hvilket blev løst ved først at installere locales-all:
sudo apt-get install locales-all
Hvorefter jeg ændrede /etc/default/locale til at indeholde LANG="da_DK.UTF-8".
Alt virker nu glimrende.
(Husk at logge af og på!)
Search and replace in MySQL
Howto replace foo with bar in the column col_name of all records of table table_name, where col_name has foo in it.
UPDATE table_name
SET col_name = (REPLACE (col_name, 'foo', 'bar'))
WHERE col_name LIKE '%foo%';
Installing Adobe Reader 9.2 in Ubuntu 9.10
To install Adobe Reader 9.2 in Ubuntu 9.10, you have to enable the Canonical Partner Repository. Go to System -> Administration -> Software Sources
Select Third-Party Software and and check the checkbox for http://archive.canonical.com/ubuntu partner.
Close and accept to reload.
It is now possible to install "acroread" by
sudo apt-get install acroread
Or from System -> Administration -> Synaptic Package Manager, but for some reason it is not found in Ubuntu Software Center?
Update: 2009-11-03 @ 00:56
According to https://wiki.ubuntu.com/SoftwareCenter version 3 of the SoftwareCenter will offer "commercial software for sale". But according to http://www.ghacks.net/2009/10/30/the-new-ubuntu-software-center/ and http://blogs.techrepublic.com.com/opensource/?p=1031 it should be possible to install "commercial/non-free software" in version 3.
In Ubuntu 10.4 the Software Center should replace "Synaptic, Software Sources, Gdebi, and possibly the Update Manager" according to http://en.wikipedia.org/wiki/Ubuntu_Software_Center, so version 3 should be out at that time - I hope :)
