Archive for the ‘Bash’ Category.

mailit function

mailit function

Here is a generic mail function I use with cron jobs or scripts that need to email information.
TIP: the context-type can be switched to sent html instead of plain text as well ;)

mailit ()
cat <<EOF | /usr/sbin/sendmail -f noreply -t
subject: ${subject}
content-type: text/plain

To use, set the variables first, then call the function ;) IE:

subject="This is the email subject"
emailthis=`cat <<EOF
This is is the text
that is sent
in the body of the email.



My desk – old picture.

This is a picture of my desk a couple years ago, it now has 2 22″ widescreen monitors, and nothing but ARCH ! :D
Basically it still look the same, except the four monitors have been replaced by two. I have 4 computers, one monitor for two computers.
I use two kvi switches to make that possible. All the computers are the same, IBM intellistations. 3.6 ghz machines with xeon processors, all running 64bit Arch Linux.
I’ll try to take some updated pics of the desk, perhaps once i clean it up again lol.

Site has been moved to the new server.

Finally, the site is on the new server, which hopefully will be rock solid for ever :)

Anyway, I finally opened up the blogs for new users, you know where to go to sign up……… get going ! :)

New server – an update.

meh, this is going slowly.

First we had the delay of getting a server built.   Then once it was built we had a massive segfault, that wasn’t recoverable (no, it wasn’t my fault :P  ).  Next we reloaded the OS from scratch and started over.  Eh…….. waddaya know, another segfault/crash.  New server time.  I have stressed tested the cpu and ran a bad blocks test on the hard drive, checked the ram configuration, i think we are golden now.
Continue reading ‘New server – an update.’ »

Server is setup, now to get it configured !

The new server is finally setup, now to get it configured.

Plenty of room, and plenty of ram, at least for  now.

ARCH LINUX – Machine Information Script ver .10

DATE: 06/09/09 01:43:05 PM   MACHINE NAME: Archie
ETHERNET CARD: Intel Corporation 82562EZ 10/100 Ethernet Controller (rev 02)
CPU INFO: Qty=1 i686 Intel(R) Celeron(R) CPU 1.80GHz
VIDEO CARD: Intel Corporation 82865G Integrated Graphics Controller (rev 02)
RAM INFO: 2058596 kB

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3             226G  752M  214G   1% /
UPTIME:  13:43:05 up 9 min,  1 user,  load average: 0.00, 0.07, 0.06
DAEMONS=(syslog-ng network netfs crond sshd)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ to get a new server.

Ok, it’s not anything really special, but I should be able to enable alot more blogs and to enable email and have a more consistent connection.

Server Series: Celeron BasicLE
Processor: Intel Celeron 1.7Ghz
First RAM: 1GB RAM
Secondary RAM: 1GB RAM
Hard Drive: 160GB SATA Hard Drive
Bandwidth Plan: 750GB Monthly Data Transfer
IP Addresses: 1 IP Address
Operating System: Arch Linux

I’ll keep ya posted :)

Would I recommend Arch to someone new to Linux ?

I have had over a decade of experience with a multitude of distros.
One of the members of one of my forums literally begged me for a year to try Arch.  Finally I relented and installed it.
It was like having an epiphany !  OMG – This is AWESOME ! PERFECT ! I HAVE BEEN LOOKING FOR THIS FOR YEARS !
I guess the prior years of experience let me know right away that Arch Linux was the distro I had been looking for. There was this almost instantaneous recognition of the simple elegance of a system you could control completely, the speed, configuration, ease of keeping things updated that made me so happy it was hard to contain myself.
Continue reading ‘Would I recommend Arch to someone new to Linux ?’ »

Arch Linux Info Script

I wrote this script because I’m on so many different Arch machines, sometimes it’s hard to keep track :) Plus, it gives me a handy way to find all of my information I’m looking for with one simple command. It outputs something like this:
Continue reading ‘Arch Linux Info Script’ »