Ports for newly installed system

Table of Contents

Update the ports
The ports I always install
Useful scripts

Useful scripts

by ross at 07:03:15 on November 18, 2012

Some scripts are not in the ports.

Have a look at this page for a number of my backup periodic scripts. I also have a couple of Openbox scripts.

Free memory

The script by Ralf S. Engelschall will display detailed information on memory usage:

SYSTEM MEMORY INFORMATION:
mem_wire:        1805578240 (   1721MB) [ 21%] Wired: disabled for paging out
mem_active:  +   2320678912 (   2213MB) [ 28%] Active: recently referenced
mem_inactive:+   3842084864 (   3664MB) [ 46%] Inactive: recently not referenced
mem_cache:   +    233017344 (    222MB) [  2%] Cached: almost avail. for allocation
mem_free:    +     78188544 (     74MB) [  0%] Free: fully available for allocation
mem_gap_vm:  +      1466368 (      1MB) [  0%] Memory gap: UNKNOWN
-------------- ------------ ----------- ------
mem_all:     =   8281014272 (   7897MB) [100%] Total real memory managed
mem_gap_sys: +    268271616 (    255MB)        Memory gap: Kernel?!
-------------- ------------ -----------
mem_phys:    =   8549285888 (   8153MB)        Total real memory available
mem_gap_hw:  +     40648704 (     38MB)        Memory gap: Segment Mappings?!
-------------- ------------ -----------
mem_hw:      =   8589934592 (   8192MB)        Total real memory installed

SYSTEM MEMORY SUMMARY:
mem_used:        4436643840 (   4231MB) [ 51%] Logically used memory
mem_avail:   +   4153290752 (   3960MB) [ 48%] Logically available memory
-------------- ------------ ----------- ------
mem_total:   =   8589934592 (   8192MB) [100%] Logically total memory

Download:

# cd /root/bin
# fetch http://daemon-notes.com/downloads/assets/scripts/free
# chmod a+x free

Auto start X

If you are the only user and do not want GDM/KDM you can start X automatically.

Download:

# cd /usr/local/etc/rc.d
# fetch http://daemon-notes.com/downloads/assets/scripts/autostartx
# chmod a+x autostartx

Add to /etc/rc.conf:

# Auto start X
autostartx_enable="YES"
autostartx_user="xbmc"

If you need Kerberos authorization you must create a keytab file for the user (this creates a security risk of course). For user xbmc (run this as root):

# kadmin
kadmin> ext --keytab=/etc/krb5.keytab.xbmc xbmc
root/admin@LOCAL's Password: 
kadmin> quit
# chown xbmc /etc/krb5.keytab.xbmc

Now add autostartx_kinit="YES" to /etc/rc.conf.

Comments