Daily Archives: June 3, 2009

FreeBsd partition scheme:

0
Filed under WEB-DEV-LOG
Tagged as

freeBSd 7.2 auto default

  • swap – 4936 MB
  • / – 496 MB
  • /usr – 140 GB
  • /var – 2.9 GB
  • /tmp – 496 MB

Cari.net

  • swap – 1935 MB
  • / – 496 MB
  • /usr – 144 GB
  • /var – 1.9 GB
  • /tmp – 496 MB

OP1

  • swap – 512 MB
  • / – 1024 MB
  • /usr – 8192 MB (This can be more if needed, but I use 8192MB as a minimum)
  • /var – 1024 MB (Running a large MySQL database will require an increase here)
  • /tmp – 512 MB
  • /home – 4096 MB
  • /opt – What ever is left. I generally push large databases, applications or other data here so it doesn’t interfere with normal system operations.

perl conflict

0
Filed under BSD
Tagged as

installed is 5.8.8_1 updated to 5.8.9_2 current is 5.10.0_2

  • make reinstall
  • make deinstall
  • make distclean

pkg_delete -n -d -r perl-5.8*

pkgdb -F

How To Change The WordPress Default Category.

0
Filed under WEB-DEV-LOG
Tagged as
  1. Select Settings from the main menu.
  2. Select Writing from the sub menu.
  3. Change the value in the Default post category drop down list.
  4. Click the Update Options button at the bottom of the page.
  5. Done.

display partition info

0
Filed under BSD
Tagged as

disklable /dev/ad4s1

pkg_deinstall x11 garbage

0
Filed under BSD
Tagged as
pkg_deinstall command is a wrapper of pkg_delete(1) used to deinstall packages, which understands wildcards and is capable of recursing through dependencies.

pkg_deinstall -R portname

	However, I have done this manually by repeated application of
pkg_cutleaves (sysutils/pkg_cutleaves) + pkg_delete.

pkg_cutleaves -l

There is a menu-ish version of pkg_cutleaves called pkg_rmleaves

pkg_deinstall --recursive --upward-recursive --rmdir -n

-n noexcute

pkg_deinstall --recursive --upward-recursive --rmdir xorg* xf86* lib[xX]* font*
pkg_deinstall --recursive --rmdir -n xproto*
pkg_deinstall --recursive  --rmdir -n font*

encodings

How to build locate command database in FreeBSD?

0
Filed under BSD, Uncategorized, WEB-DEV-LOG
Tagged as
FROM lessfaq.wordpress.com/2008/04/30/how-to-build-locate-command-database-in-freebsd/#comments

If the database has not been built, locate command will show the following error message:

locate: database too small: /var/db/locate.database

You can build/update the database by running ‘locate.updatedb‘ script.

run:
$ /usr/libexec/locate.updatedb