tag:blogger.com,1999:blog-159332532024-03-13T22:05:41.647-07:00CelebornMy notes on Everything ...Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.comBlogger111125tag:blogger.com,1999:blog-15933253.post-23606619489526732122022-11-16T15:54:00.006-08:002022-11-16T15:59:00.993-08:00Tmux : Create multiple windows to ssh to several servers<p><span style="color: #6aa84f;"><span style="font-family: courier;"><span style="font-size: small;"> #!/usr/local/bin/zsh<br /><br />SESSION="Maintenance-X"<br /><br />tmux new -s "${SESSION}" -d<br />tmux rename-window -t "${SESSION}.0" Main<br />tmux new-window -d -t "${SESSION}" -n Server1<br />tmux new-window -d -t "${SESSION}" -n Server2<br />tmux new-window -d -t "${SESSION}" -n Server3<br /><br /># Run ssh command in each window<br />tmux send-keys -t "${SESSION}:1" 'ssh server1.mydomain' Enter<br />tmux send-keys -t "${SESSION}:2" 'ssh server2.mydomain' Enter<br />tmux send-keys -t "${SESSION}:3" 'ssh server3.mydomain' Enter<br /></span></span></span></p><p><span style="color: #6aa84f;"><span style="font-family: courier;"><span style="font-size: small;"># To run command in a pane within a window, use:<br /># tmux send-keys -t "${SESSION}:1.<pane-position>" 'ssh server1' Enter<br /># tmux send-keys -t "${SESSION}:1.top" 'ssh server1' Enter</span></span></span></p><p><span style="color: #6aa84f;"><span style="font-family: courier;"><span style="font-size: small;"><br />tmux attach-session -d -t "$SESSION"</span></span></span></p>Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-33490616489403114352021-10-17T04:26:00.002-07:002021-10-19T20:31:13.631-07:00Creating a user service on Linux<p> This is an example of running a local python script as a user service.</p><p>Most of this information was found <a href="https://github.com/torfsen/python-systemd-tutorial">here</a>.</p><p><br /></p><p>Service location:</p><p style="margin-left: 40px; text-align: left;"><span style="font-family: courier;">/home/user/.config/systemd/servicename.service</span></p><p><br /></p><p>Service definition/contents of servicename.service<br /></p><p style="margin-left: 40px; text-align: left;"><span style="font-family: courier;">[Unit]<br />Description=Metriful User Service<br /><br />[Service]<br />ExecStart=/usr/bin/python3 /home/user/script.py<br />Restart=on-failure<br /><br />[Install]<br />WantedBy=default.target</span></p><p></p><p><span style="font-family: courier;"></span></p><p><br /><span style="font-family: inherit;">Reload Systemd so it can find the new service</span></p><p style="margin-left: 40px; text-align: left;"><span style="font-family: courier;"><span style="font-family: courier;">systemctl --user daemon-reload</span></span></p><p><span style="font-family: courier;"><span style="font-family: courier;"><br /></span></span></p><p><span style="font-family: inherit;">Enable Service with <br /></span></p><p style="margin-left: 40px; text-align: left;"><span style="font-family: courier;">systemctl --user enable </span><span style="font-family: courier;">servicename.service <br /></span></p><p><br /></p><p><span style="font-family: inherit;">Let Service run even when all user sessions have expired</span></p><div style="margin-left: 40px; text-align: left;"><span style="font-family: courier;">loginctl enable-linger <user><br /></span></div>Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-62119912559495828382021-10-11T19:10:00.003-07:002021-10-11T19:14:23.729-07:00ZSH First time run<p>These are the commands to re-run ZSH first time setup.</p><br /><span style="font-family: courier;">autoload -Uz zsh-newuser-install <br /> zsh-newuser-install -f</span>Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-86143998036120112362020-03-27T17:31:00.003-07:002021-10-11T19:15:17.014-07:00Grafana is pretty awesomeIt was so easy to setup. Definitely needs more time spent with it. But I have dashboards, alerting, and push notification thus far. Pretty sweet.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-nIdm17N6Or4/Xn6au2FcEzI/AAAAAAABlng/V7TMV521-fwXoJQ8W1ziGJnIqoPosNeSgCNcBGAsYHQ/s1600/grafana.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1553" data-original-width="1600" height="310" src="https://1.bp.blogspot.com/-nIdm17N6Or4/Xn6au2FcEzI/AAAAAAABlng/V7TMV521-fwXoJQ8W1ziGJnIqoPosNeSgCNcBGAsYHQ/s320/grafana.png" width="320" /></a></div>
<br />
#monitoring #server #graphsCelebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-59514154757183642017-04-19T22:05:00.001-07:002017-04-19T22:20:00.228-07:00Replacing a failed hard drive in an (encrypted) ZFS Pool on FreeNASDisk Failure Email Alert<br />
<br />
<pre wrap="">Device: /dev/ada5, failed to read SMART Attribute Data
Device: /dev/ada5, not capable of SMART self-check
Device: /dev/ada5, Read SMART Self-Test Log Failed
The volume tank (ZFS) state is DEGRADED: One or more devices could not be opened. Sufficient replicas exist for the pool to continue functioning in a degraded state.
Device: /dev/ada5, Read SMART Error Log Failed</pre>
<pre wrap=""> </pre>
<pre wrap="">Disk went to UNAVAIL on FreeNAS. It was a complete disk failure where the drive would not even turn on.</pre>
<br />
<pre wrap="">Checking status of zfs pools:
[..]
pool: tank
state: DEGRADED
status: One or more devices could not be opened. Sufficient replicas exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
see: <a class="moz-txt-link-freetext" href="http://illumos.org/msg/ZFS-8000-2Q">http://illumos.org/msg/ZFS-8000-2Q</a>
scan: scrub repaired 0 in 3h22m with 0 errors on Sat Mar 11 15:55:33 2017
config:
NAME STATE READ WRITE CKSUM
tank <span style="color: #cc0000;">DEGRADED</span> 0 0 0
raidz1-0 <span style="color: #cc0000;">DEGRADED</span> 0 0 0
gptid/2dc7c53c-2b99-11e6-94d8-0015177adaa2.eli ONLINE 0 0 0
gptid/2e7247c8-2b99-11e6-94d8-0015177adaa2.eli ONLINE 0 0 0
gptid/2f1f7b49-2b99-11e6-94d8-0015177adaa2.eli ONLINE 0 0 0
<span style="color: #cc0000;"><b> 9773863262585734395 UNAVAIL 0 0 0 was /dev/gptid/2fa84005-2b99-11e6-94d8-0015177adaa2.eli</b></span>
gptid/306d3755-2b99-11e6-94d8-0015177adaa2.eli ONLINE 0 0 0
errors: No known data errors</pre>
<br />
Here's how to replace the failed disk:<br />
<ol>
<li> Offline the disk if you can by going to Storage > Volumes > Select your pool (e.g. tank) > Volume Status (on the status bar at the bottom). I could not do this since the disk was already unavailable and hence offline</li>
<li>NOTE the disk's name, like ada5xx</li>
<li>Next, navigate to the Storage > View Disks and jot down the disk's serial number. You will need this to physically identify the disk later.</li>
<li>Shutdown your computer</li>
<li>Physically remove the disk and replace it with a new one. </li>
<li>Boot up your machine</li>
<li>Go back to Storage > Volumes > Select your pool (e.g. tank) > Volume Status</li>
<li>Select the defective disk's slot and click on Replace</li>
<li>If it's an encrypted pool, enter your passphrase as well</li>
<li>The resilvering process should start</li>
</ol>
For encrypted pools, once resilvering is completed do the following to avoid losing the pool on the next reboot. Go to Storage > Volumes > Select your pool containing the new disk<br />
<br />
<ol>
<li>Re-key your pool's encryption passphrase </li>
<li>Re-create a passphrase</li>
<li>Download your key</li>
<li>Add a recovery key.</li>
</ol>
For more detailed information, refer to the <a href="https://doc.freenas.org/9.3/freenas_storage.html#replacing-an-encrypted-drive" target="_blank">FreeNAS documentation</a>.<br />
<br />
You can watch the pool rebuilding (resilvering) either on the GUI or on the CLI:<br />
<br />
[root@freenas] ~# zpool status tank<br />
pool: tank<br />
state: ONLINE<br />
status: One or more devices is currently being resilvered. The pool will<br />
continue to function, possibly in a degraded state.<br />
action: Wait for the resilver to complete.<br />
scan: resilver in progress since Wed Apr 19 21:42:55 2017<br />
49.1G scanned out of 5.89T at 301M/s, 5h39m to go<br />
9.79G resilvered, 0.81% done<br />
config:<br />
<br />
NAME STATE READ WRITE CKSUM<br />
tank ONLINE 0 0 0<br />
raidz1-0 ONLINE 0 0 0<br />
gptid/2dc7c53c-2b99-11e6-94d8-0015177adaa2.eli ONLINE 0 0 0<br />
gptid/2e7247c8-2b99-11e6-94d8-0015177adaa2.eli ONLINE 0 0 0<br />
gptid/2f1f7b49-2b99-11e6-94d8-0015177adaa2.eli ONLINE 0 0 0<br />
gptid/c3e3e9d1-2583-11e7-8b27-0015177adaa2.eli ONLINE 0 0 0 (resilvering)<br />
gptid/306d3755-2b99-11e6-94d8-0015177adaa2.eli ONLINE 0 0 0<br />
<br />
errors: No known data errors<br />
<br />
<br />Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-51855214047952218232013-04-29T09:52:00.001-07:002016-12-11T23:40:54.586-08:00Excellent read on cloud management<div dir="ltr">
PCWorld: 21 tips for supercharging your cloud storage. <a href="http://goo.gl/mag/pSGrcK5">http://goo.gl/mag/pSGrcK5</a></div>
Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-15818929984173693012012-12-17T05:42:00.000-08:002012-12-17T06:04:25.390-08:00[Halo] Forerunner Timeline as I understand itSo far, this is how I picture the events to have taken place during the Human-Forerunner and Forerunner-Flood Wars<br />
<br />
<ul>
<li>Human-Forerunner War</li>
<li>Ur-Didact defeats the Humans and devolves them</li>
<li>Discovery of the Flood by the Forerunners</li>
<li>Brief Forerunner-Flood War</li>
<li>Commissioning of Halos to eradicate the Flood should they emerge again</li>
<ul>
<li> Ur-Didact opposes to this for his belief in the Mantle and eventually exiled on Erde-Tyrene</li>
</ul>
<li>Bornstellar discovers Ur-Didact's Cryptum and wakes him</li>
<li>The two travel to various scarred Worlds and Ur-Didact bestows his memories and knowledge to Bornstellar via a Brevet Mutation</li>
<li>They are found by Master Builder Faber who exiles Ur-Didact to a Flood invested planet</li>
<li>Bornstellar is returned to Forerunner territory and becomes the new Didact</li>
<li>Forerunner capital attacked by Mendicant Bias and Faber executed due to War Crimes</li>
<li> </li>
<li>Bornstellar finds Mendicant's installation (Halo 7), commandeers it to obtain the Composer</li>
<li><br /></li>
</ul>
<ul>
<li>[Unknown Events] </li>
<li> </li>
<li>Flood threat arises again</li>
<li> Ur-Didact returns and prepares for battle</li>
<ul>
<li>Uses human population on Halos to compose an army of Prometheans</li>
</ul>
<li>The Librarian seriously abhors this act and imprisons the Ur-Didact on Requiem</li>
<li>The Librarian completes Indexing of Sentient Species</li>
<li> </li>
<li>[Unknown Events .. but include implantation of Genesong to John-117's ancestors, possibly with an imprint of Forthencho (wild wild guess since he was the greatest threat to the Ur-Didact)]</li>
<li><br /></li>
</ul>
<ul>
<li>(Presumably) Bornstellar activates the Halo Array to cleanse the Galaxy </li>
</ul>
Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-16031617113249728212012-08-16T22:13:00.000-07:002012-08-18T08:56:02.194-07:00[Rant] Thanks HTC<div><p dir=ltr>Thanks for the update HTC. It made it much easier to decide whether I should buy a One XL. I am now the proud owner of a Galaxy Nexus. After using HTC devices since the Nexus One, I'm afraid to say its time to break-up. Loved my DHD for the past years - it shall now reside proudly on a plynth. Seeing how you have listened to your loyal fanbase recently, my next phones are definitely going to be Nexuses (unless Google decides to award you the contract, in which case, I shall stick with the other players in the market). Thanks for the ride though.</p>
<p dir=ltr>________________________________________________________________________________</p>
<p dir=ltr>My rant is about HTC not releasing an update to the all-so-good Desire HD after telling customers since early 2012 that the device would indeed be upgraded to Ice Cream Sandwich or version 4.0 (ICS). <a href="http://blog.htc.com/2012/03/ics/">http</a><a href="http://blog.htc.com/2012/03/ics/">://</a><a href="http://blog.htc.com/2012/03/ics/">blog.htc.com</a><a href="http://blog.htc.com/2012/03/ics/">/2012/03/</a><a href="http://blog.htc.com/2012/03/ics/">ics</a><a href="http://blog.htc.com/2012/03/ics/">/</a></p>
<p dir=ltr>The fact remains that the device is capable of running ICS.  <a href="http://news.softpedia.com/news/HTC-Desire-HD-Gets-Android-4-0-4-ICS-Update-Unofficial-286715.shtml">http</a><a href="http://news.softpedia.com/news/HTC-Desire-HD-Gets-Android-4-0-4-ICS-Update-Unofficial-286715.shtml">://</a><a href="http://news.softpedia.com/news/HTC-Desire-HD-Gets-Android-4-0-4-ICS-Update-Unofficial-286715.shtml">news.softpedia.com</a><a href="http://news.softpedia.com/news/HTC-Desire-HD-Gets-Android-4-0-4-ICS-Update-Unofficial-286715.shtml">/news/HTC-Desire-HD-Gets-Android-4-0-4-ICS-Update-Unofficial-286715.</a><a href="http://news.softpedia.com/news/HTC-Desire-HD-Gets-Android-4-0-4-ICS-Update-Unofficial-286715.shtml">shtml</a></p>
<p dir=ltr>So, if you are planning to buy an HTC phone; think again.  Although HTC used to be very attentive to customers, they have been very uncooperative on this matter even though a petition was sent through. They should atleast have made an ICS version available without their Sense UI or provide (power-) users with the option to choose whether they want to upgrade or not. </p>
<p dir=ltr>The minute I switched on my Galaxy Nexus, I was provided the option to upgrade to version 4.1 Jelly Bean of Android.  I could not be any happier about my decision to drop buying an HTC One XL; which is a great phone as per the reviews but with such support from HTC, the phone will be obsolete by the next update to Android.  </p>
<p dir=ltr>The Galaxy Nexus on the other hand will receive the next update of Android since even a Nexus S (predecessor to the Galaxy <u>Nexus</u>) obtained an upgrade to 4.1 (not just 4.0).  The Nexus S was released around the same time as the HTC Desire HD with the latter being more powerful specs-wise!!!</p>
<p dir=ltr>UPDATE: <br>
18 Aug: XDA-devs have officially done what HTC could not! Hallelujah! </p>
<p dir=ltr>www.engadget.com/2012/08/17/custom-rom-brings-ics-to-desire-hd/</p>
</div>Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-21973101587626674922011-10-29T05:09:00.001-07:002011-10-29T05:09:41.489-07:00Weather codes<div><p>Melbourne: asxx0075<br>
Sydney: asxx0112</p>
<p>AOL weather search seems to have the codes necessary for widgets.</p>
</div>Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-62877690658554256462011-05-02T20:44:00.000-07:002011-05-02T20:44:22.585-07:00My Matrix MomentI filmed this while at <a href="http://www.acmi.net.au/">ACMI</a> on 1st May 2011.<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.blogger.com/video.g?token=AD6v5dwbJ_WE5CaNB-82gw8lqs8XFIzeNgCnm8gQCzrTqrAwnSVntfd0kon71bgs2VBBa4uhpvjBKOFOpRU' class='b-hbp-video b-uploaded' frameborder='0'></iframe></div>Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-22328148406710373512011-03-18T20:09:00.000-07:002016-12-11T23:40:20.321-08:00Configuring OpenVPN on FreeBSD [Quick Guide]<span style="font-family: "courier new";">[Note: This post is a work in progress.]<br />
<br />
pkg_add -r openvpn</span><br />
<span style="font-family: "courier new";">rehash</span><br />
<br />
<span style="font-family: "courier new";">mkdir -p /usr/local/etc/openvpn</span><br />
<span style="font-family: "courier new";">cd /usr/local/etc/openvpn</span><br />
<span style="font-family: "courier new";">touch openvpn.conf</span><br />
<br />
<span style="font-family: "courier new";">cp -R /usr/local/share/doc/openvpn/easy-rsa .</span><br />
<br />
<span style="font-family: "courier new";">cd easy-rsa/2.0/</span><br />
<br />
[Edit the vars file to reflect your details. This will save you the trouble of having to type your organisation's details every time you generate a certificate. You may also need to change your shell to sh to execute the scripts. I also had to do a <span style="font-family: "courier new";">chmod +x * </span>in that directory.]<br />
<br />
<span style="font-family: "courier new";">./clean-all</span><br />
<span style="font-family: "courier new";">./vars</span><br />
<span style="font-family: "courier new";">./</span>build-ca<br />
<br />
<span style="font-weight: bold;">[Generate Server Key named server1]</span><br />
./build-key-server server1<br />
<br />
<span style="font-weight: bold;">[Generate Keys for clients]</span><br />
./build-key hpserver<br />
./build-key acerlaptop<br />
<br />
<span style="font-weight: bold;">[Generate Diffie-Hellman keys]</span><br />
./build-dh<br />
<br />
<br />
<i><b>#The following keys have been copied from /usr/local/etc/openvpn/easy-rsa/2.0/keys</b></i><br />
<i><b><br />
</b></i><br />
<i><b><span style="font-family: "courier new";">ca /usr/local/etc/openvpn/keys/ca.crt</span></b></i><br />
<i><b><span style="font-family: "courier new";">cert /usr/local/etc/openvpn/keys/server.crt</span></b></i><br />
<i><b><span style="font-family: "courier new";">key /usr/local/etc/openvpn/keys/server.key</span></b></i><br />
<i><b><span style="font-family: "courier new";">dh /usr/local/etc/openvpn/keys/dh1024.pem</span></b></i><br />
<br />
<br />
Now, edit openvpn.conf (on the server-end) as follows. Substitute IP addresses as required.<br />
<br />
<span style="font-weight: bold;">[OpenVPN Server Config]</span><br />
<span style="font-family: "courier new";">#Configuration of OpenVPN Server</span><br />
<br />
<span style="font-family: "courier new";">port 1194</span><br />
<span style="font-family: "courier new";">proto tcp</span><br />
<span style="font-family: "courier new";">dev tun</span><br />
<br />
ca keys/ca.crt<br />
cert keys/server.crt<br />
key keys/server.key<br />
<br />
dh keys/dh1024.pem<br />
<br />
<br />
<span style="font-family: "courier new";">server 10.0.0.0 255.255.255.0</span><br />
<span style="font-family: "courier new";">ifconfig-pool-persist ipp.txt</span><br />
<br />
<br />
<span style="font-family: "courier new";">client-config-dir ccd</span> #Client specific settings, e.g. Fixed IP Addresses<br />
<span style="font-family: "courier new";">client-to-client <span style="font-family: "georgia";">#Allow clients to communicate with each other</span></span><br />
<br />
<span style="font-family: "courier new";">push "route 192.168.0.0 255.255.0.0"</span><br />
<br />
<span style="font-family: "courier new";">keepalive 60 120</span><br />
<br />
<span style="font-family: "courier new";">comp-lzo</span><br />
<span style="font-family: "courier new";">persist-key</span><br />
<span style="font-family: "courier new";">persist-tun</span><br />
<br />
<span style="font-family: "courier new";">status open-status.log</span><br />
<span style="font-family: "courier new";">verb 3</span><br />
<br />
<br />
<br />
Copy the generated client keys to /etc/openvpn/. You will need to copy, for example, acerlaptop.crt, acerlaptop.key and ca.crt and mentioned them in openvpn.conf on the client as follows.<br />
<br />
<br />
<br />
<span style="font-weight: bold;">[OpenVPN Client Config]</span><br />
<span style="font-family: "courier new";">#Configuration of OpenVPN Client<br />
<br />
</span><span style="font-family: "courier new";">client</span><br />
<span style="font-family: "courier new";">dev tun</span><br />
<span style="font-family: "courier new";">proto tcp</span><br />
<br />
<span style="font-family: "courier new";">remote openvpn.dyndns.org 1194 #public ip address and port of vpn server</span><br />
<br />
<span style="font-family: "courier new";">nobind</span><br />
<span style="font-family: "courier new";">persist-key</span><br />
<span style="font-family: "courier new";">persist-tun</span><br />
<br />
<span style="font-family: "courier new";">#client certificates</span><br />
<span style="font-family: "courier new";">ca ca.crt</span><br />
<span style="font-family: "courier new";">cert acerlaptop.crt</span><br />
<span style="font-family: "courier new";">key acerlaptop.key</span><br />
<span style="font-family: "courier new";">ns-cert-type server</span><br />
<span style="font-family: "courier new";">comp-lzo</span><br />
<span style="font-family: "courier new";">verb 3</span><br />
<br />
<br />
[Auto-start openvpn]<br />
Add the following in /etc/rc.conf on the server.<br />
<br />
<span style="font-family: "courier new";">openvpn_enable="YES"</span><br />
<br />
If not already present, also add the following knob in /etc/rc.conf to allow the server to route between your LAN and VPN subnets. <span style="font-family: "courier new";"> </span><br />
<span style="font-family: "courier new";"><br /></span>
<span style="font-family: "Courier New",Courier,monospace;">gateway_enable="YES"</span><br />
<br />
Note: Some documentation propose adding <span style="font-family: "courier new";">if_tun_load="YES"</span> to <span style="font-family: "courier new";">/boot/loader.conf</span>. I found that is not necessary. Openvpn will start the required device drivers automatically. You can try adding it, if openvpn fails to start or dynamically start it at a prompt by issuing <span style="font-family: "courier new";">kldload if_tun</span>.<br />
<br />
---<br />
<br />
The OpenVPN documentation provides more in depth explanation. It can be viewed at : http://openvpn.net/index.php/open-source/documentation/howto.html.Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-81487150115618751342010-12-29T02:20:00.000-08:002011-02-05T19:26:29.135-08:00Using FreeNAS 8.0 as a BridgeI have installed and tested this on FreeNAS 8.0 Beta<br /><br />My FreeNAS server and one workstation are in the same room and I needed a way to connect them to the LAN to allow for fast file transfers between all computers in my network.<br /><br />Since I lacked a switch, I needed to convert FreeNAS into a bridging device. It was just a matter of installing a spare NIC into the FreeNAS server and doing the following:<br /><br />Make my CF card readable (you might skip this step if you installed FreeNAS on a mechanical Hard drive).<br /><br /><span style="font-family:courier new;">mount -t ufs -w /dev/ufs/FreeNASs1a /</span><br /><br />Insert a FreeBSD 8.0 disk into your cd-rom drive and copy the files as shown:<br /><br /><span style="font-family:courier new;">mkdir /mnt/cdrom</span><br />Mount cdrom: <span style="font-family:courier new;">mount -t cd9660 /dev/acd0 /mnt/cdrom/</span><br /><br />Copy files across:<br /><br /><span style="font-family:courier new;">cp /mnt/cdrom/boot/kernel/if_bridge.ko /boot/kernel/</span><br /><span style="font-family:courier new;">cp /mnt/cdrom/boot/kernel/bridgestp.ko /boot/kernel/</span><br /><br /><span style="font-family:courier new;">ee /boot/loader.conf</span><br /><br />Add the following line:<br /><br /><span style="font-family:courier new;">if_bridge_load="YES"</span><br /><br />Save and exit<br /><br />Restart the server with "<span style="font-family:courier new;">reboot</span>"<br /><br /><br />Create the bridge and add interfaces:<br /><br /><span style="font-family:courier new;">ifconfig bridge create</span><br /><span style="font-family:courier new;">ifconfig bridge addm em0 addm em1</span><br /><span style="font-family:courier new;">ifconfig em0 up </span><br /><span style="font-family:courier new;">ifconfig em1 ip</span><br /><br /><span style="font-family:courier new;">dhclient bridge0</span> (or <span style="font-family:courier new;">ifconfig bridge0 inet 192.168.xx.xx netmask 255.255.255.0</span>)<br /><br />The name of your interfaces might vary. Check with <span style="font-family:courier new;">ifconfig</span>.<br /><br />Note: You can start the bridge automatically at startup. Refer to the <a href="http://www.freebsd.org/doc/handbook/network-bridging.html" target="_blank">FreeBSD Handbook Chapter 31.5</a> to see how its done.<br /><br /><br />P.S. You may do this on FreeNAS 7.x as well. You just need to get FreeBSD 7.x's bridge modules for that kernel. They can obtained from http://download.altstu.ru/FreeBSD/releases/i386/7.2-RELEASE/boot/kernel/ or from a FreeBSD 7.x iso image.Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com1tag:blogger.com,1999:blog-15933253.post-38807163412232361232010-12-24T16:10:00.001-08:002010-12-24T16:10:35.159-08:00Merry Christmas and Happy New Year<div style="font-family:arial,helvetica,sans-serif;font-size:12pt">Greetings All,<div style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div dir="ltr"><div style="font-family: 'Calibri'; color: rgb(0, 0, 0); font-size: 12pt;"><div> <div dir="ltr"> <div style="font-family: 'Calibri'; color: rgb(0, 0, 0); font-size: 12pt;"> <div> </div> <div>I would like to seize this opportunity to wish you all a most Merry Christmas and very Happy New Year. </div> <div>I pray that the New Year brings you bleesed joy, prosperity and success.</div> <div> </div> <div>Have a wonderful celebration...</div> <div> </div> <div><img style="background-image: none; border: 0px none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px;" title="christmas2" alt="christmas2" src="cid:1.2325429347@web130106.mail.mud.yahoo.com" border="0" height="500" width="703"></div> <div> </div> <div>With much festive spirit,</div> <div> </div> <div>Atwin.</div></div></div></div></div></div></div></div> </div><br> Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com1tag:blogger.com,1999:blog-15933253.post-21961855099575365312010-08-09T09:06:00.000-07:002010-08-09T09:08:01.539-07:00Installing Compiz Fusion on FedoraExecute the following as root in a terminal.<br /><br /><pre>yum install -y ccsm emerald-themes compizconfig-backend-gconf fusion-icon-gtk<br />emerald compiz-fusion compiz-fusion-gnome libcompizconfig compiz-gnome compiz-bcop<br />compiz compizconfig-python compiz-fusion-extras compiz-fusion-extras-gnome<br /></pre>Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-11273772239098430762010-08-09T07:49:00.000-07:002010-08-09T08:02:44.538-07:00Entering the BIOS Screen of an HP ProliantI recently salvaged an HP Proliant Server from the trash (I know!!). It was in a fully functioning order, sporting 1 GB of RAM and a 2.6 GHz Pentium IV processor. It also had an Adaptec RAID controller for the hot swap module.<br /><br />The problem I faced with the machine was when it boots up, the Adaptec controller displays its own boot-up screen - hence closing the default screen. I have never worked on an HP machine before so I had no idea how to get into the BIOS setup to configure the boot options.<br /><br />I managed to stall the computer with a bootable USB drive and found what the keys were.<br /><br />So, if you are stuck in the same dilemma I faced, these keys could come in handy.<br /><br />F8 - Boot Menu<br />F10 - Setup Menu<br />F12 - Network Boot<br />ESC - Summary and Boot Progress<br /><br />I am happy to say that this machine is now a dedicated NAS for my home network. :D (I also tried pfSense on it but NAS seem to be a more valuable duty for it - too powerful for routing.)Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-37874043408401968052010-07-05T09:05:00.001-07:002010-07-05T09:08:13.289-07:00Solving SSH problem in FedoraI have been asked many a times why SSH does not work on Fedora. The simple answer is SSH works. You just need to "unblock" it. The SSH port (22) is blocked by default in Fedora's firewall as a security measure. Go to System -> Administration -> Firewall and sign in as root. Check the box to allow SSH connections and Enable. <br /><br />SSH should now work.Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-69008946398955399402010-07-05T08:57:00.000-07:002010-07-05T09:05:21.231-07:00Installing Essential Software for FedoraI recently came across a very handy utility which installs a lot of small but much needed extras for Fedora.<br /><br />EasyLife for Fedora allows users to setup Flash, Java and a range of codecs and tools to play just about any multimedia file. It also has options to set the sudo functionality for normal users.<br /><br />The utility can be downloaded from http://easylifeproject.org/.<br /><br />Install it as root and you choose what features you want to enable. Its as easy as that.Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-80174593751430941192010-06-14T03:04:00.000-07:002010-06-14T03:07:47.999-07:00TI-83 Program to calculate Modulus (Remainder)Insert into PRGM Editor in TI Calculator<br /><br /><br /><span style="font-style: italic;">PROGRAM:MOD</span><br /><span style="font-style: italic;">:"MODULUS"</span><br /><span style="font-style: italic;">:ClrHome</span><br /><span style="font-style: italic;">:Prompt A,B</span><br /><span style="font-style: italic;">:fPart(A/B)*B --> C</span><br /><span style="font-style: italic;">:Disp C</span><br /><span style="font-style: italic;">:Pause</span><br /><span style="font-style: italic;">:ClrHome</span>Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-3973599000412656282010-06-04T08:20:00.001-07:002017-04-19T22:23:20.003-07:00Google Wallpapers?It's interesting to see Google borrowing features from Microsoft's Bing - like adding a wallpaper to the Google homepage. Check the story on Softpedia <a href="http://news.softpedia.com/news/Get-the-New-Custom-Background-Google-Homepage-Now-143863.shtml">here</a>.<br />
<br />
Add a wallpaper to your Google homepage <a href="https://www.google.com/accounts/Login?continue=http://www.google.com/&hl=en&service=ig&ltmpl=addphoto">here</a>.Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-58704091103000118312010-05-25T07:38:00.000-07:002010-05-25T07:41:39.189-07:00Fedora 13 is out<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_QnW_7xy1h38/S_vhaB9RUdI/AAAAAAAAAEw/Oefv5L8g5RM/s1600/f13launch.png"><img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 106px;" src="http://3.bp.blogspot.com/_QnW_7xy1h38/S_vhaB9RUdI/AAAAAAAAAEw/Oefv5L8g5RM/s320/f13launch.png" alt="" id="BLOGGER_PHOTO_ID_5475217609317241298" border="0" /></a><br />Fedora 13 is finally out after 2 weeks (or so!) of delay. It looks great - feature wise. I haven't had time to try it yet, but a review will come as soon as I find some time to test it.<br /><br />Download it at http://fedoraproject.org/en/get-fedoraCelebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-62114058043594009612010-05-05T00:11:00.000-07:002010-05-24T18:00:25.632-07:00Fedora 13 GoddardFedora 13 "Goddard" is due is 14 days. After the renewed disappointment that was Ubuntu 10.04, I can't wait to get Fedora 13 up and running. Fedora 12 is running full-time on both my servers and on my laptop - uptime of more than 5 months (on the server). Hehe :D<br /><br />Go for Goddard!Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-76819853705220898322010-03-13T06:14:00.000-08:002010-03-13T06:40:58.523-08:00Removing old packages from YUM cache<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_QnW_7xy1h38/S5uhyAAz3NI/AAAAAAAAAEk/WNHUetQSLgo/s1600-h/Screenshot.png"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 234px;" src="http://1.bp.blogspot.com/_QnW_7xy1h38/S5uhyAAz3NI/AAAAAAAAAEk/WNHUetQSLgo/s320/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5448126054603676882" border="0" /></a><br />Running multiple Fedora machines means that I need to update them regularly to keep them in proper running conditions. Being a user in Australia, updating each and every machine puts a load on both my bandwidth and wallet since I pay per GB downloaded.<br /><br />The simple solution is to enable YUM to keep the downloaded cache and tell all the machines to download the updates from that one machine. The downside of this method is that updates get acculmulated and hence puts a strain on hard disk space as old and new packages are collected.<br /><br />I needed a way to clean-up the cache and keep only current updates.<br /><br />The simple way to do it is to use a wonderful utility called <span style="font-weight: bold;">Tidy RPM Cache</span>. Its a python script written to recursively scan packages and remove the old ones. For Example if you have three versions of the same package (e.g. Wireshark 1.2.01, 1.2.02 and 1.2.03), Tidy RPM Cache, will only keep the latest one, i.e. Wireshark 1.2.03.<br /><br />All you have to do is execute the script by pointing it to the directory where your cache is stored. The command is illustrated below. It will scan and clean all the repositories from which you have downloaded packages. Rest assured, you will be prompted whether or not you want to clear the packages once the scan is complete.<br /><br /><span style="font-style: italic;">[UpdateServer Desktop]$ </span><span style="font-style: italic; font-weight: bold;font-family:courier new;" >./tidy-rpm-cache.py --dir /var/cache/yum/i386/12/<br /><br /></span><a href="http://freshmeat.net/projects/rm_obsolete_rpms"><span style="font-family:courier new;">Tidy RPM Cache can be downloaded from freshmeat.</span></a><span style="font-style: italic; font-weight: bold;font-family:courier new;" > </span><span style="font-family:courier new;">Just click on TAR/GZ in the Links section.</span><span style="font-style: italic; font-weight: bold;font-family:courier new;" ><br /></span>Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-3666056974095890092010-01-10T17:02:00.000-08:002010-01-10T18:46:18.747-08:00Making Latex Work on Fedora 12Although, TeX packages can be easily installed via the Add/Remove software, I find it easier to use the command-line specially when you need to install the tex packages.<br /><br />Just issue the following commands as root to get everything working. Some packages might be redundant but they do get all the aspects of compiling tex documents and their bib files working.<br /><br /><span style="font-weight: bold;">yum - y install tetex-latex </span><br /><span style="font-weight: bold;">yum - y install texlive </span><br /><span style="font-weight: bold;">yum - y install tetex-IEEEtran<br /></span><span><br />After installing these packages, you can compile your documents to pdf easily using <span style="font-weight: bold;">pdflatex </span><span style="font-style: italic; font-weight: bold;">documentname</span><span style="font-weight: bold;">.tex</span> and <span style="font-weight: bold;">bibtex </span><span style="font-style: italic; font-weight: bold;">bibliography</span><span style="font-weight: bold;">.aux</span> and there you have it.</span><span style="font-weight: bold;"><br /></span>Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com2tag:blogger.com,1999:blog-15933253.post-71082850976073659432009-12-27T01:22:00.001-08:002009-12-27T01:22:38.751-08:00Have a great One... ;)<br>Hello All,<br><br>Hope you had a great year and looking ahead for a bright beginning on the next.<br><br><br>Wish you all a very Merry Christmas and a Wonderful New Year 2010.<br><br>All the best,<br><br><br>Atwin <img src="http://gfx2.hotmail.com/mail/w4/pr01/ltr/emoticons/smile_wink.gif" alt="" height="19" width="19"><br> <span style="text-decoration: underline;"></span><br><a href="http://www.spreadfirefox.com/node&amp;id=35214&amp;t=218%22%3E%3Cimg"></a><br><br> <br /><hr />Windows Live: <a href='http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010' target='_new'>Friends get your Flickr, Yelp, and Digg updates when they e-mail you.</a>Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0tag:blogger.com,1999:blog-15933253.post-85090076581980929172009-10-08T22:32:00.000-07:002009-10-08T22:36:43.376-07:00Ubuntu 9.10Lo and Behold! After the great success of Ubuntu 9.04, codenamed Jaunty Jackalope, Ubuntu 9.10 is about release in 20 days time. Codenamed Karmic Koala, it features many new improvements and additions.<br /><br />Can't wait? Download the BETA version <a href="http://www.ubuntu.com/testing/karmic/beta">here</a>.<br /><br />Check out the New Features <a href="http://www.ubuntu.com/testing/karmic/beta#New%20features%20since%20Ubuntu%209.04">here</a>.Celebornhttp://www.blogger.com/profile/06949017597242603561noreply@blogger.com0