<br><br>On Sunday, May 17, 2020,  <<a href="mailto:users-request@dragonflybsd.org">users-request@dragonflybsd.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Users mailing list submissions to<br>
        <a href="mailto:users@dragonflybsd.org">users@dragonflybsd.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.dragonflybsd.org/mailman/listinfo/users" target="_blank">http://lists.dragonflybsd.org/<wbr>mailman/listinfo/users</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:users-request@dragonflybsd.org">users-request@dragonflybsd.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:users-owner@dragonflybsd.org">users-owner@dragonflybsd.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. openGL and X11 (Jonathan Engwall)<br>
   2. Re: openGL and X11 (Andrew MacIntyre)<br>
   3. DragonFly BSD Multiboot Installation Tutorial<br>
      (Martin Aleksandrov Ivanov)<br>
   4. Re: Upgrade from 5.5 failed (Pierre Abbat)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Sat, 16 May 2020 17:47:18 -0700<br>
From: Jonathan Engwall <<a href="mailto:engwalljonathanthereal@gmail.com">engwalljonathanthereal@gmail.<wbr>com</a>><br>
To: DragonFlyBSD Users <<a href="mailto:users@dragonflybsd.org">users@dragonflybsd.org</a>><br>
Subject: openGL and X11<br>
Message-ID:<br>
        <CAP=<a href="mailto:T6ZPmJbRa8DzRLtL+c0+Z72n3xTe8TOQar4h7e96A_msDvA@mail.gmail.com">T6ZPmJbRa8DzRLtL+c0+<wbr>Z72n3xTe8TOQar4h7e96A_msDvA@<wbr>mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
At a dead-end with openGL, though I made progress with finicky X11 headers.<br>
It seems a few of the headers, in their includes (top of the file.h) lack<br>
the<br>
<X11/some-X-header.h>; reading only: <some-X-header.h><br>
<br>
openGL has me stuck, as root cannot install meson, PYTHONPATH does<br>
not do anything when pointed to ~/.local/lib/python3.7/site-<wbr>packages, the<br>
Bourne Shell has no autoreconf-with dragonfly at least.<br>
<br>
Don't setenv PATH ~/.local/lib/python3.7/site-<wbr>packages! That was the<br>
computer's idea.<br>
That does not work. I had to reboot.<br>
<br>
How can I get PATH to look for things installed with pip?<br>
Jonathan Engwall<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.dragonflybsd.org/pipermail/users/attachments/20200516/3fcfb21f/attachment-0001.htm" target="_blank">http://lists.dragonflybsd.<wbr>org/pipermail/users/<wbr>attachments/20200516/3fcfb21f/<wbr>attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sun, 17 May 2020 11:37:29 +1000<br>
From: Andrew MacIntyre <<a href="mailto:andymac@pcug.org.au">andymac@pcug.org.au</a>><br>
To: <a href="mailto:users@dragonflybsd.org">users@dragonflybsd.org</a><br>
Subject: Re: openGL and X11<br>
Message-ID: <<a href="mailto:28429567-ca46-2cae-b0f8-cc512e58edf7@pcug.org.au">28429567-ca46-2cae-b0f8-<wbr>cc512e58edf7@pcug.org.au</a>><br>
Content-Type: text/plain; charset=utf-8; format=flowed<br>
<br>
On 17/05/2020 10:47 am, Jonathan Engwall wrote:<br>
> How can I get PATH to look for things installed with pip?<br>
<br>
If I recall correctly, pip should install scripts to <br>
/path/to/pythonX.Y/scripts unless venv/virtualenv are involved (I've <br>
never used venv/virtualenv so don't know what it does in those cases) or <br>
pip is used without root privileges.<br>
<br>
Andy.<br>
<br>
<br>
-- <br>
------------------------------<wbr>------------------------------<wbr>-------------<br>
Andrew I MacIntyre                     "These thoughts are mine alone..."<br>
E-mail: <a href="mailto:andymac@pcug.org.au">andymac@pcug.org.au</a>            (pref) | Snail: PO Box 370<br>
         <a href="mailto:andymac@bullseye.apana.org.au">andymac@bullseye.apana.org.au</a>   (alt) |        Belconnen ACT 2616<br>
Web:    <a href="http://www.andymac.org/" target="_blank">http://www.andymac.org/</a>               |        Australia<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Sun, 17 May 2020 11:01:00 +0200<br>
From: Martin Aleksandrov Ivanov <<a href="mailto:martin.ivanov@greenpocket.de">martin.ivanov@greenpocket.de</a>><br>
To: users <<a href="mailto:users@dragonflybsd.org">users@dragonflybsd.org</a>><br>
Subject: DragonFly BSD Multiboot Installation Tutorial<br>
Message-ID: <<a href="mailto:f7e14e93-3389-d2e0-edd1-b81572705057@greenpocket.de">f7e14e93-3389-d2e0-edd1-<wbr>b81572705057@greenpocket.de</a>><br>
Content-Type: text/plain; charset="utf-8"; format=flowed<br>
<br>
Hello,<br>
<br>
I finally finished my fully tested tutorial for installing DragonFly to <br>
a disk partition in a multiboot configuration with rEFInd. In the <br>
following days I will add parts of it to relevant places in the <br>
DragonFly documentation, as was already suggested to me. The tutorial is <br>
at the end of this post. I am not a computer scientist by education, so <br>
I cannot pretend to have the most precise terminology. This is rather a <br>
practically oriented manual to be used by anybody who loves BSD and <br>
wants to play with DragonFly. That being said, I would be happy to get <br>
your critical commentaries.<br>
<br>
Have fun!<br>
<br>
Best regards,<br>
<br>
Martin Ivanov<br>
<br>
<br>
DragonFly BSD Multiboot Installation Tutorial<br>
<br>
This tutorial contains step-by-step instructions for a manual <br>
installation of DragonFly to a hard<br>
drive slice. The content has been tested on a UEFI Laptop with an SSD <br>
hard drive. I cannot enough<br>
recommend reading <br>
<a href="https://www.dragonflybsd.org/docs/handbook/UNIXBasics/#index11h2" target="_blank">https://www.dragonflybsd.org/<wbr>docs/handbook/UNIXBasics/#<wbr>index11h2</a> before <br>
starting<br>
this tutorial, especially the sections on Disk Organisation, Choosing <br>
File System Layout, and Disk<br>
Slices, Partitions and local UNIX file systems.<br>
<br>
Currently, the DragonFly BSD Installer only supports a full-disk <br>
installation. Obviously, this<br>
set-up is not appropriate for multibooting with other operating systems <br>
(OSs), because each OS<br>
resides on it own hard drive slice. Therefore, for multiboot we have to <br>
install DragonFly to a hard<br>
drive slice. For this, we have to do a manual installation.<br>
<br>
<br>
Information on how to create the DragonFly install medium is available on<br>
<a href="https://www.dragonflybsd.org/docs/handbook/Installation" target="_blank">https://www.dragonflybsd.org/<wbr>docs/handbook/Installation</a>. After booting <br>
DragonFly with the install<br>
medium, login as root. To see how your hard drive is recognised, issue:<br>
<br>
# if you have a Hard Disk Drive (HDD)<br>
camcontrol devlist<br>
<br>
or<br>
<br>
# if you have a Solid State Drive (SSD)<br>
nvmectl info<br>
<br>
An HDD will be recognised as da0 and an SSD as nvme0. For simplicity, <br>
hereafter we assume that we<br>
have an SSD that is recognised as nvme0. If you have an HDD, you can <br>
simply substitute nvme0 with<br>
da0 in the following instructions.<br>
<br>
To be safe, clean up the starting sectors of the disk drive from <br>
remnants of any previous partitioning:<br>
<br>
dd if=/dev/zero of=/dev/nvme0 count=1024 bs=1m<br>
<br>
If you omit this step, you may encounter problems creating file systems <br>
on your drive partitions.<br>
I made this mistake and when I attempted to format the EFI System <br>
Partition (ESP) at a later stage<br>
with newfs_msdos, I got some obscure error messages about "read-only <br>
file system".? You definitely<br>
do not want this.<br>
<br>
Partition the hard drive<br>
<br>
Here we assume GUID Partition Table (GPT) partitioning (see the gpt <br>
manual page: man gpt). For MBR<br>
partitioning with fdisk, you can take a look at one of my earlier posts:<br>
<a href="https://www.mail-archive.com/users@dragonflybsd.org/msg04896.html" target="_blank">https://www.mail-archive.com/<wbr>users@dragonflybsd.org/<wbr>msg04896.html</a>.<br>
<br>
# destroy any existing GPT partition table<br>
gpt destroy nvme0<br>
<br>
# create a new partition table<br>
gpt create -f nvme0<br>
<br>
In between, to view the current partition table, you can issue:<br>
<br>
# view current partition table<br>
gpt -v show -l nvme0<br>
<br>
Before we start adding the slices, we note that slice sizes are <br>
specified in number of disk drive<br>
sectors. Normally, a sector has 512 bytes. To check that, you can run:<br>
<br>
dmesg | grep blksize<br>
<br>
to find out the sector size. The output on my machine looks like this:<br>
nvme0: Disk nvme0 ns=1 blksize=512 lbacnt=1000215216 cap=476GB <br>
serno=S33UNB0J606162-1<br>
which confirms that the sector size is 512 bytes. So, if we need a slice <br>
of size S bytes, we have to<br>
specify S/512 number of sectors for it.<br>
<br>
We proceed to create the ESP that will be half a GiB, that is 512 MiB. <br>
The ESP will be our first<br>
slice and hence obtain a slice number of 0. The corresponding number of <br>
sectors is<br>
(512 * 1024 ** 2) / 512 = 1048576.<br>
<br>
# create an ESP of 512 MiB<br>
gpt add -i 0 -s 1048576 -t efi nvme0<br>
<br>
In the above command, -i specifies slice number 0, -s the slice size in <br>
sectors, and -t specifies the<br>
slice type that can be one of: efi, swap, ufs, hfs, linux, dfly, hammer2.<br>
<br>
# label the EFI slice: the label has to be UTF-8<br>
gpt label -i 0 -l "EFI System" nvme0<br>
<br>
# add a 200 GiB DragonFly slice<br>
gpt -v show nvme0 gpt add -i 1 -s 419430400 -t dfly nvme0<br>
<br>
# label the DragonFly slice<br>
gpt label -i 1 -l "DragonFly BSD" nvme0<br>
<br>
In UNIX, each slice can be partitioned with disklabel partitions. It is <br>
the disklabel partitions<br>
that are normally referred to as "partitions" in the UNIX world. GPT <br>
partitions are known as<br>
slices. Each disklabel partition can be formatted with a different file <br>
system.<br>
On the DragonFly slice we will create three partitions: "a" for /boot, <br>
"b" for swap and "d" for the root<br>
file system.<br>
<br>
# create a standard virgin disk label for the DragonFly slice<br>
disklabel64 -r -w nvme0s1 auto<br>
<br>
# create the disklabel partitions on the DragonFly slice<br>
disklabel64 -e nvme0s1<br>
<br>
The above command opens a text editor, where we can describe the <br>
partitions we want to add, with their<br>
sizes and file system types. We add the following three lines:<br>
a: 1G * 4.2BSD<br>
b: 16G * swap<br>
d: * * HAMMER2<br>
to specify a partition "a" of 1 GiB that will carry a UFS file system, a <br>
partition "b" of 16 GiB for<br>
swap, and a partition "d" encompassing the remaining space on the <br>
DragonFly slice for the root file<br>
system. The size of the swap space depends on the available RAM. For <br>
more information on selecting<br>
the swap size, see <a href="https://itsfoss.com/swap-size" target="_blank">https://itsfoss.com/swap-size</a>.<br>
<br>
# add a 200 GiB OpenBSD slice<br>
gpt add -i 2 -s? 419430400 -t "Unused" nvme0 # specifying -t "OpenBSD" <br>
is not supported<br>
<br>
# label the OpenBSD slice<br>
gpt label -i 2 -l "OpenBSD" nvme0<br>
<br>
# add a linux slice encompassing the remaining space on the disk drive<br>
gpt add -i 3 -t linux nvme0<br>
<br>
# label the linux slice: I install Slackware Linux, but you can specify <br>
the distro you like here ;-)<br>
gpt label -i 3 -l "Slackware Linux"<br>
<br>
Now that we have sliced the hard drive, we can proceed with installing <br>
DragonFly BSD onto its<br>
slice.<br>
<br>
Create file systems on the ESP slice and the DragonFly disklabel partitions:<br>
<br>
# format the ESP slice with FAT file system<br>
newfs_msdos nvme0s0<br>
<br>
# format the "a" partition on the DragonFly slice with UFS<br>
newfs nvme0s1a<br>
<br>
# format the "d" partition on the DragonFly slice with HAMMER2<br>
newfs_hammer2 -L ROOT /dev/nvme0s1d<br>
<br>
Note:<br>
When creating mount points and mounting disk partitions it is important <br>
to keep in mind that the<br>
directory hierarchy determines the order of the commands. More <br>
specifically, if partition B is to be<br>
mounted under a directory of partition A, then first partition A has to <br>
be mounted, then the mount<br>
point for partition B created on A, and finally partition B mounted. If <br>
you proceed first creating the<br>
mount points and then mounting the partitions without heeding the <br>
hierarchy, as I did originally,<br>
you will get into trouble :-). Be warned about that.<br>
<br>
Mount the DragonFly partitions:<br>
<br>
mount_hammer2 nvme0s1d /mnt<br>
mkdir /mnt/boot<br>
mount nvme0s1a /mnt/boot<br>
<br>
Mount the EFI System partition:<br>
<br>
mkdir /mnt/efimnt<br>
mount_msdos /dev/nvme0s0 /mnt/efimnt<br>
<br>
Create the required directory structure of the ESP:<br>
<br>
mkdir -p /mnt/efimnt/EFI/BOOT<br>
<br>
We will use rEFInd (<a href="http://www.rodsbooks.com/refind" target="_blank">http://www.rodsbooks.com/<wbr>refind</a>) as multiboot <br>
manager. Prior to starting the<br>
DragonFly installation, make sure to have downloaded the latest rEFInd <br>
version as a binary zip file<br>
from <a href="http://www.rodsbooks.com/refind/getting.html" target="_blank">http://www.rodsbooks.com/<wbr>refind/getting.html</a>, unzipped it and <br>
written it to a USB stick.<br>
<br>
Install rEFInd to the ESP:<br>
<br>
# create a mount point for the USB stick with the rEFInd executables<br>
mkdir /mnt/usb<br>
<br>
# go to the EFI/BOOT directory of the ESP<br>
cd /mnt/efimnt/EFI/BOOT<br>
<br>
Insert the USB stick with the rEFInd executables. On inserting the <br>
stick, the system reports the new<br>
device. You can double-check how it is recognised by issuing:<br>
<br>
camcontrol devlist<br>
<br>
We assume the USB stick is recognised as /dev/da9.<br>
<br>
# mount the USB stick with the rEFInd executables (assuming it is /dev/da9)<br>
mount_msdos /dev/da9s1 /mnt/usb<br>
<br>
# copy the rEFInd executable to the current directory (assuming you have <br>
rEFInd version 0.12.0)<br>
cp -r /mnt/usb/refind-bin-0.12.0/<wbr>refind/* .<br>
<br>
# unmount the USB stick with the rEFInd executables and delete its mount <br>
point<br>
umount /mnt/usb<br>
rmdir /mnt/usb<br>
<br>
Remove the unnecessary drivers, efi executables and tools. E.g, for an <br>
amd64 machine you have to<br>
remove the *aa64* and *ia32* files and directories:<br>
<br>
# remove unnecessary stuff assuming an amd64 machine<br>
rm -rf *aa64* *ia32*<br>
<br>
# rename the rEFInd executable<br>
mv refind_x64.efi bootx64.efi<br>
<br>
# copy the DragonFly BSD boot1.efi under a different name<br>
cp /boot/boot1.efi bootx64-dragonflybsd.efi<br>
<br>
# configure rEFInd<br>
mv refind.conf-sample refind.conf<br>
<br>
# edit refind.conf<br>
vi refind.conf<br>
# add this section:<br>
menuentry "DragonFly BSD" {<br>
 ??? loader /EFI/BOOT/bootx64-<wbr>dragonflybsd.efi<br>
 ??? icon /EFI/BOOT/icons/os_freebsd.png<br>
}<br>
<br>
You may ask why we provided the freebsd icon above? Well, at the time of <br>
writing this tutorial there<br>
is no os_dragonflybsd.png icon. If you wish, you can create your own one <br>
and copy it to the ./icons<br>
directory; it has to be a 128 x 128 png. Of course, as you install other <br>
OSs at a later stage, you<br>
have to provide relevant entries for them in the refind.conf file and <br>
copy the necessary booting<br>
executables to the ESP. Information on this is usually provided by the <br>
OS or available as part<br>
of the rEFInd documentation. Caveat: when installing the other OSs, make <br>
sure they do not overwrite<br>
the ESP we just created. It would be best to not install rEFInd using <br>
the OS installer, but do this<br>
manually: the process involves copying a few relevant files to the ESP <br>
and making a respective entry in<br>
refind.conf.<br>
<br>
# leave the ESP<br>
cd<br>
<br>
HAMMER2 is a file system that allows creating pseudo file systems (PFSs) <br>
within it, which<br>
dynamically share a common storage space. Oversimplified, you can think <br>
of HAMMER2 as of a logical<br>
volume manager (LVM) with logical volumes (PFSs) that are not of fixed <br>
size. Each PFS obtains as<br>
much drive space as it needs. In the following, we create a disk layout <br>
that is relatively<br>
complicated, as it creates separate PFSs for directories that are <br>
separately mounted in many UNIX<br>
installations. Of course, you are free to devise another layout that <br>
best suits your needs. Here, we<br>
show an example layout and the steps to set it up in DragonFly.<br>
<br>
Create the HAMMER2 PFSs. The path to the mounted HAMMER2 ROOT filesystem <br>
is specified via the -s<br>
parameter:<br>
<br>
hammer2 -s /mnt pfs-create usr<br>
hammer2 -s /mnt pfs-create usr.dports<br>
hammer2 -s /mnt pfs-create usr.local<br>
hammer2 -s /mnt pfs-create usr.src<br>
hammer2 -s /mnt pfs-create var<br>
hammer2 -s /mnt pfs-create home<br>
hammer2 -s /mnt pfs-create build<br>
<br>
To view the created PFSs, you can in between issue:<br>
<br>
hammer2 pfs-list /mnt<br>
<br>
Create the mount points and mount the PFSs, taking care of the directory <br>
hierarchy (see the note<br>
above on creating mount points and mounting partitions):<br>
<br>
mkdir /mnt/usr<br>
mount_hammer2 @usr /mnt/usr # note how a PFS is specified by a "@" in front<br>
<br>
mkdir /mnt/usr/dports<br>
mkdir /mnt/usr/local<br>
mkdir /mnt/usr/src<br>
mkdir /mnt/var<br>
mkdir /mnt/build<br>
<br>
mount_hammer2 @usr.dports /mnt/usr/dports<br>
mount_hammer2 @usr.local /mnt/usr/local<br>
mount_hammer2 @usr.src /mnt/usr/src<br>
mount_hammer2 @var /mnt/var<br>
mount_hammer2 @build /mnt/build<br>
<br>
Note that among these directories there are such with non-existent <br>
(/usr/dports and /usr/src) or<br>
empty (/build and /home) counterparts on the install medium. You may ask <br>
why we mount /usr/dports<br>
and /usr/src although they will remain empty; the answer is, as cpdup <br>
does not cross mount<br>
boundaries, this prevents cpdup from asking whether to delete them <br>
(because they do not exist on the<br>
installation media) when copying /usr from the install medium at a later <br>
stage. There is no need to<br>
mount /home, as it is an independent file system that will remain empty. <br>
/build is something like<br>
scratch space in DragonFly BSD. On it, we create directories for file <br>
systems that do not normally<br>
need backup. At a later stage, we will null-mount these directories to <br>
their respective mount points<br>
in the hierarchy.<br>
<br>
# create directories for file systems that do not normally need backup<br>
mkdir /mnt/build/usr.distfiles<br>
mkdir /mnt/build/usr.obj<br>
mkdir /mnt/build/var.cache<br>
mkdir /mnt/build/var.crash<br>
mkdir /mnt/build/var.log<br>
mkdir /mnt/build/var.run<br>
mkdir /mnt/build/var.spool<br>
<br>
# create the mount points for the /build null mounts that do not exist <br>
on the install medium<br>
mkdir /mnt/usr/distfiles<br>
<br>
# create mount points for the non-empty /build null mounts:<br>
mkdir /mnt/var/crash<br>
mkdir /mnt/var/log<br>
mkdir /mnt/var/run<br>
mkdir /mnt/var/spool<br>
<br>
There is no need to create mount points for the empty /build null mounts <br>
that exist on the install<br>
medium (/usr/obj and /var/cache), as they will be copied by cpdup <br>
together with /usr and /var at a<br>
later stage.<br>
<br>
# mount the non-empty /build null mounts:<br>
mount_null /mnt/build/var.crash /mnt/var/crash<br>
mount_null /mnt/build/var.log /mnt/var/log<br>
mount_null /mnt/build/var.run /mnt/var/run<br>
mount_null /mnt/build/var.spool /mnt/var/spool<br>
<br>
Mount /usr/distfiles as it does not exist under /usr on the installation <br>
media (to prevent cpdup<br>
from asking whether to delete it when copying /usr at a later stage):<br>
<br>
mount_null /build/usr.distfiles /mnt/usr/distfiles<br>
<br>
Install DragonFly by copying the non-empty file systems. Luckily, cpdup <br>
won't cross mount boundaries<br>
on the source or destination, so it takes a few commands:<br>
<br>
cpdup / /mnt<br>
cpdup /boot /mnt/boot<br>
cpdup /usr /mnt/usr<br>
cpdup /usr/local /mnt/usr/local<br>
cpdup /var /mnt/var<br>
<br>
# copy the non-empty /build null mounts<br>
cpdup /var/crash /mnt/var/crash<br>
cpdup /var/log /mnt/var/log<br>
cpdup /var/run /mnt/var/run<br>
cpdup /var/spool /mnt/var/spool<br>
<br>
DragonFly BSD uses a different /etc from the one present on the install <br>
medium. The /etc on the<br>
install medium is only used during installation. It is the /etc.hdd <br>
directory that is intended<br>
for permanent use. We can delete /etc, but we prefer to store it under <br>
the name /etc.live instead:<br>
<br>
mv /mnt/etc /mnt/etc.live<br>
mv /mnt/etc.hdd /mnt/etc<br>
<br>
There is no example fstab in /etc.hdd. The one from /etc.live has to be <br>
copied:<br>
<br>
cp /mnt/etc.live/fstab.example /mnt/etc/fstab<br>
<br>
Describe ALL mounts in fstab:<br>
<br>
vi /mnt/etc/fstab<br>
# the fstab for the above disk layout must have the following content:<br>
<br>
/dev/nvme0s1a /boot ufs rw 1 1<br>
/dev/nvme0s1b none swap sw 0 0<br>
/dev/nvme0s1d / hammer2 rw 1 1<br>
@usr /usr hammer2 rw 0 0<br>
@usr.dports /usr/dports hammer2 rw 0 0<br>
@usr.local /usr/local hammer2 rw 0 0<br>
@usr.src /usr/src hammer2 rw 0 0<br>
@var /var hammer2 rw 0 0<br>
@home /home hammer2 rw,nosuid 0 0 @build<br>
/build hammer2 rw 0 0<br>
/build/usr.distfiles /usr/distfiles null rw 0 0<br>
/build/usr.obj /usr/obj null rw 0 0<br>
/build/var.cache /var/cache null rw 0 0<br>
/build/var.crash /var/crash null rw 0 0<br>
/build/var.log /var/log null rw 0 0<br>
/build/var.run /var/run null rw 0 0<br>
/build/var.spool /var/spool null rw 0 0<br>
tmpfs /tmp tmpfs rw,nosuid,noexec,nodev 0 0<br>
tmpfs /var/tmp tmpfs rw,nosuid,noexec,nodev 0 0<br>
proc /proc procfs rw 0 0<br>
<br>
# specify the correct root file system<br>
vi /mnt/boot/loader.conf<br>
vfs.root.mountfrom="hammer2:<wbr>nvme0s1d"<br>
<br>
Unmount mounted filesystems:<br>
<br>
umount /mnt/efimnt<br>
umount /mnt/boot<br>
umount /mnt/usr/distfiles<br>
umount /mnt/usr/dports<br>
umount /mnt/usr/local<br>
umount /mnt/usr/src<br>
umount /mnt/var/crash<br>
umount /mnt/var/log<br>
umount /mnt/var/run<br>
umount /mnt/var/spool<br>
umount /mnt/usr<br>
umount /mnt/var<br>
umount /mnt/build<br>
umount /mnt<br>
<br>
# halt to give you time to remove the install medium<br>
halt<br>
<br>
Wait for the system to halt, remove the installation media after that, <br>
and finally press any key to<br>
reboot.<br>
<br>
<br>
Basic Configuration of DragonFly BSD<br>
<br>
Here, I post the first settings I make on my machine after a fresh <br>
DragonFly BSD installation. You<br>
can use them as an example.<br>
<br>
# set a root password<br>
passwd<br>
<br>
# set time zone<br>
tzsetup<br>
<br>
# add a user<br>
adduser -s -config_create<br>
<br>
The above command starts an interrogation. For my user, I select:<br>
<br>
login group: wheel<br>
<br>
in order to be able to su to root. I also:<br>
<br>
invite my user into other groups: guest staff<br>
<br>
If your video card is fully supported you may also invite your user to <br>
the group video. Otherwise,<br>
having the video group may cause instability to the xorg server.<br>
<br>
Shell: tcsh<br>
<br>
vi /etc/rc.conf<br>
# add the following lines:<br>
wlans_iwm0="wlan0" # this line configures my wireless interface, for you <br>
it may be a bit different<br>
ifconfig_wlan0="WPA DHCP" # this line configures my internet connection, <br>
for you it may be different<br>
dbus_enable="YES"<br>
hald_enable="YES"<br>
dntpd_enable="YES" # time daemon to automatcally get correct time from <br>
internet<br>
moused_enable="YES"<br>
hostname="dragonfly" # make sure hostname only contains lowercase letters<br>
dumpdev="/dev/nvme0s1b"<br>
<br>
vi /boot/loader.conf<br>
# add the following lines:<br>
snd_hda_load="YES" # this enables sound<br>
# the following two lines load the correct kernel module for my wifi <br>
card; for your machine<br>
# they may be different:<br>
iwm8265fw_load="YES"<br>
if_iwm_load="YES"<br>
<br>
# configure wireless connection<br>
vi /etc/wpa_supplicant.conf<br>
# add the following section:<br>
network={<br>
 ??? ssid="the-ssid-of-your-router"<br>
 ??? psk="the-key-for-your-router"<br>
}<br>
<br>
# install some packages for development desktop use<br>
pkg install git tig gcc xorg xdm cwm lumina xfce kde5 libreoffice vim <br>
hexchat texlive-full chromium \<br>
thunderbird wget gkrellm2 knotes telegram-desktop<br>
<br>
vi /etc/sysctl.conf:<br>
kern.ipc.shm_allow_removed=1 # necessary for google-chrome<br>
hw.snd.default_unit=3 # I need this to redirect sound to my external <br>
sound system<br>
<br>
# configure X server:<br>
Xorg -configure<br>
cp xorg.conf.new /etc/X11/xorg.conf<br>
# if your graphics card is not fully supported, add to the Section "Device":<br>
vi /etc/X11/xorg.conf<br>
Option "Accel" "False"<br>
<br>
To limit the mouse cursor within the visible screen, assuming a <br>
resolution of 1920x1080:<br>
vi .xinitrc<br>
# at the start of the file add:<br>
xrandr --output "Screen 0" --mode 1920x1080 --fb 1920x1080<br>
# to start XFCE add:<br>
exec ck-launch-session startxfce4<br>
# to start kde5 add:<br>
exec ck-launch-session startplasma-x11<br>
<br>
Some packages have very useful post-install messages. To view them:<br>
pkg info -aD | gvim -<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Sun, 17 May 2020 11:49:33 -0400<br>
From: Pierre Abbat <<a href="mailto:phma@leaf.dragonflybsd.org">phma@leaf.dragonflybsd.org</a>><br>
To: <a href="mailto:users@dragonflybsd.org">users@dragonflybsd.org</a><br>
Subject: Re: Upgrade from 5.5 failed<br>
Message-ID: <3710046.clhLjdfeD6@puma><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
On Saturday, May 16, 2020 9:51:38 AM EDT Jonathan Engwall wrote:<br>
> Do you have a dragonfly5.9 install disk?<br>
<br>
No.</blockquote><div>5.8 obviously. As to your problem according to you, your problem is bin files since kernel 4.00. So get rid of the old files, (that is what you say you want to do), reload your kernel modules, start your python env so you can run qt5, and figure out what to do with your software.</div><div>I am trying to be helpful. Cmake gives you your error. I read it, file not found. Which file? I don't you because you haven't shared that information. </div><div>Last night I learned a new command. You can test it:</div><div>stat /usr/include/X11/Xlib.h</div><div>It should return a nice looking table, though mine machine did not. If it does you will know you have the xorg build environment correctly installed.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Please explain, in your own words:<br>
*why having two kernels in /boot is wrong;<br>
*what my problem is.<br>
<br></blockquote><div>Without current installation media you need two kernels. Or you can download and then compile one from it. Then having three, delete the oldest. What can it possibly do but lock files? Nothing good at all, that is what.</div><div><br></div><div>Jonathan Engwall</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Pierre<br>
<br>
-- <br>
The Black Garden on the Mountain is not on the Black Mountain.<br>
<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@dragonflybsd.org">Users@dragonflybsd.org</a><br>
<a href="http://lists.dragonflybsd.org/mailman/listinfo/users" target="_blank">http://lists.dragonflybsd.org/<wbr>mailman/listinfo/users</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Users Digest, Vol 93, Issue 6<br>
******************************<wbr>******<br>
</blockquote>