FreeBSD: Difference between revisions

From Sasara
Jump to navigationJump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[File:Beastie.jpg|right|128px]]
'''FreeBSD''' is [[User:Rubenerd|Rubenerd's]] favourite operating system. This is a page of our notes.
'''FreeBSD''' is [[User:Rubenerd|Rubenerd's]] favourite operating system. This is a page of our notes.


Line 41: Line 43:
  # chflags schg $FILE_TO_MAKE_IMMUTABLE
  # chflags schg $FILE_TO_MAKE_IMMUTABLE
  # chflags noschg $FILE_TO_MAKE_MUTABLE
  # chflags noschg $FILE_TO_MAKE_MUTABLE
==Prevent motd(5) being overwritten==
# sysrc update_motd="NO"


==Reload pf rules==
==Reload pf rules==

Latest revision as of 12:16, 1 September 2025

FreeBSD is Rubenerd's favourite operating system. This is a page of our notes.

Links

Bootstrap local pkgsrc

$ cd ~
$ env CVS_RSH=ssh cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P pkgsrc
$ cd pkgsrc/bootstrap
$ ./bootstrap

Checkout partial ports tree

# svn checkout --depth empty https://svn.freebsd.org/ports/head /usr/ports
# cd /usr/ports
# svn update --set-depth files
# svn update Mk
# svn update Templates
# svn update Tools
# svn update --set-depth files games
# cd games

Essential packages

# pkg install git-lite lzop lsof oksh openntpd rsync tmux

Get latest pkgng

# mkdir -p /usr/local/etc/pkg/repos
# cp /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/
# sed -i  's/quarterly/latest/g' /usr/local/etc/pkg/repos/FreeBSD.conf

Immutable file flags

Note this doesn't work in jails; this must be done on the host.

# chflags schg $FILE_TO_MAKE_IMMUTABLE
# chflags noschg $FILE_TO_MAKE_MUTABLE

Prevent motd(5) being overwritten

# sysrc update_motd="NO"

Reload pf rules

# pfctl -f /etc/pf.conf