LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 12-03-2007, 09:37 AM   #1
DBA
LQ Newbie
 
Registered: Dec 2007
Posts: 6

Rep: Reputation: 0
Thumbs down Beginners guide to setting up a server


Hi Guys,

New on here and need some help setting up my Solaris 8 server....

Basically I'm a DBA by trade, hence the name, but started a new role and have been given the servers and all the kit as mine. However we moved offices and the IT Guys don't know how to set up the servers and aren't willing to learn so its left with me.

Any idea what I need and how I can do it?

I know I need the IP, Default Gateway and something else (can't remember which), which I'll get from the IT guys but once I've got that what files do I amend to get it up and running on the network.

Oh yes, before I forgot this is a weird one as I'm doing the changes whilst not plugged into the network as they won't give me access to the server room.

Thanks,
DBA
 
Old 12-03-2007, 09:45 AM   #2
DBA
LQ Newbie
 
Registered: Dec 2007
Posts: 6

Original Poster
Rep: Reputation: 0
By the way, in process of looking it up as I'm going to have to learn but haven't a clue where to start.

Thanks in advance
 
Old 12-04-2007, 08:12 AM   #3
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
I guess we should start with what do you need to do? just change the IP?

If it's just the IP you need then modify the following:
/etc/hosts #IP address goes here
/etc/defaultrouter #Gateway goes here
/etc/netmasks #Subnet mask here.

on Solaris 10 if it is running an early version you will need to modify /etc/inet/ipnodes to change the IP.
 
Old 12-04-2007, 08:46 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Add /etc/hostsname.<interface> to the list of files to modify if it currently contains a plain IP address instead of the hostname.

Also /etc/resolv.conf in case the DNS servers are different, /etc/defaultdomain in case this file is used by your naming service.
 
Old 12-04-2007, 10:02 AM   #5
DBA
LQ Newbie
 
Registered: Dec 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for your input guys....stupid server is hanging at the moment. Its an old E250 sun box.

Also it goes straight into the Solaris 8 gui (is that the right terminology??) and I'd rather use command line as I'm much better with that. Any ideas?

Funnily enough, just as I wrote this the server died
 
Old 12-04-2007, 10:24 AM   #6
DBA
LQ Newbie
 
Registered: Dec 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Right Machine has now officially died, on boot up it says

Drive not ready
Can't read disk label.
Can't open disk label package
Drive not ready

and it just hangs...
 
Old 12-04-2007, 10:26 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by DBA View Post
Thanks for your input guys....stupid server is hanging at the moment. Its an old E250 sun box.
Beware not to insult servers ...
Quote:
Also it goes straight into the Solaris 8 gui (is that the right terminology??)
You are presented the CDE login screen.
Quote:
and I'd rather use command line as I'm much better with that. Any ideas?
Either you log in in the graphic environment and open terminal emulator windows or you can just select a full screen text only session if you feel better with that.
Quote:
Funnily enough, just as I wrote this the server died
I warned you ;-)
 
Old 12-04-2007, 11:10 AM   #8
DBA
LQ Newbie
 
Registered: Dec 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks Jlliagre, I've given up on that server for the time being and moved to another one which is exactly the same...

However, this one is not doing anything when I turn it on either. Think its just running slow and I don't think it was shut down properly before the move because as soon as I plugged it on, it turned on.

How can I stop the CDE from coming up and get the full text screen version?

And if you could tell me how to shut this machine down cleanly that would be a bonus

Thanks,
 
Old 12-04-2007, 11:53 AM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by DBA View Post
However, this one is not doing anything when I turn it on either. Think its just running slow and I don't think it was shut down properly before the move because as soon as I plugged it on, it turned on.
That is an expected behavior.
Quote:
How can I stop the CDE from coming up and get the full text screen version?
Run these commands as root:
Code:
/usr/dt/bin/dtconfig -d
/usr/dt/bin/dtconfig -kill
Quote:
And if you could tell me how to shut this machine down cleanly that would be a bonus
Here is the way to properly shutdown and power off a Solaris machine:
Code:
init 5
 
Old 12-05-2007, 03:44 AM   #10
DBA
LQ Newbie
 
Registered: Dec 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Me again, with yet another question.

When I turn on the server it says

{0} ok

I then type in boot and it starts up fine, any way to stop this from happening?

Also, now this is the biggy, the root password I've been given for this box isn't correct. Any way I can get around this? I've got the correct password for the ORACLE user but not for root

Just so you know, don't have a boot CD (lost in office move) and its not plugged into the network yet so I can't hack it that way..... I wish we had a UNIX Admin

Last edited by DBA; 12-05-2007 at 04:20 AM.
 
Old 12-05-2007, 04:19 AM   #11
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by DBA View Post
When I turn on the server it says

{0} ok

I then type in boot and it starts up fine, any way to stop this from happening?
Yes, enable auto boot at the ok prompt:
Code:
setenv auto-boot? true
Quote:
Also, now this is the biggy, the root password I've been given for this box isn't correct. Any way I can get around this? I've got the correct password for the ORACLE user but not for root
Boot on a Solaris installation media, mount the / filesystem and remove root's password from the /etc/shadow file.

http://www.sunmanagers.org/pipermail...ry/004803.html
 
  


Reply



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
Beginners guide to Linux clustering? no_chickn Linux - Networking 1 03-15-2007 08:12 AM
LXer: Six things you didn't know about Linux: A beginners' guide LXer Syndicated Linux News 0 06-05-2006 06:03 AM
Debian Manual/Guide for beginners... BillyGalbreath Debian 4 12-22-2005 04:32 PM
shell programming guide for beginners ronsha Programming 3 11-12-2005 11:41 AM
Unofficial Fedora Core 2 Guide for Beginners linuxzouk Fedora 4 06-22-2004 11:17 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 02:20 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