`
文章列表
         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.

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'^libi ...
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 Py ...
  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.
project structure: ->    modules --> dependecies                   --> add module dependency                         --> add google play services folder                  --> add jar                        --> add google-play-services.jar   done.
make sure keep an reference to this db otherwise ge will remove it after a few seconds.
yum groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts" "Internet Browser"     /etc/inittab   for changing X window
yum groupinstall "Development Tools" "Development Libraries"
  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/ ...
yum remove NetworkManager
  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 ...
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        ...
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 ...

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    a ...
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    ne ...
Global site tag (gtag.js) - Google Analytics