Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 8 commits
  • 13 files changed
  • 0 comments
  • 1 contributor
3  etc/Makefile
@@ -25,6 +25,7 @@ BIN1= crontab \
25 25 login.access \
26 26 login.conf \
27 27 mac.conf \
  28 + make.conf \
28 29 motd \
29 30 netconfig \
30 31 network.subr \
@@ -36,6 +37,8 @@ BIN1= crontab \
36 37 protocols \
37 38 rc \
38 39 rc.bsdextended \
  40 + rc.conf.pcbsd \
  41 + rc.delay \
39 42 rc.firewall \
40 43 rc.initdiskless \
41 44 rc.sendmail \
18 etc/csh.cshrc
... ... @@ -1,3 +1,19 @@
1   -# $FreeBSD$
  1 +# $FreeBSD: src/etc/csh.cshrc,v 1.3 1999/08/27 23:23:40 peter Exp $
2 2 #
3 3 # System-wide .cshrc file for csh(1).
  4 +if ( $?LANG ) then
  5 +else
  6 + setenv LANG en_US.UTF-8
  7 +endif
  8 +#setenv LC_CTYPE en_US.UTF-8
  9 +#setenv LC_COLLATE POSIX
  10 +setenv EDITOR ee
  11 +setenv PAGER less
  12 +setenv BLOCKSIZE K
  13 +
  14 +# Set the MANPATH
  15 +unsetenv MANPATH
  16 +setenv MANPATH `manpath`
  17 +
  18 +# Enable the delete key
  19 +bindkey [3~ delete-char
2  etc/defaults/periodic.conf
@@ -230,7 +230,7 @@ weekly_show_info="YES" # scripts returning 1
230 230 weekly_show_badconfig="NO" # scripts returning 2
231 231
232 232 # 310.locate
233   -weekly_locate_enable="YES" # Update locate weekly
  233 +weekly_locate_enable="NO" # Update locate weekly
234 234
235 235 # 320.whatis
236 236 weekly_whatis_enable="YES" # Update whatis weekly
2  etc/defaults/rc.conf
@@ -56,7 +56,7 @@ populate_var="AUTO" # Set to YES to always (re)populate /var, NO to never
56 56 cleanvar_enable="YES" # Clean the /var directory
57 57 local_startup="/usr/local/etc/rc.d" # startup script dirs.
58 58 script_name_sep=" " # Change if your startup scripts' names contain spaces
59   -rc_conf_files="/etc/rc.conf /etc/rc.conf.local"
  59 +rc_conf_files="/etc/rc.conf.pcbsd /etc/rc.conf /etc/rc.conf.local"
60 60
61 61 # ZFS support
62 62 zfs_enable="NO" # Set to YES to automatically mount ZFS file systems
4 etc/freebsd-update.conf
@@ -3,13 +3,13 @@
3 3 # Trusted keyprint. Changing this is a Bad Idea unless you've received
4 4 # a PGP-signed email from <security-officer@FreeBSD.org> telling you to
5 5 # change it and explaining why.
6   -KeyPrint 800651ef4b4c71c27e60786d7b487188970f4b4169cc055784e21eb71d410cc5
  6 +KeyPrint 771f0e6c8d9de2df1f70a2872a3d25716e6a7a50c32fc4f7ba15746cbf18ce7f
7 7
8 8 # Server or server pool from which to fetch updates. You can change
9 9 # this to point at a specific server if you want, but in most cases
10 10 # using a "nearby" server won't provide a measurable improvement in
11 11 # performance.
12   -ServerName update.FreeBSD.org
  12 +ServerName fbsd-update.pcbsd.org
13 13
14 14 # Components of the base system which should be kept updated.
15 15 Components src world kernel
8 etc/make.conf
... ... @@ -0,0 +1,8 @@
  1 +# Uncomment this if you want to do port builds with no interaction
  2 +#BATCH=yes
  3 +
  4 +# Keep KDE4 in /usr/local, fixes sharing of icons / mime and others
  5 +KDE4_PREFIX=/usr/local
  6 +
  7 +# Enable PKGNG
  8 +WITH_PKGNG=yes
26 etc/motd
... ... @@ -1,25 +1,3 @@
1   -FreeBSD ?.?.? (UNKNOWN)
2   -
3   -Welcome to FreeBSD!
4   -
5   -Before seeking technical support, please use the following resources:
6   -
7   -o Security advisories and updated errata information for all releases are
8   - at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
9   - for your release first as it's updated frequently.
10   -
11   -o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
12   - along with the mailing lists, can be searched by going to
13   - http://www.FreeBSD.org/search/. If the doc package has been installed
14   - (or fetched via pkg_add -r lang-freebsd-doc, where lang is the
15   - 2-letter language code, e.g. en), they are also available formatted
16   - in /usr/local/share/doc/freebsd.
17   -
18   -If you still have a question or problem, please take the output of
19   -`uname -a', along with any relevant error messages, and email it
20   -as a question to the questions@FreeBSD.org mailing list. If you are
21   -unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
22   -manual page. If you are not familiar with manual pages, type `man man'.
23   -
24   -Edit /etc/motd to change this login announcement.
  1 +Welcome to PC-BSD!
25 2
  3 +For information on the web, visit us at www.pcbsd.org
15 etc/profile
... ... @@ -1,4 +1,4 @@
1   -# $FreeBSD$
  1 +# $FreeBSD: src/etc/profile,v 1.14 2004/06/06 11:46:27 schweikh Exp $
2 2 #
3 3 # System-wide .profile file for sh(1).
4 4 #
@@ -12,7 +12,16 @@
12 12 # You should also read the setlocale(3) man page for information
13 13 # on how to achieve more precise control of locale settings.
14 14 #
15   -# Check system messages
16   -# msgs -q
  15 +# Read system messages
  16 +# msgs -f
17 17 # Allow terminal messages
18 18 # mesg y
  19 +if [ -z "$LANG" -o "$LANG" = "C" ] ; then
  20 + LANG="en_US.UTF-8"; export LANG
  21 +fi
  22 +#LC_CTYPE="en_US.UTF-8"; export LC_CTYPE
  23 +#LC_COLLATE="POSIX"; export LC_COLLATE
  24 +EDITOR=ee; export EDITOR
  25 +PAGER=less; export PAGER
  26 +BLOCKSIZE=K; export BLOCKSIZE
  27 +
67 etc/rc
@@ -96,22 +96,69 @@ done
96 96
97 97 unset files local_rc
98 98
99   -# Now that disks are mounted, for each dir in $local_startup
100   -# search for init scripts that use the new rc.d semantics.
101   -#
102   -case ${local_startup} in
103   -[Nn][Oo] | '') ;;
104   -*) find_local_scripts_new ;;
105   -esac
  99 +# Check if we are needing to finish up a freebsd-update
  100 +if [ -e "/var/.freebsd-update-finish" ] ; then
  101 + TERM="cons25" ; export TERM
  102 + clear
  103 + echo "Installing FreeBSD updates... Please wait..."
  104 + /usr/sbin/freebsd-update --non-interactive install
  105 + if [ -e "/usr/local/bin/pc-softwaremanager" ] ; then
  106 + /usr/local/bin/pc-extractoverlay desktop
  107 + else
  108 + /usr/local/bin/pc-extractoverlay server
  109 + fi
  110 + echo "Press ENTER to continue"
  111 + read tmp
  112 +fi
106 113
107   -files=`rcorder ${skip} /etc/rc.d/* ${local_rc} 2>/dev/null`
108   -for _rc_elem in ${files}; do
  114 +if [ "$fastboot_enable" = "YES" ]; then
  115 + # We are fast-booting
  116 +
  117 + # List of rc.d scripts we will start before login
  118 + preLoad="/etc/rc.d/hostname /etc/rc.d/random /etc/rc.d/adjkerntz /etc/rc.d/cleanvar /etc/rc.d/hostid /etc/rc.d/ldconfig /etc/rc.d/zfs /etc/rc.d/zvol /etc/rc.d/cleartmp $fastboot_earlyrc "
  119 +
  120 + # Start loopback device
  121 + /etc/rc.d/netif start lo0
  122 +
  123 + # Run the early scripts now
  124 + for i in $preLoad
  125 + do
  126 + run_rc_script ${i} ${_boot}
  127 + done
  128 +
  129 + # Check for USB mouse to start
  130 + mChk="ums0 ums1"
  131 + for i in $mChk
  132 + do
  133 + if [ -e "/dev/$i" ] ; then
  134 + /etc/rc.d/moused start $i
  135 + fi
  136 + done
  137 +
  138 + # Start the delayed services after the login is up
  139 + (sleep 5; nice /bin/sh /etc/rc.delay "$_rc_elem_done$preLoad")&
  140 +else
  141 + # Performing a normal startup
  142 +
  143 + # Now that disks are mounted, for each dir in $local_startup
  144 + # search for init scripts that use the new rc.d semantics.
  145 + #
  146 +
  147 + case ${local_startup} in
  148 + [Nn][Oo] | '') ;;
  149 + *) find_local_scripts_new ;;
  150 + esac
  151 +
  152 + files=`rcorder ${skip} /etc/rc.d/* ${local_rc} 2>/dev/null`
  153 + for _rc_elem in ${files}; do
109 154 case "$_rc_elem_done" in
110 155 *" $_rc_elem "*) continue ;;
111 156 esac
112 157
113 158 run_rc_script ${_rc_elem} ${_boot}
114   -done
  159 + done
  160 +
  161 +fi
115 162
116 163 echo ''
117 164 date
163 etc/rc.conf.pcbsd
... ... @@ -0,0 +1,163 @@
  1 +# PC-BSD rc.conf file
  2 +#
  3 +# WARNING - WARNING - WARNING - WARNING - WARNING - WARNING
  4 +#
  5 +# This file *will* be overwritten during upgrades
  6 +# Place your local changes & overrides into /etc/rc.conf
  7 +#
  8 +# WARNING - WARNING - WARNING - WARNING - WARNING - WARNING
  9 +###########################################################
  10 +
  11 +# Defaults for TrueOS servers
  12 +if [ -e "/etc/defaults/trueos" ] ; then
  13 +
  14 + # FSCK Enhancements
  15 + fsck_y_enable="YES"
  16 +
  17 + # Enable pbid
  18 + pbid_enable="YES"
  19 +
  20 + # Enable the Warden
  21 + warden_enable="YES"
  22 +
  23 + # Load the following kernel modules
  24 + kld_list="libiconv libmchain msdosfs_iconv sem ntfs ntfs_iconv udf udf_iconv ext2fs pefs xfs reiserfs smbfs fdescfs linsysfs"
  25 +
  26 + # Enable FSC
  27 + fscd_enable="YES"
  28 +
  29 + # Enable ntpd
  30 + ntpd_enable="YES"
  31 + ntpd_sync_on_start="YES"
  32 +
  33 + # Enable IPFW for Warden
  34 + firewall_enable="YES"
  35 + firewall_type="open"
  36 +
  37 +fi
  38 +
  39 +# Defaults for PC-BSD desktops
  40 +if [ -e "/etc/defaults/pcbsd" ] ; then
  41 +
  42 + background_dhclient="YES"
  43 + hostname="pcbsd"
  44 + compat5x_enable="YES"
  45 + sshd_enable="NO"
  46 + devd_enable="YES"
  47 + devfs_system_ruleset="devfsrules_common"
  48 + ldconfig_paths="/usr/lib/compat /usr/local/lib /usr/local/kde4/lib /usr/local/lib/compat/pkg"
  49 +
  50 + # Disable Sendmail by default
  51 + sendmail_enable="NONE"
  52 + sendmail_submit_enable="NO"
  53 + sendmail_outbound_enable="NO"
  54 + sendmail_msp_queue_enable="NO"
  55 +
  56 + #Enable samba server
  57 + samba_enable="YES"
  58 + winbindd_enable="YES"
  59 +
  60 + # Disable LPD
  61 + lpd_enable="NO"
  62 +
  63 + # Enable CUPS
  64 + cupsd_enable="YES"
  65 + linux_enable="YES"
  66 +
  67 + # FSCK Enhancements
  68 + fsck_y_enable="YES"
  69 +
  70 + # powerd: adaptive speed while on AC power, adaptive while on battery power
  71 + powerd_enable="YES"
  72 + powerd_flags="-a hiadaptive -b adaptive" # set CPU frequency
  73 +
  74 + # enable HAL / DBUS
  75 + dbus_enable="YES"
  76 + hald_enable="YES"
  77 +
  78 + # Enable the firewall
  79 + pf_rules="/etc/pf.conf"
  80 + pf_enable="YES"
  81 + pf_flags=""
  82 +
  83 + # Enable sound-support
  84 + mixer_enable="YES"
  85 +
  86 + # Enable avahi_daemon
  87 + avahi_daemon_enable="YES"
  88 +
  89 + # Start the swapexd daemon
  90 + swapexd_enable="YES"
  91 +
  92 + # Enable IPV6 support
  93 + ipv6_activate_all_interfaces="YES"
  94 +
  95 + # Enable BSDStats
  96 + bsdstats_enable="YES"
  97 +
  98 + # Enable webcamd
  99 + webcamd_enable="YES"
  100 +
  101 + # Disable writing syslogs to remote devices by default
  102 + syslogd_flags="-c -ss"
  103 +
  104 + # Enable pbid
  105 + pbid_enable="YES"
  106 +
  107 + # Enable the gdm display manager
  108 + gdm_enable="YES"
  109 +
  110 + # Enable BlueTooth
  111 + hcsecd_enable="YES"
  112 + sdpd_enable="YES"
  113 +
  114 + # Load the following kernel modules
  115 + kld_list="libiconv libmchain msdosfs_iconv if_bwn if_bwi bwi_v3_ucode bwn_v4_ucode runfw ng_ubt cuse4bsd sem ntfs ntfs_iconv udf udf_iconv ext2fs mmc mmcsd scd geom_uzip pefs xfs reiserfs smbfs fdescfs linsysfs iwn4965fw iwn1000fw iwn5000fw iwn5150fw iwn6000fw iwn6000g2afw iwn6000g2bfw iwn6050fw acpi_video"
  116 +
  117 + # Clean out temporary files.
  118 + clear_tmp_enable="YES"
  119 + clean_tmp_X="YES"
  120 +
  121 + # Run the pcbsd init service
  122 + pcbsdinit_enable="YES"
  123 +
  124 + # Enable anacron
  125 + anacron_enable="YES"
  126 +
  127 + # Enable fusefs
  128 + fusefs_enable="YES"
  129 +
  130 + # Enable volmand
  131 + volmand_enable="YES"
  132 +
  133 + # Enable pefs
  134 + pefs_enable="YES"
  135 +
  136 + # Enable moused
  137 + moused_enable="YES"
  138 +
  139 + # Enable fast-booting
  140 + fastboot_enable="YES"
  141 + fastboot_earlyrc="/etc/rc.d/moused /usr/local/etc/rc.d/pefs /usr/local/etc/rc.d/dbus /usr/local/etc/rc.d/hald /usr/local/etc/rc.d/gdm"
  142 +
  143 + # Enable the Warden
  144 + warden_enable="YES"
  145 +
  146 + # Enable fail2ban
  147 + fail2ban_enable="YES"
  148 +
  149 + # Enable FSC
  150 + fscd_enable="YES"
  151 +
  152 + # Enable uhidd
  153 + uhidd_enable="YES"
  154 +
  155 + # Enable ntpd
  156 + ntpd_enable="YES"
  157 + ntpd_sync_on_start="YES"
  158 +
  159 + # Enable IPFW for Warden
  160 + firewall_enable="YES"
  161 + firewall_type="open"
  162 +
  163 +fi
98 etc/rc.delay
... ... @@ -0,0 +1,98 @@
  1 +#!/bin/sh
  2 +#
  3 +# Copyright (c) 2000-2004 The FreeBSD Project
  4 +# All rights reserved.
  5 +#
  6 +# Redistribution and use in source and binary forms, with or without
  7 +# modification, are permitted provided that the following conditions
  8 +# are met:
  9 +# 1. Redistributions of source code must retain the above copyright
  10 +# notice, this list of conditions and the following disclaimer.
  11 +# 2. Redistributions in binary form must reproduce the above copyright
  12 +# notice, this list of conditions and the following disclaimer in the
  13 +# documentation and/or other materials provided with the distribution.
  14 +#
  15 +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  16 +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  17 +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  18 +# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  19 +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  20 +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  21 +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  22 +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  23 +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  24 +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  25 +# SUCH DAMAGE.
  26 +#
  27 +# @(#)rc 5.27 (Berkeley) 6/5/91
  28 +# $FreeBSD$
  29 +#
  30 +
  31 +# Delayed system startup script run by /etc/rc after bootup
  32 +# Output and error are redirected to /var/log/rc_delay.log
  33 +
  34 +# Note that almost all of the user-configurable behavior is no longer in
  35 +# this file, but rather in /etc/defaults/rc.conf. Please check that file
  36 +# first before contemplating any changes here. If you do need to change
  37 +# this file for some reason, we would like to know about it.
  38 +
  39 +stty status '^T'
  40 +
  41 +# Set shell to ignore SIGINT (2), but not children;
  42 +# shell catches SIGQUIT (3) and returns to single user.
  43 +#
  44 +trap : 2
  45 +trap "echo 'Boot interrupted'; exit 1" 3
  46 +
  47 +HOME=/
  48 +PATH=/sbin:/bin:/usr/sbin:/usr/bin
  49 +export HOME PATH
  50 +
  51 +autoboot=yes
  52 +_boot="faststart"
  53 +rc_fast=yes # run_rc_command(): do fast booting
  54 +_log="/var/log/rc_delay.log"
  55 +echo "Starting delayed services `date`" > $_log
  56 +
  57 +dlv=`/sbin/sysctl -n vfs.nfs.diskless_valid 2> /dev/null`
  58 +if [ ${dlv:=0} -ne 0 -o -f /etc/diskless ]; then
  59 + sh /etc/rc.initdiskless
  60 +fi
  61 +
  62 +# Run these after determining whether we are booting diskless in order
  63 +# to minimize the number of files that are needed on a diskless system,
  64 +# and to make the configuration file variables available to rc itself.
  65 +#
  66 +. /etc/rc.subr
  67 +load_rc_config 'XXX'
  68 +
  69 +skip="-s nostart"
  70 +if [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ]; then
  71 + skip="$skip -s nojail"
  72 + if [ "$early_late_divider" = "FILESYSTEMS" ]; then
  73 + early_late_divider=NETWORKING
  74 + fi
  75 +fi
  76 +
  77 +unset files local_rc
  78 +_rc_elem_done="$1"
  79 +
  80 +# Now that disks are mounted, for each dir in $local_startup
  81 +# search for init scripts that use the new rc.d semantics.
  82 +#
  83 +case ${local_startup} in
  84 +[Nn][Oo] | '') ;;
  85 +*) find_local_scripts_new ;;
  86 +esac
  87 +
  88 +files=`rcorder ${skip} /etc/rc.d/* ${local_rc} 2>/dev/null`
  89 +for _rc_elem in ${files}; do
  90 + case "$_rc_elem_done" in
  91 + *" $_rc_elem "*) continue ;;
  92 + esac
  93 +
  94 + run_rc_script ${_rc_elem} ${_boot} >>${_log}
  95 +done
  96 +
  97 +echo "Finished starting delayed services `date`" >> $_log
  98 +exit 0
10 etc/rc.resume
@@ -24,7 +24,7 @@
24 24 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 25 # SUCH DAMAGE.
26 26 #
27   -# $FreeBSD$
  27 +# $FreeBSD: releng/9.1/etc/rc.resume 232083 2012-02-23 22:10:49Z jkim $
28 28 #
29 29
30 30 # sample run command file for APM Resume Event
@@ -54,9 +54,15 @@ fi
54 54
55 55 # wpa_supplicant(8) doesn't seem to reassociate during resume. Uncomment
56 56 # the following to signal it to reassociate.
57   -# /usr/sbin/wpa_cli reassociate
  57 +ifconfig | grep -q 'wlan[0-9]:'
  58 +if [ $? -eq 0 ] ; then
  59 + /usr/sbin/wpa_cli reassociate
  60 +fi
58 61
59 62 /usr/bin/logger -t $subsystem resumed at `/bin/date +'%Y%m%d %H:%M:%S'`
60 63 /bin/sync && /bin/sync && /bin/sync
61 64
  65 +# Restart moused to fix suspend
  66 +/etc/rc.d/moused restart
  67 +
62 68 exit 0
44 etc/sysctl.conf
... ... @@ -1,4 +1,4 @@
1   -# $FreeBSD$
  1 +# $FreeBSD: src/etc/sysctl.conf,v 1.8 2003/03/13 18:43:50 mux Exp $
2 2 #
3 3 # This file is read when going to multi-user and its contents piped thru
4 4 # ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for details.
@@ -7,3 +7,45 @@
7 7 # Uncomment this to prevent users from seeing information about processes that
8 8 # are being run under another UID.
9 9 #security.bsd.see_other_uids=0
  10 +
  11 +# Disable coredump
  12 +kern.coredump=0
  13 +
  14 +# Up the maxfiles to 4x default
  15 +kern.maxfiles=49312
  16 +
  17 +# Allow users to mount CD's
  18 +vfs.usermount=1
  19 +
  20 +# Autodetect the most recent sound card. Uncomment for Digital output / USB
  21 +#hw.snd.default_auto=1
  22 +
  23 +# Allow pinging in jails
  24 +security.jail.allow_raw_sockets=1
  25 +
  26 +# Required for postgres
  27 +security.jail.sysvipc_allowed=1
  28 +
  29 +# Required for smb
  30 +security.jail.mount_allowed=1
  31 +
  32 +# Solves permission problems for some ports
  33 +security.jail.chflags_allowed=1
  34 +
  35 +# Disable the system speaker
  36 +hw.syscons.bell=0
  37 +
  38 +# Tune for desktop usage
  39 +kern.sched.preempt_thresh=224
  40 +
  41 +# Enable for proper lagg failover
  42 +#net.link.lagg.failover_rx_all=1
  43 +
  44 +# Enable shm_allow_removed
  45 +kern.ipc.shm_allow_removed=1
  46 +
  47 +# Speed up the shutdown process
  48 +kern.shutdown.poweroff_delay=500
  49 +
  50 +# Disable DRI debug messages flooding the console
  51 +hw.dri.debug=0

No commit comments for this range

Something went wrong with that request. Please try again.