Force unmount nfs share freebsd stale shares

If the processes which are currently using this partition does not respond to “kill -9″ command then you WILL have to have the MOUNTED partition available anyways before killing the process. So here is a work-around of this situation.

1. Create a virtual interface on the problem server which has the IP address same as . . . → Read More: Force unmount nfs share freebsd stale shares

How to Install Subversion 1.4.6 with Apache 2.2.17_1 on FreeBSD

I was having an issue getting subversion 1.4.6 + apache installed on a freebsd 8.1 system without running in to errors. These instructions should work on any version of freebsd (post 6.01).

Eventually i copied the proper port versions over from a different system and got it all working! Avoid rebuilding subversion from source on . . . → Read More: How to Install Subversion 1.4.6 with Apache 2.2.17_1 on FreeBSD

Add Public SSH Key to Remote Server in a Single Command

Add Public SSH Key to Remote Server in a Single Command From HowToGeek

If you want to setup SSH keys to allow logging in without a password, you can do so with a single command.

The first thing you’ll need to do is make sure you’ve run the keygen command to generate the keys:

. . . → Read More: Add Public SSH Key to Remote Server in a Single Command

Proper way to Rebuild Subversion 1.4.0_1 on FreeBSD 6.1

Here’s some info on the system:

i completely removed apache:

pkg_delete -f apache-2.\*

Then removed these subversion related files:

515 2010-07-10 18:47:59 rm -f /usr/local/lib/libexpat* 516 2010-07-10 18:48:09 rm -f /usr/local/lib/libapr* 517 2010-07-10 18:48:14 rm -f /usr/local/lib/libneon* 518 2010-07-10 18:48:27 rm -f /usr/local/lib/libsvn*

Rebuilt subversion from source, then installed apache from portmaster www/apache22 and . . . → Read More: Proper way to Rebuild Subversion 1.4.0_1 on FreeBSD 6.1

install java freebsd diablo-jdk-1.6.0.07.02_10

download the tbz file from

http://www.freebsdfoundation.org/downloads/java.shtml

do a pkg_add, ex

If that errors out with something like

then you need to run

After that completes verify that java was installed properly

You should see something like

vmware unix

A great place to find vmware virtual machines for freebsd, ubuntu, cent os, red hat linux (RHEL), Linux Mint, etc is over at bagside’s virtual appliance repository

here’s what they offer:

Virtual Appliance Repository.

This site is dedicated to virtual appliances that we build for you to use FREE of charge (except for Windows . . . → Read More: vmware unix

Linux find large files

How do you find large files or directories on your disk in freebsd, unix, linux ?

Linux find large files examples; find large files on your disk in *nix.

All *nix systems List total size of each directory/file at current path level

Example output:

Redhat/CentOS Human Readible, List largest 20 files on disk . . . → Read More: Linux find large files

HowTO: Fix Vulnerability “SSLv2 Enabled”

Add the following lines to your httpd.conf:

To Test the Fix (replace 127.0.0.1 with whatever ip you need to test on):

How To: Change IP address of FreeBSD Jail

how to change the ip address of freebsd jail . . . → Read More: How To: Change IP address of FreeBSD Jail