Author Archives: cowman.chiang

Ubuntu x64 快速安裝 Nginx with RTMP module

#!/bin/sh apt-get install build-essential libpcre3 libpcre3-dev libssl-dev libxslt-dev -y cd /tmp wget http://nginx.org/download/nginx-1.7.3.tar.gz wget https://github.com/arut/nginx-rtmp-module/archive/master.zip tar -zxvf nginx-1.7.3.tar.gz apt-get install unzip -y unzip master.zip cd nginx-1.7.3/ ./configure –with-http_ssl_module –with-http_xslt_module –add-module=../nginx-rtmp-module-master make make install cp /tmp/nginx-rtmp-module-master/stat.xsl /usr/local/nginx/html/ cp /usr/local/nginx/conf/nginx.conf /usr/local/nginx/conf/nginx.conf.bak echo … Continue reading

Posted in Nginx, Ubuntu | Leave a comment

Nginx init script (Ubuntu)

將下列內容貼到 /etc/init.d/nginx 中,並且使用 chmod +x nginx 調整屬性 #! /bin/sh ### BEGIN INIT INFO # Provides: nginx # Required-Start: $all # Required-Stop: $all # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: starts the nginx web server … Continue reading

Posted in Nginx, Ubuntu | 1 Comment

Vim 設定tab space

vim ~/.vimrc #加入下面 set ts=2 # ts => 1個tab佔幾個空格 set sw=2 # sw => 每層縮進的空格數

Posted in Vim | Leave a comment

Xshell 關閉擾人的警告音

Tools => Options => Advanced 勾選 Disable bell

Posted in Xshell | Leave a comment

VMware Player 設定NAT

確認VMware Player版本資訊 ex: 6.0.3 build-1895310 其中 6.0.3 就是最需要注意的 下載 VMware Workstation,因為VMware player是新版的,所以下載新版尾碼是.3的版本 ex 10.0.3 build-1895310 進cmd執行 “VMware-workstation-full-10.0.3-1895310.exe /e .extact” 此舉會將程式解壓縮至extact資料夾內 解壓縮extact內的core.cab,將其中的 “_vmnetcfglib.dll” 及 “vmnetcfg.exe” 複製到 VMware Player的安裝目錄下 並將”_vmnetcfglib.dll”更名為”vmnetcfglib.dll”

Posted in VMware | Leave a comment

Flash Media Server (RTMP Server)

基本上裝完就可以跑了!!! 主要設定如下 (以下以OBS產生Streaming為例) OBS設定 => 廣播 模式:直播串流 串流服務:Custom 伺服器:rtmp://[Flash Media Server 伺服器ip]:1935/livepkgr/ 播放路徑:[變數]?adbe-live-event=liveevent 這時後便可以透過連結 rtmp://[Flash Media Server 伺服器ip]/livepkgr/[變數] 進行播放

Posted in FMS, RTMP | Leave a comment

Install Nginx with RTMP module in Ubuntu 12.04 x64 LTS

# 安裝必要套件 apt-get install build-essential libpcre3 libpcre3-dev libssl-dev # 下載 tar 安裝檔案 cd /tmp wget http://nginx.org/download/nginx-1.7.3.tar.gz wget https://github.com/arut/nginx-rtmp-module/archive/master.zip # 安裝 nginx tar -zxvf nginx-1.7.3.tar.gz unzip master.zip cd nginx-1.7.3/ ./configure –with-http_ssl_module –with-http_xslt_module –add-module=../nginx-rtmp-module-master make make install # 編輯 nginx 設定檔案 vim … Continue reading

Posted in Nginx, RTMP, Ubuntu | Leave a comment

Windows 7 convert MAK to KMS

先根據Windows 7版本輸入下述金鑰 Windows 7 Professional : FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4 Windows 7 Professional N : MRPKT-YTG23-K7D7T-X2JMM-QY7MG Windows 7 Enterprise : 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH Windows 7 Enterprise N : YDRBP-3D83W-TY26F-D46B2-XCKRJ Windows 7 Enterprise E : C29WB-22CC8-VJ326-GHFJW-H9DH4 啟用後再使用命令提示字元 (以管理員身分執行) 進行 slmgr 等指令

Posted in Windows | Leave a comment

關閉螢幕自動關閉

避免畫面會變黑 # vim /etc/profile // 最後面加入下面這行 setterm -powersave off -blank 0 # sh /etc/profile

Posted in Linux | 1 Comment

Git Server 安裝

OS: Ubuntu 12.04 Desktop x64 安裝Gitlab + MySQL 系統更新 apt-get update apt-get upgrade -y apt-get dist-upgrade 安裝基本需求 update-alternatives –set editor /usr/bin/vim.basic sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl openssh-server redis-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev … Continue reading

Posted in Git, Ubuntu | Leave a comment