G1OAA


FreeBSD 10 first steps
======================

  -- Вот посмотрите, этого вообще никто не знает*
  -- А надо?

  *) из лекции по вычислительной электронике, 1977.

INSTALL

Continue with default keymap
hostname: darkstar
optional system components
[ ] doc   Additional documentation
[*] games Games (fortune, etc.)
[*] lib32 32-bit compatibility libraries
[*] ports  Ports tree
[ ] src    System source code

How would you like to partition your disk
  Guided Disk Setup
    GPT  GUID partition table
      ada0          8.0 GB    GPT
        ada0p1      512 KB    freebsd-boot
        ada0p2      7.6 GB    freebsd-ufs
        ada0p3      410 MB    freebsd-swap

Archive extraction

  base.txz
  kernel.txz
  lib32.txz
  ports.txz

Configure

  em0 ethernet interface: use IPv4 DHCP
                          use SLAAC stateless address autoconfiguration
  Europe/Tallinn

Choose sevices

  sshd
  dumpdev   Enable kernel crash dumps to /var/crash

reboot

login as root

Add User: virtu/virtu

  # pw user mod virtu -G wheel
  # groups virtu

Sample outputs:

  virtu wheel

Install the needed packages

  pkg install gnome-desktop gnome-terminal gdm xorg xf86-video-fbdev
  pkg install sudo firefox gedit

Add the following lines in /etc/rc.conf

  gnome_enable="YES"
  moused_enable="YES"
  dbus_enable="YES"
  hald_enable="YES"

Reboot the machine. It will boot into Gnome login screen.

relogin back as virtu. "su -" works now.

------------------------------------------------------------------------

VM

create user, invite to group wheel

connect to NAT Network, Virtualbox

  File -> Preferences -> Network -> NAT Networks -> Add

  # adduser

Use chpass to change user login settings

  /etc/rc.conf

To enable sshd in /etc/rc.conf

  sshd_enable="YES"

  /etc/rc.d/sshd start

Use following to add created user (virtu) to group wheel
(to make work su, sudo)

  # pw user mod virtu -G wheel
  # groups virtu

To activate network in /etc/rc.conf

  ifconfig_em0="DHCP"

  # dhclient em0

Bootstrap pkg:

  # pkg
  # pkgng

To install gnome, firefox, gedit

  pkg install gnome-desktop gnome-terminal gdm xorg xf86-video-fbdev
  pkg install sudo firefox gedit

Add the following lines in /etc/rc.conf

  gnome_enable="YES"
  moused_enable="YES"
  dbus_enable="YES"
  hald_enable="YES"

To add guest additions to virtual box

  # pkg install virtualbox-ose-additions

Add the following lines in /etc/rc.conf

  vboxguest_enable="YES"
  vboxservice_enable="YES"

Now /etc/rc.conf looks like:

  sshd_enable="YES"
  ifconfig_em0="DHCP"
  gnome_enable="YES"
  moused_enable="YES"
  dbus_enable="YES"
  hald_enable="YES"
  vboxguest_enable="YES"
  vboxservice_enable="YES"

Now reboot, Gnome login starts automatically.

------------------------------------------------------------------------

Русификация

В /etc/login.conf :

  russian|Russian Users Accounts:\
          :charset=UTF-8:\
          :lang=ru_RU.UTF-8:\
          :tc=default:

Для использования изменений системой:

  # cap_mkdb /etc/login.conf

Для virtu:

  # pw usermod -n virtu -L russian

In /etc/profile :

  LANG="ru_RU.UTF-8"
  LC_CTYPE="ru_RU.UTF-8"
  LC_COLLATE="POSIX"
  LC_ALL="ru_RU.UTF-8"

------------------------------------------------------------------------

Miscellaneous:

  0. Bash is in /usr/local/bin/bash
  1. use chpass to change user login settings
  2. Repo /etc/pkg/FreeBSD.conf
          /usr/local/etc/pkg.conf
  3. Cleaning
       pkg autoremove
       pkg clean --all
       dd if=/dev/zero of=biig; rm biig
  4. Read Handbook
  5. Other mirrors:
      pkg0.bme.freebsd.org
      pkg0.isc.freebsd.org
      pkg0.nyi.freebsd.org
      pkg0.twn.freebsd.org
  6. Ask version:
      sysctl -n kern.osrelease kern.ostype
      objdump -sj .data /boot/kernel/kernel | tail -n 22

------------------------------------------------------------------------

Links

Handbook доступна одним файлом
Русский, 2006, 2021 страниц

  https://www.freebsd.org/doc/ru/books/handbook/book.html

English, 2015, 987 pages

  https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/book.html

Русификация

  http://blog.dtulyakov.ru/2015/02/freebsd-utf-8.html

  http://laohu.ru/blog/utf-8-freebsd
  http://unix1.jinr.ru/~lavr/vt/vtcons.html
  https://sites.google.com/site/luzanov/freebsd/utf8_locale

PKG

  https://www.freebsd.org/cgi/man.cgi?query=pkg&sektion=7