posted this in FreeBSD on November 4th, 2010 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
posted this in FreeBSD, O/S on October 30th, 2010 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
posted this in FreeBSD, Linux, Mac, Scripts on October 28th, 2010 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
posted this in FreeBSD on October 21st, 2010 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 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
posted this in FreeBSD on October 18th, 2010 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 >= 1.2.99.1' but version of X11 is 1.1.3 Requested 'xext >= 1.0.99.1' but version of Xext is 1.0.3 Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables XI_CFLAGS and XI_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. |
then you need to run
|
|
portmaster -u /usr/ports/java/diablo-jdk16 |
After that completes verify that java was installed properly
You should see something like
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Information for diablo-jdk-1.5.0.07.00: Comment: Java Development Kit 1.5.0_07.00 Required by: j2sdkee-1.3.1_4 Description: The Java Development Kit (JDK) provides the Java Virtual Machine, base classes, and development tools to permit developers to create new Java applications, applets, and components on FreeBSD. WWW: http://www.FreeBSDFoundation.org/downloads/java.shtml Information for diablo-jdk-1.6.0.07.02_10: Comment: Java Development Kit 1.6.0_07.02 Description: The Java Development Kit (JDK) provides the Java Virtual Machine, base classes, and development tools to permit developers to create new Java applications, applets, and components on FreeBSD. WWW: http://www.FreeBSDFoundation.org/downloads/java.shtml |
posted this in FreeBSD, Linux, Software on October 4th, 2010 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
posted this in FreeBSD on September 16th, 2010 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 -sk * | sort -rn | head 20089940 total 4628944 root 2102076 usr 723940 opt 493228 var 211744 lib 196708 2012-09-28--00-00 183804 2012-09-15--00-00 174968 2012-09-27--00-00 173756 2012-09-21--00-00 [root@centos6 /]# |
Redhat/CentOS Human Readible, List largest 20 files on disk . . . → Read More: Linux find large files
posted this in FreeBSD, MYSQL on July 9th, 2010 Problem: receiving this error on freebsd 6.1
|
|
(Can't contact the database server: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (localhost)) |
To investigate run this command:
If mysql is not running then start it like this:
|
|
# /usr/local/etc/rc.d/mysql-server start |
posted this in FreeBSD, Security on July 6th, 2010 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 |
posted this in FreeBSD on June 24th, 2010 how to change the ip address of freebsd jail . . . → Read More: How To: Change IP address of FreeBSD Jail
|
|