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 为例子 如下
点击 ON –>
Extension Homepage

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


Salt State

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

- /srv/salt/
#- /var/salt/

cd /srv/salt

[root@master salt]# pwd
[root@master salt]# cat top.sls
- evan.pack #这个是evan目录下有个pack.sls
#- evan.fc7

mkdir evan
cd evan;

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

- 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 state.highstate
State: – pkg
Name: httpd
Function: installed
Result: True
Comment: Package httpd is already installed
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



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

##开启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;
deny all;

location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
# With php5-cgi alone:
# 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

第二 到
下载包并放到 /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界面了

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


thinkphp 完全开发手册