Berkeley CSUA MOTD:Entry 19968
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

2000/12/1 [Computer/SW/OS/FreeBSD] UID:19968 Activity:insanely high 64%like:19965
11/30   I'm a little frustrated at how bloated FreeBSD is. Its almost like
        a RedHat Linux distribution. Is there a way to just install the kernel
        and a small portion of userland?
        \_ without ports or X what exactly do you obect to? tcsh?
           be serious. --aaron
           \_ I don't need x, gtk, gimp, window managers, tcsh, zsh, and
              and all of /usr/local. I'm looking for /bin, /sbin, /usr/bin,
               and /usr/sbin with a few addons like nmh, screen, perl, cc
               and javac.
                \_ /usr/local is where ports install and none are installed
                   by default. true, tcsh is part of the base now, but
                   excepting that, i installed a system without any of the
                   things you mention, just by NOT checking boxes. have you
                   ever personally installed bsd? --aaron
                   \_ yeah, most of my boxes run either OpenBSD or Linux (for
                      work related stuff) and I have one box running FreeBSD.
                      I selected the default install, which as several people
                      have indicated was wrong. I'm going to install FreeBSD
                      4.2 this weekend without selecting anything and see how
                      that goes. Thanks.
        \_ http://people.freebsd.org/~picobsd/picobsd.html - paolo
           \_ I need a little more than what fits on a floppy.
              But it sounds like a good starting point. I'll check
              it out.
        \_ FreeBSD is basically a linux distribution now, only with a lot less
           vendor support and snooty unhelpful users.
           \_ Its is supposedly high performance though. I'm contemplating
              switching over to OpenBSD or NetBSD. Do either of them have
              softupdates or memory fs in working order?
              \_ OpenBSD's vm is kinda screwy, but yes it has softupdates.
                 http://www.openbsd.org/faq/faq14.html#14.5 - paolo
                 \_ vm is screwy? You mean the new encrypt swapped pages
                    stuff or something else? Is NetBSD's better? Also how
                    is NFS v3 support? Shitty like linux or decent like
                    FreeBSD?
        \_ Sure!  Pick Custom Install and just choose the exact Distributions
           you want.  For your convenience, there are a bunch of bundles
           (and of course Custom, which lets you pick everything)  Try the
           Minimal bundle.  --dbushong
           \_ Thanks. I try it this weekend as I'm planning to upgrade to
              FreeBSD 4.2.
              \_ FYI, Debian Linux has an extremely minimal install. - entire
                 system on 3 floppies, w/ a good pkg mgr so you can select
                 and de-select accordingly.
                 \_ I know your heart is in the right place, but I wouldn't
                    run linux unless I had no other choice. I've used it for
                    several years (starting in the mid 90's) and I write code
                    for linux and solaris. Its just not right for me. Perhaps
                    its right for people who pay me money for my code, but not
                    for me.
2025/05/24 [General] UID:1000 Activity:popular
5/24    

You may also be interested in these entries...
2009/5/4-6 [Computer/SW/OS/Linux, Computer/SW/OS/FreeBSD] UID:52939 Activity:moderate
5/4     I would appreciate a reliability ranking between:
        1) OpenBSD
        2) OpenSolaris
        3) FreeBSD
        4) Debian-Stable
        5) Suse Linux Enterprise Server
	...
2009/4/17-23 [Computer/SW/OS/FreeBSD] UID:52867 Activity:low
4/17    If you have a general access AssOS machines, this is worth
        taking this seriously. --psb
  http://c-skills.blogspot.com/2009/04/udev-trickery-cve-2009-1185-and-cve.html
        <DEAD>admin.fedoraproject.org/updates/udev-127-5.fc10<DEAD>
        \_ What does this have to do with MS Windows?
           \_ psb is a bsd lover.
	...
2008/12/10-16 [Computer/HW/CPU, Computer/HW/Drives] UID:52220 Activity:moderate
12/9    Another idea for the CSUA that lets you spend money and maybe get some
    cool toys. Instead of buying a beefy server (like say, a massive server
    with 20 386DX processors), buy a few cheap machines (like the ones
    mentioned below) that have good disks and work on failover / load
    balancing. A netscaler or other piece of hardware is complete overkill,
    but maybe hacking an OpenBSD box could do the trick. The idea is that
	...
2007/7/17 [Computer/SW/Languages/C_Cplusplus] UID:47312 Activity:nil
7/13    CSUA Life Roster
1 point each for:                                               key:
                significant other (out of county rule applies)   G
                car (Chevy Novas do count)                       C
                housing (dorms DO NOT count)                     H
                own computer running reasonable multi-tasking OS U
	...
2007/7/13-16 [Computer/Networking] UID:47279 Activity:nil
7/13    I'm thinking about getting a Soekris 4501 to replace my the P2-400
        that is currently acting as my home firewall. Has anyone used a
        Soekris system for this purpose? If so, how well does it work? Also,
        if there are any alternatives (similar power/form factor), I would
        appreciate links to those as well. tia.
        \_ John got me to use a WRAP box similar to Soekris.  I use this one:
	...
2007/3/15-17 [Computer/SW/OS/FreeBSD] UID:45977 Activity:nil
3/14    http://www.csua.org/u/i8o
        Remote exploit in OpenBSD kernel.  Security is hard.  And yes, it
        would be really difficult to exploit this in practice. -dans
	...
2007/3/13-14 [Computer/SW/OS/FreeBSD] UID:45949 Activity:nil
3/13    OpenBSD 4.1 preorder is up:
        http://www.openbsd.org/items.html#41
	...
2007/3/13-14 [Computer/SW/Security] UID:45950 Activity:nil
3/13    OpenSSH 4.6 is out:
        http://undeadly.org/cgi?action=article&sid=20070308183425
        Portable Version:
        ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-4.6p1.tar.gz
        OpenBSD Version:
        ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-4.6.tar.gz
	...
2006/11/8-9 [Computer/SW/Security] UID:45263 Activity:nil
11/8    OpenSSH 4.5 is out:
        http://www.openssh.org/txt/release-4.5
        ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-4.5.tar.gz
        ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-4.5p1.tar.gz
	...
2006/9/27-28 [Computer/SW/OS/FreeBSD, Computer/SW/Security] UID:44580 Activity:nil
9/27    OpenSSH 4.4 is leftist
        http://www.openssh.org/txt/release-4.4
        OpenBSD src:
        http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-4.4.tar.gz
        OpenBSD src signature:
        http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-4.4.tar.gz.asc
	...
2006/9/22-25 [Computer/SW/OS/FreeBSD] UID:44496 Activity:nil
9/22    OpenBSD 4.0 available for pre-order:
        http://www.openbsd.org/40.html
	...
2006/8/16-18 [Computer/SW/OS/FreeBSD] UID:44024 Activity:nil
8/16    Greatest piece of software ever written is 4.3 BSD:
        http://tinyurl.com/go7lv (informationweek.com)
        \_ Windows is run by more computers than all other OS combined.
           \_ that only makes it common, not great.
              \_ If it wasn't great people wouldn't use it.  They'd use 4.3
                 BSD.
	...
Cache (1945 bytes)
people.freebsd.org/~picobsd/picobsd.html
English ( 10 README) 11 Polish ( 12 README) Dial-in server version 13 beta testers wecome! Copyright Notices 17 PicoBSD 18 This Webpage 19 BSD Daemon Misc 20 Related Links What is PicoBSD? There are two language editions of PicoBSD - English and Polish one. You'll be probably more interested in the former :-) The only difference is in the set of fonts included, C locale, and the language of messages. There are currently 4 different versions which you can obtain from FreeBSD or any of it's mirrors. Though they provide more features, they tend to be less stable than the latest RELEASE of FreeBSD. Previous versions were packed with PKZIP(tm) compatible program - now they are simply the raw binary floppy images, so you just need to grab the appropriate version of the file. I also create the snapshots of this source tree - keep in mind that they are not so up-to-date as the tree in FreeBSD CVS. You can get the snapshot I made on Sun Nov 1 11:48:32 PST 1998 27 here. You will need at least 10MB of free disk space for building, and of course the full system sources installed. Almost all of the programs included on the floppies are exactly the same versions as in normal FreeBSD installation, so that the normal manual pages apply. However, I didn't include the manpages themselves - they would take over 200kB! For the total newbies, which would use (I assume) the 'dialup' version, there is a short README on the floppy which gives step by step instructions on how to get a dialup connection. There is also a script called 'dialup' which attempts to configure PPP to allow for automatic log in to your provider, and for background operation. There is also a small help system ('help' command) There are some system utilities which are unique to PicoBSD, and at this moment they are documented in detail only in source and README. As for the new releases which will (hopefully) be prepared in the future: just keep an eye on this page.
Cache (8192 bytes)
www.openbsd.org/faq/faq14.html#14.5
Disklabels are created to allow an efficient interface between your disk and the disk drivers contained within the kernel. Labels hold certain information about your disk, like your drive geometry and information about your filesystems. This is then used by the bootstrap program to load the drive and to know where filesystems are contained on the drive. Labels are also used in conjunction with the filesystems to create a more efficient environment. You can read more in-depth information about disklabel by reading the 19 disklabel man page. As an additional gain, using disklabel helps overcome architecture limitations on disk partitioning. For example, on i386, you can only have 4 primary partitions. And you still have 3 more partitions available for other OSs! This comes (for i386 users) directly after using 21 fdisk. During the install you use disklabel to create your separate labels which will contain your separate mountpoints. During the install, you can set your mountpoints from within 22 disklabel, but this isn't completely necessary considering you will be prompted later to confirm you choices. But it does make your install go just a little smoother. Since this is during the install you won't have any existing labels, and they will need to be created. You can see recommended partitions that should be created and their sizes by reading 23 FAQ 4, Space Needed. For servers it is recommended that you create at least these label's separately. For desktop users creating one mountpoint at / will probably suffice. When initially creating your root partition ( 'a' label ), keep in mind that you will need SOME space left for your swap label. Now that the basics have been explained, here is an example of using disklabel during an install. In this first example it is assumed that OpenBSD will be the only operating system on this computer, and that a full install will be done. If this disk is shared with other operating systems, those operating systems should have a BIOS partition entry that spans the space they occupy completely. For safety, also make sure all OpenBSD file systems are within the offset and size specified in the 'A6' BIOS partition table. If you are unsure of how to use multiple partitions properly (ie. When it comes to the size, disklabel will show your size in sectors, however, you don't need to enter sizes in the same format. Like the example above you can enter sizes in the manner of 64 Megabytes = 64M and 2 Gigabytes = 2G. In the example above you will also notice that disklabel assumes that label 'b' will be a swap. This is a correct assumption as the GENERIC kernel is set to look for swap on label 'b', and you should just follow this guideline and use 'b' as your swap area. The next example will take you through the creation of two more labels. This means that it's not a complete install, as the size of these won't be enough to install OpenBSD to its fullest. Showing the creation of all the partitions would just be repetitive. One being that the offset is automatically figured out for you to be the next in order. When doing an install of this sort, you won't need to mess with changing the offsets at all. Another difference you might notice will be that label 'c' has been skipped. This is done for a reason, which is that label 'c' is a label that represents the whole disk. For this reason you shouldn't deal with label 'c' in any way. Once all your labels have been created all that's left to do is write the labels to disk, and move on in the installation process. To write everything and quit disklabel (and continue with the install) do: > w > q Common uses for disklabel Once your system is installed, you shouldn't need to use disklabel too often. But some times you will need to use disklabel when adding, removing or restructuring your disks. One of the first things you will need to do is view your current disklabel. This will give you a list of possible options pertaining to disklabel. You can even view the entire 24 disklabel man page with the 'M' command. From this prompt, you will do all of your adding, deleting and changing of partitions. For additional information read the 25 disklabel man page. Fdisk is a program to help with the maintenance of your partitions. This program will usually be used in Single User Mode ( boot -s ). For installation purposes, most times you'll only need ONE OpenBSD partition, and then using disklabel to put a swap and a filesystem on it. To just view your partition table using fdisk, use: # fdisk sd0 Which will give an output similar to this: Disk: sd0 geometry: 553/255/63 8883945 Sectors Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S start: size ------------------------------------------------------------------------ *0: A6 3 0 1 - 552 254 63 48195: 8835750 OpenBSD 1: 12 0 1 1 - 2 254 63 63: 48132 Compaq Diag. The * tells us that the OpenBSD partition is a bootable partition. This will bring up a command line prompt to interact with fdisk. Here is an overview of the commands you can use when you choose the -e flag. This command is particularly useful for reassigning an existing partition to OpenBSD. You may edit either in BIOS geometry mode, or in sector offsets and sizes. If you wish to boot from an extended partition, you will need to mark the partition table entry for the extended partition as bootable. In the below example we're adding a third SCSI drive to the system. Three gigabytes in disk manufacturer terms is 3000 megabytes. The offset for your first new partition should be the same as the "sectors/track" reported earlier in disklabel's output. There, you can just use "96M" to specify "96 megabytes". To get around this limitation, type 'g d' for 'geometry disk'. Finally, you need to create the filesystem on that disk using 30 newfs. You should mount the new drive in /mnt and use cpio -pdum to copy /usr/local to the /mnt directory. Swapping to a file is easiest and quickest way to get extra swap space setup. The file must not reside on a filesystem which has SoftUpdates enabled (they are disabled by default). To start out, you can see how much swap you currently have and how much you are using with the 36 swapctl utility. You can do this by using the command: $ swapctl -l Device 512-blocks Used Avail Capacity Priority swap_device 65520 8 65512 0% 0 This shows the devices currently being used for swapping and their current statistics. In the above example there is only one device named "swap_device". This is the predefined area on disk that is used for swapping. But for the purposes of this document, we will act as if an extra 32M is needed. The first step to setting up a file as a swap device is to create the file. Here is an example of creating the file /var/swap that is 32M large. Use the following command to turn on swapping to this device $ sudo chmod 600 /var/swap $ sudo swapctl -a /var/swap Now we need to check to see if it has been correctly added to the list of our swap devices. If this line is not added, your won't have this swap device configured. To swap to a file permanently, first make a kernel with vnd0c as swap. If you have wd0a as root filesystem, wd0b is the previous swap, use this line in the kernel configuration file (refer to compiling a new kernel if in doubt): config bsd root on wd0a swap on wd0b and vnd0c dumps on wd0b After this is done, the file which will be used for swapping needs to be created. You should do this by using the same command as in the above examples. Here is a sample line to boot with this device as swap on boot. Once this has been done it's time to configure the device as swap. We will do this just like in the above examples, using swapctl. Then we will check to see if it was correctly added to our list of swap devices. SoftUpdates imposes a partial ordering on the buffer cache operations which permits the requirement for synchronous writing of directory entries to be removed from the FFS code. Thus, a large performance increase is seen in disk writing performance. The potential of background fsck, using Soft Updates is not yet realised in OpenBSD, so 41 fsck is still required after an unclean shutdown. To u...