<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[[实践OK]mac系统：control+command+F键把网页设置成全屏，怎么使chrome(谷歌google浏览器)全屏的代码?在树莓派上实践Ok，树莓派命令行启动浏览器GUI模式。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Tue, 20 Aug 2013 14:06:31 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	mac系统：control+command+F键把网页设置成全屏<br/><br/>如何获取到这个DISPLAY的值呢？<br/>http://jackxiang.com/post/7689/<br/><br/>实践Ok，确实能全屏，这样在cmd下和linux下都是可行的：<br/><textarea name="code" class="C" rows="15" cols="100">
C:&#92;Users&#92;Administrator&#92;AppData&#92;Local&#92;Google&#92;Chrome&#92;Application&#92;chrome.exe&nbsp;&nbsp;C:&#92;Users&#92;Administrator&#92;Desktop&#92;openWinFullScreen.html&nbsp;&nbsp; --kiosk
</textarea><br/><br/>实践Ok，是全屏：<br/><textarea name="code" class="php" rows="15" cols="100">
chromium --kiosk http://jackxiang.com
</textarea><br/>20分钟重新看一下有没有chrome，没有就启动：<br/><textarea name="code" class="php" rows="15" cols="100">
#!/bin/bash
export DISPLAY=:0.0
PROCESS_NUM=`ps -ef &#124; grep &quot;chromium-sandbox&quot; &#124; grep -v &quot;grep&quot; &#124; wc -l`
if [ $PROCESS_NUM -eq 0 ]; 
then 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;chromium-browser --kiosk&nbsp;&nbsp;&quot;http://192.168.2.2/&quot;
fi
</textarea><br/><br/><br/><br/>如何通过IP或串口连接在其配套的实体屏上显示出chrome来呢？<br/>参看：http://jackxiang.com/post/7689/<br/>代码如下：<br/><textarea name="code" class="php" rows="15" cols="100">
export DISPLAY=:0.0
echo $DISPLAY
:0.0
chromium-browser --kiosk&nbsp;&nbsp;&quot;www.jackxiang.com&quot;
</textarea><br/><br/>Raspberry pi + chrome kiosk + touch screen<br/>I recently purchased a raspberry pi and have been very impressed.&nbsp;&nbsp;I started with a usb keyboard with a build in touch pad and the cursor fidgeted allot so was worried since I was going to try with my 22 inch iiyama prolite touch screen.&nbsp;&nbsp;I shouldnt have worried worked perfect.&nbsp;&nbsp;Here are the steps to getting my raspberry to boot straight into chrome and my web application.<br/><br/>Step 1: update your apt sources<br/>sudo apt-get update (for good measure)<br/>Step 2: install chrome<br/><br/>sudo apt-get install chromium-browser<br/> Step 3: setup raspbian to boot into desktop by default, pick the boot at start option<br/><br/>sudo raspi-config<br/>Step 4: create a bash script with this in it. (alt f4 to exit chrome kiosk mode by the way!)<br/>#! /usr/bin<br/>/usr/bin/chromium-browser --kiosk --new-window www.google.com<br/><br/>Step 5: get chrome to start at boot, trick, add this file ~/.config/lxsession/LXDE/autostart with this line:<br/>/where/my/script/is/chrome.sh<br/>Step 6: stop the screen going blank.<br/>sudo apt-get install x11-xserver-utils<br/> Then add these lines to startup script:<br/><br/>xset s off # don&#039;t activate screensaver<br/>xset -dpms # disable DPMS (Energy Star) features.<br/>xset s noblank # don&#039;t blank the video device<br/> Boom, works! There is allot about the step 5 but this seemed the only one that worked.&nbsp;&nbsp;Tried rc.local, init scripts and @reboot in crontab none of which worked.&nbsp;&nbsp;Enjoy<br/><br/>来自：http://popthestash.com/2013/03/14/raspberry-pi-chrome-kiosk-touch-screen/<br/><br/><br/><br/><br/><br/><br/> 前段时间，有客户要求网站需要打开自动全屏显示，并且机器上不能安装webserver（iis和apache等）软件，我们经过一番调试和试验，最终选定了chrome，因为chrome实现全屏效果最好，并且js效果流畅。<br/><br/>针对IE来将，在非服务器端让网站自动全屏的时候，当网页有引用js的时候IE会弹出是否运行的对话框，这让人比较恼火，因为在本机浏览html文件，IE需要设置一些安全参数才能去掉这个该死的提示，并且全屏代码需要在网页中写入js代码实现，缺点是不稳定、有兼容问题、操作步骤较多。<br/><br/>chrome上实现全屏非常简单，不是通过在网页中插入js代码实现，而是在chrome的快捷方式上做手脚。下面我以XP系统为演示：<br/><br/>安装了chrome以后，chrome会自动在桌面生成一个快捷方式，右键点击后我们可以看到一些东西，其中有一项是目标：&quot;这里是chrome的安装地址&quot;，这就是我们重点要说的地方，chrome有可以自由diy的接口，就是通过在安装地址后面加上启动参数，其中全屏参数就是加在这里。全屏参数为：--kiosk。<br/><br/>看完整的示范：&quot;C:&#92;Documents and Settings&#92;Administrator&#92;Local Settings&#92;Application Data&#92;Google&#92;Chrome&#92;Application&#92;chrome.exe&quot; file:///D:/index.html --kiosk<br/><br/>file后面跟的是要启动的网页路径，后面再跟上 --kiosk，注意有空格，意思是双击该快捷方式后，chrome将一全屏形式显示参数中的网页。<br/><br/>这种全屏显示和正常状态下chrome按F11是不一样的，F11全屏后chrome会在左下角显示A标签的链接地址，同时鼠标移动到最上方会弹出退出全屏的提示，可以再次按F11推出全屏模式，而通过参数启动全屏之后，F11将失效，A标签提示和退出全屏提示也将消失，只能通过ALT+F4退出chrome全屏模式，是很彻底的全屏模式，通过这种全屏模式，可以将网站制作成软件形式，可以看出google的云计算的勃勃野心。<br/><br/>来自：http://www.kmwzjs.com/site/q-view140.html
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]mac系统：control+command+F键把网页设置成全屏，怎么使chrome(谷歌google浏览器)全屏的代码?在树莓派上实践Ok，树莓派命令行启动浏览器GUI模式。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>