How to create rpm from a tarball?

September 26th, 2008

Let me try to describe it with an example.

I want to install munin-1.2.6 from its tarball, so I downloaded its tarball version from their official website ( http://downloads.sourceforge.net/munin/munin_1.2.6.tar.gz?modtime=1213233975&big_mirror=0)

 

Quote:

[root@saphire ~]# wget http://downloads.sourceforge.net/munin/munin_1.2.6.tar.gz?modtime=1213233975&big_mirror=0
[1] 12029
–04:20:36–  http://downloads.sourceforge.net/munin/munin_1.2.6.tar.gz?modtime=1213233975
=> `munin_1.2.6.tar.gz?modtime=1213233975′
Resolving downloads.sourceforge.net… 216.34.181.60
Connecting to downloads.sourceforge.net|216.34.181.60|:80… connected.
HTTP request sent, awaiting response… 302 Found
Location: http://voxel.dl.sourceforge.net/sourceforge/munin/munin_1.2.6.tar.gz [following]
–04:20:36–  http://voxel.dl.sourceforge.net/sourceforge/munin/munin_1.2.6.tar.gz
=> `munin_1.2.6.tar.gz’
Resolving voxel.dl.sourceforge.net… 72.26.192.194
Connecting to voxel.dl.sourceforge.net|72.26.192.194|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 360,694 (352K) [application/x-gzip]100%[====================================>] 360,694      506.59K/s04:20:39 (506.05 KB/s) - `munin_1.2.6.tar.gz’ saved [360694/360694]

We need the spec file to build rpm from the tarballs. If we try to create rpm from the downloaded tarball, we get an error similar to that of the following:

error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)

The above error message means the tarball is missing a proper spec file. We need to create the spec file manually or search for it in their official website. For easiness, I am downloading it from the web itself:

 

Quote:

[root@saphire ~]#wget http://www.sfr-fresh.com/unix/privat/munin_1.2.6.tar.gz:b/munin-1.2.6/dists/redhat/munin.spec.in
[root@saphire ~]# tar zxf  munin_1.2.6.tar.gz
[root@saphire ~]# mv munin.spec.in munin_1.2.6/munin.spec

Then, open the spec file and make the needed modifications. Initially, I received the error “error: Legacy syntax is unsupported: copyright” while trying to compile which is corrected by replacing the word “copyright” by “License” in the spec file. Also, change the version information to 1.2.6 in the mentioned spec file

Then create the tarball again from the mentioned directory

 

Quote:

[root@saphire ~]# tar czf munin-1.2.6.tar.gz munin-1.2.6

Then, I was able to compile the source and binary munin rpm via

 

Quote:

[root@saphire ~]#  rpmbuild -ta munin_1.2.6.tar.gz

Sometimes , it can show errors like the following while compiling the rpm:

 

Quote:

RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/bin/munindoc
/usr/lib/perl5/site_perl/5.8.8/Munin/Plugin.pm
/usr/share/munin/VeraMono.ttf

It can be corrected by adding the following lines in the spec file

 

Quote:

%{_docdir}/../munin/VeraMono.ttf
%{_bindir}/munindoc
%{_libdir}/perl5/*perl/5.*/Munin/Plugin.pm
Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist

You couldn’t resist my new motorbike design :)

July 14th, 2008

I do get sick of seeing all the identically base design on motorcycles, I can understand it on racers, as they are honed to race, but a road bike has so much more breadth for design possibilities depending on lifestyle. I just love this Honda Cbr1000rr bike model, it makes me very happy when a design works, and at the same time, absolutely ignores convention.

As per our design, it will be equipped with a cooled motor to air from 200cc with a freedom for the lean angle; specially tuned Showa sports suspension, including 43mm inverted front forks;;a bike full of purpose , handling and a unique feel. Above all else it will be a bike that will offer a cost-effective hugely rewarding riding experience . I’m expecting the basic model to be completed within September 2009.

I don’t have much idea about how this design affects the mileage and performance (the dry weight will be less than 150kgs) , as I am still learning about it. If you are an expert in bike modelling and want to know more about the design, please email me sumith@sumith.net and I’ll get back to you.

Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist

Buying and selling domains

April 17th, 2008

The term domain name has multiple related meanings:

* A name that identifies a computer or computers on the Internet. These names appear as a component of a Web site’s URL, e.g. en.wikipedia.org. This type of domain name is also called a hostname.
* The product that domain name registrars provide to their customers. These names are often called registered domain names.
* Names used for other purposes in the Domain Name System (DNS), for example the special name which follows the @ sign in an email address, or the Top-level domain names like .com, or the names used by the Session Initiation Protocol (VoIP), or DomainKeys.
* They are sometimes colloquially (and incorrectly) referred to by marketers as “web addresses”.

This article will primarily discuss registered domain names. See the Domain Name System article for technical discussions about general domain names and the hostname article for further information about the most common type of domain name.

Please see  Buying and selling domains for more information

Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist

Internet Marketting - Basic Ideas

March 27th, 2008

Internet Marketting , also referred to as online marketing or eMarketing (or e-Marketing), is the marketing of products or services over the Internet. The Internet has brought many unique benefits to marketing including low costs in distributing information and media to a global audience. The interactive nature of Internet marketing, both in terms of instant response and in eliciting response, are unique qualities of the medium.

Internet marketing ties together creative and technical aspects of the internet, including design, development, advertising and sales. Internet marketing methods include search engine marketing, display advertising, e-mail marketing, affiliate marketing, interactive advertising, online reputation management and also Social Media Marketing Methods such as blog marketing, and viral marketing.

Internet marketing is the process of growing and promoting an organization using online media. Internet marketing does not simply mean ‘building a website’ or ‘promoting a website’. Somewhere behind that website is a real organization with real goals.

An Internet marketing strategy includes all aspects of online advertising online activity that promotes a company online, including websites, blog sites, article and press releases, online market research, email marketing, and advertising, as appropriate for the promotion of ones’ business.

Useful Links:  Search Engine Optimisation   | Internet Marketing | ECommerce

Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist

Compiling XCache from Source

March 21st, 2008

For those of you that are not running RPM-based distros, you’re probably feeling a bit left out. Up until now, all of my tutorials have dealt with upgrading RPM-based distros. Well, that ends here. I’m going to walk through the fairly simple process of compiling and installing XCache for httpd from the original source.

The current stable release of XCache is 1.0.3. The “Unstable” release, made for PHP 5.1 & 5.2, is 1.2.0. Despite the label, I have not found anything “unstable” about the 1.2.0 version. That said, there have been a few issues reported on the vBulletin forums for users of PHP 4. If you are running PHP 4, I’d recommend that you use 1.0.3, just to be safe. Now, down to the work.

Assuming that you already have a full development environment on your system (gcc, gcc-c++, make, php-devel, etc.), the first thing you’ll need to do is to download the source tarball to your computer. Pick the version you want and then continue to the next step.

XCache 1.0.3 - PHP 4.x
XCache 1.2.0 - PHP 5.1 & 5.2

Once you’ve downloaded the source pacakge to your server, unpack it and then enter the “xcache” directory that was just created. At this point, you’ll want to run the following commands. Even a slow system should be done within 1 or 2 minutes, so don’t go anywhere.

    * phpize
    * ./configure –enable-xcache –enable-xcache-optimizer
    * make
    * make install

The output of “make install” is very important as it lets you know where the compiled module was installed. Make sure that you remember or write down that string.

Now that the xcache.so module is installed, you’ll need to configure it. If your install of PHP parses the /etc/php.d/ folder then you should create a file in that folder called “xcache.ini”. If not, just open your php.ini file and paste in the following:

[xcache-common]
    zend_extension = /usr/lib/php4/xcache.so

    ; required for >=php5.1 if you turn XCache on
    auto_globals_jit = Off

    [xcache.admin]
    xcache.admin.user = “admin”
    ; paste the output of md5(”password”) below
    xcache.admin.pass = “”

    [xcache]
    xcache.size = 32M
    xcache.count = 1
    xcache.slots = 8K
    xcache.mmap_path = “/dev/zero”
    xcache.cacher = On
    xcache.optimizer = On

Based on your configuration, you may want to make a few changes. If “/usr/lib/php4″ was not where “make install” claimed to have installed the xcache.so module, change it. Likewise, if your system has multiple processors (count logical cores from Hyper-Threading), change the value of “xcache.count”. Finally, if you plan to use the web admin interface, you’ll need to fill in “xcache.admin.pass”. This value should be a MD5 of the password you want to use (if you need an MD5 generator, try this one).

If you filled in the password, you should also copy the contents of the “admin” folder from the “xcache” source folder to somewhere web-accessible. No changes need to be made and the “config.php.example” file should be left as-is.

At this point, all that’s left is to restart httpd and you should be good. Check your phpinfo() once you’ve restarted httpd to make sure that xcache is listed.

Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist

How to replace a string in a file with another string using replace command

March 21st, 2008

If you want to replace a string ‘gmail’ with ‘hotmail’ in all the files under a folder, say ’sumith’ , then go under the folder sumith, then issue command

replace gmail hotmail — *

If you want to replace the string ‘aol’ with ‘yahoo’ in just a single file say ‘techie’, then issue the command

replace aol yahoo –techie

Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist

ventrilo server

March 21st, 2008

Ventrilo is a proprietary Voice over IP program with clients for Microsoft Windows and Mac OS X. Most users of Ventrilo use a headset or microphone and use the program to talk freely to each other, similar to a telephone conference call. Ventrilo is often used by multiplayer computer game players.

ventrilo server setup how to changing ventrilo serverteamspeak servers hosting

Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist

Game Servers

March 21st, 2008

Game servers can be classified as listen servers and dedicated servers. Listen servers are run on the same machine as the game client. When the client disconnects, the server is shut down, as the server and host client are run together. Listen servers usually cannot support many players, due to bandwidth and CPU requirements. The software running the listen server typically limits the number of players for this very reason.
online call of duty 4 servers order call of duty 4 game servers team fortress 2 servers

Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist

VOIP/Teamspeak server hosting guide.

March 21st, 2008

TeamSpeak is proprietary Voice over IP software that allows users to speak on a chat channel with other users, much like a telephone conference call. A TeamSpeak user will often wear a headset with an integrated microphone. Users use the TeamSpeak client software to connect to a TeamSpeak server of their choice, from there they can join chat channels.
free ventrilo server hosting teamspeak servers setup guide teamspeak server information

Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist

PHPList installation problem with fantastico

March 21st, 2008

Phplist can be installed using fantastico, however the installed software doesn’t work. It throws a blank page while trying to access phplist after the installation.

  • Fix: In the config.php file, go to the line that is define(”PLUGIN_ROOTDIR”,”/tmp”) and change the /tmp path to
    /home/username/tmp .This will make the page come up.
  • Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist