Archive

Archive for the ‘How To’s’ Category

Howto Convert RAW Imanges to JPG/JPEG on Linux

May 13, 2010 1 comment

This post is been migrated to INITCRON.org


1. Install ufraw . On a ubuntu machine run the following command in a treminal,

sudo  apt-get install ufraw

2. cd to the directory which has raw images to be converted

3. Run the following command which will recursively traverse the directories underneath, find a RAW image with extension .CR2 and convert it into a .jpg image.

find . -type f -name *.CR2 -exec ufraw-batch –out-type=jpeg  ‘{}’ \;

Advertisements

How to Configure Reliance Huawei Modem with Ubuntu 10.4 LTS Lucid Lynx

May 8, 2010 14 comments

This post is been migrated to – INITCRON.org


This howto explains steps to make Ubuntu 10.4 LTS codenamed “Lucid Lynx” detect, configure and install Huawei EC1262 usb modem used by Reliance Netconenct Broadband+.  This should also apply to various other similar devices used by Tata Photon, Alcatel, Vodaphone etc. 3G connections.

Solution:

Install

  1. usb-modswitch
  2. usb-modswitch-data

Two ways to do it,

  • Automatic from package manager, (Recommended)

Paste this to terminal (Applications=> Accessories=> Terminal)

sudo apt-get install -yq usb-modeswitch usb-modeswitch-data

  • Manual

1. Open a Terminal from  Applications=> Accessories=> Terminal

2. Download and install usb-modeswitch-data for both 32bit and 64bit,

wget -c  http://mirrors.kernel.org/ubuntu/pool/universe/u/usb-modeswitch-data/usb-modeswitch-data_20100127-1_all.deb

dpkg -i  usb-modeswitch-data_20100127-1_all.deb

3. Download and install usb-modswitch 

For 64 bit :

wget  -c  http://mirrors.kernel.org/ubuntu/pool/universe/u/usb-modeswitch/usb-modeswitch_1.1.0-2_amd64.deb

dpkg -i usb-modeswitch_1.1.0-2_amd64.deb

For 32 bit

wget -c http://mirrors.kernel.org/ubuntu/pool/universe/u/usb-modeswitch/usb-modeswitch_1.1.0-2_i386.deb

dpkg -i usb-modeswitch_1.1.0-2_i386.deb

Once you install both packages,  you should have the modem detected and then use networkmanager to configure it.

What does usb-modswitch do and why is it necessary?

USB devices, specially high speed wireless WAN dongles such as the Huawei Modem that comes with Reliance NEtconect Broadband+ is only detected as USB storage device by Ubuntu and not as a Serial Modem in order for it to function as one.  usb mode switch does the work of switching the mode to modem from the storage only modem and make it awailable to be used as a internet modem device.

HowTo Setup VPN Server On Debian 5.0 Lenny

February 18, 2009 7 comments

This post is been migrated to – INITCRON.org

Setting Up VPN Server On Debian 5.0 Lenny

1. Install pptpd
apt-get install pptpd

2. Enable IP Forwarding

edit /etc/sysctl.conf, uncomment following
#net.ipv4.ip_forward=1

3. Configure pptpd
Edit /etc/pptpd.conf
Add local ip (server’s ip) and remote ips (range of ips which can be offered to clients)
e.g.
localip 10.0.0.1
remoteip 10.0.0.21-40,10.0.0.51

4. Configure DNS Servers
Edit /etc/ppp/pptpd-options
Add dns servers to ms-dns
e.g.
ms-dns 125.17.130.129
ms-dns 208.91.169.198

5. Add Users Authentication to /etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client    server    secret            IP addresses
test        pptpd    test            *

6. Restart pptp daemon
/etc/init.d/pptpd restart

7. Open  tcp  port  1723 on your router/firewall to be able to  connect to the vpn server from the world.

8.  Test Connection

Extract a .EXE file in Linux

February 9, 2009 8 comments

This post is been migrated to INITCRON.org

Two ways to extract a MS EXE/CAB archieves on linux,

1. cabextract <EXE_FILE>

2. unzip -a <EXE_FILE>

Setting other than Ubuntu as your primary boot option

October 15, 2008 Leave a comment

This post is been migrated to INITCRON.org

Open Terminal:
Applications → Accessories → Terminal

Type:
sudo nautilus
enter your password

Nautilus browser is opened….
Go to File System → boot → grub → menu.lst

This file will be opened with gedit.

You will see something like the picture below.

To change the default operating system, scroll almost towards the end until you see something like the picture below. (The menu of operating system.)

If you want for example Windows XP as your default operating system to boot, which is the 4th choice of on the menu, you will have to change the default operating system to boot. (Scroll to the beginning until you see something like the picture below.) If it is the 5th choice, then change it to number 5.
If you would like to change the seconds it takes to wait before it boots to the default operating system on the menu, change the timeout seconds.

Categories: How To's Tags: ,

Setting up Reliance USB Modem ( Huawei Technologies Co., Ltd. E620 USB Modem ) on Ubuntu 8.4 LTS “Hardy Heron”

August 15, 2008 33 comments

This post is been migrated to INITCRON.org

In this article I am going to provide you a simple and quick way to setup reliance data card on ubuntu hardy heron. Most of the tasks could be done with the script that I am attaching here.

1. Plugin Data Card

Running Setup Script From a Terminal2. Download setup script from here. Open a terminal and run it as ” bash reliance_setup.sh “. It will ask for your data card connection number. Provide it when it does and press enter. The script will install gnome-ppp gui package, wvdial, and modify the necessary system files to setup permissions to dial the reliance connection using ppp.

3. Once set up, the script will launch gnome-ppp dialer. You need to provide following,

Username

Password (same as usrname. the connection number)

Phone Number : #777

4. Click on “Setup” option from the dialer window. From modem tab, click on “Detect” button which will automatically detect your usb modem in most cases. If not, you’ll have to choose it manually from the dropdown menu. Choose speed as 115200 from the drop down list.

5. You could leave rest of the options as it is for now. Close the setup window and click on “Connect”. You are all ready to rock. A connection window will appear, from which you could click on “Log” to see what is happening while connection is progress.