project:bsd:freebsd
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
project:bsd:freebsd [2018/07/14 09:54] – created maxfx | project:bsd:freebsd [2019/02/04 16:21] – [How to setup USB WIFI] maxfx | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
====== Derivates FreeBSD OS ====== | ====== Derivates FreeBSD OS ====== | ||
Line 5: | Line 5: | ||
^ Derivate FreeBSD | ^ Derivate FreeBSD | ||
| FreeBSD | | FreeBSD | ||
- | | TrueOS | + | | TrueOS |
| GhostBSD | | GhostBSD | ||
| DesktopBSD | | DesktopBSD | ||
Line 19: | Line 19: | ||
| True-Pico | | True-Pico | ||
| BSD Router Project | | https:// | | BSD Router Project | | https:// | ||
+ | | PfSense | ||
+ | | OpenSense | ||
\\ | \\ | ||
Line 195: | Line 196: | ||
[[https:// | [[https:// | ||
- | ==== FreeBSD | + | ==== |
[[https:// | [[https:// | ||
- | === Making a New Port === | + | [[http:// |
+ | Build your own FreeBSD ports and make packages out of them using jails, poudriere and portshaker | ||
+ | ]] | ||
[[https:// | [[https:// | ||
Line 541: | Line 545: | ||
</ | </ | ||
+ | |||
+ | ==== QT Creator - Debugging ==== | ||
+ | I cannot debug C/C++ programs because message "No symbol table is loaded. | ||
+ | |||
+ | Best solution is install // | ||
+ | |||
+ | |||
====== Mount ====== | ====== Mount ====== | ||
==== Mount msdosfs ==== | ==== Mount msdosfs ==== | ||
Line 629: | Line 640: | ||
===== Debug ports ===== | ===== Debug ports ===== | ||
- | Just put the following | + | Just put the following |
- | you want to include | + | |
< | < | ||
WITH_DEBUG= yes | WITH_DEBUG= yes | ||
</ | </ | ||
- | more information | + | more information |
< | < | ||
/ | / | ||
+ | </ | ||
+ | |||
+ | ===== Debug Makefile ports ===== | ||
+ | |||
+ | Debug makefile for your port | ||
+ | < | ||
+ | make -d A | ||
</ | </ | ||
====== Compiling programs ====== | ====== Compiling programs ====== | ||
Line 674: | Line 690: | ||
====== Jails ===== | ====== Jails ===== | ||
Simple script for create jail on zfs filesystem | Simple script for create jail on zfs filesystem | ||
+ | <code bash> | ||
+ | #!/bin/sh | ||
+ | |||
+ | ######################################################################## | ||
+ | # Donwload amd64 base, ports tree FreeBSD OS | ||
+ | # and unpack base OS to your jail folder | ||
+ | ######################################################################## | ||
+ | |||
+ | set +x | ||
+ | |||
+ | name_jail=" | ||
+ | arch_jail=" | ||
+ | version_jail=" | ||
+ | |||
+ | # Create new zfs dataset for jail - only once | ||
+ | #zfs create -o mountpoint=/ | ||
+ | |||
+ | # Create jail folder | ||
+ | zfs create zroot/ | ||
+ | |||
+ | rm / | ||
+ | rm / | ||
+ | |||
+ | echo " | ||
+ | |||
+ | fetch ftp:// | ||
+ | fetch ftp:// | ||
+ | |||
+ | mkdir -p / | ||
+ | |||
+ | echo " | ||
+ | tar -xf / | ||
+ | tar -xf / | ||
+ | |||
+ | cp / | ||
+ | </ | ||
+ | |||
+ | |||
<code bash> | <code bash> | ||
#!/bin/sh | #!/bin/sh | ||
Line 728: | Line 782: | ||
ip4.addr = 10.0.2.15; | ip4.addr = 10.0.2.15; | ||
} | } | ||
- | |||
</ | </ | ||
- | Packet forwarding | + | Packet forwarding |
+ | |||
+ | / | ||
< | < | ||
+ | # / | ||
#Define the interfaces | #Define the interfaces | ||
ext_if = " | ext_if = " | ||
Line 924: | Line 980: | ||
< | < | ||
wlans_run0=" | wlans_run0=" | ||
- | create_args_wlan0=" | + | create_args_wlan0=" |
</ | </ | ||
Line 1108: | Line 1164: | ||
zpool import -f zroot | zpool import -f zroot | ||
</ | </ | ||
+ | |||
+ | |||
+ | ==== How to mount disk with geli from live CD ==== | ||
+ | |||
+ | Boot live system ... | ||
+ | |||
+ | < | ||
+ | geli attach /dev/ada0p3 | ||
+ | password: | ||
+ | </ | ||
+ | |||
+ | The command mount only part of filesystem. | ||
+ | For example /usr; /tmp; /var; but not /boot | ||
+ | < | ||
+ | zpool import -f /mnt zroot | ||
+ | </ | ||
+ | |||
+ | The command mount /boot etc.. | ||
+ | < | ||
+ | zfs mount zroot/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||