Advertisement
Guest User

Untitled

a guest
Nov 13th, 2018
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.91 KB | None | 0 0
  1. # installation
  2.  
  3. # pick keybaord layout
  4.  
  5. select US english QWERTY
  6.  
  7. # hostname
  8.  
  9. host
  10.  
  11. # which pages to install
  12.  
  13. ports
  14.  
  15. lib32
  16.  
  17. # install with lenevo work around (yes)
  18.  
  19. # partitioning
  20.  
  21. Auto (ZFS)
  22.  
  23. Encrypt Swap (Yes)
  24.  
  25. Swap Size (3G)
  26.  
  27. Encrypted Disks (Yes)
  28.  
  29. stripe no redundecy
  30.  
  31. pick your dribe
  32.  
  33. Set Decryption Passphrase
  34.  
  35. # change password for root
  36.  
  37. # enter the new root password
  38.  
  39. # network
  40.  
  41. select iwn0
  42.  
  43. Regdomain/country (No)
  44.  
  45. Pick WiFi and enter Key
  46.  
  47. IPv4 (yes)
  48.  
  49. DHCPD (yes)
  50.  
  51. check that resolver config is right, then hit ok
  52.  
  53. IPv6 (no)
  54.  
  55. # time and date config
  56.  
  57. is CMOS utc? If not or you don't know select no
  58.  
  59. select UTC
  60.  
  61. time and date skip
  62.  
  63. # system configuration
  64.  
  65. Start at boot:
  66.  
  67. moused
  68.  
  69. powerd
  70.  
  71. dumpdev
  72.  
  73. # system hardening
  74.  
  75. yes to all
  76.  
  77. # add user
  78.  
  79. username: user
  80.  
  81. full name: User
  82.  
  83. Uid: *hit enter*
  84.  
  85. login group: wheel
  86.  
  87. invite to other groups: games operator video
  88.  
  89. login class: default
  90.  
  91. shell: csh
  92.  
  93. home directory: default
  94.  
  95. home directory permissions: default
  96.  
  97. use password-based authentication: yes
  98.  
  99. use an empty password: no
  100.  
  101. use a random password: no
  102.  
  103. enter password
  104.  
  105. lock out the account after creation: no
  106.  
  107. check that everything is right then proceed by typing yes
  108.  
  109. if you do not want to add more users say no
  110.  
  111. # finish install
  112.  
  113. # select to install the handbook, then pick your language and install it
  114.  
  115. select exit to finish the install
  116.  
  117. select no, then reboot
  118.  
  119. # post install
  120.  
  121. login as root
  122.  
  123. # shut off the beep in the tty:
  124.  
  125. kbdcontrol -b quiet.off
  126.  
  127. vi /etc/rc.conf:
  128.  
  129. # disable bell
  130.  
  131. allscreens_kbdflags="-b quiet.off"
  132.  
  133. vi /etc/sysctl.conf:
  134.  
  135. # disable bell
  136.  
  137. kern.vt.enable_bell=0
  138.  
  139. hw.syscons.bell=0
  140.  
  141.  
  142. # update the system and install packages:
  143.  
  144. # update the system
  145.  
  146. pkg update && pkg upgrade
  147.  
  148. ## to install use pkg install *packagename*
  149.  
  150. # install your perfered shell
  151.  
  152. ## zsh
  153.  
  154. # editor:
  155.  
  156. ## neovim
  157.  
  158. # terminal multiplexsion:
  159.  
  160. ## tmux
  161.  
  162. # lockscreen:
  163.  
  164. ## slim
  165.  
  166. # music and video:
  167.  
  168. ## musicpd
  169.  
  170. ## musicpc
  171.  
  172. ## ncmpcpp
  173.  
  174. ## ncmpc
  175.  
  176. ## mpv
  177.  
  178. # network:
  179.  
  180. ## tor
  181. # web browsing
  182.  
  183. ## firefox
  184.  
  185. ## qutebrowser
  186.  
  187. ## w3m
  188.  
  189. # file management:
  190.  
  191. ## thunar
  192.  
  193. ## py36-ranger
  194.  
  195. # utilities:
  196.  
  197. ## feh
  198.  
  199. ## dunst
  200.  
  201. ## tree
  202.  
  203. ## scrot
  204.  
  205. ## rkhunter
  206.  
  207. ## neofetch
  208.  
  209. ## htop
  210.  
  211. ## wget
  212.  
  213. ## git
  214.  
  215. ## gimp
  216.  
  217. ## transmission-cli
  218.  
  219. ## unzip
  220.  
  221. ## ctags
  222.  
  223. ## kid3-qt4
  224.  
  225. ## gmake
  226.  
  227. ## automounter
  228.  
  229. ## sudo
  230.  
  231. ## zathura
  232.  
  233. ## lxappearance
  234.  
  235. # social media:
  236.  
  237. ## pidgin
  238.  
  239. ## pidgin-otr
  240.  
  241. ## pidgin-libnotify
  242.  
  243. ## irssi
  244.  
  245. ## irssi-otr
  246.  
  247. ## qtox
  248.  
  249. # programming
  250.  
  251. ## py36-ipython
  252.  
  253. ## py36-pip
  254.  
  255. ## py36-pip-tools
  256.  
  257. ## py36-virtualenv
  258.  
  259. # other:
  260.  
  261. ## xorg-minimal
  262.  
  263. ## xautolock
  264.  
  265. ## xorg-server
  266.  
  267. ## xset
  268.  
  269. ## xrdb
  270.  
  271. ## xev
  272.  
  273. # games
  274.  
  275. ## frogatto
  276.  
  277. ## wesnoth
  278.  
  279. ## 0ad
  280.  
  281. ## minetest
  282.  
  283. ## nethack36
  284.  
  285. ## supertux2
  286.  
  287. ## supertuxkart
  288.  
  289. # fonts
  290. ## noto-lite
  291.  
  292. ## liberation-fonts-ttf
  293.  
  294. ## chinese/arphicttf
  295.  
  296. ## chinese/font-std
  297.  
  298. ## hebrew/culmus
  299.  
  300. ## hebrew/elmar-fonts
  301.  
  302. ## japanese/font-ipa
  303.  
  304. ## japanese/font-ipa-uigothic
  305.  
  306. ## japanese/font-ipaex
  307.  
  308. ## japanese/font-kochi
  309.  
  310. ## japanese/font-migmix
  311.  
  312. ## japanese/font-migu
  313.  
  314. ## japanese/font-mona-ipa
  315.  
  316. ## japanese/font-motoya-al
  317.  
  318. ## japanese/font-mplus-ipa
  319.  
  320. ## japanese/font-sazanami
  321.  
  322. ## japanese/font-shinonome
  323.  
  324. ## japanese/font-takao
  325.  
  326. ## japanese/font-ume
  327.  
  328. ## japanese/font-vlgothic
  329.  
  330. ## x11-fonts/hanazono-fonts-ttf
  331.  
  332. ## japanese/font-mikachan
  333.  
  334. ## korean/aleefonts-ttf
  335.  
  336. ## korean/nanumfonts-ttf
  337.  
  338. ## korean/unfonts-core
  339.  
  340. ## x11-fonts/anonymous-pro
  341.  
  342. ## x11-fonts/artwiz-aleczapka
  343.  
  344. ## x11-fonts/dejavu
  345.  
  346. ## x11-fonts/inconsolata-ttf
  347.  
  348. ## x11-fonts/terminus-font
  349.  
  350. ## x11-fonts/cantarell-fonts
  351.  
  352. ## x11-fonts/droid-fonts-ttf
  353.  
  354. ## x11-fonts/doulos
  355.  
  356. ## x11-fonts/ubuntu-font
  357.  
  358. ## x11-fonts/isabella
  359.  
  360. ## x11-fonts/junicode
  361.  
  362. ## x11-fonts/khmeros
  363.  
  364. ## x11-fonts/padauk
  365.  
  366. ## x11-fonts/stix-fonts
  367.  
  368. ## x11-fonts/charis
  369.  
  370. ## x11-fonts/urwfonts-ttf
  371.  
  372. ## russian/koi8r-ps
  373.  
  374. ## x11-fonts/geminifonts
  375.  
  376. ## x11-fonts/cyr-rfx
  377.  
  378. ## x11-fonts/paratype
  379.  
  380. ## x11-fonts/gentium-plus
  381.  
  382. # setup sudo:
  383.  
  384. visudo:
  385.  
  386. enable sudo insults by adding this to the top of the file:
  387.  
  388. Defaults insults
  389.  
  390. uncomment this line to enable sudo for user:
  391.  
  392. %wheel ALL=(ALL) ALL
  393.  
  394. # logout then login as user:
  395.  
  396. logout
  397.  
  398. *login as user*
  399.  
  400. # make home subdirectories
  401.  
  402. mkdir Documents Downloads Music Videos Pictures .builds
  403.  
  404. # window manageer
  405.  
  406. ## dwm
  407.  
  408. cd .builds
  409.  
  410. git clone git://git.suckless.org/dwm
  411.  
  412. cd dwm
  413.  
  414. edit config.mk and make the following changes:
  415.  
  416. X11INC = /usr/X11R6/include to X11INC = /usr/local/include
  417.  
  418. X11LIB = /usr/X11R6/lib to X11LIB = /usr/local/lib
  419.  
  420. FREETYPEINC = /usr/include/freetype2 to FREETYPEINC = /usr/local/include/freetype2
  421.  
  422. edit config.def.h and make the following changes:
  423.  
  424. *paste config.def.h here*
  425.  
  426.  
  427. cp config.def.h config.h
  428.  
  429. sudo make clean install
  430.  
  431. # terminal
  432.  
  433. ## rxvt-unicode
  434.  
  435. # application menu
  436.  
  437. ## demenu
  438.  
  439. cd .builds
  440.  
  441. git clone git://git.suckless.org/dmenu
  442.  
  443. cd dmenu
  444.  
  445. edit config.mk and make the following changes:
  446.  
  447. X11INC = /usr/X11R6/include to X11INC = /usr/local/include
  448.  
  449. X11LIB = /usr/X11R6/lib to X11LIB = /usr/local/lib
  450.  
  451. FREETYPEINC = /usr/include/freetype2 to FREETYPEINC = /usr/local/include/freetype2
  452.  
  453. # add to /etc/rc.conf
  454.  
  455. vi /etc/rc.conf:
  456.  
  457. hald_enable="YES"
  458. dbus_enable="YES"
  459. performance_cx_lowest="Cmax"
  460. economy_cx_lowest="Cmax"
  461. moused_flags="-VH"
  462.  
  463. # add to /boot/loader.conf
  464.  
  465. edit /boot/loader.conf:
  466.  
  467. kern.vty=vt
  468. hw.vga.textmode="1"
  469. acpi_ibm_load="YES"
  470. acpi_video_load="YES"
  471. hint.p4tcc.0.disabled=1
  472. hint.acpi_throttle.0.disabled=1
  473. drm.i915.enable_rc6=7
  474.  
  475. # edit fstab
  476.  
  477. vi /etc/fstab:
  478.  
  479. proc /proc procfs rw 0 0
  480.  
  481.  
  482. # enable services
  483.  
  484. edit /etc/rc.comf:
  485.  
  486. hald_enable="YES"
  487.  
  488. dbus_enable="YES"
  489.  
  490. performance_cx_lowest="Cmax"
  491.  
  492. economy_cx_lowest="Cmax"
  493.  
  494. moused_flags="-VH"
  495.  
  496. slim_enable="YES"
  497.  
  498. tor_enable="YES"
  499.  
  500. urxvtd_enable="YES"
  501.  
  502. # change shell for user to zsh
  503.  
  504. # as user run:
  505.  
  506. chsh -s /usr/local/bin/zsh
  507.  
  508. # rebind keys
  509.  
  510. vi /usr/local/share/X11/xkb/symbols/pc:
  511.  
  512. change:
  513.  
  514. key <CAPS> { [ Caps_Lock ] }
  515.  
  516. to
  517.  
  518. key <CAPS> { [ Escape ] }
  519.  
  520. # edit .xinitrc
  521.  
  522. # start dwm
  523.  
  524. /usr/local/bin/dwm
  525.  
  526. # set UTF-8 encoding
  527.  
  528. # edit /etc/login.conf:
  529.  
  530. :charset=UTF-8:\
  531. :lang=en_US.UTF-8:\
  532. :umask=022:
  533.  
  534. # rebuild login class:
  535.  
  536. sudo cap_mkdb /etc/login.conf
  537.  
  538. # set single user mode unsecure
  539.  
  540. sudo vi /etc/ttys
  541.  
  542. change secure to insecure on the last line of the config
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement