Tuesday, December 16, 2008

The first real snow in Saadabad, Tehran

Finally, I saw first real winter snow in Saadabad, Tehran. It's beautiful. I taken photos :)
You can see them here.



And night:




Saturday, November 29, 2008

Ubuntu 8.10 release party held in Tehran, Iran

ubuntu logo
Hi All,

Ubuntu 8.10 Intrepid Ibex release party held in Tehran, Iran.

[caption id="attachment_26" align="alignnone" width="400" caption="Iranian Ubuntu Team"]Iranian Ubuntu Team[/caption]

Ubuntu-ir Digest, Vol 9, Issue 1


The Iranian Local Community had their greatest ever Ubuntu Release Party in
Tehran with more than 100 attendee and celebrated Ubuntu-ir's 2nd
The Iranian Team started their public work with Ubuntu 6.10 release and soon
became a big mature Open Source promoter team in the area and now with more
than 3000 users in forums and ~80 posts per day is a very fast growing

We've had 8 Presentations in this release party. Ubuntu 8.10 features tour,
Kubuntu 8.10 features tour, Joomla CMS Introduction, Zekr project
Introduction, Desktop effects in Ubuntu & Kubuntu, Ubuntu Server
presentation, Linux Kernel comipation howto and finally the Iranian team
future plan and roadmap.

I would like to thank all contributers, all talkers, and Farhang Saraye
Rasane again for the conference room.
You guys all rock and did a great job, THANKS A LOT :-)

The whole Story, Photos and Presentations:

Cool figures ;-)
Ubuntu 7.04 Release Party: 15 attendee
Ubuntu 7.10 Release Party: 25 attendee
Ubuntu 8.04 Release Party: 50 attendee
Ubuntu 8.10 Release Party: 100 attendee
Ubuntu 9.04 Release Party: ???

Yours Sincerely, Mehdi Hassanpour

Good luck

Sunday, August 10, 2008

Install Oracle Instant Client and PHP OCI8 module

If you want to connect to an Oracle database with PHP, you can use Oracle's Instant Client and the oci8 module from pear.

Download the Basic and the SDK packages from oracle.com. At the time of this writing, the filenames are instantclient-basic.zip and instantclient-sdk.zip.

Unzip these files in a new directory, e.g. /opt/oracle/instantclient.

sudo su
mkdir -p /opt/oracle/instantclient
cd /opt/oracle/instantclient
unzip instantclient-basic.zip
unzip instantclient-sdk.zip
echo /opt/oracle/instantclient >> /etc/ld.so.conf

The previous two lines are supposed to create symlinks named libclntsh.so and libocci.so which we will need later. In my case these symlinks were not created by ldconfig, so I created them manually.

ln -s libclntsh.so.11.1 libclntsh.so
ln -s libocci.so.11.1 libocci.so

In the next step we will download the oci8 module with pear. Pear is in the php-pear package.

apt-get install php-pear

Also, you need php5-dev and build-essential packages for compiling oci8 module.

apt-get install php-pear php5-dev build-essential

"Normally" we should be able to just use pecl install oci8 now, but apparently pear is not able to figure out where the instantclient libraries are. So we will just download the oci8 module and build it on our own.

mkdir -p /usr/local/src
cd /usr/local/src
pecl download oci8
tar xzf oci8-1.3.4.tgz
cd oci8-1.3.4
./configure --with-oci8=shared,instantclient,/opt/oracle/instantclient
make install

The oci8-1.3.4.tgz filename will of course change for newer releases.

To enable the oci8 module in the php.ini (/etc/php5/apache2/php.ini and /etc/php5/cli/php.ini), add a line

(put this line after the examples starting with ;extension).

Now stop and start Apache. You should see the oci8 module in the output of phpinfo().

Good luck

Friday, May 23, 2008

Hardy Party held in Tehran, Iran

Hi All,

Ubuntu 8.04 Hardy Heron release party held in Tehran, Iran.
From Ubuntu 8.04 Hardy Heron Release Party

Ubuntu-ir Digest, Vol 8, Issue 3:

Hi all,

Yesterday the Iranian Team had a great hardy party held in Tehran. Although
it was the uni. exams time/date more than 50 attended the party and made a
great day for the Team.

We've had 5 presentation: Ubutnu Installation, Kubuntu 3.5 Tour, KDE 4
features and Tour, Desktop Effects in Ubuntu, Ubuntu Overview and Hardy
Tour, Iranian Team report and future plan.
We had also K/ED/Ubuntu CD, DVD, sticker, MUGs distribution.

I hope we can plan for an Install Fest in near future, since we really need
more face to face talk and free chatting.

And I would like to thank all contributers, all talkers, and Farhang Saraye
Rasane for the conference room. You guys all rock and did a great job,

The whole story and Presentations:

Mehdi Hassanpour

Good luck

Monday, April 7, 2008

Nested X11 environment session

Hi :)

Instead of using a full-blown new virtual X for developing software you can use Xephyr to embed your KDE 4 session into your working KDE 3 or other X11 environment.

If you want to get a minimal KDE session up and running, just launch Xephyr (available in Kubuntu as xserver-xephyr; Gentoo users compile x11-base/xorg-server with USE="kdrive"):
Xephyr :1 -extension GLX &

You can now launch KDE:
export DISPLAY=:1
/path/to/kde4/bin/startkde &

For other X11 environment just change /path/to/kde4 like:
/usr/bin/startx &

/usr/bin/startkde &


You can use "locate" command to find paths like:
locate startkde

Happy Nowruz 1387 (Iranian new year holiday)

Good Luck

Saturday, February 2, 2008

KDE history in screenshots


I gathering some screenshots of KDE from KDE 1 to KDE 4. You can see more screenshots in KDE official site.







Thursday, January 31, 2008

What's dpkg-reconfigure

Reconfigure an already installed package like gdm.
dpkg-reconfigure package_name

For example you can reconfigure X Server:
sudo dpkg-reconfigure xserver-xorg

Friday, January 25, 2008

Issue 9 at Full Circle Magazine

Full Circle Magazine Logo
Hi :)

Issue 9 at Full Circle Magazine is out!


  • OpenGEU - A step-by-step install from OpenGEU creator Luca De Marini.

  • How-tos: Directory Server, Ubuntu on an iBook, Installing OpenTTD (Transport Tycoon Deluxe), and part one of the new “Create Your Own Server” series.

  • The new “Create Your Own Server” series (mentioned above).

  • Review of the KDE 4.0 release

  • Letters, the Q&A, My Desktop, the Ubuntu Women column, the Top 5, and much, much more!

Full Circle Magazine - Issue 9

Download English version

Good Luck

Tuesday, January 22, 2008

Webmin, Installing on Ubuntu Gutsy Gibbon (7.10)

Hi :)
I wrote post about Webmin in ITPencil. My Persian friend like it. I decide to write post about Webmin and how to installing it on Ubuntu Gutsy Gibbon (7.10).
It's very good for newbie.

from webmin.com:

Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely.

Installing Webmin On Ubuntu Gutsy Gibbon (7.10)
Webmin has some dependency package.
Install dependencies:

sudo aptitude install bash perl libnet-ssleay-perl openssl \
libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl

After install dependencies, you can download and install Webmin. Last version of Webmin is 1.390.
Download Webmin:

sudo wget http://prdownloads.sourceforge.net/webadmin/webmin_1.390_all.deb

Install Webmin:

sudo dpkg -i webmin*.deb

Log in and use it:
Copy this URL into your web browser: https://localhost:10000

Sunday, January 6, 2008

Linux and UNIX bash shell aliases


Commonly used for a long strings that are frequently used. Alias allows you to have a small more familiar command or name to execute a long string.

Set an alias
alias [name[='command']

nameSpecifies the alias name.
commandSpecifies the command the name should be an alias for.
-aRemoves all alias definitions from the current shell execution environment.
-tSets and lists tracked aliases.
-xSets or prints exported aliases. An exported alias is defined for scripts invoked by name.
-pPrints the list of aliases.

alias command with no arguments or with the -p option prints the list of aliases:

$ alias
alias ff='firefox'
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -l'
alias ls='ls --color=auto'
alias sx='startx'

Sets clr to type clear

$ alias clr='clear'

Remove an alias
unalias [name]

nameSpecifies the alias name.
-aRemoves all alias definitions

Clear all Linux / UNIX bash shell aliases

$ unalias -a

When the computer is rebooted all alias will be lost.

How to prevent it?
All alias must be added to .bashrc file located at your user folder (example: /home/saeid/.bashrc)


$ gedit /home/saeid/.bashrc


alias clr='clear'

now you have to 'compile' your .bashrc file

$ source .bashrc

Now clr alias it's saved.

Good luck