After a short break, I've reread the first three chapters of
Absolute FreeBSD and the first two chapters of the Handbook. Now, I'll just dive right into some questions I have before I attempt to install KDE. After looking at my questions, please look at my instructions that follow, looking for any errors.
--------------------
Questions:
Q1.
According to this reply from
jardows, I need to have my “main user part of the operator, wheel, and video groups.” Do you know why this is? I think in my first install my main user was just part of the wheel group, as suggested in the book
Absolute FreeBSD. If I need to have the main user part of the other two groups, what is the syntax for entering multiple groups? When setting up a user during the install, do I just type
operator wheel video
(note that there aren’t commas)?
Q2. In the same reply (see above link), I’m told to run as root
startx
before running sddm or adding a line to start Xfce in the file
~/.xinitrc. Once one sees X has started, one is supposed to immediately exit. This step supposedly automatically configures Xfce; if it’s not followed, the power buttons supposedly won’t work without additional configuration.
In a follow-up post, the same user clarifies that he runs into problems with reboot and shutdown options not working if he doesn’t
startx
before running the Xfce environment. While I’m not planning on using sddm anymore (I’ll just start Xorg with
startx
)--and I am planning on using KDE not Xfce--should I still follow this step?
Q3. In two replies (
here and
here),
mer says to mount
/dev/fd and
/proc by adding the following two lines to
/etc/fstab:
fdesc /dev/fd fdescfs rw 0 0
proc /proc procfs rw 0 0
In the Handbook, I see
/proc should be mounted, but I don’t see anything about
/dev/fd. Does anyone know what this second file is and if I should mount it as well? According to
GVitaliy,
judging by the name,
fdesc
concerns floppy disks. If this is the case, I take it most people don’t need the first line. Please confirm.
Q4. Related to the last question, I’m just not sure how I should type out the above two lines. According to
mer in
another post, typically
Tab characters are used, but a single space between each field will also work. So can I just press
Tab after entering each field?
Q5.
Sevendogsbsd mentioned I should get Xorg running first without a login manager or desktop environment. This sentiment was
echoed by
kpedersen. While I am no longer using a login manager, I am using a desktop environment. How would following this advice change my instructions below, if at all?
Q6. Because of questions raised by
GVitaliy in addition to security concerns raised by
Sevendogsbsd here, I think I am going to go without sddm and instead use
startx
. Will this really simplify the installation process and add security?
Q7.
Trihexagonal says to create the file
~/.xinitrc from your usr account so you’re not running
x11-wm/fluxbox as root. Does this apply to my instructions below? If so, what should I change?
--------------------
Instructions for Installing KDE on FreeBSD (Rough Draft #2)
In this second rough draft of instructions, I will show you how to install KDE that will be started with the command startx
. My first rough draft of instructions shows you how to install KDE that is started by sddm.
I1. Enter the superuser/root account by entering
% su
and the password for the root account. Note that the command prompt on the shell (
%,
$,
#, etc.) is dependent on what user is currently logged in. Therefore, the
% should not actually be typed out. Once in the root account, the command prompt will be
#.
I2. Run
# pkg install xorg
I3. Run
# pkg install kde5 drm-kmod firefox
I4. Enter the easy editor to edit the file
/etc/fstab by entering the following command:
# ee /etc/fstab
I5. Once in the easy editor, on new lines, enter the following two lines (you can push the
Tab key or spacebar after entering each field):
fdesc /dev/fd fdescfs rw 0 0
proc /proc procfs rw 0 0
(See
post #33. There is debate on whether this instruction should be included; I am including it because it may be beneficial for those who want to run applications such as LibreOffice.)
I6. Make sure to hit
Enter so the file starts on a new line after saving.
I7. Save and exit the easy editor by pushing
Esc and following the prompts to save and exit.
I8. Run
# mount /dev/fd
I9. Run
# mount /proc
I10. Enter the easy editor to edit the file
/etc/rc.conf by entering the following command:
# ee /etc/rc.conf
I11. Once in the easy editor, on a new line, enter the following line:
Code:
kld_list="/boot/modules/i915kms.ko"
I12. Make sure to hit
Enter so the file starts on a new line after saving.
I13. Save and exit the easy editor by pushing
Esc and following the prompts to save and exit. The KMS driver should now be set up.
I14. Go ahead and load the drm driver. Run
# kldload /boot/modules/i915kms.ko
I15. Enter the easy editor to edit the file
/etc/rc.conf by entering the following command:
# ee /etc/rc.conf
I16. Once in the easy editor, on a new line, enter the following line:
I17. Make sure to hit
Enter so the file starts on a new line after saving.
I18. Save and exit the easy editor by pushing
Esc and following the prompts to save and exit.
I19. Run
# service dbus start
I20. Enter the easy editor to edit the file
~/.xinitrc by entering the following command:
# ee ~/.xinitrc
I21. Once in the easy editor, on a new line, enter the following line:
Code:
exec ck-launch-session startplasma-x11
I22. Make sure to hit
Enter so the file starts on a new line after saving.
I23. Save and exit the easy editor by pushing
Esc and following the prompts to save and exit.
I24. Reboot by running
# shutdown -r now
I25. If you chose not to reboot, enter
# exit
to leave the superuser account.
I26. If everything worked, you should see the KDE desktop after running
% startx
as a regular account.
--------------------
Thanks again to everyone who contributed to this thread. Your help has allowed me to write this rough draft of instructions and (I hope) get a proper FreeBSD desktop. One thing I can say honestly is that reading through all these messages (multiple times) has helped me understand what each of these instructions do. It no longer seems like a bunch of gobbledygook. I will attempt to install FreeBSD and KDE soon once I get all of these kinks (the questions) figured out.