links for 2011-05-30

Advertisements

每週小技巧

手動 import GPG Public Key:
有時候 Ubuntu PPA 的 keyserver 會出莫名奇妙的問題,就得自己手動 import PPA 的 Public Key
首先,拿到 PPA 的 Public Key,存到主機上,檔名可以搭配軟體名,例如:redmine.public.key
執行[gpg –import redmine.public.key]
apt-key add redmine.public.key
done!

Reference:
http://www.linuxquestions.org/questions/debian-26/apt-gpg-error-how-to-import-public-keys-417368/
http://blog.edseek.com/archives/2007/03/17/apt-key-gpg-key-import-on-ubuntu-and-debian/
http://wiki.debian.org/SecureApt

——–

設定 apt-get 的 proxy:
vim /etc/apt/apt.conf.d/70debconf

加入:
Acquire::http::Proxy “http://YOUR_PROXY_SERVER:YOUR_PROXY_PROT”;

———

Ubuntu Server 10.04 安裝 Redmine:
sudo apt-get install redmine redmine-mysql subversion

Note: The package with Ubuntu is stuck in the 0.9.x branch for now. A PPA exists that has the 1.1 branch here: https://launchpad.net/~ondrej/+archive/redmine

完整過程:
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/redmine
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install apparmor-profiles
sudo apt-get install tasksel
sudo tasksel install lamp-server
sudo aa-complain /usr/sbin/mysqld
sudo apt-get install redmine redmine-mysql subversion
sudo aa-enforce /usr/sbin/mysqld
sudo ln -s /usr/share/redmine/public /var/www/redmine
sudo apt-get install libapache2-mod-passenger
把 PassengerDefaultUser www-data 加到 /etc/apache2/mods-available/passenger.conf
sudo a2enmod passenger

vim /etc/apache2/sites-available/redmine

<Directory /var/www/redmine>
    RailsBaseURI /redmine
    PassengerResolveSymlinksInDocumentRoot on
</Directory>

sudo chmod a+x /usr/share/redmine/public
sudo a2ensite redmine

sudo /etc/init.d/apache2 restart

http://localhost/redmine

Reference:
http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Ubuntu
https://help.ubuntu.com/community/AppArmor
https://help.ubuntu.com/community/Tasksel

links for 2011-05-27

links for 2011-05-26

links for 2011-05-25