ITeye博客

mathgl

mathgl · 共 110 篇文章

how to restore network after clone or create new vm based on existing image

when clone or create a new vm based on existing image, you may notice the network is malfunction. One possible solution is to delete existing net rules such as sudo rm -f /etc/udev/rules.d/70-persistent-net.rules sudo reboot now your network card ought to work.

2015-01-04 13:06 · Linux/VirtualBox · 评论(0)

static building lxml

well it is not really straightforward.. when building with static deps like python setup.py build --static_deps you may see two possible errors 1: when you saw crc iconv.xx error, you can modify buildlibxml.py check def download_libiconv and change version_re = re.compile(r'^libiconv-([0-9.]+[0-9])…

2014-08-13 19:15 · python · 评论(0)

build pyrun/python from source

quite easy on ubuntu. 1: build sqlite first.. use the latest autoconf version 2: apt-get install libbz2-dev 3: apt-get install zlib1g-dev 4: apt-get install libssl-dev 5: apt-get install libffi-dev 6: apt-get install libreadline-dev 7: apt-get install libncurses5-dev for pyrun cd PyRun and make. fo…

2014-08-01 19:39 · python · 评论(0)

Ice 3.4.2 on ubuntu 12.04

it is much easy to install Ice 3.4.2 on Ubuntu 12.04. simply sudo apt-get install zeroc-ice34 for python config. make sure /usr/lib/pymodules/python2.7 is the first one in PYTHONPATH otherwise, there are lots of cycle reference problems.

2014-05-22 02:30 · Linux/ubuntu · 评论(0)

how to use google play services in IDEA

project structure: -> modules --> dependecies --> add module dependency --> add google play services folder --> add jar --> add google-play-services.jar done.

2014-04-14 11:24 · android · 评论(0)

adding extra dbs on ge

make sure keep an reference to this db otherwise ge will remove it after a few seconds.

2014-04-03 16:38 · google earth enterprise · 评论(0)

install gnome desktop

yum groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts" "Internet Browser" /etc/inittab for changing X window

2014-04-03 11:07 · Linux/centos · 评论(0)

install gcc and other things

yum groupinstall "Development Tools" "Development Libraries"

2014-04-03 10:59 · Linux/centos · 评论(0)

network config on centos

edit /etc/sysconfig/network-scripts/ifcfg-eth0 (first network card, ifcfg-eth1 is the second) DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.3.110 NETMASK=255.255.255.0 ONBOOT=yes DHCPCLASS= edit /etc/sysconfig/network NETWORKING=yes HOSTNAME=xxx GATEWAY=192.168.3.1 edit /etc/resolv.conf nameserver 8.…

2014-04-03 09:50 · Linux/centos · 评论(0)

remove network manager

yum remove NetworkManager

2014-04-03 09:46 · Linux/centos · 评论(0)

terrain data processing

if the database contain a terrain projection then there are two notes: 1: make sure bluemarble and a basemap (against to the terrain) are in imagery. 2: the terrain data must be built with "have a mask" option and the mask file ought to be "gtopo30_4km-mask.tif" this file is available on google sup…

2014-03-25 14:12 · google earth enterprise · 评论(0)

install vncserver on lubuntu

os: ubuntu server 12.04 LTS with lubuntu desktop sudo apt-get install tightvncserver, autocutsel vncserver vncserver -kill :1 now edit ~/.vnc/xstartup replace /etc/X11/Xsession with startlubuntu & start vncserver again with vncserver -geometry 1024x600

2014-03-21 12:19 · Linux/ubuntu · 评论(0)

use yum to install clamav on centos

well install anti-virus on linux is a stupid idea but sometimes we don't have choice. 1: update yum first try: rpm -Uhv http://pkgs.repoforge.org/rpmforge-release/ rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm the blue part might be updated time to time. here I use CENTOS 6 64 bit. 2: yum update 3: yu…

2014-02-21 16:11 · Linux/centos · 评论(0)

build apsw manually

download sqlite sources and copy all files to apsw/src open setup.py find in finalize_options of apsw_build_ext class comment ext.libraries.append('sqlite3') find ext_modules=[Extension("apsw", ["src/apsw.c"] at the bottom and add sqlite3.c like ext_modules=[Extension("apsw", ["src/apsw.c", "src/sq…

2014-01-06 01:22 · python · 评论(0)

config ufw for router purpose

sometimes we need to share our internect connection without losing any protection, here ufw can help us. 1: open /etc/default/ufw change DEFAULT_FORWARD_POLICY = "ACCEPT" DEFAULT_INCOMING_POLICY = "ACCEPT" 2: open /etc/ufw/sysctl.conf and uncomment net/ipv4/ip_forward=1 for ipv6 net/ipv6/conf/defau…

2014-01-03 11:22 · Linux/ubuntu · 评论(0)