Oct 20

转自:http://thecybergal.blogspot.com/2010/07/make-usb-windows-installer-with.html

Hello thecybergal readers. Making the Windows installer with USB stick media not as difficult as what we thought. This process is quite challenging, and in the end when you successfully about that, then the sense of satisfaction will be found. In this article, I recommend you using WinSetupFromUSB to make Installer Windows OS from USB stick.

WinSetupFromUSB is quite simple with a good success rate. OK, without a lot of speaking, if you want to create a Windows Installer from USB stick, please click WinSetupFromUSB to download the software. To get complete downloadable softwares, click download tools here. After the software downloaded, then follow these instructions bellow:

1. Install WinSetupFromUSB into your Windows OS. (XP, Vista, 7).

2. Prepare your USB stick as the Windows installation media. Make sure you’ve made backups of the contents of your USB stick, because this process will format your USB stick.

3.Create a folder to store the Windows Installer file (e. g. D:WinXP). Copy all files from the Installation Disk into the folder (D:WinXP).

4. Run WinSetupFromUSB while your USB stick mounted.

5. Select the Installation Source (D:WinXP).

6. Format your USB stick by pressing RMPrepUSB button. To the better performance, select FAT16 if your USB Disk is less than or equal to 2 GB, and select FAT32 if your USB Disk is more than or equal to 4GB.

7. Checkmark on Boot as HDD (2PTNS), and under Boot Options adjust to the which Windows loader will be installed. If you want to make a Bootable USB XP Installer, select XP Bootable (NTLDR).

8. After all configurations finished, click on Prepare Drive.

9. Copy all files from folder we created (D:WinXP) by pressing Go button, if you see License Agreement window, just go ahead and click Agree.

10. Change your Boot Sequence to USB stick. This installation steps have two parts. You have to select First Part until the computer restarted, and again boot from your USB stick and select the Second Part when the initial setup screen appear.

NB. When you think to install Windows XP on Built Up PC or Netbook like HP Mini 110-1100 Tord you must slipstream the SATA driver to prevent from BSoD during installation process. Again, why I use WinSetupFromUSB because when I used other method I always get the Error Message which tell me about “INF file txtsetup.sif is missing or corrupt, status 18”. Since I found WinSetupFromUSB this problem can be healed successfully.

Oct 20

转自:http://www.techlw.com/2012/02/5-cool-themes-for-unitygnome-shell-in.html

You can install these themes easily in Ubuntu 12.04 Precise Pangolin/Ubuntu 11.10 Oneirc Ocelot/Linux Mint.

1. Zukitwo Colors Theme
This theme set contains GTK2, GTK3 and GNOME Shell themes in all 7 colours from Shiki-Colors (Brave, Dust, Human, Illustrious, Noble, Wine and Wise), as well as a colour-neutral GNOME Shell theme (Zukitwo-Colors) and Metacity/Mutter and XFWM themes for Dust (Zukitwo-Dust) and the rest (Zukitwo-Colors). (Zukitwo-Dust has separate Metacity/Mutter and XFWM themes as part of its colour-scheme.)

To install this theme open Terminal and enter command:

mkdir ~/.themes
wget -O zukitwo-colors http://goo.gl/QNt1b
tar -xzvf zukitwo-colors.tar.gz -C ~/.themes

2. ANew Start Theme
ANewStart suite is a slick, clear theme for GNOME desktop environment.
It’s designed to work under Gnome-Shell, Gnome-Fallback and Unity. For Unity and Gnome-Fallback mode, please read the README file inside the pack.

To install this theme open Terminal and enter command:

mkdir ~/.themes
wget -O anewstart http://goo.gl/Mk67J
unzip anewstart.zip -d ~/.themes

3. ANew Start Blood Theme
ANewStartBlood is the first attempt to port ANewStart guidelines in a dark fashion. Since the choices done here (this “bloodiness” that pervades all the theme) are surely tough to digest, maybe I’ll plan another more easy-going version.

To install this theme open Terminal and enter command:

mkdir ~/.themes
wget -O anewstartblood http://goo.gl/SJi9x
unzip anewstartblood.zip -d ~/.themes

4. Adwaita Cupertino Theme
Tested in GNOME 3.2 and Unity.
There are 2 versions, one based on the colors of Snow Leopard and the other Lion. Option border or border-less.

To install this theme open Terminal and enter command:

mkdir ~/.themes
wget -O adwaita-cupertino http://goo.gl/UGXOA
tar -xzvf adwaita-cupertino.tar.gz -C ~/.themes

5. Gnomish Dark Theme
This is a clean dark theme for GTK3, based on Adwaita (provided by gnome-themes-standard), plus a matching GNOME-Shell theme.
The package also includes a GTK2 theme, that depends on the latest Murrine engine and makes GTK2 windows fairly similar to GTK3 ones. If you don’t want to install Murrine anymore, you could replace the folder ‘gtk-2.0’ with that of Adwaita but you’ll lose the above-mentioned similarity.

To install this theme open Terminal and enter command:

mkdir ~/.themes
wget -O GnomishDark http://goo.gl/wVTmb
tar -xjvf GnomishDark.tar.bz2 -C ~/.themes
Oct 20

转自:http://blog.sina.com.cn/s/blog_7266c7eb0100sb0f.html

在注册表里加下面这个键值:
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesDnscacheParameters]
“AddrConfigControl”=dword:00000000
好像在teredo隧道正常的情况下,会直接使用IPv6里设置的DNS,而不会用IPv4里设置的那个DNS。如果Teredo隧道不正常,似乎也仍然会发出type A和AAAA两种DNS请求,当然,这没什么影响。把dns换成支持v4/v6双栈的dns似乎也不是必须的了。

Oct 20

转自:https://liruqi.wordpress.com/2011/02/26/reverse-proxy-for-wordpress/

做这个的起因是之前 @annsherry_ 希望给自己的博客(http://annsherry.wordpress.com/) 绑定一个独立域名。我看了下后台配置,发现 wordpress.com 不让用A记录的方式配置,要想绑定域名,需要把自己的域名 nameserver 改成 wordpress的,让wordpress 帮你解析。作为一名互联网工作者,这种霸王条款当然是深深伤害了像我这种高端用户的感情。所以研究了一下用自己的主机给 *.wordpress.com 做反向代理的方法。

研究过程很纠结。我先把结论拿出来,然后大概解释下为什么。

比如,我希望把 annsherry.wordpress.com 绑定到 liruqi.me。步骤如下:

1. 重新编译 nginx, 加上 HttpSubModule(http://wiki.nginx.org/HttpSubModule) 模块。简而言之,是 ./configure 时加上参数 –with-http_sub_module 其它参数保持不变即可。
2. 修改Nginx 配置。在 http 块中加入 server:

server {
listen   80;
server_name liruqi.me;
location / {
proxy_set_header  X-Real-IP  $remote_addr;
proxy_set_header  Accept-Encoding  ”";
proxy_pass http://annsherry.wordpress.com;
sub_filter annsherry.wordpress.com liruqi.me;
sub_filter_once off;
}
}

3. 启动 nginx 或者重新加载配置文件.

只要 域名 liruqi.me 是指向正确的主机ip, 反向代理就做好了。而且点链接不会跳回到 annsherry.wordpress.com 域名上。

大概说下原理。
a) *.wordpress.com 上的连接不少是绝对路径。如果直接proxy_pass ,再点一次连接就会回到 wordpress 域名上。所以这里做了一个简单的文本替换。
HttpSubModule 仅支持单模式的纯文本替换,不支持正则表达式。如果希望用正则,做一个更复杂的替换,可以考虑一个华人开发的 HttpSubsModule (http://wiki.nginx.org/HttpSubsModule) 第三方模块。

b) proxy_set_header Accept-Encoding ””; 这一项,可以让nginx 不法送 Accept-Encoding HTTP header。这个时候,wordpress 返回的页面是不做 gzip压缩的。因为gzip 压缩之后,文本替换就会失效了。
国外有VPS的同学(而且ip没被墙的),可以考虑用类似的方式给自己的 blogspot 或者其它博客做反向代理。
另外,我现在没有给自己的 liruqi.com 做反向代理了(之前是反向代理到 appspot 上的 micolog),而是直接跳转到 http://liruqi.wordpress.com/。另外,我也建议大家少自己折腾搭建博客,不止一次见过把博客做在 VPS 上,然后因各种原因丢数据。而数据的价值,远大于技术本身。

Oct 20

转自:http://linuxtoy.org/archives/wget-tips.html

Wget 是一个命令行的下载工具。对于我们这些 Linux 用户来说,几乎每天都在使用它。下面为大家介绍几个有用的 wget 小技巧,可以让你更加高效而灵活的使用 wget。

$ wget -r -np -nd http://example.com/packages/

这条命令可以下载 http://example.com 网站上 packages 目录中的所有文件。其中,-np 的作用是不遍历父目录,-nd 表示不在本机重新创建目录结构。

$ wget -r -np -nd --accept=iso http://example.com/centos-5/i386/

与上一条命令相似,但多加了一个 –accept=iso 选项,这指示 wget 仅下载 i386 目录中所有扩展名为 iso 的文件。你也可以指定多个扩展名,只需用逗号分隔即可。

$ wget -i filename.txt

此命令常用于批量下载的情形,把所有需要下载文件的地址放到 filename.txt 中,然后 wget 就会自动为你下载所有文件了。

$ wget -c http://example.com/really-big-file.iso

这里所指定的 -c 选项的作用为断点续传。

$ wget -m -k (-H) http://www.example.com/

该命令可用来镜像一个网站,wget 将对链接进行转换。如果网站中的图像是放在另外的站点,那么可以使用 -H 选项。