Skip to content

Category Archives: FreeBSD

My adventures with FreeBSD.

vi — ‘already locked, session is read-only’

I recently came across this error in Vi after I was editing a file and was disconnect: “foo.txt already locked, session is read-only.” I thought it was a swp file issue of some sort, so I immediately searched for it to remove it. Only to find out that one didn’t exist. So I did what [...]

Stopping Starting Sendmail in FreeBSD

Here’s a quick reference for Sendmail users. The commands below are to start, stop, restart, and rebuild aliases for the Sendmail Daemon. Stopping Sendmail # cd /etc/mail # make stop Starting Sendmail # cd /etc/mail # make start Restarting Sendmail # cd /etc/mail # make restart Rebuild Aliases # cd /etc/mail # make Enable Sendmail [...]

FreeBSD 6.2 + PHP5 + PHP5-extensions = php.core dumps!!

I had just recently installed 2 new servers and both of them had PHP dumps (php.core) and issued a segmented fault, signal 11. I installed PHP5 and installed PHP5-Extensions through the ports. My first experience with the dump, I wrote a simple code to calculate interest rates, which was totally incorrect (my code btw). My [...]

Areca + FreeBSD 6.2 + >2TB Installation

I’ve been trying to set up a backup file server using FreeBSD 6.2-RELEASE amd64, Areca RAID, and using a partition that is >2TB. My first install crashed the server under heavy writing. I was rsyncing 3 servers simultaneously. Checking the logs, there were some “kernel: g_vfs_done():…Error: 5″ errors before the crash. I searched google and [...]

Recompile FreeBSD Kernel

Here’s how I recompiled the kernel. I got this from the FreeBSD Handbook, but I wanted to post for my own notes. If you want more information, please refernence the handbook at FreeBSD.org 1) Before we start, make sure that we install the all the sources. Just go to sysinstall and navigate to Configure > [...]

On FreeBSD before 6.2 ports system unfortunately can not set default X11BASE by itself…

This is kinda old news and pretty much intuitive, but if you have an old FreeBSD system and update your ports, you may receive this error message when you try to install a package: On FreeBSD before 6.2 ports system unfortunately can not set default X11BASE by itself so please help it a bit by [...]

Logging in through SSH without a password

I normally don’t do this for my own personal account, but sometimes you need to use SSH in your scripts. Anyways, here we go: I will refer to the server that you will access from as ‘Server_Alpha’, this is where the scripts would reside. The server that will be accessed, will be referred to as [...]

Removing Files That Begin With a Dash “-”

So I wasted about an hour of my life trying to figure out how to remove a filename that begins with a dash, like “-filename”. I tried quotes, backslashes, renaming the file, etc., and I still get the error: rm: illegal option — How did I figure this out?? Uhh read the manpage…haha It looks [...]

Error installing GD from php5-extensions using FreeBSD Ports

I’ve run into another problem installing Apache-PHP-MySQL FreeBSD server. While installing php5-extensions, I received an error when it tried to install GD. Here’s the error: ===> Patching for php5-gd-5.2.3 ===> Applying FreeBSD patches for php5-gd-5.2.3 ===> php5-gd-5.2.3 depends on executable in : phpize – found ===> php5-gd-5.2.3 depends on file: /usr/local/bin/autoconf259 – found ===> php5-gd-5.2.3 [...]

Can’t Install mysql50-server Through the Ports?

I’ve been trying to install mysql50-server via ports, but have been getting a checksum error, like this: => MD5 Checksum mismatch for mysql-5.0.41.tar.gz. => SHA256 Checksum mismatch for mysql-5.0.41.tar.gz. ===> Giving up on fetching files: mysql-5.0.41.tar.gz mysql-5.0.41.tar.gz Make sure the Makefile and distinfo file (/usr/ports/databases/mysql50-server/distinfo) are up to date. If you are absolutely sure you [...]