You are on page 1of 31

FreeBSD

Easy Gnome Desktop Installation Script

Second Edition

Written By
David Childers
Creative Common License

This body of work is released under the Attribution-ShareAlike version 3.0, Creative Common License.

The work may be freely distributed or modified for commercial or non commercial purposes.

If this work is modified, compliance with the Attribution-ShareAlike version 3.0, Creative Common License is
required.

These requirements include:

- Any derivatives of this work must be attributed to David Childers.

- Alterations, transforming, or building upon this work requires distributing the resulting work only under the
same, similar or a compatible license.

For the complete legal code, please refer here:


www.creativecommons.org/licenses/by-sa/3.0/legalcode

Cover graphic - the X Window System running Tom's Window Manager, GNU Free Documentation License.
en.wikipedia.org/wiki/File:X-Window-System.png
WARRANTY NOTICE

BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO
THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND,
EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE
COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT
HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED
ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT
NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR
THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH
HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
About The Author

David Childers is the Content Manager and Senior Editor for the International Broadcasting portal
www.BroadcastingWorld.net. He is also the webmaster of the SHOUTcast video streaming information
resource, www.scvi.net. He is very active in the Internet broadcast industry.

Mr. Childers' work has been cited in several national and International publications, such as:

Five Essays on Copyright In the Digital Era


Turrer Publishing

Research On High-Profile Digital Video Production


Digital Content Association of Japan

Video Podcasting in Perspective: The History, Technology, Aesthetics and Instructional Uses of a New Medium
Journal of Educational Technology Systems

Video Podcasting: When, Where and How it's Currently used for Instruction
The National Convention of the Association for Educational Communications and Technology

IP Packet Charging Model For Multimedia Services


National University of Rwanda

Preservation of audiovisual mediums : Problems and challenges.


Platform for Archiving and Preservation of Art on Electronic and Digital Media.

P2P Technology Trend and Application to Home Network


Electronics and Telecommunications Research Institute Journal

Peer To Peer Computing - The Evolution of a Disruptive Technology


Idea Group Publishing

Peer-to-Peer Systems and Applications


Lecture Notes In Computer Science
Springer Berlin / Heidelberg

Mr. Childers has also written several guides including:

FreeBSD Hardening Script Gibraltar


www.scribd.com/doc/33631895/Gibraltar-FreeBSD-Hardening-Script

The FreeBSD Compact Reference Guide


www.scribd.com/doc/31448813/The-Freebsd-Compact-Reference-Guide

SHOUTcast Streaming Best Of Technical Support


www.scribd.com/doc/24188933/SHOUTcast-Streaming-Best-of-Technical-Support

SHOUTcast Audio And Video Streaming Guide


www.scribd.com/doc/19781412/SHOUTcast-Audio-And-Video-Streaming-Guide

Icecast Streaming Handbook


www.scribd.com/doc/18175026/Icecast-Streaming-Handbook

Streaming Media Handbook


www.scribd.com/doc/16272608/Streaming-Media-Handbook
Foreword

I have updated the FreeBSD easy Gnome desktop installation script and software guide to stay current with
FreeBSD and Gnome.

It is my desire to provide the FreeBSD community with the ability to easily install a complete Gnome desktop
and associated software using one simple script. Using a shell script allows the installation of complete
binary packages instead of using ports that require local compilation. A shell script also enables the ability to
do automated system configuration.

The inspiration for this was an older FreeBSD port called “Instant Desktop Installation” that would install a
complete desktop. Unfortunately, this port was removed because there was no designated maintainer to
keep the port current.

I would like to thank Cub69 and J. Lenz for providing technical assistance with developing the script, Scarlet
Coker for providing assistance with the editing of the manuscript and James Davey at Broadcasting World for
allowing me the opportunity to create this handbook.

It is my sincere hope that the reader finds this software script beneficial.

David Childers

April 2011

Rămas bun Elena


Mi-e dor de tine
18 June 1974 - 14 November 2009

UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity.

Dennis Ritchie
Please Donate

If you find this guide useful, please consider making a small donation to show your appreciation of my work.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=10870717
Index

- Changes

- Introduction

- FreeBSD Installation

- Using The Desktop Installation Script

- Desktop Installation Script

- Post Script Installation Notes

- Using The FreeBSD Update Script

- FreeBSD Update Script

- Linux Emulation Configuration

- Windows Emulation Configuration

- Wireless Networking

- Webcam Support

- Virus Detection And Removal

- Remote File Support

- Common System Commands

- Additional Software

- References
Changes

Updated - Introduction

Updated - FreeBSD Installation

Updated - Desktop Installation Script

Updated - Post Script Installation Notes

Updated - FreeBSD Update Script

Updated - Linux Emulation Configuration

Updated - Wireless Networking

Updated - Additional Software

Updated - References

Added - Windows Emulation Configuration

Added – Webcam Support

Added - Virus Detection And Removal

Added - Remote File Support


Introduction

FreeBSD is a free Unix compatible computer operating system that has developed into a very secure and
stable operating system. The FreeBSD system architecture is well organized and designed for excellent
reliability, and can be used for either a desktop or server computer environment.

GNOME is a desktop environment / graphical user interface that runs on top of the computer operating
system. GNOME is part of the GNU Project and can be used with various Unix-like operating systems. It is a
derivative of the original KDE desktop project.

There are several distributions of FreeBSD that provide a complete desktop installation, however these are
based on KDE. These distributions also use a modified system architecture.

This script installs the Gnome desktop environment and system tools, on a fresh FreeBSD installation. Users
have the option of installing additional software created for the FreeBSD operating system from the free
software repository.

This desktop installation script can be easily modified to suit specific requirements, such as installing XFCE
desktop or other special requirements.
FreeBSD Installation

www.dan.me.uk/blog/2010/09/25/freebsd-8-1-install-guide/

blog.up-link.ro/freebsd-how-to-install-freebsd-freebsd-8-installation-guide/

2.4 Starting the Installation


www.freebsd.org/doc/en/books/handbook/install-start.html

2.5 Introducing Sysinstall


www.freebsd.org/doc/en/books/handbook/using-sysinstall.html

2.6 Allocating Disk Space


www.freebsd.org/doc/en/books/handbook/install-steps.html

2.7 Choosing What to Install


www.freebsd.org/doc/en/books/handbook/install-choosing.html

2.8 Choosing Your Installation Media


www.freebsd.org/doc/en/books/handbook/install-media.html

2.9 Committing to the Installation


www.freebsd.org/doc/en/books/handbook/install-final-warning.html

2.10 Post-installation
www.freebsd.org/doc/en/books/handbook/install-post.html

2.11 Troubleshooting
www.freebsd.org/doc/en/books/handbook/install-trouble.html
Using The Desktop Installation Script

This script will automate the installation and configuration of the Gnome desktop environment on a FreeBSD
installation.

After installing FreeBSD, perform the following:


(# indicates a typed command.)

Login as root.

- Use pkg_add and install wget. (This software is used to retrieve files from the Net via HTTP(S) and FTP.)
# pkg_add -r wget

- Log out of root account.


# logout

- Log back into root account.


# login

- Use wget and download the desktop installation script.


# wget http://www.scvi.net/freebsd/Desktop.txt

- Use the mv command and rename the file extension from .txt to .sh.
# mv Desktop.txt Desktop.sh

- Change the permission of the script file so that it can be executed.


# chmod 755 Desktop.sh

- Execute the Desktop installation script.


# ./Desktop.sh

- After the script has been executed and the desktop has been installed, remove the installation script file.
# rm -f Desktop.sh

No firewall has been installed with this script. It is highly recommended that you proceed to the Additional
Software page in this guide and install the Fwbuilder Firewall Builder software application after the desktop
software has been installed.

* Important – Important – Important – Important – Important – Important – Important – Important – Important *

This script requires some additional actions to be performed after the installation is complete. The additional
actions to be performed are highlighted in bold face text.

* Important – Important – Important – Important – Important – Important – Important – Important – Important *


Desktop Installation Script

#!/bin/sh
##################################################################
##################################################################
#
# The FreeBSD Easy Work Station Installation Script.
# David Childers - 15 Dec, 2009 / Updated 15 April, 2011
#
# This software is released under the Attribution-ShareAlike version 3.0 Licence.
# www.creativecommons.org/licenses/by-sa/3.0/
#
##################################################################
##################################################################
#
# If you find this script useful, please consider making a small donation.
# https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=10870717
#
##################################################################
##################################################################
#
# Portions of the script that are marked with bold face type require additional steps to be
# performed. If these additional steps are not completed, then the changes initiated by this
# script will not function properly.
#
##################################################################
##################################################################
#
# > If you modify the script, make absolutely sure that you use standard quotation marks '' '' and not word
# > processor quotation marks “ “ in elements that you use the echo function for adding entries to files.
# > Using word processor quotation marks ” “ inside the script will cause the script to not function
# > properly.
#
##################################################################
##################################################################
#
# It is advisable to begin with a fresh installation of FreeBSD.
#
# This script can be used with either an i386 or amd64 system.
#
##################################################################
##################################################################
#
echo "Updating the FreeBSD installation."
#
freebsd-update fetch
freebsd-update install
#
##################################################################
##################################################################
#
echo "Installing the ports tree."
#
portsnap fetch
portsnap extract
#
##################################################################
##################################################################
#
echo "Installing desktop software."
#
# X.Org complete distribution metaport.
#
pkg_add -r xorg
#
# The "meta-port" for the GNOME 2 integrated X11 desktop.
#
pkg_add -r gnome2
#
# The 'Geektoys' for the GNOME 2 power user.
#
pkg_add -r gnome2-power-tools
#
##################################################################
##################################################################
#
echo "Installing system utilities."
#
# Nano's ANOther editor, an enhanced free Pico clone. (Basic text editor – much better than Vi.)
#
pkg_add -r nano
#
# Allow others to run commands as root.
#
pkg_add -r sudo
#
# Midnight Commander, a free Norton Commander Clone.
#
pkg_add -r mc
#
##################################################################
##################################################################
#
echo "Installing printer utilities."
#
# Common UNIX Printing System: Metaport to install complete system.
#
pkg_add -r cups
#
# GutenPrint Printer Driver.
#
pkg_add -r gutenprint-cups
#
# Administration tool for cups (Gnome).
#
pkg_add -r gnome-cups-manager
#
##########
##########
##
## You may need to install additional device drivers for for specific printers.
##
## Drivers and utilities for HP Printers and All-in-One devices:
## # pkg_add -r hplip
##
## Printer listings
## www.openprinting.org/printers
##
## Printer driver listings
## www.openprinting.org/drivers
##
## Search for the printer you wish to install and download the correct ppd file.
##
## Install the ppd printer file using the cups web interface.
## This interface can be accessed from any web browser at this URL/address:
## http://localhost:631
##
##########
##########
#
echo "Enabling cups printing."
#
##########
##########
##
## You must manually edit these two individual files:
## (#indicates a typed command.)
##
## /usr/local/etc/cups/mime.types
## /usr/local/etc/cups/mime.convs
##
## # nano /usr/local/etc/cups/mime.types
## # nano /usr/local/etc/cups/mime.convs
##
## You must uncomment the following line contained in each file:
##
## application/octet-stream
##
## Remove the ; from the front of this line to uncomment it.
##
##########
##########
#
echo '[system=10]' >> /etc/devfs.rules
echo 'add path 'unlpt*' mode 0660 group cups' >> /etc/devfs.rules
echo 'add path 'ulpt*' mode 0660 group cups' >> /etc/devfs.rules
echo 'add path 'lpt*' mode 0660 group cups' >> /etc/devfs.rules
echo 'add path 'usb/X.Y.Z' mode 0660 group cups' >> /etc/devfs.rules
#
echo 'cupsd_enable=”YES”' >> /etc/rc.conf
echo 'devfs_system_ruleset=”system”' >> /etc/rc.conf
#
# Restart cups system.
#
/etc/rc.d/devfs restart
/usr/local/etc/rc.d/cupsd restart
#
# Reference:
# Configuring the CUPS Print Server
# www.freebsd.org/doc/en/articles/cups/printing-cups-configuring-server.html
#
##################################################################
##################################################################
#
echo "Configuring Gnome to automatically launch when the computer starts up."
#
# Starting with version 7.4, Xorg can use HAL to autodetect keyboards and mice. The sysutils/hal and
# devel/dbus ports are installed as dependencies of x11/xorg, but must be enabled by the following
# entries in the /etc/rc.conf file:
#
echo 'hald_enable="YES"' > /etc/rc.conf
#
# Enabling Gnome start up.
#
echo 'gdm_enable="YES"' >> /etc/rc.conf
echo 'gnome_enable="YES"' >> /etc/rc.conf
echo 'dbus_enable="YES"' >> /etc/rc.conf
#
echo 'proc /proc procfs rw 0 0' >> /etc/fstab
#
# Reference:
# Desktop Environments
# www.freebsd.org/doc/en/books/handbook/x11-wm.html
#
# 5.4 X11 Configuration
# www.freebsd.org/doc/en/books/handbook/x-config.html
#
# FreeBSD GNOME Project: GNOME FAQ
# www.freebsd.org/gnome/docs/faq2.html
#
##################################################################
##################################################################
#
echo "Sound card configuration."
#
# This command probes the sound card and determines which drive is suitable.
#
kldload snd_driver
#
##########
##########
##
## (#indicates a typed command.)
##
## You must check to see which sound card is detected with this command:
## # cat /dev/sndstat
##
## You must add the detected sound driver manually to the /boot/loader.conf file.
## # nano /boot/loader.conf
##
## This line needs to be added to the /boot/loader.conf file:
##
## snd_xxx_load="YES"
##
## xxx is the sound card driver that is detected by the cat /dev/sndstat command.
##
## The sound card driver must be added using lower case letters.
##
##########
##########
#
# Reference:
# Setting Up the Sound Card
# www.freebsd.org/doc/en/books/handbook/sound-setup.html
#
##################################################################
##################################################################
#
echo "End of script."
#
Post Script Installation Notes

Enable su access to users

(#indicates a typed command.)

# pw user mod user_name -G wheel


# groups user_name

Change user_name to the system user that you wish to add.

Cannot find kernel source tree

“/usr/share/mk/bsd.kmod.mk”, line 12: “cant find kernel source tree”

How do I install FreeBSD kernel source code?


www.cyberciti.biz/faq/freebsd-install-kernel-source-code/
Using The FreeBSD Update Script

This script will automate the update of the FreeBSD installation, FreeBSD Ports, installed software and clean
your system from installation files no longer needed.

(# indicates a typed command.)

Login on computer as normal user.

- Go to the Gnome desktop.

- Open the Gnome command line terminal.

- Login as SU.

# cd /etc/

- Use wget and download the FreeBSD update script.


# wget http://www.scvi.net/freebsd/Update.txt

- Use the mv command and rename the file extension from .txt to .sh.
# mv Update.txt Update.sh

- Change the permission of the script file so that it can be executed.


# chmod 755 Update.sh

- Execute the FreeBSD update script.


# ./Update.sh

Note: Leave the FreeBSD update script in the /etc/ directory, so that it can be used again.

* Important – Important – Important – Important – Important – Important – Important – Important – Important *

This script requires some additional actions to be performed after the installation is complete. The additional
actions to be performed are highlighted in bold face text.

* Important – Important – Important – Important – Important – Important – Important – Important – Important *


FreeBSD Update Script

#!/bin/sh
##################################################################
##################################################################
#
# The FreeBSD Update Script
# David Childers - 15 Dec, 2009 / Updated 15 April, 2011
#
# This software is released under the Attribution-ShareAlike version 3.0 Licence.
# www.creativecommons.org/licenses/by-sa/3.0/
#
##################################################################
##################################################################
#
# This script can be used with either an i386 or amd64 system.
#
##################################################################
##################################################################
#
# If you find this script useful, please consider making a small donation.
# https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=10870717
#
##################################################################
##################################################################
#
# > If you modify the script, make absolutely sure that you use standard quotation marks '' '' and not word
# > processor quotation marks “ “ in elements that you use the echo function for adding entries to files.
# > Using word processor quotation marks ” “ inside the script will cause the script to not function
# > properly.
#
##################################################################
##################################################################
#
# Including this command will eliminate the user interactive prompts when upgrading ports and will use
# the default configuration for installing them.
#
echo 'BATCH=yes' >> /etc/make.conf
#
# Update FreeBSD core.
#
freebsd-update fetch
freebsd-update install
#
# Update ports collection.
#
portsnap fetch update
#
# Install ports status and safe update utility.
#
pkg_add -r portmanager
#
# Updates ports in the correct order based on their dependencies.
#
portmanager -u
#
# Install tool set for working with ports and packages.
#
pkg_add -r portupgrade
#
# Clean up all temporary work directories.
#
portsclean -C
#
# Remove all distfiles that are no longer referenced by any ports.
#
portsclean -D
#
# Remove all distfiles that are no longer referenced by any port currently installed on your computer.
#
portsclean -DD
#
##################################################################
#
echo "End of script."
#
Linux Emulation Configuration

Linux emulation allows the installation and execution of Linux compiled software on the FreeBSD operating
system.

To enable Linux emulation, perform the following steps:


(# indicates a typed command.)

Load the Linux kernel module.


# kldload linux

To enable Linux compatibility at system boot:

Edit the /etc/rc.conf file:


# nano /etc/rc.conf

This line needs to be added to the /etc/rc.conf file:


linux_enable="YES”

Install the packages for Linux mode – I386 / Amd64 (Linux Fedora 10).
# cd /usr/ports/emulators/linux_base-f10/
# make install clean

Create shadow root for Linux compatibility.


#cd /
#mkdir /compat/linux

Use the brandelf utility to help the FreeBSD kernel distinguish between a FreeBSD elf binary from a Linux
binary.
# brandelf -t Linux my-linux-elf-binary

How to install Linux RPM-based applications.


# cd /compat/linux
# rpm2cpio -q < /path/to/linux.archive.rpm | cpio -id

Note:
Depending on the Linux software that is selected to be installed, additional Linux libraries may be required.

InstallingLinux Binary Compatibility.


www.freebsd.org/doc/en/books/handbook/linuxemu-lbc-install.html

FreeBSD RPM manager Man Page.


www.freebsd.org/cgi/man.cgi?query=rpm&apropos=0&sektion=0&manpath=FreeBSD+Ports&format=html

Linux programs that can be run under binary compatibility.


www.freebsd.org/ports/linux.html

The search engine for Linux RPM packages.


www.rpmseek.com
Windows Emulation Configuration

Wine is a software application that allows computer programs written for Microsoft Windows to run on Unix-
like operating systems. Wine is not an emulator, it creates a compatibility layer for Windows software.

Wine

Microsoft Windows compatibility layer for Unix-like systems It is written for the 386 architect but can be run
under the AMD64 architecture.

To install the port:


# cd /usr/ports/emulators/wine/ && make install clean

Winetricks

A script to download and install various redistributable runtime libraries that may be needed to run Windows
applications in Wine.

wiki.winehq.org/winetricks

Q4wine

A Qt4 GUI for wine. It is designed to help manage wine prefixes and installed applications. It is written for
the 386 architect but can be run under AMD64 architecture.

q4wine.brezblock.org.ua

To install the port:


# cd /usr/ports/deskutils/q4wine/ && make install clean

Wine-doors

Windows application management for the GNOME Desktop.

# pkg_add -r wine-doors
Wireless Networking

Do a post installation configuration to add a wireless network device.

This must be done while logged in as root.

(# indicates a typed command.)

# sysinstall

Select: Configure Do post-install configuration of FreeBSD.


Select: Networking Configure additional network services.
Select: Interface Configure additional network interfaces.
Select installed wireless network device.

Supported wireless network devices:


www.freebsd.org/releases/8.0R/hardware.html#WLAN

Open source wireless drivers:


en.wikipedia.org/wiki/Comparison_of_open_source_wireless_drivers

OR

Identify installed wireless network devices with pciconf.


pciconf is a diagnostic utility for the PCI bus.

#pciconf -lv |grep Wireless


device = 'Intel 3945ABG Wireless LAN controller (10208086)'
(Example device display)

Once the wireless network device has been installed or identified, it must be loaded on boot and included in
the /boot/loader.conf file.

Edit the /boot/loader.conf file:


# nano /boot/loader.conf

This line needs to be added to the /boot/loader.conf file:


if_xxx_load="YES"
(xxx is the wireless device)

Wireless cryptographic support

These modules must be loaded at boot time to enable cryptographic support for security protocols.

Edit the /boot/loader.conf file:


# nano /etc/rc.conf

Add these lines to the /boot/loader.conf file:


wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"

The control of the wireless connection and the authentication (key negotiation or authentication with a
server) is done with the wpa_supplicant utility.

WEP

The wpa_supplicant can be used to configure the wireless network device with WEP encryption.

Edit the /etc/wpa_supplicant.conf file:


# nano /etc/wpa_supplicant.conf

Add these lines to the /etc/wpa_supplicant.conf file:


network={
ssid="YOUR_NETWORK"
key_mgmt=NONE
wep_key0=6666666666
wep_tx_keyidx=0
priority=5
}

Set wireless wireless network device to use DHCP:

Edit the /etc/rc.conf file:


# nano /etc/rc.conf

Add these lines to the /etc/rc.conf file:


ifconfig_wlan0="WPA DHCP"

Initializing interface:

# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf

The following arguments must be specified with the wpa_supplicant commands:

-i ifname
Use the specified wireless interface.

-c config-file
Use the settings in the specified configuration file when managing the wireless interface.

WAP

The wpa_supplicant is used to configure the wireless network device with WAP encryption.

Edit the /etc/rc.conf file:


# nano /etc/rc.conf

Add these lines to the /etc/rc.conf file:


network={
ssid="YOUR_NETWORK"
psk="Password"
priority=5
}

Set wireless wireless network device to use DHCP:

Edit the /etc/rc.conf file:


# nano /etc/rc.conf

Add these lines to the /etc/rc.conf file:


ifconfig_wlan0="WPA DHCP"

Initializing interface:

# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf


The following arguments must be specified with the wpa_supplicant commands:

-i ifname
Use the specified wireless interface.

-c config-file
Use the settings in the specified configuration file when managing the wireless interface.

www.michielovertoom.com/freebsd/wifi-configuration/

albertux.ayalasoft.net/2010/02/28/freebsd-wireless-wep-wap/

www.howtobsd.com/?p=186

jasonk2600.wordpress.com/2010/01/09/quickie-howto-wireless-access-in-freebsd-8/

www.unix.com/man-page/FreeBSD/8/wpa_supplicant/

www.freebsd.org/doc/en/books/handbook/network-wireless.html

Wifimgr is a GTK+-based GUI for management of WiFi networks on BSD systems. It acts as an interface to the
existing /etc/wpa_supplicant.conf network configuration file, and supports WEP and WPA-PSK security.

Install wifimgr:
# pkg_add -r wifimgr

Support for the FreeBSD wifimgr must be included in the /etc/rc.conf file.

Edit the /etc/rc.conf file:


# nano /etc/rc.conf

These lines need to be added to the file:


wlans_ath0=”wlan0”
ifconfig_wlan0="WPA DHCP"

Freebsd wifimgr help.


opal.com/freebsd/ports/net-mgmt/wifimgr/

* Important – Important – Important – Important – Important – Important – Important – Important – Important *

Once you are connected to a wireless access point – you must use this command to acquire a network
address:

(# indicates a typed command.)

# dhclient wlan0

* Important – Important – Important – Important – Important – Important – Important – Important – Important *


Webcam Support

Webcam and DVB Compatibility List


wiki.freebsd.org/WebcamCompat

Install additional webcam support for FreeBSD.

(# indicates a typed command.)

Install the following packages:

# pkg_add -r v4l_compat

# pkg_add -r libv4l

# pkg_add -r pwcview

# pkg_add -r cuse4bsd-kmod

# pkg_add -r webcamd

Restart devd
# sudo /etc/rc.d/devd restart

Load cuse4bsd
# sudo kldload cuse4bsd

Initailize cuse4bsd and webcamd at start up

Edit the /boot/loader.conf file:


#nano /boot/loader.conf

Add this line to the /boot/loader.conf file:


cuse4bsd_load="YES"

Edit the /etc/rc.conf file:


# nano /etc/rc.conf

Insert this line to the /etc/rc.conf file:


webcamd_enable="YES"

Set permissions for the device

Edit the /etc/rc.conf file:


#nano /etc/rc.conf

Add the following lines to the /etc/rc.conf file:


devfs_system_ruleset="system"

Edit the /etc/devfs.rules file:


#nano /etc/devfs.rules

Add the following lines to the /etc/devfs.rules file:


[system=10]
add path 'video*' mode 0666
Test webcam to set if it is functioning properly

# pwcview

www.selasky.org/hans_petter/video4bsd/

forums.freebsd.org/showthread.php?t=15224

www.rockafunk.org/InstallWebcamd.html

wangjianjun.wordpress.com/2010/09/29/webcam-on-freebsd
Virus Detection And Removal

Clamav is a command line virus scanner written entirely in C.

Software installation:
(# indicates a typed command.)

# pkg_add -r clamav

Configuring clamav.

To initiate the clamav daemon at system boot time requires several things.

These steps include:

Edit the /etc/rc.conf file:


# nano /etc/rc.conf

Insert these lines to the /etc/rc.conf file:


clamav_freshclam_enable=”YES”
clamav_clamd_enable=”YES”

Starting clamav daemon


# /usr/local/etc/rc.d/clamav-clamd start

Update virus database


# freshclam
Remote File Support

FreeBSD can be configured to access remote computer hard drives or networked hard drives.

GVFS is an application that provides a virtual filesystem for the GNOME desktop. This application allows users
easy access to remote data using several transport protocols It provides an abstraction layer for the reading,
writing and execution of files.

GVFS uses FUSE and is a replacement for the earlier GnomeVFS application.

Software installation:
(# indicates a typed command.)

# pkg_add -r gvfs

ph7spot.com/musings/in-unix-everything-is-a-file
Common System Commands

(# indicates a typed command.)

Post FreeBSD installation system configuration:


# sysinstall

Enable mount CD / DVD:


# mkdir /media/cdrom
# chmod 660 /dev/acdo

Mount CD / DVD:
# mount -t cd9660 /dev/acd0 /media/cdrom

Power down:
# shutdown -p now

Reboot:
# reboot

Acquire DHCP address (wireless networking):


# dhclient wlan0

Edit or create a file:


# nano name_of_file_to_be_opened
# nano name_of_file_to_be_created

Change package location:


By default FreeBSD downloads packages from ftp.freebsd.org. This download location can be changed. You
can define the environment variable PACKAGEROOT specifies an alternate location for pkg_add to fetch from.
# export PACKAGEROOT=ftp://ftp3.FreeBSD.org

List of FreeBSD mirror sites:


www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html

Common Shell commands


www.teamits.com/internet/support/vps/admin/unix/commands.html

Common Shell commands


www.gsp.com/support/virtual/admin/unix/commands.html

This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for
advanced users.
cb.vu/unixtoolbox.xhtml
Additional Software

A list of suggested software that you may find useful.

GNUcash Transmission
Quicken-like money and finance manager The "meta-port" for Transmission BitTorrent client
pkg_add -r gnucash pkg_add -r transmission

Scribus Gimp
A comprehensive desktop publishing program The "meta-port" for The Gimp
pkg_add -r scribus pkg_add -r gimp

Open Office Gimp Data Extras


Integrated word processor / data base / spreadsheet / Collection of additional brushes and patterns files for
drawing / chart / browser GIMP
porting.openoffice.org/freebsd/ pkg_add -r gimp-data-extras

Vlc Xsane
Multimedia streaming server and player for various Gtk-based X11 frontend for SANE (Scanner Access
audio/video formats Now Easy)
pkg_add -r vlc pkg_add -r xsane

Pidgin Xchat
Multi-protocol messaging client (GTK+ UI) An X11 IRC client using the GTK+ 2 toolkit
pkg_add -r pidgin pkg_add -r xchat

Firefox Thunderbird
Web browser based on the browser portion of Mozilla Standalone mail and news that stands above
pkg_add -r firefox pkg_add -r thunderbird3

Lightspark Xchm
An alternative Flash Player implementation Windows HTML Help (.chm) viewer for UNIX
pkg_add -r lightspark-devel pkg_add -r xchm

OpenJDK Xpdf
Open-source implementation of the Java Platform, Display PDF files, and convert them to other formats
Standard Edition. pkg_add -r xpdf
pkg_add -r openjdk6
Gnome-commander2
Fwbuilder File manager for Gnome2
Firewall Builder GUI and policy compilers pkg_add -r gnome-commander2
pkg_add -r fwbuilder
Gkrellm
A GTK based system monitor
pkg_add -r gkrellm

Please check the Configuration Options for each software package or port you install.

You can view the Configuration Options for software packages here: www.freshports.org
References

Installing Applications: Packages and Ports


www.freebsd.org/doc/en/books/handbook/ports.html

FreshPorts has everything you want to know about FreeBSD software, ports, packages, applications, whatever
term you want to use.
www.freshports.org

FreeBSD Handbook
www.freebsd.org/doc/en/books/handbook/

The complete FreeBSD (Book)


www.lemis.com/grog/Documentation/CFBSD/

Comprehensive Guide to FreeBSD


www.vmunix.com/fbsd-book

FreeBSD Hints & Kinks


myfreebsd.homeunix.net/hints_n_kinks

FreeBSD Security Advisories


security.freebsd.org/advisories/

FreeBSD GNOME Project: GNOME 2


www.freebsd.org/gnome/docs/faq2.html

GNOME Documentation Library


library.gnome.org/users/

CUPS Software Administrators Manual


www.cups.org/doc-1.1/sam.html