<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="">
  <id>http://www.etuts.resourcesit.com/feed/atom/</id>
  <updated>2010-05-20T23:23:11Z</updated>
  <title type="text">EtutsResourcesIT</title>
  <subtitle type="text">Tutoriale - How To... - Solutii pentru diverse</subtitle>
  
  <link rel="alternate" href="http://www.etuts.resourcesit.com" />
  <rights type="text">Copyright 2010</rights>
  <generator uri="http://wordpress.org/" version="2.8.1">WordPress</generator>
      <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/etuts" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="etuts" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry>
    <id>http://www.etuts.resourcesit.com/?p=476</id>
    <title type="html"><![CDATA[RAID on Solaris]]></title>
    <updated>2010-05-20T23:22:37Z</updated>
    <published>2010-05-20T23:22:21Z</published>
    <author>
      <name>admin</name>
      <email>alexandru.ghionghios@gmail.com</email>
    </author>
    <link rel="replies" type="application/atom+xml" href="http://www.etuts.resourcesit.com/2010/05/21/raid-on-solaris/feed/" thr:count="0" />
    <link rel="alternate" href="http://www.etuts.resourcesit.com/2010/05/21/raid-on-solaris/" />
    <category scheme="http://www.etuts.resourcesit.com" term="Unix" />
    <summary type="html"><![CDATA[Commands used to create and manage RAID on Solaris:
metadb 
Create the state databases:
metadb -a -f c0d0s4 c0d0s0 c0d0s1

Creating a RAID 0 Volume:
df -h /export/home
/dev/dsk/c0d0s7 &#8230;.. mounted on: /export/home
metadb -a -f -c 2 c0d0s7 c0d0s7
Metainit command creates metadevices.
metainit -f d0 2 1 c0d0s7 c0d0s0
d0: Concat/Stripe is setup.
metastat &#8211; show the status of the metadevice
To grow the [...]]]></summary>
      <content type="html" xml:base="http://www.etuts.resourcesit.com/2010/05/21/raid-on-solaris/"><![CDATA[<p>Commands used to create and manage RAID on Solaris:</p>
<p>metadb </p>
<p>Create the state databases:</p>
<p>metadb -a -f c0d0s4 c0d0s0 c0d0s1<br />
<span id="more-476"></span><br />
Creating a RAID 0 Volume:</p>
<p>df -h /export/home<br />
/dev/dsk/c0d0s7 &#8230;.. mounted on: /export/home</p>
<p>metadb -a -f -c 2 c0d0s7 c0d0s7</p>
<p>Metainit command creates metadevices.</p>
<p>metainit -f d0 2 1 c0d0s7 c0d0s0<br />
d0: Concat/Stripe is setup.</p>
<p>metastat &#8211; show the status of the metadevice</p>
<p>To grow the filesystem:</p>
<p>growfs -M /export/home /dev/md/rdsk/d0</p>
]]></content>
        </entry>
    <entry>
    <id>http://www.etuts.resourcesit.com/?p=472</id>
    <title type="html"><![CDATA[Managing the NFS server on Solaris]]></title>
    <updated>2010-05-20T23:08:41Z</updated>
    <published>2010-05-20T23:06:49Z</published>
    <author>
      <name>admin</name>
      <email>alexandru.ghionghios@gmail.com</email>
    </author>
    <link rel="replies" type="application/atom+xml" href="http://www.etuts.resourcesit.com/2010/05/21/managing-the-nfs-server-on-solaris/feed/" thr:count="0" />
    <link rel="alternate" href="http://www.etuts.resourcesit.com/2010/05/21/managing-the-nfs-server-on-solaris/" />
    <category scheme="http://www.etuts.resourcesit.com" term="Linux" />
    <summary type="html"><![CDATA[This are the files you have to use for managing an NFS server on Solaris:
/etc/dfs/fstypes
/etc/rmtab
/etc/nfs/nfslog.conf
/etc/default/nfslogd
/etc/default/nfs
The /etc/dfs/dfstab file: (share local directories)
share -F nfs -o rw,root=host2   -d "Share name"   /path/to/share
/etc/dfs/sharetab (what I have shared)

NFS server daemon:
svcadm -v enable nfs/server
svcadm enable svc:/network/nfs/server
NFS client:
/etc/vfstab
host2:/usr/local/data    -    /usr/remote_data    [...]]]></summary>
      <content type="html" xml:base="http://www.etuts.resourcesit.com/2010/05/21/managing-the-nfs-server-on-solaris/"><![CDATA[<p>This are the files you have to use for managing an NFS server on Solaris:</p>
<p>/etc/dfs/fstypes<br />
/etc/rmtab<br />
/etc/nfs/nfslog.conf<br />
/etc/default/nfslogd<br />
/etc/default/nfs</p>
<p>The /etc/dfs/dfstab file: (share local directories)</p>
<p><code>share -F nfs -o rw,root=host2   -d "Share name"   /path/to/share</code></p>
<p>/etc/dfs/sharetab (what I have shared)<br />
<span id="more-472"></span><br />
NFS server daemon:<br />
<code>svcadm -v enable nfs/server<br />
svcadm enable svc:/network/nfs/server</code></p>
<p>NFS client:<br />
/etc/vfstab<br />
<code>host2:/usr/local/data    -    /usr/remote_data    nfs    -    yes    soft,bg</code></p>
<p>Automount:</p>
<p>/etc/auto_master:<br />
<code>/home           auto_home    -nobrowse<br />
mount_point   map_name     mount_options</code></p>
<p>Direct map:<br />
/etc/auto_master<br />
<code>/-    auto_direct    -ro</code></p>
<p>/etc/auto_direct<br />
<code>/apps/path    -ro,soft    server1:/export/some/path</code></p>
<p>Indirect map:<br />
/etc/auto_master<br />
<code>/home    auto_home    -nobrowse</code></p>
<p>/etc/auto_home<br />
<code>+auto_home<br />
joe    host2:/export/home/joe</code></p>
<p><code>svcadm enable svc:/system/filesystem/autofs</code></p>
]]></content>
        </entry>
    <entry>
    <id>http://www.etuts.resourcesit.com/?p=468</id>
    <title type="html"><![CDATA[Diffrent solaris commands:]]></title>
    <updated>2010-05-20T23:23:11Z</updated>
    <published>2010-05-20T22:40:13Z</published>
    <author>
      <name>admin</name>
      <email>alexandru.ghionghios@gmail.com</email>
    </author>
    <link rel="replies" type="application/atom+xml" href="http://www.etuts.resourcesit.com/2010/05/20/diffrent-solaris-commands/feed/" thr:count="0" />
    <link rel="alternate" href="http://www.etuts.resourcesit.com/2010/05/20/diffrent-solaris-commands/" />
    <category scheme="http://www.etuts.resourcesit.com" term="Linux" />
    <summary type="html"><![CDATA[Here are some basic Solaris commands:
Add swap space:
/etc/vfstab
/dev/dsk/c0d0s1    &#8211;    &#8211;    swap    &#8211;    no    -

swap -a /dev/dsk/c0d0s1
Swap file:
mkfile 100mb /usr/local/swapfilename
swap -a /usr/local/swapfilename
/etc/vfstab
/usr/local/sawp/swapfilename    &#8211;    &#8211;    swap    &#8211; [...]]]></summary>
      <content type="html" xml:base="http://www.etuts.resourcesit.com/2010/05/20/diffrent-solaris-commands/"><![CDATA[<p>Here are some basic Solaris commands:</p>
<p>Add swap space:<br />
/etc/vfstab<br />
/dev/dsk/c0d0s1    &#8211;    &#8211;    swap    &#8211;    no    -<br />
<span id="more-468"></span><br />
swap -a /dev/dsk/c0d0s1</p>
<p>Swap file:<br />
mkfile 100mb /usr/local/swapfilename<br />
swap -a /usr/local/swapfilename</p>
<p>/etc/vfstab<br />
/usr/local/sawp/swapfilename    &#8211;    &#8211;    swap    &#8211;    no    -</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Changing the crash dump configuration:</p>
<p>dumpadm -c [kernell, all, curproc]<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Configure core file storage locations:</p>
<p>mkdir /var/core<br />
coreadm -e global -g /var/core/core.%f.%p<br />
coreadm -e log<br />
coreadm<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
]]></content>
        </entry>
    <entry>
    <id>http://www.etuts.resourcesit.com/?p=462</id>
    <title type="html"><![CDATA[How to migrate a zone in Solaris]]></title>
    <updated>2010-05-20T22:31:22Z</updated>
    <published>2010-05-20T22:31:22Z</published>
    <author>
      <name>admin</name>
      <email>alexandru.ghionghios@gmail.com</email>
    </author>
    <link rel="replies" type="application/atom+xml" href="http://www.etuts.resourcesit.com/2010/05/20/how-to-migrate-a-zone-in-solaris/feed/" thr:count="0" />
    <link rel="alternate" href="http://www.etuts.resourcesit.com/2010/05/20/how-to-migrate-a-zone-in-solaris/" />
    <category scheme="http://www.etuts.resourcesit.com" term="Linux" />
    <summary type="html"><![CDATA[This is a tutorial about migrating a zone in Solaris. First, you have to create the manifest. On the host system, use the folowing command and direct the output to a file:
zoneadm -z myzone detach -n > /export/home/myzone-manifest.txt
cd /export/home
tar cf myzone-manifest.tar myzone-manifest.txt
sftp host2
sftp>cd /export/home
sftp>put myzone-manifest.tar
sftp>quit
On the target system, extract the tar file:
cd /export/home
tar xf myzone-manifest.tar
On [...]]]></summary>
      <content type="html" xml:base="http://www.etuts.resourcesit.com/2010/05/20/how-to-migrate-a-zone-in-solaris/"><![CDATA[<p>This is a tutorial about migrating a zone in Solaris. First, you have to create the manifest. On the host system, use the folowing command and direct the output to a file:</p>
<p><code>zoneadm -z myzone detach -n > /export/home/myzone-manifest.txt<br />
cd /export/home<br />
tar cf myzone-manifest.tar myzone-manifest.txt<br />
sftp host2<span id="more-462"></span><br />
sftp>cd /export/home<br />
sftp>put myzone-manifest.tar<br />
sftp>quit</code></p>
<p>On the target system, extract the tar file:<br />
<code>cd /export/home<br />
tar xf myzone-manifest.tar</code></p>
<p>On the target system you have to create a non-global zone called myzone and set the zonepath property to /zones/myzone:</p>
<p><code>zonecfg -z myzone<br />
create<br />
set zonepath=/zones/myzone<br />
verify<br />
commit<br />
exit</code></p>
<p>You have to validate the feasibility of zone migration:</p>
<p><code>zoneadm -z myzone attach -n /export/home/myzone-manifest.txt</code></p>
<p>The migration is made without the -n option.</p>
]]></content>
        </entry>
    <entry>
    <id>http://www.etuts.resourcesit.com/?p=461</id>
    <title type="html"><![CDATA[How to create zones in Solaris]]></title>
    <updated>2010-05-20T22:12:35Z</updated>
    <published>2010-05-20T21:58:27Z</published>
    <author>
      <name>admin</name>
      <email>alexandru.ghionghios@gmail.com</email>
    </author>
    <link rel="replies" type="application/atom+xml" href="http://www.etuts.resourcesit.com/2010/05/20/how-to-create-zones-in-solaris/feed/" thr:count="0" />
    <link rel="alternate" href="http://www.etuts.resourcesit.com/2010/05/20/how-to-create-zones-in-solaris/" />
    <category scheme="http://www.etuts.resourcesit.com" term="Unix" />
    <summary type="html"><![CDATA[Here is a quick tutorial for creating zones in Solaris 10. First, you have to create 2 partitions on the disk of your system. Partitions 3 and 4 has to be set to 1 Gb. Use the format utility.
With newfs you can create UFS filesystem on the partitions 3 and 4:
newfs /dev/rdsk/c0d0s3
newfs /dev/rdsk/c0d0s4

Now you have [...]]]></summary>
      <content type="html" xml:base="http://www.etuts.resourcesit.com/2010/05/20/how-to-create-zones-in-solaris/"><![CDATA[<p>Here is a quick tutorial for creating zones in Solaris 10. First, you have to create 2 partitions on the disk of your system. Partitions 3 and 4 has to be set to 1 Gb. Use the format utility.</p>
<p>With newfs you can create UFS filesystem on the partitions 3 and 4:</p>
<p><code>newfs /dev/rdsk/c0d0s3<br />
newfs /dev/rdsk/c0d0s4</code><br />
<span id="more-461"></span><br />
Now you have to create a directory /zones/myzone. You have to mount /zones/myzone. Edit /etc/vfstab:</p>
<p><code>/dev/dsk/c0d0s3    /dev/rdsk/c0d0s3    /zones/myzone    ufs    2    yes    -</code></p>
<p>Now, use the mount command:</p>
<p><code>mount /zones/myzone<br />
chmod 700 /zones/myzone</code></p>
<p>Here is how to create the zone:</p>
<p><code>zonecfg -z myzone<br />
create<br />
set zonepath=/zones/myzone<br />
add fs<br />
   set dir=/mnt_myzone<br />
   set special=/dev/dsk/c0d0s4<br />
   set raw=/dev/rdsk/c0d0s4<br />
   set type=ufs<br />
   end<br />
add net<br />
   set physical=nge0<br />
   set address=10.2.1.123<br />
   end<br />
verify<br />
commit<br />
info<br />
exit<br />
</code><br />
After that, you can see you zone:</p>
<p><code>zoneadm list -iv</code></p>
<p>Now you have to install the new zone:</p>
<p><code>zoneadm -z myzone install</code></p>
<p>After install, you can boot the zone:</p>
<p><code>zoneadm -z myzone boot</code></p>
<p>To login on the new zone, use the folowing command:</p>
<p><code>zlogin -C myzone</code></p>
]]></content>
        </entry>
    <entry>
    <id>http://www.etuts.resourcesit.com/?p=448</id>
    <title type="html"><![CDATA[Set up RIP on a simple 3 router network]]></title>
    <updated>2009-10-01T21:19:24Z</updated>
    <published>2009-10-01T21:18:38Z</published>
    <author>
      <name>admin</name>
      <email>alexandru.ghionghios@gmail.com</email>
    </author>
    <link rel="replies" type="application/atom+xml" href="http://www.etuts.resourcesit.com/2009/10/01/set-up-rip-on-a-simple-3-router-network/feed/" thr:count="0" />
    <link rel="alternate" href="http://www.etuts.resourcesit.com/2009/10/01/set-up-rip-on-a-simple-3-router-network/" />
    <category scheme="http://www.etuts.resourcesit.com" term="Networking" />
    <summary type="html"><![CDATA[This is the configuration of RIP protocol on a simple 3 router network.

Router R1 running config
R1#sh running-config
Building configuration&#8230;
Current configuration : 759 bytes
!
version 12.2
no service password-encryption
!
hostname R1
!
!
!
!
!
ip ssh version 1
!
!
interface Loopback1
ip address 173.72.16.1 255.255.252.0
!
interface Loopback2
ip address 172.72.24.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
ip address 173.72.26.65 255.255.255.252
clock rate 64000
!
interface Serial3/0
ip address [...]]]></summary>
      <content type="html" xml:base="http://www.etuts.resourcesit.com/2009/10/01/set-up-rip-on-a-simple-3-router-network/"><![CDATA[<p>This is the configuration of RIP protocol on a simple 3 router network.<br />
<a href="http://www.etuts.resourcesit.com/wp-content/uploads/2009/10/RIP.png"><img class="alignnone size-full wp-image-449" title="RIP on cisco routers" src="http://www.etuts.resourcesit.com/wp-content/uploads/2009/10/RIP.png" alt="RIP on cisco routers" width="366" height="259" /></a></p>
<p>Router R1 running config</p>
<blockquote><p>R1#sh running-config<br />
Building configuration&#8230;<span id="more-448"></span></p>
<p>Current configuration : 759 bytes<br />
!<br />
version 12.2<br />
no service password-encryption<br />
!<br />
hostname R1<br />
!<br />
!<br />
!<br />
!<br />
!<br />
ip ssh version 1<br />
!<br />
!<br />
interface Loopback1<br />
ip address 173.72.16.1 255.255.252.0<br />
!<br />
interface Loopback2<br />
ip address 172.72.24.1 255.255.255.0<br />
!<br />
interface FastEthernet0/0<br />
no ip address<br />
duplex auto<br />
speed auto<br />
shutdown<br />
!<br />
interface FastEthernet1/0<br />
no ip address<br />
duplex auto<br />
speed auto<br />
shutdown<br />
!<br />
interface Serial2/0<br />
ip address 173.72.26.65 255.255.255.252<br />
clock rate 64000<br />
!<br />
interface Serial3/0<br />
ip address 173.72.26.69 255.255.255.252<br />
clock rate 64000<br />
!<br />
interface FastEthernet4/0<br />
no ip address<br />
shutdown<br />
!<br />
interface FastEthernet5/0<br />
no ip address<br />
shutdown<br />
!<br />
router rip<br />
version 2<br />
network 173.72.0.0<br />
no auto-summary<br />
!<br />
ip classless<br />
!<br />
!<br />
!<br />
!<br />
!<br />
line con 0<br />
line vty 0 4<br />
login<br />
!<br />
!<br />
end
</p></blockquote>
<p>Router R2 running config</p>
<blockquote><p>R2#sh running-config<br />
Building configuration&#8230;</p>
<p>Current configuration : 743 bytes<br />
!<br />
version 12.2<br />
no service password-encryption<br />
!<br />
hostname R2<br />
!<br />
!<br />
!<br />
!<br />
!<br />
ip ssh version 1<br />
!<br />
!<br />
interface Loopback1<br />
ip address 173.72.26.1 255.255.255.128<br />
!<br />
interface Loopback2<br />
ip address 173.72.20.1 255.255.252.0<br />
!<br />
interface FastEthernet0/0<br />
no ip address<br />
duplex auto<br />
speed auto<br />
shutdown<br />
!<br />
interface FastEthernet1/0<br />
no ip address<br />
duplex auto<br />
speed auto<br />
shutdown<br />
!<br />
interface Serial2/0<br />
ip address 172.72.26.66 255.255.255.252<br />
!<br />
interface Serial3/0<br />
ip address 172.72.26.73 255.255.255.252<br />
clock rate 64000<br />
!<br />
interface FastEthernet4/0<br />
no ip address<br />
shutdown<br />
!<br />
interface FastEthernet5/0<br />
no ip address<br />
shutdown<br />
!<br />
router rip<br />
version 2<br />
network 173.72.0.0<br />
no auto-summary<br />
!<br />
ip classless<br />
!<br />
!<br />
!<br />
!<br />
!<br />
line con 0<br />
line vty 0 4<br />
login<br />
!<br />
!<br />
end
</p></blockquote>
<p>Router R3 running config</p>
<blockquote><p>R3#sh running-config<br />
Building configuration&#8230;</p>
<p>Current configuration : 729 bytes<br />
!<br />
version 12.2<br />
no service password-encryption<br />
!<br />
hostname R3<br />
!<br />
!<br />
!<br />
!<br />
!<br />
ip ssh version 1<br />
!<br />
!<br />
interface Loopback1<br />
ip address 173.72.25.1 255.255.255.128<br />
!<br />
interface Loopback2<br />
ip address 173.72.25.129 255.255.255.128<br />
!<br />
interface FastEthernet0/0<br />
no ip address<br />
duplex auto<br />
speed auto<br />
shutdown<br />
!<br />
interface FastEthernet1/0<br />
no ip address<br />
duplex auto<br />
speed auto<br />
shutdown<br />
!<br />
interface Serial2/0<br />
ip address 173.72.26.74 255.255.255.252<br />
!<br />
interface Serial3/0<br />
ip address 173.72.26.70 255.255.255.252<br />
!<br />
interface FastEthernet4/0<br />
no ip address<br />
shutdown<br />
!<br />
interface FastEthernet5/0<br />
no ip address<br />
shutdown<br />
!<br />
router rip<br />
version 2<br />
network 173.72.0.0<br />
no auto-summary<br />
!<br />
ip classless<br />
!<br />
!<br />
!<br />
!<br />
!<br />
line con 0<br />
line vty 0 4<br />
login<br />
!<br />
!<br />
end</p></blockquote>
]]></content>
        </entry>
    <entry>
    <id>http://www.etuts.resourcesit.com/?p=441</id>
    <title type="html"><![CDATA[How to set up DNS server with BIND on Ubuntu]]></title>
    <updated>2009-10-01T18:00:55Z</updated>
    <published>2009-10-01T17:57:28Z</published>
    <author>
      <name>admin</name>
      <email>alexandru.ghionghios@gmail.com</email>
    </author>
    <link rel="replies" type="application/atom+xml" href="http://www.etuts.resourcesit.com/2009/10/01/how-to-set-up-dns-server-with-bind-on-ubuntu/feed/" thr:count="0" />
    <link rel="alternate" href="http://www.etuts.resourcesit.com/2009/10/01/how-to-set-up-dns-server-with-bind-on-ubuntu/" />
    <category scheme="http://www.etuts.resourcesit.com" term="Linux" />
    <summary type="html"><![CDATA[This tutorial is about setting up DNS on Ubuntu and is the result of lot of documentation, many tutorials and many attempts. Hope you&#8217;ll find it usefull.
For installing DNS service on a machine, first thing to do in installing BIND (Berkley Internet Name Daemon):
sudo apt-get install bind9
The next thing to do is to configure bind. [...]]]></summary>
      <content type="html" xml:base="http://www.etuts.resourcesit.com/2009/10/01/how-to-set-up-dns-server-with-bind-on-ubuntu/"><![CDATA[<p>This tutorial is about setting up DNS on Ubuntu and is the result of lot of documentation, many tutorials and many attempts. Hope you&#8217;ll find it usefull.<br />
For installing DNS service on a machine, first thing to do in installing BIND (Berkley Internet Name Daemon):</p>
<blockquote><p>sudo apt-get install bind9</p></blockquote>
<p>The next thing to do is to configure bind. Usualy, for this you have to edit named.conf, but in Ubuntu the configuration file for bine is named.conf.local:</p>
<blockquote><p>sudo /etc/bind/named.conf.local</p></blockquote>
<p>Now you have to add the zones:<span id="more-441"></span></p>
<blockquote><p>zone “domain.com” {<br />
type master;<br />
file “/etc/bind/zones/domain.com.db”;<br />
};</p>
<p>#reverse DNS. (reverse notation of your network address (NOT you IP!!!) example: if NA = 192.168.1.0 then reverse DNS is: 1.168.192 )<br />
zone “1.168.192.in-addr.arpa” {<br />
type master;<br />
file “/etc/bind/zones/rev.1.168.192.in-addr.arpa”;<br />
};</p></blockquote>
<p>The next step is to modify the forwarders to point to your ISP (the DNS server to which your own DNS will forward the requests). For this you have to edit named.conf.options:</p>
<blockquote><p>sudo gedit /etc/bind/named.conf.options</p></blockquote>
<p>This is what you have to add (replace with approriate IP addresses of course. We assum here that my ISP&#8217;s DNS are: 111.111.111.111 and 222.222.222.22):</p>
<blockquote><p>forwarders {<br />
111.111.111.111;<br />
222.222.222.222;<br />
};</p></blockquote>
<p>Now we have to add the zone definition file. In the definition file will be stored all the addresses that our DNS server will know. We olso have to create a folder where to keep the file:</p>
<blockquote><p>sudo mkdir /etc/bind/zones<br />
sudo gedit /etc/bind/zones/domain.com.db</p></blockquote>
<p>This is how the definition file should look like:</p>
<blockquote><p>domain.com.      IN	SOA     ns1.domain.com. admin.domain.com. (<br />
2006081401<br />
28800<br />
3600<br />
604800<br />
38400<br />
)</p>
<p>domain.com.      IN      NS              ns1.domain.com.<br />
domain.com.      IN      MX     10       mta.domain.com.</p>
<p>www              IN      A       192.168.0.2<br />
mta              IN      A       192.168.0.3<br />
ns1              IN      A       192.168.0.1</p></blockquote>
<p>The file for reverse DNS zone:</p>
<blockquote><p>sudo gedit /etc/bind/zones/rev.0.168.192.in-addr.arpa</p></blockquote>
<p>The number colored in red is the IP address of the machine running DNS server (in this case is 1, because the IP address of the machine running DNS server is 192.168.0.1).</p>
<blockquote><p>@ IN SOA ns1.domain.com. admin.domain.com. (<br />
2006081401;<br />
28800;<br />
604800;<br />
604800;<br />
86400<br />
)</p>
<p>IN    NS     ns1.domain.com.<br />
<span style="color: #ff0000;">1</span> IN    PTR    domain.com</p></blockquote>
<p>Edit resolv.conf:</p>
<blockquote><p>sudo gedt /etc/resolv.conf</p></blockquote>
<p>Modify resolv.conf:</p>
<blockquote><p>search domain.com<br />
nameserver 192.168.0.1</p></blockquote>
<p>Now you have to restart bind and test your DNS server.</p>
<blockquote><p>sudo /etc/init.d/bind9 restart</p>
<p>dig domain.com<br />
dig domain.com mx</p></blockquote>
]]></content>
        </entry>
    <entry>
    <id>http://www.etuts.resourcesit.com/?p=428</id>
    <title type="html"><![CDATA[Simple shell script]]></title>
    <updated>2009-09-30T08:25:17Z</updated>
    <published>2009-09-29T21:38:38Z</published>
    <author>
      <name>admin</name>
      <email>alexandru.ghionghios@gmail.com</email>
    </author>
    <link rel="replies" type="application/atom+xml" href="http://www.etuts.resourcesit.com/2009/09/29/simple-shell-script/feed/" thr:count="2" />
    <link rel="alternate" href="http://www.etuts.resourcesit.com/2009/09/29/simple-shell-script/" />
    <category scheme="http://www.etuts.resourcesit.com" term="Linux" />
    <summary type="html"><![CDATA[This is a simple shell script. This is what it can do:
[1] Display curent time and date
[2] Display files from current folder
[3] Display the calendar
[4] Start an text editor
[5] Harddisk information
[6] Verify resourcesit.com with ping
This is the complete script. Feel free to use or modify as you like to:
while :
do
clear
echo &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221;
echo &#8221; Test Menu &#8211; [...]]]></summary>
      <content type="html" xml:base="http://www.etuts.resourcesit.com/2009/09/29/simple-shell-script/"><![CDATA[<p>This is a simple shell script. This is what it can do:</p>
<blockquote><p>[1] Display curent time and date<br />
[2] Display files from current folder<br />
[3] Display the calendar<br />
[4] Start an text editor<br />
[5] Harddisk information<br />
[6] Verify resourcesit.com with ping</p></blockquote>
<p>This is the complete script. Feel free to use or modify as you like to:<span id="more-428"></span></p>
<blockquote><p>while :<br />
do<br />
clear<br />
echo &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221;<br />
echo &#8221; Test Menu &#8211; www.etuts.resourcesit.com &#8221;<br />
echo &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221;<br />
echo &#8220;[1] Display curent time and date&#8221;<br />
echo &#8220;[2] Display files from current folder&#8221;<br />
echo &#8220;[3] Display the calendar&#8221;<br />
echo &#8220;[4] Start an text editor&#8221;<br />
echo &#8220;[5] Harddisk information&#8221;<br />
echo &#8220;[6] Verify resourcesit.com with ping&#8221;<br />
echo &#8220;[7] Exit/Stop&#8221;<br />
echo &#8220;=======================&#8221;<br />
echo -n &#8220;Select option [1-7]: &#8221;<br />
read yourch<br />
case $yourch in<br />
1) echo &#8220;Today&#8217;s date is `date` , Hit enter to resume. . .&#8221; ; read ;;<br />
2) echo &#8220;`pwd` files are:&#8221; ; ls -l ; echo &#8220;Hit enter to resume. . .&#8221; ; read ;;<br />
3) cal ; echo &#8220;Hit enter to resume. . .&#8221; ; read ;;<br />
4) gedit ;;<br />
5) df ; echo &#8220;Hit enter to resume. . .&#8221; ; read ;;<br />
6) ping resourcesit.com ; echo &#8220;Hit enter to resume. . .&#8221; ; read ;;<br />
7) exit 0 ;;</p>
<p>*) echo &#8220;Hellooo?!?!! I said to pick an option from thoes displayed: 1,2,3,4,5,6 or 7&#8243;;<br />
echo &#8220;Hit enter to resume. . .&#8221; ; read ;;<br />
esac<br />
done</p></blockquote>
<p>Don&#8217;t forget to give the shell permission to execute your script:</p>
<blockquote><p>chmod 755 the_script.sh</p></blockquote>
<p><a href="http://www.etuts.resourcesit.com/wp-content/uploads/2009/09/shell-script.png"><img class="size-full wp-image-431 alignnone" title="shell-script" src="http://www.etuts.resourcesit.com/wp-content/uploads/2009/09/shell-script.png" alt="shell-script" width="567" height="296" /></a></p>
]]></content>
        </entry>
    <entry>
    <id>http://www.etuts.resourcesit.com/2009/09/29/how-to-set-up-a-static-ip-address-on-ubuntu/</id>
    <title type="html"><![CDATA[How to set up a static IP address on Ubuntu]]></title>
    <updated>2009-09-30T08:24:24Z</updated>
    <published>2009-09-29T18:40:33Z</published>
    <author>
      <name>admin</name>
      <email>alexandru.ghionghios@gmail.com</email>
    </author>
    <link rel="replies" type="application/atom+xml" href="http://www.etuts.resourcesit.com/2009/09/29/how-to-set-up-a-static-ip-address-on-ubuntu/feed/" thr:count="1" />
    <link rel="alternate" href="http://www.etuts.resourcesit.com/2009/09/29/how-to-set-up-a-static-ip-address-on-ubuntu/" />
    <category scheme="http://www.etuts.resourcesit.com" term="Linux" />
    <summary type="html"><![CDATA[After an update, the Network Manager crashed. In this situation, the easyest way to set up a static IP address is to edit the configuration files myself. First, I have to remove the Network Manager.
sudo apt-get remove –purge network-manager
The first file to modify is /etc/network/interfaces:
sudo gedit /etc/network/interfaces

Now change eth0 with your setting. This are mine:
auto [...]]]></summary>
      <content type="html" xml:base="http://www.etuts.resourcesit.com/2009/09/29/how-to-set-up-a-static-ip-address-on-ubuntu/"><![CDATA[<p>After an update, the Network Manager crashed. In this situation, the easyest way to set up a static IP address is to edit the configuration files myself. First, I have to remove the Network Manager.</p>
<blockquote><p>sudo apt-get remove –purge network-manager</p></blockquote>
<p>The first file to modify is /etc/network/interfaces:</p>
<blockquote><p>sudo gedit /etc/network/interfaces</p></blockquote>
<p><span id="more-422"></span><br />
Now change eth0 with your setting. This are mine:</p>
<blockquote><p>auto eth0<br />
iface eth0 inet static<br />
address 192.168.1.100<br />
netmask 255.255.255.0<br />
gateway 192.168.1.1</p></blockquote>
<p>The second file to edit is /etc/resolv.conf. In this file you can set the name servers:</p>
<blockquote><p>sudo gedit /etc/resolv.conf</p></blockquote>
<p>This are my name servers:</p>
<blockquote><p>nameserver 193.231.233.1<br />
nameserver 193.226.98.2<br />
nameserver 80.96.184.18</p></blockquote>
<p>The last thing you have to do is to restart the networking:</p>
<blockquote><p>sudo /etc/init.d/networking restart</p></blockquote>
<p>The system should be using now the setting defined in the two edited files.</p>
]]></content>
        </entry>
    <entry>
    <id>http://www.etuts.resourcesit.com/?p=388</id>
    <title type="html"><![CDATA[Subnet mask and wildcard table]]></title>
    <updated>2009-09-29T00:06:51Z</updated>
    <published>2009-09-28T23:30:45Z</published>
    <author>
      <name>admin</name>
      <email>alexandru.ghionghios@gmail.com</email>
    </author>
    <link rel="replies" type="application/atom+xml" href="http://www.etuts.resourcesit.com/2009/09/29/subnet-mask-and-wildcard-table/feed/" thr:count="1" />
    <link rel="alternate" href="http://www.etuts.resourcesit.com/2009/09/29/subnet-mask-and-wildcard-table/" />
    <category scheme="http://www.etuts.resourcesit.com" term="Networking" />
    <summary type="html"><![CDATA[This is a subnet mask table. Content:
- the first column shows the number of subnet mask bits.
- the second column shows the resulting subnet mask in dotted decimal format.
- the third column shows the resulting wildcard mask in dotted decimal format.

table.sample {
	border-width: 0px 0px 0px 0px;
	border-spacing: 3px;
	border-style: outset outset outset outset;
	border-color: gray gray gray gray;
	border-collapse: [...]]]></summary>
      <content type="html" xml:base="http://www.etuts.resourcesit.com/2009/09/29/subnet-mask-and-wildcard-table/"><![CDATA[<p>This is a subnet mask table. Content:<br />
- the first column shows the number of subnet mask bits.<br />
- the second column shows the resulting subnet mask in dotted decimal format.<br />
- the third column shows the resulting wildcard mask in dotted decimal format.</p>
<style type="text/css">
table.sample {
	border-width: 0px 0px 0px 0px;
	border-spacing: 3px;
	border-style: outset outset outset outset;
	border-color: gray gray gray gray;
	border-collapse: separate;
	background-color: white;
}
table.sample th {
	border-width: thin thin thin thin;
	padding: 3px 3px 3px 3px;
	border-style: none none none none;
	border-color: red red red red;
	background-color: rgb(204, 204, 204);
	-moz-border-radius: 3px 3px 3px 3px;
}
table.sample td {
	border-width: thin thin thin thin;
	padding: 3px 3px 3px 3px;
	border-style: none none none none;
	border-color: red red red red;
	background-color: rgb(204, 204, 204);
	-moz-border-radius: 3px 3px 3px 3px;
}
</style>
<table class="sample">
<tr>
<th>Number of subnet mask bits</th>
<th>Subnet mask</th>
<th>Wildcard mask</th>
</tr>
<tr>
<td>/8</td>
<td>255.0.0.0</td>
<td>0.255.255.255</td>
</tr>
<tr>
<td>/9</td>
<td>255.128.0.0</td>
<td>0.127.255.255</td>
</tr>
<p><span id="more-388"></span></p>
<tr>
<td>/10</td>
<td>255.192.0.0</td>
<td>0.63.255.255</td>
</tr>
<tr>
<td>/11</td>
<td>255.224.0.0</td>
<td>0.31.255.255</td>
</tr>
<tr>
<td>/12</td>
<td>255.240.0.0</td>
<td>0.15.255.255</td>
</tr>
<tr>
<td>/13</td>
<td>255.248.0.0</td>
<td>0.7.255.255</td>
</tr>
<tr>
<td>/14</td>
<td>255.252.0.0</td>
<td>0.3.255.255</td>
</tr>
<tr>
<td>/15</td>
<td>255.254.0.0</td>
<td>0.1.255.255</td>
</tr>
<tr>
<td>/16</td>
<td>255.255.0.0</td>
<td>0.0.255.255</td>
</tr>
<tr>
<td>/17</td>
<td>255.255.128.0</td>
<td>0.0.127.255</td>
</tr>
<tr>
<td>/18</td>
<td>255.255.192.0</td>
<td>0.0.63.255</td>
</tr>
<tr>
<td>/19</td>
<td>255.224.0.0</td>
<td>0.0.31.255</td>
</tr>
<tr>
<td>/20</td>
<td>255.255.240.0</td>
<td>0.0.15.255</td>
</tr>
<tr>
<td>/21</td>
<td>255.255.248.0</td>
<td>0.0.7.255</td>
</tr>
<tr>
<td>/22</td>
<td>255.255.252.0</td>
<td>0.0.3.255</td>
</tr>
<tr>
<td>/23</td>
<td>255.255.254.0.0</td>
<td>0.0.1.255</td>
</tr>
<tr>
<td>/24</td>
<td>255.255.255.0</td>
<td>0.0.0.255</td>
</tr>
<tr>
<td>/25</td>
<td>255.255.255.128</td>
<td>0.0.0.127</td>
</tr>
<tr>
<td>/26</td>
<td>255.255.255.192</td>
<td>0.0.0.63</td>
</tr>
<tr>
<td>/27</td>
<td>255.255.255.224</td>
<td>0.0.0.31</td>
</tr>
<tr>
<td>/28</td>
<td>255.255.255.240</td>
<td>0.0.0.15</td>
</tr>
<tr>
<td>/29</td>
<td>255.255.255.248</td>
<td>0.0.0.7</td>
</tr>
<tr>
<td>/30</td>
<td>255.255.255.252</td>
<td>0.0.0.3</td>
</tr>
</table>
]]></content>
        </entry>
  </feed>

