Skip navigation.

Stvn

my notes on using PC-BSD

Monitor Off PCBSD

Enter:

Option "DPMS"

in the monitor section of /etc/X11/xorg.conf

then Enable Power Management.

link


PC-BSD, Netgear WG511TNAR, WPA, DHCP

open terminal

# kedit /boot/loader.conf

wlan_wep_load="YES"
wlan_tkip_load="YES"
wlan_ccmp_load="YES"
wlan_xauth_load="YES"
wlan_acl_load="YES"
if_ath_load="YES" #If using an Atheros wifi card

DHCP Setup

# kedit /etc/rc.conf

ifconfig_ath0="WPA DHCP"

WPA Supplicant setup

# kedit /etc/wpa_supplicant.conf

network={
ssid="ooioo"
psk="************"
}

# wpa_supplicant -i ath0 -c /etc/wpa_supplicant.conf

reboot and it should connect automatically!

Firewall PCBSD

Needed to disable Packet Filter (with # pfctl -d) to let ktorrent work properly on PC-BSD.

PF: The OpenBSD Packet Filter

you can also activate and deactivate PF by using the pfctl(8) program:
# pfctl -e
# pfctl -d
to enable and disable, respectively. Note that this just enables or disables PF, it doesn't actually load a ruleset. The ruleset must be loaded separately, either before or after PF is enabled.

-------------

After boot, PF operation can be managed using the pfctl(8) program. Some example commands are:
# pfctl -f /etc/pf.conf Load the pf.conf file
# pfctl -nf /etc/pf.conf Parse the file, but don't load it
# pfctl -Nf /etc/pf.conf Load only the NAT rules from the file
# pfctl -Rf /etc/pf.conf Load only the filter rules from the file

# pfctl -sn Show the current NAT rules
# pfctl -sr Show the current filter rules
# pfctl -ss Show the current state table
# pfctl -si Show filter stats and counters
# pfctl -sa Show EVERYTHING it can show

Network Manager on Xubuntu

To start it:

Applications>Run Program>'nm-applet'

To start at startup:

Applications>Settings>Autostarted Applications:
- click "+ Add"
- type in these values:
- name = "network applet"
- command = "nm-applet --sm-disable &"

System Tray needs to be enabled.

BitTorrent Linux Links

List of pages with info on BitTorrent from the command line.

BitTorrent for Linux
http://applications.linux.com/article.pl?sid=05/08/26/2018208&tid=27

BitTorrent downloads on headless machines via CLI
http://www.linuxweblog.com/command-line-bittorrent

BitTorrent Usage Guide
http://linuxreviews.org/software/p2p/bittorrent/

btdownloadheadless
http://www.penguin-soft.com/penguin/man/1/btdownloadheadless.bittornado.html?section=1&name=btdownloadheadless.bittornado

Where to find:

/usr/bin/btdownloadheadless
/usr/bin/btdownloadcurses

Creating/Extracting a TAR archive

http://www.computerhope.com/unix/utar.htm

EXAMPLES

Note: A ".tar" file is not a compressed files, it is actually a collection of files within a single file uncompressed. If the file is a .tar.gz ("tarball") or ".tgz" file it is a collection of files that is compressed. If you are looking to compress a file you would create the tar file then gzip the file.

Creating a tar file:

tar -cvvf file.tar myfile.txt

In the above example the system would create a tar named file.tar in the directory you currently are in. Wildcards could also be used in this command, for example: tar -cvvf file.tar *.txt would compress all txt files in the current directory.

tar -cvvf home.tar home/

In the above example command the system would create a tar file named home.tar in the directory you currently are in of the home directory.

Extracting the files from a tar file:

tar -xvvf myfile.tar

In the above example command the system would uncompress (untar) the myfile.tar file in the current directory.

tar -xvvzf myfile.tar.gz

In the above example command the system would uncompress (untar) the myfile.tar.gz file in the current directory.

Note: There is no "untar" linux / unix command.

Creating a tarred file that is compressed with bzip

tar -cjvf test.tbz home/

Adding the j option to the tar command enables tar to compress files and/or directories using bzip. In the above example the home directory and all its subdirectories are added to the compressed test.tbz file.

Ubuntu Dapper Drake / NetworkManager / WiFi WPA-PSK

Links and files to help get the above going.

http://fredericiana.com/2006/06/11/ubuntu-dapper-drake-and-wpa-encrypted-wireless/comment-page-3/

sudo apt-get install network-manager-gnome

(if not found:

http://ubuntuguide.org/wiki/Dapper#How_to_add_extra_repositories

sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup
gksudo gedit /etc/apt/sources.list (this didn't work for me and had to use a different editor)
take out comments to activate repositories and use Add/Remove... to install,

else install files from archived debs in NetworkManager.tar starting with network-manager (maybe 1 .deb which isn't needed, install util. prompts for missing.))

sudo gedit /etc/network/interfaces — Comment out everything but “lo” entries in that file

Reboot your system
Left-click the network manager icon in Gnome and select your wireless network
Follow the prompts for password, type, etc.
It will ask you to choose a password for your new “keyring”.
Be happy

January 2010
S M T W T F S
December 2009February 2010
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30