Feb 26

This is a quick and easy 5 step procedure to reset a lost MySQL password. 

First off we need to Kill the mysqld that may be running (not with -9)
(in FreeBSD /usr/local/etc/rc.d/mysql-server stop)

Step 1:
Start MySQL in safe mode.

 /usr/local/bin/safe_mysqld –skip-grant-tables &

  Continue reading »

Feb 26

Reboot the computer and hit “any key” EXCEPT the “ENTER” key.

Hit {ENTER} to boot immediately, or any other key for command prompt.
Booting [kernel] in 8 seconds……

If done successfully you’ll get a prompt like:

Disk1s1a:>

Type the following commands: Continue reading »

Feb 26

Step 1:
 Physically plug in your USB flash drive.

Step 2:
Create a flash drive directory (if not already created):
 mkdir /mnt/mydrive

Step 3: Continue reading »

Feb 26

Note:  USB drives usually show up as (emulated) SCSI drives.

Step 1:
Plug in your USB flash drive Continue reading »

Feb 25

The OpenSSH server is defaulted to allow root logins. Disabling root access will help you from practicing the bad habit of using the root account as your primary account. A more secure way of using OpenBSD is to log in as a user who belongs to the group wheel and using the su command to become root whenever root privileges are needed. Continue reading »

Feb 25

Configuring a network card

Edit /etc/rc.conf  using your favorite editor:
vi /etc/rc.conf

A  DHCP setup for a network card looks like this:
hostname=”computer1.mydomain.com”
ifconfig_xl0=”DHCP”

A static ip setup looks like this:
ifconfig_xl0=”inet 192.168.0.53 netmask 255.255.255.0″
defaultrouter=”192.168.0.1″

hostname=”computer1.mydomain.com”

Note:  Many entries can be added to the rc.conf, but only the last one in the file is used.

Multiple IPs on one network card

Example of three IP addresses assigned to one NIC: Continue reading »