User:Digimer

From Alteeve Wiki
Revision as of 23:27, 17 November 2010 by Digimer (talk | contribs) (→‎RHEL 6)
Jump to navigation Jump to search

 AN!Wiki :: Digimer

Me

Digimer <- about me.

This page below is my scratch pad.

Compile a Kernel

RHEL 6

Using a kernel source RPM.

# 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

Enable the source RPM repo

vim /etc/yum.repos.d/rhel-src.repo
[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

Build the Xen hypervisor

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 libXpm-devel libjpeg-devel libXaw-devel imake qt-devel qt3-devel libtiff-devel cmake

# 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 ~
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

# 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 -ivh rpmbuild/RPMS/

# ^- Failing here.



# 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 texlive.spec
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

COS Stuff

Ongoing

Sandbox

I ask people questions here.

  • 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.

Code Dump

AVR from CLI

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;

Mux/Demux

                                                                        <- 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

Research

MediaWiki on Debian/PostgreSQL

MediaWiki on CentOS/MySQL

Bath Bookshelf


Misc

      • Madi: Look up [1] when you get home!
  1. whut?
    1. b
  2. c
    1. d
      1. e

Main Links

T400s

Node Assassin

Red Hat Clustering

Sample Xen 2-node Cluster Network Map

MW Code Testing

Indent
Pretext
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;

Test while (1) { code... } span.

Code Debugging

#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);
	}
}

Doorbot UTF8 Test

Doorbot UTF8 Test - ドアボト語テスト  

Any questions, feedback, advice, complaints or meanderings are welcome.
Alteeve's Niche! Enterprise Support:
Alteeve Support
Community Support
© Alteeve's Niche! Inc. 1997-2024   Anvil! "Intelligent Availability®" Platform
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions.