LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   DSL Modem + Printer probs (https://www.linuxquestions.org/questions/linux-hardware-18/dsl-modem-printer-probs-580493/)

viking1au 08-28-2007 02:46 PM

DSL Modem + Printer probs
 
Just installed Ubuntu 7.0.4.on new slave hard drive on system. This was easier than I thought. Ubuntu took care of the dual boot issues. Problem is, I can not connect to the 'net to try for updates etc + a few extras, like divx codecs so I can play avi files. Both printers are dead, although Ubuntu seems to recognise one of them, indeed, printed a test page from the live disk, prior to installation; now it doesn't want to know.
Prime thing first: the modem is a Seimens Speedstream 4200 (DSL/ADSL)) which connects to the machine either via USB, or Ethernet cable. I use the latter.

Brian1 08-28-2007 04:23 PM

Not knowing the setup is the connection to the modem when connected to machine is it a static or dynamic setup?

As for printer check this site to see if it will work under linux and what driver modules it uses. http://www.linux-foundation.org/en/O...SDocumentation

Have you used the cups server page to setup the printers. Goto 127.0.0.1:631 from a web browser to access it.

Brian

viking1au 08-28-2007 10:38 PM

Modem dynamic?
 
I think it is dynamic, i.e: It is in an "always connected to the 'net" state, as long as it has power.

viking1au 08-29-2007 12:00 AM

modem vital
 
Have had a look at sites mentioned; was getting nowhere fast, then found Brother printer site & downloaded driver, in Windows as I can't connect via Linux, and guess what? Windows can't read the file. so getting modem to work is vital first step.

tredegar 08-29-2007 07:01 AM

Your modem:
I just looked up your modem's manual (http://www.siemens.com/index.jsp?sdc...72700umc9dnsfp)
It is running a DHCP server, which should make life easy:
So to get connected to the internet, connect with an ethernet cable and try this in a terminal:
sudo ifdown eth0 (Bring the interface down in case it's already (badly) configured)
sudo dhclient eth0 (Ask your modem for an IP address)
Now you should be connected. If not, please post the output of ifconfig and cat /etc/network/interfaces

Your printer:
(K)ubuntu doesn't use cups quite like the other distros do. You cannot access it by http://localhost:631
You need to go to gnome's equivalent of KDE's K-> System Settings-> Printers,
Find and click the "Administrator mode" button, enter your password and then Add your printer

viking1au 08-29-2007 01:40 PM

Quote:

Originally Posted by tredegar (Post 2874471)
Your modem:
I just looked up your modem's manual (http://www.siemens.com/index.jsp?sdc...72700umc9dnsfp)
It is running a DHCP server, which should make life easy:
So to get connected to the internet, connect with an ethernet cable and try this in a terminal:
sudo ifdown eth0 (Bring the interface down in case it's already (badly) configured)
sudo dhclient eth0 (Ask your modem for an IP address)
Now you should be connected. If not, please post the output of ifconfig and cat /etc/network/interfaces

Your printer:
(K)ubuntu doesn't use cups quite like the other distros do. You cannot access it by http://localhost:631
You need to go to gnome's equivalent of KDE's K-> System Settings-> Printers,
Find and click the "Administrator mode" button, enter your password and then Add your printer

Hang on, I am a newbie, first time with Linux, and I do not program. (Nor intend to), so I do not at all understand all this sudo ifdown and sudo dhclient stuff. Can you elaborate please.

tredegar 08-30-2007 01:42 AM

Quote:

Hang on, I am a newbie, first time with Linux, and I do not program.
OK. Nobody is asking you to "program", just give some simple commands.;)

But this isn't difficult, and you'll have to get used to using a terminal if you are going to have any real fun with linux.

Go to Applications>Accessories>Terminal
And enter the commands I gave in bold above
When it asks for a password, give yours.

Note that you can copy text (eg the output of ifconfig) from the terminal just by highlighting it with your left mouse button.
Then middle-click to paste the copied text into, for example, the reply box in this message forum.
Of course you can also use highlight and then middle-click to copy the commands I gave above from your browswer to the terminal, then press Return to execute them and see what happens. This saves typing and making spelling mistakes.
Give it a go.:)

viking1au 08-30-2007 01:15 PM

Thanks, tried per your suggestion & got this:
Internet Systems Consortium DHCP client v3.0.4
Copyright 2004-2006 Internet Systems Consortium
For info please visit http://www.isc.org/sw/dhcp/

Stosifaddr: No such device.
eth0: Error while getting interface flags: no such device
Bind socket to interface: No such device
l@l-desktop~$

I should add: last night I found network settings, had a look, found ping & tried it. It sent 5 pings 100% o.k. --- It will not now.When I r. click on the top icon, it still tells me I am connected via a wired device. When I click on info re this, I now get a message: resource missing: Glade file.

viking1au 08-30-2007 01:47 PM

Just another update: Since I shut down Ubuntu, opened XP to send last message, then restarted in Ubuntu again, I find that in network settings, all the info is there again, with IP address that is nothing like mine, likewise for default routes etc etc.
The ping test is still dead.
Worth mentioning: I am not sure if I took the 0 in eth0 as a zero, or upper case O. This is something they need to "design out" to eliminate these potentials for error.

tredegar 09-03-2007 11:49 AM

Sorry for the delay, been too busy to get back here.
Quote:

I am not sure if I took the 0 in eth0 as a zero, or upper case O. This is something they need to "design out" to eliminate these potentials for error.
It's eth0 as in e t h zero
It doesn't need "designing out" as it works well, and is logical when you also have an eth1 eth2 etc, but I get your point!
This is one of the reasons I suggested "copy & paste" - which you can still do if to copy to a text file, and save that to a USB stick or similar (maybe you have a FAT32 partition - these are very useful for transferring data between operating systems).
If you are using "eth-Oh", maybe that is why you are getting "no such device".
Please try the commands given in post #5 again and post the output of ifconfig and cat /etc/network/interfaces (copy & paste, or you will go mad writing it all down, and may make mistakes).

It is easier for me to fix your problems by editing files than by saying "click this" & "click that", because by reading the files and the outputs you list, I am (usually) able to work out what is wrong, and what needs to be done to make it all work. Pointy-clicky is (usually) fine when I am sat at your computer, which I am not, and don't forget you may be using a window manager which is different from mine (I use KDE) and so your whole visual interface may look and behave completely differently from mine. Eg when you refer to "Network Settings", I am thinking WTF is that?
Files are files though.

One last point, please stop emailing me - I get an automatic notfication of additions to threads I have responed to, so it is not necessary. All I need is the time to read my emails from LQ, and then the time to get back here ;).

viking1au 09-04-2007 01:56 PM

real fun time.
 
Boy! What a fun time! I did all you asked, saved to a fat 32 portion of my other hard drive, but before posting, had a look at it. I saved in Open Office, Word, which I thought would open o.k. in MS Word. When I had a look, you would not believe the garbage I got.! -- Went back to Ubuntu, printed out info on the (working) Canon BJC 265 SP. Is it o.k. to scan these prints & e-mail them to you? Regards.

tredegar 09-04-2007 04:10 PM

Quote:

I saved in Open Office, Word, which I thought would open o.k. in MS Word.
(tredegar sighs & takes a deep breath,)
It's not OK to use a wordprocessor for these files. You need a text editor.
Wordprocessors are concerned with paragraphs, fonts, italics, tables, images, whatever. You need a text editor - which does just text: Characters, with no formatting whatsoever, apart from line breaks. System files do not want or need any fancy formatting, they are just characters that spell out text. They tell the operating system (linux) what to do in both machine and human readable form. It is wonderfully simple (eventually, you'll see the light and understand. Trust me on this one :))
You haven't told me what your window manager is (maybe you could say). I use KDE, so kate or kwrite are my preferred GUI text editors, and from the command line (terminal) I use vi or nano. If you are using gnome, there'll be something similar.

Quote:

When I had a look, you would not believe the garbage I got.!
I do believe it, see above: you need to use a text editor.

Quote:

Is it o.k. to scan these prints & e-mail them to you?
No. It's not OK e-mail them to me because nobody searching for and then reading this thread later would be able to follow what we are doing.
You have a little homework to do before we can progress:

You need to find yourself a very simple text editor. It'll be somewhere in the menus of your window manager (probably under "Utilities" or similar). Learn to use it. The GUI editors are mostly intuitive, but from the terminal there is vi which needs a very short tutorial (google it, and learn the very basics (insert, append, delete, save, quit) - this basic knowledge will get you out of many awkward problems in the future).

Once you have made friends with a text (as opposed to wordprocessing) editor you'll be able to copy & paste, and save (to your FAT32 partition) and post and not see garbage.

This is a little hurdle you need to jump before we can move on. Do your homework and you'll jump it.

viking1au 09-04-2007 11:16 PM

re text etc
 
O.K. - Ubuntu uses Gnome. Apart from Tomboy notes, I think there is a text editor in there somewhere, remember, this is my first "hands on" with anything Linux. Once I get past this hurdle, I am sure things will fall into place. --- I have a memory stick but Linux does not recognise it. It wants to download a driver, which at present, it can,t.

viking1au 09-04-2007 11:36 PM

Try this.- Should be both files. - Regards.
 
laurence@laurence-desktop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:18:F3:FD:94:D2
inet addr:220.238.182.43 Bcast:220.238.182.255 Mask:255.255.255.0
inet6 addr: fe80::218:f3ff:fefd:94d2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3348 (3.2 KiB) TX bytes:4729 (4.6 KiB)
Interrupt:21 Base address:0xb400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 b) TX bytes:100 (100.0 b)

laurence@laurence-desktop:~$
laurence@laurence-desktop:~$ cat/etc/network/interfaces
bash: cat/etc/network/interfaces: No such file or directory
laurence@laurence-desktop:~$

viking1au 09-04-2007 11:41 PM

try again, without the smiley face.
 
Quote:

Originally Posted by viking1au (Post 2881539)
laurence@laurence-desktop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:18:F3:FD:94:D2
inet addr:220.238.182.43 Bcast:220.238.182.255 Mask:255.255.255.0
inet6 addr: fe80::218:f3ff:fefd:94d2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3348 (3.2 KiB) TX bytes:4729 (4.6 KiB)
Interrupt:21 Base address:0xb400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 b) TX bytes:100 (100.0 b)

laurence@laurence-desktop:~$
laurence@laurence-desktop:~$ cat/etc/network/interfaces
bash: cat/etc/network/interfaces: No such file or directory
laurence@laurence-desktop:~$

Now it is telling me the message is too short, lengthen it before posting. Basically a repeat of previous, but without the smiley that obstructed some text. Regards.


All times are GMT -5. The time now is 05:08 AM.