export http_proxy=http:/id:password@proxy_address:port/
export ftp_proxy=http:/id:password@proxy_address:port/
source ~/.bashrc
2014年5月13日 星期二
[Raspberry Pi] 安裝 Redmine
使用的 Raspberry OS 為 2014-01-07-wheezy-raspbian
1. 更新系統
sudo apt-get update
sudo apt-get upgrade
sudo rpi-update
2. 安裝 Web server
sudo apt-get install apache2
3. 安裝資料庫
sudo apt-get install mysql-server
sudo apt-get install redmine-mysql
4. 安裝 mod
sudo apt-get install libapache2-mod-passenger
5. 安裝 Redmine
sudo apt-get install redmine
6. 設定
sudo ln -s /usr/share/redmine/public /var/www/redmine
Passenger需要用 www-data 來執行(與 Apache2 相同), 在 /etc/apache2/mods-available/passenger.conf 加入一行
sudo vi /etc/apache2/mods-available/passenger.conf
PassengerDefaultUser www-data
加入 /var/www/redmine 的位置在 /etc/apache2/sites-available/default 裡面
sudo vi /etc/apache2/sites-available/default
<Directory /var/www/redmine>
RailsBaseURI /redmine
PassengerResolveSymlinksInDocumentRoot on
</Directory>
7. 啟動
sudo a2enmod passenger
sudo /etc/init.d/apache2 restart
8. 設定 link
sudo ln -s /var/cache/redmine/default/plugin_assets /usr/share/redmine/public/
9. 設定Email設定 (MS Exchang server)
sudo cp /usr/share/redmine/config/configuration.yml.example /etc/redmine/default/configuration.yml
sudo vi /usr/share/redmine/config/configuration.yml
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: exchange server address
port: 25
domain: example.net
authentication: :login
user_name: "user_name"
password: "password"
1. 更新系統
sudo apt-get update
sudo apt-get upgrade
sudo rpi-update
2. 安裝 Web server
sudo apt-get install apache2
3. 安裝資料庫
sudo apt-get install mysql-server
sudo apt-get install redmine-mysql
4. 安裝 mod
sudo apt-get install libapache2-mod-passenger
5. 安裝 Redmine
sudo apt-get install redmine
6. 設定
sudo ln -s /usr/share/redmine/public /var/www/redmine
Passenger需要用 www-data 來執行(與 Apache2 相同), 在 /etc/apache2/mods-available/passenger.conf 加入一行
sudo vi /etc/apache2/mods-available/passenger.conf
PassengerDefaultUser www-data
加入 /var/www/redmine 的位置在 /etc/apache2/sites-available/default 裡面
sudo vi /etc/apache2/sites-available/default
<Directory /var/www/redmine>
RailsBaseURI /redmine
PassengerResolveSymlinksInDocumentRoot on
</Directory>
7. 啟動
sudo a2enmod passenger
sudo /etc/init.d/apache2 restart
8. 設定 link
sudo ln -s /var/cache/redmine/default/plugin_assets /usr/share/redmine/public/
9. 設定Email設定 (MS Exchang server)
sudo cp /usr/share/redmine/config/configuration.yml.example /etc/redmine/default/configuration.yml
sudo vi /usr/share/redmine/config/configuration.yml
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: exchange server address
port: 25
domain: example.net
authentication: :login
user_name: "user_name"
password: "password"
2014年1月22日 星期三
[Raspberry Pi] Apt 透過 Proxy 連出去的設定
在/etc/apt/apt.conf.d底下建立"10proxy"這個檔案
在檔案中寫入
Acquire::http::Proxy "http://id:password@yourproxyaddress:proxyport";
在檔案中寫入
Acquire::http::Proxy "http://id:password@yourproxyaddress:proxyport";
訂閱:
文章 (Atom)