Advertisement
Guest User

Untitled

a guest
Nov 4th, 2018
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.60 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. # social media:
  201.  
  202. pidgin
  203.  
  204. pidgin-otr
  205.  
  206. pidgin-libnotify
  207.  
  208. irssi
  209.  
  210. irssi-otr
  211.  
  212. qtox
  213.  
  214. # web browsing
  215.  
  216. w3m
  217.  
  218. qutebrowser
  219.  
  220. waterfox:
  221.  
  222. # move to /opt/:
  223.  
  224. cd /opt/
  225.  
  226. # get the bz2 file:
  227.  
  228. wget https://storage-waterfox.netdna-ssl.com/releases/linux64/installer/waterfox-56.2.3.en-US.linux-x86_64.tar.bz2
  229.  
  230. # unzip the files:
  231.  
  232. bzip2 -d waterfox-56.2.3.en-US.linux-x86_64.tar.bz2
  233.  
  234. tar -xvf waterfox-56.2.3.en-US.linux-x86_64.tar
  235.  
  236. rm waterfox-56.2.3.en-US.linux-x86_64.tar
  237.  
  238. cd waterfox
  239.  
  240. # add a symlink to launch waterfox from an application menu:
  241.  
  242. ln -s /opt/waterfox/waterfox /usr/bin/waterfox
  243.  
  244.  
  245. tor browser:
  246.  
  247. # you'll need to install xz:
  248.  
  249. pkg install xz
  250.  
  251. # move to /opt/:
  252.  
  253. # get the .xz file:
  254.  
  255. wget https://www.torproject.org/dist/torbrowser/8.0.2/tor-browser-linux64-8.0.2_en-US.tar.xz
  256.  
  257. # unzip the files:
  258.  
  259. tar -xf tor-browser-linux64-8.0.2_en-US.tar.xz
  260.  
  261. rm tor-browser-linux64-8.0.2_en-US.tar.xz
  262.  
  263. # move into the directory and make a script to launch the tor browser:
  264.  
  265. cd tor-browser
  266.  
  267. # add a symlink to launch the tor browser from an application menu:
  268.  
  269. ln -s /opt/tor_browser/start-tor-browser.desktop /usr/bin/tor_browser
  270.  
  271. # programming
  272.  
  273. py36-ipython
  274.  
  275. py36-pip
  276.  
  277. py36-pip-tools
  278.  
  279. py36-virtualenv
  280.  
  281.  
  282.  
  283.  
  284. # other:
  285.  
  286. xorg
  287.  
  288. noto-lite
  289.  
  290. liberation-fonts-ttf
  291.  
  292. sudo
  293.  
  294.  
  295.  
  296. # edit sudoers file
  297.  
  298. visudo:
  299.  
  300. Add to the top:
  301.  
  302. Defaults insults
  303.  
  304. Uncomment:
  305.  
  306. %wheel ALL=(ALL) ALL
  307.  
  308. run poweroff and such without needing a password:
  309.  
  310. uncomment:
  311.  
  312. %wheel ALL=(ALL) NOPASSWORD: ALL
  313.  
  314. then edit it to be as follows:
  315.  
  316. %wheel ALL=
  317.  
  318. # add to /etc/rc.conf
  319.  
  320. vi /etc/rc.conf:
  321.  
  322. hald_enable="YES"
  323. dbus_enable="YES"
  324. performance_cx_lowest="Cmax"
  325. economy_cx_lowest="Cmax"
  326. moused_flags="-VH"
  327.  
  328. # add to /boot/loader.conf
  329.  
  330. vi /boot/loader.conf:
  331.  
  332. kern.vty=vt
  333. hw.vga.textmode="1"
  334. acpi_ibm_load="YES"
  335. acpi_video_load="YES"
  336. hint.p4tcc.0.disabled=1
  337. hint.acpi_throttle.0.disabled=1
  338. drm.i915.enable_rc6=7
  339. kern.vty=vt
  340.  
  341. # add user to video group
  342.  
  343. pw groupmod video -m user
  344.  
  345. # edit fstab
  346.  
  347. vi /etc/fstab:
  348.  
  349. proc /proc procfs rw 0 0
  350.  
  351. # configure xorg
  352.  
  353. X -configure
  354.  
  355. cp /root/xorg.conf.new /etc/X11/xorg.conf
  356.  
  357. # edit .xinitrc for root and user
  358.  
  359. vi ~/.xinitrc:
  360.  
  361. /usr/local/bin/i3
  362.  
  363. logout and login as user
  364.  
  365. vi .xinitrc:
  366.  
  367. /usr/local/bin/i3
  368.  
  369. logout then login as root again
  370.  
  371. # enable services
  372.  
  373. sysrc slim_enable=yes
  374.  
  375. sysrc tor_enable=yes
  376.  
  377.  
  378. # turn off beep in xorg
  379.  
  380. xset b 0
  381.  
  382. sudo vi /etc/sysctl.conf:
  383.  
  384. hw.syscons.bell=0
  385.  
  386. # change shell for user to zsh
  387.  
  388. # as user run:
  389.  
  390. sudo chsh -s /usr/local/bin/zsh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement