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)
- 工具軟體 (50)
- Adobe (1)
- FMS (1)
- Cloudera (1)
- Docker (1)
- Eclipse (4)
- Intellij (2)
- OBS (2)
- Office (10)
- Excel (4)
- PowerPoint (5)
- Postman (1)
- Splunk (13)
- Virtualbox (2)
- Visual Studio (2)
- 文字編輯器 (10)
- Sublime Text 2 (6)
- Sublime Text 3 (3)
- Vim (3)
- 連線工具 (1)
- Xshell (1)
- Adobe (1)
- 程式語言 (79)
- CSS (2)
- HTML (2)
- iOS (1)
- Java (30)
- JavaScript (5)
- jQuery (4)
- jsTree (2)
- JSP (3)
- PHP (16)
- Python (7)
- Ruby (1)
- sed (1)
- Shell Script (8)
- Windows Bash Script (1)
- XML (1)
- 資料庫 (37)
- FFMpeg (5)
Category Archives: Xibo
Xibo 修改網頁page template
避免在指派播放網頁的時候會因為activeX被關閉而失敗 修改 {xibo directory}/modules/preview/HtmlTemplateSimple.html 最上面加入 <!– saved from url=(0014)about:internet –>
1 2 3 |
<!-- saved from url=(0014)about:internet --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!--[if lt IE 7 ]> <html lang="en" class="ie6"> <![endif]--> |
Posted in Xibo
Leave a comment
Xibo使用web page時出現白邊解決方法
即使在設定上已經選擇了fullscreen,可是在client播放時四週會有白邊 這時候的解決方法為將layout的設定稍為超過,蓋掉白邊…Orz
Posted in Xibo
Leave a comment
Xibo 增加 Menu
page 資料表新增資料 pageID => 流水號 name => 名稱 pageGroupID => groupID menuitem 資料表新增資料 MenuItemID => 流水號 MenuID => 屬於哪一層Menu PageID => 哪一個頁面,對應到 1. 的資料 Args => link,外部link要連http一起打 Text => 顯示資訊 Class => 未知 Img => 圖片 Sequence => 在這一層menu的順序 External … Continue reading
Posted in Xibo
Leave a comment
Xibo 修正上傳中文檔名會空白
修改 {xibo}/3rdparty/jquery-file-upload/UploadHandler.php 主要是因為basename這個function對解析中文會有問題~
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
protected function trim_file_name($name, $type, $index, $content_range) { // Remove path information and dots around the filename, to prevent uploading // into different directories or replacing hidden system files. // Also remove control characters and spaces (x00..x20) around the filename: //原本是 //$name = trim(basename(stripslashes($name)), ".x00..x20"); //修改為 $name = preg_replace('/^.+[\\\/]/', '', $name); // Use a timestamp for empty filenames: if (!$name) { $name = str_replace('.', '-', microtime(true)); } // Add missing file extension for known image types: if (strpos($name, '.') === false && preg_match('/^image/(gif|jpe?g|png)/', $type, $matches)) { $name .= '.'.$matches[1]; } return $name; } |
Posted in Xibo
Leave a comment
Xibo 增加 display 顯示頁面連結,開啟 rtmp 串流頁面
修改 {xibo}/theme/default/html/display_page_grid.php 修改為
1 2 3 4 |
<!--?php echo $row['display']; ?--> <a href="../rtmp.php?name=<?php echo $row['display']; ?>" target="_blank" rel="noopener noreferrer"> <img src="../OBSLogo80.png" alt="" width="20" /> </a> |
Posted in Xibo
Leave a comment
Xibo 修改外部 link 為新開視窗
修改檔案 {xibo}/lib/app/thememanager.class.php
1 |
$item['li'] = '<li class="' . $item['class'] . (($item['selected']) ? ' active' : '') . '"><a href="' . $item['link'] . '" class="' . $item['class'] . (($item['selected']) ? ' active' : '') . '">' . $item['title'] . '</a></li>'; |
修改為
1 |
$item['li'] = '<li class="' . $item['class'] . (($item['selected']) ? ' active' : '') . '"><a href="' . $item['link'] . '" class="' . $item['class'] . (($item['selected']) ? ' active' : '') . '" target="blank" rel="noopener noreferrer">' . $item['title'] . '</a></li>'; |
Posted in Xibo
Leave a comment
Xibo & Nginx-rtmp
20141226 更新 不要用這個~~因為不穩定~Orz 環境: Ubuntu 14.04.01 1. 安裝build deb需要的套件
1 |
apt-get install dpkg-dev |
創建source code目錄
1 2 |
mkdir -p /usr/src/nginx cd /usr/src/nginx |
透過apt-get下載nginx的source code
1 |
apt-get source nginx |
安裝git
1 |
apt-get install git |
透過git下載nginx-rtmp-module的source code
1 |
git clone https://github.com/arut/nginx-rtmp-module.git |
將rtmp、xlst模組功能加入設定檔中
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
cd nginx-1.4.6/ vim debian/rules <略> common_configure_flags := --with-cc-opt="$(debian_cflags)" --with-ld-opt="$(debian_ldflags)" --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_xslt_module --add-module=/usr/src/nginx/nginx-rtmp-module <略> |
安裝nginx的相依性套件
1 |
apt-get build-dep nginx |
建置nginx deb
1 |
dpkg-buildpackage -b |
安裝編譯後的檔案
1 |
dpkg --install nginx-common_1.4.6-1ubuntu3.1_all.deb nginx-full_1.4.6-1ubuntu3.1_amd64.deb |
安裝php5-fpm、mysql-server、php5-mysql
1 |
apt-get install php5-fpm php5-mysql mysql-server |
修改nginx default site設定,加入php功能及相關host
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
vim /etc/nginx/sites-available/default server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /usr/share/nginx/html; index index.html index.htm index.php; # Make site accessible from http://localhost/ server_name xibo; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ =404; # Uncomment to enable naxsi on this location # include /etc/nginx/naxsi.rules } # Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests #location /RequestDenied { # proxy_pass http://127.0.0.1:8080; #} error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ .php$ { fastcgi_split_path_info ^(.+.php)(/.+)$; # # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini # # # With php5-cgi alone: # fastcgi_pass 127.0.0.1:9000; # # With php5-fpm: fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; } location /obs-remote { root html; index index.html index.htm; #allow #deny all; #auth_basic "Restricted Area"; #auth_basic_user_file /usr/local/nginx/conf/.htpasswd; } location /stat { rtmp_stat all; # Use this stylesheet to view XML as web page # in browser rtmp_stat_stylesheet stat.xsl; #auth_basic "Restricted Area stat"; #auth_basic_user_file /usr/local/nginx/conf/.htpasswd; } location /stat.xsl { # XML stylesheet to view RTMP stats. # Copy stat.xsl wherever you want # and put the full directory path here root html; # auth_basic "Restricted Area stat.xsl"; # auth_basic_user_file /usr/local/nginx/conf/.htpasswd; } # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /.ht { # deny all; #} } |
修改nginx設定,加入rtmp模組
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
vim /etc/nginx/nginx.conf rtmp { server { listen 1935; chunk_size 4096; application live { live on; record off; #allow publish 10.0.0.0/8; #deny publish all; #allow play 10.201.80.107; #deny play all; } } } |
重新啟動
1 |
service nginx restart |
Posted in Nginx, Ubuntu, Xibo
Leave a comment