Установка DragonFlyBSD на VMWare :: Cетевой уголок Majestio

Установка DragonFlyBSD на VMWare


Установка - тестовая, чисто для знакомства.

Делаем обычную установку, потом по шагам... (пользователь системы - majestio)

  1. Добавляем пользователя в группу wheel
  2. Обновляем систему пакетов
  3. Устанавливаем Midnight Commander
  4. Устанавливаем Bash
  5. Настраиваем SSH
  6. Ставим XOrg
  7. Ставим xfce4, slim, slim-themes
  8. Правим /etc/rc.conf
  9. Ставим драйвера VMWare и конфигурируем XOrg/Xfce4
  10. Продолжение не следует...

1. Добавляем пользователя majestio в группу wheel

pw groupmod wheel -M majestio

2. Обновляем систему пакетов

pkg update
pkg upgrade

3. Устанавливаем Midnight Commander

pkg install mc

4. Устанавливаем Bash

pkg install shells/bash
pkg install shells/bash-completion

Message from bash-completion-2.11_1,2:

--
To enable the bash completion library, add the following to
your .bashrc file:

[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \
        source /usr/local/share/bash-completion/bash_completion.sh

See /usr/local/share/doc/bash-completion/README.md for more information.

Переключаем пользователя на bash и устанавливаем редактор по умолчанию mcedit вместо vi.

/home/majestio/.profile

...
EDITOR=mcedit; export EDITOR
...
[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \
        source /usr/local/share/bash-completion/bash_completion.sh

/home/majestio/.cshrc

...
setenv EDITOR mcedit
...
chsh majestio

Путь к bash'у - /usr/local/bin/bash

5. Настраиваем SSH

Вносим правки в /etc/ssh/sshd_config, а именно:

PublickeyAuthentication yes
PasswordAuthentication yes
service sshd restart

Подключаемся ssh-клиентом (допустим Kitty, т.к. Putty чет не хочет дружить, это потом).

6. Ставим XOrg

pkg install xorg

Message from freetype2-2.11.1:

--
The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as
the default, emulating a modern version of ClearType. This change inevitably
leads to different rendering results, and you might change port's options to
adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment
variable).

The environment variable "FREETYPE_PROPERTIES" can be used to control the
driver properties. Example:

FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
        cff:no-stem-darkening=1 \
        autofitter:warping=1

This allows to select, say, the subpixel hinting mode at runtime for a given
application.

If LONG_PCF_NAMES port's option was enabled, the PCF family names may include
the foundry and information whether they contain wide characters. For example,
"Sony Fixed" or "Misc Fixed Wide", instead of "Fixed". This can be disabled at
run time with using pcf:no-long-family-names property, if needed. Example:

FREETYPE_PROPERTIES=pcf:no-long-family-names=1

How to recreate fontconfig cache with using such environment variable,
if needed:
# env FREETYPE_PROPERTIES=pcf:no-long-family-names=1 fc-cache -fsv

The controllable properties are listed in the section "Controlling FreeType
Modules" in the reference's table of contents
(/usr/local/share/doc/freetype2/reference/index.html, if documentation was installed).
=====
Message from mesa-dri-classic-20.2.3_3:

--
The gallium(llvm) enabled dri version was moved to graphics/mesa-dri-gallium
overlay.  Please install gallium version as needed for radeon acceleration.
=====
Message from mesa-dri-21.3.6:

--
The gallium(llvm) enabled dri version was moved to graphics/mesa-dri-gallium
overlay.  Please install gallium version as needed for radeon acceleration.
=====
Message from dejavu-2.37_1:

--
Make sure that the freetype module is loaded.  If it is not, add the following
line to the "Modules" section of your X Windows configuration file:

        Load "freetype"

Add the following line to the "Files" section of X Windows configuration file:

        FontPath "/usr/local/share/fonts/dejavu/"

Note: your X Windows configuration file is typically /etc/X11/XF86Config
if you are using XFree86, and /etc/X11/xorg.conf if you are using X.Org.
=====
Message from xorg-server-1.20.14,1:

--
Xorg-server has been installed.

If your kernel is compiled with the EVDEV_SUPPORT option enabled
(default starting from FreeBSD 12.1) it is recommended to enable evdev mode in
pointer device drivers like ums(4) and psm(4). This will give improvements like
better tilt wheel support for mice and centralized gesture support via
xf86-input-synaptics or libinput drivers for touchpads.

This is also needed for PS/2 devices to be properly detected by Xorg when
moused service is disabled in /etc/rc.conf and kernel is compiled with
EVDEV_SUPPORT.

To enable evdev in such a device, run the following:

# sysctl kern.evdev.rcpt_mask=6

To make it persistent across reboots, add the following to /etc/sysctl.conf:

kern.evdev.rcpt_mask=6

In case you're using a serial mouse or any other mouse that *only* works over
sysmouse(4) and moused(8) on an evdev enabled kernel, please run this:

# sysctl kern.evdev.rcpt_mask=3

To make it persistent across reboots, add to this /etc/sysctl.conf:

kern.evdev.rcpt_mask=3
=====
Message from xterm-372:

--
You installed xterm with wide chars support. This introduces some limitations
comparing to the plain single chars version: this version of xterm will use
UTF-8 charset for selection buffers, breaking 8-bit copy/paste support unless
you are using UTF-8 or ISO8859-1 locale. If you want 8-bit charset selections to
work as before, use "eightBitSelectTypes" XTerm resource setting.

For further information refer to the SELECT/PASTE section of xterm(1) manual
page.

7. Ставим xfce4, slim, slim-themes

pkg install xfce slim slim-themes

=====
Message from trousers-0.3.14_3:

--
To run tcsd automatically, add the following line to /etc/rc.conf:

tcsd_enable="YES"

You might want to edit /usr/local/etc/tcsd.conf to reflect your setup.

If you want to use tcsd with software TPM emulator, use the following
configuration in /etc/rc.conf:

tcsd_enable="YES"
tcsd_mode="emulator"
tpmd_enable="YES"

To use TPM, add your_account to '_tss' group like following:

# pw groupmod _tss -m your_account
=====
Message from libxkbcommon-1.4.0_2:

--
If arrow keys don't work under X11 switch to legacy rules e.g.,

For sh/bash/ksh/zsh run and (optionally) add into ~/.profile:
  export XKB_DEFAULT_RULES=xorg

For csh/tcsh run and (optionally) add into ~/.login:
  setenv XKB_DEFAULT_RULES xorg
=====
Message from libsoup-2.74.0_3:

--
libsoup can use NTLM authentication if it is compiled
with the SMB option. To use it, you must install a
port that provides NTLM, like net/samba412 or net/samba413.
=====
Message from libgtop-2.40.0:

--
In order to use the File System read/write monitor, you must chmod
/dev/devstat so that all users can open it read-only.  For example:

# chmod 0444 /dev/devstat

In order for this to persist across reboots, add the following to
/etc/devfs.conf:

perm    devstat 0444
=====
Message from gcc9-9.4.0_1:

--
To ensure binaries built with this toolchain find appropriate versions
of the necessary run-time libraries, you may want to link using

  -Wl,-rpath=/usr/local/lib/gcc9

For ports leveraging USE_GCC, USES=compiler, or USES=fortran this happens
transparently.
=====
Message from libinotify-20211018:

--
You might want to consider increasing the kern.maxfiles tunable if you plan
to use this library for applications that need to monitor activity of a lot
of files.
=====
Message from gamin-0.1.10_10:

--
Gamin will only provide realtime notification of changes for at most n files,
where n is the minimum value between (kern.maxfiles * 0.7) and
(kern.maxfilesperproc - 200). Beyond that limit, files will be polled.

If you often open several large folders with Nautilus, you might want to
increase the kern.maxfiles tunable (you do not need to set
kern.maxfilesperproc, since it is computed at boot time from kern.maxfiles).

The behavior of gamin can be controlled via the various gaminrc files.
See http://www.gnome.org/~veillard/gamin/config.html on how to create
these files.  In particular, if you find gam_server is taking up too much
CPU time polling for changes, something like the following may help
in one of the gaminrc files:

# reduce polling frequency to once per 10 seconds
# for UFS file systems in order to lower CPU load
fsset ufs poll 10
--
===>   NOTICE:

The gamin port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing
=====
Message from libexo-4.16.4:

--
If you are upgrading your packages, due to a problem with the pkg
package management tool libexo requires to be upgraded by itself
before the rest of packages, to ensure correct installation, as
described in UPDATING entry 20210102.

If you skipped the manual step and XFCE parts are failing due to
missing libraries, please run "pkg upgrade -f libexo" to force
reinstalling the missing parts.
=====
Message from samba412-4.12.15_3:

--
How to start: http://wiki.samba.org/index.php/Samba4/HOWTO

* Your configuration is: /usr/local/etc/smb4.conf

* All the relevant databases are under: /var/db/samba4

* All the logs are under: /var/log/samba4

* Provisioning script is: /usr/local/bin/samba-tool

For additional documentation check: http://wiki.samba.org/index.php/Samba4

Bug reports should go to the: https://bugzilla.samba.org/
=====
Message from libbluray-1.3.0_2,1:

--
===>   NOTICE:

The libbluray port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing
=====
Message from gcc11-11.2.0:

--
To ensure binaries built with this toolchain find appropriate versions
of the necessary run-time libraries, you may want to link using

  -Wl,-rpath=/usr/local/lib/gcc11

For ports leveraging USE_GCC, USES=compiler, or USES=fortran this happens
transparently.
=====
Message from xfce4-tumbler-4.16.0_15:

--
To override the default configuration, you must copy the rc-file:

        mkdir ~/.config/tumbler
        cp /usr/local/etc/xdg/tumbler/tumbler.rc ~/.config/tumbler

The COVER plugin requires manual configuration.

For more information see http://docs.xfce.org/xfce/thunar/tumbler
=====
Message from slim-1.3.6_22:

--
Thanks to Nikos Ntarmos, it is now possible to start slim from /etc/ttys.
Please see /usr/local/etc/rc.d/slim for instructions on how to do that.

Alternatively, just put the following entry in /etc/rc.conf:

slim_enable=yes

slim requires a dbus session bus to connect to. Add the following entry in
/etc/rc.conf:

dbus_enable="YES"

*** Option "sessions" is no longer supported. ***

Now you need to put session files in the directory specified by option
"sessiondir". They should be xdg-style .desktop files.

WARNING: the default behaviour in parsing .xinitrc file has changed!
         You can now set a default xsession as described here:
         https://github.com/iwamatsu/slim/pull/1
         You can turn back to random xsession selection by compiling
         this port without the option XDEFAULT.
=====
Message from xfce4-terminal-1.0.0_1:

--
Some options could need manual change to ~/.config/xfce4/terminal/terminalrc:

To reduce the height of tabs, add the hidden 'MiscSlimTabs' option:

MiscSlimTabs=TRUE

By default this option is not defined.

If you have configured a custom color cursor you will also need to add:

ColorCursorUseDefault=FALSE

to have such configuration still working, otherwise reconfigure the color
in the GUI.

Keep in mind, when you change an option in Preferences window, this file
is overwritten.
=====
Message from xfce4-session-4.16.0:

--
To be able to shutdown or reboot your system, you'll have to add .rules
files in /usr/local/etc/polkit-1/rules.d directory. Which looks
like this (replace PUTYOURGROUPHERE by your group):

polkit.addRule(function (action, subject) {
  if ((action.id == "org.freedesktop.consolekit.system.restart" ||
      action.id == "org.freedesktop.consolekit.system.stop")
      && subject.isInGroup("PUTYOURGROUPHERE")) {
    return polkit.Result.YES;
  }
});

For those who have working suspend/resume:

polkit.addRule(function (action, subject) {
  if (action.id == "org.freedesktop.consolekit.system.suspend"
      && subject.isInGroup("PUTYOURGROUPHERE")) {
    return polkit.Result.YES;
  }
});


This port installs a startup file for xscreensaver but it is
disabled by default. This is so because the XFCE metaport
installs xfce4-screensaver to autostart and having both enabled
causes conflicts.

If you want to change the screen saver being used and enable
xscreensaver please go to the Session and Startup settings, and in
the Application Autostart tab enable only the relevant screensaver:

Screensaver -> to enable xscreensaver
XFCE Screensaver -> to enable xfce4-screensaver

8. Правим /etc/rc.conf

dbus_enable="YES"
hald_enable="YES"
moused_enable="YES"
slim_enable="YES"

9. Ставим драйвера VMWare и конфигурируем XOrg/Xfce4

pkg install xf86-input-vmmouse
pkg install xf86-video-vmware

Конфигурируем X

cd /root
/usr/local/bin/Xorg -configure
cp xorg.conf.new /etc/X11/xorg.conf
mcedit /etc/X11/xorg.conf

В конфигурационном файле заменяем драйвер в секции mouse на vmmouse, драйвер видеокарты на wmware. Далее делаем автостарт xfce4:

echo "exec startxfce4" > /home/majestio/.xinitrc

Можно перегрузиться и посмотреть результат. Ранее настроенный пакет slim после перегрузки даст сразу графический логин. И этот пакет ставился зря :-)

10. Продолжение не следует...

Что-то типа наблюдений:

  1. Шрифты системной консоли FreeBSD не совместимы со шрифтами системной консоли DragonFlyBSD по формату
  2. Способ локализации, описанный при установке FreeBSD через /etc/login.conf не получился, локализовал пользователя посредством установки переменной LANG=ru_RU.UTF-8
  3. В пакетах DragonFlyBSD отсутствует пакет open-vm-tools, поэтому об авторесайзе в VMWare можно не вспоминать

В общем, очень годная система, конечно требующая практики!

Рейтинг: 0/5 - 0 голосов