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:

ssh-keygen . . . → 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:

# svn –version /libexec/ld-elf.so.1: Shared object “libaprutil-1.so.2″ not found, required by “svn” # pkg_info | grep -i apache apache-2.2.15_9 Version 2.2.x of Apache web server with prefork MPM. apr-devrandom-gdbm-db42-ldap23-mysql50-1.4.2.1.3.9_1 Apache Portability Library # pkg_info subversion-1.4.0_1 Information for subversion-1.4.0_1:

i completely removed apache:

pkg_delete -f apache-2.\*

Then removed these subversion . . . → 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 pkg_add diablo-jdk-freebsd6.i386.1.6.0.07.02.tbz

If that errors out with something like checking pkg-config is at least version 0.9.0… yes checking for XI… configure: error: Package requirements (xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902) were not met: Requested ‘x11 >= . . . → Read More: install java freebsd diablo-jdk-1.6.0.07.02_10

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 du -sk * | sort -rn | head

Example output:

[root@centos6 /]# du . . . → Read More: Linux find large files

HowTO: Fix Vulnerability “SSLv2 Enabled”

Add the following lines to your httpd.conf:

SSLProtocol ALL -SSLv2 SSLCipherSuite HIGH:!SSLv2:!ADH:!aNULL:!eNULL:!NULL

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

openssl s_client -port 443 -host “127.0.0.1″ -ssl2

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