LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-04-2006, 02:03 AM   #46
towy71
Member
 
Registered: Oct 2003
Location: Carmarthen, Wales
Distribution: Ubuntu and whatever is new kid on the block
Posts: 70

Rep: Reputation: 18
Smile


Quote:
Originally Posted by crazytigger
-----8<-----
in windoze you will need to go run --> cmd and type "ipconfig /renew" for it to pick up the dhcp server without a reboot.

Personally i prefer to use static IP addresses on the machine as this would enable you to set up port fowarding more effectively - this is important if you need/want to use bittorrent or ftp servers on your linux box.
------>8-----
I didn't know that windows could do that, but then my only windows knowledge is from 98SE
I too prefer static addresses but just for speed and convenience suggested DHCP.
anyhoo, best of luck dogman2, do let us know how you get on
 
Old 05-04-2006, 09:46 PM   #47
crazytigger
Member
 
Registered: Sep 2004
Location: Brighton UK
Distribution: *buntu 7.10
Posts: 59

Rep: Reputation: 15
Yeh command line in windoze can do all sorts things.. ipconfig shows the current setup .. same as ifconfig in *nix and you can do things like "ipconfig /renew" to make it search for a dhcp server and "ipconfig /flushdns" to flush the local DNS cache... also the "route" command comes in useful when adding static routes to another network with your LAN..

Anywaz .. i hope dogman2 gets it together .. ive been using linux for 4 years now with an unsupported video card on a compaq laptop ,, (the IGP 320m (ATI) if you wanna know) and i keep using it because of the choice and freedom it gives me. Im not in to pirating software and the free alternatives seem to be more configurabe to use but they dont hold your hand like windoze does and thre is more choice.

I know what i want and i will tell any distro of *nix how to do it.

Last edited by crazytigger; 05-04-2006 at 09:50 PM.
 
Old 05-05-2006, 01:25 PM   #48
Dogman2
Member
 
Registered: Oct 2004
Location: Norfolk UK
Distribution: Mint 17.2
Posts: 68

Original Poster
Rep: Reputation: 19
Hello Again
How do I check the IP address of the router ? when I first connected it I typed the numbers 192.168.1.1 as this is what was on the installation instructions.
Where do I find the gateway and the DNS server?

If I ping the router all I get back is 'permission denied'

I getting out of depth.
 
Old 05-05-2006, 01:46 PM   #49
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
Quote:
Originally Posted by crazytigger
So, check the IP address of your router .. it'll be the same one you put in to access the configuration page.. such as 192.168.0.1 or 192.168.1.1.

You'll need to set up linux with an ip address of say 192.168.0.2 or 192.168.1.2 depending on which "network" the router is on .. ie the 192.168.0 network or the 192.168.1 network. the subnet mask will be 255.255.255.0

Your default gateway will need to be the router, as will your DNS server.

After youve set the IP address in linux, go to the console and ping the router .. ie .. "ping 192.168.0.1" if you get a reply you should be good to go. If you cant get on the internet then check the dns server is set as your router and the default gateway. a quick way to do this would be to type "ifconfig" from the terminal (you need to be root to do this on some distros)

He told you what it was already
 
Old 05-05-2006, 05:28 PM   #50
crazytigger
Member
 
Registered: Sep 2004
Location: Brighton UK
Distribution: *buntu 7.10
Posts: 59

Rep: Reputation: 15
Hum.. perhaps i wasnt clear enough.

The IP address of the router will be the same one you put in to access the routers configuration page and, no doubt the same on as per the instrusctions.You would have put something like http://192.168.1.1 and then logged in to the router.

Lets assume therefore that the routers IP is 192.168.1.1

On your linux box assign it the IP 192.168.1.100 (it could equally be 192.168.1.2 or 192.168.1.3 but if you choose a higher one there is less chance another machine on your network will have the same IP. I dont know how many machines you have on your network.

The subnet-mask will be 255.255.255.0

The default gateway will be 192.168.1.1 (assuming that is the IP of the router)

The DNS server will be 192.168.1.1
(assuming that is the IP of the router)

Once this is done you should be able to access the internet.

If not then you havent assigned linux the right IP address. Check it again.
 
Old 05-06-2006, 03:02 AM   #51
Dogman2
Member
 
Registered: Oct 2004
Location: Norfolk UK
Distribution: Mint 17.2
Posts: 68

Original Poster
Rep: Reputation: 19
Thanks crazytigger. I don't have a network as such only the one pc which I'm trying to set up. So the ip address i thought of would be 192.168.1.2 I cant find where to asgin the address to the gateway or dns server. I don't know where to look. There is a box which pops up asking for the host name and domanin name. Are they the same as my name provided by my ISP and the domanin name the same as my ISP ? When i have tried to ping the router the next line comes up 'permission denied'
 
Old 05-06-2006, 09:26 AM   #52
crazytigger
Member
 
Registered: Sep 2004
Location: Brighton UK
Distribution: *buntu 7.10
Posts: 59

Rep: Reputation: 15
Right. Im sure we can get this going dogman

First off you could try dropping to a console and (as root) do:

network-admin

It is possible that the right little program is installed to allow you to do this graphically.

If not then don't dispair.. we can enter the IP address manually like this as root: If you copy the text you can paste in a console using SHIFT+INSERT

ifconfig eth0 192.168.1.2 netmask 255.255.255.0

where eth0 is your network card. You can check this is right by using ifconfig on its own you should see eth0 on the left hand side with a whole load of stuff on the other including the MAC address and other useful stuff ..

We also need to add the fabled DEFAULT GATEWAY .. this is easy enough, but i just spent about half and hour remembering how .

as root in a console type (or copy & paste)

route add default gw 192.168.1.1

At this point lets see if you can ping the router.

ping 192.168.1.1

If you cant, and you get the permission denied then you need to go and find the firewall settings for suse and allow ICMP messages (or "ping" through) it will be that the firewall is stopping these and we didn't know about it before (im going back to my suse days here). There should be a nice page somewhere in KDE to do this but its been a while since i used it.

Now for the DNS or "nameserver" You can add this in a file called resolv.conf. Enter the text below in a console as ROOT.

gedit /etc/resolv.conf

If this doesn't work becasue you dont have gedit installed use

pico /etc/resolv.conf

You'll probably end up with a blank screen. At the top of this file we are going to put the name server address. Enter this:

nameserver 192.168.1.1

It maybe that there is a domain listed below this, this can be whatever you want it to be and is no way connected to your actual ISP and is not needed in any case.

Then save and exit the file. If you used pico you'll need to do CTRL+X and then press "Y" and then ENTER

Now, all being well you should be working.

best of luck and please post right back if there is anything you dont understand - hell ive got nothingbetter to do today ..

Oh ... there is one more thing.. im lead to belive that after a reboot it will forget the fact that you added the default gateway like we did.. now this is distro specific and im not sure where it is on suse, but there should be a file called interfaces in /etc/sysconfig/network-scripts/ where you can add all of the above in one go.. its just good to generate it in the correct way like we did above.

as root do

gedit /etc/sysconfig/network-scripts/ifcfg-eth0

there is a section (on mine at least) that looks like this:

# The primary network interface
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.0.1

auto eth0

Yours could be different from this as mine is actually in /etc/network/interfaces.

You could check http://openskills.info/infobox.php?ID=949

note you can add the gateway here to make the changes permanent. But you'll be using 192.168.1.1 and the network is 192.168.1.0. (perhaps this would have been a quicker way to do it from the beginning but those commands you learnt will help you later on)

Last edited by crazytigger; 05-06-2006 at 11:39 AM.
 
Old 05-06-2006, 02:12 PM   #53
Dogman2
Member
 
Registered: Oct 2004
Location: Norfolk UK
Distribution: Mint 17.2
Posts: 68

Original Poster
Rep: Reputation: 19
Hello carzytigger if you are reading this it means that everything was sucessful and I have now connected through the router. Thank You so much. I'll be back asking more questions once I've had a look at a few sites.
 
Old 05-07-2006, 08:33 AM   #54
crazytigger
Member
 
Registered: Sep 2004
Location: Brighton UK
Distribution: *buntu 7.10
Posts: 59

Rep: Reputation: 15
woooo! :D

Well thats great dogman2 im well pleased for you.

When i started using linux i got myself a little book and started writing what useful files and commands i found along the way. I now find it invaluable - its become a little disorganised over time and i plan to rewrite it but its possible that you would find a similar thing useful. Its impossible to just remember everything!

Also google will be your friend, especially now youve got the linux box on the net, youll be able to try suggestions you find out without rebooting to windoze or whatever you were doing before.

you may find http://www.er.uqam.ca/nobel/r10735/unixcomm.html useful - be prepared to do quite some reading about linux, but take it step by step, its just impossible to do everything all at once.

Im glad youve decided to stick with it! I hope you will be too

All the best mate...

CT
 
Old 05-08-2006, 12:38 AM   #55
crazytigger
Member
 
Registered: Sep 2004
Location: Brighton UK
Distribution: *buntu 7.10
Posts: 59

Rep: Reputation: 15
heh dogman... if the above sounded patronising i didnt mean it that way . im just trying to help !

post back soon bud.
 
Old 05-08-2006, 12:49 AM   #56
asif2k
Member
 
Registered: Mar 2006
Location: Texas
Distribution: Fedora Project
Posts: 79

Rep: Reputation: 15
dogman2


take a look at these sites.

distro quiz!
http://www.zegeniestudios.net/ldc/

distro watch!
http://distrowatch.com/dwres.php?resource=major


good luck!
 
Old 05-08-2006, 02:46 AM   #57
Dogman2
Member
 
Registered: Oct 2004
Location: Norfolk UK
Distribution: Mint 17.2
Posts: 68

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by crazytigger
heh dogman... if the above sounded patronising i didnt mean it that way . im just trying to help !

post back soon bud.
Not in the least, I've been trying to get a Linux system working satisfacorily enough for me to be able to get rid of windows for good. I fed with lost work after spending a few days on a project and not being able to recover it completely.
Its steep learning curve and most of the books which I have come across all seem to assume that the reader has some knowledege of Linux. Basically the only thing I know about Linux is the name, the rest is a mystery. I need someone to hold my hand and show me the way forward one step at a time.

Once I am more understanding of the system I'll be asking a lot questions.

Thanks for all the help of all those on this site.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Giving up! davemar Linux From Scratch 13 08-22-2005 04:51 PM
I'm giving up... eappell General 16 03-17-2005 02:11 PM
Not giving up... dowski01 LinuxQuestions.org Member Success Stories 4 09-01-2004 12:38 AM
Giving up arizona General 53 03-24-2004 12:57 AM
giving up Gordon Linux - Software 9 04-06-2003 05:26 PM


All times are GMT -5. The time now is 07:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration