FreebieThe Memorandum of Me | |
FreeBSD 8 and GlassFish V2Published 2010/10/09 18:02:00 , Lastupdated 2010/10/09 18:02:00
After 5 years of noactivity. I finish my new page about Installing GlassFishV2 on FreeBSD8 AMD 64. Setup FreeBSD 6 on IBM Thinkpad T42Published 2006/08/01 02:17:00 , Lastupdated 2006/08/22 02:49:14Access FreeBSD disk from Windows XPPublished 2006/05/22 01:28:00 , Lastupdated 2006/05/23 01:35:43
My notebook is dual-boot sometime I want some files that I save on FreeBSD partition when I work on Windows XP. Until I found FFS File System Driver for Windows, the steps to get that file is reboot the machine in FreeBSD, copy those files to FAT32 partition and then reboot back to Windows XP. FFS File System Driver for Windows and it small FFS Manager program allow me to got a read-only access to my FreeBSD partition. Life is a lot easier by then. How to install FORBIDDEN ports on FreeBSDPublished 2006/05/22 01:17:00 , Lastupdated 2006/05/23 01:35:43
Sometime you may want to install a FORBIDDEN port (a port with security vulnerabilities) on your system. In my case, I want to install www/awstats 6.5 ports with has a security vulnerability if the update of the stats via web front-end is allowed but I don't use this feature -- so it fine for me to install this port.
Unfortunely, there is no clean way on FreeBSD to force install
the FORBIDDEN port. You must edit the file
.elif defined(FORBIDDEN)
IGNORE= is forbidden: ${FORBIDDEN}
.endif
-->
.elif defined(FORBIDDEN)
#IGNORE= is forbidden: ${FORBIDDEN}
.endif
Don't forget to remove the comment after you install the port.
Use FETCH_CMD to use local copy of distfilesPublished 2006/05/02 03:57:00 , Lastupdated 2006/05/02 05:19:43
We have many FreeBSD server on our LAN which we design not to use package to install the port (this may be not the fastest but it give most flexibility). The problem of this method is , everytime me install the port, it try to download a source file from the internet which are very slow.
We solve this proble by write a shell small ( On the server "t42.net0.intranet" side, we add the new user "vpn" and allow root from remote machine to login without password using ssh publickey authentication. Which can be done by:
The last step before use #setenv FETCH_CMD /home/admin/bin/ssh-fetch.sh #cd /usr/ports/databases/mysql41-server #make install clean #portupdate -f rsync Inplace replace in UnixPublished 2006/05/02 02:40:00 , Lastupdated 2006/05/02 03:15:33
As an admin or programmer , sometime you may want to replace words on
many files at once. For example, I want to replace the width of every textarea
control on this size from 70 characters width to 60 characters
('cols=70' to 'cols=60') . If you are sure that the original text are unique
in this context (use
How to modify JavaScript confirm/alert box button?Published 2006-04-26 10:29:48 , Lastupdated 2006/05/02 03:06:29Unfortunely the answer is "it is impossible",but, there is a workaround solution using CSS and JavaScript. The outline of the solution are:
Reorganization of my homepagePublished 2006-04-25 10:02:21 , Lastupdated 2006/04/26 01:46:56My old personal page is a mess , therefore I reorganize my page as you see it now. The look and feel is copy from K2 for Blogger. FreeBSD 6 installation guildlinePublished 2005-10-22 , Lastupdated 2006/04/26 01:46:54
First part of FreeBSD 6 installation guildline. This is the first document I wrote with FreeBSD Document sgml tools. SquirrelMail+Courier-imap with Large InboxPublished 2005-08-18 , Lastupdated 2006/04/26 01:46:54If you has a very large Inbox (+1000 mails). You should enable SquirrelMail to use server side mail sorting which are faster and use less resource. See SquirrelMailPerformance for more detail. PostgreSQL don't support IPV6 by defaultPublished 2005-05-25 , Lastupdated 2006/04/26 01:46:54If you enable IPV6 in the OS and have IPV6 entry for localhost (::1 localhost localhost.my.domain) before IPV4 entry (127.0.0.1 localhost localhost.my.domain) -- which is default for FreeBSD. PostgreSQL will report error if you try to connect with "localhost" (i.e psql -h localhost ). The solution, swap IPV6 and IPV4 entries of localhost. |
|