aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2016-08-19 22:41:11 +0100
committerSilvino Silva <silvino@bk.ru>2016-08-19 22:41:11 +0100
commitaa990cd7e4f7be6e760e9cbdd402041dfecca8c7 (patch)
treee777962d96cddf8e31d1d21d5c671bb91aecfb83 /conf
parentaac1d3295f8abbaa05945900a89490be98355f80 (diff)
downloaddoc-aa990cd7e4f7be6e760e9cbdd402041dfecca8c7.tar.gz
initial core configure script and doc
Diffstat (limited to 'conf')
-rw-r--r--conf/fstab63
-rw-r--r--conf/hosts19
-rw-r--r--conf/rc.conf12
-rw-r--r--conf/sudoers97
4 files changed, 191 insertions, 0 deletions
diff --git a/conf/fstab b/conf/fstab
new file mode 100644
index 0000000..b3133e6
--- /dev/null
+++ b/conf/fstab
@@ -0,0 +1,63 @@
+#
+# /etc/fstab: static file system information
+#
+# <file system> <dir> <type> <options> <dump> <pass>
+
+#/dev/#EXT4FS_ROOT# / ext4 defaults 0 1
+#/dev/#BTRFS_ROOT# / btrfs defaults 0 0
+#/dev/#XFS_ROOT# / xfs defaults 0 0
+#/dev/#SWAP# swap swap defaults 0 0
+#/dev/#EXT4FS_HOME# /home ext4 defaults 0 2
+#/dev/#BTRFS_HOME# /home btrfs defaults 0 0
+#/dev/#XFS_HOME# /home xfs defaults 0 0
+#/dev/cdrom /cdrom iso9660 ro,user,noauto,unhide 0 0
+#/dev/dvd /dvd udf ro,user,noauto,unhide 0 0
+#/dev/floppy/0 /floppy vfat user,noauto,unhide 0 0
+devpts /dev/pts devpts noexec,nosuid,gid=tty,mode=0620 0 0
+#tmp /tmp tmpfs defaults 0 0
+#shm /dev/shm tmpfs defaults 0 0
+#usb /proc/bus/usb usbfs defaults 0 0
+
+#/
+#/dev/sda3:
+UUID=f7fce1b0-5117-4b76-8c0e-00870a824ab2 / ext4 defaults 0 1
+
+#/boot
+#/dev/sda2:
+UUID=c8489141-7e72-4ddd-b27f-d21a6686bc23 /boot ext4 defaults,nodev,noexec,nosuid 0 2
+
+#/boot/efi
+#/dev/sda1:
+UUID=F74C-0993 /boot/efi vfat umask=0077 0 2
+
+#swap
+#/dev/sda4:
+UUID=0ec84a34-8255-465d-83b0-091dabafeb41 none swap sw 0 0
+
+#/var
+#/dev/sda5:
+UUID=8a417c13-95cd-40e3-bac7-e71a5a432985 /var ext4 defaults,nodev,noexec,nosuid 0 2
+
+
+#/tmp
+#/dev/sda6:
+UUID=2ce9a85c-fc86-4583-9146-5e23de8a000c /tmp ext4 defaults,nodev,nosuid,noexec 1 2
+
+#/usr
+#/dev/sda7:
+UUID=c16a02a6-a1bc-4a5a-bdf3-b843a3e9b196 /usr ext4 defaults,nodev 0 2
+
+#/var/ports/work
+#pkgmk /var/ports/work tmpfs size=20G,gid=101,uid=101,defaults 0 0
+
+## Home /home
+#UUID=935a4189-aea5-46c4-8e29-f9e9ace3addf /home ext4 defaults,nodev,nosuid,noexec 0 2
+
+devpts /dev/pts devpts noexec,nosuid,gid=tty,mode=0620 0 0
+
+#/dev/sda8: UUID="d2ba3926-0839-4179-b2b1-62256b51e964" TYPE="ext4" PARTUUID="71c78b3c-2898-47b7-adad-133f2b47eca8"
+#/dev/sda10: UUID="1158f1d1-71d9-4f76-a54e-538e34419d0b" TYPE="ext4" PARTUUID="b90776d1-8051-4751-acc6-7477dbb04e4e"
+#/dev/sda11: UUID="935a4189-aea5-46c4-8e29-f9e9ace3addf" TYPE="ext4" PARTUUID="6dd2492e-bd14-4177-9bc7-60bc3e330203"
+#
+
+# End of file
diff --git a/conf/hosts b/conf/hosts
new file mode 100644
index 0000000..2fb89fb
--- /dev/null
+++ b/conf/hosts
@@ -0,0 +1,19 @@
+#
+# /etc/hosts: static lookup table for host names
+#
+
+# IPv4
+127.0.0.1 localhost c9
+
+#<ip-address> <hostname.domain.org> <aliases>
+#192.168.1.9 c9.example.org
+
+# IPv6
+#::1 ip6-localhost ip6-loopback
+#fe00::0 ip6-localnet
+#ff00::0 ip6-mcastprefix
+#ff02::1 ip6-allnodes
+#ff02::2 ip6-allrouters
+#ff02::3 ip6-allhosts
+
+# End of file
diff --git a/conf/rc.conf b/conf/rc.conf
new file mode 100644
index 0000000..a9fffb8
--- /dev/null
+++ b/conf/rc.conf
@@ -0,0 +1,12 @@
+#
+# /etc/rc.conf: system configuration
+#
+
+FONT=default
+KEYMAP=dvorak
+TIMEZONE="Europe/Lisbon"
+HOSTNAME=c9
+SYSLOG=sysklogd
+SERVICES=(lo net crond)
+
+# End of file
diff --git a/conf/sudoers b/conf/sudoers
new file mode 100644
index 0000000..3b35ea9
--- /dev/null
+++ b/conf/sudoers
@@ -0,0 +1,97 @@
+## sudoers file.
+##
+## This file MUST be edited with the 'visudo' command as root.
+## Failure to use 'visudo' may result in syntax or file permission errors
+## that prevent sudo from running.
+##
+## See the sudoers man page for the details on how to write a sudoers file.
+##
+
+##
+## Host alias specification
+##
+## Groups of machines. These may include host names (optionally with wildcards),
+## IP addresses, network numbers or netgroups.
+# Host_Alias WEBSERVERS = www1, www2, www3
+
+##
+## User alias specification
+##
+## Groups of users. These may consist of user names, uids, Unix groups,
+## or netgroups.
+# User_Alias ADMINS = millert, dowdy, mikef
+
+##
+## Cmnd alias specification
+##
+## Groups of commands. Often used to group related commands together.
+# Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
+# /usr/bin/pkill, /usr/bin/top
+# Cmnd_Alias REBOOT = /sbin/halt, /sbin/reboot, /sbin/poweroff
+
+##
+## Defaults specification
+##
+## You may wish to keep some of the following environment variables
+## when running commands via sudo.
+##
+## Locale settings
+# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
+##
+## Run X applications through sudo; HOME is used to find the
+## .Xauthority file. Note that other programs use HOME to find
+## configuration files and this may lead to privilege escalation!
+# Defaults env_keep += "HOME"
+##
+## X11 resource path settings
+# Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
+##
+## Desktop path settings
+# Defaults env_keep += "QTDIR KDEDIR"
+##
+## Allow sudo-run commands to inherit the callers' ConsoleKit session
+# Defaults env_keep += "XDG_SESSION_COOKIE"
+##
+## Uncomment to enable special input methods. Care should be taken as
+## this may allow users to subvert the command being run via sudo.
+# Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
+##
+## Uncomment to use a hard-coded PATH instead of the user's to find commands
+# Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
+##
+## Uncomment to send mail if the user does not enter the correct password.
+# Defaults mail_badpass
+##
+## Uncomment to enable logging of a command's output, except for
+## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
+# Defaults log_output
+# Defaults!/usr/bin/sudoreplay !log_output
+# Defaults!/usr/local/bin/sudoreplay !log_output
+# Defaults!REBOOT !log_output
+
+##
+## Runas alias specification
+##
+
+##
+## User privilege specification
+##
+root ALL=(ALL) ALL
+
+## Uncomment to allow members of group wheel to execute any command
+%wheel ALL=(ALL) ALL
+
+## Same thing without a password
+# %wheel ALL=(ALL) NOPASSWD: ALL
+
+## Uncomment to allow members of group sudo to execute any command
+# %sudo ALL=(ALL) ALL
+
+## Uncomment to allow any user to run sudo if they know the password
+## of the user they are running the command as (root by default).
+# Defaults targetpw # Ask for the password of the target user
+# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
+
+## Read drop-in files from /etc/sudoers.d
+## (the '#' here does not indicate a comment)
+#includedir /etc/sudoers.d