Useful Utilities

Screen Utility:

This port is very handy as it provides you the "multi-tasking" window environment. This is not recommened for servers that have many clients using the server directly. This is only for a closed, web server type system. There are some security issues if "unknowns" can telnet or SSH into the box.

Step 1: Install screen from the ports

	# cd /usr/ports/misc/screen
	# make all install clean
	

Step 2: Run Screen

  1. To run screen use the following command
    	# screen
    	
  2. To reattach to a previous screen use the following
    	# screen -D -r
    	
  3. To create a new screen use the following
    	ctrl+a+c
    	
  4. To switch screens use the following
    	ctrl+a+a
    	
  5. See the manual for more options
    	# man screen
    	

Web Based SSH - Mindterm:

Many times you find it very useful to connect to your machine to perform routine tasks, troubleshooting, or just out of plain boredom (after all nothing will go wrong because it is FreeBSD). When you need to attach to your box from a client workstation you will need to be able connect using SSH. What if there is no SSH client to use. Well, all you have to do is bring up a web browser and connect to the ever so cool Mindterm SSH Java applet.

Note: You must have Apache installed and running for this to work

Step 1: Install the port

  1. Install the mindterm-binary port
    	# cd /usr/ports/security/mindterm-binary
    	# make all install clean
    	

Step 2: Configure the port

  1. Copy the appropriate files to your www directory
    	# cp /usr/local/share/doc/mindterm/mindterm-ssh.html /usr/local/www/data/
    	# cp /usr/local/share/java/mindterm/mindterm.jar  /usr/local/www/data/
    	
  2. Edit the mindterm-ssh.html file appropriately
    	# vi /usr/local/www/data/mindterm-ssh.html
    	
  3. Example:
    	< param name=port value="22">
    	< param name=server value="yourservname.com">
    	< param name=te value="xterm-color">
    	< param name=gm value="80x32">
    	< param name=cipher value="3des">
    	< param name=sepframe value="true">
    	< param name=quiet value="false">
    	< param name=cmdsh value="false">
     	< param name=verbose value="true">
     	< param name=autoprops value="none">
     	< param name=idhost value="false">
     	< param name=alive value="10">
     	< param name=bg value="black">
     	< param name=fg value="white">
     	< param name=bs value="BS">
     	< param name=sl value="2000">
    	
phpMyAdmin - Web Based mySQL Management: When you are ready to start full out using mySQL databases and storing, retreiving information in a database environment you should really consider using the phpmyadmin module that is available for download. This application can be very useful and is very easy to install. Note: You will need apache and mySQL installed in order to use this application Step 1: Install the port
  1. Install the phpmyadmin port
    	# cd /usr/ports/databases/phpmyadmin
    	# make all install clean
    	

Step 2: Configure the port

  1. Copy the php folder to an appropriate location
    Examaple:

    	# mv /usr/local/www/data/phpMyAdmin /usr/local/www/data/secure/phpMyAdmin
    	
  2. Edit the config.inc.php3 file
    	# vi config.inc.php3
    	

    Change the user and password settings and anything else that may be appropriate

  3. Open a webpage to the phpMyAdmin location and start playing with mysql.

Ampache - MP3 Streamer:

If you have a large collection of MP3's why not install an MP3 streamer and listen to your music from anywhere. Ampache is a package that can be quickly and easily installed on your server and in very little time you will be streaming all of your MP3's from your FreeBSD box.

Step 1: Install the package

  1. Install the mod_mp3 port for apache
    		# cd /usr/ports/www/mod_mp3
    		# make all install clean
    	
  2. Install the latest package for ampache
    		# mkdir /usr/local/src/; cd /usr/local/src
    		# fetch http://ampache.kveton.com/downloads/ampache-1.21.tar.gz
    		# tar -xvzf ampache-1.21.tar.gz
    		# cd amapache-1.21
    		# vi README
    	

Step 2: Configure the package

  1. Follow the instructions given and get ready to listen to the tunes

Junkbuster - Internet Proxy:

Junkbuster is a proxy that will assist you in blocking out junk mail, banner ads, and websites. It is a very useful utility if you want to restrict access to various sites or just want to block out all of those annoying banner ads.

Step 1: Install the port

  1. Install the latest junkbuster port
    	# cd /usr/ports/www/junkbuster
    	# make all install clean
    	

Step 2: Configure the port

  1. Create the config file
    	# cd /usr/local/etc/junkbuster/
    	Pick one of the *.sample files and copy to configfile
    	Example:
    	# cp /usr/local/etc/junkbuster/configfile.sample /usr/local/etc/junkbuster/configfile
    	Edit the file and make any necessary changes
    	# vi /usr/local/etc/junkbuster/configfile
    	
  2. Edit the startup script
    	# vi /usr/local/etc/rc.d/junkbuster.sh
    	
  3. Start the service
    	# /usr/local/etc/rc.d/junkbuster.sh start
    	

Step 3: Additional Information

  1. Visit http://www.junkbusters.com/