Read posts about linux

December 6

Anyone familiar with Gentoo? (Devin's Life (Lurker)) by Devin

Just curious if anyone reading this is familiar with Gentoo’s portage system?  Specifically ebuilds.  I just installed the Portage prefix on my Macbook and want to try my hand at porting some ebuilds to Leopard. 

Blogged with the Flock Browser
Posted in: apple , ebuild , geek , gentoo , leopard , linux , portage
October 8

A really good article about how all this mess will affect the tech industry (Punkadyne Labs (Punkwalrus))

Most of my friends on here are either in or closely related to the tech industry during this crisis. This was forwarded around at the office by a manager I really trust, and links like these are part of that.

http://www.techdirt.com/articles/20080929/0426042403.shtml
In the short term, there's still going to be a fair amount of bloodshed, and the downside will impact companies outside of the financial sector, but for those in tech, the good news is that we're probably more isolated than other industries, though certainly not completely isolated. And, since everything is changing so rapidly, you never know what shoe might drop next.

However, in the long run, there is still money out there, and there are still opportunities. People will need to put that money to work one way or another, and rather than freaking out, now is a time to be looking for the opportunities created by this mess, and the tech industry is likely to have a lot of those opportunities. Remember that for every bubble bursting, something ends up getting devalued below its real value. The trick is just figuring out what it is before anyone else notices.


My company is doing fairly well, actually,. We just got two huge government contracts which I am not at liberty to discuss, obviously, but it was enough to reinvest in our core infrastructure before it became outdated, and guess who's on the top of that pile? That's why I am getting the certs, man, while the gettin's good... :D Posted in: computers , linux , tech , work
September 26

LPI 102 - I passed! (Punkadyne Labs (Punkwalrus))

I am now LPI Level 1 certified!

Hoo-ray! The test was really hard, though. Mostly fill-in-the-blanks, with a lot of esoteric questions. If it had been a bar fight, my victim would have looked worse than me, but not by much. I'd still have a split lip and walk away with a limp. I can't comment much on the exam for NDA reasons, but I still felt like I wasn't being tested on core knowledge as much as I was being tested on, "Suppose this happened?" I would say I was tested on stuff I didn't study for, and only pulled out of my ass from stuff I did back at AOL or as a hobby moment when I got stuck at something.

There was also some oddball scoring. Like I got a 33% on a set of 2 questions. I would think the only outcomes from 2 questions would be a 0%, 50%, or 100%. Maybe they mean in hex.

Anyway, I passed, and I am grateful my cold didn't make me too woozy. Next, I am on to my CompTIA Network+, then MCITP, which will be the really hard one. After that, I think I go back to LPI, but for Level 2. Posted in: linux , lpi

LPI 102 Exam notes: EXAM TOMORROW (Punkadyne Labs (Punkwalrus))

Man, I am so brain dead. First, I have a cold. I got sick from the hospital visit yesterday, which happens a lot when I visit hospitals. I get cold chills, then get some kind of virus or bacterial infection. So far, this hasn't been TOO bad, but it's annoying when I am trying to study.

I didn't make too many LJ notes this pass because I knew a lot of stuff already. I also didn't have as much time to study as I wanted. When I pass this, I will be a genuine Certified Level 1 Linux Professional by the Linux Professional Institute. Level 1 means I get Magic Missile and Tenser's Floating Disk. [snort]

I am nervous as hell... again. One last bit of "type to remember." I got too used to subnet calculators. I wrote this page years ago, recently updated it, but I forgot one vital piece of information: you are given an IP and subnet mask: how do you find out the network and broadcast address?

There's nothing special about this, it's done all the time. Let's take this example.

192.168.3.14/29

That's a class C address, as you would know because it's over 191 for the first octet. You know /29 is really:

Slash mask: 2526 2728 2930
Increment: 12864 3216 84
255.255.255...: .128.192 .224.240 .248.252


So we know the network is in increments of 8.

192.168.3.0
192.168.3.8
192.168.3.16

We know its #2 in this list because it's less than 16. So in this case we know the network is 192.168.3.8, the broadcast address is 192.168.3.15 (one less than 16). Posted in: linux , lpi
September 12

LPI 102 Exam notes: 14 days until the exam (Punkadyne Labs (Punkwalrus))

Since I goof off and LJ so much, I have decided to hijack the process and write my study notes and thoughts. But they are probably totally boring for those not interested in Linux. These notes may be very long and disjointed, so... I put them...

For those interested, think there needs to be corrections, have neat trivia, or have some things to say: COMMENTS ARE ENCOURAGED!!!
___________
Booting a Linux system

One final thing about kernels: if you need to pass options to the kernel itself, this has to be done on the kernel command line in LILO or GRUB. Modular options are contained in:

/etc/modules.conf for Linux 2.4.x systems
/etc/modprobe.conf or /etc/modprobe.d/* for Linux 2.6.x systems

You can see kernel boot messages via the command "dmesg," but if your system has been up for a while, the boot messages get lost because dmesg has a finite limit. Some distros will dump it to /var/log/boot.log or something so you will always have a copy of messages fom the more recent boot. But not always, so you may want to put it in /etc/rc.local as the last thing to execute.

All system logs are kept in /var/log, the most famous of which is /var/log/messages. You should read one for a while. Go ahead, I'll wait. There is also secure, which has login messages, mail.log, which has your mail logs, and a lot of other applications also put their log messages here.

Run Levels
When Linux boot, there's various "run levels" to tell the initialized services when to run.

0 - Halt the system. Dead stop.
1 - "Single user mode," which is the most basic bare minimum needed to have a working system. No networking or services run. This can also be stated by "s" or "S" for single. You can only access the system via console/keyboard, obviously.
2 - Most basic multiuser. This is the default non-GUI for Debian, and Red hat it does not have NFS avialble
3 - Default multiuser for Red Hat based systems, non-GUI. Debian does not use this runlevel, typically.
4 - Typically unused by anybody.
5 - For Red Hat, this is like runlevel 3, but with GUI enabled.
6 - Reboot the system.

Obviously, don't use init 0 or 6 for default runlevels, or your system will shut down or reboot continuiosly on booting. Doh! Runlevels are set in /etc/inittab:

id:3:initdefault:

In this case, this is runlevel 3 on a headless box where video would be pointless.

To change the init runlevel from root is easy:

init 6

Is the same as "reboot." Older users may use "telinit" but these days, it's just a link to "init".

The command runlevel will show you the previous runlevel followed by the current one. "3 5" will tell you that you were in level 3, but went to 5. "N 3" means nothing was before (like the machine turned on) and you are currently in runlevel 3.

Okay, here's a good thing to know: suppose you have a system where you need the root password because the admin has a heart attack from too many cases of BAWLS and Cheetos, and you need into the system. Reboot it to single mode (init 1) and then type "passwd" at the root prompt. Now, most distros will let you do this, but some are more stubborn and you'll get a root login/password prompt anyway. There are ways around this too.

If you are already at the prompt (on the console, not over network), simply type "init 1" and there you go. But that never happens, right? If you were at the prompt, you probably don't need the password.

If you have LILO, it's pretty simple. When you boot, at the prompt, type:

boot: linux single

In some systems, "boot" is "LILO" instead.

But GRUB is a little more difficult. From the boot menu:

1. Highlight the kernel you wish to boot into, and hit "e" on the keyboard
2. This will bring you to the various boot lines. Select the one that starts with "kernel" and hit "e" again
3. At the end of the line, hit space, and type either single or 1
4. Some systems are locked down harder than that. If this is the case, go to the end of that line, hit space, and type single init=/bin/bash
5. Hit enter and then type "b" for boot

This will come in handy. Write it down somewhere. One day, it will save your ass, and will do so more than once.

When the init process boots, the run levels themselves are kind of arbitrary without some listing of what to do with each setp. This is accomplished by "rc" scripts in the /etc directory.

The scripts for running thing, usually services and prep work, are in the directory /etc/init.d/

The file "/etc/rc" is a script that changes the runlevels. There's a series of 7 directories after that, labeled /etc/rc.0/ through /etc/rc6.d/ (which will be hereby called /etc/rcX.d/ to refer to them all. These contain only symbolic links to scripts in /etc/init.d/ as shown here for my CentOS /etc/rc3.d/ directory (only the middle, there's a lot here):

[... stuff]
lrwxrwxrwx 1 root root 19 Mar 16 15:20 K92ip6tables -> ../init.d/ip6tables
lrwxrwxrwx 1 root root 15 Mar 16 15:28 K95kudzu -> ../init.d/kudzu
lrwxrwxrwx 1 root root 25 Mar 16 13:21 K99readahead_later -> ../init.d/readahead_later
lrwxrwxrwx 1 root root 23 Mar 16 13:20 S00microcode_ctl -> ../init.d/microcode_ctl
lrwxrwxrwx 1 root root 22 Jul 1 10:01 S02lvm2-monitor -> ../init.d/lvm2-monitor
lrwxrwxrwx 1 root root 25 Mar 16 13:21 S04readahead_early -> ../init.d/readahead_early
lrwxrwxrwx 1 root root 18 Mar 16 13:05 S06cpuspeed -> ../init.d/cpuspeed
[... more stuff]

Those that start with "S" stands for "start" and those with "K" are "kill." The number specify what order they need to be run. Most of the time, "kill"
just ensures a service installed will NOT run, except for init 0, 1, and 6, where most of them will kill anything running to go into single user or halt/reboot.

There are various other ones to look at:

Red Hat like distros:
/etc/rc.sysinit is the first thing run. You should leave this alone, because many upgrades will replace this script, and then what will you do, Mr. Smartypants?
/etc/rc.local is the last thing run. This is kind of like a "Startup" folder for various programs you want to run after the system has finished booting. This is not replaced by any upgrade.

Debian-esque distros:
/etc/init.d/rcS is the first thing run
There is no "rc.local" for Debian, but those who need it will create it in /etc/init.d/rc.local, and then create symbolic links in /etc/rcX.d/S99local

To run a service by hand, most of the time, a good program will have put itself in the init.d directory with BASIC "start | stop" options. For instance:

/etc/init.d/httpd start

Will start the Apache web server. I mean, if you didn't have it set to run at boot. But httpd has super options, like "reload" or "restart." Many other scripts aren't as snazzy, so you usually can find out what it supports by running just the script:

# /etc/init.d/httpd
Usage: httpd {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}


Red Hat distros went one further with making this shit simple:

The command chkconfig will add/remove services from runlevels. It defaults to 3 and 5, but you can specify on the command line.

service "whatever" is a shortcut for /etc/init.d/whatever, but it has to be added as a service via chkconfig.

See the man pages for details on these two commands, I don't think this is on the LPI, but it's nifty anyway. I think it can be added to Debian via a package.

Last but not least is "shutdown" and all its options. Some of the more common ones are:

shutdown -r now [reboot now]
shutdown -r +5 ATTENTION - Rebooting system in 5 minutes [Reboot in 5 minutes after you send a message to all logged in users]
shutdown -h 00:05 [halt/shut down at 5 min past midnight]
shutdown -c Sorry, false alarm [cancel shut down in progress with message to all logged in users]

See the man page for more goodies.

There are other commands to do this, like halt, reboot, and poweroff. If these are called in run level 1-5, they call shutdown instead. In run levels 1 and 6, they have other options for repair, like syncing dists, not writing to wtmp, shut off things in a certain order, and so on. See the man pages for those things.

__________
Disclaimer: While I have been managing Linux systems for almost 10 years now, but I am mostly self-taught. I have a RHCT certification, but I am taking the LPI and CompTIA Linux+ exams to "flesh out" some of the gaps that occur from too much real-world experience versus my lack of good old fashioned book learnin'. This entry in no way assures you my thoughts are correct, I will have frequent misspellings, and they may or may not help you pass the LPI. HUGE parts of the exam will be missing because I already know half of it by heart, so using me as your only study guide is a terrible idea. Please read this entry with a healthy amount of skepticism, and PLEASE feel free to correct or add comments! My ego is hardy enough to admit when I am wrong. Posted in: linux , lpi
September 5

LPI 102 Exam notes: 21 days until the exam (Punkadyne Labs (Punkwalrus))

Since I goof off and LJ so much, I have decided to hijack the process and write my study notes and thoughts. But they are probably totally boring for those not interested in Linux. These notes may be very long and disjointed, so... I put them...

For those interested, think there needs to be corrections, have neat trivia, or have some things to say: COMMENTS ARE ENCOURAGED!!!
___________
LILO and GRUB

It's pronounced "LIL-LO," by the way, because it stands for LInux LOader. I think everyone calls it "GRUB" like the bug, but I am sure the guy who did our Virtuozzo training who pronounced it "Lee-NUX" and "SEN-toss" would call it "GEE-RUB" or "GROO-BEE" GRUB stands for "GRand Unified Bootloader," for those keeping score.

Almost no one uses LILO these days. But you have to know it for the LPI, so I will cover it here. Well, the first part of that statement may not be true, because I have to use LILO on this one box I have where the IDE channel is messed up (it was a prototype motherboard). I could install CentOS, but it wouldn't boot. If I booted it from a rescue CD and installed LILO as a package, then it worked. So maybe that will happen to you if you have some weird-assed hardware.

So. LILO. There are two things you need to know about LILO. The first is that the config file is in the /etc directory as /etc/lilo.conf. It's a fun little text file with NAZI-like rules. The basic lines for a kernel are simple:

image=/boot/vmlinuz-custom-kernel-U-made
label=MyCustomKernel
root=/dev/sda
read-only


Now, if you are the clever sort, you might suddenly wonder, "How can it read fron an /etc directory at boot when /etc won't be mounted yet?" Yeah, see that's the thing, isn't it? So we have to do a very important, usually forgotten step 2, which is to run the command "lilo" which is usually in /sbin/lilo. Otherwise, you'll boot and not see your kernel listed for selection. Shows you! So remember that adding a kernel in LILO requires TWO STEPS:

1. Edit /etc/lilo.conf
2. Run lilo

LILO is pretty simple, but not very flexible. Oh, sure, there are lots of options you can put in lilo.conf, but that whole two step shenanigans started some people thinking there was a better way. And so they came up with GRUB.

Now, the study guide I have barely covers GRUB for the 102, but the online test I took asked GRUB questions, and I got no LILO/GRUB questions at all during the 101. The LPI specs are a little vague, so I will cover some of the basics here.

GRUB, in its standard vanilla form, has a config file in /boot/grub/menu.lst which has all the options. Debian, for instance, puts it here. However, all Red Hat based distros puts it in /boot/grub/grub.conf and in addition, has a symbolic link /etc/grub.conf for those who were used tio LILO back in the day. Not knowing this during a repair crisis will fuck you up. So remember:

Default install on most distros: /boot/grub/menu.list
RedHat, CentOS, Fedora distros: /boot/grub/grub.conf and a link in /etc/grub.conf

Same file, different name.

GRUB is a lot more flexible, has a rescue shell, and can display graphics at boot time. As far as installing a new kernel, it's about the same, but there are more options available. But since this study guide really only goes to how to add a kernel, I won't go through install stuff.

GRUB thinks of hard drives as items in /boot/grub/device.map, which can be checked if you find you're booting off the wrong drive. It doesn't care about IDE or SCSI, either. GENERALLY, it will map to IDE then SCSI, but it looks at devices a little more differently. The GRUB device maps look like this:

(hd0) /dev/cciss/c0d0

In this case, the first hard drive is a SCSI card. It could also be:

(hd0) /dev/hda

The first IDE device.

GRUB looks are devices in it own order, and follow the pattern hdx,n where x= device, and n=partiton. Unlike devices in /dev, which start at 1, GRUB starts at 0. So:

hd0,0 = first partition on the first drive
hd0,2 = third partition on the first drive
hd1,1 = second partition on the second drive

Sometimes this confuses those used to thinking of those as /dev/hda1, hda3, and hdb2. A grub.conf kernel entry will look like this:
title CentOS (2.6.18-92.1.10.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-92.1.10.el5 ro root=LABEL=/
        initrd /initrd-2.6.18-92.1.10.el5.img

title is what it will be labeled on the menu on boot. Make it as desriptive as possible, yet remain brief. "Cust 2.6.13 Kernel w/new expr SCSI controller" or something.

root is the root partition (in this case, the first partition on the first drive). This will be /boot in most cases.

kernel this is the new kernel you compiled, with the path relative to /boot. Don't make the mistake pf putting it like /boot/vmzlinuz-blah because then GRUB will look for it in /boot/boot/vlinuz-blah, and fail. You add your kernel options here, too. The "ro" causes the kernel to mount the drive "read-only" initially; later the drive will be remounted read/write. This is generally done so fsck can run on / at bootup. "root" tells line in the fstab that will be your root partition to start from once the kernel has booted. There are a LOT more options available here. I set my vga=791 so that my console text is not as huge and chunky.

initrd is "initial RAM disk." It's generally used for loading modules required to initialize your root filesystem. If you have these modules compiled directly into the kernel then it's not necessary to have one, but you need to change references to LABEL= in your /etc/fstab and /boot/grub.conf to the actual devices. Some people debate whether it's necessary these days, but it's added by default in many cases.

But make sure you save the entry (and files in /boot) of your OLD kernel in case your new kernel shits the bed. Manm, some people do "rpm -u" (upgrade) with new kernels on Red Hat instead of "rpm -i" (install) and then it dies, and they don't have an old kernel.

Don't be that guy.

So now, that wasn't so hard, was it?

__________
Disclaimer: While I have been managing Linux systems for almost 10 years now, but I am mostly self-taught. I have a RHCT certification, but I am taking the LPI and CompTIA Linux+ exams to "flesh out" some of the gaps that occur from too much real-world experience versus my lack of good old fashioned book learnin'. This entry in no way assures you my thoughts are correct, I will have frequent misspellings, and they may or may not help you pass the LPI. HUGE parts of the exam will be missing because I already know half of it by heart, so using me as your only study guide is a terrible idea. Please read this entry with a healthy amount of skepticism, and PLEASE feel free to correct or add comments! My ego is hardy enough to admit when I am wrong. Posted in: bootloader , grub , lilo , linux , lpi
September 3

LPI 102 Exam notes: 23 days until the exam (Punkadyne Labs (Punkwalrus))

Since I goof off and LJ so much, I have decided to hijack the process and write my study notes and thoughts. But they are probably totally boring for those not interested in Linux. These notes may be very long and disjointed, so... I put them...

For those interested, think there needs to be corrections, have neat trivia, or have some things to say: COMMENTS ARE ENCOURAGED!!!
___________
I scheduled my next LPI exam for the 26th. After I pass this exam, I will be LPI Level 1 certified, which I think means I get +1 against saving throws, more Magic Missiles, and the spell Tenser's Floating Disk.

I looked over what was going to be my tasks for the next part of the exam a few days ago. Holy cow, ran right into rebuilding the kernel from the start! In all honesty, this is not hard, I have done it many times before.

THANK YOU, GENTOO!

Again, Gentoo and LFS have proven their worth beyond a kind of "gee whiz" nerd factor in my life. Add to that: basic networking stuff, crontab mojo, printing, booting, Apache, NFS, DNS, SSH, and some base issues with Linux security. That's pretty intense. In fact, a lot of this stuff is intense for someone who decided to take the test fresh off the turnip truck. I only have confidence I can study because I have been doing this for so long.

I have taken a practice exam, and scored a 60.61% (again, 70% or higher is passing), which is a good baseline from nothing, I think! I know about half this stuff already, but I still have to make sure I know all the facets. This will be harder than the previous exam.

Am I nervous already? Yeah. But I felt so good passing this one time, I want to feel that way again. And this time, it will be a full certification I can put on resumes (right now I can only say, "working to my LPI Level 1").

Some nifty stuff about the Linux Kernel
The kernel is the core software that manages hardware, like CPU, memory, peripherals, and process scheduling. It is the interface for programs to to indirectly access the hardware. This is why it's so stable most of the time and allows the system to be a true multiuser system. The software can crash, but the kernel will still keep going. Of course, if you have no way to interface the kernel, you're still up shit pulsar without a gravity generator. Sometimes this happens, but it's rare.

Windows has kernel32, but it doesn't have such a hard line between the hardware and the user, which is why it crashes more. But this does make it faster for intensive processes, like having a GUI. Sadly, what it gains in that way, it often loses again when it comes to the "monolithic" structure. Windows has to assume that you could be running any hardware at any time.

Linux can also be "monolithic," but unlike Windows, it doesn't have to be. Being monolithic is a safe "default" if Linux doesn't know what hardware will be set up on the system. A lot of "EZ-U-Install" kernels are like this, from Red Hat to Ubuntu. BUT... suppose you want to trim down the kernel for speed and resources. This is the true strength behind Linux, and is why it can be run on so many types of machines: you can run it modular. Being modular means you don't run anything you don't need, and it becomes very, very flexible.

Linux modular files are "objects," which is why the modules end with ".o" (apparently ".ko" in 2.6 kernels) and are compiled, but not necessarily linked unless you specify it to be. Most modules are distributed with the kernel and compiled along with it. But they are very closely related, so each kernel has its separate set of modules to prevent module-A from screwing up kernel-B.

Modules are stores in /lib/modules/$kernel.version, where $kernel.version would be something you can get from a "uname -r" command, like 2.6.8-10. Then it is further divided into sub directories. Here's an example from my home box:

[punkie@pippi ~]$ ls -l /lib/modules/2.6.18-92.1.6.el5.centos.plus/kernel/
total 28
drwxr-xr-x 3 root root 4096 Jul 1 10:02 arch
drwxr-xr-x 2 root root 4096 Jul 1 10:02 crypto
drwxr-xr-x 38 root root 4096 Jul 1 10:02 drivers
drwxr-xr-x 34 root root 4096 Jul 1 10:02 fs
drwxr-xr-x 4 root root 4096 Jul 1 10:02 lib
drwxr-xr-x 24 root root 4096 Jul 1 10:02 net
drwxr-xr-x 9 root root 4096 Jul 1 10:02 sound


lsmod will list what modules are loaded (same with cat /proc/modules) in the order of module, size, use count, and what is using it.

insmod will "insert" a module into the running kernel. If it hasn't been loaded, it will be now. Just make sure you have it. Sometimes, you have to insert a supporting module before you can insert the module you want.

rmmod removes the module. Again, make sure there's nothing dependent on it.

modinfo will tell you about the module. Options to remember are -a for author, -d for description, and -p for parameters.

modpropbe is like insmod on steroids. It's a wrapper around insmod, but will load all the prerequisite modules as well. In addition, it has a lot more fun options:

-a will load all modules, and when used with -t, will load all modules of one type
-c displays a complete module configuration, including stuff from modules.conf
-l lists modules, can be combined with -t
-r remove modules (on steroids)
-s send to syslog instead of STOUT
-t with listed module type will load all modules in that directory until a match is found, or it runs out of modules to try. This is useful for probing hardware.
-v verbose mode

The LPI stuff I have lists lines for /etc/modules.conf, but most of my systems have /etc/modprobe.conf or /etc/modprobe.d/[conf files]. This may be CentOS specific, or maybe kernel 2.4 specific. It seems to be modeules.conf on my Red Hat boxes with 2.45 at work, so I am going to go with 2.4 specific.

I need to learn what all those lines mean.

/lib/modules/$kernel.verson/modules.dep shows the dependencies that need to be automatically loaded. Having a bad one, or an outdated one, is a very bad thing.

The next entry, we'll show you HOW to compile a Linux kernel. If you already know how to do this, I'd suggest you tell everyone in your company what a PITA this is, how ong it takes, demand an electric slide rule, and a pony. If you don't know how to do this, don't worry, it's a lot simpler than it sounds.

AS LONG AS YOU DON'T SCREW UP!!!

Just kidding.

OR AM I????

__________
Disclaimer: While I have been managing Linux systems for almost 10 years now, but I am mostly self-taught. I have a RHCT certification, but I am taking the LPI and CompTIA Linux+ exams to "flesh out" some of the gaps that occur from too much real-world experience versus my lack of good old fashioned book learnin'. This entry in no way assures you my thoughts are correct, I will have frequent misspellings, and they may or may not help you pass the LPI. HUGE parts of the exam will be missing because I already know half of it by heart, so using me as your only study guide is a terrible idea. Please read this entry with a healthy amount of skepticim, and PLEASE feel free to correct or add comments! My ego is hardy enough to admit when I am wrong. Posted in: linux , lpi
August 27

I hate exams (Punkadyne Labs (Punkwalrus))

I have been taking practice tests in preparation for the LPI exam and failed EVERY. SINGLE. ONE.

The score is always the same, too, from 65-67% (70% or greater is passing).

FUCK!

The worst part is, most practice exams don't give you the right answer. So who knows what I think I know but actually don't. I knew I never went to college for a reason, :(

Yes, I am taking practice tests that give you the answer. I fail those, too. Somehow, it likes to target at least 5% of the stuff I don't know and magnifies it to 1/3rd of the test like a fucking magnet.

Man, I am pissed off. Posted in: linux , lpi
August 26

LPI 101 Exam notes: 3 days to exam (Punkadyne Labs (Punkwalrus))

Since I goof off and LJ so much, I have decided to hijack the process and write my study notes and thoughts. But they are probably totally boring for those not interested in Linux. These notes may be very long and disjointed, so... I put them...

For those interested, think there needs to be corrections, have neat trivia, or have some things to say: COMMENTS ARE ENCOURAGED!!!
___________
Man, I am in the home stretch. I am so close to this exam, I can feel it breathing down my neck.

All my life, all I ever had for a Linux system was either I was admin, or admin and sole owner of the box. /home was almost always a separate partition, and when my users used up too much space, I just deleted stuff. Even back in the days when I had 1.2gb drives, I usually ran out of space in /var because of some runaway mail spooling or apache logs. But Linux has had the ability to mange user quotes all along... just click my ruby slippers...

First, you have to set quotas on the disk using fstab (Fle system table), like so:

/dev/hda4  /home  ext3  defaults,usrquota,grpquota 1 2


Then you have to create TWO files:

/home/quota.user
/home/quota.group

chmod both to 600 so they are only r/w by owner (root)

Run quotacheck -auvg and wait for it to build those two databases above. Then run quotaon -a to turn on the disk quota (that is, enforce it). Then you have to mkake sure that at boot, the policy is still enforced in rc.sysint or something else in the /etc/init.d directory.

Then, for good measure, put in the quotacheck command in a weekly run script to check on user quotas.

So now what? Well, you have four options: group soft and hard limits, and user soft and hard limits.

Soft limits are warnings you are about to reach the hard limit, so you should have the soft limts be lower than the hard ones, obviously. It has a Grace Period.

Hard limits are the end of the road, budyy. No more inodes or disk space for yuo! This is a 1.2gb hard drive for over 50 students! SEIG HEIL!

The grace period is the time during which the soft limit may be exceeded. The grace period can be expressed in seconds, minutes, hours, days, weeks, or months, giving the system administrator a great deal of freedom in determining how much time to give users to get their disk usage below their soft limit.

quota -u user_id will show you the user quotas
quota -q will show you who's over the limit

edquota -u user_id will launch vi to edit the quotas for the user, mien fuhrer.
edquota -t will launch vi to edit the grace period
edquota -g group_ID will launch vi to edit the quotas for the group (duh)

repquota produces a summarized quota information for a file system. Here is a sample output repquota gives:
# repquota -a 
                                Block limits               File limits 
        User            used    soft    hard  grace    used  soft  hard  grace 
        root      --  175419       0       0          14679     0     0 
        bin       --   18000       0       0            735     0     0 
        uucp      --     729       0       0             23     0     0 
        man       --      57       0       0             10     0     0 
        user1     --   13046   15360   19200            806  1500  2250 
        user2     --    2838    5120    6400            377  1000  1500


Zat ees not FUNNI!

quotaoff -av turns off quotas, which you may need from time to time if things get stuck or you get sick of the whole NAZI mess.

Oh, crap, I enacted Godwin's Law. This post has to end now, and I lost the entry.

__________
Disclaimer: While I have been managing Linux systems for almost 10 years now, but I am mostly self-taught. I have a RHCT certification, but I am taking the LPI and CompTIA Linux+ exams to "flesh out" some of the gaps that occur from too much real-world experience versus my lack of good old fashioned book learnin'. This entry in no way assures you my thoughts are correct, I will have frequent misspellings, and they may or may not help you pass the LPI. HUGE parts of the exam will be missing because I already know half of it by heart, so using me as your only study guide is a terrible idea. Please read this entry with a healthy amount of skepticim, and PLEASE feel free to correct or add comments! My ego is hardy enough to admit when I am wrong. Posted in: linux , lpi
August 25

More on training (Punkadyne Labs (Punkwalrus))

It looks like I will be doing more of the LPI track than the Linux+ track. My boss wants me to focus progress on the MCITP and Network+ side of things by the end of the year, so it was discussed (not decided) to drop the Linux+ until possibly next year since "it's really only a basic Linux cert anyway in comparison to the LPI track."

I am really nervous about the exam. I am nervous because in the practice tests, I get wrong answers because I misread the question. This sucks donkey waffles. It's like I know the material, I just test poorly. That CCNA whipped my ass 8 years ago. I remember reading the questions, and they didn't make any sense compared to what I just studied. It was like a nightmare. The fact I got 60-65% was not "better than nothing" because I didn't get the cert.

The RHCE wasn't so bad because at least you can figure out what you did wrong as you are setting stuff up. Not so much with multiple choice/fill in the blanks.

This was the total opposite of what I experience back in school: I never did the homework, but I aced tests. Arg... :( Posted in: linux , lpi , mcitp , training , work

LPI 101 Exam notes: 4 days to exam (Punkadyne Labs (Punkwalrus))

Since I goof off and LJ so much, I have decided to hijack the process and write my study notes and thoughts. But they are probably totally boring for those not interested in Linux. These notes may be very long and disjointed, so... I put them...

For those interested, think there needs to be corrections, have neat trivia, or have some things to say: COMMENTS ARE ENCOURAGED!!!
___________
I did a shitload of studying over the weekend. I had to stop because my head hurt. I got made because my dyslexia, which I made peace with once I got out of high school, has reminded me of why it was probably a good idea I never went back to school. Things will stick to my brain like throwing spaghetti on a wall. Some stick, others slide off no matter what I do.

Oh, how I will ramble.

Some new stuff I sort of "learned" follows. While I sort of understood these concepts, I had a lot of problems remembering what order anything was. I had to develop some mnemonics to try and remember them for the test.

ln, the link feature. It's

ln [-s] original_file link_name, like

ln -s lancelot link

(secret chimp... duh nuh nuuuuh...)

Damn, I hated that show! But Link comes second after Lancelot, so hopefully, I'll remember this. For mount, I have to thing "DM for "Dungeon master" for "Device then mount" like

mount /dev/hda6 /var

The rest I know, like -t iso9660 for loop devices, -t nfs for NFS mounts, and so on. I use the stuff all the time, but I always forget the order! Hopefully, these will help.

Next, I had to get the file permissions nailed down. Again, I got confused on order. Like It's User, Group, Other. I'd get "o" confused with "owner," which sucks. So I am trying "UG Other," so I remember "o" stands for "other." You'd think "Well, if 'u' means "user' then... " No. Because when I had a command like:

chown o+x filename

I'd think it mean, "Make the file executable by owner." I also got the order of stuff mixed up in my dyslexic brain. UGO will help (it's like UFO), but to remember "other" will be hard. Why, brain, why? OTHER OTHER OTHER!!! [sigh]

I am grateful that when I started in the UNIX days back in 1989/1990, I was told how to do everything by octal numbers, like:

chmod 755 perl_script.cgi

It was funny, I never thought of these as "octal," just "uses the numbers 0, 1, 2 and 4 in any combination to get 0-7." I just assumed we didn't use 8-9 because... well, I never thought that far. But yes, 0-7 is octal. So if you add 1 to 7, you get 10 (in octal). I bet this messes with those kids who went to school after the removed the "new math" curriculum in school (which happened around the time I went to school, so I got a combination of the old "new math" and the new "what the hell were we smoking in the 1960s to teach kids math this way?"... but I digress...)

So, with the octal numbers, you have 4 modes (like an IP address has 4 octets). Each of these access mode bits represents Special, User, Group, Other.

The new stuff (for me) was the "hidden" (for me) first three access mode bits, the SUID, the SGID, and the "sticky bit." I knew about the "sticky bit" because it was in the RHCE exam, and I thought, "OooOOooh how clever." Then never used it and promptly forgot it. I don't know if it was around when I started UNIX, I only remember the 3 octal access modes, and not the one before it. I supposed it existed back then, and I was never taught to use it.

SUID only works on executable files (not directories) and SETS the USER ID of the process run to the file OWNER (who may be different from the schmuck who launched it). Let's say you have a file owned by root, like passwd, but accessible to anyone, like passwd. Joeuser launches the executable, like passwd, but since the file, like passwd, is owned by root, the process launches AS root (not as joeuser, who would get a permission error otherwise), which you need for certain programs to give them root access, like passwd. This is great! Except when it's not, and joeuser is a hacker, and you have some other executable that will run AS root, no matter who launches it, and then joeuser starts his tomfoolery.

SGID is the same thing for an executable, but for groups. In addition, setting the directory SGID will do something really nifty: new files created in that directory will be assigned to the group ownership of the directory itself.

And then there's "the sticky but," as it's called, used to be run only on executables. But nowadays, it's most commonly used for protection of files. When it's set by the user, the only users who can delete or rename the files are the user themselves, the directory owner, and root of course. This allows a team of people to create and modify files, but only the owner can remove/ranme them (which is kind of the same thing, when you look at it).

The rest I knew. Back in the day, we did a lot of "chmod 755" stuff, which makes the file fully accessible by the user, but only readable and executable by everyone else. The order of this is

RWX, the Rude Walrus Exchange (hah, I kill me)

So you have this neat octet code. I remember when Allon first explained this to me, and how you could get any number from 0 to 7 with just four numbers. I spent a day and 3 hours thinking how nifty this was, and how it all tied in.

4 = read
2 = write
1 = execute
0 = nothing

In UNIX, this 755 is also rwx-r-xr-x

In addition, there's a "umask," which like a netmask, is a sort of filter when files are created by the current user in the current shell. The default umask is 0002, which leaves your files clean and minty fresh as 7775 (in some distros, it's 0022, so that would be 7755, check by typing umask)

chmod = change mode (the access modes)
chown = change owner
chgrp = change group

__________
Disclaimer: While I have been managing Linux systems for almost 10 years now, but I am mostly self-taught. I have a RHCT certification, but I am taking the LPI and CompTIA Linux+ exams to "flesh out" some of the gaps that occur from too much real-world experience versus my lack of good old fashioned book learnin'. This entry in no way assures you my thoughts are correct, I will have frequent misspellings, and they may or may not help you pass the LPI. HUGE parts of the exam will be missing because I already know half of it by heart, so using me as your only study guide is a terrible idea. Please read this entry with a healthy amount of skepticim, and PLEASE feel free to correct or add comments! My ego is hardy enough to admit when I am wrong. Posted in: linux , lpi
August 21

Tab completion on remote machine with SCP (rianjs.net (Hanser)) by Rian

I generated a public/private key pair on my local machine, and I'm experimenting with copying files from here to my webhost without needing a password. Took me a few minutes to get working, but now I'm playing with it, and I accidentally hit [tab] while putting together an scp command on my local machine.

It autocompleted with what's available on the remote machine.

That's pretty fricken cool.

Posted in: linux , random , scp , technology , ubuntu
August 11

Man... I gotta study hard (Punkadyne Labs (Punkwalrus))

This is gonna be one big year for my edjumacation. Here's what's on my docket to learn and pass by May of next year:

LPI 101: Exam Aug 29th
LPI 102: Hopefully an exam by mid-Sept (if I pass both, I am LPI Level 1 certified)
Network+: Exam around mid-Oct
Linux+: Exam around mid-Nov
MCITP: Server Administrator by Christmas (3 exams)
LPI 201 & 202: by February (to get LPI Level 2 certs)
RHCE: Re-cert for Red Hat (mine will expire) Dine by April
LPI 301: Done by May/June (to get LPI Level 3 certs)

I'll be certified to install Windows or Linux on a dead badger by then. Posted in: linux , lpi , mcitp

LPI 101 Exam notes: 18 days to exam (Punkadyne Labs (Punkwalrus))

Since I goof off and LJ so much, I have decided to hijack the process and write my study notes and thoughts. But they are probably totally boring for those not interested in Linux. These notes may be very long and disjointed, so... I put them...

For those interested, think there needs to be corrections, have neat trivia, or have some things to say: COMMENTS ARE ENCOURAGED!!!
___________
Ugh, I forgot my book at home. But that's okay, because Cailin provided me with links to her web site and some notes he made. It's not in the order the book was, but I know kind of where I left off.

Regular expressions. You know, I use these a lot, but mostly for globbing (the ubiquitous *). Once in a while, in Perl, I use the "RegEx" set to make decisions. But I don't have a lot of stuff committed to memory, and especially not BASH, because when I do RegEx, I usually do it in Perl, but in either case, I often just look up what I need, cut and paste, and then forget it. This is why I am still a low-class programmer. I have issues with ever basic commands. I always get the caret (^) mixed up, for instance:

^n - matches start of string that begins with n
[^n] - matches any string NOT containing just n

The first part works, the next one does not work like I expect. I keep thinking it's going to work like "grep -v" but it doesn't. I think it's a "complete line" thing. I did a lot of testing with this stupid thing, and made a file containing 3 lines:

ABC
abc
xyz


If I did an egrep ^A I got just the 1st line, which is what I expected. If I did an egrep [^A], all 3 lines showed up. I expected the 1st line not to. But I think the [^A] means "the whole line," because when I added a 4th line that simply said "A", it didn't show up in either egrep. And to prove this theory, I did egrep [^ABC], and to my surprise, neither the 1st OR 4th lines showed up! In addition, a egrep [^CBA] had the same result. So I am just not "getting" this at all. Is is an "both and/or" situation, like a "super-and?" I added a 5th line, and made it simply "B." egrep [^CBA] excluded it, but egrep [^BA] showed the 1st line, "ABC" which seems to support my theory of "super-and."

This needs more meditation for my teeny, teeny brain.

__________
Disclaimer: While I have been managing Linux systems for almost 10 years now, but I am mostly self-taught. I have a RHCT certification, but I am taking the LPI and CompTIA Linux+ exams to "flesh out" some of the gaps that occur from too much real-world experience versus my lack of good old fashioned book learnin'. This entry in no way assures you my thoughts are correct, I will have frequent misspellings, and they may or may not help you pass the LPI. HUGE parts of the exam will be missing because I already know half of it by heart, so using me as your only study guide is a terrikle idea. Please read this entry with a healthy amount of skepticim, and PLEASE feel free to correct or add comments! My ego is hardy enough to admit when I am wrong. Posted in: linux , lpi
August 9

LPI 101 Exam notes: 21 days to exam (Punkadyne Labs (Punkwalrus))

Since I goof off and LJ so much, I have decided to hijack the process and write my study notes and thoughts. But they are probably totally boring for those not interested in Linux. These notes may be very long and disjointed, so... I put them...

For those interested, think there needs to be corrections, have neat trivia, or have some things to say: COMMENTS ARE ENCOURAGED!!!
___________
So, where was I? You know, I never realized the man command has so much junk around it. I was curious why sometimes they had entries like, "See also smb.conf(8)." What does the "8" stand for? Oh, they are sections! Hah, cool.

I have already spent a few chapters of my main study guide as of this entry, filling in the gaps of my hardware knowledge, notably SCSI and USB.

Now I am learning all the stuff about the bash shell I should have known for these last few years. My first shell was csh, way before bsh, and then bash. I knew that $PS1 was the prompt, but I should type it to remember it. The command export SOMEVAR will make SOMEVAR an environmental variable. I have never needed this, because I mostly work with scripts that are in one shell, but it's nice to know.

There's a note that your last session is the one to write your history to ~/.bash_history. Man, there' also a good list here of commands that WOULD come in useful. Like:

!! - redo last command
!n - redo command n from history. I knew this, but I have never needed it because when I do "history," I just cut and paste from the terminal window.
!-n - Redo command of the last command, minus n. Again, see above.
!string - Redo command that starts with string
!?string - Redo command that contains with string

I think I shall use !?, !string, and !?string more now. Thanks LPI! This is exactly why I wanted to take this exam!

Bash also does Emacs bindings, but I never did Emacs because when given a choice between Emacs and vi, I chose vi because it was on EVERYTHING back in the day, and Emacs was considered a huge memory hog. Note to self: learn Emacs.

The "META" key on a PC keyboard is really the "ALT" key

[Control] + rstring is a handy search thing for a previous command. OooOOooh...

I knew about cut where -d is delimiter and -f is field, head, tail, and nl (number line), but I didn't know about:

expand, which converts tabs to spaces (handy). I has an opposite called unexpand
fmt, which manipulates paragraphs and text width.
od, dumps files in octal and other formats
join, which will join (text) files at various points
split, splits a (text) file into various parts
paste, pastes lines, which can have what to paste with (-d). This would be handy in creating e-mail address lists from /etc/passwd and making cvs files.
pr, which can take text and output them in columns with headers and nifty stuff that is lpr-friendly. This is WAY cool. Go play with it. Here's a command to start you off: ls -a | pr -n -h "Files in $(pwd)."
xargs, Okay, I know about and I use this, but barely understand how it works. I have a LOT of problems with -0 and -print0 and all that when dealing with stupid Windows files with spaces.
tee, which takes std output and puts it on the screen AND a file of your choosing
ps, I only ever do ps aux and ps, never anything else. It's far more flexible, like -Uuser for user, -f for tree, -w for wide (don't truncate), and -Ccommand for command
pstree is a lot like ps -f

They go into kill a lot, and I need to hunker down and study this. Sure, I use "kill -9" all the time, but kill can be used for so much more.

kill -HUP 1015 : Hang up process 1015. This used to be for modems, which would then reset and reload the config for the next call. But nowadays, it's more used for services where you just want the process config to be reread

kill -INT 1015 : Interrupt. This is really what's sent with "[control] + C."

kill -KILL 1015 : Infamous "kill -9" which is "terminate with extreme prejudice."

kill -TERM 1015 : Terminate nicely, if possible. Lets a service shut down gracefully.

kill -TSTP 1015 : Terminate and stop process, but leave it ready to go. It "pauses" the process in most cases, like "[control] + Z"

kill -CONT 1015 : Continue process from TSTP, like fg or fb from a [control] + Z

nice I have always had a weak spot for, since I rarely use it these days. The numbers range from -20 to +19 where, from left to right, are more powerful to weaker (it's counter-intuitive, so think of it like old AD&D; Armor class where lower is better). A normal process starts out priority in the dead middle, 0. "Nice" set it to +10, unless you go nice --10 (notice 2 dashes) or nice -n -10, which will set the priority at -10, halfway up the high end of the scale.

renice is best when the program is already running. -u states ALL that users processes. renice -10 -u jdean would set all of jdean's processes to -10 (higher). renice never needs the second dash, BTW.


__________
Disclaimer: While I have been managing Linux systems for almost 10 years now, but I am mostly self-taught. I have a RHCT certification, but I am taking the LPI and CompTIA Linux+ exams to "flesh out" some of the gaps that occur from too much real-world experience versus my lack of good old fashioned book learnin'. This entry in no way assures you my thoughts are correct, I will have frequent misspellings, and they may or may not help you pass the LPI. HUGE parts of the exam will be missing because I already know half of it by heart, so using me as your only study guide is a terrikle idea. Please read this entry with a healthy amount of skepticim, and PLEASE feel free to correct or add comments! My ego is hardy enough to admit when I am wrong. Posted in: linux , lpi
July 9

Impressed with Ubuntu (rianjs.net (Hanser)) by Rian

I've been wanting to learn MySQL and PHP for a little while now, because I think it'll be useful in the coming months, so I decided that I should probably install Linux, rather than installing the two on Windows. (There's something about that that just feels wrong.) I have something I'm itching to build, and it's time to start picking up some new skills again. I've had a spare 500GB drive lying around for a couple of months, so I popped it in on July 4, downloaded Ubuntu 8.04 Hardy Heron, and installed the OS almost as a spur-of-the-moment thing.

I was amazed at how quickly and painlessly the OS installed. Back in 2001-2002, the last time I made a serious go of running Linux (Debian), it took almost 18 hours to get the OS installed and configured to the point where I could use X. It took a lot of help from the guys in #linux, too. I never would have been able to do it without their help.

But this time it was as easy as putting the CD in, booting from the optical drive, entering my desired username, password, and localization settings, and that was it. About 45 minutes later, I booted into Gnome, and had working sound and networking, right out of the box. I ran the GUI Update Manager, which found a proprietary display driver for my GeForce 8800 GT — in addition to other normal system updates — and a single restart later, I had graphics acceleration and an up-to-date OS installation.

Total time to working install: ~60 minutes, including software updates. It was faster and easier than installing XP, Vista, or Mac OS X Leopard, and by a significant margin. In terms of ease of installation, I would rank them in this order:

  1. Ubuntu 8.04
  2. Windows Vista
  3. Mac OS X
  4. Windows XP

I also installed the Redhat Liberation Fonts following the instructions here, and pretty soon, I had non-crappy looking fonts. (You'll have to change your system fonts in both Firefox and Ubuntu itself to use them before you'll notice a real difference.) While they're still not as nice as Windows or OS X, they're quite a bit better than what you get OOTB with Ubuntu. And I'm not even sure that they're *bad* per se. I think they're just different than what I'm used to.

That ended my adventures in Linux for a few days until tonight. I needed to get a significant amount of schoolwork done which unfortunately requires Internet Explorer. I'm pretty well caught up there, so I've been booted back into Linux for the past two hours or so. In that time, I've gotten my laser printer working using the generic PCL6 drivers with Foomatic/pxlmono. Print quality is great, and I can even configure the printer to print as "draft" quality without messing around. I couldn't even do that with OS X.

My only complaint so far as that when the machine is woken from sleep or hibernate, there is no sound. Apparently this is a common problem with a couple of possible solutions, but I have not felt any inclination to try any of them yet. Maybe in another couple of days or so.

Hopefully I will be booted into Linux for another couple of days before having to go back to Windows for any reason. Alas, I am unable to ditch Windows entirely as I do some pretty intricate page layouts and PDF conversions from within Word, but hopefully I can minimize the amount of time I spend there.

To figure out for the future, should time and attention span allow:

My main focus right now, though, is building my project, which has some very serious monetization possibilities. Now if only I can get someone else to answer his phone.

Posted in: linux , productivity , technology , ubuntu
July 3

Bit Stories 2008-07-02: Recording Screwups, Moblin.org, Linux, MIDs, and NetMeeting (Tiny Screenfuls (JoshB)) by Josh Bancroft

Here’s this week’s show! Have a listen, and check out the download/subscribe links and detailed show notes below.

This week’s show is only 30 minutes long and weighs about 28MB (it’s a 128kbps MP3). You can download the file directly, listen using the streaming player above, or (BEST OPTION!!1!) subscribe to the Bit Stories podcast feed in your favorite podcast aggregator (like iTunes). If you subscribe to the feed, you’ll get each show delivered automatically as it becomes available - probably once a week or so, with the occasional bonus video or audio segment thrown in for fun. Plus, we’ll love you forever if you subscribe! :-)

Bit Stories Podcast Recording Setup

Here are some free form notes from today’s show:

  • Yet Another Audio Setup

  • Embarrassing Confession: We recorded the last two shows using the built-in mic on my MacBook Pro, instead of the elaborate mixer/condenser mic that we have set up. Because I’m an idiot. The saving grace? It sounded pretty darn good! :-)
  • Have developers let the Tablet PC community down?

  • Brian paved and reinstalled Windows XP on his Samsung Q1 UMPC
  • Why XP instead of Vista? Not quite enough horsepower.
  • Josh has done the same thing (gone back and forth between XP and Vista) on his Asus R2H UMPC
  • Speaking of mobile device operating systems… Moblin.org
  • What the heck IS Moblin? Is it an OS?
  • Moblin is a stack of tools to help create OSes and applications for Mobile Internet Devices. It’s sponsored by Intel, and hosted by Intel Software Network
  • Ubuntu Mobile Edition (UME) sneak peak is out there, if you have a Samsung Q1 Ultra
  • Brian feels that he won’t be able to use a Linux-based MID because of the lack of mature ink/handwriting input support
  • It’s really hard to do an ink interface well
  • Will Atom-based devices ever have the horsepower to do handwriting well? Is this a hardware or a software problem?
  • Do open source projects do better when there’s a common, widespread demand and need for the result (like a web browser)? Do enough people in the open source community need and/or want good ink and handwriting support to motivate them to write it? Would enough people use it and care about it to make it worth their time?
  • Since Mobile Internet Devices are all about the Internet, having a good browser is going to be essential.
  • Windows versus Linux on these small, pocketable internet devices.
  • In general, lack of UI “polish” in Linux applications is a deterrent for non-geeks to adopt it.
  • Brian’s “essential” applications on his Samsung Q1: Microsoft Office, Firefox, and Microsoft Money
  • Is Firefox the exception to the “Linux applications don’t have a good interface/user experience” stereotype?
  • How easy is it going to be to “install any app you want” on the upcoming Linux MIDs?
  • The challenges of adapting applications to devices on smaller screen.
  • UMPCScrollBar - a great little app that lets you scroll windows around the smaller UMPC screen, so you can get to the “Install” and “OK” buttons that get pushed off the bottom of the screen.
  • Intel Software Network’s mobility community makes tons of resources, tools, and smart people available for people writing applications for these devices. Take advantage of us!
  • Without great software, Intel products are just a bunch of really tiny hot plates. :-)
  • Have we discovered the REAL reason Intel has chosen not to deploy Windows Vista? Is it because NetMeeting is no longer there? Microsoft stopped distributing NetMeeting in 1998 - TEN YEARS AGO. But Intel lives and breathes NetMeeting - old habits die hard. (Update after the show: according to Wikipedia, Microsoft released a hotfix that allows you to download and install NetMeeting on Vista. Guess we were wrong! ;-) )

  • Macs do Screen Sharing, based on VNC, but there’s NO way on a Mac to participate in a NetMeeting call, because it’s a closed, proprietary Microsoft protocol.
  • Google Docs is GREAT for live collaboration.
  • PowerPoint is a great presentation tool, but it is NOT a collaboration tool! It gets abused WAY too often. PowerPoint abuse starts early - Brian’s 7th grade son is already doing it!
  • New recording time - Wednesday morning instead of Friday afternoon. Hope this gets the show out faster, and Josh and Brian perkier.
  • Josh’s morning voice - he’s not a morning person. Brian gets up at 5:30 AM.
  • Stuff we didn’t get to this week: Brian dips his toes into the world of Twitter and FriendFeed, and next week is iPhone 3G day! Come stand in line with us!

The show is picking up steam - we’re hitting our stride, and cranking them out. Many, many thanks to our listeners - we love you guys! We love connecting with people through the show, and getting to know who’s listening. But the only way we can do that is if you talk to us, so leave a comment, email us, or find some other way to say “hi”, and let us know what you think of the show! :-)

Posted in: bitstories , blog , brianjarvis , developers , intel , joshbancroft , linux , mobile , moblin , netmeeting , podcast , software , umpc
May 9

To my pals with tech certs (Punkadyne Labs (Punkwalrus))

Can I ask you guys something? What certs do you have, and have they been useful to you? Like RCHE, RHCT, CCNA, CCNP, MCSE, and so on? I am asking for real world recommendations, like, "I got this, it got me a better job," or "Never came in useful, but was really fun," or "I consider this cert many hours of my life I will never get back."

I am thinking of getting some certs in some areas that need a little back filling. For instance, CompTIA has a relatively new "Linux+" exam that I'd like to take, and I'd like to start with the LCPI exams as well. But I'm also kind of curious about the A+ and Network+ exams, since I seem to do fairly well on practice exams, although I am sure I couldn't pass the real ones blindly without some good prep work.

When I have gotten the prep books, I have found I am a little lacking in some areas that are "basic," but I have never actually had to use in any job I have. Like I am a little weak with permissions and quotas in Linux, for instance, because most of my setups have been my own personal box, and those that have shared with other people all pretty much stayed in their home directory. I recall a bad moment in my RHCE exam where I had to set up something that was not listed in my specs, and I was balking in my brain, "NOBODY would use [censored by my NDA with Red Hat] in a real server environment!!! Come on!" I lost valuable time trying to read the man page on it and get it set up. So it's difficult trying to set up, say, an NIS+ server and client when you are studying alone because you need a real-world like situation to really learn it.

I tried to get some people here at work interested in studying, but the reception was lukewarm at best, even when I promised Legos. I tried to start an "RHDA," for "Red Hat Dark Arts," because the 7th Harry Potter book had just come out, but it fizzed after a few sessions. Posted in: certifications , exam , linux
May 5

Being on Ubuntu exclusively (Punkadyne Labs (Punkwalrus))

This entry is going to be pretty amazing for me, and is yet another win I had over the weekend.

Two weeks ago, CR needed a new computer, and I had a spare, but I couldn't find my Windows XP disk. So I set up an Ubuntu box for CR with the new 8.04, aka "Hardy Heron." It had all he needed, OpenOffice, Pidgin, Skype, and the basics. It also had "wobbly windows" which I love.

On my main Windows box, I had a dual boot with an older version of Ubuntu, 7.10. CR asked me why I didn't use Ubuntu, and there was a pang of geek guilt there. The truth was, for the last 4 years, I have been trying to have a Linux desktop, but it was never quite all there. I try Linux as a main desktop from time to time, but usually stop within a day because it won't do something I need, or hangs for no good reason, or just feels funny (fonts, colors, or window behavior).

So I logged into my Ubuntu, and did a distro-upgrade expecting the usual broken libraries, corrupted Xorg session, or whatever. But it went smoothly. And when I rebooted, not only was everything back, but it all worked. I have been using Ubuntu now exclusively for a few days at home and I have been both shocked and delighted that I can do pretty much anything I could do in Windows on the new version of Ubuntu. It even played trailers on Apple's Quicktime site, and that almost ALWAYS fails. But everything has been working great.

Wobbly windows and all.

Besides wobbly windows, there have been a few unexpected benefits: I noticed my samba connection from Ubuntu to my main CentOS linux server has been so fast, it's been hard to believe. It's on a GB connection, but when I used Windows => Samba, it took about 10 seconds to do a GB of data, and on this, it takes less than 3. All downloads seem much, much faster, even from the Internet.

I have had a few issues.
- Sometimes sound stops working. It just cuts off and stops after the box has been on for a while (like over a day). It's cured by a reboot, however, the box has been up this time around for over 2 days, and the sound still works, so it's a mystery what's been cutting the sound off.
- A few times when I used OpenGL applications, the entire box freezes and I have to do a hard reboot. CR has also reported this.
- I am not sure how I could make this work with my job when I am on call. I need Cisco's VPN to connect, and IIRC, there is a Linux
version, but I am not sure how it works.
- Mapping to a share makes it add a link on the desktop, even if you already had one. This may be a setting I can change, though.
- I prefer KDE over GNOME. But KDE doesn't have wobbly windows working quite right yet. Rats! But I can use KDE apps, I suppose. Why whine about it? Posted in: linux , ubuntu
April 19

With apologies to Kelis ... my silliness known no bounds (Punkadyne Labs (Punkwalrus))

My Distro

My distro brings all the geeks to the screen,
and they're like,
its better than yours,
damn right its better than yours,
Like Windows,
but they like to charge

My distro brings all the geeks to the screen,
and they're like,
it compiles for hours,
damn right it compiles for hours,
Like Gentoo,
but with less emerge

I know you want it,
with just one makefile,
what the geeks go crazy for.
Partition drives,
one more time,
One more GRUB line

la la-la la la,
boot it up.
la la-la la la,
the geeks are waiting

la la-la la la,
start it up.
la la-la la la,
Gnome or KDE?

My distro brings all the geeks to the screen,
and they're like,
It's got Compiz,
damn right it's got Compiz,
Like Vista,
but with less crashes

My distro brings all the geeks to the screen,
and they're like,
You got m4d sk1llz,
damn right I got m4d sk1llz,
Install it,
Share the torrent

I can see the torrent,
you want me to share the
techniques that geeks adore,
it can't be bought,
just know, support will cost,
add to your Paypal cart,

la la-la la la,
Digg it up,
la la-la la la,
the clicks are waiting,

la la-la la la,
hack it up,
la la-la la la,
claim it's your creation,

My distro brings all the geeks to the screen,
and they're like,
Does it come with MP3,
It does not come with MP3,
You can install it,
but don't tell me...

My distro brings all the geeks to the screen,
and they're like,
Ubuntu sucks,
damn right Ubuntu sucks,
It's based from it,
but that's not the point

[c] 2007 Grig Larson, via spoof of Kelis's "Milkshake." Posted in: distro , kelis , linux , milkshake , spoof
April 15

Exclusive: 23 minutes of hands-on with the Lenovo and Aigo Mobile Internet Devices (Tiny Screenfuls (JoshB)) by Josh Bancroft

OK, so I’m a couple days late, and I know I’ve been teasing you with photos and videoappetizers“, but I hope the quality/content of these videos makes up for it. While I was in Shanghai, China last week for the Spring 2008 Intel Developer Forum, I stayed a few extra days to work with the Intel Software Network China team, with the hope that I might be able to score some hands-on time with some of the Mobile Internet Devices that were shown for the first time at IDF.

There are only about 20 MIDs in the world today, all prototypes, and they were pretty much all at IDF. As you can imagine, access to them is jealously guarded, and they were pretty busy being shown off, participating in photo shoots, etc. My access to them got postponed, rescheduled, and moved around a lot, until one afternoon, we got the call. “You can come play with the MIDs if you can be here by 5:30pm.” It was 5:00pm, and Welles and I jumped in a taxi right away, headed for the Intel Software group’s Mobility Enabling Lab. I didn’t have time to go back and get my “big boy” professional video gear, so these videos were shot on my pocket Aiptek Go-HD camera, secured by a GorillaPod. I think they turned out pretty well.

Big disclaimer: the Linux-based software for both the Lenovo and Aigo devices I used is NOT final - there are some features that aren’t implemented, and performance optimizations that haven’t occurred. This is NOT how they’re going to be when they’re released commercially. There are crashes, slowness, and missing features in these videos. Think of this as a preview of the foundations of the software - what it’s capable of in general. Then squint your eyes a little and imagine the final version, a little more polished, sitting happily in your pocket. :-)

First up, here’s a 13 minute video of the Lenovo Ideapad U8 Mobile Internet Device (MID). It’s one of the more unique hardware designs, with it’s flared end, special limited edition Beijing 2008 Olympic color scheme, and hardware number pad, for T9 text entry. In the video, I take a detailed look at the hardware (Intel Atom processor, two cameras - the rear one is 2.0 megapixels, SD slot, GPS, USB ports, etc.), and spend some time poking around with the software/user interface:


You can download the high quality (640×360) MP4 version here - the file is about 153 MB. You can also embed/share the video on your own blog or site by grabbing the Show Player code from the video’s page on blip.tv or by clicking “Embed” in the show player above.

Next up is 10 minutes of video with the MID from Aigo. I cover pretty much the same aspects of this device in the video as I did with the Lenovo Ideapad - hardware (sliding QWERTY keyboard, two cameras - the rear one is 3.0 megapixels, MicroSD slot, USB ports, “Smart Key”, etc.) and software and user interface. The Aigo device looks very similar to the Gigabyte MID, which has been floating around, making appearances. So much so that I suspect they’re manufactured by the same OEM, but I didn’t get any concrete information on this, so I’m just speculating. Here’s the video:


You can download the high quality (640×360) MP4 version of this video (117 MB) here, and get the embed code to share the video on your own site/blog on the video’s page on blip.tv, or by clicking “Embed” in the show player above.

Now that you’ve seen the videos, I hope some of your questions have been answered. And, no doubt, you have new questions. I’ll do my very best to get answers for you, so post your thoughts and questions in the comments below. Thanks for being patient while I got these videos ready. I have a TON more video content that I shot at IDF, and that will be coming out as it gets processed/edited. But this is the juicy stuff, so enjoy! :-)

Posted in: blog , devices , exclusive , handson , hardware , intel , internet , labs , linux , mid , mobile , shanghai , software , video
April 2

Quote of today (Punkadyne Labs (Punkwalrus))

From the Slax forum:

> Where can I download the BSOD screensaver?

Just install Windows. It's included by default.


Haw. Posted in: linux , microsoft , slackware , slax
March 16

My gold stars for this weekend (Punkadyne Labs (Punkwalrus))

I spent most of today upgrading my central home Linux box. It was Fedora Core 6, and now it's CentOS 5. I was tired of Fedora always going out of date after 2 builds after the Fedora Legacy project died, and I wanted something I wouldn't have to re-install for a long time.

I also cleaned up our master bedroom bathroom, and it looks almost new! I stun myself when I go in there, it has a white counter top, and all the faucets and tiles are shiny. I also tossed out expired medications, which, if my bulk of labels are to be believed, I hadn't done a sweep like this since 2005. That's not good... :(

I also hunkered down and tried to improve my Swedish a little. I am happy to report that a lot of stuff I pick up sticks, but it's a slow process. I really wish I had insisted my mother speak Swedish to me; damn my father's rules on it, but I didn't.

Last night I was out with [info]takayla and [info]mysticpaws at Amphoras. [info]takayla ate some chicken chili that wasn't cooked properly, so she's in bed right now, rather ill. Posted in: cleaning , computer , housework , linux
February 4

OLPC Part 12: My first users meeting anything since 1990 (Punkadyne Labs (Punkwalrus))


OLPC in DC Meeting
Escape command double yu bang saves

Originally uploaded by punkwalrus
So, apart from excitement and sadness since Thursday night, I went to an OLPC Users meeting. The last time I assembled with a bunch of fellow nerds for a specific hardware platform was AtariFest in 1990 or something. Much discussion on the STacy coming out. I was a member of ARMUDIC, and got in some embarrassing (for me) flame war with Amiga enthusiasts on a dial-up BBS.

Nothing's changed. It's the same people! Okay, Georgia Weatherhead and Tom Hudson weren't there, but I mean the same type of people. I felt like an elder, because I wore a very geeky vi joke shirt and RIGHT away an emacs guy called me out on it. We almost had a "I remember punch cards and LPTs and PDP/11s..." war before I stopped. Did I *want* to look old? Some of the people there were like, 8 or 12. Seriously. Someone's Junior High class, I think, was there. And adults.

In any case, Mike Lee ran the show. He's got a lot of hats. He's head of the OLPC Learning Club - DC, blog writer for olpclearningclub.org, and his company's sponsorship liaison to the MIT Media Lab (which developed the OLPC). Nice guy. He brought all kinds of OLPC accessories, mostly of what he's been showing off on OLPC News. Curtis Cannon from Greater DC Cares was there, and spoke about some of the connections that OLPC was expected to bring. The most "ooh ahhh" that was not a foot-pumping generator was Justin Thorp talking about the involvement of the Library of Congress, bringing media to these kids.

Of, coure, the whole time anyone was speaking, I was geeking out with the laptop. There were no open WAPs, and I think even with the online presence, people were too shy to chat with me. I saw some people chatting like mad on what i think was xochat.org, but I think they had a connection to an open Linksys that, for some reason, could only be seen on that side of the room. But I am not sure because if that were the case, we'd all be sharing that wireless connection. Maybe I was doing something wrong.

Afterwards, there was some "free mingle" time which I enjoyed. I learned a lot. I had always suspected the "top row" was function keys, and now I had proof.

I hope to make the next one.
Posted in: computer , linux , olpc , olpclcdc , review , vi
November 2

I am so sleepy (Punkadyne Labs (Punkwalrus))

I was up until 3am with a work-related migration. While the work itself was simple and pretty much worked, it took a long time, and required some specific repetitive tasks in a specific order. Move this, not that, run this, remove this from there, add this to here, add this to pool, remove from old pool, specify IP from pool on new site... etc. if you screwed up the order, a cascading failure would occur and that would be very hard to fix.

Most of the time was due to a slow connection from one server to another, about 9kb/sec on average. This made it more difficult to pay attention and keep track of what step you were on.

In other news, my personal remote server (in our data center; a freebie perk) died. Man... this news won't affect anything, unless you like generating Prune Bran scripts and like [info]takayla's emoticons. I am building a new one; that hardware always did suck and I really think it's my fault for buying an el cheapo motherboard (it used to be [info]takayla's desktop, and never did work properly). It's being replaced by a black monolith of a generic Dell I somehow ended up with. I am also done with Fedora as a distro; it updates too quickly and becomes unsupported within two upgrades. It's being reformatted with CentOS (a far more stable, enterprise like system with a Red Hat base). Posted in: centos , linux , red hat , server , sleep , work
October 25

And once again a Linux Live CD saves someone's ass (Kilala.nl (Cailin Coilleach)) by Cailin Coilleach

The ubuntu logo
Wow, am I happy that I hung onto my Ubuntu and Knoppix live CDs! Once every year I seem to need to them to rescue someone's ass ^_^

In a sort of copy-cat maneuver of last year's debacle involving Marli's laptop my sister Luthien's external disk decided to die. It'd started to make the same seeking noises (whirwhirwhirwhirCLICK), which is never a good sign.

So, we have yet again:
* A windows formatted disk (NTFS this time).
* An unreadable disk even, one that crashes Windows once it's attached.
* Lots of important, irreplacable data.
* And no backups ;_;

Actually, this used to be her backup drive, until she ran out of space on the laptop. Seriously, a lot of people do this very same thing, so I'm not blaming her. Too much... :3

Anywho... Just like last year, booting from a Linux live CD let me mount the disk and copy data off of it. Because the disk seems to be broken it's going horribly slowly (to the tune of 40MB in 5 minutes), but at least we're getting to the data.

\o\ Huzzah for Linux! /o/

(I guess it can be useful after all)

Now... I need to get to work in about an hour, but before I go I'll need to reschedule my school work. All of this has cut into my working hours well hard, so I'm going to have to drop some parts of my planning. 't Should be okay though.

Posted in: broken disk , linux , live cd , ntfs , ubuntu
October 19

Staying home gets work done (Punkadyne Labs (Punkwalrus))

Yesterday, I was at home again, because CR was very sick. I mean, he LOOKS fine, until he has to move. He can barely walk a flight of stairs. CT scan is today.

I worked from home, but I confess, I took this opportunity to houseclean. I got a few projects done that I'd been putting off, and I feel a little good about them, as mundane as they are:

- I wrapped the recliner mechanisms in twine to prevent them from reclining. Those cheap-ass recliners broke within 8 months, and refuse to close, and then tilt you back into a recline that tips you to the side. The guarantee for them was only 90 days, and that was almost 2 years ago anyway. The entire back on one of them has now broken, and an inspection of the underside shows the cheapest crate pine wood you can imagine; it's the kind used in shipping pallets. The mechanism was metal almost as thin as an erector set. This represents the 3rd couch set we have had downstairs in 7 years, which represents a total cost of downstairs living room sets as $5200 so far. Next one is $200 from Craig's List I swear.
- I put rubber feet on the couches downstairs, so they don't slide around as much.
- 4 loads of laundry
- Cleaned up the rec room. Found a lot of forks, glasses, plates, and about a 13 gallon bag's worth of trash.
- Upgraded my Linux laptop to the new Kubuntu 7.10
- Did a few bags of trash. Then this morning forgot to put the can by the curb (ugh).
- Cleaned up the kitchen, did 2 loads of dishes.
- Cooked dinner (Italian honey-bread chicken thighs with carrots, mmmmm)
- Threw out more crap from my den. All my spare keyboards are gone, baby...

On Saturday the carpet cleaners come by. Upstairs is a total mess, so tonight I have to clean it all up and get it ready so they can shampoo the rug and sofas. They want us to remove ALL objects on top of other objects, because they will move furniture, but not lamps off of tables, for instance. Don't worry, the shampooing is fume-free, and CR will be downstairs the whole time (which does not have carpeting). Posted in: couch , cr , housework , linux , rec room , recliner , sofa
July 10

Linux iPhone buster... sorta... (Punkadyne Labs (Punkwalrus))

Linux-based GSM phone for only $300! Hooray!

"Currently it is not suitable for users. The state of the software at the moment is pre-alpha. If you order a Neo1973, DO NOT expect to be able to use it as an everyday phone for several months."

Oh... ... Booo! :( Posted in: iphone , linux , open source
January 31

Macenterprise.org [ma.gnolia] (Put together quickly (Haligan)) by MichaelBiven

Macenterprise.org

Daylight saving time laws were enacted in 2005 that take affect this March 11th 2007. John M. Flender put together a great list of patches to handle the switch for different operating systems, hardware and software.

Tags: , , , , ,

Posted in: daylight saving time , linux , mac , os x , sysadmin , windows
January 4

sudo find me a clock (Stonetable) by Adam

I love Ubuntu and Linux. I really do. Some days, though, it does some tremendously stupid things. Before I left the house this afternoon, I tried to hibernate. That failed and hung up the machine. Annoying, but I can accept that. The fun begins when you reboot and the clock says it’s 2:38PM, but it’s really 4:48PM. Weird, but okay. Open the Date/Time settings in GNOME, and yep, it’s set to the proper time zone, and set to sync against various Internet time servers. Close that dialog and the time changes to 12:38AM. What the heck?

So, being all old-school, I break the Ubuntu use-case and open up a terminal to run ntpdate.


stone@mithril:~$ sudo -s
sudo: timestamp too far in the future: Jan 4 14:16:03 2007

Smack

Sudo is so powerful that, despite traveling backwards along the time-space continuum, it is preventing me from obliterating my future-self through some wreckless super-user action. Take that, Vista. Linux prevents you from creating a paradox!

Posted in: linux , ubuntu