User:Digimer: Difference between revisions

From Alteeve Wiki
Jump to navigation Jump to search
(23 intermediate revisions by the same user not shown)
Line 6: Line 6:


This page below is my scratch pad.
This page below is my scratch pad.
= Compile a Kernel =
== RHEL 6 ==
Using a kernel source RPM.
<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 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 libXpm-devel libjpeg-devel libXaw-devel imake qt-devel qt3-devel libtiff-devel cmake expat-devel dvipng ImageMagick dos2unix ruby
# 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
### This should be done after poppler... sort out the best order in the next go-round.
# 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 ~
yumdownloader --source gd
rpm -ivh gd-2.0.35-10.el6.src.rpm
cd rpmbuild/SPECS/
rpmbuild -ba gd.spec
cd ~
rpm -ivh rpmbuild/RPMS/x86_64/gd-devel-2.0.35-10.el6.x86_64.rpm
# Build dependency 't1lib-devel'
cd ~
yumdownloader --source t1lib
rpm -ivh t1lib-5.1.2-6.el6.src.rpm
cd rpmbuild/SPECS/
rpmbuild -ba t1lib.spec
cd ~
rpm -ivh rpmbuild/RPMS/x86_64/t1lib-*
# Build dependency 'Xaw3d-devel'
cd ~
yumdownloader --source Xaw3d
rpm -ivh Xaw3d-1.5E-15.1.el6.src.rpm
cd rpmbuild/SPECS/
rpmbuild -ba Xaw3d.spec
cd ~
rpm -ivh rpmbuild/RPMS/x86_64/Xaw3d-*
# Build dependency 'lcms-devel'
cd ~
yumdownloader --source lcms-libs
rpm -ivh lcms-1.19-1.el6.src.rpm
cd rpmbuild/SPECS/
rpmbuild -ba lcms.spec
cd ~
rpm -ivh rpmbuild/RPMS/x86_64/lcms-devel-1.19-1.el6.x86_64.rpm
# Build dependency 'openjpeg-devel'
cd ~
yumdownloader --source openjpeg
rpm -ivh openjpeg-1.3-7.el6.src.rpm
cd rpmbuild/SPECS/
rpmbuild -ba openjpeg.spec
cd ~
rpm -ivh rpmbuild/RPMS/x86_64/openjpeg-devel-1.3-7.el6.x86_64.rpm
### NOTE: If this step fails, log out and then back in, then try again.
# Build dependency 'poppler-data'
cd ~
yumdownloader --source poppler-data
rpm -ivh poppler-data-0.4.0-1.el6.src.rpm
cd rpmbuild/SPECS/
rpmbuild -ba poppler-data.spec
cd ~
rpm -ivh rpmbuild/RPMS/noarch/poppler-data-0.4.0-1.el6.noarch.rpm
# Build dependency 'poppler-devel'
cd ~
yumdownloader --source poppler
rpm -ivh poppler-0.12.4-3.el6_0.1.src.rpm
cd rpmbuild/SPECS/
rpmbuild -ba poppler.spec
cd ~
rpm -Uvh rpmbuild/RPMS/x86_64/poppler-*
# This may be needed if the shipped poppler was removed, taking these with them.
yum install latex2html tex-preview texlive texlive-dvips texlive-latex texlive-texmf-latex texlive-utils
# Build dependency 'teckit'
cd ~
yumdownloader --source teckit
rpm -ivh teckit-2.5.1-4.1.el6.src.rpm
cd rpmbuild/SPECS/
rpmbuild -ba teckit.spec
cd ~
rpm -ivh rpmbuild/RPMS/x86_64/teckit-*
# Build dependency 'sharutils'
cd ~
wget -c ftp://ftp.nrc.ca/pub/systems/linux/redhat/fedora/linux/releases/14/Everything/source/SRPMS/sharutils-4.10-1.fc14.src.rpm
rpm -ivh sharutils-4.10-1.fc14.src.rpm
cd rpmbuild/SPECS/
rpmbuild -ba sharutils.spec
cd ~
rpm -ivh rpmbuild/RPMS/x86_64/sharutils-4.10-1.el6.x86_64.rpm
# Build dependency 'plotutils'
cd ~
yumdownloader --source plotutils
rpm -ivh plotutils-2.5-7.1.el6.src.rpm
cd rpmbuild/SPECS/
rpmbuild -ba plotutils.spec
cd ~
rpm -ivh rpmbuild/RPMS/x86_64/plotutils-*
# Build dependency 'libEMF'
cd ~
yumdownloader --source libEMF
rpm -ivh libEMF-1.0.4-1.el6.src.rpm
cd rpmbuild/SPECS/
rpmbuild -ba libEMF.spec
cd ~
rpm -ivh rpmbuild/RPMS/x86_64/libEMF-*
# Build dependency 'pstoedit'
cd ~
yumdownloader --source pstoedit
rpm -ivh pstoedit-3.45-10.el6.src.rpm
cd rpmbuild/SPECS/
rpmbuild -ba pstoedit.spec
cd ~
rpm -ivh rpmbuild/RPMS/x86_64/pstoedit-*
### Yes, the 'kpathsea' source is 'texlive', that's not a typo.
# Build dependency 'kpathsea-devel'
cd ~
yumdownloader --source kpathsea
rpm -ivh texlive-2007-56.el6.src.rpm
cd rpmbuild/SPECS/
rpmbuild -ba texlive.spec
cd ~
rpm -ivh rpmbuild/RPMS/x86_64/kpathsea-devel-2007-56.el6.x86_64.rpm
### Left off here...
yum remove texlive latex2html tex-preview texinfo-tex texlive-dvips texlive-latex texlive-texmf-latex texlive-utils
### This also creates 'info-4.13a-8.el6.x86_64.rpm', may need to update to it...
# Build dependency 'texinfo-tex'
cd ~
yumdownloader --source texinfo
rpm -ivh texinfo-4.13a-8.el6.src.rpm
cd rpmbuild/SPECS/
rpmbuild -ba texinfo.spec
cd ~
rpm -ivh rpmbuild/RPMS/x86_64/texinfo-*
# 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 tetex-tex4ht.spec
cd ~
rpm -ivh rpmbuild/RPMS/x86_64/tetex-tex4ht-1.0.2008_09_16_1413-3.el6.x86_64.rpm
# 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()
{
Client client=server.available();
if (client)
{
char reading = client.read();
// This is what I am trying to concatenate and to print as a whole line.
Serial.println(reading);
server.write(reading);
}
}
</source>


= 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].]]
|}

Revision as of 21:12, 10 November 2016

 AN!Wiki :: Digimer

Me

Digimer <- about me.

This page below is my scratch pad.

Misc

A B C
D E F
G H I


Brocade ICX6610-48 8x SFP+, 48x 1Gbps RJ45, 160Gbit stacked switch. Photo by Brocade.
Brocade ICX6450-48 4x SFP+, 24x 1Gbps RJ45, 40Gbit stacked switch. Photo by Brocade.