Skip to content

Instantly share code, notes, and snippets.

@mjarkk
Last active June 6, 2020 09:56
Show Gist options
  • Save mjarkk/57ca263f34bc969ebe475a237d5ec3dd to your computer and use it in GitHub Desktop.
Save mjarkk/57ca263f34bc969ebe475a237d5ec3dd to your computer and use it in GitHub Desktop.

Revisions

  1. mjarkk revised this gist Jun 6, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion my_free_bsd_install.md
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ visudo
    ```

    ## AMD Vega GPU drivers
    *[amd vega drivers](https://forums.freebsd.org/threads/console-hangs-with-amd-vega-graphics.71347/) [get kernel source](https://unix.stackexchange.com/questions/204956/how-do-you-install-the-freebsd10-kernel-sources)*
    *[amd vega drivers](https://forums.freebsd.org/threads/console-hangs-with-amd-vega-graphics.71347/) [get kernel source](https://unix.stackexchange.com/questions/204956/how-do-you-install-the-freebsd10-kernel-sources) [gpu drivers howto](https://freebsddesktop.github.io/2019/03/11/xorg-quickstart.html)*
    ```sh
    portsnap fetch update
    cd /usr/ports/graphics/drm-kmod
  2. mjarkk revised this gist Jun 6, 2020. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion my_free_bsd_install.md
    Original file line number Diff line number Diff line change
    @@ -53,7 +53,6 @@ Edit `/etc/rc.conf` to:
    ```
    dbus_enable="YES"
    hald_enable="YES"
    moused_enable="YES"
    gdm_enable="YES"
    # Only if you have installed gnome
  3. mjarkk revised this gist Jun 6, 2020. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions my_free_bsd_install.md
    Original file line number Diff line number Diff line change
    @@ -31,7 +31,7 @@ echo 'kld_list="/boot/modules/amdgpu.ko"' >> /etc/rc.conf

    ```sh
    # options: mate / gnome3
    pkg install xorg mate
    pkg install xorg mate gdm
    ```

    Make sure the following freetype module is loaded. if not add the following to the "modules" section of your x window config file:
    @@ -53,8 +53,10 @@ Edit `/etc/rc.conf` to:
    ```
    dbus_enable="YES"
    hald_enable="YES"
    moused_enable="YES"
    gdm_enable="YES"
    # Only if you have installed gnome
    gnome_enable="YES"
    ```

  4. mjarkk revised this gist Jun 6, 2020. 1 changed file with 7 additions and 6 deletions.
    13 changes: 7 additions & 6 deletions my_free_bsd_install.md
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,14 @@
    # A cheatsheet for installing FreeBSD

    ## Hardware issues

    #### Corsair rgb keyboard not working
    Press the `win key lock` + `F1` for 3 seconds.
    ## Corsair keyboard not working
    Press the `win key lock` + `F1` for 3 seconds. *(this puts the keyboard in some kind of special mode where it behaves like an old keyboard)*

    ## Deafult programs
    ```
    pkg install vim nano
    ```sh
    pkg install vim nano sudo

    visudo
    # Uncomment the %whell and %sudo lines to allow users in those groups sudo rights
    ```

    ## AMD Vega GPU drivers
  5. mjarkk revised this gist Jun 6, 2020. 1 changed file with 16 additions and 5 deletions.
    21 changes: 16 additions & 5 deletions my_free_bsd_install.md
    Original file line number Diff line number Diff line change
    @@ -10,12 +10,27 @@ Press the `win key lock` + `F1` for 3 seconds.
    pkg install vim nano
    ```

    ## AMD Vega GPU drivers
    *[amd vega drivers](https://forums.freebsd.org/threads/console-hangs-with-amd-vega-graphics.71347/) [get kernel source](https://unix.stackexchange.com/questions/204956/how-do-you-install-the-freebsd10-kernel-sources)*
    ```sh
    portsnap fetch update
    cd /usr/ports/graphics/drm-kmod
    make install

    # If you get some kind of kernel source required do:
    # svn checkout https://svn.freebsd.org/base/releng/`uname -r | cut -d'-' -f1,1` /usr/src
    # cd /usr/src
    # make clean

    echo 'kld_list="/boot/modules/amdgpu.ko"' >> /etc/rc.conf
    ```

    ## Desktop
    *[Desktop Environments](https://www.freebsd.org/doc/handbook/x11-wm.html) [Gnome](https://www.freebsd.org/gnome/) [xorg conf](https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html)*

    ```sh
    # options: mate / gnome3
    pkg install xorg drm-kmod mate
    pkg install xorg mate
    ```

    Make sure the following freetype module is loaded. if not add the following to the "modules" section of your x window config file:
    @@ -40,10 +55,6 @@ hald_enable="YES"
    gdm_enable="YES"
    gnome_enable="YES"
    # For amdgpu: kld_list="amdgpu"
    # For Intel: kld_list="/boot/modules/i915kms.ko"
    # For radeonkms: kld_list="/boot/modules/radeonkms.ko"
    ```

    xorg things
  6. mjarkk revised this gist Jun 5, 2020. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions my_free_bsd_install.md
    Original file line number Diff line number Diff line change
    @@ -40,6 +40,10 @@ hald_enable="YES"
    gdm_enable="YES"
    gnome_enable="YES"
    # For amdgpu: kld_list="amdgpu"
    # For Intel: kld_list="/boot/modules/i915kms.ko"
    # For radeonkms: kld_list="/boot/modules/radeonkms.ko"
    ```

    xorg things
  7. mjarkk revised this gist Jun 5, 2020. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions my_free_bsd_install.md
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,7 @@ pkg install vim nano

    ```sh
    # options: mate / gnome3
    pkg install mate
    pkg install xorg drm-kmod mate
    ```

    Make sure the following freetype module is loaded. if not add the following to the "modules" section of your x window config file:
    @@ -42,9 +42,9 @@ gdm_enable="YES"
    gnome_enable="YES"
    ```

    install xorg
    xorg things
    ```sh
    pkg install xorg
    # test xorg
    startx
    # reboot

  8. mjarkk revised this gist Jun 5, 2020. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions my_free_bsd_install.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,10 @@
    # A cheatsheet for installing FreeBSD

    ## Hardware issues

    #### Corsair rgb keyboard not working
    Press the `win key lock` + `F1` for 3 seconds.

    ## Deafult programs
    ```
    pkg install vim nano
  9. mjarkk revised this gist Jun 4, 2020. 1 changed file with 12 additions and 6 deletions.
    18 changes: 12 additions & 6 deletions my_free_bsd_install.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,12 @@
    # A cheatsheet for installing FreeBSD

    ## Deafult programs
    ```
    pkg install vim nano
    ```

    ## Desktop
    *[Desktop Environments](https://www.freebsd.org/doc/handbook/x11-wm.html) [Gnome](https://www.freebsd.org/gnome/)*
    *[Desktop Environments](https://www.freebsd.org/doc/handbook/x11-wm.html) [Gnome](https://www.freebsd.org/gnome/) [xorg conf](https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html)*

    ```sh
    # options: mate / gnome3
    @@ -35,12 +40,13 @@ gnome_enable="YES"
    install xorg
    ```sh
    pkg install xorg
    startx
    # reboot

    # Some conf thingy:
    # /etc/sysctl.conf > kern.evdev.rcpt_mask=6
    #
    # Some conf thingy command:
    # sysctl kern.evdev.rcpt_mask=6
    # If you have mouse issues try to set
    ## echo "kern.evdev.rcpt_mask=6" >> /etc/sysctl.conf
    # Or just try it:
    ## sysctl kern.evdev.rcpt_mask=6

    pw groupmod video -m your_user_name
    pw groupmod wheel -m your_user_name
  10. mjarkk revised this gist Jun 4, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion my_free_bsd_install.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # This is just a cheatsheet of commands for things to remember when installing freebsd
    # A cheatsheet for installing FreeBSD

    ## Desktop
    *[Desktop Environments](https://www.freebsd.org/doc/handbook/x11-wm.html) [Gnome](https://www.freebsd.org/gnome/)*
  11. mjarkk revised this gist Jun 4, 2020. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions my_free_bsd_install.md
    Original file line number Diff line number Diff line change
    @@ -35,4 +35,13 @@ gnome_enable="YES"
    install xorg
    ```sh
    pkg install xorg

    # Some conf thingy:
    # /etc/sysctl.conf > kern.evdev.rcpt_mask=6
    #
    # Some conf thingy command:
    # sysctl kern.evdev.rcpt_mask=6

    pw groupmod video -m your_user_name
    pw groupmod wheel -m your_user_name
    ```
  12. mjarkk revised this gist Jun 4, 2020. 1 changed file with 16 additions and 2 deletions.
    18 changes: 16 additions & 2 deletions my_free_bsd_install.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # This is just a cheatsheet of commands for things to remember when installing freebsd

    ## Desktop
    *[Desktop Environments](https://www.freebsd.org/doc/handbook/x11-wm.html)*
    *[Desktop Environments](https://www.freebsd.org/doc/handbook/x11-wm.html) [Gnome](https://www.freebsd.org/gnome/)*

    ```sh
    # options: mate / gnome3
    @@ -21,4 +21,18 @@ FontPath "/usr/local/share/fonts/bitstream-vera/
    Add the following to `/etc/fstab` required for gnome:
    ```
    proc /proc procfs rw 0 0
    ```
    ```

    Edit `/etc/rc.conf` to:
    ```
    dbus_enable="YES"
    hald_enable="YES"
    gdm_enable="YES"
    gnome_enable="YES"
    ```

    install xorg
    ```sh
    pkg install xorg
    ```
  13. mjarkk created this gist Jun 4, 2020.
    24 changes: 24 additions & 0 deletions my_free_bsd_install.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    # This is just a cheatsheet of commands for things to remember when installing freebsd

    ## Desktop
    *[Desktop Environments](https://www.freebsd.org/doc/handbook/x11-wm.html)*

    ```sh
    # options: mate / gnome3
    pkg install mate
    ```

    Make sure the following freetype module is loaded. if not add the following to the "modules" section of your x window config file:
    ```
    Load "freetype"
    ```

    Do the same for this under the "Files" section:
    ```
    FontPath "/usr/local/share/fonts/bitstream-vera/
    ```

    Add the following to `/etc/fstab` required for gnome:
    ```
    proc /proc procfs rw 0 0
    ```