Copyright © 2010 Lockstockmods. All Rights Reserved. Snowblind by Themes by bavotasan.com. Powered by WordPress.
FreeBSD
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
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 ISSUE THIS COMMAND:
# portsnap extract
This causes the ports tree to be handed over to portsnap for a smooth update. You will only need to do this the first time you run portsnap.
Then, to actually perform the update, issue this command:
# portsnap update
Once that is finished you will have the latest snapshot of the Ports Collection.
Continue Reading »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 key
All screen commands are prefixed by an escape key, by default Ctrl+a (sometimes written ^A). To send a literal Ctrl+a to the programs in screen, use Ctrl+a a.
Getting out
detach: Ctrl+a d
exit screen: exit all of the programs in screen.
force-exit screen: Ctrl+a C-\ (not recommended)
Help
See help: Ctrl+a ? (lists keybindings)
Window Management
create new window: Ctrl+a c
change to last active window: Ctrl+a Ctrl+a
change to window by number: Ctrl+a <number> (only for windows 0 to 9)
change to window by number or name: Ctrl+a ‘ <number or title>
change to next window in list: Ctrl+a n or Ctrl+a <space>
change to previous window in list: Ctrl+a p
see window list: Ctrl+a “
close current window: Close all applications in the current window (including shell)
kill current window: Ctrl+a k (not recommended)
Split screen
split display: Ctrl+a S
jump to next display region: Ctrl+a tab
remove current region: Ctrl+a X
remove all regions but the current one: Ctrl+a Q
Misc
redraw window: Ctrl+a C-l
enter copy mode: Ctrl+a [ (also used for viewing scrollback buffer)
paste: Ctrl+a ]
monitor window for activity: Ctrl+a M
monitor window for silence: Ctrl+a _
enter digraph: Ctrl+a Ctrl+v
lock (password protect) display: Ctrl+a x
enter screen command: Ctrl+a :


Recent Comments