Author Topic: running 3G on Linux  (Read 6696 times)

0 Members and 1 Guest are viewing this topic.

Offline Toolless

  • Jr. Member
  • **
  • Posts: 21
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
running 3G on Linux
« on: April 16, 2010, 01:32:41 am »
Hi all this is my first post so a big hello to you all

I have just picked up a PC with Linux OS on
Now I have never used Linux in my life infract all I have used all my working life and at school was windows
I currently run win xp and have no intentions of upgrading to vista or 7
heard some feed back about Linux all good of coerce

I have very basic need for a PC in modern day standards which are
Word processor with spell checker
Arts package
Internet
And use of USB hubs
And that just about it really

I have a black 3G USB dongle or mobile brodband if you would call it that
And obversely I need this and this only to connect to the Internet

I have locked at the FAQ and read the report about 3G on Linux (so no need to post a link thanks)
And dont  rely understand the instructions as I have no knowledge of how to operate this OS
Mind you this could all be irrelevant coz when I plug my 3G stick in the hub nothing happens the blue light on the stick comes on to say I have power but nothing happens on the screen to say Linux has not read the 3G stick

I have been told you can download a little program to make this work on linux but its only a story

Any help please
Thanks Toolless

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18210
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: running 3G on Linux
« Reply #1 on: April 16, 2010, 02:46:40 am »
Can you tell us a little more about the PC, ie. is it a Netbook?, Make and Model?... and what is the Linux distro (version) you are using (eg. Ubuntu 9.10, Linpus Lite etc.)... and the Make, Model and Provider of the 3G Dongle (eg. HUAWEI E122 Vodafone).

If you are unsure of the Linux distro you are using... open a terminal and type:
Code: [Select]
cat /etc/issue
and hit enter.

Also in a terminal type:
Code: [Select]
uname -a
and hit enter

and with the Dongle plugged into a USB port
in a terminal type:
Code: [Select]
lsusb
and hit enter

If you post back the results of those 3 commands, We will try to take you step-by-step through the installation.
« Last Edit: April 16, 2010, 07:26:42 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Toolless

  • Jr. Member
  • **
  • Posts: 21
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: running 3G on Linux
« Reply #2 on: April 17, 2010, 01:24:51 am »
Hi

the PC is a HPinvent
1GB CPU, pentuim 3 & phonix Bios

The OS is Ubuntu and that all I know as it flashes on the screen when loading
I dont know how to bring up the dos promp or terminal on this system as I dont know my way around

My 3G dongle is a black Huawei modem
And that is all I can tell you as the print has warn off the device

Offline Mad Penguin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1420
  • Karma: 10018
  • Gender: Male
    • View Profile
    • Linux in the UK
    • Awards
Re: running 3G on Linux
« Reply #3 on: April 17, 2010, 02:09:22 am »
Mmm... Pentium 3 ... just be aware it's going to be slow compared to a more recent machine ...

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18210
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: running 3G on Linux
« Reply #4 on: April 17, 2010, 02:48:33 am »
OK... to open a terminal in Ubuntu... look at the bar at the top of your screen, click Applications, then Accessories, then Terminal.

Now in the terminal type:
Code: [Select]
uname -a
and hit enter

and with the Dongle plugged into a USB port
in a terminal type:
Code: [Select]
lsusb
and hit enter

and can you post back the results of those 2 commands.
I can get the model of the dongle from the results of the lsusb command.
« Last Edit: April 17, 2010, 03:24:13 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Toolless

  • Jr. Member
  • **
  • Posts: 21
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: running 3G on Linux
« Reply #5 on: April 18, 2010, 01:50:19 am »


Hope this one works

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18210
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: running 3G on Linux
« Reply #6 on: April 18, 2010, 05:07:59 am »
You typed i susb ... I need you to type lsusb ... (that's LSUSB in lowercase, it MUST be in lowercase, and without spaces)

You also seem to have tried to install iprint but it didn't install (because you had no internet connection), which is good as you don't need it, try not to get ahead of us... if a command doesn't work, just come back and tell us :)

As a point of interest you appear to be running Ubuntu 8.04 (Hardy Heron)

The screenshot was helpful though.

WHAT I NEED YOU TO DO -

With the modem plugged in... Open a terminal and type:
Code: [Select]
lsusb
and hit enter... and post the output back here  (lists attached usb devices)

still in the terminal type:
Code: [Select]
cat /etc/issue
and hit enter... and post the output back here  (outputs distro and version)

Is there any way you can get this PC connected to the internet, such as an ethernet cable to a router?
or are you using another PC to connect and post here?

Also, who is the dongle from? (Orange/Vodafone/3/O2/T-Mobile)

If you CAN connect to the internet, can you also try this command... in a terminal type:
Code: [Select]
sudo apt-get install usb-modeswitch
and hit enter... and post the output back here  (installs usb mode switch tool)
« Last Edit: April 18, 2010, 06:50:43 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Toolless

  • Jr. Member
  • **
  • Posts: 21
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: running 3G on Linux
« Reply #7 on: April 19, 2010, 02:22:58 am »

hi

no sorry i only have 3 mobile internet and its on my win xp computer/this one
the Linux comp will have to weight untill i have internet on it to use it
The usb hub dose work on it as my memory stick dose



many thanks
Toolless

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18210
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: running 3G on Linux
« Reply #8 on: April 19, 2010, 04:46:41 am »
As I see it you have 2 options... Download a newer version of Ubuntu, burn it to a CD/DVD and install it (very easy), or we can carry on setting the modem up... A newer version of Ubuntu would set the modem up for you.

Personally this would be the way I would go, if you want to get Ubuntu 10.04 (Lucid Lynx) beta2, you can get it from here:
http://releases.ubuntu.com/lucid/ubuntu-10.04-beta2-desktop-i386.iso

===================================================
If you want to carry on trying to get the modem working on 8.04... Carry on from here

Can you download these 3 files onto your Windows PC, then transfer them to the Linux PC and put them in your home folder.

(do the following without the USB dongle plugged in, and install them in the correct order)

You MUST be VERY CAREFUL to enter the commands EXACTLY as typed here... the reason I say this is because you mistyped one of the commands again :)
it may be best to copy and paste them into a text file, then copy and paste them into the terminal

If ANY one of these doesn't install properly, just stop and post back the errors, there is no point in trying to continue with the next part.

1) Download this file, and copy it to the Linux PC:
http://ftp.uk.debian.org/debian/pool/main/libu/libusb/libusb-0.1-4_0.1.12-14_i386.deb
On the Linux PC, double-click this file to install

2) Download this file, and copy it to the Linux PC:
http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-1.1.2.tar.bz2
Put this file in your home directory, then open a terminal type:
Code: [Select]
cd ~
tar -xvjf usb-modeswitch-1.1.2.tar.bz2
cd ~/usb-modeswitch-1.1.2
sudo make install
remember to hit enter after each line

3) Download this file, and copy it to the Linux PC:
http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-20100418.tar.bz2
Put this file in your home directory, then open a terminal type:
Code: [Select]
cd ~
tar -xvjf usb-modeswitch-data-20100418.tar.bz2
cd ~/usb-modeswitch-data-20100418
sudo make install
remember to hit enter after each line

Now, reboot the PC

Once you are back at the desktop, insert the USB dongle... it should now be detected as a Modem, and not a Storage device.

Hopefully your system will load the drivers and you should be able to configure it in:
System>Preferences>Network Connections>Mobile Broadband>Add

If any of this doesn't work, post back here with any error messages.
« Last Edit: April 19, 2010, 04:53:45 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Toolless

  • Jr. Member
  • **
  • Posts: 21
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: running 3G on Linux
« Reply #9 on: April 21, 2010, 02:26:51 am »
Hi
I was very tempted to go for your first link but it was about 600 700MB downloaded program so I decided to pass as I cant afford the download on my 3GB/month limit
And im not keen on large size programers and OS
As it just takes up more disk space; uses more memory and slows processor down
I Have been told there is a Linux compact version that as I have been told is 'fairly nippy on a 38/ 486'
So if I was to download I would rather go for a smaller size OS
And I would imagine if I was to use it I  would need the added on downloads listed above anyway

I tried your second option please see photos below but had no luck installing
Hope you can spot my fault
As I cant photo all the terminal text avalible as theres so much

Many Thanks
Toolless

___________________
PS
Tried to post last night but site seemed to be down









Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18210
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: running 3G on Linux
« Reply #10 on: April 21, 2010, 03:28:57 am »
OK... new EASIER installation intructions (I know these work, I've tested them on my PC), I need you to download 3 more small files.

IMPORTANT - These MUST be installed in the correct order

1) First we need to uninstall 2 of the things you just installed, (hopefully you haven't deleted anything from your home directory yet) so open a terminal and type:
Code: [Select]
cd ~/usb-modeswitch-data-20100418
sudo make uninstall
cd ~/usb-modeswitch-1.1.2
sudo make uninstall
Remembering to hit 'Enter' after each line.

If you have deleted the stuff from your home directory... just do steps 2 and 3 from my last post, but change sudo make install to sudo make uninstall in BOTH instances.

2) Download this file:
http://ftp.uk.debian.org/debian/pool/main/u/usb-modeswitch-data/usb-modeswitch-data_20100322-2_all.deb
Double-click this file... wait for a message Status: All dependencies are satisfied... if you get that message, Click Install package... If you get anything other than All dependencies are satisfied, DO NOT INSTALL... post the error message back here.

3) Download this file:
http://ftp.uk.debian.org/debian/pool/main/u/usb-modeswitch/usb-modeswitch_1.1.1-1_i386.deb
Double-click this file... wait for a message Status: All dependencies are satisfied... if you get that message, Click Install Package... If you get anything other than All dependencies are satisfied, DO NOT INSTALL... post the error message back here.

4) Download this file:
http://gr.archive.ubuntu.com/ubuntu/pool/universe/g/gnome-ppp/gnome-ppp_0.3.23-1_i386.deb
Double-click this file... wait for a message Status: All dependencies are satisfied... if you get that message, Click Install Package... If you get anything other than All dependencies are satisfied, DO NOT INSTALL... post the error message back here.

If they ALL installed WITHOUT errors, Reboot

Now the mode-switcher should now be active... Plug in your USB Dongle, it will now be detected as a Modem.

Now from the toolbar at the top of your screen, open:
Applications > Internet > GNOME PPP
Click Setup, and change the Type: to USB Modem
Click Detect
you 'might' have to take the tick out of Wait for dialtone
Click Close

Enter the Username, Password, and Phone number supplied by your provider... Click Connect

I know this all seems complicated, but I assure you Linux isn't always like this... If you had a working internet connection (through a cable to a router) this would be VERY easy. :)

BTW, if you get a 'small' Linux distro, you would probably have the same problems as you are having now, as the 'light' distros tend to have half of the tools for easing hardware installation 'trimmed' out... that's 'how' they are small... they do tend to be faster once set up though.
« Last Edit: April 21, 2010, 05:13:15 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Toolless

  • Jr. Member
  • **
  • Posts: 21
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: running 3G on Linux
« Reply #11 on: April 22, 2010, 01:50:12 am »
Hi
I downloaded the new edition of Ubuntu that you posted above from a mates house and copied to CD
Tried opening it from my Linux computer and it could not read the disk
Tried booting it from CD when starting computer as it seemed to be over written by linux itself
Then tried booting it from CD on a different computer and my win xp computer also (2) (the one im on now)
It booted from CD (with the linux brown/red page with icon on bottom of page) and then hang for a while then I got an 'I/0 error' box
Error reading boot CD
Now I load win xp and open the CD rom drive and windows now reads the Linux CD
I tell it to install Linux outside of windows and it askes me if I need assistance booting
I click yes and it installes a little installer program for me then I reboot and boot from CD and hay presto Linux has booted and I install OS
Seems to be a problem with this OS as with out opening it from windows and installing a program in its self from there it would never of booted
Yes OS can read the dongle
But that all I have time for tonight thanks
I Cant undersand why I cant upgade my Buntu 8 -10 withing the OS itself how it cant read disk and why it wont boot propoly

I still wish at some point to go ahead with the compact version of Linux which means downloading the above
I have tried loading the files listed above and failed due to an internet conection needed
Please see below

Many Thanks
Toolless







Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18210
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: running 3G on Linux
« Reply #12 on: April 22, 2010, 02:29:33 am »
So are you running 10.04 now?, or 8.04 still?

If you are running 10.04....

On the bar at the top of your screen, select: System > Preferences > Network Connections
Select the Mobile Broadband tab, and select Add... and it will walk you through the connection setup.

If you can't find Network Connections in the Menu's... open a terminal and type:
Quote
nm-connection-editor
hit enter, and that will start it.

=====================================================

If you are still running 8.04....

Can you try to install usb-modeswitch_1.1.1-1_i386.deb again, but after double-clicking the file and the package manager opens... look for Status: Requires the installation of 2 packages... Click on the Details button, and let me know what it says it wants, and I'll get you the download links for them, and post installation instructions.

You COULD try 'borrow' the CD drive from your windows PC, put it in your Linux PC... install 10.04, then swap the CD drives back again.
« Last Edit: April 22, 2010, 03:08:22 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Toolless

  • Jr. Member
  • **
  • Posts: 21
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: running 3G on Linux
« Reply #13 on: April 22, 2010, 11:35:00 am »
Bad news with the new Linux edion
It can read 3 but has an error code





And I can do any more at the moment has I cant even access the task bar I can even close the machine down


Offline Toolless

  • Jr. Member
  • **
  • Posts: 21
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: running 3G on Linux
« Reply #14 on: April 22, 2010, 11:38:29 am »
And I cant do any more at the moment as I cant even access the task bar I cant even close the machine down




 


SimplePortal 2.3.3 © 2008-2010, SimplePortal