Wednesday, December 24, 2008

Happy Holidays everyone!

I've been taking a break from computing for a week or so, and I'm just now back and rarin to go!

Got a hold of a Dell Inspiron laptop 5000e with 64 megs of ram, a 5 gig hard drive and no networking. Ordered some parts to upgrade the ram to 512 megs and a wireless pcmcia card for networking, and every single part did not work. So I'm waiting on an rma for these, and in the meantime decided to see if XP pro would even install on it. It did, and performance is actually ok. I'm going to wipe it however, and install tinyme or vectorlinux lite once I get working parts.

I did install vector linux lite and tinyme on here to see how that would work. VL-lite actually performed quite well. Tinyme however didn't. I can't blame the distro though as the minimum specs are 64 megs for tinyme, and since the video shares 8 megs of this ram, that left only 56 megs of usable ram, so I'm not surprised at the performance being sub-par.

Hopefully you all are having a wonderful holiday season and I'll post back soon.

Dave

Monday, December 15, 2008

Slackware on the Acer Laptop


It didn't take long for the family to bork things on the ubuntu install with this laptop... The latest upgrade of wicd broke compatibility with the wpa network, and compiz somehow ended up broken as well... probably from my own user error in switching things over to xubuntu from straight ubuntu. ;p

So I had this nice and shiny slackware 12.2 dvd and it was time to replace ubuntu with something rock solid that would be less likely to suffer breakage.

The install for slackware hasn't really changed in this past millenia, so I won't bore you with the details. It's ncurses based, but very straightforward and easy to do. Once the base system was installed, I had a fully functional vanilla kde 3.5.10 desktop.

One nice caveat is that the card reader that I had to manually configure in ubuntu was found, and functional straight out of the box in slackware! I'll have to be sure to keep the relevant kernel modules in play after I trim down the huge kernel for everyday use. The huge series of kernels tend to be a bit bloated, but have a TON of stuff compiled right in, so just about all hardware works right out of the box.

The generated xorg.conf is quite bland and vanilla, as it requires user intervention to get it functional. I copied over the xorg from my old arch linux install and it works nicely. Even the synaptics touchpad works perfectly with scrolling in all directions.

Since Slack uses the older and more stable 1.4.2 version of xorg server, I was able to use the "export Intel_Batch=1" hack to increase graphics rendering speed. I added this to the bottom of /etc/profile to activate this system wide.

I used slackbuilds.org to build most of my packages, and slacky.eu to download a few binaries that either wouldn't compile from the slackbuilds or simply were not available. The transcode binary built for version 12.1 is such an example as it fails to compile in 12.2, due to an imagemagick error, yet the binary from slacky.eu built for 12.1 works perfectly.

The longest compilation was for qt 4.4.3, as it took nearly an hour to compile... yet it did so with no errors, and works just fine.

For wireless, wicd is included in /extra and I used ndiswrapper for the broadcom wifi card and experience very few drops. I like the stx driver, but it's not quite as stable as simply using ndiswrapper, so I'll stick with ndis for now.

I was going to recompile the kernel, but can't find an excuse to do so quite honestly. Boot up times are a tad slow, but nothing terrible, and the system is running quite nicely, so I'm loathe to really mess with things.

Openoffice 3.0 compiled and works great, and so did wine, devede, smplayer, and mplayer. We're using Thunderbird for email and Firefox for browsing, and the included software is quite robust.

Ran into one issue with installing playonlinux (which is great for managing wine games and programs), as the program would not run when invoked from the command line, but gave no error message. The arch linux aur version has a nice pkgbuild which gave me the hint I needed, as wxpython is needed, so I built this from slackbuilds.org, and playonlinux launched and ran just fine.

Slackware isn't for everyone, as some people simply just don't like compiling their own programs from source.... for a variety of reasons... but if you put in the time and effort, you have a rock solid Operating System with exactly what you want running.

I'll be happy to post my xorg.conf or help with compiling packages upon request.

Thursday, December 11, 2008

Slackware 12.2 and TinyMe 8.1 are out!

Now I'm really pumped. The distro that I cut my teeth on has a new release... That being Slackware of course! I'm downloading the dvd as I write this, and lemme tell you I'm excited. All my custom slackbuilds will have to be updated, and reinstalled, but that kind of controlled tweaking is my forte. This is a perfect opportunity to document my entire install process and to show prospective new slackers just how much power is under the hood.

That being said, I'm also excited about TinyMe 8.1 issuing a new release. It's a slimmed down PclinuxOS utilizing the lxde environment, and I saw just how lightweight lxde can be on my nieces arch linux installation. We'll see how it compares to my custom pclos install with openbox, pcmanfm, and fbpanel. The lxpanel is based on fbpanel, so I'm sure some tweaking can be done with this as well.

I'm going to install Slack on a spare 20 gig ide hard drive, compile all my programs and then use that hard drive on the legacy pentium 233 system that I'm looking to build. Should be fun.

Wednesday, December 10, 2008

Ubuntu 8.10 on Acer 3680-2682


After a few hiccups and a few needed tweaks being applied, the laptop is finally fully functional and working nicely.

I had done an initial install of straight ubuntu with a full gnome desktop. Everything went fine as the installer makes things really easy for the user to gain a fully functioning system quickly.

I did end up with a couple of show stopping issues right off the bat. Gnome-network manager did not want to play nicely with the new broadcom wireless drivers. I've been a fan of wicd for some time (it's easy to set up on Slackware as well), so I added the wicd repos to synaptic and replaced gnome-network-manager with wicd and my wireless worked nicely. The far larger problem was that nautilus was crashing frequently, and this is not something that one can deal with very well on a gnome desktop. So I figured that Ubuntu has many options available and instead chose to install Xubuntu-desktop (xfce) and replace Ubuntu-desktop (gnome).

After installing the xubuntu desktop, I had a few things to configure. The fonts were much uglier than a default gnome install, so I changed the font to dejavu-serif bold, changed the font dpi to 100, and turned on full hinting and subpixel hinting.

I moved all the default applications to one panel and deleted the top panel, and it looks very similar to a gnome install. Installing the medibuntu repositories enabled me to install mplayer and mplayer-plugin, and then installing adobe-flash and sun-java6-jre rounded out a nice browsing experience.

Virtual Box compiled nicely and they now have a nice windows xp installation within ubuntu. This is important for a few of their programs that are windows only (such as their massive solitaire suite).

The 2nd show stopper was that the media card reader built-in to the laptop was not functioning. No devices were found initially for the card reader, so I had to do a little investigating to get it to work. lspci showed the hardware to be a
Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD)
The relevant modules are "tifm_sd, tifm_7xx1, and tifm_core". So I added these to /etc/modules and at boot the system detects the card reader and when plugged in thunar shows the sd card on the left as accessible! There is no xd card support yet, but luckily they have sd cards and only one xd card.

All in all it works rather nicely. There were a few issues, but with proper tweaking the system is now running great.

Monday, December 8, 2008

Building really old computer

It's been a few days since I got my hands dirty, so I'm looking for some new projects.

I got my hands on an old sis 5598 motherboard that's a socket 7 and uses edo ram! It has 128 megs installed on board, and has an es1869f (ess audiodrive) sound chip built in.

I'm pumped at the thought of putting this back to work as a torrent slave. Now I just have to get a cheap computer case, as I already have a 200 watt atx power supply sitting here doing nothing. I'm going to pop in an old pci voodoo 3 card for video, and I have an ancient 3com etherlink 3 isa network card that I'm dying to see if it still works. I also need to locate an old socket 7 processor, and it can't even do 100 mhz for the cpuclock, so I'm probably going to try and snag a pentium 233 mhz mmx processor instead of a k6. I'll keep you all posted on this, and if any of you have thoughts on which distro to try, please drop me a line.

My other project is converting an acer 3680-2682 laptop from windows vista (ugh) to ubuntu intrepid 8.10. This should be interesting as well. I upgraded the ram to 1.5 gigabytes from the standard 512 megs and saw performance at least become somewhat bearable. I also know that ubuntu is no speed demon, but it should behave nicely and easily for my parents to whom this laptop is going.

The onboard video is an intel gma 950, again, no speed demon, but more than adequate for basic video needs. It has an 80 gig hard drive and a cdrw/dvd combo drive. I'll tackle this one shortly and post back here.

Thursday, December 4, 2008

Openbox on Pclos part 3


Well, I think I've tweaked my openbox setup to a nice and usable desktop environment on pclinuxos. The software works well and it responds much better than the initial kde install, which just felt.... slow....

The gtk themes work nicely, as do the icons, once you figure out how to make openbox access them. To access your icons you create a file called .gtkrc.mine in your home directory and add your icons in this format

gtk-icon-theme-name = "nuoveXT-aero"
Where nuoveXT-aero is my choice for the icon theme. You can see what icon themes you have installed in /usr/share/icons. Simply substitute for your preferred icon theme. Then you log out of openbox and back in and your icons will have been changed!

Obconf handles themes, and you can install new themes into /usr/share/themes for Obconf to easily find.

When I opened up openoffice, I found that it had NO clue what theme to use and saw a REALLY ugly interface. So I added the following to my ~/.config/openbox/autostart.sh file

export OOO_FORCE_DESKTOP=gnome &
This told openbox to force the nice gnome gtk theme on openbox so it doesn't look hideous.

I installed xscreensaver, which has several nice sets of screensavers actually in the repos, and told openbox to start it on login by adding to my autostart.sh file

xscreensaver -no-splash &
Pcmanfm is a great file manager and it can handle both your desktop background and desktop icons. I don't like desktop icons personally, but if you do, then do the following

pcmanfm -> edit -> preferences -> Desktop

Then click manage the desktop and show file icons. You can then choose your wallpaper and how to display it. Easy eh?

Although I love pcmanfm as a filemanager I don't want icons on my desktop... and I also want to maintain my ability to right click on the desktop and bring up my openbox menu, as sometimes it's just faster than moving the mouse all the way to the bottom of the screen on the left to access the fbpanel start menu. So I'll use the great little program called feh. It can be found in the repositories.

Simply execute the command

feh --bg-scale /path/to/image.file

Where /path/to/image.file is the full path to your desired desktop background wallpaper image.

Then you add the following to your autostart.sh file

eval `cat $HOME/.fehbg` &
This will cause openbox to load this wallpaper upon login.

Here's what I added to my ~/.config/openbox/autostart.sh file

pcmanfm &
conky &
fbpanel &
volwheel &
eval `cat $HOME/.fehbg` &
xscreensaver -no-splash &
export OOO_FORCE_DESKTOP=gnome &
Have fun with openbox!

Wednesday, December 3, 2008

Openbox on Pclos part 2


My quest to tweak Pclinuxos continues.

Today I decided to tackle the mplayer/smplayer update. As I mentioned in part one, these are very out of date, and I prefer to run the svn version of both mplayer and smplayer. Which also meant a rebuild of the svn versions of x264 and ffmpeg. Not a huge deal as these are fairly easy to compile with mplayer. For reference I used the following script and created the packages with checkinstall.

#!/bin/bash
if [ "$UID" != "0" ]; then
echo The mplayer installation requires root privileges.
echo Please login as root, and run:
echo mplayer.sh again
echo Press ENTER to continue...
read dummy
exit 0
fi
# Use checkinstall to create uninstallable rpm's for your system
apt-get install checkinstall git-core
# move to build directory
cd /usr/src
mkdir mplayer
chmod 777 mplayer
cd mplayer
# update mplayer source
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer

# update ffmpeg source
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

# update x264 source
git clone git://git.videolan.org/x264.git

#configure ffmpeg
cd ffmpeg
./configure
make
cd ffmpeg
checkinstall
logout
cd ..

# configure x264
cd x264
./configure --enable-pthread
make
cd x264
checkinstall
cd ..

#configure mplayer
cd mplayer
./configure --prefix=/usr/local --confdir=/etc/mplayer --disable-gui --enable-largefiles --enable-menu --with-extraincdir=/usr/src/linux/include:/usr/src/mplayer/x264 --with-extralibdir=/usr/src/mplayer/x264
make
cd /usr/src/mplayer/mplayer
checkinstall
# note the location that checkinstall moves your rpm's to as you will have to manually install with rpm
This all compiled nicely and I was able to install with rpm.

Next up was smplayer.... which was not nearly as nice. The svn version of smplayer requires qt4 and specifically qmake for qt4. I installed everything qt4 from synaptic (from the testing repo) and did not find qmake anywhere on my system. I thought it would be installed from "libqt4-devel" but it was not. So I figured what the heck... may as well install it from source!

So I grabbed the tarball from here , unpacked the tarball. Ran ./configure make and make install and, after a 45 minute compile, I was good to go! As an aside here, I've done this before so I know that uninstalling using make uninstall works great, which is why I didn't bother rpm'ing this.

It iustalled to /usr/local/Trolltech/Qt-4.4.3/ and since /usr/local was already in my path any apps I wanted to install would find the executables! a quick "which qmake" confirmed this and I was then able to compile smplayer. Checkinstall choked on the rpm creation, but SMPlayer also plays nicely with make uninstall, so I wasn't too worried about not having an rpm for this either. So long as I was careful not to delete these directories, I'd be fine.

Everything is working great and I have no complaints at this point. It's entirely possible that I did something screwy with the rpm's downloaded using synaptic and qmake with qt4 is in fact somewhere on them. Or possibly the mirror I was synced to just hadn't updated properly or recently. Who knows. It doesn't really matter as qt-4.4.3 is running fantastic.

Note that on the mplayer portion of the script at the ./configure section... it's one line and ends with x264. So if you're copy and pasting be sure to edit that portion!