General, Git, Linux

Installing SmartGit 2.01 on Ubuntu Linux 10.04

SmartGit is undoubtedly my best git client both for Windows and Linux. I’ve installed it a couple of times in the last few months  already and it now is the time to stop learning how to install it again and again. Here I demonstrate how to install SmartGit 2.01 on Ubuntu 10.04

SmartGit offers many features but my best feature is the Conflict Solver. As the name implies, it helps you resolve version conflicts. Doing this without a GUI is a pain hence I treasure it. New in version 2 is a section on the bottom right of the window which shows Pushable Commits, which I think is a nice feature.

SmartGit was developed using Java so you’ll have to install Sun Java JRE. Below are full instructions on how to install both JRE and SmartGit. Installing SmartGit earlier than v2 is the same as below only that you won’t need to reinstall git.

Continue reading

Advertisements
Standard
General

It’s 2011! Happy New Year!

2010 was a great year, and 2011 promises to be even better. Started blogging almost a year ago and thanks to a good friend of mine, I’ve learnt how to create better tutorials. Thanks Mich!

New tutorials coming soon. Please fell free to leave comments and express yourself. You can also request for specific tutorials or share your ideas.

Wishing you a memorable and prosperous New Year!

Standard
General

iTunes Account without a credit card on the iPad

Did you know you can register for an iTunes account without a credit card? Found out the hard way. All you have to do is goto the AppStore on your iPad and Create a new account. When asked for payment met hod, select None. That’s all. If you register via iTunes you will be required to provide a means of payment.

Standard
General

MTN Improves Internet Plans

For the first time MTN gave me two very pleasant surprises. First they increased the data cap on the 24Hrs plan from 3GB to 5GB and also reduced the cost from N10K to N8K. Second surprise was even better. Free uncapped Internet access for 3 days. How cool is that! Data cap on the daily plan has also been increased from 50MB to 150MB while PAYU is now 5Kobo/KB from 15Kobo/KB. MTN needs to clarify that though cos in a newspaper ad they advertised 1Kobo/KB.

I’d recommend MTN any day as long as your area of use is within 3.5G coverage area. Before MTN I was using Starcomms and MTN is over 3 times as fast, reliable and still cheaper than Starcomms. Yes, MTN’s customer care still sucks when compare with Starcomms but I’ve have very one incident with MTN requiring customer care attention

I guess we are already reaping the benefits of MainOne! Cool!

You can get more details about MTN’s data plans here.

http://www.mtnonline.com/index.php/fastlinkdataplans.html

UPDATE: MTN has finally solved the issue of them billing exorbitantly per kb when your data plan expires. You are now required to text RESET to 131 to activate PAYU. Cool.

By the way, if you have a 3G phone, you don’t need to buy the modem. Just use your phone as a modem on your laptop.

Standard
General

Internet Service Plans In Nigeria with Pricing, Validity, Data Cap, and Activation Codes

Internet Access in Nigeria is improving. Today, there are many service providers to choose from. Some of these service providers are crappy in certain locations so it’s important to know what your options are. I was using Starcomms for a while and then switched to MTN. Not only was the service cheaper but it was much faster and reliable. While Starcomms says I have 20GB monthly data cap (though I never got to 2GB) I found that MTN’s service plan makes me more productive even though they have a 3GB cap. Recently, I had course to reconsider using Starcomms, but the painful memories of screaming at customer care for days and long hours I wasted uploading small files made me make a U-turn.

Don’t settle for crappy internet! Find the best for your location and lifestyle and be happy. Here is a list of providers and their service plans. I’ll update as I get more info. Please share your experience with internet providers so we can all learn.

Internet Service Provider Data Plan Data Cap Access Period (If Applicable) Price Validity (Days) Activation

Starcomms EVDO

Purple Always REN 20G 24 hours 15,950 30
EvDO 100 Hrs 20G 24 hours 6,500 30 *242**1234# to 37938
Requires another phone for activation 250 Hrs 20G 24 hours 15,000 90
Dail *121 for customer care Purple Business REN 20G 9am – 9pm 7,000 30 *245**1234# to 37938
Purple Night REN 20G 9pm – 9 am 5000 30
Friendly 8 20G 7-11 am & 7-11pm 6,000 30
Starcomms CDMA 1 Green Always REN 20G 24 hours 10,000 30
CDMA1 Green Business REN 20G 9am – 9pm 7,000 30
Dail *121 Green Night REN 20G 9pm – 9 am 5000 30
Green Corporate REN 20G 24 hours 8,000 30
Green 100 Hours REN 20G 24 hours 5,000 30
Green 250 Hours REN 20G 24 hours 10,000 90
Peak N/A 06.00-23.00 hrs 3/min
Off-Peak N/A 23.00-06.00 hrs 3/min

MTN

Monthly Plan 5G 24 hours 8,000 30 Text 101 to 131
HSPA (3.5GB) Nite 3G 10 pm – 5am 2,500 30 Text 102 to 131
Dial 180, Dial 181 for customer care Daily Plan 50MB 24 hours 500 1 Text 103 to 131
Pay-As-You-Use 24 hours 15 kobo per kilobyte
MicroSIM 3GB 24 hours 10,000 30

Glo HSI

Always Max 5 GB 24 hours 10000 30 Text 12 to 127
HSUPA (3.5GB) Always Min 1.5 GB 24 hours 5000 30 Text 11 to 127
Dial 121 for customer care Always Day 150 MB 24 hours 500 30 Text 10 to 127
Always Micro Text 13 to 127
G300 4 GB 300 Hrs 15000 90 Text 21 to 127
G100 3 GB 100 Hrs 6000 30 Text 20 to 127
G Work 3 GB 8am – 9pm 6000 30 Text 31 to 127
G Leisure 3 GB 8pm – 9am, All Day Weekends 5000 30 Text 30 to 127

Multilinks

MultiLinks AnyTime 6GB 24 hours 9,000
EvDO MultiLinks DayTime 6GB 8am to 8pm 6,000
Requires another phone for activation MultiLinks NightTime 20GB 12am to 8am 3,500
MultiLinks MyTime 250 24 hours 9,900 60
MultiLinks MyTime 100 hours 24 hours 5,600 30
MultiLinks MyTime 50 hours 24 hours 3,400 30

Zain

Zain Day 50 MB 24 hours 500 1 *141*712*3#
HSUPA (3.5GB) Zain Lite 100 MB 24 hours 1,000 30 *141*712*4#
Zain Plus 1 GB 24 hours 5,000 30 *141*712*1#
Zain Max 3 GB 24 hours 10,000 30 *141*712*2#
Zain Premium 6 GB 24 hours 15,000 30 *141*712*5#

Tips

  • MTN’s most annoying issue is that once your service plan expires they immediately start billing you at 15kobo/KB. If you have about N10k credit, that would expire in no time so BEWARE!!!.
Standard
General, Linux

Installing FFMPEG the Easy Way on OpenSuSE 11.1

Installing ffmpeg was formerly a pain for me. Why? I downloaded all dependencies manually and there are a ton of them. I recently stumbled on a repository, Packman that has ffmpeg and its dependencies in stock. This made installation a pain-free experience.

Packman Repository also offers One-Click Install which is supported from OpenSuSE 10.3. As the name suggests, one-click [and a few accept or next buttons] and you are done.

One-Click Install

  1. Enable all repositories currently in your YaST Software Repositories. This is important for YaST to automatically get all dependencies.
  2. Goto Packman Repository
  3. Search for ffmpeg
  4. Click on One-click Install
  5. Follow the Wizard and that’s ALL

Repository Installation

  1. Enable all repositories currently in your YaST Software Repositories. This is important for YaST to automatically get all dependencies.
  2. Add Packman Repository to your Software Repositories. You can get a link to it from here http://en.opensuse.org/Additional_package_repositories
  3. Goto Software Management
  4. Search ffmpeg, and mark it for installation.
  5. Click on finish and it would be install for you.

Standard
General, Linux

GoDaddy Wildcard SSL & Apache2 on SuSE 11.2

Basics

To setup Apache2 with an SSL certificate you’ll need the following:

  • A key – Require to generate a CSR
  • Certificate Signing Request – Require by GoDaddy to generate a certificate
  • Your Certificate
  • GoDaddy’s certificate bundle

To Generate a Triple-DES Encrypted Key Pair and a Certificate Signing Request (CSR)

In a command prompt, enter the following, pressing Enter after each line:

  1. cd /usr/bin/ (/your path to openssl/)
    Enter a passphrase when prompted to. Be sure not to forget otherwise you’ll have to start all over again.
  2. openssl genrsa -des3 -out .key 2048
  3. openssl req -new -key .key -out .csr

Fill in the following

  • Enter Country Name (2 letter code): NG
  • State or Province Name: Lagos
  • Organization Name: Organic Ltd.
  • Common Name
  • Email Address

IMPORTANT

Do not enter a challenge password. Why? This would cause an error when you submit your CSR to GoDaddy.

Now that you have your key and CSR you can generate your SSL Certificate. Copy the contents of your CSR and follow the steps outlined here.

http://help.godaddy.com/article/562

Download your SSL Certificate for Apache and copy them to your server and follow the instructions here

http://help.godaddy.com/topic/742/article/5238
Download your SSL Certificate for Apache and copy them to your server and follow the instructions below:

To Install SSL and Intermediate Certificates

Copy your SSL certificate file and the certificate bundle file to your Apache server. You should already have a key file on the server from when you generated your certificate request. You should copy the files to their respective folders found in Apache’s configuration folder /etc/apache2/

/etc/apache2/ssl.crt/

/etc/apache2/ssl.csr/

/etc/apache2/ssl.key/

Install Certificate From YaST

  • Startup yast from the terminal. I recommend this because once you select the certificate key you’ll have to enter the pass-phrase. If you use the GUI tool then it would freeze un
  • Goto Network Services -> HTTP Server
  • Create A new vHost for your domain and select the server key and certificate
  • Edit configuration file and add the following below the SSLCertificateKeyFile

SSLCertificateChainFile /etc/apache2/ssl.crt/gd_bundle.crt

Restart Apache.

Install Certificate From Terminal

Modify you apache configuration host/vhost file. You’ll need to tell apache where your certificate key is and your certificate

<VirtualHost *:443>

DocumentRoot /srv/www/htdocs/

ServerName example.com

ServerAdmin info@example.com

srv/www/htdocs/>

AllowOverride All

Order allow,deny

Allow from all

</Directory>

<IfDefine SSL>

SSLCertificateFile /etc/apache2/ssl.crt/example.com.crt

SSLCertificateKeyFile /etc/apache2/ssl.key/ example.com.key

SSLCertificateChainFile /etc/apache2/ssl.crt/gd_bundle.crt

SSLEngine on

</IfDefine>

</VirtualHost>

By-pass pass-phrase dialog on Startup

After restarting apache, you’ll notice a prompt for a your pass-phrase. If you used the GUI tool, the YaST process may freeze as a result.

  1. Remove the encryption from the RSA private key (while keeping a backup copy of the original file):
    # cp server.key server.key.org
    # openssl rsa -in server.key.org -out server.key
  2. Make sure the server.key file is only readable by root:
    # chmod 400 server.key

Save your configuration file and restart Apache.

Force SSL/https using .htaccess and mod_rewrite

In certain scenarios you may want to force a secure connection to your web server. You can achieve this easily and flexibly with .htaccess and mod_rewrite.

  1. Make sure your Host’s AllowOverride is set to All in your vhost configuration file.
  2. Make sure mod_rewrite is enabled. You can do that using the following command

    # a2enmod rewrite

  3. Create a .htaccess file in your web-root folder /srv/www/htdocs/ and add the following content

    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

Resources

http://help.godaddy.com/topic/746/article/5269

http://help.godaddy.com/article/562

http://www.besthostratings.com/articles/force-ssl-htaccess.html

http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html

Note that this also works on OpenSuSE 11.1

Standard