Saturday, August 22, 2009

Vista Home – Net Account

I stumbled on how to accomplish changing the password expire settings in Vista Home Premium.

To remove the password expire date in Vista Home Premium, you have to use the old command line and use the net command to do this. I looked all over the GUI account dialog box for an option to to this but could not find one.

So to lift the password expire day do this.

 

  1. Under Start>Accessories> “Right-Click” on Command Prompt and click on “Run As Administrator”
  2. This will open a dos dialog box. At the prompt type in
    1. net accounts (this will list out all the settings for the current user)
    2. net accounts ? (this will list the syntax for using the command)
    3. net accounts /maxpwage:unlimited (this syntax will remove the password expiration date)
    4. net accounts /maxpwage:100 (this will set the password to expire in 100 days)

cmd

Friday, July 31, 2009

FreeBSD with ZFS filesystem

My notes to remember different zfs commands.

The FreeBSD Handbook is a good starting place.

or

The OpenSolaris.org website.

zpool create zfsstorage /dev/ad0

zfs create zfsstorage/compressed

zfs set compression=on zfsstorage/compressed

zfs set compression=gzip-4 zfsstorage/compressed

zfs list

zfs set sharenfs="-maproot=root -network 10.1.41.0" zfsstorage/compressed

zfs get compressratio zfsstorage/compressed

zs get all

Wednesday, July 1, 2009

Using Ubuntu as a backup server

  1. Install Ubuntu 8.04 LTS with a minimal install
  2. Use apt-get update to update the repositories
  3. Use apt-get upgrade to make your new server current with security patches
  4. Use apt-get install rsnapshot, rsnapshot will be the backup technique we will use
  5. Configure your raid volume where your backups will be stored
  6. I use a hardware raid card, so all I need to do is make the partition.
  7. Use fdisk to create the partition.
    fdisk /dev/sdb
  8. I use jfs for my backup storage filesystem
  9. Use mkfs.jfs –L raid5 /dev/sdb1
  10. Add the new partition to /etc/fstab
    LABEL=raid5     /mnt/raid5      jfs     rw,atime        0    0
    If you want you can use blkid to get the UUID of the new partition and use UUID instead of LABEL in /etc/fstab
  11. If you try to mount the partition, you will probably get an error relating to there is not a /dev/ created yet.
  12. You now need to run partprobe to create the new /dev
  13. Now you can mount the partition
  14. mount /mnt/raid5
  15. Now we can edit the rsnapshot file located at /etc/rsnapshot.conf
  16. Set snapshot_root to be on your newly created partition like below
    snapshot_root   /mnt/raid5/rsnapshot/
  17. Skim thru the rest of /etc/rsnapshot.conf and modify as needed.
  18. Update here about ssh-keygen –t rsa
  19. Update here about sftp id_pub to server 2
  20. Update here about server 2 path in /etc/rsnapshot.conf
  21. Update here about running rsnapshot daily
  22. Update here about adding cron entries
  23. Update here about adding a samba share to access the backup from windows.

Thursday, April 16, 2009

pfSense vs. Vyatta

I recently installed pfsense at work to replace an aging smoothwall 2.0 firewall/transparent proxy. I like the use of FreeBSD as the underlying engine of pfSense. The add-on packages are relatively easy to install, except snort IDS has a few problems that are supposedly fixed in an upcoming version 1.2.3. You have the ability to enable SSH on the firewall, so you can use a command line to configure the firewall or just use the web interface.

I ran across another firewall/transparent proxy/IDS called Vyatta. I am currently testing out the features. At first glance, its seems to have a few more features than pfSense. You have the ability to use a web interface or a series of command line scripts that interact with the 2.6.x Linux kernel.

I am still do not have a determination of which I like better or which performs better on a given set of hardware restrictions.

Tuesday, April 7, 2009

Sugar CRM Installation Warning

If you come across the following error during a SugarCRM installation

"Errors have been detected during compatibility check. In order for your SugarCRM Installation to function properly, please take the proper steps to address the issues listed below and either press the recheck button, or try installing again.

ComponentStatus
Writable Modules Sub-Directories and FilesWarning: Not Writable
Please fix the following module directories and the files under them before proceeding:
/modules/ModuleBuilder/tpls"


And you know that you have made everything "Writable" then you need to check for to hidden files that may not have been changed to writable.

Under the /modules/ModuleBuilder/tpls/ look for the following files:
.tmp_studioRelationship.tpl
.tmp_studioRelationshipsExt.tpl

These files have to be writable also or the installation will never proceed. I have seen posts on the SugarCRM forums that state these must be run as the user the webserver runs as but this is not the case. Just chmod 777 on these two files and all wil be good.

Creating a Service on Windows XP or Windows Server 2003

To create a custom service on Windows:
  1. Start>Run>CMD (get to a command prompt or CLI for short)
  2. sc is the command to create the service
example service creation format

sc \\server create "MSSQL$ACT7" binPath= "C:\Program Files\Microsoft SQL Server\MSSQL$ACT7\Binn\sqlservr.exe -sACT7" DisplayName= "MSSQL$ACT7" depend= "SQLAgent$ACT7"

This will create a custom SQL Server example for an ACT database.

Updating FreeBSD

To update FreeBSD you need to run a few commands to update a running server

  1. freebsd-update fetch
  2. freebsd-update install
To upgrade FreeBSD to the latest version: (currently 7.1)
  1. freebsd-update -r 7.1-RELEASE upgrade

To figure out what version of FreeBSD you are using do this

uname -a

FreeBSD freebsd.example.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386