<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Hacktopia</title>
	<atom:link href="http://www.hacktopia.net/wp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hacktopia.net/wp</link>
	<description>The zen of hacking</description>
	<pubDate>Mon, 25 Aug 2008 13:10:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>How to change DNS servers</title>
		<link>http://www.hacktopia.net/wp/how-to-change-dns-servers/</link>
		<comments>http://www.hacktopia.net/wp/how-to-change-dns-servers/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 13:10:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=43</guid>
		<description><![CDATA[In both linux and Solaris and possibly other UNIX&#8217;es you can change your dhcp servers simply by editing your /etc/resolv.conf
It should look like below.
search domain.com otherdomain.com
nameserver 192.168.0.1
nameserver 192.168.0.2
The nameserver&#8217;s or DNS server will try to be connected to in order from top to bottom.  The search domains do not matter if they are at [...]]]></description>
			<content:encoded><![CDATA[<p>In both linux and Solaris and possibly other UNIX&#8217;es you can change your dhcp servers simply by editing your /etc/resolv.conf</p>
<p>It should look like below.</p>
<blockquote><p>search domain.com otherdomain.com<br />
nameserver 192.168.0.1<br />
nameserver 192.168.0.2</p></blockquote>
<p>The nameserver&#8217;s or DNS server will try to be connected to in order from top to bottom.  The search domains do not matter if they are at the top or bottom.  Search domains are usefull if you dont want to have to type in the whole FQDN (Fully Qualified Domain Name).  So instead of typing in &#8220;ping sparky.domain.com&#8221; you can shorten it to &#8220;ping sparky&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/how-to-change-dns-servers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to mount a usb drive in linux</title>
		<link>http://www.hacktopia.net/wp/how-to-mount-a-usb-drive-in-linux/</link>
		<comments>http://www.hacktopia.net/wp/how-to-mount-a-usb-drive-in-linux/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 13:09:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=44</guid>
		<description><![CDATA[So you just inserted your USB stick/drive into your Linux Workstation/D3esktop/Laptop and it did not automatically mount it.  What to do?  Well the first thing to do would be to make sure it is not really mounted but running, you guessed it right the &#8220;mount&#8221; command.
bab@mini:~$ mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on [...]]]></description>
			<content:encoded><![CDATA[<p>So you just inserted your USB stick/drive into your Linux Workstation/D3esktop/Laptop and it did not automatically mount it.  What to do?  Well the first thing to do would be to make sure it is not really mounted but running, you guessed it right the &#8220;mount&#8221; command.</p>
<blockquote><p>bab@mini:~$ mount<br />
/dev/sda1 on / type ext3 (rw,errors=remount-ro)<br />
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)<br />
proc on /proc type proc (rw,noexec,nosuid,nodev)<br />
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)<br />
procbususb on /proc/bus/usb type usbfs (rw)<br />
udev on /dev type tmpfs (rw,mode=0755)<br />
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)<br />
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)</p></blockquote>
<p>Aha yup, looks like there are no usb</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/how-to-mount-a-usb-drive-in-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to renew your dhcp lease in linux</title>
		<link>http://www.hacktopia.net/wp/how-to-renew-your-dhcp-lease-in-linux/</link>
		<comments>http://www.hacktopia.net/wp/how-to-renew-your-dhcp-lease-in-linux/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 17:01:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=42</guid>
		<description><![CDATA[root@client:~# dhclient eth0
There is already a pid file /var/run/dhclient.pid with pid 4478
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:22:cb:ze:95:sh
Sending on   LPF/eth0/00:22:cb:ze:95:sh
Sending on   Socket/fallback
DHCPREQUEST of 192.168.0.101 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.101 from 192.168.0.1
bound to 192.168.0.101 &#8212; renewal [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>root@client:~# dhclient eth0<br />
There is already a pid file /var/run/dhclient.pid with pid 4478<br />
killed old client process, removed PID file<br />
Internet Systems Consortium DHCP Client V3.0.6<br />
Copyright 2004-2007 Internet Systems Consortium.<br />
All rights reserved.<br />
For info, please visit http://www.isc.org/sw/dhcp/</p>
<p>Listening on LPF/eth0/00:22:cb:ze:95:sh<br />
Sending on   LPF/eth0/00:22:cb:ze:95:sh<br />
Sending on   Socket/fallback<br />
DHCPREQUEST of 192.168.0.101 on eth0 to 255.255.255.255 port 67<br />
DHCPACK of 192.168.0.101 from 192.168.0.1<br />
bound to 192.168.0.101 &#8212; renewal in 284384 seconds.<br />
root@client:~#</p></blockquote>
<p>You could want to restart your leas for a variety of reasons.  You just set up a static DHCP lease and you want to computer to pick up the new ip.  If you are logged in via SSH make sure when you connection is dropped that you know what the new ip will be before hand or at least have a log in to the router so you can find out what it was assigned.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/how-to-renew-your-dhcp-lease-in-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to change the mac address in Linux</title>
		<link>http://www.hacktopia.net/wp/how-to-change-the-mac-address-in-linux/</link>
		<comments>http://www.hacktopia.net/wp/how-to-change-the-mac-address-in-linux/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 16:56:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=41</guid>
		<description><![CDATA[# ifconfig eth0 down
# ifconfig eth0 hw ether 00:80:48:BA:d1:20
# ifconfig eth0 up
# ifconfig eth0 &#124;grep HWaddr
This is always fun to do.  Why might you want to do this.  Say your friend paid for internet access at at coffee shop.  Your friend leaves early.  You change your mac to what his mac is and then you [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p><code># ifconfig eth0 down<br />
# <span style="font-weight: bold;">ifconfig eth0 hw ether 00:80:48:BA:d1:20</span><br />
# ifconfig eth0 up<br />
# ifconfig eth0 |grep HWaddr</code></p></blockquote>
<p>This is always fun to do.  Why might you want to do this.  Say your friend paid for internet access at at coffee shop.  Your friend leaves early.  You change your mac to what his mac is and then you can freely surf the internet with out paying.  Kind of like using a parking meeter that still has time on it :&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/how-to-change-the-mac-address-in-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SDS (Solstice DiskSuite) Replacing a failed disk</title>
		<link>http://www.hacktopia.net/wp/sds-solstice-disksuite-replacing-a-failed-disk/</link>
		<comments>http://www.hacktopia.net/wp/sds-solstice-disksuite-replacing-a-failed-disk/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 22:16:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Scripts]]></category>

		<category><![CDATA[Soalris X86]]></category>

		<category><![CDATA[Solaris]]></category>

		<category><![CDATA[Solaris 10]]></category>

		<category><![CDATA[Solaris Sparc]]></category>

		<category><![CDATA[Veritas Volume Manager]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=35</guid>
		<description><![CDATA[1. Detach each submirror
ex.  metadetach -f d0 d20
d0: submirror d20 is detached
2.  Clear each submirror
ex.  metaclear d20
d20: Concat/Stripe is cleared
3.  Delete the db replica on the failed drive (you can find the replica output by issuing metadb command with no arguments):
ex.  metadb -d c0t2d0s7
4.  Remove failed drive. Replace with [...]]]></description>
			<content:encoded><![CDATA[<p>1. Detach each submirror</p>
<p>ex.  metadetach -f d0 d20<br />
d0: submirror d20 is detached</p>
<p>2.  Clear each submirror</p>
<p>ex.  metaclear d20<br />
d20: Concat/Stripe is cleared</p>
<p>3.  Delete the db replica on the failed drive (you can find the replica output by issuing metadb command with no arguments):</p>
<p>ex.  metadb -d c0t2d0s7</p>
<p>4.  Remove failed drive. Replace with new drive.</p>
<p>5.  Run the format command and place the correct partition table, using the layout of the non-replaced drive.</p>
<p>6. re-create the metadb replica on the new disk</p>
<p>ex.  metadb -a c0t2d0s7</p>
<p>7. Run metainit for each replaced submirror</p>
<p>ex. metainit d21 1 1 c0t2d0s1<br />
d21: Concat/Stripe is setup</p>
<p>8.  Run metattach for each submirror</p>
<p>ex. metattach d0 d20<br />
d0: submirror d20 is attached</p>
<p>ex. metattach d1 d21<br />
d1: submirror d21 is attached</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/sds-solstice-disksuite-replacing-a-failed-disk/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
