Guest User

Untitled

a guest
Oct 4th, 2013
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.25 KB | None | 0 0
  1. Boot from FreeBSD install, select Live CD:
  2.  
  3. # mkdir /tmp/etc
  4. # mount_unionfs /tmp/etc /etc
  5. # ee /etc/ssh/sshd_config ( PermitRootLogin yes )
  6. # service sshd onestart
  7. # passwd
  8.  
  9. # ifconfig em0 inet 10.1.1.19 netmask 255.255.255.0
  10. # route add default 10.1.1.254
  11.  
  12. # gpart create -s gpt ada2
  13. # gpart add -b 34 -s 94 -t freebsd-boot ada2
  14. # gpart add -t freebsd-zfs -l disk0 ada2
  15. # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada2
  16.  
  17. # gnop create -S 4096 /dev/gpt/disk0
  18. # zpool create -o altroot=/mnt -o cachefile=/var/tmp/zpool.cache zroot /dev/gpt/disk0.nop
  19. # zpool export zroot
  20. # gnop destroy /dev/gpt/disk0.nop
  21. # zpool import -o altroot=/mnt -o cachefile=/var/tmp/zpool.cache zroot
  22.  
  23. # zpool set bootfs=zroot zroot
  24. # zfs set checksum=fletcher4 zroot
  25.  
  26. # zfs create zroot/usr
  27. # zfs create zroot/usr/home
  28. # zfs create zroot/var
  29. # zfs create -o compression=on -o exec=on -o setuid=off zroot/tmp
  30. # zfs create -o compression=lzjb -o setuid=off zroot/usr/ports
  31. # zfs create -o compression=off -o exec=off -o setuid=off zroot/usr/ports/distfiles
  32. # zfs create -o compression=off -o exec=off -o setuid=off zroot/usr/ports/packages
  33. # zfs create -o compression=lzjb -o exec=off -o setuid=off zroot/usr/src
  34. # zfs create -o compression=lzjb -o exec=off -o setuid=off zroot/var/crash
  35. # zfs create -o exec=off -o setuid=off zroot/var/db
  36. # zfs create -o compression=lzjb -o exec=on -o setuid=off zroot/var/db/pkg
  37. # zfs create -o exec=off -o setuid=off zroot/var/empty
  38. # zfs create -o compression=lzjb -o exec=off -o setuid=off zroot/var/log
  39. # zfs create -o compression=gzip -o exec=off -o setuid=off zroot/var/mail
  40. # zfs create -o exec=off -o setuid=off zroot/var/run
  41. # zfs create -o compression=lzjb -o exec=on -o setuid=off zroot/var/tmp
  42.  
  43. # zfs create -V 4G zroot/swap
  44. # zfs set org.freebsd:swap=on zroot/swap
  45. # zfs set checksum=off zroot/swap
  46.  
  47. # chmod 1777 /mnt/tmp
  48. # cd /mnt ; ln -s usr/home home
  49. # chmod 1777 /mnt/var/tmp
  50.  
  51. # sh
  52. # cd /usr/freebsd-dist
  53. # export DESTDIR=/mnt
  54. # for file in base.txz lib32.txz kernel.txz doc.txz ports.txz src.txz;
  55. > do (cat $file | tar --unlink -xpJf - -C ${DESTDIR:-/}); done
  56.  
  57. # cp /var/tmp/zpool.cache /mnt/boot/zfs/zpool.cache
  58.  
  59. # echo 'zfs_enable="YES"' >> /mnt/etc/rc.conf
  60. # echo 'zfs_load="YES"' >> /mnt/boot/loader.conf
  61. # echo 'vfs.root.mountfrom="zfs:zroot"' >> /mnt/boot/loader.conf
  62. # touch /mnt/etc/fstab
  63.  
  64. Install done!
  65.  
  66. Post boot stuff
  67.  
  68. # passwd
  69. # freebsd-update fetch
  70. # freebsd-update install
  71. # reboot
  72.  
  73. # portsnap fetch extract
  74.  
  75. # adduser
  76.  
  77. # cd /usr/ports/editors/vim-lite && make install clean
  78.  
  79. Build xorg-server with DEVD, not hal
  80. # cd /usr/ports/x11/xorg && make config-recursive && make install clean
  81. # cd /usr/ports/x11-wm/fluxbox && make install clean
  82.  
  83. # kldload linux
  84. # echo "linux_enable="YES" >> /etc/rc.conf
  85.  
  86. # cd /usr/ports/emulators/linux_base-f10 && make install clean
  87.  
  88. # vim /etc/devfs.conf ( add "link /tmp shm" )
  89.  
  90. # service devfs restart
  91.  
  92. # cd /usr/ports/x11/nvidia-driver && make install clean
  93.  
  94. # echo 'nvidia_load="YES"' >> /boot/loader.conf
  95.  
  96. # reboot
  97.  
  98. # Xorg -configure
  99.  
  100. Edit xorg.conf.new and change nv to nvidia
  101. # cp /root/xorg.conf.new /etc/X11/xorg.conf
  102.  
  103. Wine installation:
  104.  
  105. Install latest pkgng version 1.1.4 or newer, wget and cabextract
  106. # cd /usr/ports/ports-mgmt/pkg/ && make install clean
  107. # cd /usr/ports/archivers/cabextract/ && make install clean
  108. # cd /usr/ports/ftp/wget/ && make install clean
  109.  
  110. Convert to new pkgng format
  111. # pkg2ng
  112.  
  113. Add custom wine repo for pkgng
  114. # mkdir -p /usr/local/etc/pkg/repos
  115. # fetch -o /usr/local/etc/pkg/repos http://people.freebsd.org/~dbn/repos/wine.conf
  116. # fetch -o /usr/local/etc/pkg/repos http://people.freebsd.org/~dbn/repos/wine.cert
  117. # pkg update
  118. # pkg install -r wine i386-wine
  119.  
  120. Patch nvidia-driver to enable 2D/3D acceleration in Wine.
  121. # sh /usr/local/share/wine/patch-nvidia.sh
  122.  
  123. Reboot to activate patched nvidia driver, or kill X and reload nvidia module.
  124. # reboot
  125.  
  126. Run winecfg and select -> Libraries -> [New override for library: ] d3d11 -> Add -> Edit... -> Disable
  127.  
  128. Fetch winetricks and install the usual packages
  129. $ wget http://winetricks.org/winetricks
  130. $ chmod +x winetricks
  131. $ ./winetricks corefonts d3dx9_36 vcrun2005 vcrun2008 vcrun2010
  132.  
  133. Install EvE Online as you would
  134. $ wine EVE_Online_Installer_XXXXXX.exe
Advertisement
Add Comment
Please, Sign In to add comment