Linux

Sun Solaris 10 - Creating File Systems

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:

Sun Solaris 10 - Installation Guide to Sun Solaris 10

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.

Sun Solaris 10 - Post Install Advanced Configurations

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

Sun Solaris 10 - Samba Installation and Setup

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.

How to modify the Path variable in Linux/Unix

To view what your current PATH variable is type the following at the command prompt:
# echo $PATH
This will output the PATH stored in the $PATH variable. If you simply wish to add an additional directory, simply do something like this:
# export PATH=$PATH:/the/directory/you/want/to/add
Then type echo $PATH to view the results and to make sure everything worked out. However, you should know that this is only temporarily set for the current terminal/instance you are logged into. If you want this path to always be set then you will want to edit the .bash_profile file which should be located in your home directory. Edit the .bash_profile with your favorite editor. For example:

#vi /home/myusername/.bash_profile

Find the line that states PATH=$PATH:$HOME/bin or something similar. And then just add whatever directory you want to have included in the path. For example:
PATH=$PATH:$HOME/bin:/usr/local/bin:/export/mycustomerapps

How to Tar a folder in Linux

Tar is a useful application to archive your folders/files to save for later, or to make a backup. Here are the commands you need to know how to Tar.

# tar -cvzf archive-name-you-want-to-use /rootofyour/folder/locationyouwanttoarchive

To untar this file you would use this command:

# tar -xvzf tar-filename.tar.gz

That's all you gotta do!

Tags:

Preparing a Ubuntu (or other distro) Web Server for Drupal

So I recently created a VMware application with Ubuntu to test some of my Drupal sites offline. You can easily install Ubuntu by downloading one of their Images, I recommend 8.04.4 LTS (Hardy Heron) as it comes with Php 5.2. Anything after Hardy Heron comes with PHP 5.3 which causes issues with Drupal 6. If you are using Drupal 7 or newer, than it probably wont matter. But as most of us our probably on Drupal 6, I thought I would mention this.

So just download the server version and run through the installation. It's pretty straitforward and at one point it will ask if you want to install optional services. Install the LAMP, OpenSSH, and anything else you will want. Now you should have a running server with a basic LAMP install running. You will want to edit a few things so that it plays nicely with Drupal.

Drupal uses a bit of memory, so let's increase this first. Edit your php.ini and my.cnf files.

# nano /etc/mysql/my.cnf

Search for max_allowed_packet, there will be two occurrences, increase the limit to whatever you see fit, I push mine to 128M.

# nano /etc/php5/apache2/php.ini Read more »


Linux - How to Install and Use Zip

With Ubuntu you can easily install Zip by issuing the following command:

# sudo apt-get install zip

Then to zip a folder do this:

# zip -9 -r archivename /folder/location

That's it!

Tags:

Ubuntu - How to setup SSH

To enable SSH you simply need to install openssh server. For Ubuntu do the following:

# sudo apt-get install openssh-server

It should work as is, but if you want to limit access you should edit the following file:

# nano /etc/ssh/sshd_config

Now from a PC or Mac use a SSH client and access your Ubuntu server.

Tags:

Syndicate content