Submitted by jbellendir on Sun, 01/06/2013 - 04:25
This guide shows you how to add a new hard drive to your Sun Solaris system. First add your hard drive physically in your server and then start it up. After your system has finished loading, go ahead and login to the system.
At the terminal type the following three commands:
# drvconfig
This takes your devices and applies ownership and permission changes to them.
# disks
This will create entries in your /dev/ directory for hard disks attached to your system
# format
This will launch the disk partitioning and maintenance utility and you should be able to see your new drive that you just installed.
After you run the format tool, you should see a list of the installed hard drives and their names. You should have some output that looks like this:
Submitted by jbellendir on Sun, 01/06/2013 - 04:24
INTRODUCTION
Sun Solaris 10 is VERY different from previous versions of the operating system. It makes use of its new Service Management Facility. This software runs all processes and helps to control them and their dependencies as well as whether or not they need to be started when the server starts.
The main two commands you need to remember are svcadm and svcs
SVCS
This is used to display what processes and software are in online, offline, and maintenance mode. This can be helpful if you are trying to troubleshoot something and you are noticing things not working quite right. For example, if you are installing apache for the first time and your web server is not displaying. A quick check to find apache in maintenance mode would reveal you have some problem with your configuration.
To display all currently enabled and disabled services type either:
# svcs
or
# svcs -a
Submitted by jbellendir on Sun, 01/06/2013 - 04:24
INTRODUCTION
This tutorial assumes you have some basic knowledge of how to use Unix and/or Linux and you have already installed and setup your Sun Solaris server. If you have not, please check my other tutorials on setting up a Sun Solaris server and come back to this tutorial. I will be right here waiting for you!
Okay let’s get started, and as always we are assuming you have installed and have pkg-get working with blastwave set as your mirror site.
MYSQL
Let’s take a look at the available packages to install first.
# pkg-get –a | grep mysql
This should output a good list of packages. I am going to install mysql 5 for this tutorial.
# pkg-get install mysql5
This should install several packages that mysql depends on. So let this run for a while, it might take a while depending on your internet connection. Go ahead and select “y” to all questions.
Submitted by jbellendir on Sun, 01/06/2013 - 04:22
The Install Process
I will be very detailed on the install process and explain each aspect as if you are new to unix. Please feel free to skim through this section if you have previously installed Unix or Linux.
You will need to first go to Sun’s website and download the 5 Sun Solaris 10 x86 CDs or the Sun Solaris x86 DVD. For this tutorial we will be installing the x86 version of Sun Solaris 10. After you have downloaded these CDs or DVDs, burn a copy of them so that you can install them on your machine. Insert in the install disc and boot up your PC.
I will put screenshots when I feel they are necessary, otherwise I will just indicate which option to select. Feel free to select a different option that fits to your needs. For example, I will advise to select English as my default language, however you might want to have your system installed in a different language, please go ahead and select that option.
Submitted by jbellendir on Sun, 01/06/2013 - 04:21
So I am assuming you have successfully installed Sun Solaris 10 and you are able to login to the terminal or the GUI. This tutorial will go over all the basic settings and how to make changes. After you have mastered how to edit the basic settings of Sun Solaris 10 you can read my other articles on how to setup services such as apache, mysql, dns, and others.
THE TERMINAL
Let’s first launch the terminal. If you are using the JAVA GUI, click on the Launch button then navigate to Application -> Utilities -> Terminal. Or simply right click on the desktop area and select the option to launch the terminal from the pop up window. The terminal window should open and you should now be able to run commands. If you are new to Linux/Unix this is the most important tool in your arsenal. It allows you to pretty much do anything, it’s the Terminal. I usually use all of my Linux and Unix servers through an SSH client and always in terminal/command mode.
Submitted by jbellendir on Sun, 01/06/2013 - 04:20
PKG-GET
Let’s understand the pkg-get more thoroughly:
Let’s say we want to list all available packages to install, we would type this:
pkg-get –a
But there are a lot of packages so let’s just find packages having to do with apache.
pkg-get -a | grep apache
TOP
# pkg-get install top
CRON
Cron is laid out a little different from the Linux distros. Let’s say you want to edit the crontab file, you will want to edit the root’s crontab file, so access it here:
# vi /var/spool/cron/crontabs/root
COMPILE FROM SOURCE
HOW TO COMPILE A PROGRAM FROM SOURCE ON LINUX
PHP Compile from Source
bash-3.00# /usr/sfw/bin/gtar xzvf /Desktop/php-5.2.6.tar.gz
cd into the directory and now we want to run the configure script which will make our make file based upon our system settings,file locations, etc.
# ./configure
# make
# make install
Submitted by jbellendir on Sun, 01/06/2013 - 04:20
INTRODUCTION
This tutorial will walk you through a basic samba install and setup. You should further go through and setup security measures to ensure your server is secure and safe from attacks. We will be using a very basic samba configuration file for the purposes of this tutorial.
This tutorial assumes you have already installed pkg-get and have your mirror set to blastwave. If not, please check my other tutorial about how to set this up. We will not be downloading the source code and compiling in this tutorial.
Let’s open up our terminal and dive in!
# pkg-get install samba samba_client samba_lib
Let pkg-get do its magic (download the file and install it). Answer all the questions, for the most part and answer of “y” will do.