Showing posts with label networking. Show all posts
Showing posts with label networking. Show all posts

Tuesday, October 7, 2008

Thinking out loud.

I saw this NetBook today,
http://www.ebuyer.com/product/150183

So I thought to myself; Would it not be more:

* Cost effective.
* Environmentally friendly.
* Safer (data safety).
* Accessible.

To consolidate a students, business worker or home user for that matter compute needs onto a home server.

Your home server will consolidate all your data saftly on ZFS which is setup to snap shot your VM's at the end of each week (Friday evening say..) so that if your VM of XP gets a virus or whatever, your protected. If your laptop gets lost, stolen or the HDD fails or you need to upgrade it. There is no need to move your data around.

Also, you could be in a airport or internet cafe or even at a friends house and you need access to *your* computer, then its just a matter of calling up FireFox and logging into your home server.

A example config would be something like as follows;

* At least 3 SATA disks to keep your data safe in a zfs mirror with a hot spare.
* One of them nice new AMD quad cores that are so cheap these days.
* A low end Tyan MB with a few SATA ports and a nforce chipset such as a Tomcat n3400B (S2925-E).
* At least 4GB of Kingston value RAM, its dead cheap so why not !

You can grab most of the above hardware from ebuyer.co.uk and scan.co.uk or newegg.com in the US.

In regards to software configuration;

* Fresh install of Sun xVM server. - http://xvmserver.org
* A VM of Windows XP SP3 as you prob use that.
* A VM of SXCE setup with SSGD/VDI. - http://www.opensolaris.org

You can grab VDI from; http://www.sun.com/software/vdi/
SSGD from; http://www.sun.com/software/products/sgd

All of the above software is free.

I will follow this blog up with another that outlines the compleate setup of the above.

~
Edward.

Sunday, April 13, 2008

SXCE and Basic Networking.

For this instalment we are going to look into basic network knowledge in Solaris.
There are two ways to configure networking in Solaris, the first of which is a tool known as Network Auto-Magic or nwam(1).
By running:

$svcs -x network/physical:nwam

Provides the status if nwam is online or not, Network Auto-Magic is a project to simplify and automate network configuration on Solaris. Basically autoconfigures your NIC from your local DHCP/DNS server.

However, It is some times necessary configure a static IP or provide DNS infomation manually. To to manually configure networking in Solaris one must disable this service in favour of the default by doing the following:

$su
_root-password_
#/bin/zsh
#svcadm enable network/physical:default

Things you should keep at hand are:
* IP Address of the System
* Hostname
* Subnet Files: /etc/netmasks
* Default gateway
* DNS Server list. Files: /etc/nsswitch.conf *and* /etc/resolv.conf

Then you can configure each of the above as follows:

Static:

* IP Address (192.168.1.3) and Hostname (solarisrox)
#echo '192.168.1.3 solarisrox' >> /etc/hosts; echo 'solarisrox' > /etc/hostname.hme0"

N.B. Assuming that hme0 was the interface you wanted to use.
Hint: Can be found with ifconfig -a
*Default gateway (192.168.1.1)
#echo 10.0.0.255 > /etc/defaultrouter

DHCP:

#echo "" > /etc/hostname.hme0 > /etc/dhcp.hme0 > /etc/defaultrouter
#echo "wait 15" >> /etc/dhcp.hme0

DNS:

First check /etc/nsswitch.conf for the line "hosts: dns files" is ok.
Then inside /etc/resolv.conf check to make sure it looks something like this:

search myisp.com
nameserver 1.2.3.4
nameserver 5.6.7.8

After all your configuration you can simply restart the network service as follows:

#svcadm restart network/physical:default

Comments are always welcome..

Regards,
Edward.