Oh baby where have you been all my life?

I just found the mixer(8) command on my BSD powered laptop when looking through the handbook.

This rocks !

Every now and then I like to adjust my sound volume, on the laptop I usually have music going all of the time. I’ve got kmix docked iso I can open and adjust it but that kind of sucks. Because I have to swap from keyboard to mouse or worse mouse-jet around to go from what I was doing to adjusting the sound. Some times the volume slider in my systray really is the best way for that.

Now when I could just suspend Vim and use mixer to adjust it without leaving my shell, that is perfect!

$ mixer
Mixer vol is currently set to 50:50
Mixer pcm is currently set to 25:25
Mixer speaker is currently set to 81:81
Mixer line is currently set to 75:75
Mixer mic is currently set to 0:0
Mixer cd is currently set to 75:75
Mixer rec is currently set to 0:0
Mixer igain is currently set to 0:0
Mixer ogain is currently set to 50:50
Recording source: mic
$ mixer -s
vol 50:50 pcm 25:25 speaker 81:81 line 75:75 mic 0:0 cd 75:75 rec 0:0 igain 0:0 ogain 50:50 =rec mic%
$ mixer pcm 0:0
Setting the mixer pcm from 25:25 to 0:0.
$ mixer pcm 25:25
Setting the mixer pcm from 0:0 to 25:25.
$

I set the PCM/Wave to 0 and then back to 25% left and right effectively muting an unmuting my sound. Since some programs will modify the PCM/Wave setting when changing the volume, like MPlayer and XMMS do by default. While others like Xine based stuff (Kaffeine and Amarok for example) are poilite enough not to dick with the system sound settings.

I’ve come to setting my Volume to 50% and adjusting the PCM setting at will. I could probably make most programs use there own virtual channel and not screw with the overall sound but on my laptop I rarely have a need for it.

I would rather like it if I could do some thing like that on my Windows machine though, so I could for example adjust volumes independently for some applications that don’t support software mixing on windows. Which means all of there sounds run at the settings in windows control center… Like XFires message beeps (ugh) but with how the sound works on my desktop with the Audigy 4…. I’m just happy if I can play Raven Shield and listen to music in any thing _other_ then WMP and not get a BSOD quite often when using the server browser in Rvs!

sshfs?

Hmm could this be the solution to my problems ?

sshfs -o uid=MyLocalUID -o gid=MyLocalGID $USER@$VECTRA: /tmp/mnt

$VECTRA is an environment variable that expands to the address of my file server.

I was able to access my remote users home directory (the one on $VECTRA) through the /tmp/mnt folder on my laptop ($DIXIE)

My local User ID and Group ID #’s on this system are the defaults setup when I installed PC-BSD, don’t recall if I had an option to set them. On my file server where I used adduser my UID/GID reflect my DOB so they needed to be remapped. Once I did that I was able to work on the files through a mount point I own, and

as expected the trusty umount command worked (of course you can’t be using the files while trying to un mount them)

fusefs-smbnetfs in ports is another thing I want to look at, because SMB is suitable for the windows clients just as much as sshfs is for my lapto… Only I care more about my laptop having *good* integration 🙂

On windows I don’t have a problem with SMB shares because it’s fairly integrated with the system, and I use a file manager for manipulating files… The cmd.exe is just to wasteful, it is the worst terminal emulator slash shell I have ever seen! Heck I’d rather confine my self to /bin/sh lol.

On my laptop, I usually do file management through my shell. I don’t use an external mouse, just the touch pad so you could say it’s in my best interests to make use of keyboard friendly designs ;-). I spend most of my time using a shell and utils for file management… So KDE’s integration with SMB Shares (almost as good as Windows and without the lockups).

mount_smbfs requires running as root because of what it has to do, that’s not acceptible to me although possibly I could rig my laptop for a passwordless sudo mount_smbfs but I don’t consider that an acceptable method whether it would work or not.

I’d like to be able to move parts of my home directories to the server. That way I can offload the current versions of my Music, Video, and Image files. I could even move my Documents and code directories which would be nice, right now I’ve been in a bit of a pesky situation.

tar -cf /tmp/foo.tar foo && scp /tmp/foo.tar $USER@$VECTRA:/srv/smb/Files/

So I can work on files from my windows machine, and just tar them back up and scp them over on the laptop later. A poor work around…

I need to test the fusefs-smbnetfs port, either way I know what I want. And to be honest I don’t have a problem with using sshfs for my laptop and smb for my desktop as long as I can get every thing working properly. Using sshfs on the laptop instead would also mean no need to change my laptops firewall configuration.

I just need to see how they handle a network failure….

My file server is usually online but not always, so I’d be hesitant to put my entire home directory on it. And even then, because of my shitty internet connection I often have to do a power cycle on the modem and some times the router every few weeks… So that is a factor that needs to be considered.

And actually, that might be a good way to _test_ it out !

Just not on my laptops home directory xD

days thoughts

So far the updates to my old Vi User how-to are going quite nicely, all things considered.

I’ve come to using GNU Make for automation work, to be honest if I had to use make features that are not standardized. GNU Make is the best bet to learn extensions any way because it is the most available set of extensions.

I’m not partial to BSD or GNU Make in the least, I only care about a working tool.

BSD Make failed to accept the makefile I setup for TeX documents, GNU Make accepted it without problem while BSD Make seems to barf at it. As long as the document gets build without me having to abuse my shells history features I don’t care lol.

The main problem is all of my projects are on a snails creep right now, courtesy of my family.

You know, I think I would love to take a pot & ladle from the kitchen. Then go pace back and forth in front of them banging the ladle on the pot; shouting “How do you like it” until I’m blue in the face — let them experience rest on their days off like *my* days off are spent doing things!

Oh what fun it could be to just be a cruel bastard for a change…

And how peaceful life could be if any one could head my words instead of [as good as] spiting at them.

I hate word processing

Hmm, a small dilemma unfolds itself.

To view files in .doc, .odt, .rtf, et. al. formats I need a word processor that supports them.

To create one, I would generally use Google Docs — normally I use TeX /w LaTeX or XHTML+CSS instead though and skip WYSIWYG word processor crap 🙂

And I’m not about to upload every flib’n file I have to look at to Google Docs either… Nore do I want to bother with programs like anti-word.

But which do I install?

Microsoft Word is arguably the word processor by which all others are judged, much like GNU Emacs is when looking at emacsen.

But when you combine that it is closed source, only supports WinNT, and costs an arm & a leg it is just not worth the extra features unless you need them enough to run Windows for them lol.

Abiword is apart of Gnome Office and light & fast while keeping to a MS Word (pre 2k7) style. The only problems I’ve had with it is it forced me into using MS Word .doc files as the lowest common denominator between word processors! The choice was either .rtf or .doc because Word wouldn’t take any of the other files each of the others could handle.

The only problem is that Abiword couldn’t (and still couldn’t last I looked at it’s dev version) lay out our pages right like the other programs did. So we had to use .doc which worked fine in Abiword 🙁

OpenOffice.org has a good enough word processor, swriter — not as feature full as MS Word but heavier then Abiword. It’s a great program and I’ve used it often in the past for School but for my laptops 512MB of RAM it is a little *to heavy* for my tastes. To be honest, I don’t want to wait forever for a word processor to startup — because it reminds me if some idiot didn’t send me {.rtf,.doc,.odt,.abw,} files I would be using a pager to read the text instead.

KWord is actually quite nice even if it is probably not the best word processor out there. I like very much that despite the similarity in name that KWord tries to be it’s *own* program rather then another imitator.

The problem is like swriter, kword comes with an entire office suite :. I don’t need a Office Gfx app, I use GIMP and a few others when needed. Don’t need a presentation system — I wouldn’t touch one without a pay check! Don’t need a database client because I’d probably use some thing like mysql’s client. And I rarely use either word processors or spreadsheets beyond viewing files.

Hmm… well there’s 17gb of disk space to spare just for installing software so no harm in having both KOffice and most of Gnome Office I suppose.

Now if only they could lift even a finger nail to TeX !

A moment for truth

I’ve got the PC-BSD 1.4.x->1.5 patch pbi downloading, from the best (for me) US Mirror available at a snails pace (20-30kb/sec), so that means it is either time to power cycle ye’ol modem+router or things must be pretty busy. A nice power-cycle and spit upon the hardware and we’re back up to a more acceptable 75-150+ kb/sec according to kget but it still blows. I’ve noticed whenever it rains the internet connection gets even less stable here :

I’m not sure what state the update will leave my laptop in but I know that the *IMPORTANT* stuff is backed up. I trust FreeBSD and OpenBSDs update procedures waaayyy more then PC-BSDs… Today I give them one on trust.

Normally my test machine is patched first and examined for errors, this time I will skip that phase and we will see the results. I have stuff backed up to $VECTRA:/srv/smb/Backups/ which I use as a sort of cache, stuff goes here and gets gradually removed but it stays on one of SAL1600s cold storage partitions much longer.

Dixie-backup-2008-02-28.tar.gz          code-stuff.tar
Lexmark-Z12-lxm3200-tweaked.ppd docs-stuff.tar
MaxSec4E.tar.bz2 etc.tar
boot.tar

the *stuff.tar files hold the only things I’ve changed (and care if are lost) since my last backup, the boot and etc tarballs hold the only critical system files that may be changed since my last backup as well. So honestly the only casualties will be few if the upgrade goes badly — having to reinstall crap.

If the PC-BSD upgrade goes badly, there is a three disk set of FreeBSD 7.0-Release sitting on my desk and a list of programs I have been keeping which will soon be scp’d to my VECTRA for safe keeping hehe. The only things missing from the list are language bindings, namely that I need Python bindings for Qt3 for work on NPM.

# languages
gcc-4.3
# manual install needed for JDK/JRE
perl
python
ruby && rubygem-rtags && rubygem-rake
guile
scheme48

# libraries
qt4
gtk-2

# development tools
gmake
ctags
cscope && kscope
webcpp
subversion

# games
kdegames
xgalaga
prboom
doom-data
wesnoth

# graphics software
gimp
inkscape
xv
kdegraphics

# browsers
linux-flock
lynx

# e-mail and news
thunderbird && thunderbird-i18n
mutt

# kontact and related
kdepim


# chat
konversation
pidgin && pidgin-hotkeys
pidgin-guifications || pidgin-libnotify
pidgin-otr && pidgin-encryption
teamspeak_client


xemacs || emacs
mg
terminus-font

# multimedia
libdvdread
libdvdplay
libdvdnav
libdvdcss
cdrtools
mplayer # install codecs manually, more reliable
linux-mplayerplug-in
smplayer-qt4 && smplayer-themes
mencoder # not sure if there is a pkg
xmms
k3b

# documents
latex
gnumeric || koffice

# personal
zsh
windowmaker
docker
wmclock
rxvt-unicode || aterm

Vim is not on the list, because ever since one day I was setting up a FreeBSD install and the port was broken. I learned to install it from the sources on vim.org, so I continue to do so even now.

If all goes FUBAR with the 1.5 patch, well FreeBSD 7 here I come. It should only take a few hours to get the necessary software installed, a package add on xorg-7.3 alone should take awhile <_<. And a couple minutes to decide if I want XDM, KDM, or GDM (Xs, KDEs, or Gnomes) login manager while I’m waiting. I can also use the 7.0-Release kernel from my test machine hehe.

I expect as long as the 1.4 -> 1.5 update leaves my laptop in a bootable state that I shouldn’t have any problems. There is a limit to how much I’ll be willing to stand fixing myself of course. The last time I let it do any major upgrades it was so kind as to delete all files in /usr/local/* so I’m prepared to reinstall my software if necessary but not PC-BSD 😉

Let’s see the outcome.

I’m now a GMail Convert

I’ve now mostly completed my transition to Google Mail, the issues I’ve been having with POP3 Fetch mail on Ippimail seem to be a bit derailing of late… So I’ve got every thing set up to the GMail account now including my primary address (ippimail). If it ever can be fixed I can always transition back over.

I rather like the Squirrel Mail software that is used at Ippimail because I’ve worked with it before and they have a very nice theme. But I’ve got to admit, GMail is quite nice… I do however miss the ease of opening like 3 or 4 E-Mails in different tabs simultaneously with Ippimail though but I love the labels system in GMails software.

The spam folder is also about 5 to 8 orders of magnitude more full then Ippimails!!! But so far the filtering system works excellently just like googles search engine. I’ve had nothing put there that wasn’t spam yet and I’ve yet to see any thing penetrate the standard filters. I remember years ago I once tried Hotmail and felt like it was being placed on the world wide spam r us list :. I guess that’s impossible to avoid with any common services (hotmail, aol, yahoo, gmail, mail.com, etc) but hotmail back then at least was totally ridicules. At least GMail is doing a good job with the filters hehe.

Now that my Webmail problem is sorted out I guess it’s just the instant messengering one to fix. It would be so awesome if I could get a decent multi-protocol instant messenger that I didn’t dislike; I consider Pidgin and Kopte both cases of “foo sucks less”.

I have an XFire, an M$N, an AIM, an YIM, an ICQ, and even LiveJournals Jabber/GTalk features but I’m usually unreachable via XFire on my laptop and normally only on the others on my laptop. It would be awesome to be able to use each ! All the better without having to run Windows XP in the process or hack up FreeBSD’s Linux ABI to much to run the software.

Kopete and Pidgin both suck horribly for IRC (Internet Relay Chat) as well and I’m usually on several channels off irc.freenode.net. Which is why I’ve got Konversation on my laptop and X-Chat on my XP machine… Most of my friends use either AIM, MSN, or both. Still running 2-3 programs (xfire, irc, rest) is a total pain in the butt. I suppose it beats the 7 I would need if it wasn’t for applications like Kopete….

Oh wellz, back to the code.

The authoritative software list

With PC-BSD 1.5 on the horizon, think 1.5RC2 is out last I checked the mailing lists.

I’ve been working on compiling a list of software. Largley because I can remember an update some time in the past that essentially removed /usr/local/*, it said it would remove all the ports but not the entire directory tree!!!

So needless to say, just in case I prep before hand hehe.

Here is my list so far


Development
/bin/sh and friends
C Compiler
C++ Compiler
Java Compiler+JRE
Perl
Python
Ruby
Scheme
Qt (as many bindings as possible)
GTK+ (as many bindings as possible)
Games
solitaire (kpat)
battle for wesnoth
xgalaga or chromium b.s.u.
doom / quake
Graphics
GIMP
Inkscape
xv or kview # i.e. any thing light and fast for many formats
Internet
Flock
Lynx
Thunderbird or KMail or Sylpheed
Mutt (optional)
KNode
Konversation
Kopete or Pigen or *better* program of same genre.
Download manager, command line + gui (kget/wxdfast?)
ftp (command line client)
TeamSpeak (client)
Misc
Vim
Emacs
MicroEMACS
Multimedia
MPlayer
Mencoder
cdrtools + k3b
Office
Omni-Purpose file viewer would be nice! -- Okular (and a few more fmts)
Full LaTeX suite of tools and outputs utilities
Spreadsheet (no preference other then xls/ods support + fair speed)
Personal
zsh
Window Maker (currently) + Docker + WMClock
Decent terminal emulator that supports transparency on any WM.

My laptop is really the one computer that I have that is special to me. My darling Dixie has arguably been a live saver without it I’d never get any work done in this place :

It’s bad enough I’m usually awake until 0400-0500 local, at least work doesn’t start until the afternoon on Mondays…

The list is fairly short considering that my laptop functions as my central system. Just programs for working with data really, text processing, images, etc. A few programs for audio/video and a couple of games to kill time. Most of the stuff filed under Internet is communications based, konvi for IRC and a decent multi-protocol instant messenger so I can be on AIM & M$N simultaneously, not to mention the YIM and ICQ accounts I have should I ever find a use for it.

I’m 100% Webmail based so I don’t really need a local MUA but I like to have one handy for the sake of emegency. After the flash drive snapped in two I gave up on Netscape mail based stuff (like Thunderbird) and had to switch to webmail. The only other decent alternative is to run it off my file server and I tried that. It kind of sucks to deal with multimedia attachments and html e-mail via ssh !

Hmm, time to see what work needs to be done for the night.

Thank GOD work doesn’t start at the crack of dawn… hehe

Flocking great !!!

The other day I sent the port maintainer of linux-flock an e-mail reminding them that flock 1.1 had been released and thanking’em for maintaining the port.

Did a csup of ports and updated flock *my way*:

dixie# fastest_cvsup -c us -q
dixie# vi /root/ports-supfile # make sure the server is set correct
dixie# cd /usr/ports/www/linux-flock ; ls
Makefile distinfo files pkg-descr pkg-plist
dixie# less Makefile # confirm it's 1.1 in ports
dixie# pkg_delete linux-flock-1.0.3
dixie# make install distclean
...

Fired up flock from another aterm logged into my regular user account so I could see any messages that popped up on stdout/stderr, all good and even got the “Successfully updated flock” page.

Checklist:

Settings unchanged — yes
(Linux) Flash player plugin v7 — works
(Linux) Mozilla MPlayer plugin — works, using FreeBSD MPlayer build 😉

And I can see that Flock has finally implemented the one feature I really wanted from them, the ability to customize the ‘My World’ page. I removed the new friend activity widget and put back the favorites sites window, popped off the multimedia panel too. Because I don’t really use it, got my RSS feeds there.

The RSS|Friends|Multimedia layout I got on first start of 1.1 added a scroll bar at my typical window size (~1240×500 or so I’d guess by eye), which losing was one of the nice things of the style changes from flock 0.9 to 1.0. I’m really looking forward to more advancements in the My World page concept and to be honest it is an improvement over Operas “Speed Dial” feature which I used and abused back when I used Opera regularly.

I remember when I installed flock the flashplayer setup from PC-BSD worked out of the box, not very important to me but good to have. My great dislike for every thing Adobe remains but I lifted my ‘ban’ on them after Flashplayer 9 was released for Linux. I had installed the linux-mplayerplug-in port some time ago but it never worked and crashed flock with an error about loading files, I figured it was an issue of using a linux browser plugin but only having MPlayer compiled for FreeBSD installed. So I removed the stuff from my profile and solved the problem.

Earlier today I was surfing the web and saw the MPlayer plugin load up and I was like what the heck !? It works!!! So now I can listen to my favorite radio station without having to open a konqueror window for it ;-), I’m used to keeping flock loaded 24/7 on my laptop any way because its still a heavy weight program even if it runs faster then firefox 3 alpha and 2.x, seamonkey 1.x, and (Linux) netscape 9 did on here. I actually prefer the mozilla plugin to the KMPlayer plugin in konqueror which IMHO is not even as good as the Kaffeine plugin. This is actually a good thing for me, I don’t have to swap to konqueror to multimedia files — which is why I tried installing the linux-mplayerplug-in port in the first place xD

I think I will take a the new GMail / Yahoo! Mail integration features 🙂

Flock N Roll

Finally a good day of sort.

slept in till 1400, nice considering the rest of the weekdays I have/will be getting up early :

Been toying around with Getopt::Long in Perl for a little ‘toy’ that I’ve had on the brain, worked on it a bit in my spare time. I’m used to working with tar, even gzip/bzip2 directly but occasionally have to work with zip/rar files and I find that I always need to look up the switches to use. So I was thinking about a script that would apply a uniform usage-style accross a varied set of such programs (tar inspired of course). I thought about using pax as a standard program, because for most stuff that I use I’ll generally leave it at TApe aRchives and skip the compression but I find generally speaking that using the pax utility is *annoying compared to the alternatives (when they work of course). KDE has an archiver program called Ark but I find it works poorly with /large/ archive files several hundred megs thick and there is no command line utility that I know of that has built in support for every format and runs both on NT and *Nix, the best I found in a short look require the Bourne Again Shell.

Enjoyed a few rounds on TG#1 with Jonsi and Rct Spawn. It’s good to get back into action again, I havn’t really played or trained much this week because of work. And I’m really looking forward to doing a training session on observation and marksmanship skills this weekend. I also managed to pop in to TG#3 and join Duke, Dallers, Chester, and the gang for a few before the DSL dropped out as usual.

I really wish I could tell Bellsouth to go suck an egg.

I think if I can find a day to do it and some time to print out the Gez Admin Mods command reference I might be able to setup a quick live op. I remember we have a hunt missing MI5 Programmer and a Russian Terrorist Cell on our Live Operations board that are still waiting for the green light. You know, the government should pay me for ideas lol, some of the live ops I concoct for our training are first rate !

For tonight, hmm on the basis of what hits me first. I need to get some stuff done that I told Gerard I’d take care of him on the documentation front. There’s the Perl script I’ve been toying with, and the age old issue of organizing my music collection +S

Every time I organize the damn thing I break my playlists, every time I update my playlists I usually spend more time either rebuilding them or s/search/replace/’in’g the entries instead of listing. What I really think would be best is if I just find or write a quick tag editor, use that to organize stuff. Then combine a script and a library to organize files according to the tags and regenerate my playlists when ever it is run.

I’m also thinking about switching to either MPlayer or VLC as a dedicated omni-purpose media player. The advantage of course being that they both run on any OS I’m likely to need them and can play darn near any thing ;-).

The only problem is I am used to Amaroks collection browser and playlist interface lol. I don’t really need much more then the basic features but aside from a handful (xmms/winamp, mplayer, vlc, amarok, kaffine) I’ve never really found a single Media Player that I am universally happy with but I suppose that is just the natural. One thing that I do like very much about MPlayer is there is a command line interface (very powerful one at that) and you can basically choose from any of several GUI Frontends, which I do really prefer to use for video operations but to be honest I’ve generally had better luck with VLC for DVD playback.

Hopefully work will get done before I loose concentration…

Egg on my face

Oh this is a shocker!

I noticed I had one of my quick bookmarks in konqueror that I never finished reading, some thing on command line arguments — a very poor name for a bookmark generally speaking.

So I opened it in another tab and parsed it at my usual rapid pace. Gradually I started lookinf around at other stuff on the site, intrigued by some of the other things I found, even things noted about the design of termcap/terminfo, fetchmail, gcc, etc and decisions involved with the problems the developers had to solve. About a half an hour and almost 3 chapters later and figuring it was probably some (good) book gifted to the WWW by a universities CS department I finally clicked the ‘home’ button and felt like popping myself in the head when I realized what I had been reading a mirror of:

The Art of Unix Programming

I remember I was reading it last year but I never had time to finish it. Hmm, I wonder where I left off? It is a very fine book but unfortunately not one I was able to inhale in my spare time :. I might be a strange person but when I find a good book, it usually makes a transition from eye to brain at a rate of 50-120 pages a day xD, time and energy permitting of course.

It’s a book I’d fully recommend for any one interested in problem solving or engineering’ish thinking.