Posts Tagged ubuntu

git: ’svn’ is not a git-command. See ‘git –help’.

Posted on February 6, 2010 with No Comments

On ubuntu , when i run git svn, i get following error

root@hostonnet:/usr/local/zend/share# git svn clone http://framework.zend.com/svn/framework/standard/trunk
git: 'svn' is not a git-command. See 'git --help'.
root@hostonnet:/usr/local/zend/share#

This is fixed by installing git-svn

sudo apt-get install git-svn

Tags: ,

Category: Git, ubuntu

Google Chrome Now Available for Linux

Posted on January 16, 2010 with No Comments

Today i installed Google Chrome on Ubuntu. It works great, now i have Opera, Firefox and Google Chrome on Ubuntu desktop. Great work Google for supporting Linux.

XPGnome – Make Ubuntu look like Windows XP

Posted on January 7, 2010 with No Comments

XPGnome theme can make ubuntu look like Microsoft Windows XP.

Tags: ,

Category: ubuntu

Changing computer name in ubuntu

Posted on October 8, 2009 with No Comments

To change computer name in ubuntu, run

sudo echo "computer-new-name" > /etc/hostname

Now you need to reboot to get the computer name changed.

How to extract RAR files in Ubuntu

Posted on September 24, 2009 with No Comments

To extract rar file, you need to install unrar with

sudo apt-get install unrar

To extract a rar file, go to command line, run

unrar x fileName.rar

For other command line options of unrar, run

man unrar

Tags: , , ,

Category: ubuntu

Enable Apache Mode Rewrite in ubuntu

Posted on September 18, 2009 with No Comments

You need to run “a2enmod rewrite” to enable apache mod_rewrite.

hon@hon-desktop:~/web$ sudo a2enmod rewrite
Module rewrite already enabled
hon@hon-desktop:~/web$

In my case it was already enabled, still .htaccess was not working.

It was the default site, so i need to edit

sudo vi /etc/apache2/sites-available/default

Find

<Directory /var/www/html/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
</Directory>

In that find

AllowOverride None

Replace with

AllowOverride All

Now restart apache

/etc/init.d/apache2 restart

Install festival tts in ubuntu

Posted on September 12, 2009 with No Comments

festival is a tts (text-to-speech) software in ubuntu that offers several different voices.

To install festival, run

sudo apt-get install festival

Now to use festival, in command line type

echo "Host On Net Provides Web Hosting" | festival --tts

Or

festival --tts file-name.txt

Debian: How to find a package is installed from .deb or source

Posted on June 17, 2009 with No Comments

When installing ffmpeg-php in a debian server, i got error

# phpize
-bash: phpize: command not found
#

This is because php-devel package is not installed on the server.

Before installing, you need to find out whether php is installed from source or apt-get

On CentOS, you can find it by

yum list |grep php

On Debian/Ubuntu, dpkg -l list all packages installed.

# dpkg -l *php5*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                      Version                   Description
+++-=========================-=========================-==================================================================
un  libapache-mod-php5        <none>                    (no description available)
ii  libapache2-mod-php5       5.2.0+dfsg-8+etch15       server-side, HTML-embedded scripting language (apache 2 module)
ii  php5                      5.2.0+dfsg-8+etch15       server-side, HTML-embedded scripting language (meta-package)
un  php5-cgi                  <none>                    (no description available)
ii  php5-cli                  5.2.0+dfsg-8+etch15       command-line interpreter for the php5 scripting language
ii  php5-common               5.2.0+dfsg-8+etch15       Common files for packages built from the php5 source
ii  php5-curl                 5.2.0+dfsg-8+etch15       CURL module for php5
ii  php5-gd                   5.2.0+dfsg-8+etch15       GD module for php5
ii  php5-imap                 5.2.0+dfsg-8+etch15       IMAP module for php5
ii  php5-ioncube-loader       3.2-dbn40.build07072610   ionCube Loader for PHP5
ii  php5-mysql                5.2.0+dfsg-8+etch15       MySQL module for php5
un  php5-mysqli               <none>                    (no description available)
ii  php5-xsl                  5.2.0+dfsg-8+etch15       XSL module for php5
ii  psa-php5-configurator     1.4.0-debian4.0.build8608 Plesk configurator for php5
#

You can also use

apt-cache policy php5
# apt-cache policy php5
php5:
  Installed: 5.2.0+dfsg-8+etch15
  Candidate: 5.2.0+dfsg-8+etch15
  Version table:
 *** 5.2.0+dfsg-8+etch15 0
        500 http://ftp.de.debian.org etch/updates/main Packages
        100 /var/lib/dpkg/status
     5.2.0-8+etch13 0
        500 http://ftp.de.debian.org etch/main Packages
#

In this server, php is installed from apt. So to install php-devel, i run

apt-cache search php5 | more

This command list all php5 packages available. From the list i found

php5-dev - Files for PHP5 module development

To install, run

apt-get install php5-dev

Here is the result

# apt-get install php5-dev
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  automake1.4 libssl-dev libssl0.9.8 shtool
The following NEW packages will be installed:
  automake1.4 libssl-dev php5-dev shtool
The following packages will be upgraded:
  libssl0.9.8
1 upgraded, 4 newly installed, 0 to remove and 57 not upgraded.
Need to get 5586kB of archives.
After unpacking 10.2MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
WARNING: The following packages cannot be authenticated!
  automake1.4 shtool
Install these packages without verification [y/N]? y
Get:1 http://ftp.de.debian.org etch/updates/main libssl0.9.8 0.9.8c-4etch5 [2721kB]
Get:2 http://ftp.de.debian.org etch/main automake1.4 1:1.4-p6-12 [272kB]
Get:3 http://ftp.de.debian.org etch/updates/main libssl-dev 0.9.8c-4etch5 [2094kB]
Get:4 http://ftp.de.debian.org etch/main shtool 2.0.1-2 [152kB]
Get:5 http://ftp.de.debian.org etch/updates/main php5-dev 5.2.0+dfsg-8+etch15 [346kB]
Fetched 5586kB in 2s (1908kB/s)
Preconfiguring packages ...
(Reading database ... 55619 files and directories currently installed.)
Preparing to replace libssl0.9.8 0.9.8c-4etch3 (using .../libssl0.9.8_0.9.8c-4etch5_i386.deb) ...
Unpacking replacement libssl0.9.8 ...
Selecting previously deselected package automake1.4.
Unpacking automake1.4 (from .../automake1.4_1%3a1.4-p6-12_all.deb) ...
Selecting previously deselected package libssl-dev.
Unpacking libssl-dev (from .../libssl-dev_0.9.8c-4etch5_i386.deb) ...
Selecting previously deselected package shtool.
Unpacking shtool (from .../shtool_2.0.1-2_all.deb) ...
Selecting previously deselected package php5-dev.
Unpacking php5-dev (from .../php5-dev_5.2.0+dfsg-8+etch15_i386.deb) ...
Setting up libssl0.9.8 (0.9.8c-4etch5) ...
 
Setting up automake1.4 (1.4-p6-12) ...
 
Setting up libssl-dev (0.9.8c-4etch5) ...
Setting up shtool (2.0.1-2) ...
 
Setting up php5-dev (5.2.0+dfsg-8+etch15) ...
 
#

Now phpize is availale

# which phpize
/usr/bin/phpize
#

Tags: , , , ,

Category: Linux

Reading and searching windows chm help files in ubuntu

Posted on May 31, 2009 with No Comments

By default ubuntu 9 have chmsee installed to view windows chm help files.

chmSee is ok for reading chm files, but there is no search function. If you have a reference chm file, it is not easy to find some thing you need with out search function.

I have installed xchm that have search function and also shows bookmarks.

xchm

Tags: , , ,

Category: ubuntu

Extract RAR archives in Ubuntu

Posted on May 31, 2009 with No Comments

To extract RAR archives in Ubuntu, you need to install unrar.

On terminal run

sudo apt-get install unrar

Or you can install from Synaptic Package Manager


rar

To extract a rar file, run terminal, go to the folder where the rar file is located.

Applications -> Accessories -> Terminal

Run

unrar x filename.rar

hoston@linux:~/my/share/software/FTP$ unrar x FlashFXP.rar

UNRAR 3.80 freeware Copyright (c) 1993-2008 Alexander Roshal

Extracting from FlashFXP.rar

Creating FlashFXP OK
Creating FlashFXP/FlashFXP OK
Extracting FlashFXP/FlashFXP/FlashFXP Website.url OK
Extracting FlashFXP/FlashFXP/flashfxp.chm OK
Extracting FlashFXP/FlashFXP/FlashFXP.exe OK
Extracting FlashFXP/FlashFXP/IEFlash.dll OK
Extracting FlashFXP/FlashFXP/install.sss OK
Creating FlashFXP/FlashFXP/Language OK
Extracting FlashFXP/FlashFXP/Language/Bulgarian.elg OK
Extracting FlashFXP/FlashFXP/Language/Catalan.elg OK
Extracting FlashFXP/FlashFXP/Language/Chinese Simplified.elg OK
Extracting FlashFXP/FlashFXP/Language/Chinese Traditional.elg OK
Extracting FlashFXP/FlashFXP/Language/Czech.elg OK
Extracting FlashFXP/FlashFXP/Language/Dutch.elg OK
Extracting FlashFXP/FlashFXP/Language/European Portuguese.elg OK
Extracting FlashFXP/FlashFXP/Language/French.elg OK
Extracting FlashFXP/FlashFXP/Language/German.elg OK
Extracting FlashFXP/FlashFXP/Language/Hungarian.elg OK
Extracting FlashFXP/FlashFXP/Language/Italian.elg OK
Extracting FlashFXP/FlashFXP/Language/Japanese.elg OK
Extracting FlashFXP/FlashFXP/Language/Korean.elg OK
Extracting FlashFXP/FlashFXP/Language/Polish.elg OK
Extracting FlashFXP/FlashFXP/Language/Russian.elg OK
Extracting FlashFXP/FlashFXP/Language/Spanish.elg OK
Extracting FlashFXP/FlashFXP/Language/Swedish.elg OK
Extracting FlashFXP/FlashFXP/Language/Turkish.elg OK
Extracting FlashFXP/FlashFXP/libeay32.dll OK
Extracting FlashFXP/FlashFXP/ssleay32.dll OK
Extracting FlashFXP/SN.txt OK
All OK
hoston@linux:~/my/share/software/FTP$