| 
				   | 
				
| (30 intermediate revisions by the same user not shown) | 
| Line 7: | 
Line 7: | 
 | This page below is my scratch pad.  |  | This page below is my scratch pad.  | 
 | 
  |  | 
  | 
 | = Compile a Kernel =
  |  | [[nftables Router Tutorial]]  | 
 | 
  |  | 
  | 
 | == RHEL 6 ==  |  | = Files =  | 
 | 
  |  | 
  | 
 | Using a kernel source RPM.
  |  | [[Openshift Errors]]  | 
 |    |  | 
 | <source lang="bash">
  |  | 
 | # Setup the build environment.
  |  | 
 | yum -y groupinstall "Development Tools"
  |  | 
 | yum -y install xmlto elfutils-libelf-devel zlib-devel binutils-devel
  |  | 
 |    |  | 
 | # ASCIIdoc needs to be installed from source at the moment.
  |  | 
 | wget -c http://downloads.sourceforge.net/project/asciidoc/asciidoc/8.6.3/asciidoc-8.6.3.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fasciidoc%2Ffiles%2F&ts=1290017689&use_mirror=superb-sea2
  |  | 
 | tar -xvzf asciidoc-8.6.3.tar.gz
  |  | 
 | cd asciidoc-8.6.3
  |  | 
 | autoconf
  |  | 
 | ./configure
  |  | 
 | make
  |  | 
 | make install
  |  | 
 | cd ~
  |  | 
 |    |  | 
 | # Get the src RPM
  |  | 
 | wget -c http://fedorapeople.org/~myoung/dom0/src/kernel-2.6.32.25-172.xendom0.fc12.src.rpm
  |  | 
 |    |  | 
 | # Install the source.
  |  | 
 | rpm -i kernel-2.6.32.25-172.xendom0.fc12.src.rpm
  |  | 
 |    |  | 
 | # Edit the spec file and build (remove the 'asciidoc' requirement as it was fulfilled via tarball).
  |  | 
 | cd rpmbuild/SPECS/
  |  | 
 | vim kernel.spec
  |  | 
 | rpmbuild -ba kernel.spec
  |  | 
 | </source>
  |  | 
 |    |  | 
 | Enable the source RPM repo
  |  | 
 | <source lang="bash">
  |  | 
 | vim /etc/yum.repos.d/rhel-src.repo
  |  | 
 | </source>
  |  | 
 | <source lang="bash">
  |  | 
 | [rhel-src]
  |  | 
 | name=Red Hat Enterprise Linux $releasever - $basearch - Source
  |  | 
 | baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/
  |  | 
 | enabled=1
  |  | 
 | gpgcheck=1
  |  | 
 | gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
  |  | 
 | </source>
  |  | 
 |    |  | 
 | Build the Xen hypervisor
  |  | 
 |    |  | 
 | <source lang="bash">
  |  | 
 | yum install transfig libidn-devel SDL-devel curl-devel libX11-devel python-devel ghostscript tetex-latex ncurses-devel gtk2-devel libaio-devel texinfo gnutls-devel openssl-devel libuuid-devel bzip2-devel xz-devel e2fsprogs-devel glibc-devel.i686 java-1.6.0-openjdk-devel libICE-devel libSM-devel gd 
  |  | 
 |    |  | 
 | # Build dependency 'pciutils-devel'
  |  | 
 | cd ~
  |  | 
 | yumdownloader --source pciutils
  |  | 
 | rpm -ivh pciutils-3.1.4-9.el6.src.rpm
  |  | 
 | cd rpmbuild/SPECS/
  |  | 
 | rpmbuild -ba pciutils.spec 
  |  | 
 | cd ~
  |  | 
 | rpm -ivh rpmbuild/RPMS/x86_64/pciutils-devel-3.1.4-9.el6.x86_64.rpm 
  |  | 
 |    |  | 
 | # Build dependency 'iasl'
  |  | 
 | cd ~
  |  | 
 | wget -c ftp://ftp.nrc.ca/pub/systems/linux/redhat/fedora/linux/releases/14/Everything/source/SRPMS/iasl-20100528-2.fc14.src.rpm
  |  | 
 | rpm -ivh iasl-20100528-2.fc14.src.rpm
  |  | 
 | cd rpmbuild/SPECS/
  |  | 
 | rpmbuild -ba iasl.spec
  |  | 
 | cd ~
  |  | 
 | rpm -ivh rpmbuild/RPMS/x86_64/iasl-*
  |  | 
 |    |  | 
 | # Build dependency 'dev86'
  |  | 
 | cd ~
  |  | 
 | wget -c ftp://ftp.nrc.ca/pub/systems/linux/redhat/fedora/linux/releases/14/Everything/source/SRPMS/dev86-0.16.17-16.fc14.src.rpm
  |  | 
 | rpm -ivh dev86-0.16.17-16.fc14.src.rpm
  |  | 
 | cd rpmbuild/SPECS/
  |  | 
 | rpmbuild -ba dev86.spec
  |  | 
 | # type 'quit' at the prompt.
  |  | 
 | cd ~
  |  | 
 | rpm -ivh rpmbuild/RPMS/x86_64/dev86-*
  |  | 
 |    |  | 
 | # Build dependency 'perl-Text-Unidecode'
  |  | 
 | cd ~
  |  | 
 | wget -c ftp://ftp.nrc.ca/pub/systems/linux/redhat/fedora/linux/releases/14/Everything/source/SRPMS/perl-Text-Unidecode-0.04-9.fc14.src.rpm
  |  | 
 | rpm -ivh perl-Text-Unidecode-0.04-9.fc14.src.rpm
  |  | 
 | cd rpmbuild/SPECS/
  |  | 
 | rpmbuild -ba perl-Text-Unidecode.spec
  |  | 
 | cd ~
  |  | 
 | rpm -ivh rpmbuild/RPMS/noarch/perl-Text-Unidecode-0.04-9.el6.noarch.rpm
  |  | 
 |    |  | 
 | # Build dependency 'latex2html'
  |  | 
 | cd ~
  |  | 
 | wget -c ftp://ftp.nrc.ca/pub/systems/linux/redhat/fedora/linux/releases/14/Everything/source/SRPMS/latex2html-2008-4.fc13.src.rpm
  |  | 
 | rpm -ivh latex2html-2008-4.fc13.src.rpm
  |  | 
 | cd rpmbuild/SPECS/
  |  | 
 | rpmbuild -ba latex2html.spec
  |  | 
 | cd ~
  |  | 
 | rpm -ivh rpmbuild/RPMS/noarch/latex2html-2008-4.el6.noarch.rpm
  |  | 
 |    |  | 
 |    |  | 
 | # Build dependency 'gd'
  |  | 
 | cd ~
  |  | 
 | wget -c ftp://ftp.nrc.ca/pub/systems/linux/redhat/fedora/linux/releases/14/Everything/source/SRPMS/
  |  | 
 | rpm -ivh 
  |  | 
 | cd rpmbuild/SPECS/
  |  | 
 | rpmbuild -ba 
  |  | 
 | cd ~
  |  | 
 | rpm -ivh rpmbuild/RPMS/
  |  | 
 |    |  | 
 |    |  | 
 | # Build dependency 'kpathsea-devel'
  |  | 
 | cd ~
  |  | 
 | wget -c ftp://ftp.nrc.ca/pub/systems/linux/redhat/fedora/linux/releases/14/Everything/source/SRPMS/texlive-2007-56.fc14.src.rpm
  |  | 
 | rpm -ivh texlive-2007-56.fc14.src.rpm
  |  | 
 | cd rpmbuild/SPECS/
  |  | 
 | rpmbuild -ba 
  |  | 
 | cd ~
  |  | 
 | rpm -ivh rpmbuild/RPMS/
  |  | 
 |    |  | 
 |    |  | 
 |    |  | 
 | # Build dependency ''
  |  | 
 | cd ~
  |  | 
 | wget -c ftp://ftp.nrc.ca/pub/systems/linux/redhat/fedora/linux/releases/14/Everything/source/SRPMS/
  |  | 
 | rpm -ivh 
  |  | 
 | cd rpmbuild/SPECS/
  |  | 
 | rpmbuild -ba 
  |  | 
 | cd ~
  |  | 
 | rpm -ivh rpmbuild/RPMS/
  |  | 
 |    |  | 
 |    |  | 
 | # Build dependency 'tetex-tex4ht'
  |  | 
 | cd ~
  |  | 
 | wget -c ftp://ftp.nrc.ca/pub/systems/linux/redhat/fedora/linux/releases/14/Everything/source/SRPMS/tetex-tex4ht-1.0.2008_09_16_1413-3.fc12.src.rpm
  |  | 
 | rpm -ivh tetex-tex4ht-1.0.2008_09_16_1413-3.fc12.src.rpm
  |  | 
 | cd rpmbuild/SPECS/
  |  | 
 | rpmbuild -ba 
  |  | 
 | cd ~
  |  | 
 | rpm -ivh rpmbuild/RPMS/
  |  | 
 |    |  | 
 |    |  | 
 | # Build dependency ''
  |  | 
 | cd ~
  |  | 
 | wget -c ftp://ftp.nrc.ca/pub/systems/linux/redhat/fedora/linux/releases/14/Everything/source/SRPMS/
  |  | 
 | rpm -ivh 
  |  | 
 | cd rpmbuild/SPECS/
  |  | 
 | rpmbuild -ba 
  |  | 
 | cd ~
  |  | 
 | rpm -ivh rpmbuild/RPMS/
  |  | 
 |    |  | 
 |    |  | 
 | # Build dependency 'texi2html'
  |  | 
 | cd ~
  |  | 
 | wget -c ftp://ftp.nrc.ca/pub/systems/linux/redhat/fedora/linux/releases/14/Everything/source/SRPMS/texi2html-1.82-5.fc12.src.rpm
  |  | 
 | rpm -ivh texi2html-1.82-5.fc12.src.rpm
  |  | 
 | cd rpmbuild/SPECS/
  |  | 
 | rpmbuild -ba texi2html.spec
  |  | 
 |    |  | 
 |    |  | 
 | wget -c ftp://ftp.nrc.ca/pub/systems/linux/redhat/fedora/linux/releases/14/Fedora/source/SRPMS/xen-4.0.1-6.fc14.src.rpm
  |  | 
 | </source>
  |  | 
 |    |  | 
 | = COS Stuff =
  |  | 
 |    |  | 
 | * [[Leah - README COS Software]]
  |  | 
 |    |  | 
 | = Ongoing =
  |  | 
 |    |  | 
 | * [[Red Hat Cluster Service 3 Tutorial]]
  |  | 
 | * [[Xen vs. KVM Benchmark - Nov. 2010]]
  |  | 
 |    |  | 
 | = Sandbox =
  |  | 
 |    |  | 
 | I ask people questions here.
  |  | 
 |    |  | 
 | * [[Image:2-pin_bicolour_LED_circuit_try1.png|thumb|center|241px|2-Pin Bi-colour LED circuit, try 1.]]
  |  | 
 |    |  | 
 | = Papers to write =
  |  | 
 |    |  | 
 | I took these off the front page until I am actually ready to start them.
  |  | 
 |    |  | 
 | * [[3+ Node CentOS5 Cluster + SoftSAN]] - How to build a 3+ Node Cluster using a home-brew iSCSI/SAN server on CentOS 5
  |  | 
 | * [[Setting Up Multilink PPP on Fedora 13]]
  |  | 
 | * [[Postfix + Postgrey + PostgreSQL on Debian|Postfix + Postgrey + PostgreSQL]] - Multi-domain, PgSQL authenticated mail server
  |  | 
 |    |  | 
 | = Code Dump =
  |  | 
 |    |  | 
 | == AVR from CLI ==
  |  | 
 |    |  | 
 | <source lang="bash">
  |  | 
 | perl -MDevice::SerialPort -e 'Device::SerialPort->new("/dev/ttyUSB0")->pulse_dtr_on(1000)'; \
  |  | 
 | ./hardware/tools/avrdude -Chardware/tools/avrdude.conf -q -q -pm328p -cstk500v1 -P/dev/ttyUSB0 -b57600 -D -Uflash:w:/home/pekka/sketchbook/Blink2/applet/Blink2.hex;
  |  | 
 | </source>
  |  | 
 |    |  | 
 | == Mux/Demux ==
  |  | 
 |    |  | 
 | <source lang="text">
  |  | 
 |    |  | 
 |                                                                         <- Outputs ->
  |  | 
 |          1   2   3   4   5   6   7   8   9   10  11  12  13  14  15  16               17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32
  |  | 
 |          |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |                |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
  |  | 
 |         -+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-              -+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-
  |  | 
 | S0 ----/                                                               \     S0 ----/                                                               \
  |  | 
 | S1 ---/                                                                 \    S1 ---/                                                                 \
  |  | 
 | S2 --/                                                                   \   S2 --/                                                                   \
  |  | 
 | S3 -/                                                                     \  S3 -/                                                                     \
  |  | 
 |    /_______________________________________________________________________\    /_______________________________________________________________________\
  |  | 
 |                                        |                                                                            |
  |  | 
 |                                        \-----------------------------------.   .------------------------------------/
  |  | 
 |                                                                            |   |
  |  | 
 |                                                                           -+---+-
  |  | 
 |                                                                      S4 -/       \
  |  | 
 |                                                                         /_________\
  |  | 
 |                                                                              |
  |  | 
 |                                                                            Input
  |  | 
 | S0-S5 = Source pins
  |  | 
 | </source>
  |  | 
 |    |  | 
 | = Research =
  |  | 
 |    |  | 
 | [[MediaWiki on Debian/PostgreSQL]]
  |  | 
 |    |  | 
 | [[MediaWiki on CentOS/MySQL]]
  |  | 
 |    |  | 
 | [[Bath Bookshelf]]  |  | 
 |    |  | 
 | -----
  |  | 
 | 
  |  | 
  | 
 | = Misc =  |  | = Misc =  | 
 | 
  |  | 
  | 
 | * [[Pics]]
  |  | {| class="wikitable"  | 
 |    |  | |- style="vertical-align:top;"  | 
 | *** Madi: Look up [http://en.wikipedia.org/wiki/Tsugaru-jamisen] when you get home!
  |  | | style="height:100px; width:100px; text-align:left;" | A  | 
 |    |  | | style="height:100px; width:100px; text-align:center;" | B  | 
 | # whut?
  |  | | style="height:100px; width:100px; text-align:right;" | C  | 
 | ## b
  |  | |- style="vertical-align:middle;"  | 
 | # c
  |  | | style="height:100px; width:100px; text-align:left;" | D  | 
 | ## d
  |  | | style="height:100px; width:100px; text-align:center;" | E  | 
 | ### e
  |  | | style="height:100px; width:100px; text-align:right;" | F  | 
 |    |  | |- style="vertical-align:bottom;"  | 
 | = Main Links =  |  | | style="height:100px; width:100px; text-align:left;" | G  | 
 |    |  | | style="height:100px; width:100px; text-align:center;" | H  | 
 | [[T400s]]
  |  | | style="height:100px; width:100px; text-align:right;" | I  | 
 |    |  | |}  | 
 | [[Node Assassin]]
  |  | 
 |    |  | 
 | [[Red Hat Clustering]]
  |  | 
 |    |  | 
 | [[Sample Xen 2-node Cluster Network Map]]
  |  | 
 |    |  | 
 | = MW Code Testing =
  |  | 
 |    |  | 
 |  Indent
  |  | 
 |    |  | 
 | <pre>
  |  | 
 | Pretext
  |  | 
 | </pre>
  |  | 
 |    |  | 
 | <source lang="perl">
  |  | 
 | package AN::Tools;
  |  | 
 | # This is the "root" package that manages the sub modules and controls access
  |  | 
 | # to their methods.
  |  | 
 | # 
  |  | 
 | # Dedicated to Leah Kubik who helped me back in the early days of TLE-BU.
  |  | 
 | # 
  |  | 
 |    |  | 
 | BEGIN
  |  | 
 | {
  |  | 
 | 	our $VERSION="0.1.001";
  |  | 
 | }
  |  | 
 |    |  | 
 | use strict;
  |  | 
 | use warnings;
  |  | 
 | my $THIS_FILE="Tools.pm";
  |  | 
 |    |  | 
 | # Setup for UTF-8 mode.
  |  | 
 | use utf8;
  |  | 
 | $ENV{'PERL_UNICODE'}=1;
  |  | 
 | </source>
  |  | 
 |    |  | 
 | Test <span class="code">while (1) { code... }</span> span.
  |  | 
 |    |  | 
 | * [[DNS - Bind9 Master/Slave Setup on Debian 5.x]]
  |  | 
 |    |  | 
 | = Code Debugging =
  |  | 
 |    |  | 
 | <source lang="c">
  |  | 
 | #include <Ethernet.h>
  |  | 
 |    |  | 
 | // MAC Address; Array of six bytes.
  |  | 
 | byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xEF };
  |  | 
 | // Arduino IP, netmask and gateway.
  |  | 
 | byte ip[] = { 192, 168, 1, 66 };
  |  | 
 | // Netmask defaults to 255.255.255.0.
  |  | 
 | byte nm[] = { 255, 255, 255, 0 };
  |  | 
 | // Default gateway defaults to IP with the last octal set to 1.
  |  | 
 | byte dg[] = { 192, 168, 1, 1 };
  |  | 
 | // Laptop's IP address that I test connecting to.
  |  | 
 | byte remote[] = { 192, 168, 1, 105 };
  |  | 
 | // This is the port that I will listen on.
  |  | 
 | int port=238;
  |  | 
 |    |  | 
 | // Setup the server.
  |  | 
 | Server server = Server(port);
  |  | 
 |    |  | 
 | void setup()
  |  | 
 | {
  |  | 
 | 	// Setup the IP info.
  |  | 
 | 	Ethernet.begin(mac, ip, dg, nm);
  |  | 
 | 	
  |  | 
 | 	// Start the server listening for connections.
  |  | 
 | 	server.begin();
  |  | 
 | 	
  |  | 
 | 	// Print what comes in over telnet.
  |  | 
 | 	Serial.begin(9600);
  |  | 
 | 	Serial.println("Node Assassin: 'Ariel' now listening for orders.");
  |  | 
 | }  |  | 
 | 
  |  | 
  | 
 | void loop()
  |  | <html>  | 
 | {  |  | <div id="mc_embed_shell">  | 
 | 	Client client=server.available();
  |  |       <link href="//cdn-images.mailchimp.com/embedcode/classic-061523.css" rel="stylesheet" type="text/css">  | 
 | 	if (client)
  |  |   <style type="text/css">  | 
 | 	{
  |  |         #mc_embed_signup{background:#fff; false;clear:left; font:14px Helvetica,Arial,sans-serif; width: 600px;}  | 
 | 		char reading = client.read();
  |  |         /* Add your own Mailchimp form style overrides in your site stylesheet or in this style block.  | 
 | 		// This is what I am trying to concatenate and to print as a whole line.
  |  |            We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */  | 
 | 		Serial.println(reading);
  |  | </style>  | 
 | 		server.write(reading);
  |  | <div id="mc_embed_signup">  | 
 | 	}
  |  |     <form action="https://alteeve.us19.list-manage.com/subscribe/post?u=acdfe4f686c8967d0caf32e4b&id=be6b396452&f_id=0083a8e4f0" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank">  | 
 | }  |  |         <div id="mc_embed_signup_scroll"><h2>Join our newsletter</h2>  | 
 | </source>  |  |             <div class="indicates-required"><span class="asterisk">*</span> indicates required</div>  | 
 |  |             <div class="mc-field-group"><label for="mce-EMAIL">Email Address <span class="asterisk">*</span></label><input type="email" name="EMAIL" class="required email" id="mce-EMAIL" required="" value=""></div><div class="mc-field-group"><label for="mce-FNAME">Name </label><input type="text" name="FNAME" class=" text" id="mce-FNAME" value=""></div><div class="mc-field-group"><label for="mce-MMERGE6">Company </label><input type="text" name="MMERGE6" class=" text" id="mce-MMERGE6" value=""></div>  | 
 |  |         <div id="mce-responses" class="clear">  | 
 |  |             <div class="response" id="mce-error-response" style="display: none;"></div>  | 
 |  |             <div class="response" id="mce-success-response" style="display: none;"></div>  | 
 |  |         </div><div aria-hidden="true" style="position: absolute; left: -5000px;"><input type="text" name="b_acdfe4f686c8967d0caf32e4b_be6b396452" tabindex="-1" value=""></div><div class="clear"><input type="submit" name="subscribe" id="mc-embedded-subscribe" class="button" value="Subscribe"></div>  | 
 |  |     </div>  | 
 |  | </form>  | 
 |  | </div>  | 
 |  | <script type="text/javascript" src="//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js"></script><script type="text/javascript">(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';fnames[6]='MMERGE6';ftypes[6]='text';fnames[17]='MMERGE17';ftypes[17]='text';fnames[29]='MMERGE29';ftypes[29]='text';fnames[28]='MMERGE28';ftypes[28]='text';fnames[27]='MMERGE27';ftypes[27]='text';fnames[26]='MMERGE26';ftypes[26]='text';fnames[25]='MMERGE25';ftypes[25]='text';fnames[24]='MMERGE24';ftypes[24]='text';fnames[23]='MMERGE23';ftypes[23]='text';fnames[22]='MMERGE22';ftypes[22]='text';fnames[21]='MMERGE21';ftypes[21]='text';fnames[20]='MMERGE20';ftypes[20]='text';fnames[19]='MMERGE19';ftypes[19]='text';fnames[18]='MMERGE18';ftypes[18]='text';fnames[15]='MMERGE15';ftypes[15]='text';fnames[16]='MMERGE16';ftypes[16]='text';fnames[14]='MMERGE14';ftypes[14]='text';fnames[13]='MMERGE13';ftypes[13]='text';fnames[12]='MMERGE12';ftypes[12]='text';fnames[11]='MMERGE11';ftypes[11]='text';fnames[10]='MMERGE10';ftypes[10]='text';fnames[9]='MMERGE9';ftypes[9]='text';fnames[8]='MMERGE8';ftypes[8]='text';fnames[7]='MMERGE7';ftypes[7]='text';fnames[5]='BIRTHDAY';ftypes[5]='birthday';fnames[4]='PHONE';ftypes[4]='phone';fnames[3]='ADDRESS';ftypes[3]='address';fnames[2]='LNAME';ftypes[2]='text';fnames[30]='MMERGE30';ftypes[30]='text';}(jQuery));var $mcj = jQuery.noConflict(true);</script></div>  | 
 |  | </html>  | 
 | 
  |  | 
  | 
 | = Doorbot UTF8 Test =
  |  | 
 | 
  |  | 
  | 
 | [[Doorbot UTF8 Test - ドアボト語テスト]]  |  | {| class="wikitable" width="100%"  | 
 | {{template:footer}}
  |  | |- style="vertical-align:middle;"  | 
 |  | | style="text-align:center; vertical-align:middle;" | [[image:Brocade_icx6610-48_front-left.png|thumb|center|400px|Brocade [http://www.brocade.com/products/all/switches/product-details/icx-6610-switch/index.page ICX6610-48] 8x SFP+, 48x 1Gbps RJ45, 160Gbit stacked switch. Photo by [http://newsroom.brocade.com/Image-Gallery/Product-Images Brocade].]]  | 
 |  | | style="text-align:center; vertical-align:middle;" | [[image:Brocade_icx6450-25_front_01.jpg|thumb|center|400px|Brocade [http://www.brocade.com/products/all/switches/product-details/icx-6430-and-6450-switches/index.page ICX6450-48] 4x SFP+, 24x 1Gbps RJ45, 40Gbit stacked switch. Photo by [http://newsroom.brocade.com/Image-Gallery/Product-Images Brocade].]]  | 
 |  | |}  |