Notes of Openstack Essex Installation (III)

July 12, 2012 Leave a comment

What do we have so far? That’s an instance running inside the server and our ability to remotely control the instance by using ssh tool. It’s time do something more fascinating on that instance, we’re going to make it become a web server to provide a blog service. Let do our first move by ssh to that instance, and make sure that the following commands are executed on the instance.
$sudo apt-get install lamp-server^:lamp here stands for (Linux, Apache, MySQL, PHP), the password of root is set to wp-admin. Never forget the ^ character of the command. If everything is ok, you will see something like this:

Read more…

Categories: Virtualization Tags:

Notes of Openstack Essex Installation (II)

July 8, 2012 2 comments

We begin the second part with starting an instance. Firstly, let download an image from the internet with the command:
$wget http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img
Then upload it to glance:
$glance add name=”Ubuntu 12.04 cloudimg amd64″ is_public=true container_format=ovf disk_format=qcow2 < precise-server-cloudimg-amd64-disk1.img
$glance index

We also can find it on the dashboard web interface: Read more…

Categories: Virtualization Tags:

Notes of Openstack Essex Installation (I)

July 6, 2012 21 comments

This entry looks through the installation guide posted on the official website of Openstack for the current version Essex, which you can find out here. The following configurations are almost the same with the guided ones, so you can refer to them for more details. What needs to be highlighted here is slight changes are also made to throw errors away deal to inadequate considerations of the Openstack guide. Here we go!
Step 1: install ubuntu 12.04 with the user name as localadmin and Openssh-server selected during the installation progress. Then run the followings: Read more…

Categories: Virtualization Tags:

Cài Openstack bằng script

June 4, 2012 5 comments

Trang web http://devstack.org/ đã viết sẵn một script để cài openstack, tiết kiệm bao nhiêu công sức cho các bạn mới làm quen. Chỉ cần 2 lệnh sau là bạn đã có thể cài tất cả các thành phần của openstack, trừ Swift, lên trên cùng một server, bao gồm luôn cả Dashboard (Horizon). Script này được giới thiệu là chạy tốt trên Ubuntu Oneiric (11.10), Precise (12.04) or Fedora 16. Và thực tế nhóm tôi đã thử cài thành công trên Ubuntu Precise.

git clone https://github.com/openstack-dev/devstack.git
cd devstack && ./stack.sh

Read more…

Error with Google Play Store

May 20, 2012 4 comments

I bought an LG993 in China one year ago with Android 2.2 installed. Actually, there wasn’t any Play Store (white bag icon) on it, instead the GoMarket application, which then was updated to become Anzhi, was used to connect to one of the market in China. The very problem is most of the apps on Chinese market is in Chinese and the apps number is relatively small. That’s why I try to install Google Play Store. But I face to two problems :

1. Wherever I put the Play Store apk, either on SD card or using Root Explorer to put it on /data/app or /system/app or both, I can install it smoothly. However, when I open it, the prompt “you must add an account to the device to continue. Do you want to add one now?” displays. Whatever “Yes” or “No” I touch, it get me back to the screen and the app just stalls. The Gmail app also doesn’t work. Read more…

Categories: Operating System Tags:

Android phone kết nối internet thông qua laptop

May 7, 2012 1 comment

Giả sử chúng ta có 1 cái laptop được cài win7 và kết nối internet bằng dây mạng (local connection), khi đó chúng ta hoàn toàn có thể share connection này với các máy khác qua đường wifi (ad hoc) mà không cần phải cài đặt thêm phần mềm gì nữa. Mặc dù android 2.2 (hệ điều hành trên điện thoại LG990 của tôi) hỗ trợ ad hoc, nhưng lại không quét ra được mạng này. Do đó để kết nối điện thoại với mạng ad hoc của laptop, chúng ta cần một số thay đổi, các bước tiến hành như sau:

1.Tạo mạng ad hoc trên laptop:

Open network and sharing center và chọn set up a new connection or network, chọn như trong các hình sau: Read more…

Categories: Network, Operating System Tags:

Run CUDA C program with Visual Studio 2008

March 19, 2012 1 comment

CUDA is NVIDIA’s parallel computing architecture. It enables dramatic increases in computing performance by harnessing the power of the GPU.

With millions of CUDA-enabled GPUs sold to date, software developers, scientists and researchers are finding broad-ranging uses for CUDA, including image and video processing, computational biology and chemistry, fluid dynamics simulation, CT image reconstruction, seismic analysis, ray tracing, and much more. [1]

To run CUDA program, you need to make sure that an Nvidia GPU has been attached to your computer. It’s GeForce 9800 GTX+ in my case. The CUDA Toolkit, which can be found here, should also be installed (all CUDA Toolkit, developer driver and GPU Computing SDK). Read more…