Windows 7 7070截屏泄露

On 2009-03-30, in 新闻, by David

当我们刚升级到Windows 7 7068时,发现网上已经出现了Windows 7 7070的截屏。

7070_small

windows72c-thumb-640x400-3998

Tagged with:
 

Debian5下Ruby On Rails 自编译

On 2009-03-29, in 涂鸦, by David

1.需要的编译环境

运行如下命令:

apt-get install gcc make

2.安装Ruby

运行如下命令:

wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.gz

tar xzvf ruby-1.8.7-p72.tar.gz

cd ruby-1.8.7-p72

./configure

make

make install

3.安装RubyGems

运行如下命令:

wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz

tar xzvf rubygems-1.3.1.tgz

cd rubygems-1.3.1

ruby setup.rb

apt-get install zlib1g-dev

wget http://www.blue.sky.or.jp/atelier/ruby/ruby-zlib-0.6.0.tar.gz

tar xzvf ruby-zlib-.0.6.0

ruby extconf.rb

make

make install

4.安装Rails

运行如下命令:

gem install rails

Tagged with:
 

我的Twitter关系图

On 2009-03-22, in 涂鸦, by David

Tagged with:
 

Windows 2008 Server Core基本设置

On 2009-03-15, in 手记, by David

1.设置网卡

运行:

Netsh interface ipv4 show interfaces

显示如下:
image 
图中显示服务器只有一块网卡,网卡的索引号为2.知道了索引号就可以开始设置网卡了。

设置网卡的ip地址,掩码及网关,运行:

netsh interface ipv4 set address name=2 source=static address=192.168.42.100 mask=255.255.255.0 gateway=192.168.42.1

请将红色的部分,更换为你自己的ip地址,掩码,网关。蓝色的2就是刚才我们查询到的网卡索引号(当然你也可以使用网卡的名称"本地连接"来代替)。

接下来设置DNS服务器,运行:

netsh interface ipv4 add dnsserver name=2 address=202.101.172.46

请将红色的部分,更换为你自己的DNS服务器。

2.激活系统

运行如下命令,激活许可证:

slmgr.vbs –ato

3.修改系统名称

运行:

wmic computersystem where name="%computername%" rename name="WIN2K8SRV1"

执行该命令成功后,系统会返回 ReturnValue=0 。注意需要重新启动系统,新系统名称才会生效。

另一种方式:

netdom renamecomputer %computername% /NewName:WIN2K8SER1

4.启动自动更新

运行:

cscript c:\windows\system32\scregedit.wsf /AU 4

如果你要关闭自动更新,修改4为1即可。如果想查看当前状态,修改4为/v。

5.启动终端服务(允许远程管理连接)

运行:

cscript c:\windows\system32\scregedit.wsf /AR 0

如果你要关闭终端服务,修改0为1即可。如果想查看当前状态,修改0为/v。如果你启动终端服务后,还是无法连接到该服务器,运行如下命令看3389端口是否打开:

netsh advfirewall firewall show rule name=all|more

如果没有打开,请运行:

netsh advfirewall firewall add rule name="TS Admin" protocol=TCP
dir=in localport=3389 action=allow

Tagged with:
 
Blog WebMastered by All in One Webmaster.