Jan 21, 2015
TechnologyFirst we should install imacros from firefox’s Add-Ons, after installation, we will restart the firefox and let it run.
Click the icon of imacros, the window will be available at the left side of the browser.
Rec-> Record for recording the steps
Then do what you want to do in browser.
Save the current macros into another name, next time if you want to re-do the operations, simply click this saved imacros, then everything is OK.
Jan 20, 2015
TechnologyThings to be done in this week:
1. Installation documentation for OpenStack, but don’t try it myself.
2. Documentation on Contrail.
3. Conceptions on SDN(Software Defined Networking).
4. Books on SDN/PLATFORMs.
5. Enable the CoreOS Access via SurfacePro.
6. Guangzhou Weather/PM2.5/PM10.
7. To enable the key-map on MAC?
8. Build awesome on CentOS, and let it to be my default WM.
If there are more things to be added, type it following.
Jan 20, 2015
TechnologyWhen building Awesome following the tutorial of following URL, I met following error:
I installed xcb-proto, but libxcb all the same print "No package 'xcb-proto' found"
So the trouble shooting should be done like following, first we found the directory which contains xcb-proto.pc via:
$ cd /usr/
$ find . -name "xcb-proto.pc"
The result indicates this file locates in the /usr/lib/pkgconfig.
Easily we add this directory into our PKG_CONFIG_PATH, via following commands:
$ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig
Now continue to do the configuration, everything will be OK.
But we got the build error in make, like following:
/usr/bin/python ./c_client.py -p /usr/lib/python2.6/site-packages /usr/share/xcb/dri2.xml
Traceback (most recent call last):
File "./c_client.py", line 1041, in <module>
module.generate()
File "/usr/lib/python2.6/site-packages/xcbgen/state.py", line 101, in generate
item.out(name)
File "./c_client.py", line 950, in c_request
_c_accessors(self.reply, name + ('reply',), name)
This may be python version error, change it to python2.7?
no. We just installed the libxcb-1.8.tar.bz2 for solving this problem.
libxdg-basedir should be downloaded from following url:
http://nevill.ch/libxdg-basedir/downloads/
So many gaps , we need to do this:
# wget http://nevill.ch/libxdg-basedir/downloads/libxdg-basedir-latest.tar.gz
# tar xzvf libxdg-basedir-latest.tar.gz
# cd libxdg-basedir-1.2.0/
# ./configure --prefix=/usr
# make && make install
# yum install libpng
# yum install libpng-devel
# ./configure --prefix=/usr && make
# yum install pixman pixman-devel
# wget http://cairographics.org/snapshots/cairo-1.9.12.tar.gz
# tar xzvf cairo-1.9.12.tar.gz
# cd cairo-1.9.12/
# ./configure --prefix=/usr && make
# make install
# yum install glib2-devel
# yum install gdk-pixbuf2-devel
# yum install startup-notification startup-notification-devel readline readline-devel
# wget http://xcb.freedesktop.org/dist/xcb-util-0.3.8.tar.gz
# tar xzvf xcb-util-0.3.8.tar.gz
# cd xcb-util-0.3.8/
# ./configure --prefix=/usr
# make && make install
# wget http://xcb.freedesktop.org/dist/xcb-util-cursor-0.1.0.tar.bz2
# tar xjvf xcb-util-cursor-0.1.0.tar.bz2
# cd xcb-util-cursor-0.1.0/
# ./configure --prefix=/usr && make && make install
# wget http://xcb.freedesktop.org/dist/xcb-util-wm-0.4.0.tar.bz2
# tar xjvf xcb-util-wm-0.4.0.tar.bz2
# cd xcb-util-wm-0.4.0/
# ./configure --prefix=/usr && make && make install
# firefox https://github.com/csyuschmjuh/cairo-xcb
# cd cairo-xcb-master/
# ./autogen.sh
# ./configure --prefix=/usr && make
# make install
# yum install lua-devel
Now we could finally build awesome.
Faint, it failed, so need more investigation. Later!!!!!!!
Jan 19, 2015
TechnologySince I changed the working PC, so I need to switch from the old machine to the new machine, while the new machine’s network speed is pretty slow, that force me to switching from the local side working to vps-side working, following is the steps for Using DigitalOcean for updating my blog.
Repository
First using the git for pulling the repository from the github, following this article for setting the whole octopress system:
http://kkkttt.github.io/blog/2014/07/30/zai-githubshang-bu-shu-ni-de-octopressbo-ke/
New Tips
For the _deploy directory is the newly generated one, we have to do following changes:
rake setup_github_pages
cd _deploy
rm -f ./index.html
git remove index.html
git pull origin master
cd ..
rake generate && rake deply
After the above steps, Writing blog in Octopress becomes possible.
Jan 19, 2015
TechnologySee If I could update in YY?