10 Dec

Creating Self-Extracting sources files

The idea is pretty simple : Embed all your tgz's below a place holder and count the lines to get each tgz and pipe tail and tar to extract them to required folder.

Steps

Step I Make a tgz file with all the source you have
Assuming we call the folder to be source, so the compressed file must be source.tgz and the source might contain any extractable files, even simple shell scripts.
Lets assume that our source folder has a build.sh script which takes care of installing each and every source.

Step 2 Make an extractor script as below

21 Nov

Setting up a Secure Subversion Server with Apache in Ubuntu

If you have not read the Apache HTTPS, read it before you go through this post.

"Subversion (SVN) is a version control system initiated in 1999 by CollabNet Inc. It is used to maintain current and historical versions of files such as source code, web pages, and documentation. Its goal is to be a mostly-compatible successor to the widely used Concurrent Versions System (CVS)." -Wikipedia

Steps are pretty easy now:

Step 1:

14 Nov

How to secure apache with HTTPS

in

Hypertext Transfer Protocol Secure (HTTPS) = HTTP + SSL/TLS
Check list:
* apache sever
* openssl
Steps:

For Ubuntu 10.04/Apache 2.2.14 changes suggested oregonbob:here

Step 1 : Create a self-signed certificate.
This include : Generate a key, Signing and avoid password

openssl genrsa -des3 -out my.key 4096
openssl req -new -key my.key -out my.csr
openssl x509 -req -days 365 -in my.csr -signkey my.key -out my.crt

Skype 2.1 beta on Ubuntu 9.10

  1. Skype 2.1 beta an open source UI layer and works great one pulse audio in karmic.
  2.  
  3. Enable medibuntu :
  4.  
  5. sudo wget http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list --output-document=/etc/apt/sources.list.d/medibuntu.list && sudo apt-get -q update && sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring && sudo apt-get -q update
  6.  
  7. Install skype:
  8.  
  9. sudo aptitude install skype-static-oss skype
  10.  
  11. Done enjoy Skype!
07 Nov

Sound card not detected in ubuntu 9.10? Fix it!

Normally the Audio device: ATI Technologies Inc RS780 Azalia controller and RS* series break after an upgrade to karmic
This post is attached with a script, which will help to detect and active your sound card.{Assuming file saved as alsaconf}

sudo chmod a+x alsaconf
sudo ./alsaconf


This will list you the sound cards in your machine and you can active them by selecting and hitting a enter, logout and login to not the difference. Note to Unmute from sound properties.

07 Nov

Install FireFox 3.6 Namoroka for Karmic

Namoroka

After Firefox3.5 ("Shiretoko") is released, the next version of Firefox will be developed under the project name "Namoroka". The Firefox version number will be "3.6" and the Gecko Platform version number will be "1.9.2". The release will be shipped as a minor update to users, replacing Firefox 3.5 ("Shiretoko").

Namoroka is to be an incremental release, building upon the success of Firefox 3.5.
How to get it

sudo add-apt-repository ppa:ubuntu-mozilla-daily
sudo apt-get update
sudo apt-get install firefox-3.6

That's it!

02 Nov

Install Linux from HDD without burning from iso

Had a collection of GNU/Linux distros, had no time or money to buy DVD's :P so came up with this plan :

sudo mkdir /distro
sudo chmod `whoami`:`whoami`
cp MYLINUX.iso /distro/distro.iso
#EXTRACT Linux_kernel & Ram_disk TO /distro#

sudo nano /boot/grub/menu.lst

#ADD NEW ENTRY#
title GNU/Linux
root (hdX,X)
kernel /distro/Linux_kernel
initrd /distro/Ram_disk

After reboot in the menu select GNU/Linux

Distro and {Linux_kernel,Ram_disk} Pairs :

30 Oct

zsync | Update to Upgrade ubuntu

From alpha,beta or RC now you can update the *.iso image to upgrade the OS, instead of downloading the entire iso image
Very useful for people with low bandwidth
Feels very much similar to `wget -c`
zsync is the name, upgrade is the game.
Here is how to do that :


sudo aptitude install zsync
mv ubuntu-9.10-rc-desktop-i386.iso ubuntu-9.10-desktop-i386.iso
zync

Select the URL from the file attached

27 Oct

Unable to login after upgrade to karmic [Solved]

This happens when an upgrade is done without removing the non-free graphical drivers, normally Nvidia or ATI cards.

Actually before installing you should have disable those drivers, so its crashed now.

To fix you have three options :

1. To boot from live cd (karmic), backup what data you want and do a fresh install.

2. Follow this, open your terminal after booting from live cd and then :

type this cat /etc/fstab | grep "/ was on"

the o/p will be like : # / was on /dev/sda1 during installation

22 Oct

'pax' a powerful tool to read and write file archives and copy directory hierarchies

To install pax on ubuntu sudo apt-get install pax the manual is attached with this article.
"pax will read, write, and list the members of an archive file, and will copy directory hierarchies. pax operation is independent of the specific archive format, and supports a wide variety of different archive formats."

Here are few examples from the manual which exhibits the power of pax:

pax -w -f /dev/rst0 .

Copies the contents of the current directory to the device /dev/rst0

pax -v -f filename