Advertisement
Guest User

Untitled

a guest
Nov 4th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.47 KB | None | 0 0
  1. # pick keybaord layout
  2.  
  3. select US english QWERTY
  4.  
  5. # hostname
  6.  
  7. host
  8.  
  9. # which pages to install
  10.  
  11. ports
  12.  
  13. lib32
  14.  
  15. # partitioning
  16.  
  17. Auto (ZFS)
  18.  
  19. Encrypt Swap (Yes)
  20.  
  21. Swap Size (3G)
  22.  
  23. Encrypted Disks (Yes)
  24.  
  25. Set Decryption Passphrase
  26.  
  27. # network
  28.  
  29. select iwn0
  30.  
  31. Regdomain/country (No)
  32.  
  33. Pick WiFi and enter Key
  34.  
  35. IPv4 (yes)
  36.  
  37. DHCPD (yes)
  38.  
  39. IPv6 (no)
  40.  
  41. # system configuration
  42.  
  43. Start at boot:
  44.  
  45. moused
  46.  
  47. powerd
  48.  
  49. dumpdev
  50.  
  51. # system hardening
  52.  
  53. yes to all
  54.  
  55.  
  56. # add user
  57.  
  58. username: user
  59.  
  60. full name: User
  61.  
  62. Uid: *hit enter*
  63.  
  64. login group: wheel
  65.  
  66. invite to other groups: games
  67.  
  68. login class: default
  69.  
  70. shell: csh
  71.  
  72. home directory: default
  73.  
  74. home directory permissions: default
  75.  
  76. use password-based authentication: yes
  77.  
  78. use an empty password: no
  79.  
  80. use a random password: no
  81.  
  82. enter password
  83.  
  84. lock out the account after creation: no
  85.  
  86. # post install
  87.  
  88. login as root
  89.  
  90. # shut off the beep in the tty:
  91.  
  92. kbdcontrol -b quiet.off
  93.  
  94. vi /etc/rc.conf:
  95.  
  96. allscreens_kbdflags="-b quiet.off"
  97.  
  98. # update the system and install packages:
  99.  
  100. pkg update
  101.  
  102. pkg install:
  103.  
  104. # shell:
  105.  
  106. zsh
  107.  
  108. # editor:
  109.  
  110. neovim
  111.  
  112. # multiplexsion:
  113.  
  114. tmux
  115.  
  116. # terminal:
  117.  
  118. rxvt-unicode
  119.  
  120. urxvt-perls
  121.  
  122. # desktop/window manager:
  123.  
  124. i3-gaps
  125.  
  126. i3status
  127.  
  128. # lockscreen:
  129.  
  130. slim
  131.  
  132. # music and video:
  133.  
  134. musicpd
  135.  
  136. mpc
  137.  
  138. ncmpcpp
  139.  
  140. ncmpc
  141.  
  142. mpv
  143.  
  144. # network:
  145.  
  146. tor
  147.  
  148. i2p
  149.  
  150. # file management:
  151.  
  152. thunar
  153.  
  154. py36-ranger
  155.  
  156. # application menu:
  157.  
  158. dmenu
  159.  
  160. # customuization tools:
  161.  
  162. lxappearance
  163.  
  164. feh
  165.  
  166. dunst
  167.  
  168. compton
  169.  
  170. # utilities:
  171.  
  172. tree
  173.  
  174. scrot
  175.  
  176. rkhunter
  177.  
  178. neofetch
  179.  
  180. htop
  181.  
  182. wget
  183.  
  184. git
  185.  
  186. cmake
  187.  
  188. gimp
  189.  
  190. transmission-cli
  191.  
  192. unzip
  193.  
  194. ctags
  195.  
  196. psearch
  197.  
  198. kid3-qt4
  199.  
  200. gmake
  201.  
  202. # social media:
  203.  
  204. pidgin
  205.  
  206. pidgin-otr
  207.  
  208. pidgin-libnotify
  209.  
  210. irssi
  211.  
  212. irssi-otr
  213.  
  214. qtox
  215.  
  216. # web browsing
  217.  
  218. w3m
  219.  
  220. qutebrowser
  221.  
  222. # programming
  223.  
  224. py36-ipython
  225.  
  226. py36-pip
  227.  
  228. py36-pip-tools
  229.  
  230. py36-virtualenv
  231.  
  232.  
  233.  
  234.  
  235. # other:
  236.  
  237. xorg
  238.  
  239. noto-lite
  240.  
  241. liberation-fonts-ttf
  242.  
  243. sudo
  244.  
  245.  
  246.  
  247. # edit sudoers file
  248.  
  249. visudo:
  250.  
  251. Add to the top:
  252.  
  253. Defaults insults
  254.  
  255. Uncomment:
  256.  
  257. %wheel ALL=(ALL) ALL
  258.  
  259. run poweroff and such without needing a password:
  260.  
  261. uncomment:
  262.  
  263. %wheel ALL=(ALL) NOPASSWORD: ALL
  264.  
  265. then edit it to be as follows:
  266.  
  267. %wheel ALL=
  268.  
  269. # add to /etc/rc.conf
  270.  
  271. vi /etc/rc.conf:
  272.  
  273. hald_enable="YES"
  274. dbus_enable="YES"
  275. performance_cx_lowest="Cmax"
  276. economy_cx_lowest="Cmax"
  277. moused_flags="-VH"
  278.  
  279. # add to /boot/loader.conf
  280.  
  281. vi /boot/loader.conf:
  282.  
  283. kern.vty=vt
  284. hw.vga.textmode="1"
  285. acpi_ibm_load="YES"
  286. acpi_video_load="YES"
  287. hint.p4tcc.0.disabled=1
  288. hint.acpi_throttle.0.disabled=1
  289. drm.i915.enable_rc6=7
  290. kern.vty=vt
  291.  
  292. # add user to video group
  293.  
  294. pw groupmod video -m user
  295.  
  296. # edit fstab
  297.  
  298. vi /etc/fstab:
  299.  
  300. proc /proc procfs rw 0 0
  301.  
  302. # configure xorg
  303.  
  304. X -configure
  305.  
  306. cp /root/xorg.conf.new /etc/X11/xorg.conf
  307.  
  308. # edit .xinitrc for root and user
  309.  
  310. vi ~/.xinitrc:
  311.  
  312. /usr/local/bin/i3
  313.  
  314. logout and login as user
  315.  
  316. vi .xinitrc:
  317.  
  318. /usr/local/bin/i3
  319.  
  320. logout then login as root again
  321.  
  322. # enable services
  323.  
  324. sysrc slim_enable=yes
  325.  
  326. sysrc tor_enable=yes
  327.  
  328.  
  329. # turn off beep in xorg
  330.  
  331. xset b 0
  332.  
  333. sudo vi /etc/sysctl.conf:
  334.  
  335. hw.syscons.bell=0
  336.  
  337. # change shell for user to zsh
  338.  
  339. # as user run:
  340.  
  341. sudo chsh -s /usr/local/bin/zsh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement