Archive

Posts Tagged ‘howto’

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

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.

How to Install Fonts on Ubuntu Linux

December 21, 2007 1 comment

This post is been migrated to  –   INITCRON.org

1. Download the fonts and extract the zip/tar.gz

e.g. tar -xzvf FooFonts.tar.gz

2. Copy them to the fonts directory (/usr/share/fonts)

cp -r FooFonts /usr/share/fonts

3. cd /usr/share/fonts/FooFonts

4. Create fonts.scale and fonts.dir files

mkfontscale

mkfontdir

fc-cache

5. restart gdm (xserver)

/etc/init.d/gdm restart

Linux Training Session II

October 4, 2007 Leave a comment

This post is been migrated to  –  INITCRON.org

Session II : Linux Training – Session II – Basic Linux Commands (Download PDF)

Topics

  • Command Line Basics
    • Shell Variables
    • Executing Commands
    • Command sequences
    • Command history
    • Applying commands recursively
  • Working with directories
    • Listing contents of the working directory
    • Creating directories
    • Moving in directories
    • Removing directories
  • File Manipulations
    • Display file – more, less, cat
    • Copy file – cp
    • Rename/Move file – mv
    • Remove files – rm
    • Find file – find
    • Copying files between machines – scp, rsync

Reliance USB Data Card (Huawei) on Ubuntu HowTo

August 18, 2007 27 comments

This post is been migrated  to     INITCRON.org