MAIN MENU

Training Media
Click here to visit Spidertools.com.
GP2X Portable
Media Player
GP2X In Stock NOW!! Games, Ebooks, Movies, Photos, Divx, OGG, mp3, Tv out, USB 2.0,
Click and get a GP2X

YaFSUG: Projectz.

Project: SHU - FreeBSD Laptop Installation.

Installing FreeBSD onto a Laptop:
By Vincent Angus Williams - scribe63

Screenshots: VIEW

As the PowerNomics proverb says :
"If you take risks, you may still fail. But if, you do not take risks, you will surely fail."

Intro Install Post Install - Config Config Package Install and X GUI - Sound Config Conclusion

Package Installation, X GUI and Sound Configuration

Now to install packages from remote location.
For this i will use sysinstall to select an ftp site, and install the packages instead of adding them manually.
Some manual options are:
To set package site environment variable for latest stable packages:
Command:

$set PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5-stable/Latest/

The pkg_add(1) is a utility to install a FreeBSD software package from a local file or from a server on the network.
Command:

# pkg_add -r lsof

pkg_info(1) is a utility that lists and describes the various packages installed.
pkg_version(1) is a utility that summarizes the versions of all installed packages. It compares the package version to the current version found in the ports tree.
pkg_delete(1) is the utility to remove a previously installed software packages.
All package information is stored within the /var/db/pkg directory.
Using the auto approach select and install some basic applications.

#sysinstall

I check the Release Information in Options. When i checked in here i realized why my WiFi NIC was not configured by DHCP during installation, DHCP wa set to NO.
The release information was there so i pressed Q to quit.
I then selected Configure, then Packages, then FTP Passive, then Main Site.
This worked and i was presented with the packages index to choose from.
Configuring X GUI interface.
I installed xorg.

#pkg_add -r xorg

Then ran


#Xorg -configure

This created a xorg.conf.new in the root user directory.
I the tested this file to see if it good

# Xorg -config xorg.conf.new

The mouse did not work, so i opened xorg.conf.new and edited it by adding options from a previous xorg.conf file for this machine. The mouse on FreeBSD is /dev/psm0 for the ps/2 mouse, i added the HorizSync 28-60, the VertRefresh 30-60, set the DefaultDepth to 24, and the Modes to 1024x768.
Tested again with the same command, and the mouse worked this time. I copied the xorg.conf.new file to /etc/X11/xorg.conf. I didn't want to start with X with startx so i enabled gdm by adding to /etc/rc.conf. gdm_enable="YES" When i rebooted i was presented with gdm greeter, but the fonts looked terrible and there wasn't any options to use enlightenment or fluxbox which i installed to use as window managers. I did find enlightenment.desktop in /usr/local/share/xsessions. I copied and renamed it fluxbox.desktop and set the setting for fluxbox accordingly. The start up scripts startenlightenment and startfluxbox were in /usr/loca/bin.
This did not work.
After doing a little more research i found,
http://www.freebsd.org/gnome/docs/faq2.html which helped in knowing how to get these working on FreeBSD, and that these files should really be in /usr/local/etc/dm/Sessions. I just linked to the files from that directory, and them ran chmod 0555.
Upon reboot the options to select fluxbox or enlightenment were in the gdm's session menu. Still gotta figure the reason why the fonts do not to look smooth.
I selrcted an Enlightenment session and logged as a regular user.
It seems the font issue is not only with gdm, but the fonts in enlightenment are not smooth also. Definitely gotta fix that.
I adjusted my xorg.conf file and added some modelines and changed the DefaultDepth from 24 to 16. Will try ctrl+alt-backaspace or reboot to see for the changes to take effect. The display issue was solved, i guess it was the DefaultDepth 24 bit was the issue because the video card maximum colors at 1024x768 is 16 bit.

Image img_1302

The remaining issue i have is with enlightenment, when i browse Application menu items in it's menu it takes for ever to display the menu items, i thought the system was frozen for a while. Will see if there's a fix for this or switch to fluxbox. To solve the delay of the menu display in e17, i eliminated a long unnecessary menu list from the menu items. I assume this has to do with the 2MB of memory on the display card.

To configure sound.
Since i was not sure which driver to use, i loaded the snd_drivermodule:

#kldload snd_driver

Them checked the /dev/sndstat file with the cat /dev/sndstat command.
Results:
pcm0:<CS423x> at io 0x530 irq5 drq 1:0 bufsz 4096 (1p/1r/0v channels duplex default)
I tested with xmms by telling to play /cdrom and lo and behold i heard sound.
I also tried.

cdcontrol -f /dev/acd0 play 1

Lo and behold i heard sound.
Now i will try with an ogg and or mp3 file.

cat filename.ogg > /dev/dsp[0.0, 0.1]

This did not work, all i heard was garble. But 'xmms filename.ogg' played.
Even though i got the above information from /dev/sndstat I wasn't sure which was the actual module to get loaded on boot, so o i will try a couple.

snd_snd_driver="YES" to /boot/loader.conf

Upon reboot sound did not work, so i still have to get the proper module name, i googled and came across a solution to use snd_sb8, but i will try the snd_driver first and see what happens because this instruction was for FreeBSD 6.1. The kldload snd_driver did work when i did it manually, and there wasn't a snd_423x.ko module in /boot/kernel but there is a snd_driver.ko.
I tried snd_sb8 and a couple other modules.

kldload -v snd_sb8

/dev/ showed no dsp devices and cat /dev/sndstat displayed
FreeBSD Audio Driver (newpcm)
Installed devices:
I will try rebooting with the snd_sb8 module in loader.conf and the suggested device hints abd see what happens. Still no sound. So far the snd_driver is the only one that's working when loaded manually.
I finally came across the information and module name for the CRYSTAL 4237B chip on FreeBSD.
The module name is snd_mss.ko.
I tested koading the module

#kldload -v snd_mss

There were dsp devices in /dev and /dev/sndstat had teh following configuration information.

#cat /dev/sndatat

pcm0:<CS423x> at io 0x530 irq5 drq 1:0 bufsz 4096 (1p/1r/0v channels duplex default)
To get the module to load on boot i added the following to /boot/loader.conf and /boot/devoce.hints.

#vi /boot/loader.conf
if_snd_mss_load="YES"

#vi /boot/device.hints
hint.mss.0.at="isa"\newline
hint.mss.0.port="0x530"\
hint.mss.0.irq="5"
hint.mss.0.drq="1"
hint.mss.0.flags="0xA110"

Upon reboot this did not load the module, so i'm still missing something somewhere. For now if i want to listen to any music i will just load the module manually, or see how to get it loaded via /etc/rc.local if possible.
To mount removable media.
The daemons that must be started prior to logging into GNOME are, dbus, polkitd, and hald in that order. To do this, add the following to /etc/rc.conf, and reboot:

dbus_enable="YES"
polkitd_enable="YES"
hald_enable="YES"

These services are automatically started if all GNOME features are enabled.
Note: Your user account must be a member of the operator group for automatic mounting to work. To add yourself to the operator group, execute the following command as root:

# pw group mod operator -m <username>

For example, to add the user joe to the operator group, use the following command:

# pw group mod operator -m joe

Now it's time to move on to installing, setting up and configuring the hardware/software inventory web application which i will cover in another article.

Image e17-001 Image e17-002
Image fluxbox-001 Image fluxbox-002

©2006 - 2013 YaFSUG all rights reserved.
All respective © Owners all rights reserved.
------
RESOURCES

Web Site Hosting
Web hosting services
Get $25 off on sign up
Click Button Above
or Enter YAFSUG97PROMO
Get good prices on
Books, ETC,.