Thought Bucket
Welcome to John's Thought Bucket. This is where he comes to dump all of his stray thoughts so that they won't be lost. Please feel free to peruse the thoughts that John has so graciously left for the whole world to see.
View Thoughts
Login
 

<<Prev | 1-10 | 11-20 | 21-30 | 31-34 | Next>>

Public CVS Export 2007-02-06 11:48:22 Unix Admin Howto John
cvs export -d [TARGET_DIR] -r HEAD [REPOSITORY]

 

Public RPM Lockup 2006-09-12 15:16:27 Unix Admin Howto John
rm /var/lib/rpm/__db*

rpm --rebuilddb

 

Public 2038 Deadline 2003-11-18 15:43:51 Perl Code Snippets John
Deadline: GMT 03:14:07, Tuesday, January 19, 2038

#!/usr/local/bin/perl
use POSIX;
$ENV{'TZ'} = "GMT";

for ($clock = 2147483641; $clock < 2147483651; $clock++) {
  print ctime($clock);
}

 

Public Etherboot Information 2003-11-06 11:54:24 Thin Client Config John
http://www.etherboot.org/
http://www.rom-o-matic.com/

NBI Script:
#!/bin/bash

if [ "$1" == "" ]; then
echo "Usage: nbi [thin client hostname]"
exit
fi

if [ ! -d /tftp/clients/$1 ]; then
echo "That does not appear to be a valid hostname."
exit
fi

KERNEL=2.4.22

/usr/local/bin/mknbi-linux -rootdir=/tftp/clients/$1 --rootmode=rw --ip=dhcp \
--output=/tftp/clients/$1/boot/vmlinuz-nbi \
/tftp/clients/$1/boot/vmlinuz

echo "Created tagged boot image: /tftp/clients/$1/boot/vmlinuz-nbi"

 

Public tfpd config 2003-11-06 11:51:56 Thin Client Config John
Install Advanced tftpd (ftp://ftp.mamalinux.com/pub/atftp/).

Setup in inetd.conf:
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd --tftpd-timeout 300 --retry-timeout 5 --mcast_port 1753 --mcast_addr 10.1.1.0-255 --maxthread 100 --verbose=5 /tftp

 

Public dhcp config 2003-11-06 11:50:06 Thin Client Config John
allow booting;
ddns-update-style ad-hoc;
use-host-decl-names on;
default-lease-time 604800;   # 10 days
max-lease-time 2592000;      # 30 days

option domain-name "cmcCentral.com";
option domain-name-servers 10.1.1.254;
option subnet-mask 255.255.255.0;
option broadcast-address 10.1.1.255;
option routers 10.1.1.252;
option nis-domain "cmcCentral";
option nis-servers 10.1.1.25;
option x-display-manager 10.1.1.25;
option tftp-server-name "10.1.1.25";

option kernel-append code 129 = text;
option kernel-append "init=/boot/initrd-2.4.22.img";

subnet 10.1.1.0 netmask 255.255.255.0 {
        range dynamic-bootp 10.1.1.56 10.1.1.100;
}

host barker {
        hardware ethernet 00:01:80:35:47:E8;
        fixed-address 10.1.1.50;
        option root-path "10.1.1.25:/tftp/clients/barker";
        option host-name "barker";
        option dhcp-client-identifier "barker";
        if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
                filename "/tftp/clients/barker/boot/eb-5.0.10-rtl8139b.lzpxe"; 
        }
        else if substring (option vendor-class-identifier, 0, 9) = "Etherboot" {
                filename "/tftp/clients/barker/boot/vmlinuz-nbi";
                option vendor-encapsulated-options 3c:09:45:74:68:65:72:62:6f:6f:74:ff;
        }
}

host king {
        hardware ethernet 00:00:4C:FE:C2:7F;
        fixed-address 10.1.1.51;
        option root-path "10.1.1.25:/tftp/clients/king";
        option host-name "king";
        option dhcp-client-identifier "king";
        if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
                filename "/tftp/clients/king/boot/eb-5.0.10-82551qm.lzpxe"; 
        }
        else if substring (option vendor-class-identifier, 0, 9) = "Etherboot" {
                filename "/tftp/clients/king/boot/vmlinuz-nbi";
                option vendor-encapsulated-options 3c:09:45:74:68:65:72:62:6f:6f:74:ff;
        }
}

 

Public grep and skipping directories 2003-10-22 13:53:00 Unix Admin Howto John
alias grep='grep -d skip'

 

Public Creating /dev for thin client 2003-10-22 13:46:35 Thin Client Config John
cp /proc/devices /tftp/clients/king/proc
cp /dev/MAKEDEV /tftp/clients/king/dev
cd /tftp/clients/king
chroot .
cd dev
./MAKEDEV -v console
exit

Once the system is up and running on its own, do this:
./MAKEDEV -v generic
(It can take a while, so be patient)

 

Public Date Input 2003-10-20 15:36:31 Javascript Code Snippets John
<script language="JavaScript">
<!--
  createDateInput(document.period, 'date_start', 'calLeer', 21,10,2003);
//-->
</script>

Stolen from: http://agenda.samara.net/demo/

 

Public Pop-up Sites To Block 2003-09-14 20:44:33 Unix Admin Howto John
a.mktw.net
a.r.tv.com
a.tribalfusion.com
a207.p.f.qz3.net
a248.e.akamai.net
activex.microsoft.com
ad.doubleclick.net
ad.uk.doubleclick.net
adcontroller.unicast.com
adcreative.tribuneinteractive.com
adfarm.mediaplex.com
adimages.go.com
ads.ad-flow.com
ads.auctions.yahoo.com
ads.bfast.com
ads.bloomberg.com
ads.clickagents.com
ads.enliven.com
ads.guardian.co.uk
ads.nandomedia.com
ads.web.aol.com
ads.webheat.com
ads.x10.com
ads3.zdnet.com
adserver.nydailynews.com
adserver.trb.com
adsnew.userfriendly.org
altfarm.mediaplex.com
amch.questionmarket.com
ar.atwola.com
connect.247media.ads.link4ads.com
globalelements.ft.com
gserv-cnet.zdnet.com
hb.lycos.com
hg1.hitbox.com
i.i.com.com
i.mktw.net
image.guardian.co.uk
images.usatoday.com
images.vnunet.com
images.zdnet.com
in.yimg.com
ln.doubleclick.net
mds.centrport.net
media.fastclick.net
netcomm.spinbox.net
network.realmedia.com
news.ft.com
nmsacramento.112.2O7.net
remotead.cnet.com
rmedia.boston.com
s0b.bluestreak.com
secure.webconnect.net
service.bfast.com
sg.yimg.com
stats.surfaid.ihost.com
statse.webtrendslive.com
toolbar.aol.com
transfer.go.com
uk.doubleclick.net
us.a1.yimg.com
us.yimg.com
view.atdmt.com
view.avenuea.com
w26.hitbox.com
www.ad-annex.com
www.ebizexpo.com
www.nextag.com
www.pixunlimited.co.uk
www.vibrantmedia.com
www.webtrendslive.com
www1.bannerspace.com
www2.bannerspace.com
www3.bannerspace.com
www4.bannerspace.com
www5.bannerspace.com
www6.bannerspace.com
www6.bannerspace.com
www7.bannerspace.com
xads.zedo.com

 

<<Prev | 1-10 | 11-20 | 21-30 | 31-34 | Next>>