7 August 2012

How to get Bazaar working with Launchpad in Windows & without any errors

Launchpad is a cool website that provide hosting services for open source projects. In order to work in launchpad hosted project you need an SSH key and a tool for SSH connection establishment. Such tool is not well integrated in WINDOWS as Linux platform. Fortunately, this tool exists and they are free & open source too :).

First step is that we need to generate an SSH key using a tool called putty (download the windows installer). After installation run puttygen.exe and click the generate button. PUTTYGEN will ask you to move your mouse around in the blank area to generate the key. Set your key pass-phrase. Click "Save public key" and choose a location to save it as filename.pub. Click "Save private key" and choose a secure location to save it as filename.ppk. Do not close Puttygen window just yet! Copy the public key from the Puttygen window then go to Launchpad page for adding the public key (the url look like https://launchpad.net/~USERNAME/+editsshkeys). Paste your SSH key under Add an SSH key.

Second step is to define certain environment variables. The first variable is BZR_SSH=plink as the following (pic-01)
pic-01: BZR_SSH=plink

. The second variable is to modify the PATH and to add the following line C:\Program Files\PuTTY; which will help Windows to locate the plink.exe program & to make it accessible via command prompt. The third variable is to create the ssh folder under the following path C:\Users\< username >\ by right clicking the directory & choosing New->Folder then type the name as '.ssh.' to get the folder as .ssh after that copy the public key then paste it in a text file named id_rsa.pub and save the file into the .ssh folder.

Third step is to establish the connection using Pageant. So Run Pageant aand make sure Pageant is running and RT+click the icon in the notification area. Add the private key you saved earlier (filename.ppk). This step is crucial if you want to connect to launchpad from a Windows PC.

Now you can use a tool like Tortoisebzr to push to Launchpad and avoid errors like 'bzr ERROR [Error 2] The system cannot find the file specified'

REFRENCES:

24 May 2012

الحل السحري لمشكلة الحرارة الزائدة في أنظمة اللينكس


يواجه مستدخمي أنظمة الليكنس مثل أبنتو (Ubuntu) و ديبيان (Debian) مشكلة الحرارة الزائدة الناتجة من المعالج و وقوف مرواح التبريد عن العمل، هذه المشاكل بدأت في الظهور مع النسخة 2.6.38 لنواة اللينكس (Linux Kernel)، فقد تم التعديل من هذا الإصدار في كود البرمجة ليعمل بكفاءة أكبر في أجهزة الحاسبات إلا أنه عاد بالسوء علي الحاسبات المحمولة و الهواتف و الحاسبات المنزلية، حيث يتم إستهلاك شديد للكهرباء و نتيجة زائدة للحرارة و فشل مرواح التبريد عن العمل نتيجة للضغط المتزايد عليها من العمل، و للأسف لم يتم حل هذه المشكلة حتي الأن من قبل المسؤولين عن نواة اللينكس و لكن هناك فريق قام بحل المشكلة ببرنامج يسهل التعامل معه و هو رائع لكل الأجهزة للمستخدم المنزلي و هو (Jupiter)، و للقيام بتحميله و تنصيبه علي الجهاز اتبع الأوامر التالية:
~$ sudo add-apt-repository ppa:webupd8team/jupiter
~$ sudo apt-get update
~$ sudo apt-get install jupiter
~$ jupiter

5 April 2012

Steps to Install Openerp 6.1 on Ubuntu 10.04


  • Setting up the Environment
  • Download Software
  • Installation
  • Testing your Installation
Setting up the Environment
Openerp depends in many packages in-order to work on Ubuntu. The easiest way to install them is by using the following command:
sudo apt-get install <package name>
This is a list of the 24 packages needed for Openerp 6.1
python-matplotlib python-pyparsing python-imaging python-psycopg2 python-libxslt1 python-libxml2 graphviz postgresql-8.4 pgadmin3 python-lxml mx44 python-reportlab python-pychart python-tz python-openssl python-hippocanvas python-yaml python-pydot python-setuptools bzr python-mako python-pybabel python-openid python-werkzeug
Later on you can download the debian package from Openerp website and double click the icon to install it.