Archive for the ‘aboutBSD.net’ Category

FreeBSD – How to upgrade the kernel or base system

Posted on July 9th, 2009 by "PsyberMonkey" from "Monkeying around systems, scratching my needs » FreeBSD"

The nature of FreeBSD is so rock-solid stable that some system administrator adopt the philosophy “if it ain’t broken, don’t fix it”, others, beg to differ. Upgrading & patching of servers should be diligently carry out so that security vulnerabilities are minimize to the least (who can be sure of their servers are 100% secure [...]

FreeBSD – Combine 2 (or more) NIC using network link aggregation and load balance (aka round robin)

Posted on June 28th, 2009 by "PsyberMonkey" from "Monkeying around systems, scratching my needs » FreeBSD"

Hard disk are getting bigger and bigger. Network interface card (NIC) and switch are getting cheaper and cheaper. It usually means more services can squeeze into a server. Combining multiple network interface into 1 big pipe would be a big plus for services that is bandwidth hungry. e.g. file server, email server & etc Combining 2 [...]

How to check hard disk transfer speed or timing

Posted on June 26th, 2009 by "PsyberMonkey" from "Monkeying around systems, scratching my needs » FreeBSD"

Storage are getting cheaper and cheaper. Almost a year ago, a 250 GB 2.5″ portable hard disk would cost 120 bucks. But now, it only cost 100 bucks for a 500 GB hard disk. Size are getting bigger and bigger with the same monetary value but does the hard disk spins fast enough to fetch [...]

PostgreSQL – How to reset user name “postgres” password

Posted on June 20th, 2009 by "PsyberMonkey" from "Monkeying around systems, scratching my needs » FreeBSD"

PostgreSQL is an open source RDBMS (Relational DataBase Management System) that is not only feature rich, fast and light but also easy to use. Its documentation available at its website is a superb way of learning as well. Browsing the documentation and you will find that its way of explaining is no “bullshit” approach, short [...]

sudo – How to create another root (equivalent) account on linux or freebsd

Posted on June 18th, 2009 by "PsyberMonkey" from "Monkeying around systems, scratching my needs » FreeBSD"

The usual root account are meant for critical task, such as single user mode related operation. It hails the power of the system, as well the power of destruction (try “rm -rf /” :p). That’s the reason why a lot of company have a policy to seal the root account or make some red tape [...]

Start multiple command line screen session to run interactive jobs

Posted on May 21st, 2009 by "PsyberMonkey" from "Monkeying around systems, scratching my needs » FreeBSD"

As an BSD & Linux administrator, the command line is where we live. We eat, live & shit at the same place, command line screen. Some times, we can only afford to open a single terminal screen. It’s kind of hard for us to be efficient as most of the time we multitask on a [...]

ssh – error “Host key verification failed” when trying to connect or copy a file to ssh server

Posted on May 19th, 2009 by "PsyberMonkey" from "Monkeying around systems, scratching my needs » FreeBSD"

The below error was display while trying to ssh or scp to a ssh server : @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ The RSA host key for domain-name.com has changed, and the key for the according IP address xxx.xxx.xxx.xxx is unknown. This could [...]

How to check user’s information and profile

Posted on May 8th, 2009 by "PsyberMonkey" from "Monkeying around systems, scratching my needs » FreeBSD"

Other then digging /etc/passwd, there are other ways to check a user’s profile on the server. “finger” can also do the same job. e.g. finger username Arrivederci !!!

mkdir – make a whole set of directory, automatically if it does not exists

Posted on May 7th, 2009 by "PsyberMonkey" from "Monkeying around systems, scratching my needs » FreeBSD"

When organizing files, we often need to make a whole set of directories in order organize the files properly into directories. Most of the time, we will need to make a bunch of sub directories. e.g. “cd /directory” then “mkdir leve1“, then “cd /directory/level1” then “mkdir level2“, then “cd /directory/level1/level2” then “mkdir level3” and etc… In fact, [...]

How to display route table or default gateway

Posted on May 7th, 2009 by "PsyberMonkey" from "Monkeying around systems, scratching my needs » FreeBSD"

Route table are part of the area to troubleshoot when a connection have problem. Route table can the the most frequent problem to look at after assigning an IP address. Other times, it is mainly for adding additional routes when wireless & wired connection are both in use. This post will attempt to list out [...]

How to cd back to the previous directory

Posted on May 6th, 2009 by "PsyberMonkey" from "Monkeying around systems, scratching my needs » FreeBSD"

In Linux & FreeBSD, often we need to cd to a directory then ls to find out the files in that directory. Then only to find out we need to go back to the previous directory and do something else, and we will need to type “cd /very/long/directory/name/and/it/is/just/so/not/cool/to/do/“. Next time, use : cd - and it will go [...]

How to make grep highlight the keyword

Posted on May 6th, 2009 by "PsyberMonkey" from "Monkeying around systems, scratching my needs » FreeBSD"

By default, grep does not highlight the keyword or the search term. Making grep highlighting the search term can make the visibility of the keyword more obvious if it hide in between the words. The parameter for grep to highlight the keyword is “–color“. #start of somefile the big brown fox jumped over the lazy dog the big brown [...]

How to print date suitable for file name assignment

Posted on May 5th, 2009 by "PsyberMonkey" from "Monkeying around systems, scratching my needs » FreeBSD"

In bash script, it is common to name files with date part of it. e.g. system-20080808.zip, mysql-20070707.tar.gz, somelog-20090101.tar.bz2 and etc … Reason to name it in such a ways is easier to clean up the backup later, using bash script. If you have not notice, when listing of the files and sort it by name, it is automatically [...]

FreeBSD networking – How to assign or remove fixed IP

Posted on May 5th, 2009 by "PsyberMonkey" from "Monkeying around systems, scratching my needs » FreeBSD"

Previously, we have talk about how to assigh dynamic IP to an interface on Freebsd. This post is about how to assign fixed or static IP to an interface on Freebsd. Below are the steps : Manually assign fixed IP : ifconfig bce0 inet <IP address> netmask <subnet mask> route add default <gateway IP address> /etc/netstart e.g. ifconfig bce0 inet

(Read more...)

How to clear or reset screen font

Posted on May 4th, 2009 by "PsyberMonkey" from "Monkeying around systems, scratching my needs » FreeBSD"

After accidentally cat a tar or zip file or left out some pipe and echo the whole file of random string, on to the screen; it can mess up the font of the screen and result in missing of characters or blinking characters or ever the cursor is missing from the screen. No worries, just [...]

FreeBSD : Inexpensive and simple swap encryption

Posted on July 30th, 2008 by "daemon" from "bsd.m3th.org » OpenBSD"

It has been a while that I did not put up any post. Here a short note on swap space encryption with FreeBSD geom geli(8). This feature was there for quite sometimes.

Enabling swapspace encryption with geli

Only 2 files are required to be edited, /etc/fstab and /boot/loader.conf. Change your swap partition in /etc/fstab with suffix “.eli” (i.e. ad1s1b.eli)

(Read more...)

Custom OpenBSD 4.2 bootable CD

Posted on November 6th, 2007 by "daemon" from "bsd.m3th.org » OpenBSD"


With the release of OpenBSD 4.2, you will find that cdrom42.fs was not provided in OpenBSD official ftp sites. However, it is relatively easy to custom build your own OpenBSD 4.2 bootable installer CD. I will show you the steps in making your own puffer fish El Torito. :-D

CREATE CD STRUCTURE
Create the OpenBSD bootable CD structure with this command,

(Read more...)