Solved

I have installed red hat linux ver 6.1 kernel 2.2.12

Posted on 2000-02-17
8
235 Views
Last Modified: 2010-08-05
I desperatly need help understanding the red hat file system, as this is installed on a webserver with interent access and I do everything by telnet, I cannot use the GUI interface to do things, and the books do not tell you how to use command line stuff.
can anyone point me in the direction of how-to's that cover command line commands?
and configuration?
what I need asap is
where are the file(s) located that tell the OS what IP's to bring live on boot (so that I dont have to enter ifconfig manually every boot) what are the file(s) named?
how do I add users to my server? the adduser command wants additional parameters that I am unfamiliar with
how do I add domains? where are the files that under slackware would be in /etc/named/pz ?
can anyone out there help me, point me in the right direction?
my goal is to have my 8-10 users re added to the server, their domains live, and their palace servers installed... but to do this I need to have IP's live thru a reboot and I need to know how to configure things...
thank you in advance
Lorenkia
0
Comment
Question by:lorenkia
  • 3
  • 3
  • 2
8 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2533802
Setting up networking, routing, adding users, and just about everything else is best done with linuxconf. The GUI interface to it might be a bit easier to navigate around in than the tty version, but both interfaces have exactly the same capabilities.

It's not clear to me what you mean by "adding domains". If you mean modifying dns records to create/server virtual domains that's  best done by editing your zone files directly. If you don't run the dns server and are referring to the creation of virtual hosts, that's best done via Apache's NameVirtualHost/VirtualHost directives in the Apache conf file, or by IP aliasing in linuxconf and VirtualHosts in the Apache conf file.
0
 

Author Comment

by:lorenkia
ID: 2533818
what I need to know is, when I use linuxconf and put in the gateway, dns information, why it does not store this in a file, or if it does what file does it store it in, what happens is, if I have to reboot my server, the network wont come back up, I have to enter the ifconfig eth0 <IP> <netmask>
route add eth0 <IP>
route add default gw <IP>
manually in order for my machine to be reachable, now on slackware linux there were files in a couple of places I edited that were red on boot that brought up and routed all IP addresses entered there... is there similar files on red hat? its a pain to have to remotely reboot or shutdown the system only to have to drive down to the server barn because it does not come back up live
0
 
LVL 2

Accepted Solution

by:
Reinier earned 500 total points
ID: 2534555
All config files relevant to networking under RedHat:

RedHat specific:
/etc/sysconfig/network
/etc/sysconfig/static-routes
/etc/sysconfig/network-scripts/*
/etc/rc.d/init.d/network
/etc/rc.d/rc[345].d/S10network


And of course the standard files:
/etc/inet.conf
/etc/HOSTNAME
/etc/host*
/etc/services
....

The files pertaining to what "IP's to bring live on boot" are /etc/sysconfig/network-scripts/ifcfg-*

One of mine says:

DEVICE=eth0
USERCTL=no
ONBOOT=yes
BOOTPROTO=none
BROADCAST=192.168.0.255
NETWORK=192.168.0.0
NETMASK=255.255.255.0
IPADDR=192.168.0.1

Hope this answers your question.
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 2

Expert Comment

by:Reinier
ID: 2534570
Hummm, I should read the whole question first and then yank the submit button.

What "additional parameters" of adduser are you unfamiliar with?

/etc/named/pz --> /var/named/pzone or whatever location mentioned in /etc/named.conf.
0
 

Author Comment

by:lorenkia
ID: 2535569
Ok the adduser I am used to under slackware, you just typed adduser and it ran you thru a script of adding the user to group and so on (usually just hit enter for defaults)
in red hat it wants an argument or 3? so I just want to adduser so that they can telent and ftp in, have a /home/user dir and have web access and stuff, a shell account since my people dont use my server do dial in...
and I cant use the gui, and linuxconf while I did figure out how to access it from a webpage interface does not do well on a telnet session, and it does not seem to cover adding new users unless its in a place I missed?
0
 

Author Comment

by:lorenkia
ID: 2535712
ok I think I have figured out just how to use linuxconf to add users, and using it thru my browswer is really handy (grumbling reluctant slackware head) can you please tell me just what to put in the linuxconf networking or where I put in the entry so it brings eth0 live on boot? I found the file you mentioned and that is marked as "no" and it should be yes...but I am not sure which entry under the linuxconf thing I make it yes...

DEVICE="eth0"
BOOTPROTO="none"
IPADDR="206.184.65.190"
NETMASK="255.255.255.0"
GATEWAY=206.184.65.254
NS1=206.184.65.1
HOSTNAME=bonnie.ksv.com
DOMAIN=ksv.com
ONBOOT="no" <--- I want this to be yes
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2535854
Using linuxconf, you'd go to Config->Networking->Client tasks->Basic host Information->Adapter 1. That should show the IP information you've got set up and you mark the "Enabled", activate the changes and you're good-to-go on the next boot.
0
 
LVL 2

Expert Comment

by:Reinier
ID: 2535945
As an alternative, there is no problem with "hand" editing these files. Just like in the Good-Old-Days(TM) ;-)

There is a manpage for adduser. And if you need to automate commands that need user input, give a look at Expect: http://expect.nist.gov/
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Traceroute command on mac printing * * *** 10 83
Unix / Linux grid computing 5 157
Linux alternative boot CD? 28 113
Vmware tools installation in ubuntu 14.04 11 100
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question