思维导图/心智(MindMap)软件

1.xmind
wget http://www.xmind.net/xmind/downloads/xmind-linux-3.4.0.201311050558_amd64.deb
sudo dpkg -i xmind-linux-3.4.0.201311050558_amd64.deb

2.
FreeMind

使用教程
http://www.360doc.com/content/05/0905/23/1330_10619.shtml

Installing Gnome 3 on Ubuntu 12.04

gnome-shell + Gnome Extensions真是一个完善组合啊 美观 轻量,终于放弃了讨厌gnome3的看法了

1, install gnome-shell
sudo apt-get update
sudo apt-get install gnome-shell
sudo apt-get install gnome-tweak-tool

2, install Gnome Extensions
#sudo add-apt-repository ppa:noobslab/gnome

To install a shell extension visit the Gnome Extensions website with your browser (the default Firefox works fine for this) and install extensions by switching the “ON/OFF” button to “ON” (you can find these buttons on the individual extension pages, in the left upper corner).
也就是说用firefox 打开相对应的 extensions url 打开 ON 并双击 extension page 就开始安装喽

以gnome-shell-windowlist 为例子 如下
https://extensions.gnome.org/extension/25/window-list/
点击 ON –>
Extension Homepage https://github.com/siefkenj/gnome-shell-windowlist

3,几个常用的 extensions
Applications Menu;Panel Settings;windowlist

参考资料

Installing Gnome 3 on Ubuntu 12.04 (Precise Pangolin)


http://www.noobslab.com/2012/04/install-gnome-shell-34-and-extensions.html

Salt State

第一 在master 可以看到如下信息
[root@master salt]# vim /etc/salt/master

#file_roots:
file_roots:
base:
- /srv/salt/
#- /var/salt/

cd /srv/salt

[root@master salt]# pwd
/srv/salt
[root@master salt]# cat top.sls
base:
'192.168.1.210':
#- evan.sc
- evan.pack #这个是evan目录下有个pack.sls
#- evan.fc7

mkdir evan
cd evan;

[root@master evan]# vim pack.sls
apache:
pkg:
- name: httpd
- installed
service:
- name: httpd
- running
- reload: True
- watch:
- file: /etc/httpd/conf/httpd.conf

/etc/httpd/conf/httpd.conf:
file.managed:
- source: salt://fc7/httpd.conf
- user: root
- group: root
- mode: 644
- backup: minion

第二 回来minion
root@client salt]# rm -rf /etc/httpd/conf/httpd.conf
[root@client salt]# vim /etc/httpd/conf/httpd.conf
[root@client salt]# file /etc/httpd/conf/httpd.conf
/etc/httpd/conf/httpd.conf: ERROR: cannot open `/etc/httpd/conf/httpd.conf’ (No such file or directory)
由上可见 这个文件不在了

第四 to master
[root@master salt]# salt 192.168.1.210 state.highstate
192.168.1.210:
———-
State: – pkg
Name: httpd
Function: installed
Result: True
Comment: Package httpd is already installed
Changes:
———-
State: – file
Name: /etc/httpd/conf/httpd.conf
Function: managed
Result: True
Comment: File /etc/httpd/conf/httpd.conf updated
Changes: diff: New file

———-
State: – service
Name: httpd
Function: running
Result: True
Comment: Service reloaded
Changes: httpd: True

第五 然后再回来minion看一下 刚才不小心删除的文件又来了

[root@client salt]# file /etc/httpd/conf/httpd.conf
/etc/httpd/conf/httpd.conf: ASCII English text

参考
http://www.shencan.net/index.php/2013/05/24/saltstack%EF%BC%88%E4%B8%80%EF%BC%89/

thinkphp配置

本人会点皮毛的php 如果想搞个东西 于是想到php框架 于是有了如下的文章
第一 安装lnmp 环境 因为本人PC is ubuntu so

Debian apt-get源安装LNMP


其实os eg centos 请见 linuxchina.net/lnmp

##开启nginx 支持 php-fpm

server {
#listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default ipv6only=on; ## listen for ipv6

root /usr/share/nginx/www;
#root /home/evan/thinkphp/;
index index.html index.htm;
#index index.php index.html index.htm;

# Make site accessible from http://localhost/
server_name localhost;

location / {
# First attempt to serve request as file, then
# as directory, then fall back to index.html
try_files $uri $uri/ /index.html;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}

location /doc/ {
alias /usr/share/doc/;
autoindex on;
allow 127.0.0.1;
deny all;
}

#
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;
}

vi /usr/share/nginx/www/phpinfo.php

第二 到http://www.thinkphp.cn/
下载包并放到 /usr/share/nginx/www/

cd /usr/share/nginx/www/; mkdir app
chmod -R 777 /usr/share/nginx/www/

root@evan-laptop:/usr/share/nginx/www# vi app/index.php

这样就可以看到thinkphp welcome界面了
http://127.0.0.1/app/index.php

vim /usr/share/nginx/www/app/index.php
#add

参考
http://www.thinkphp.cn/info/60.html

thinkphp 完全开发手册
http://doc.thinkphp.cn/manual/basic_concept.html
http://www.thinkphp.cn/topic/190.html