Categories
- FFMpeg (5)
- Libav (1)
- Google (3)
- iBeacon (1)
- LDAP (3)
- Me (2)
- Network (11)
- OS (149)
- RTMP (4)
- SIP (1)
- Kamailio (1)
- SNMP (1)
- VMware (20)
- VCP考試 (1)
- 伺服器 網站服務 (105)
- 名詞解釋 (4)
- 專案管理 (1)
- 工具軟體 (51)
- Adobe (1)
- FMS (1)
- Cloudera (1)
- Docker (1)
- Eclipse (4)
- Intellij (2)
- OBS (2)
- Office (10)
- Excel (4)
- PowerPoint (5)
- Postman (2)
- Splunk (13)
- Virtualbox (2)
- Visual Studio (2)
- 文字編輯器 (10)
- Sublime Text 2 (6)
- Sublime Text 3 (3)
- Vim (3)
- 連線工具 (1)
- Xshell (1)
- Adobe (1)
- 程式語言 (80)
- CSS (2)
- HTML (2)
- iOS (1)
- Java (30)
- JavaScript (5)
- jQuery (4)
- jsTree (2)
- JSP (3)
- PHP (16)
- Python (8)
- Ruby (1)
- sed (1)
- Shell Script (8)
- Windows Bash Script (1)
- XML (1)
- 資料庫 (37)
- FFMpeg (5)
Category Archives: OS
開啟 Ubuntu Console 彩色顯示
編輯 ~/.bashrc 將 #force_color_prompt=yes 變為 force_color_prompt=yes
Posted in Ubuntu
Leave a comment
Xibo & Nginx-rtmp
20141226 更新 不要用這個~~因為不穩定~Orz 環境: Ubuntu 14.04.01 1. 安裝build deb需要的套件 apt-get install dpkg-dev 創建source code目錄 mkdir -p /usr/src/nginx cd /usr/src/nginx 透過apt-get下載nginx的source code apt-get source nginx 安裝git apt-get install git 透過git下載nginx-rtmp-module的source code git clone https://github.com/arut/nginx-rtmp-module.git 將rtmp、xlst模組功能加入設定檔中 cd nginx-1.4.6/ vim debian/rules common_configure_flags := … Continue reading
Posted in Nginx, Ubuntu, Xibo
Leave a comment
目錄加密……
最近在測試upstart開機自動啟動服務時遇到一個麻煩… 一直告訴我無法access該目錄…. 以為是upstart寫錯~一值修正… 後來才發現是目錄被加密……所以無法被access… 記起來,下次要小心 /home/cowman/.Private on /home/cowman type ecryptfs (ecryptfs_check_dev_ruid,ecryptfs_cipher=aes,ecryptfs_key_bytes=12,ecryptfs_unlink_sigs,ecryptfs_sig=123,ecryptfs_fnek_sig=123)
Posted in Linux
Leave a comment
upstart service 建立
這邊先貼幾個基本的,在etherpad及wisemapping建置的時候使用的conf來看一下 /etc/init/etherpad.conf description “etherpad” #start on started networking start on started mysql stop on runlevel [!2345] env EPHOME=/home/etherpad/etherpad-lite env EPLOGS=/var/log/etherpad-lite env EPUSER=etherpad respawn pre-start script cd $EPHOME mkdir $EPLOGS ||true chown $EPUSER:admin $EPLOGS ||true chmod 0755 $EPLOGS ||true chown -R … Continue reading
Posted in Ubuntu
Leave a comment
bridge firewall use iptables to contorl packet
因為預設的bridge firewall ploicy是bypass…屬於通透的firewall (layer 2) 所以在layer 3的iptables就管不到他了 這時候可以修正 /etc/sysctl.conf 內的設定,增加下面的資料 針對bridge進行過濾 net.bridge.bridge-nf-call-iptables = 1 net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-arptables = 1 然後使用 sysctl -p /etc/sysctl.conf 執行 也可以透過 sysctl -a | grep bridge-nf 觀看目前相關設定
Posted in Linux
Leave a comment
Redir 每日記錄回報
#!/bin/sh /bin/cat /var/log/syslog* | grep -a “ubuntu redir” | grep “`date –date=yesterday +%b %e`” > /root/diary.log /bin/zcat /var/log/syslog.*.gz | grep -a “ubuntu redir” | grep “`date –date=yesterday +%b %e`” >> /root/diary.log if [ -s /root/diary.log ] ; then /bin/cat /root/diary.log| … Continue reading
Posted in Linux, Shell Script
Leave a comment
安裝Ubuntu在VMware環境出現 Host SMBus controller not enabled!
修改/etc/modprobe.d/blacklist.conf vim /etc/modprobe.d/blacklist.conf # 最後面加上 blacklist i2c-piix4
Posted in Ubuntu, VMware
Leave a comment
Ubuntu 關閉 ipv6
修改設定檔 sudo vim /etc/sysctl.conf # 最後面加入下面 net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 直接套用 sudo sysctl -p
Posted in Ubuntu
Leave a comment
Wisemapping in Ubuntu 14.04 x64 server
Wisemapping 環境 : Ubuntu 14.04 x64 server 檢查系統是否已裝了 java development kit,如果是openjdk就先移除掉 java -version 安裝 Java Development Kit (版本>7) sudo apt-get install software-properties-common python-software-properties sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer 下載 wisemapping binary檔案 wget https://bitbucket.org/wisemapping/wisemapping-open-source/downloads/wisemapping-v3.0.4.zip 安裝 unzip … Continue reading
Posted in MySQL, Ubuntu, Wisemapping
Leave a comment
Etherpad-lite in Ubuntu 14.04 x64 server
etherpad 安裝基本套件需求 sudo apt-get install gzip git-core curl python libssl-dev pkg-config build-essential 更新安裝nodejs的來源 sudo curl -sL https://deb.nodesource.com/setup | sudo bash – 安裝nodejs sudo apt-get install nodejs 新增etherpad的使用者 sudo useradd etherpad -m -s /bin/bash -r sudo passwd etherpad 將etherpad使用者加入sudoers中 sudo usermod … Continue reading
Posted in etherpad, MySQL, Nagios, Ubuntu
Leave a comment