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 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 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 HOLDERS AND/OR AND/OR OTHER OTHER PARTIES ARTIES PROVIDE THE PROGRA PROGRAM M "AS IS" WITHOUT WARRANTY WARRANTY OF ANY KIND, EITH EITHER ER EXPR EXPRES ESSE SED D OR IMPL IMPLIE IED, D, INCL INCLUD UDIN ING, G, BUT BUT NO NOT T LIMI LIMITE TED D TO, TO, THE THE IMPL IMPLIE IED D WARRA ARRANT NTIE IES S 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 ABO ABOVE, VE, BE LIAB LIABLE LE TO YOU FOR FOR DAMA DAMAGE GES, S, INCL INCLUD UDIN ING G ANY ANY GENE GENERA RAL, L, SPEC SPECIA IAL, L, INCI INCIDE DENT NTAL AL 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 David Childe Childers rs is the Conten Contentt Manage Managerr and Senior Senior Editor Editor for the Intern Internati ationa onall Broad Broadcas castin ting g portal portal www.BroadcastingWorld.net.. He is also www.BroadcastingWorld.net also the webma webmaste sterr of the SHOUT SHOUTcast cast video video stream streaming ing infor informat matio ion n resource, www.scvi.net www.scvi.net.. He is very active in the Internet broadcast industry. industry. Mr. Mr. Childers' work has been cited in several national and International publications, such as: Five 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: Podcasting: When, Where and How it's Currently used for Instruction The National Convention of the Association for Educational Communications and Technology Technology IP Packet Charging Model For Multimedia Services National University of Rwanda Preservation 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 Peer-to-Peer Systems and Applications Lecture Notes In Computer Science Springer Berlin / Heidelberg Mr. Mr. Childers has also written several guides including: FreeBSD 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 associated software software using one simple script. script. Using Using a shell script allows allows the installat installation ion of complete binary packages instead of using ports that require 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 complete desktop. desktop. Unfortunat Unfortunately, ely, this port was removed removed because because there was no designated designated maintainer 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. 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. 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 Installati on - Using The Desktop Installation Installation Script - Desktop Installation Script - Post Script Installation Installation Notes - Using The FreeBSD FreeBSD Update Script - FreeBSD Update Script - Linux Emulation Emulation Configuration - Windows Emulation Configuration - Wireless Networking - Webcam Support - Virus Detection Detection And Removal Removal - Remote File Support Suppor t - Common System Commands Commands - Additional Software - References
Changes Updated - Introduction Updated - FreeBSD 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 Software Updated - References 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 stable operating operating system. system. The FreeBSD FreeBSD system system architec architecture ture is well organized organized and designed for excell excellent ent reliability, reliability, and can be used for either a desktop or server computer environment. GNOME GNOME is a desktop desktop environment environment / graphical graphical user interface interface that runs on top of the computer computer operating operating system. GNOME is part of the GNU Project Project and can be used with various Unix-like Unix-like operating 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 also use a modified system system architecture. 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-installblog.up-link.ro/ freebsd-how-to-install-freebsd-freebsd-8freebsd-freebsd-8-installation-guide/ installation-guide/ 2.4 Starting the Installation www.freebsd.org/doc/ www .freebsd.org/doc/en/books/handbook/ en/books/handbook/install-start.html install-start.html 2.5 Introducing Sysinstall www.freebsd.org/doc/ www .freebsd.org/doc/en/books/handbook/ en/books/handbook/using-sysinstall.html using-sysinstall.html 2.6 Allocating Disk Space www.freebsd.org/doc/ www .freebsd.org/doc/en/books/handbook/ en/books/handbook/install-steps.html install-steps.html 2.7 Choosing What to Install www.freebsd.org/doc/ www .freebsd.org/doc/en/books/handbook/ en/books/handbook/install-choosing.html install-choosing.html 2.8 Choosing Your Installation Media www.freebsd.org/doc/ www .freebsd.org/doc/en/books/handbook/ en/books/handbook/install-media.html install-media.html 2.9 Committing to the Installation www.freebsd.org/doc/ www .freebsd.org/doc/en/books/handbook/ en/books/handbook/install-final-wa install-final-warning.html rning.html 2.10 Post-installation www.freebsd.org/doc/ www .freebsd.org/doc/en/books/handbook/ en/books/handbook/install-post.html install-post.html 2.11 Troubleshooting www.freebsd.org/doc/ www .freebsd.org/doc/en/books/handbook/ en/books/handbook/install-trouble.html 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.) 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 some additional actions to be performed after 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 Installati on Script. # David Childers - 15 Dec, 2009 / Updated Updated 15 April, 2011 # # This software is released under the Attribution-ShareAlike 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 small donation. # https://www.paypal.com/cgi-bin/ https://www .paypal.com/cgi-bin/webscr?cmd=_s-xc webscr?cmd=_s-xclick&hosted_button_id=10 lick&hosted_button_id=10870717 870717 # ######################### ##################################### ######################## ########################## ################# ### ######################### ##################################### ######################## ########################## ################# ### # # 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 you modify the script, make absolutely sure sure that you you use standard standard quotation marks '' '' and not word word # > processor processor quotation quotation marks “ “ in elements elements that you use the echo function for adding entries to files. # > Using word processor processor quotation marks marks ” “ inside the script will cause the script to not function function # > properly. # ######################### ##################################### ######################## ########################## ################# ### ######################### ##################################### ######################## ########################## ################# ### # # It is is advisable advisable to begin with with a fresh fresh installation of FreeBSD. FreeBSD. # # This script can be used with either an an i386 i386 or amd64 amd64 system. system. # ######################### ##################################### ######################## ########################## ################# ### ######################### ##################################### ######################## ########################## ################# ### # echo "Updating the FreeBSD FreeBSD installation." installation." # freebsd-update fetch freebsd-update install # ######################### ##################################### ######################## ########################## ################# ### ######################### ##################################### ######################## ########################## ################# ### # echo "Installing the ports tree." # portsnap fetch portsnap extract # ######################### ##################################### ######################## ########################## ################# ### ######################### ##################################### ######################## ########################## ################# ### # echo "Installing desktop software." 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. user. # pkg_add -r gnome2-power-tools gnome2-power-tools # ######################### ##################################### ######################## ########################## ################# ### ######################### ##################################### ######################## ########################## ################# ### # echo "Installing system utilities." utilities." # # Nano's ANOther ANOther editor, an an enhanced free free Pico Pico clone. (Basic text 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." utilities." # # Common UNIX Printing System: Metaport to install complete system. # pkg_add -r cups # # GutenPrint Printer Driver. Driver. # pkg_add -r gutenprint-cups # # Administration Administration tool for cups (Gnome). # pkg_add -r gnome-cups-manager # ########## ########## ## ## You may need to install additional device drivers for for specific printers. 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." 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 /usr/local/et c/cups/mime.types ## # nano /usr/local/etc/cups/mime.convs /usr/local/et c/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' '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 /etc/rc.conf # # Restart cups system. # /etc/rc.d/devfs /etc/rc.d/devfs restart /usr/local/etc/rc.d/cupsd /usr/local/etc/rc.d/cupsd restart # # Reference: # Configuring the CUPS Print Server # www.freebsd.org/doc www .freebsd.org/doc/en/articles/cups /en/articles/cups/printing-cups-configuring-serv /printing-cups-configuring-server er.html .html # ######################### ##################################### ######################## ########################## ################# ### ######################### ##################################### ######################## ########################## ################# ### # echo "Configuring Gnome to automatically automatically launch launch when the computer starts up." # # Starting with version 7.4, Xorg can use HAL to autodetect keyboards keyboards and mice. The sysutils/hal and # devel/dbus ports are installed as dependencies of x11/xorg, x11/xorg, but must be enabled by the following # entries in the /etc/rc.conf /etc/rc.conf file: # echo 'hald_enable="YES"' > /etc/rc.conf # # Enabling Gnome start up. # echo 'gdm_enable="YES"' >> /etc/rc.conf /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 www .freebsd.org/doc/en/books/handbook/ /en/books/handbook/x11-wm.html x11-wm.html # # 5.4 X11 Configuration # www.freebsd.org/doc www .freebsd.org/doc/en/books/handbook/ /en/books/handbook/x-config.html x-config.html # # FreeBSD GNOME Project: GNOME FAQ FAQ # www.freebsd.org/gnome/docs/faq2.html # ######################### ##################################### ######################## ########################## ################# ### ######################### ##################################### ######################## ########################## ################# ### # echo "Sound card card configuration." configuration." # # This command probes the sound card card and determines 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 /boot/loade r.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 www .freebsd.org/doc/en/books/handbook/ /en/books/handbook/sound-setup.html 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”, “/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. user. - Go to the Gnome desktop. - Open the Gnome command line terminal. - Login as SU. # cd /etc/ - Use wget and download the FreeBSD 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 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 some additional actions to be performed after 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 FreeBSD Update Script # David Childers - 15 Dec, 2009 / Updated Updated 15 April, 2011 # # This software is released under the Attribution-ShareAlike Attribution-ShareAlike version 3.0 Licence. # www.creativecommons.org/licenses/by-sa/3.0/ # ######################### ##################################### ######################## ########################## ################# ### ######################### ##################################### ######################## ########################## ################# ### # # This script can be used with either an an i386 i386 or amd64 amd64 system. system. # ######################### ##################################### ######################## ########################## ################# ### ######################### ##################################### ######################## ########################## ################# ### # # If you find this script useful, please consider making a small small donation. # https://www.paypal.com/cgi-bin/ https://www .paypal.com/cgi-bin/webscr?cmd=_s-xc webscr?cmd=_s-xclick&hosted_button_id=10 lick&hosted_button_id=10870717 870717 # ######################### ##################################### ######################## ########################## ################# ### ######################### ##################################### ######################## ########################## ################# ### # # > If you you modify the script, make absolutely sure sure that you you use standard standard quotation marks '' '' and not word word # > processor processor quotation quotation marks “ “ in elements elements that you use the echo function for adding entries to files. # > Using word processor processor quotation marks marks ” “ inside the script will cause the script to not function function # > properly. # ######################### ##################################### ######################## ########################## ################# ### ######################### ##################################### ######################## ########################## ################# ### # # Including this command command will will eliminate eliminate the user user interactive interactive prompts prompts when 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. 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 are no longer referenced by any ports. # portsclean -D # # Remove all distfiles distfiles that are no longer referenced referenced by any port currently currently installed installed on your computer. 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 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/ /usr/ports/emulators/linux_base-f10/ # make install clean Create shadow root for Linux compatibility. #cd / #mkdir /compat/linux Use the brandelf brandelf utility to help the FreeBSD reeBSD kernel distinguish distinguish between between a FreeBSD reeBSD elf binary from a Linux binary. # brandelf -t Linux my-linux-elf-binary 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/ www .freebsd.org/doc/en/books/handbook/ en/books/handbook/linuxemu-lbc-i linuxemu-lbc-install.html nstall.html FreeBSD RPM manager Man Page. www.freebsd.org/cgi/ www .freebsd.org/cgi/man.cgi?query=rpm&aprop man.cgi?query=rpm&apropos=0&sektion=0& os=0&sektion=0&manpath=F manpath=FreeBSD+P reeBSD+Ports&format=html orts&format=html Linux programs that can be run under binary compatibility. 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 Unixlike operating operating systems. Wine is not an emulator, emulator, it creates a compatibility layer for Windows Windows software. software. Wine Microsoft Microsoft Windows compatibility compatibility layer for Unix-like Unix-like systems systems It is written for the 386 architect architect but can be run under the AMD64 architecture. architecture. To install the port: # cd /usr/ports/emulators/ /usr/ports/emulators/wine/ 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 wine prefixes prefixes and installed installed applications. It is written 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/ /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. device. This must be done while logged in as root. (# indicates a typed command.) # sysinstall Select: Configure Do post-install post-install configuration configuration of FreeBSD. 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/Compa en.wikipedia.or g/wiki/Comparison_of_open_source_wi rison_of_open_source_wireless_drivers reless_drivers OR Identify installed wireless network devices with pciconf. 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 /boot/loader.conf file: # nano /boot/loader.conf This line needs to be added to the /boot/loader.conf /boot/loader.conf file: if_xxx_load="YES" (xxx is the wireless device) Wireless c ryptographic ryptog raphic support These modules must be loaded at boot time to enable cryptographic support for security protocols. Edit the /boot/loader.conf /boot/loader.conf file: # nano /etc/rc.conf Add these lines to the /boot/loader.conf /boot/loader.conf file: wlan_wep_load="YES" wlan_ccmp_load="YES" wlan_tkip_load="YES" The control of the wireles wireless s connectio connection n and the authentica authentication tion (key negotiation negotiation or authentica authentication tion 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 /etc/wpa_supplicant.conf file:
# nano /etc/wpa_supplicant.co /etc/wpa_supplicant.conf nf 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 /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 /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/0 albertux.ayalasof t.net/2010/02/28/fr 2/28/freebsd-wireless eebsd-wireless-wep-wap/ -wep-wap/ www.howtobsd.com/?p=186 jasonk2600.wordpress.co jasonk2600 .wordpress.com/2010/01 m/2010/01/09/quicki /09/quickie-howto-wireless e-howto-wireless-access-in-free -access-in-freebsd-8/ bsd-8/ www.unix.com/man-page/FreeBSD/8/wpa_supplicant/ www.freebsd.org/doc/ www .freebsd.org/doc/en/books/handbook/ en/books/handbook/network-wirele network-wireless.html ss.html Wifimgr is a GTK+-based GTK+-based GUI for management of WiFi WiFi networks on BSD systems. It acts as an interface to the existing /etc/wpa_supplicant.conf /etc/wpa_supplicant.conf network configuration file, and supports WEP and WPA-PSK WPA-PSK security. security. Install wifimgr: # pkg_add -r wifimgr Support for the FreeBSD FreeBSD wifimgr must be included in the /etc/rc.conf /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 Initai Ini taili lize ze cuse4bs cuse4 bs d and an d webcam web camd d at start sta rt up Edit the /boot/loader.conf /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: file: webcamd_enable="YES" Set permissions for the device Edit the /etc/rc.conf file: #nano /etc/rc.conf /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 wangjianjun.wordpr ess.com/2010/09/29/ /09/29/webcam-on-freebsd 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 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” Star St artin ting g clamav lam av d aemon aem on # /usr/local/etc/rc.d/clama /usr/local/etc/rc.d/clamav-clamd v-clamd start Update virus database # freshclam
Remote File Support FreeBSD 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 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 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 /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_opene name_of_file_to_be_opened d # nano name_of_file_to_be_cr name_of_file_to_be_created eated Change package location: By default FreeBSD downloads packages from ftp.freebsd.org. This download location can be changed. You can define the environment variable PACKAGERO PACKAGEROOT OT 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/ www .freebsd.org/doc/en_US.ISO8859-1 en_US.ISO8859-1/books/handbook/ /books/handbook/mirrors-ftp.htm mirrors-ftp.htmll Common Shell commands www.teamits.com/inter www .teamits.com/internet/support/vps/admin/ net/support/vps/admin/unix/commands.html unix/commands.html Common Shell commands www.gsp.com/support/virtual/ www .gsp.com/support/virtual/admin/unix/com admin/unix/commands.html mands.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 Quicken-like Quicken-like money and finance manager pkg_add -r gnucash
Transmission The "meta-port" for Transmission BitTorrent client pkg_add -r transmission
Scribus A comprehensive desktop publishing program pkg_add -r scribus
Gimp The "meta-port" for The Gimp pkg_add -r gimp
Open Office Integrated word processor / data base / spreadsheet / drawing / chart / browser porting.openoffice.org/freebsd/
Gimp Data Extras Collection of additional brushes and patterns files for GIMP pkg_add -r gimp-data-extras
Vlc Multimedia streaming server and player for various audio/video formats pkg_add -r vlc
Xsane Gtk-based X11 frontend for SANE (Scanner Access Now Easy) pkg_add -r xsane
Pidgin Multi-protocol messaging client (GTK+ UI) pkg_add -r pidgin
Xchat An X11 IRC client using the GTK+ 2 toolkit 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 An alternative Flash Player implementation pkg_add -r lightspark-devel
Xchm Windows HTML Help (.chm) viewer for UNIX pkg_add -r xchm
OpenJDK Open-source implementation of the Java Platform, Standard Edition. pkg_add -r openjdk6
Xpdf Display PDF files, and convert them to other formats pkg_add -r xpdf
Fwbuilder Firewall Builder GUI and policy compilers pkg_add -r fwbuilder
Gnome-commander2 File manager for Gnome2 pkg_add -r gnome-commander2 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/ www .freebsd.org/doc/en/books/handbook/ en/books/handbook/ports.html ports.html FreshPorts 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