RANDOM QUOTE
I once shook hands with Pat Boone and my whole right side sobered up.

-Dean Martin
Search
Sticky Posts
The Ghettotenna
SVG Icons
KNetworkLED
Brew Your Own Damn Beer
Latest Comments
linkapalooza (5 comments)
Objects in the Mirror (4 comments)
Doo Dah Doo Doo Doo Dah Dah Doo... Big News Coming Your Way!!!!!!!!!!!!!!!!!!!!!!!!!!! (3 comments)
SVG Icons (7 comments)
A Revolution in Taco Consumption (5 comments)
Links & Friends
Reddit
Kotaku
Hardgeus
PVP Online
Boing Boing
The Sneeze
Penny Arcade
Resources
glitch13.com :.::.: ..:.::. :.:::... Home | About | Feedback | Archive | RSS

Page: 1 2 3 4 5 6 7 8 9
Tech
STOOPER COMPUTER
Category: Tech
Friday, December 5th, 2003 @ 11:38 am
Posted By Brent
Well, for those of you not "in the know", I've recently joined the ranks of "people who own computers made after Christ's death." When I got a nice chunk of change from my Virginia Beach trip, I decided to splurge and buy something hardly any programmers have: a recent computer.

Well, I have to tell ya, this "owning a computer that can run things" gig is pretty cool. Currently I have it dual booting between Gentoo and Win2k (need it for a few games). Jebus, it's sweet.

Of course, good tidings like these are not without their lining made of poop. Around the time I got this computer in, my intarweb connection decided to tank. I'm getting a good bit of packet loss and about 500ms ping times to my goddamned provider. This of course makes one the purposes of owning a new machine completely irrelevant: playing online games (which I have been known to do quite a bit of). We had the cable guy come out and he did say there was a problem not originating from our equipment or setup, and that he'd have to put in a request to replace the "mainline", but I wasn't home and the missus didn't bother asking what a "mainline" was, or "how long this might take." The crazy thing is, it will start working fine for hours at a time, just to get craptastic again before your very eyes. Oh well.


9 Comments...

CRASH GOES THE SERVER
Category: Tech
Wednesday, June 11th, 2003 @ 04:54 pm
Posted By Brent
Well, the server was going down repeatedly, so it was decided to take it away from where it was and to bring it somewhere where we could keep a keen eye on it at all times and maybe glean the cause of the outtages. Of course, it wasn't too hard. The moment we got it back and turned it on, the reason became quite obvious: the CPU fan sounded like a lawnmower being pulled across Ian's mom's hairy boosh. So we switched it out and here we are.

In the course of the move the IP address of the site changed, so its going to be a while before the DNS change spreads across the interweb, allowing all of you glorious people to visit my humble little home. In the meantime, I'll probably just leave this post up untill everyone checks in.

In other news, I still haven't begun my beer and wine brewing extravaganza. I'm still teetering back and forth over wether to thrown down a decent chunk of change for a whole "brewing rig" type thing, or shoe string it (i.e. steal a kentwood bottle, use a garden hose, bottle it with my teeth).

Those of you out here that have done it, who went the store bought kit way, and who went the "clandestine alcoholic" way?


25 Comments...

CRIZZNASH
Category: Tech
Wednesday, April 16th, 2003 @ 02:52 pm
Posted By Brent
Well, a little over a week ago, I set something down on my computer case and noticed the top of it was hotter than the fires of hell. Upon closer inspection, it appeared that the fan on my computer's power supply had collected its gold watch and a fat pension, and was now just laying on my legs doing nothing. My computer was running fine, but having a long line of computers dying from heat issues behind me, I decided to turn her off and investigate.

Unfortunately, that was the last time I ever saw her alive.

After trying to just replace the fan, then learning that infact the whole power supply was bad, then testing out a long line of defunct power supplies, I finally put an actual working one in and got it powered up to hear nothing more the the pc POST beeps declaring that the motherboard was bad. The motherboard I had just put in it 4 or so months ago. A motherboard for a computer so old, I probably paid more for it than the damn computer itself costs now.

Me and the computer have been through quite a bit together. I got it around four years ago and its never really given me any problems to speak of. I've amazed people with how well it ran, even up until it died -- I squeezed more power out of a Celeron 366 than I've seen people get out of a brand new pentium 4, no shittin. It was almost a symbol of pride for me.

I suppose its a blessing in disguise though, seeming as I am now being thrust into the modern age of buying a computer that just comes with an obscene amount of power as opposed to the Sisyphean task of trying to keep an antique from fading into obsolescence.

Of course, this probably won't happen for another month or so, and until then, I'm stuck with an even more ancient machine running Gentoo Linux. I suppose It will be good for me to spend a little bit more time with linux as my main machine.



38 Comments...

GENTOO TIPS FOR BEGINNERS
Category: Tech
Wednesday, April 16th, 2003 @ 11:58 am
Posted By Brent
Portage has had many changes since this was originally written, it is no longer 100% accurate and doesn't reflect how portage works anymore (especially the section on masking).

This is in no way a "Howto" for Gentoo Linux, nor is it a tutorial for advanced users wishing the squeeze every drop of performance out of their gentoo machines. All this is, is a small repository of general, buthelpful knowledge, that almost every gentoo user already knows, but wished they knew when they first setup their machines. Iam assuming you have a basic knowledge about linux, portage, the emerge command, and the basic structure of gentoo's packagesystem.


Basic portage use

First off, before you ever emerge anything, ALWAYS do a 'emerge -p packagename' first. the '-p' (or '--pretend') tests the emerge and shows you what packages that it depends on will be emerged along with it and in what order this will happen. Extremely helpfull in situation where you emerge vim and it starts emerging XFree86 for some strange reason. The output of this will look like this (example, not real results):

[ebuild R ] media-libs/libogg-1.0
[ebuild N ] app-arch/unzip-5.50-r1
[ebuild U ] media-sound/cdparanoia-3.9.8 [3.9.7]
[ebuild N ] media-libs/libungif-4.1.0.1b
[ebuild UD] dev-lang/nasm-0.98.34 [0.99]
[ebuild F ] apps-emulation/winex-transgaming-3.2

the 'R' means you have this package at the same version, and emergeing it will simply replace the current one.
the 'N' means its new. You don't have any version of this package installed yet.
the 'U' means emerge will upgrade your outdated package version (in brackets) with this one.
the 'UD' means emerge will downgrade your package [in brackets] to this one.
the 'F' means emerge cannot automatically download the files required to emerge this package, you will need to obtain the file yourself (usually from the application's website) and place it in /usr/portage/distfiles.

You'll notice on packages that will be updated, there is another set of numbers in brackets at the end of its entry. This is the version you have currently installed.

Second largest complaint (by me when I was starting out that is) by far was having to track down specific package names. By typing 'emerge -s foo', emerge will list packages that have names or descriptions that include "foo". Example: say you want flash for mozilla (or netscape or phoenix), but don't know the name of the package for the flash plugin, simply type 'emerge -s flash', and listed (among a couple other things) will be:

* net-www/netscape-flash
Latest version available: 6.0.79
Latest version installed: [ Not Installed ]
Size of downloaded files: 1,374 kB
Homepage: http://www.macromedia.com/
Description: Macromedia Shockwave Flash Player

By the looks of the description line, this is what we are looking for, and we can see from the first line that the name of the ebuild is "netscape-flash" and it's in the "net-www" category. So naturally you can install it by emering the ebuild: "emerge netscape-flash".

And, incase there are a few that didn't get it, 'emerge rsync' will update your list of packages with the freshest available ones.


Portage Directories

/usr/portage
This directory includes all the ebuild packages used by emerge. not really useful, but nice to know.

/usr/portage/distfiles
This directory is where emerge places the tar balls after it downloads them. They remain here even after the package been installed, so if your short on space you can clean this out every now and then.

/var/tmp/portage
This directory is where emerge extracts the tarballs to for compilation. Unlike the distfiles directory above, these 'work' directories are cleaned out after the package is installed.


/etc/make.conf

make.conf if the file portage uses to determine how to compile the application you emerge. It has quite a few

variables in it that change the way the programs with be built. Here I'll go over a few important ones that are

exetremely helpful to understand:

  • USE : Items added to this will cause emerge to compile application with support (if applicable) for the items your added. i.e.: if you have USE="postgres" and compile php, it will automatically compile it with the --with-postgres argument (or whatever argument is) that adds postgres connectivity support to php. Inversely, you can say USE="-postgres" and software that will usually include postgres support will exclude it if possible. A complete list of aliases to be used in the USE argument can be found in /usr/portage/profiles/use.desc
  • CHOST : Don't really know what this does, but leave it as CHOST="i686-pc-linux-gnu" unless you have a pentium or less, then just downgrade the '686' part of it to match your processor's family.
  • CFLAGS: This is the arguments that emerge will pass to gcc during compile time that describe your processor so that processor specific optimizations can be used if applicable. A quick search on the Gentoo Forums for your proccessor type and the word "CFLAGS" will usually land you in the right vicinity of where you want to be.
  • CXXFLAGS: Same as CFLAGS, for different gcc compiler, by default inherits CFLAGS's value.
  • ACCEPT_KEYWORDS : Turn on the ability to download 'masked' packages. More on this later on.
  • GENTOO_MIRRORS : URLS (other than Ibiblio) that emerge can download the packages from. I wouldn't suggest editing this by hand, there is a far easier way, explained a little bit later.

Masked packages

a "Masked" package is one that the author still considers as unstable, or still undergoing testing, and portage will not allow you to emerge them unless you specifically tell it to. For example, babygimp, an icon editor, is currently masked. If I were to type 'emerge babygimp', it would tell me "all ebuilds that could satisfy "babygimp" have been masked." But, If I wereto type 'emerge -s babygimp', I would get this:

* media-gfx/babygimp [ Masked ]
Latest version available: 0.41
Latest version installed: [ Not Installed ]
Size of downloaded files: 196 kB
Homepage: http://babygimp.sourceforge.net/
Description: Icon editor written in Perl/TK

In order to emerge this package, you will need to set /etc/make.conf 's ACCEPT_KEYWORDS argument to allow masked packages for your processor architecture to be emerged by uncommenting ACCEPT_KEYWORDS and setting it as follows:

ACCEPT_KEYWORDS="~x86"

The way this works is that ebuild writers define what system architechtures the package can compile on, and note it like "x86 ", or "PPC". If a package is in an unstabe state of development, its noted by prefixing a tilde to which architechtures the p ackage is currently unstable for.

BUT! Instead of changing it in make.conf (which you can forget, which can and will happen, and which screws your system), you can do it for just one instance of emerge by typing it all on one line like this:

ACCEPT_KEYWORDS="~x86" emerge babygimp

(or you can type this to see it pretend to work)

ACCEPT_KEYWORDS="~x86" emerge -p babygimp

(PS: you can do this "all on the same line" technique with all the arguments from make.conf, but it's only really helpfull fo r USE and ACCEPT_KEYWORDS)


mirrorselect

If your getting kind of aggravated by the download speeds emerge is giving you, you can fill you list of available mirrors au tomatically with a program called mirrorselect. Just simply emerge mirrorselect (or emerge -p mirrorselect to see all that it s going to install) to get it.

Then you can type:
mirrorselect -a -s5

for it to automatically populate your GENTOO_MIRRORS with the 5 fastest mirrors it can find (the 5 comes from the -s5, which you can supply any number for).


Distcc

Now that we have the downloading part of emerge sped up, what can we do about the compile times? Well, distcc can distribute the compilation of the files (most of the time) to other computers on your network, assuming, of course, that these other computers have distcc and the same version of the gcc compiler. And, seeing as we're running the rock and roll gentoo distro, to get it all you have to do is emerge distcc. There are a couple things you need to add to your make.conf file to get it working though:

  • MAKEOPTS="-j5" - Actually, I'm not certain on this, but this is what I've gathered: the '5' is how many gcc threads to spawn, and you want around 2 per computer in the cluster.
  • FEATURES="distcc ccache" - No idea, it just says you have to put that in there.
  • DISTCC_HOSTS="host1 host2 host3" - Hosts in the cluster, running distcc, in order of priority (you usually want the local machine as the first one)
  • DISTCC_LOG="/var/log/distcc.log" - Where to log the distcc activity

In order for a machine on the cluster to accept and process distcc requests, it must be running the distcc daemon, which Gentoo places (along side all the other daemon scripts) in /etc/init.d/. If you wish to see if a certain computer in thecluster is actually receiving and processing the distcc requests, the daemon logs all distcc client activity to /var/log/daemon.log.


Daemons and Runlevels

As with most distributions, Gentoo creates scripts to start and stop daemons and places them in /etc/init.d. These scripts read the configuration of each service from matching files in /etc/conf.d. For example, /etc/init.d/postgresql starts and stops the posgres database. If you wanted to add a commandline argument to postgres when this scripts runsit, you would edit /etc/conf.d/postgresql and find where it is assigning the commandline arguments and add it there.

To automatically start daemons at bootup at certain runlevels, you use a tool called rc-update. The syntax for this is as follows:

rc-update

You choose add or del depending on whether your adding a script to that runlevel or removing it. For the script, you just type the script's name from /etc/init.d. The runlevels available are boot, default, nonetwork, and single. You will use default is the one you will be manipulating 99.999% of the time, so that's the one I'll focus on.

As an example, the script for starting or stoping ssh is /etc/init.d/sshd. To get this to start automatically when you start the machine, you would type:

rc-update add sshd default
p> Here's how this works behind the scenes: theres a directory called /etc/runlevels. In this directory, there are directories mapping to each runlevel, boot, default, nonetwork, and single. When you add sshd to runlevel default it actually creates a link the default directory to the sshd script in /etc/init.d. Whenthe system gets to the default runlevel, all scripts in this directory are executed.

If this document has been of any help to you, or if you want something, or think something should be added, shoot me some feedback.

bkelly.
This document was last updated on 10/17/2003.



0 Comments...

UPDATES ABOUND!
Category: Tech
Wednesday, January 22nd, 2003 @ 05:19 pm
Posted By Brent
As many of you have probably noticed, the website is having a little work done on it. I finally surrendered and am leaving behind the days when you have to drag and highlight everything on the site in order to read it. Sure, sure, I was in denial about black backgrounds for a while, but I've finally awoken.

So, I downloaded the gimp the other day, and didn't really have anything to do with it at the time, so I just started throwing some shapes and colors together. Well, after a while it started taking shape, and BAM, I had sitting before me the basic design you see now. The drop shadow around the edge of the main table took quite a bit of time, considering my feeble design skills and total lack of experience with style sheets, but its there, for better or for worse. You may notice it break up a bit when the form gets long (ie, lots o comments, etc), but other than that it works for me, and after all, that's the only person its really gotta work for.

You may also notice the 'Quick Links' thing at the bottom there. A nice touch I thought, you may not think so, but then we'll just go back to the 'only gotta work for me' thing again, and I feel better already. You can suggest new links via the link below the links (that a lot o links). If you do, try to make 'em wacky, and if at all possible, non-transient.

Well, thats about it, I'm going to try to do a little more journal - type writing on here, and maybe that will keep it more fresh, and interesting enough for me to post more often.


11 Comments...

Page: 1 2 3 4 5 6 7 8 9
|