Category Archives: Ubuntu

[Apache] wordpress permalink 404 issue

edit site conf (vim /etc/apache2/sites-available/pr.site.org.conf)

enable apache2 rewrite module

restart apache2 service

  Ref. [1] Victor Hung’s Diary: 「教學」解決 WordPress 固定網址設定 404 錯誤 [2] DigitalOcean: WordPress permalinks tried everything  

Posted in Apache, Ubuntu, WordPress | Leave a comment

Add git branch name to bash prompt

edit ~/.bash_profile

Posted in CentOS, Git, Linux, Mac, Ubuntu | Leave a comment

Install aglio in Ubuntu 14.04

Install nodejs Ref. NodeSource Node.js Binary Distributions

Install python

Install aglio Ref. Github : aglio

Posted in Aglio, Ubuntu | Leave a comment

[Apache HBase] Install Apache HBase in Ubuntu 14.04

Java 1.7

Cloudera HBase Ref. installing-apache-hbase-on-ubuntu-for-standalone-mode Note. hbase tar file choose http://archive.apache.org/dist/hbase/hbase-0.98.5/hbase-0.98.5-hadoop1-bin.tar.gz (or http://ftp.mirror.tw/pub/apache/hbase/hbase-0.98.11/hbase-0.98.11-hadoop1-bin.tar.gz )

Posted in HBase, Ubuntu | Leave a comment

[Ubuntu] Enable exFAT support

All you need is install the exfat-* packages.

Posted in Ubuntu | Leave a comment

[Ubuntu] Enable power saving in Lenovo X61

Ref: http://www.webupd8.org/2014/04/prevent-your-laptop-from-overheating.html Because I installed Ubuntu 14.04 in my Lenovo X61. Although it could switch into the sleep mode after closing the lid. It’s not really using the power saving mode. So we must edit the GRUB file.

Find … Continue reading

Posted in Ubuntu | Leave a comment

開啟 Ubuntu Console 彩色顯示

編輯 ~/.bashrc 將

變為

Posted in Ubuntu | Leave a comment

Xibo & Nginx-rtmp

20141226 更新 不要用這個~~因為不穩定~Orz 環境: Ubuntu 14.04.01 1. 安裝build deb需要的套件

創建source code目錄

透過apt-get下載nginx的source code

安裝git

透過git下載nginx-rtmp-module的source code

將rtmp、xlst模組功能加入設定檔中

安裝nginx的相依性套件

建置nginx deb

安裝編譯後的檔案

安裝php5-fpm、mysql-server、php5-mysql

修改nginx default site設定,加入php功能及相關host

修改nginx設定,加入rtmp模組

重新啟動

Continue reading

Posted in Nginx, Ubuntu, Xibo | Leave a comment

upstart service 建立

這邊先貼幾個基本的,在etherpad及wisemapping建置的時候使用的conf來看一下 /etc/init/etherpad.conf

/etc/init/wisemapping.conf

當conf檔案放入/etc/init後便可以透過以下指令進行 start {service name} stop {service name} restart {service name} status {service name} 以下大概作個說明

更詳細的說明可以參考 http://blog.fens.me/linux-upstart/

Posted in Ubuntu | Leave a comment

安裝Ubuntu在VMware環境出現 Host SMBus controller not enabled!

修改/etc/modprobe.d/blacklist.conf

Posted in Ubuntu, VMware | Leave a comment