Category Archives: Ubuntu

Ubuntu 關閉 ipv6

修改設定檔

直接套用

Posted in Ubuntu | Leave a comment

Wisemapping in Ubuntu 14.04 x64 server

Wisemapping 環境 : Ubuntu 14.04 x64 server 檢查系統是否已裝了 java development kit,如果是openjdk就先移除掉

安裝 Java Development Kit (版本>7)

下載 wisemapping binary檔案

安裝 unzip

解壓縮 wisemapping 檔案

切換到 wisemapping 目錄中

測試執行

安裝 mysql server、nginx

編輯 … Continue reading

Posted in MySQL, Ubuntu, Wisemapping | Leave a comment

Etherpad-lite in Ubuntu 14.04 x64 server

etherpad 安裝基本套件需求

更新安裝nodejs的來源

安裝nodejs

新增etherpad的使用者

將etherpad使用者加入sudoers中

切換到etherpad使用者

下載etherpad檔案

安裝unzip

解壓縮etherpad壓縮檔

將目錄名稱變好看一點

切換到etherpad-lite目錄

複製設定檔範本

設定etherpad基本環境

試執行,可看 http://ip:9001 是否正常

安裝mysql、nginx

建立etherpad資料庫、設定使用者權限

設定etherpad資料存放使用mysql

試執行,並請連至 http://ip:9001 增加幾筆資料 … Continue reading

Posted in etherpad, MySQL, Nagios, Ubuntu | Leave a comment

Git Server 安裝 (New)

OS: Ubuntu 14.04 Server x64 安裝Gitlab + MySQL + Nginx 系統更新

安裝基本需求

安裝python

安裝Git

安裝Ruby

新增Gitlab系統帳號

安裝GitLab Shell

安裝MySQL Database

安裝GitLab

設定GitLab

GitLab DB設計

安裝Gems

初始化 Database

Continue reading

Posted in Git, Nginx, Ubuntu | Leave a comment

更換 apt-get 來源

或是

記得要在apt-get update一下.. 基本上國網 free.nchc.org 應該也可以 但是不知道為什麼一直出錯 如果想要用國網的點,就把tw.archive.ubuntu.com改成free.nchc.org

Posted in Ubuntu | Leave a comment

Nginx SSL Enable

環境: Ubuntu 14.04 x64 產生key

2.產生 csr

cat csr,貼至申請處

這裡一樣以namecheap的comodo ssl為例,會收到下面四個檔案 伺服器類型選nginx AddTrustExternalCARoot.crt COMODORSAAddTrustCA.crt COMODORSADomainValidationSecureServerCA.crt cowman_ip.crt 產生 ssl-bundle.crt

移除需要輸入 phase 的機制

修改 nginx 設定檔,位置在 /etc/nginx/sites-enabled/default,這裡把設定檔整併在server中

重新啟動 nginx

Posted in Nginx, SSL, Ubuntu | Leave a comment

Gitlab改使用GMail SMTP

檢查 config/environments/production.rb 檔案,查看 config.action_mailer.delivery_method = :sendmail 的註解是否已增加,關閉Gitlab sendmail寄送服務 config.action_mailer.delivery_method = :sendmail [註] 使用這一篇 使用GMail SMTP寄信 (Ubuntu) 的方法應該也可以~但是目前會出現 “Mail failure – no recipient addresses” A message that you sent using the -t command line option contained no addresses that were not … Continue reading

Posted in Git, Ubuntu | Leave a comment

使用GMail SMTP寄信 (Ubuntu)

安裝mailx、exim4 apt-get install exim4-daemon-light mailutils dpkg-reconfigure exim4-config General type of mail configuration: │ internet site; mail is sent and received directly using SMTP │ │ mail sent by smarthost; received via SMTP or fetchmail │ │ mail sent by smarthost; … Continue reading

Posted in Ubuntu | Leave a comment

Ubuntu x64 快速安裝 Nginx with RTMP module

Posted in Nginx, Ubuntu | Leave a comment

Nginx init script (Ubuntu)

將下列內容貼到 /etc/init.d/nginx 中,並且使用 chmod +x nginx 調整屬性

Posted in Nginx, Ubuntu | 1 Comment