Aktuelle Version |
Dein Text |
Zeile 1: |
Zeile 1: |
| Diese Seite ist lediglich ein Merkzettel für [[Benutzer:PaulRiegel|mich]]. | | Diese Seite ist lediglich ein Merkzettel für [[Benutzer:PaulRiegel|mich]]. |
|
| |
|
| == Installation == | | == 10.1 == |
|
| |
|
| === Dinge, die sich nach der Installation einmal angeschaut werden kann === | | === System bei 10.1 betreuen === |
|
| |
|
| ==== Arbeitsspeicher ==== | | ==== Software bei 10.1 aktuell halten ==== |
| : mit SWAP
| |
| | |
| : <code>swapinfo</code>
| |
| <pre>
| |
| Device 512-blocks Used Avail Capacity
| |
| /dev/label/swap0.eli 41943032 0 41943032 0%
| |
| </pre>
| |
| : <code>sudo swapon -a</code>
| |
| <pre></pre>
| |
| : <code>sudo swapoff -a</code>
| |
| <pre>
| |
| swapoff: removing /dev/label/swap0.eli as swap device
| |
| </pre>
| |
| : <code>swapinfo</code>
| |
| <pre>
| |
| Device 512-blocks Used Avail Capacity
| |
| </pre>
| |
| : <code>sudo swapon -a </code>
| |
| <pre>
| |
| swapon: adding /dev/label/swap0.eli as swap device
| |
| </pre>
| |
| : <code>sudo swapon -F /etc/fstab -a</code>
| |
| <pre></pre>
| |
| | |
| ==== Massenspeicher ====
| |
| : mit GEOM_ELI
| |
| : mit ZFS
| |
| | |
| ; Verschlüsslung:
| |
| :: geom_eli_load="YES"
| |
| | |
| : <code>geli status</code>
| |
| | |
| : <code>geli list</code>
| |
| | |
| ; Pool:
| |
| :: zfs_enable="YES"
| |
| : als Spiegel von zwei Massenspeichern
| |
| | |
| : <code>zpool status</code>
| |
| | |
| : <code>zfs list</code>
| |
| | |
| : <code>zfs list -t snapshot</code>
| |
| | |
| == FreeBSD-CURRENT 12 ==
| |
| | |
| === foo for TrueOS ===
| |
| | |
| ==== freshporting TrueOS ====
| |
| : WTF! TrueOS wurde von ''stable'' auf ''current'' umgestellt und gibt nur noch eingefrorene (gelegentlich dann) wochenalte Pakete?
| |
| :: http://pkg.cdn.trueos.org/master/amd64/ (i.V.m. http://pkg.cdn.trueos.org/master/amd64-base/ ) vs. http://pkg.freebsd.org/freebsd:12:x86:64/latest/
| |
| | |
| : <code>cat /usr/local/etc/pkg/repos/trueos.conf</code>
| |
| <pre>
| |
| trueos-major: {
| |
| url: "http://pkg.cdn.trueos.org/master/amd64",
| |
| signature_type: "fingerprints",
| |
| fingerprints: "/usr/local/etc/pkg/fingerprints/trueos",
| |
| enabled: true
| |
| }
| |
| </pre>
| |
| | |
| : <code>sudo ee /usr/local/etc/pkg/repos/trueos.conf</code>
| |
| :: Der Einfachheit halber wird das Repository einfach frei wählbar als ''freebsd'' bezeichnet. (Genau genommen könnte es der Klarheit halber auch ''pkg-freebsd-12-x86-64'' benannt werden.)
| |
| :: aus https://svnweb.freebsd.org/base/head/etc/pkg/FreeBSD.conf?view=co ( alternativ per https://github.com/freebsd/freebsd/blob/master/etc/pkg/FreeBSD.conf ) übernommen
| |
| <pre></pre>
| |
| <pre>
| |
| freebsd: {
| |
| url: "pkg+http://pkg.freebsd.org/freebsd:12:x86:64/latest",
| |
| mirror_type: "srv",
| |
| signature_type: "fingerprints",
| |
| fingerprints: "/usr/share/keys/pkg",
| |
| enabled: true
| |
| }
| |
| </pre>
| |
| | |
| : <code>sudo ln -s /usr/share/keys/pkg /usr/local/etc/pkg/fingerprints/freebsd</code>
| |
| :: im Stil von dem Beispiel von https://www.freebsd.org/cgi/man.cgi?query=pkg-repo&sektion=8 (statt <code># Add 'fingerprint' into /usr/local/etc/pkg/fingerprints/myrepo/trusted</code>)
| |
| | |
| === einzelne Software ===
| |
| | |
| ==== CBSD ====
| |
| | |
| : <code>sudo pkg install -y cbsd</code>
| |
| <pre>
| |
| Message from cbsd-11.0.2:
| |
| ===============================================================================
| |
| | |
| cbsd is now installed, but requires additional setup steps:
| |
| | |
| Upon initial installation, run:
| |
| | |
| env workdir="/path" /usr/local/cbsd/sudoexec/initenv
| |
| | |
| Where /path is the path to the cbsd workdir, e.g.: /usr/jails
| |
| | |
| For upgrading an existing installation, run:
| |
| | |
| cbsd initenv
| |
| | |
| ===============================================================================
| |
| </pre>
| |
| | |
| : <code>sudo env workdir="/usr/jails" /usr/local/cbsd/sudoexec/initenv</code>
| |
| <pre>
| |
| -------[CBSD v.11.0.2]-------
| |
| This is install/upgrade scripts for CBSD.
| |
| Don't forget to backup.
| |
| -----------------------------
| |
| Do you want prepare or upgrade hier environment for CBSD now?
| |
| [yes(1) or no(0)]
| |
| 1
| |
| </pre>
| |
| <pre></pre>
| |
| <pre>
| |
| [Stage 2: build tools]
| |
| exec: /usr/local/bin/clang38: not found
| |
| exec: /usr/local/bin/clang38: not found
| |
| Shall i add cbsd user into /usr/local/etc/sudoers.d/cbsd_sudoers sudo file to obtain root privileges for the most cbsd commands?
| |
| [yes(1) or no(0)]
| |
| ^C
| |
| </pre>
| |
| : <code>sudo pkg install -y clang38</code>
| |
| | |
| : <code>sudo env workdir="/usr/jails" /usr/local/cbsd/sudoexec/initenv</code>
| |
| <pre></pre>
| |
| <pre>
| |
| /usr/bin/ld: warning: libssl.so.8, needed by /usr/local/lib/libssh2.so, not found (try using -rpath or -rpath-link)
| |
| </pre>
| |
| <pre></pre>
| |
| : <code>sudo ln -s /usr/local/lib/libssl.so.39 /usr/local/lib/libssl.so.8</code>
| |
| | |
| : <code>sudo env workdir="/usr/jails" /usr/local/cbsd/sudoexec/initenv</code>
| |
| <pre></pre>
| |
| <pre>
| |
| [Stage 2: build tools]
| |
| /usr/bin/ld: warning: libcrypto.so.8, needed by /usr/local/lib/libssh2.so, not found (try using -rpath or -rpath-link)
| |
| /usr/bin/ld: warning: libcrypto.so.8, needed by /usr/local/lib/libssh2.so, not found (try using -rpath or -rpath-link)
| |
| /usr/bin/ld: warning: libcrypto.so.8, needed by /usr/local/lib/libssh2.so, not found (try using -rpath or -rpath-link)
| |
| /usr/bin/ld: warning: libcrypto.so.8, needed by /usr/local/lib/libssh2.so, not found (try using -rpath or -rpath-link)
| |
| Shall i add cbsd user into /usr/local/etc/sudoers.d/cbsd_sudoers sudo file to obtain root privileges for the most cbsd commands?
| |
| [yes(1) or no(0)]
| |
| ^C
| |
| </pre>
| |
| : <code>sudo ln -s /usr/local/lib/libcrypto.so.38 /usr/local/lib/libcrypto.so.8</code>
| |
| | |
| | |
| : <code>sudo env workdir="/usr/jails" /usr/local/cbsd/sudoexec/initenv</code>
| |
| <pre>
| |
| -------[CBSD v.11.0.2]-------
| |
| This is install/upgrade scripts for CBSD.
| |
| Don't forget to backup.
| |
| -----------------------------
| |
| Do you want prepare or upgrade hier environment for CBSD now?
| |
| [yes(1) or no(0)]
| |
| 1
| |
| >>> Installing or upgrading
| |
| [Stage 1: account & dir hier]
| |
| * Check hier and permission...
| |
| [Stage 2: build tools]
| |
| Shall i add cbsd user into /usr/local/etc/sudoers.d/cbsd_sudoers sudo file to obtain root privileges for the most cbsd commands?
| |
| [yes(1) or no(0)]
| |
| 1
| |
| [Stage 3: local settings]
| |
| Shall i modify the /etc/rc.conf to sets cbsd_workdir="/usr/jails"?:
| |
| [yes(1) or no(0)]
| |
| 1
| |
| /etc/rc.conf: cbsd_workdir: -> /usr/jails
| |
| [Stage 4: update default skel resolv.conf]
| |
| [Stage 5: freshing inventory]
| |
| nodename: Short form nodename for this host e.g. like hostname. Warning: this operation will recreate the ssh keys in /usr/jails/.ssh dir: dev.domain.tld
| |
| | |
| Empty inventory database created: /usr/jails/var/db/inv.dev.domain.tld.sqlite
| |
| nodeip: Node management IPv4 or IPv6 address (used for node interconnection), e.g: 192.168.178.125
| |
| | |
| jnameserver: Jails default DNS name-server (for jails resolv.conf), e.g.: 8.8.8.8,8.8.4.4
| |
| | |
| nodeippool: Jail pool IP address range (networks for jails)
| |
| Hint: use space as delimiter for multiple networks, e.g.: 10.0.0.0/16 192.168.178.125/24
| |
| | |
| nat_enable: Enable NAT for RFC1918 networks?
| |
| [yes(1) or no(0)]
| |
| 1
| |
| Set IP address or NIC as the aliasing NAT address or interface, e.g: 192.168.178.125
| |
| | |
| Which NAT framework do you want to use: [pf]
| |
| (type FW name, eg pf,ipfw,ipfilter or "exit" for break)
| |
| | |
| Do you want to modify /boot/loader.conf to set pf_load=YES ?
| |
| [yes(1) or no(0)]
| |
| 1
| |
| /boot/loader.conf: pf_load: -> YES
| |
| fbsdrepo: Use official FreeBSD repository? When no (0) repository of CBSD is preferred (usefull for stable=1) for fetching base/kernel?
| |
| [yes(1) or no(0)]
| |
| 1
| |
| zfsfeat: You are running on a ZFS-based system. Enable ZFS feature?
| |
| [yes(1) or no(0)]
| |
| 1
| |
| parallel: Parallel mode stop/start ?
| |
| (0 - no parallel or positive value (in seconds) as timeout for next parallel sequence) e.g: 5
| |
| | |
| stable: Use STABLE branch (RELENG_10 (ver = 10) instead of RELEASE_10.x (ver = 10.x) ). Only CBSD repository have binary base for STABLE branch ?
| |
| (STABLE_X instead of RELEASE_X_Y branch for base/kernel will be used), e.g.: 0 (use release)
| |
| 11
| |
| sqlreplica: Enable sqlite3 replication to remote nodes ?
| |
| (0 - no replica, 1 - try to replicate all local events to remote nodes) e.g: 1
| |
| | |
| [Stage 6: authentication keys]
| |
| Generating public/private rsa key pair.
| |
| Your identification has been saved in /usr/jails/.ssh/3f4593ce1717ce911a89014463d6475e.id_rsa.
| |
| Your public key has been saved in /usr/jails/.ssh/3f4593ce1717ce911a89014463d6475e.id_rsa.pub.
| |
| The key fingerprint is:
| |
| SHA256:X/uebO19P2cA8xS1zRcp5br8Q+C8e2wm0M82C0e/eO0 root@dev.domain.tdl
| |
| The key's randomart image is:
| |
| +---[RSA 2048]----+
| |
| | .+o|
| |
| | .oo+|
| |
| | .++|
| |
| | o.o .|
| |
| | S =*.. |
| |
| | . o.==..|
| |
| | . o+*+o|
| |
| | =*#O|
| |
| | =&BE|
| |
| +----[SHA256]-----+
| |
| [Stage 7: modules]
| |
| Installing module pkg.d cmd: pkg
| |
| Installing module bsdconf.d cmd: tzsetup
| |
| Installing module bsdconf.d cmd: ssh
| |
| Installing module bsdconf.d cmd: ftp
| |
| Installing module bsdconf.d cmd: adduser
| |
| Installing module bsdconf.d cmd: passwd
| |
| Installing module bsdconf.d cmd: service
| |
| Installing module bsdconf.d cmd: sysrc
| |
| Installing module bsdconf.d cmd: userlist
| |
| Installing module bsdconf.d cmd: grouplist
| |
| Installing module bsdconf.d cmd: adduser-tui
| |
| Installing module bsdconf.d cmd: pw
| |
| Installing module zfsinstall.d cmd: zfsinstall
| |
| [Stage 9: cleanup]
| |
| * Remove obsolete files...
| |
| Configure RSYNC services for jail migration?
| |
| [yes(1) or no(0)]
| |
| 1
| |
| Shall i modify the /etc/rc.conf to sets cbsdrsyncd_enable="YES"
| |
| [yes(1) or no(0)]
| |
| 1
| |
| /etc/rc.conf: cbsdrsyncd_enable: -> YES
| |
| Do you want to modify /etc/rc.conf to set the cbsdrsyncd_flags="--config=/usr/jails/etc/rsyncd.conf" ?
| |
| [yes(1) or no(0)]
| |
| 1
| |
| /etc/rc.conf: cbsdrsyncd_flags: -> --config=/usr/jails/etc/rsyncd.conf
| |
| /usr/local/etc/rc.d/cbsdrsyncd: required_files: ->
| |
| Starting cbsdrsyncd.
| |
| Shall i modify the /etc/rc.conf to sets cbsdd_enable=YES ?
| |
| [yes(1) or no(0)]
| |
| 1
| |
| /etc/rc.conf: cbsdd_enable: -> YES
| |
| Shall i modify the /etc/rc.conf to sets rcshutdown_timeout="900"?
| |
| [yes(1) or no(0)]
| |
| 1
| |
| /etc/rc.conf: rcshutdown_timeout: 90 -> 900
| |
| Shall i modify default SSH daemon port from 22 to 22222 on this host via /etc/rc.conf and sshd_flags="-oPort=22222" which is default for cbsd?
| |
| [yes(1) or no(0)]
| |
| 1
| |
| /etc/rc.conf: sshd_flags: -> -oPort=22222
| |
| [Stage X: upgrading]
| |
| >>> Done
| |
| First CBSD initialization complete.
| |
|
| |
| Now your can run:
| |
| service cbsdd start
| |
| to run CBSD services.
| |
|
| |
| For change initenv settings in next time, use:
| |
| cbsd initenv-tui
| |
|
| |
| Also don't forget to execute:
| |
| cbsd initenv
| |
| every time when you upgrade CBSD version.
| |
| </pre>
| |
| | |
| : <code>sudo service cbsdd start</code>
| |
| <pre>
| |
| Starting cbsdd.
| |
| </pre>
| |
| | |
| == PC-BSD 10.1 ==
| |
| | |
| === System bei PC-BSD 10.1 betreuen ===
| |
| | |
| ==== Software bei PC-BSD 10.1 aktuell halten ====
| |
|
| |
|
| ; Siehe auch: | | ; Siehe auch: |
Zeile 502: |
Zeile 209: |
| defaultHeight=800 | | defaultHeight=800 |
| </pre> | | </pre> |
|
| |
| ==== eigenes Theme im eigenen Verzeichnis <code>~</code> erstellen ====
| |
| <!--
| |
| : <code></code>
| |
| -->
| |
|
| |
| : <code>mkdir ~/customizing</code>
| |
|
| |
| : <code>mkdir -p ~/customizing/usr/local/share/apps/desktoptheme/`whoami`</code>
| |
| : <code>cp -r /usr/local/share/apps/desktoptheme/oxygen/ ~/customizing/usr/local/share/apps/desktoptheme/`whoami`</code>
| |
| : <code>cd ~/customizing/usr/local/share/apps/desktoptheme/`whoami`</code>
| |
| :* Die Inhalte für desktoptheme entsprechend anpassen (siehe oben).
| |
|
| |
| : <code>mkdir -p ~/customizing/usr/local/share/wallpapers/`whoami`</code>
| |
| : <code>cp -r /usr/local/share/wallpapers/Elarun/ ~/customizing/usr/local/share/wallpapers/`whoami`</code>
| |
| : <code>cd ~/customizing/usr/local/share/wallpapers/`whoami`</code>
| |
| :* Die Inhalte für wallpapers entsprechend anpassen (siehe oben).
| |
|
| |
| : <code>sudo ln -s ~/customizing/usr/local/share/wallpapers/`whoami` /usr/local/share/wallpapers/`whoami`</code>
| |
| : <code>sudo ln -s ~/customizing/usr/local/share/apps/desktoptheme/`whoami` /usr/local/share/apps/desktoptheme/`whoami`</code>
| |
|
| |
|
| === Lyx === | | === Lyx === |
Zeile 554: |
Zeile 241: |
| ** pcbsd-meta-kde | | ** pcbsd-meta-kde |
| * zsh | | * zsh |
| * texlive-base
| |
| * lyx | | * lyx |
| * chromium | | * chromium |
| * vlc | | * vlc |
| * tox
| |
| ** utox
| |
| * gimp | | * gimp |
|
| |
|
Zeile 587: |
Zeile 271: |
| * mutt | | * mutt |
| * wine | swine | | * wine | swine |
| * texlive-full
| |
|
| |
|
| == foo == | | == foo == |
Zeile 681: |
Zeile 364: |
| * [https://addons.mozilla.org/en-US/thunderbird/addon/super-date-format/ Addon ''Super Date Format''] | | * [https://addons.mozilla.org/en-US/thunderbird/addon/super-date-format/ Addon ''Super Date Format''] |
|
| |
|
| == [[wikipedia:de:zsh | zsh]] == | | == zsh == |
|
| |
|
| ; auf [http://www.zsh.org zsh], statt csh, für einen einzelnen Account umstellen | | ; auf zsh, statt csh, für einen einzelnen Account umstellen |
|
| |
|
| :* per Klicki-Bunti | | :* per Klicki-Bunti |
Zeile 705: |
Zeile 388: |
|
| |
|
| : <code>cat ~/.profile</code> | | : <code>cat ~/.profile</code> |
|
| |
| == mirroring ==
| |
|
| |
| [[Benutzer Diskussion:PaulRiegel/TrueOS#mirroring]]
| |
|
| |
| == SWAP ==
| |
|
| |
| wir nehmen an, dass das Gerät (für Massenspeicher) ''/dev/ada0'' ist
| |
|
| |
| : wir versuchen es gleich einmal richtig (mit dem labeling) zu machen, um probleme - welches gerät erhält welche forlaufende nummer - zu vermeiden.
| |
|
| |
| : <code>gpart show</code>
| |
| <s>
| |
| : <code>gpart destroy /dev/ada0</code>
| |
| : <code>gpart create -s MBR /dev/ada0</code>
| |
| : <code>gpart create -s GPT /dev/ada0</code>
| |
| : <code>gpart add -t freebsd-swap -l swap /dev/ada0</code>
| |
| : <code>gpart add -t freebsd-swap /dev/ada0</code>
| |
| </s>
| |
|
| |
| : <code>glabel status</code>
| |
| <pre>
| |
| </pre>
| |
|
| |
| <s>
| |
| : <code>newfs -L swap /dev/ada0</code>
| |
| </s>
| |
| <s>
| |
| : <code>tunefs -L swap /dev/ada0</code>
| |
| </s>
| |
| : <code>glabel label swap /dev/ada0</code>
| |
|
| |
| : <code>swapon /dev/label/swap</code>
| |
|
| |
| : <code>$EDITOR /etc/fstab</code>
| |
| <pre>
| |
| procfs /proc procfs rw 0 0
| |
| linprocfs /compat/linux/proc linprocfs rw 0 0
| |
| /dev/label/efibsd /boot/efi msdosfs rw 0 0
| |
| </pre>
| |
| <pre>
| |
| /dev/label/swap none swap sw 0 0
| |
| </pre>
| |
|
| |
| : <code>glabel status</code>
| |
| <pre>
| |
| </pre>
| |
|
| |
| : <code>glabel list</code>
| |
| <pre>
| |
| </pre>
| |
|
| |
| <s>
| |
| : <code>glabel destroy swap</code>
| |
| </s>
| |