break
Apr 6

View Ports
cd /usr/ports
ls
Install A Port
/usr/ports/pathto/port make install clean
Example - Installs the IRC Bouncer Miau:
cd /usr/ports/irc/miau
make install clean
Un-Install A Port
/usr/ports/pathto/port make deinstall
Example - Un-Installs the IRC Bouncer Miau:
cd /usr/ports/irc/miau
make deinstall
Update Ports Collection
as root,
cp /usr/share/examples/cvsup/ports-supfile /root/ports-supfile
pico ports-supfile (or whichever text editor you use)
Change CHANGE_THIS.FreeBSD.org to a CVSup server near you.
to run cvsup
cvsup -L 2 /root/ports-supfile

Apr 6

Portsnap can be a useful tool when updating your FreeBSD Ports Collection.
To install portsnap:
AS ROOT:
# cd /usr/ports/sysutils/portsnap
# make
# make install
If these operations run successfully you can now run portsnap.
As root, perform this command:
# portsnap fetch
Portsnap will then retrieve the latest version of the Ports tree metadata.
NOTE: The first time you run portsnap, YOU MUST ALSO [...]

Apr 6

Getting in
start a new screen session: screen
attach to a running session: screen -r
attach multiple terminals to an attached, running session: screen -rx
the “ultimate attach”: screen -dRR (Attaches to a screen session. If the session is attached elsewhere, detaches that other display. If no session exists, creates one. If multiple sessions exist, uses the first one.)
Escape [...]