Clean Start
firewall
apt-get update
apt-get install arno-iptables-firewall
open ports: 80 443 22
fix locale problem
dpkg-reconfigure locales
or
locale-gen zh_CN.UTF-8
add user
add an user for everyday use, and add he to www-data group for publish
adduser john
usermod -a -G www-data ...find and chmod only folders or files
If you want to change mode of files and folders to different value, here're the scripts:
Recursive chmod only files within this folder:
find . -type f -exec chmod 0600 {} \;
Recursive chmod only folders within this folder:
find . -type d -exec chmod 0755 {} \;
Maybe you can put these to a ...
more ...Install Pelican
安装Pelican很简单,基本上按照网站照做就好了
安装虚拟环境
安装python虚拟环境的目的是不要搞乱系统的python环境。
推荐用pip安装virtualenv
pip install virtualenv
如果没有pip,只好从source安装了
curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.9.1.tar.gz
tar xvfz virtualenv-1.9.1.tar.gz
cd virtualenv-1.9.1
python setup.py install
安装了virtualenv之后,用下列命令创建一个pelican的环境并且激活
$ cd ~
$ virtualenv pelican
$ cd palican
$ . bin ...From WordPress to Pelican
博客从WordPress迁移到Pelican
more ...米连是个什么东东
米连是个什么东东? 小米盒子的一个卖点,就是所谓‘米连’技术,也就是可以把移动设备的内容“投射”到电视机上。其实这也不是什么新鲜货,而是混合了airplay,DLNP和miracast的一个半成品。
AirPlay是苹果的技术,也授权给一些音响厂商,现在比较新的一些功放都有所支持。小米盒子部分实现了airplay协议,ios设备可以把音乐图片视频等发到小米盒子,但是实现还不完整,不支持mirror功能。一点疑问是不知道小米是否取得了苹果的授权,网站没看到明确说法。
至于DLNA,是sony,intel等厂商搞出来的一个协议,很多日本的电视机都支持。小米盒子实现了client和‘target’两部分,作为client,可以播放dlna server的内容,不过也许是协议的限制,播放DLNA server的视频内容时无法加载外挂字幕文件。作为target,可以接受小米手机等发来的图片和视频,很奇怪不支持音乐。而miracast,则还在开发中, 就这么个杂合体居然起个新名字就包装成新技术了。
more ...