Sunday, August 31, 2008

An Apartment Feast

My friendly apartment-mates about to sit down to a feast that Daniel (center) prepared for Brad (right), myself and David (right).

I'm blessed to have such great guys to live with. :)

Monday, August 25, 2008

Getting USB devices working with VirtualBox in Ubuntu Hardy Heron (8.04)

My laptop screen finally died (there had been ominous flickers before). Thankfully it died now before I used it for any school work.

I was using my laptop to back up my PDA with Windows. I wanted a way to back up my Palm PDA which I use

I got the devices to show in the Virtualbox USB devices menu, but they were grayed out until I followed Hardy Heron, using USB devices in VB how-to - Notebook Forums and Laptop Discussion. Now I can use my printer and Palm Desktop software from Windows XP Pro running on VirtualBox on top of Windows.

Now on to more unpacking and organizing. Classes start tomorrow. I'll start off with Numerical Analysis.

Saturday, August 16, 2008

Log of Setting up Kubuntu Linux 8.04 for my parents

I'm documenting what I did to set up Kubuntu 8.04 on my parents computer, mostly in case I need to do it again sometime. ;)

I'm using the free VMware Server to get Windows 98 (yes Windows 98, we don't have any extra Windows XP licenses that my family can legally use on their PC) running on top of Kubuntu so that my sister can use Rosetta Stone to learn French. I was going to dual-boot but after getting a blue screen on every boot after trying to install video drivers (accidentally installed capture drivers) and reinstalling I decided I'd rather use VMware to get Windows 98 running on top of Kubuntu with Rosetta Stone.

Install some "essentials":

$ sudo apt-get install firefox-3.0 thunderbird kicker-applets nvidia-glx mplayer
 I then added the System Monitor" applet to the taskbar and made it run "ksysguard" when clicked.

Install VMware server so I can run Windows on top of Kubuntu

I extracted VMware-server-1.0.6-91891.tar.gz and ran the installer:
family@familyubuntu:/home/install/vmware-server/VMware-server-1.0.6-91891/vmware-server-distrib$ sudo ./vmware-install.pl    
I got this error trying to run vmware:
$ vmware /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4' not found (required by /usr/lib/libcairo.so.2) /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6) Locking assertion failure.  Backtrace:
...
To fix the error, I did this:
sudo cp  /usr/lib/libpng12.so.0 /usr/lib/vmware/lib/libpng12.so.0/ sudo scp elijahlofgren@192.168.0.101:/usr/lib/gcc/i486-linux-gnu/3.4.6/libgcc_s.so  /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1
This tip was from: http://communities.vmware.com/message/399695. I got libgcc_s.so off another Ubuntu PC, but it looks like you can get that file from the gcc-3.4 package according to: http://packages.ubuntu.com/hardy/i386/gcc-3.4/filelist

Installing Windows 98 using VMware

  • Run "vmware"
  • Create a new virtual machine -> Next -> ... "Windows 98" version -> Use network address translation (NAT) -> Disk Size (20 GB)-> Uncheck "Allocate all disk space now -> Finish
  • Insert Windows 98 install CD
  • Hit "Cancel" on the Window that comes up offering to "Open in New Window"
  • Click "Power on this virtual machine"
  • :: Vmware begins taking up all CPU and doing nothing ::
    • I think this was caused by my choosing "Boot from Hard Disk" instead of "Boot from CD-ROM"
  • Click "Power off this virtual machine"
  • Close vmware
  • Start vmware as root by running
  • sudo vmware
  • Click Host -> Settings -> Memory
  • Change "Host RAM for all virtual machines" from 756mb to "256mb"
  • Leave "Allow some virtual machine memory to be swapped" selected
  • Close vmware
  • Fix vmware config permissions (if username is "family"):
  • sudo chown family:family /home/family/.vmware/ -Rfv
  • Start vmware as regular user by running
  • vmware
  • Power on Virtual Machine and choose "Boot from CD-ROM" and start Windows 98 setup.

  Kubuntu settings

  • Dolphin
    • Create shortcut to "dolphin /home/family/victoria" on taskbar (I plan to make this directory be auto-backed up to our second hard drive).
  • OpenOffice.org
    • Tools -> Options -> Paths -> My Documents -> "/home/family/victoria"
  • Klipper
    • Right click on Klipper in the system tray and change the "Clipboard history size" from 7 to 50 (I like being able to get something I copied or cut a while back)

Fix "The desktop entry file /usr/share/apps/d3lphin/servicemenus/amarok_addaspodcast.desktop has an invalid menu entry addAsPodcast." error when right clicking on .html files

As per https://bugs.launchpad.net/ubuntu/hardy/+source/dolphin/+bug/199393 this should now be fixed so this should fix it (I don't want to download the updates yet though):
sudo apt-get upgrade dolphin

Enable Nvidia Binary Driver

  • Run this command:
  • sudo nvidia-xconfig
  • Now reboot and connect second hard drive.

Get VMware tools installed on Windows 98

  • VM -> Install VMware tools does not work for me. It shows up as an Audio CD in Windows.
    • Workaround (idea from VMWare tools not installing in Windows 98 - Mac Forums):
      • Burn /usr/lib/vmware/isoimages/windows.iso to CD-RW using K3b (I first tried using that directly, but it didn't
      • Insert CD-RW
      • Copy all files on it using Kubuntu to /home/install/windows-programs/vmware-tools/
      • Run:
        • sudo apt-get install samba
      • Right click on the "/home/install/windows-programs/" folder in Dolphin
        • Properties -> Share ->Configure File Sharing ... -> Add... -> Paste in: /home/install/windows-programs/ -> Check "Share with Samba (Microsoft (R) Windows (R)) -> OK
      • In Windows go to \\familyubuntu (if that is your Kubuntu PC's hostname). Note: Be sure to click "OK" and not "Cancel" when booting Windows 98 and asked for password for Networking.
      • Go to \\familyubuntu\windows-prog\vmware-tools and run "setup"
      • go to vm -- settings -- and add a sound card device
      • download and run http://ccftp.creative.com/manualdn/Drivers/Others/257/SBPCI128Setupus_w9x.exe
        • tip from http://www.experts-exchange.com/Operating_Systems/Q_21714388.html

Get Rosetta Stone to run under VMware

In order to fix this error:
A debugger has been detected: unload the debugger and try again
I needed to do this:
  • Go to: VM -> Settings -> Options
  • Click on "Advanced"
  • Check "Disable Acceleration"
  • Click "OK"

Set up some file shares for sharing with Windows 98 in VMware and other Windows PCs on the LAN:


Add this to the end of /etc/samba/smb.conf
[WINDOWS-PROG]
path = /home/install/windows-programs/
guest ok = yes
read only = no

[SHARED-PICTU]
path = /home/family/pictures/shared-pictures
guest ok = yes
read only = no
available = yes
browseable = yes
public = yes
writable = yes
Set up the guest writing:
  • Run:
    • chmod 777 /home/family/pictures/shared-pictures
  • Have these lines set in /etc/samba/smb.conf
    • guest account = family
    • security = share

Disable second sound card so sound will work:

  • Add these two lines to /etc/modprobe.d/blacklist and then reboot
# Disable second sound card to make sound work
blacklist snd_ens1371

Getting iPod Nano 2 Generation (2G) 2GB working with Kubuntu/Ubuntu

From http://ubuntuforums.org/archive/index.php/t-259377.html

Check what device name, e.g. sdb or sdc

$ dmesg
[36506.867594] usb 4-1: new high speed USB device using ehci_hcd and address 2
...
[36512.327648]  sdc: sdc1 sdc2
[36512.330848] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[36512.331526] sd 2:0:0:0: Attached scsi generic sg4 type 0

Set up iPod device:

(From http://ubuntuforums.org/archive/index.php/t-320611.html)
Add these lines to /etc/fstab
# Ipod Nano 2GB second generation
/dev/sdc2 /media/ipod vfat defaults,user,noauto,sync,umask=000

Create and make owned by family user:
sudo mkdir /media/ipod
sudo chown family:family /media/ipod     

Install extra codecs and lame so audiocd:/MP3/ can be used in Kubuntu to rip CDs to Ubuntu
sudo apt-get install kubuntu-restricted-extras lame
Install Banshee 1.2.1 (banshee-1 from banshee-project.org repository)
Banshee 1.2.1 allows my sister to rip from CD and import to/from iPod from within one program. I tried Amarok, Songbird, Floola, Yamipod, Rhythmbox, and only Banshee 1.2.1 seems to be what I wanted. :)

Fix iPod can't be seen or detected by Banshee error

The iPod stopped being detected by Banshee after an upgrade of Ubuntu Hardy and the fix was to make the user "family" (change to whatever username you use to login) a member of the haldaemon group. On Kubuntu this can be done with: K Menu -> System Settings -> User Management -> Administrator Mode -> Select user "family" -> Modify... -> Privileges and Groups -> Check "haldaemon" under "Secondary Group" -> OK -> Close. This tip was found at: Re: Ipod can't be seen Banshee
.

Now when you connect the iPod it should be automatically detected and click "OK" to "Open in New Window" then open Banshee and it should display the iPod in the lower left.




Install Flash, Java, and other plugins and codecs:

sudo apt-get install ubuntu-restricted-extras

Mount second hard drive (an old Kubuntu install formatted with ext3)

  • Run:
    • sudo mkdir /mnt/sdb1
  • Add this line to /etc/fstab
    • /dev/sdb1 /mnt/sdb1               ext3     auto        0       1
  • Run
    • sudo mount /mnt/sdb1


Set up family files to be automatically backed up to second hard drive each week:

Put this in /etc/cron.weekly/rdiff-backup:
/usr/bin/rdiff-backup /home/family/jp /mnt/sdb1/home/backups/rdiff-backup/family-docs/jp
/usr/bin/rdiff-backup /home/family/jubi /mnt/sdb1/home/backups/rdiff-backup/family-docs/jubi
/usr/bin/rdiff-backup /home/family/victoria /mnt/sdb1/home/backups/rdiff-backup/family-docs/victoria
/bin/echo "Weekly Backup of jp victoria and jubi Finished: $(date)"

Enable Passwordless auto-login for family Account

Run
kcontrol
  • Go to: System Administration -> Login Manager -> Administrator Mode -> Convenience
  • Enable auto-login and passwordless login for family user.

Getting Samsing SCX-4521F printer working

Printer

  • KMenu -> System Settings -> User Management -> Administrator Mode -> Users tab -> Select "family" -> Modify... -> Priveleges and groups -> Check "Use scanners" -> OK -> Close. (I don't know if this is needed)
  • Referenced and quoted: HOWTO Install Samsung Unified Printer Driver
  • From: http://www.samsung.com/us/support/download/supportDownDetail.do?group=&type=&subtype=&model_nm=SCX-4521F&language=&cate_type=all&mType=DR&dType=D&vType=L&cttID=801111&prd_ia_cd=06010300&disp_nm=SCX-4521F
  • Download this:
  • Here's what I did:
    • cd /home/install/Samsung-SCX-4521f-printer-driver/
    • tar xzf 20070720165133984_UnifiedLinuxDriver.tar.gz
    • mv cdroot /home/install
    • cd /home/install/cdroot
    • sudo chown -R root:root *
    • sudo ./autorun
    • "Go through the graphical installer, which doesn't ask much in the way of information."
    • Connected printer
      • Seems Kubuntu auto-detected and installed printer as SCX-4x21_Series?
    • "When you get prompted to select and install your specific printer, you may be successful if your printer is connected directly to your computer, turned on, and automatically detected, in which case go right ahead and select everything as you desire. Otherwise, cancel this step and allow the installer to finish."
      • I hit cancel since my printer was not detected.
    • sudo ln -s /usr/share/cups/model/samsung /usr/share/ppd/custom/samsung
    • Printed test page with Firefox 3 to SCX-4x21_Series and am satisfied with result.

Scanner:

  • KMenu -> Samsung Unified Driver -> Samsung Unified Driver Configurator -> Switch to Scanners Configuration -> results in "No scanners were identified"
  • sudo apt-get install xsane
  • sudo xsane
    • No scanners detected, so we need to fix something.
  • Reference: I DID IT!!!!! The SAMSUNG SCX-4200 now works on HARDY HERON!!!!!!
  • Edit /etc/init.d/mountdevsubfs.sh
    • Change this:
      •         #
                # Magic to make /proc/bus/usb work
                #
                #mkdir -p /dev/bus/usb/.usbfs
                #domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listm$
                #ln -s .usbfs/devices /dev/bus/usb/devices
                #mount --rbind /dev/bus/usb /proc/bus/usb
    • To this:
        •         #
                  # Magic to make /proc/bus/usb work
                  #
                  mkdir -p /dev/bus/usb/.usbfs
                  domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmo$
                  ln -s .usbfs/devices /dev/bus/usb/devices
                  mount --rbind /dev/bus/usb /proc/bus/usb
  • Now reboot.
  • Now run this and scanning works! :)
    • sudo xsane
  • Scanning with OpenOffice.org Writer does not work.
    • Insert -> Picture -> Scan -> Select Source
      • OpenOffice.org crashes.
  • Try scanning with the GNU Image Manipulation Program
    • sudo apt-get install gimp
    • Wait, not needed. the Samsung Unified Driver Configurator works :) 
  • Scanning with the Samsung Unified Driver Configurator
    • Double-click on "Samsung Unified Driver Configurator" on the desktop
    • On the left, click the scanner icon to "Switch to scanner configuration"
    • On the right, click "Properties"
    • On the top, click the big "Scan" button
    • Now you can click "Save" to save the scanned image somewhere.
      • I would change the "File type" to Portable Network Graphics (*.png)"

Install Games

sudo apt-get install supertux kpat

Installing more codecs

Follow http://doitfast4u.blogspot.com/2008/07/howto-install-wmv-and-dvd-playback.html

Configuring Firefox 3

  • Install Tab Mix Plus from http://tmp.garyr.net/forum/viewtopic.php?t=9178 
  • Click:
    • Tools -> Tab Mix Plus Options
      • Mouse -> "Allow scrolling to select tabs"
      • Events -> "Open new tabs next to current one"
        • Uncheck "Change opening order"
    • OK
  • Install Delicious Bookmarks  
    • Click Tools -> Delicious Options -> Advanced -> Switch to Classic Mode



Family News and Some Updates

Yesterday, my brother Luke and his wife Michele had their 5th child. A baby girl named Bethany Dawn. Congratulations Luke and Michele! :)

Today, my sister Anna left for Bellhaven College with my Mom and Dad. She will be a freshman majoring in theater ministry. I'm going to miss you Anna! You'll do great!

My internship at JAARS finished up well and I'm glad I chose to go there this summer. I learned a lot and had a good time hanging out with the 3 other IT interns.

I've enjoyed being home this past week:
  • I helped Dad and Lydia (and Mom, Jubi, and Anna at times) take down two scaffoldings in the guest house. It's looking more and more like a house. :) Dad is doing a great job.
  • I enjoyed going on a hike with Jubilee and Lydia to the creek and explored some new roads. Great fun! :)
  • I updated my parents PC to Kubuntu Linux 8.04 since they were running an old version of Linux which no longer provided security updates. In addition, I wanted to get Jubilee's iPod nano working and I finally found a program (Banshee) which makes it not too difficult to rip a CD and put the music on an iPod. I wouldn't have done all the work to find a Linux iTunes alternative if my parents were going to have Windows XP/Vista at home, but we don't have an extra license that they can use and Lydia, Anna, and I are bringing our PCs to college.
  • I enjoyed seeing the Simons and their grandparaents at our house on Tuesday night.
  • I enjoyed seeing Joel, his finance Rachel, and the Harts at our house last night.
  • Seeing Lydia's and Anna's Creative Memories photo albums was a real treat! I'm so thankful that they are taking the time to record some of the many events worth remembering. Lydia also showed me more pictures from her working at an Adventure Camp. She went caving, rock climbing, and white water rafting as part of her work there! :)
I have one more week at home and I hope to possibly do many things such as:
  • Make copies of the DVD of Anna's latest play, Jehoshaphat, for the Paces.
  • Watch the Jehoshaphat play on DVD. I should have done this earlier! :)
  • LeTourneau ACM chapter stuff:
    • Email Dr. Baas about the Student Organization Mall Party.
    • Email Josh about the LETU ACM website.
    • Hopefully try out the following and prepare an "Intro To" presentation for possibly sharing at a LETU ACM meeting:
      • Making a Facebook application
      • Making a Google Gadget
      • Making a Django applications.
      • Using the Google App Engine.
    • Possibly work on making a basic LETU ACM website.
  • Hopefully go bowling with Joel Hart (he wasn't able to come roller skating in May).
  • Eat cottage cheese (Anna told me I could eat it to hopefully make it not go bad like some stuff she found yesterday. She made home-made lasagna (using new cottage cheese ;) and it was really good! :)
  • Give the Leistners their mower back on Sunday (they graciously allowed us to borrow theirs since ours is being repaired and may not be reading until the end of August!) Mom didn't want the grass to just keep getting longer and longer until then, especially since we had people over. ;)
  • Check my facebook email (I redirect email from facebook to a separate email account and I haven't checked it in a while, hopefully there won't be anything that I should have replied to earlier about!)
  • Write a thank you letter to my Grandparents.
  • Upload pictures from this summer to my blog and facebook.
  • Family PC stuff
    • Get Rosetta Stone set up for Jubilee on Windows 98 running in VMware on top of Kubuntu Linux so that she doesn't have to start over but can continue from where she was on Lydia's PC
    • Copy some files of Dad's off Lydia's PC.
    • Possibly delete Jubi's iTunes library off Lydia's PC since she'll use the family PC for her iPod now.
    • Show Jubi how to use Banshee for managing music on her iPod.
    • Make my Windows partition larger on my old laptop.
  • Website stuff
    • Fix Amazon book info showing up for books on helpreviews.com (a website I'm helping develop with Anna, Miriam Hart, and Ben Simon)
    • Move heroesoftoday.com to new server and cancel old hosting account so I'm not paying for two each month.
    • Set up automated MySQL DB backups for each website I host.
    • Get ben.truthland.com back up.
    • Get peter.lofgren.us back up.
    • Get testprep.elijahlofgren.com back up (in case I want to use it a college this semester. It's a review program that I can put definitions and stuff into and type over and over to help me memorize it).
  • Buy notebooks and binders for college.
  • Read "The World is Flat"
    • I don't think this is going to happen this week, but two people at JAARS recommended it. I think I remember the Harris twins saying they had read this in their book Do Hard Things.
Well, I think it's clear I probably won't finish the above. I need to learn to be fine with that and prioritize to spend time on the more important things in my life. I also need to learn to trust God more.

Thank you to everyone who has prayed for me. I really appreciate your prayers. Please pray that I will prioritize, focus outward and upward instead of on myself, and learn to live my life in a way that is the most pleasing to God.

I hope you have a great weekend,

Elijah Lofgren

Craving Egypt - Good Boundless.org Article

I just read this good article: Craving Egypt by Brenna Simonds.

It definetely is too easy too look back on times passt and think they are better. I definetely need to remember that God will give me strength for this time and I can trust him for whatever the future holds and I don't need to worry, fret, or dread the future. I need to learn to put my hope and trust in God. I also need to put my focus on other people and not myself.

Saturday, August 02, 2008

How I Configure Windows Vista with Useful Free Programs

I just installed Windows Vista again after a hard drive failure in case I need it while I'm back at LeTourneau University in the fall (I prefer Kubuntu).
Here are some of the steps I take after installing it:
Note: I may update this more later. We'll see. ;)

We're blessed to have

Firefox tip: Use Tab Mix Plus to Move Tabs to New Window

1. Check the "Move to New Window" option in the Tab Mix Plus options.
2. Now right click on a tab in the tab bar and click "Move to New Window". :)

In Christ Alone My Hope is Found

The words of this song are a good reminder! I sang this today after seeing the words stuck in my Bible from the New Attitude song sheet.