LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-18-2007, 05:21 PM   #1
wicko
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Rep: Reputation: 0
Angry Want to Copy RH 7.2 Server Configuration on other 1


Hello,

I have a RedHat 7.2 server with 2.4.7-10 Kernel,
My friend was to configure it for me now he is gone abroad,
and i need to make another server with same settings and configurations, and packages,

Server 7.2 i have on hands is only text based.and running on an IBM Intellistation dual proccessor system.

Is there any way to get settings and extra packages or packages information from running server using ssh or any other network tool,to use or configure a newly installed RedHat 7.2 Machine.

Thanks in advance.

iam a newbie and really stucked at this point i have studied and googled alot stuff but nothing to make it simple.
 
Old 11-18-2007, 07:14 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by wicko View Post
I have a RedHat 7.2 server with 2.4.7-10 Kernel
Auch. You shouldn't be running RHL-7.n. It's been EOL'd years ago meaning you don't get any support, updates or security fixes. (If you have valid and compelling reasons to run RHL anyway I am interested to know).


Quote:
Originally Posted by wicko View Post
Is there any way to get settings and extra packages or packages information from running server using ssh or any other network tool,to use or configure a newly installed RedHat 7.2 Machine.
The package list you can extract it with 'rpm -qa' or look for /var/log/rpmpkgs if the "rpm" cronjob exists and ran a day ago and getting the configs can be done in two ways: tarball up /etc and usr/local/etc or use input like 'rpm -Va | grep etc/'.
 
Old 11-19-2007, 07:58 AM   #3
wicko
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Hello unSpawn!

your sugested commands

Quote:
The package list you can extract it with 'rpm -qa'
yes i can see all packages,

Quote:
or look for /var/log/rpmpkgs
Permissions Denied?

Quote:
if the "rpm" cronjob exists and ran a day ago and getting the configs can be done in two ways:
I am newbie with linux so please explain it in detail or with simple step by step if you could.

Quote:
tarball up /etc and usr/local/etc or use input like 'rpm -Va | grep etc/'.
root@ssh# rpm -Va | grep etc/
S.5....T c /etc/openldap/ldap.conf
.......T c /etc/yp.conf
S.5....T c /etc/printcap
S.5....T c /etc/xinetd.d/chargen
S.5....T c /etc/xinetd.d/chargen-udp
S.5....T c /etc/xinetd.d/daytime
S.5....T c /etc/xinetd.d/daytime-udp
S.5....T c /etc/xinetd.d/echo
S.5....T c /etc/xinetd.d/echo-udp
S.5....T c /etc/xinetd.d/time
S.5....T c /etc/xinetd.d/time-udp
S.5....T c /etc/squid/squid.conf
.......T c /etc/krb5.conf
S.5....T c /etc/krb.conf
S.5....T c /etc/named.conf
S.5....T c /etc/pam.d/system-auth
.......T c /etc/inittab
S.5....T c /etc/rc.d/rc.local
S.5....T c /etc/xinetd.d/sgi_fam
S.5....T c /etc/ldap.conf
S.5....T c /etc/mail/statistics
S.5..... c /etc/rndc.conf
S.5..... c /etc/rndc.key
S.5....T c /etc/ppp/chap-secrets
S.5....T c /etc/ppp/pap-secrets
S.5....T /etc/init.d/webmin

No idea what to at next to place these settings on other server.

Last edited by wicko; 11-19-2007 at 08:04 AM.
 
Old 11-19-2007, 01:06 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Try 'tar -cf /tmp/configs.tar `rpm -Va | grep etc/ | awk '{print $NF}'`'.

BTW, you really shouldn't be running RHL-7.n. It's been EOL'd years ago meaning you don't get any support, updates or security fixes. (If you have valid and compelling reasons to run RHL anyway I am interested to know).
 
Old 11-21-2007, 07:29 AM   #5
wicko
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Original Poster
Rep: Reputation: 0
unSpwan!

i am running a 60 users network on 7.2 with Satellite Downlink and its working like a charm for me. now i have to add one more same network in my city's other corner, thats why i want to make same RedHat 7.2 Server.

i just stoped using windows servers.

i am running 1st Linux server since 4 years and till today i have no problem with it, RedHat 7.2 never crashed like windows servers.

during last 4 years i was also using a windows server for another setup but all the time a big headeach errors, crashes, held, many bugs, also not a complete hold on Network Perameters.

so thats why i am now a bit femiliar with 7.2 so wana use it further not a metter its support is available or not but its available to me as it is and this can add RPMs and other softs also, so what kinda supports further we need.

i have a request if you really now how i can transfter one RH7.2 settings via ssh on other RH7.2 then what is the easy way please be kind and more specific and a line to explain the command functionality.

Thanks
 
Old 11-21-2007, 07:44 AM   #6
wicko
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Lets say:


System 1 ( Ready with RedHat 7.2 server )
System 2 (Just installed Redhat 7.2)

Now what command i have to use on -system 1
and what i have to do on -system 2

is there i need to install any extra package on -system 1

one very important thing -system 1 is running in text mode.

Thanks
 
Old 11-21-2007, 06:36 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If you have installed SSH then you have scp. With 'scp' you can copy files over. Here's an example of the tarball you made earlier on system1. Let's say it is called "/tmp/configs.tar". You need an unprivileged user (that is, not root) account on system2 (lets call it "wicko") and then you can: 'scp /tmp/configs.tar wicko@system2:/tmp'. If all went fine you have the file "/tmp/configs.tar" now on system2. See "man scp" for more examples.

On the point of using RHL 7.2 I'm not convinced: I don't see compelling reasons you need to run it. OTOH if you're convinced you *need* to run it please, please, please make sure you have hardened it, audited regularly and put *behind* a firewall. I run ancient RHL myself and I wouldn't pitch it to anyone as "a solution".
 
Old 11-21-2007, 06:55 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,404

Rep: Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783
The point of worry (as unSpawn indicated), is not whether 7.2 runs ok now or if there are 7.2 pkgs you can find, it's the fact that it hasn't had a (and will never have any more) security update(s) for several years. This means it's wide open to being cracked.
If at all possible, you should seriously look into a modern replacement. If you want to stay with RH, you've got 3 choices:

1. Official RH Enteprise, which you'll hacve to pay for, but comes with support from RH.
2. Centos: a free version of RHEL
3. RH Fedora Core : free, more bleeding edge than RHEL
 
  


Reply

Tags
clone, making, servers


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
How can I copy my Gnome desktop configuration to another machine? Io3 Linux - Desktop 3 10-31-2006 02:38 PM
Copy the configuration from one user to another one Infernox Slackware 15 10-21-2005 02:48 PM
Can I copy X configuration from one distro to another? glenn69 Linux - Newbie 1 10-24-2004 10:52 PM
How to copy a device (CD burner) configuration from another Linux installation? mwettach Linux - Newbie 7 07-31-2004 01:02 PM
Howto copy FC1 configuration to fresh FC2? TomF Fedora 2 06-20-2004 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:46 PM.

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
Open Source Consulting | Domain Registration