Wednesday, January 6, 2010
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 [...]
Also filed in
|
|
Wednesday, February 6, 2008
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 [...]
Thursday, January 10, 2008
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 [...]
Friday, November 16, 2007
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 [...]
Friday, November 16, 2007
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 > [...]
Also filed in
|
|
Monday, September 10, 2007
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 [...]
Also filed in
|
|
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 [...]
Also filed in
|
|
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 [...]
Also filed in
|
|
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 [...]
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 [...]