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

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
cd ~
mkdir codeblocks
cd codeblocks
svn checkout svn://
cd trunk
sudo make install

#Now Code::Blocks has installed, configure remote access
#enable X11 forwarding: ref:
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:
#It should return localhost:10.0

#Run Code::Blocks
codeblocks &



Charter IPv6 using 6rd with Cisco E3000 and Tomato 1.28-116 K26 by Shibby

My Local ISP – Charter is now offering IPv6 through 6rd relay.

Reference page:

6RD Configuration Settings
As part of Charter's IPv6 Trials we have made available a Public 6rd Border Relay. 
If you are interested in participating in our early trials and own a device 
that supports 6RD use this configuration information to begin experiencing the Next Generation Internet:

6rd Prefix = 2602:100::/32
Border Relay Address =
6rd prefix length = 32
IPv4 mask length = 0
Primary DNS Address = 2607:f428:1::5353:1

Secondary DNS Address = 2607:f428:2::5353:1

I am using Cisco E3000 w/ Tomato 1.28-116 K26 by Shibby

After hours of researching, finally I can access ipv6 websites.


1. In “Administration” -> “Scripts”->”Init”, add:

insmod tunnel4
insmod sit

2. In “Administration” -> “Scripts”->”WAN Up”, add:

WANIP=$(nvram get wan_ipaddr)
if [ -n "$WANIP" ]; then
    ip tunnel del tun6rd
    V6PREFIX=$(printf '2602:100:%02x%02x:%02x%02x' $(echo $WANIP | tr . ' '))
    ip tunnel add tun6rd mode sit local $WANIP ttl 64
    ip addr add ${V6PREFIX}::1/32 dev tun6rd
    ip addr add ${V6PREFIX}::1/64 dev br0
    ip link set tun6rd up
    ip -6 route add ::/0 via :: dev tun6rd
    service radvd restart

route -A inet6 del default gw :: metric 1024 `nvram get wan_iface`

*Initially I didn’t have the last line, I couldn’t get ipv6 address. After searching on forums (I forgot the address), I added the last line, suddenly it works perfectly!

3. In “Basic”->”IPv6″-> Choose “Other”

in WAN interface, put: tun6rd

Leave Router IPv6 Address blank

In Static DNS, put Charter’s IPv6 DNS address


4. All done

5.Test your network @

6. Try