Putty Color Scheme Tango & My Putty Settings

I use Putty w/ Xming Server to replace  X-win 32 and VNC.

Color Scheme

After searching, I found a decent color scheme for Putty.

To make it default for Putty, paste the following code and name the file PuttyConfig.PS1  (Windows Power Shell Script):  (I borrow the script from another site, see links at the end)

param([string]$puttyConf)

$sessionKey = "HKCU:SoftwareSimonTathamPuTTYSessions$puttyConf"
if ( test-path $sessionKey ) {
   $values = @{
      "Xterm256Colour" = 0x00000001
      "BoldAsColour" = 0x00000001
      "Colour0" = "187,187,187"
      "Colour1" = "255,255,255"
      "Colour2" = "8,8,8"
      "Colour3" = "85,85,85"
      "Colour4" = "0,0,0"
      "Colour5" = "0,255,0"
      "Colour6" = "46,52,54"
      "Colour7" = "85,87,83"
      "Colour8" = "204,0,0"
      "Colour9" = "239,41,41"
      "Colour10" = "78,154,6"
      "Colour11" = "138,226,52"
      "Colour12" = "196,160,0"
      "Colour13" = "252,233,79"
      "Colour14" = "52,101,164"
      "Colour15" = "114,159,207"
      "Colour16" = "117,80,123"
      "Colour17" = "173,127,168"
      "Colour18" = "6,152,154"
      "Colour19" = "52,226,226"
      "Colour20" = "211,215,207"
      "Colour21" = "238,238,236"
   }
   $values.Keys | %{
      set-itemproperty $sessionKey $_ $values[$_]
   }
} else {
   write-error "Profile '$puttyConf' does not exist in the Putty configuration"
}

Fonts & Window

Double click the file to run it.  I also set Font to “Courier New”, 12-point, Font quality: ClearType

I wish to have a transparent putty terminal window, so I use a modified version of Putty: PuttyTray.  Then set window opacity( in Colours section ) to 220.

Export Putty Session Settings

To export putty settings with session list: (This will generate a .reg file on the Desktop)

regedit /e "%userprofile%desktopputty.reg" HKEY_CURRENT_USERSoftwareSimonTatham

To export sessions only:

regedit /e "%userprofile%desktopputty-sessions.reg" HKEY_CURRENT_USERSoftwareSimonTathamPuTTYSessions

Continue reading Putty Color Scheme Tango & My Putty Settings

Connect iPhone/Laptop to Home Network via OpenVPN on Cisco E3000 w/ Tomato USB firmware

This is a log to try OpenVPN.

——————

Environment:

Router: Cisco E3000 w/ Tomato 1.28-116 K26 by Shibby

Phone: iOS 7

Computer: Windows 8.1 x64

——————-

1. Download OpenVPN at: http://openvpn.net/index.php/open-source/downloads.html

choose Windows Installer (64bit), then install with all the components.

2. Creating the Certificates and keys

Run Windows Command Prompt (cmd) as Administrator:

cd C:Program FilesOpenVPNeasy-rsa

init-config

This will copy vars.bat and openssl.cnf to easy-rsa folder

notepad vars.bat

Open notepad and edit vars.bat, fill the following at the end of file:

set KEY_COUNTRY=
set KEY_PROVINCE=
set KEY_CITY=
set KEY_ORG=
set KEY_EMAIL=

Save. Then type the following: (when at the 3rd command => build-ca, hit ‘Enter’ for everything except ‘Common Name Parameter’, enter something, eg:  MyName) Continue reading Connect iPhone/Laptop to Home Network via OpenVPN on Cisco E3000 w/ Tomato USB firmware

Code::Blocks installation in CentOS 6.5 x64_minimal

A log of installing Code::Blocks in CentOS 6.5 x64 Minimal edition. (It’s a server, and codeblocks will be accessed on clients via putty and Xming.)

#Install some necessary libraries
yum groupinstall "Development Tools"  

#install rpmforge, there are other ways, here I use wget to download rpm package and install
#install wget
yum install wget
mkdir ~/temp
cd ~/temp
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
yum install --enablerepo=rpmforge-extras

#Install wxGTK
yum install wxGTK-devel

#Install codeblocks from source
#ref:http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_RPM_based_distributions
cd ~
mkdir codeblocks
cd codeblocks
svn checkout svn://svn.berlios.de/codeblocks/trunk
cd trunk
./bootstrap
./configure
make
sudo make install

#Now Code::Blocks has installed, configure remote access
#enable X11 forwarding: ref:http://www.techotopia.com/index.php/Displaying_CentOS_Applications_Remotely_(X11_Forwarding)
sudo vi /etc/ssh/ssh_config
#Edit the file and make sure -> X11Forward yes
sudo yum xorg-x11-xauth.x86_64
sudo yum install xorg-x11-fonts

#Now on a Windows client, using Putty and Xming access the server
#On windows desktop, download and install Xming Server and Xming fonts
#in Putty, enable X11 Forwarding, set display to "Localhost:0"

#Type the following:
echo $DISPLAY
#It should return localhost:10.0

#Run Code::Blocks
codeblocks &

 

Google Earth坐标趣味地址

这是我网上看到的一篇日志,出处不详, 但十分有意思有价值,全贴转载到本站了:

以下是转载:

————————————————–

“使用谷歌地球可以看见中国这片神奇的土地上一些被人们遗忘了的奇迹,比如在新疆戈壁滩上的“为人民服务”,每个字都有约2500平方米大,这几个大字不知什么时候就开始躺在了戈壁深处”。从标语的内容看有些应是60年代写的,字如此的清晰完整不知当时使用什么材料写的。除了“为人民服务”之外,还有以下这些标语,中国地域之广大,遍布许多地方,可能什么时间弄的也都有,找到这些标语也很有趣。现在,找到这些标语的方法很简单,每一处我都提供了坐标,只要启动“谷歌地球”(Google Earth),然后直接在Google的搜索栏中输入或粘贴坐标值后点搜索按钮,即可直接定位。(绝对不是PS,送坐标给你,自己去下个谷歌地球看看:直接在Google中输入坐标值后点Search 搜索按钮,即可直接定位。如有的地方不知坐标可直接输入名字点搜索按钮即可。

收集的一些Google Earth坐标趣味地址

大字标语

42 39 18.85 n,94 10 00.80 e   毛主席万万岁
42 32 33.95 n,94 19 36.80 e   为人民服务
42 27 12.08 n,94 08 49.36 e   排除万难去争取胜利
42 39 33.30 n,94 16 00.56 e   只争朝夕
42 27 40.95 n,94 14 36.80 e   向斗争中学习
39 41 43.75,73 55 37.39   祖国在我心中
27 51 29.88 N,99 43 13.73 E   香格里拉
27°52’5.10″N, 99°41’52.20″E 香格里拉-松赞林寺
45° 6 56.73 N, 82°31 32.44 E   严格要求严格训练
45°22 3.47 N, 90°34 23.67 E   卫国戍边以卡为家
43 45 16.93 N 87 40 03.75 E   仗怎么打,兵怎么练
99.69783333E,27.86808444N   香格里拉-松赞林寺
32°07’29.28″N, 114°00’08.64″E   一定要把淮河修好
41°49’13.62″N, 86°12’05.83″E    许身电业平生志 衣带渐宽终不悔
45°49’03.76″N 82°25’49.55″E     爱我中华!
45°22’2.53″N, 90°34’24.24″E      北塔山边防站:
24°27’21.00″N 118°10’10.40″E  厦门滨海大道上的,面对台湾金门的 宣传标语。

31°6’17.97″N  121°0’50.44″E    上海东方绿洲里的航母模型 Continue reading Google Earth坐标趣味地址

mini DV 录像带的数字化转换,转录

在10年前曾经大量使用mini DV带记录旅游,活动,日常生活. 使用的是Sony DCR-PC105E 录像机.

sonyminidv

这类录像的分辨率可能是VGA (640×480), 线性的声音记录. 但是以今天绝大多数视频素材已经达到Full HD (1080p)的标准看, 似乎前者已经落后了. 鉴于DV带不易于长期保存,回放也比较麻烦. 于是决定将所有带子数码化.

曾经尝试使用PC机以及USB线转录,效果不佳. 我没有1394卡, 所以作罢.

我sony的这台录像机有4pin的1394接口 ,联想到手头有的设备包含一台2010年的13寸Macbook Pro, 有Firewire 800的接口. (现在的新Mac已经没有了,可能需要买Thunderbolt to Firewire adapter). 于是决定用Mac转录, 并且Mac一向有影音处理方面独有的优势. (Final Cut Pro, iMovie, iDVD 这些App)

升级到了Mac OS X  10.9 Mavericks, 安装了iMovie 10.0.1. 并购买了Prolink 4pin to 9pin 1394 adapter:

Continue reading mini DV 录像带的数字化转换,转录