Today I added another 18GB hard disk to my NetBSD machine. The goal is to migrate /usr on it. After I have connected the disk and booted the machine I ran fdisk to create a partition on the disk. I want to use the complete disk for /usr so I only created one partition. The -u option for the fdisk command runs fdisk in interactive mode which make things very easy:
Showing posts with label NetBSD. Show all posts
Showing posts with label NetBSD. Show all posts
Sunday, March 18, 2012
Sunday, March 4, 2012
Obtaining CPU information in NetBSD
If you need to know what CPU your are currently using then run cat on /proc/cpuinfo (just like in Linux):
Available, used and free memory in NetBSD
To see how much memory is consumed in NetBSD use cat on /proc/meminfo:
Obtain PCI hardware information in NetBSD
To get information about your installed PCI hardware on a freshly installed NetBSD machine run dmesg and grep for "at pci":
Setting up a simple firewall with pf and NetBSD
Today I deceided to setup a simple firewall for my NetBSD machine. The following output shows my network interfaces:
# ifconfig -a
tlp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
...
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
...
# ifconfig -a
tlp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
...
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
...
Saturday, February 18, 2012
Configuring NTP in NetBSD
To configure the NTP client in NetBSD edit ntp.conf file end jump to the end of the file. Then uncomment all servers and add your own NTP server like this:
Sunday, October 23, 2011
Configuring network and SSH in NetBSD
I have set up my old workstation (AMD Duron with 1.2GHz and 512MB of Ram) with the current NetBSD release 5.1 to play a little around with it. I installed it in a VM (without any networking hardware) directly on the harddisk and after installation I placed the harddisk into the computer. When the OS is booted, I took a look at the networking hardware:
Subscribe to:
Posts (Atom)