Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Boot from FreeBSD install, select Live CD:
- # mkdir /tmp/etc
- # mount_unionfs /tmp/etc /etc
- # ee /etc/ssh/sshd_config ( PermitRootLogin yes )
- # service sshd onestart
- # passwd
- # ifconfig em0 inet 10.1.1.19 netmask 255.255.255.0
- # route add default 10.1.1.254
- # gpart create -s gpt ada2
- # gpart add -b 34 -s 94 -t freebsd-boot ada2
- # gpart add -t freebsd-zfs -l disk0 ada2
- # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada2
- # gnop create -S 4096 /dev/gpt/disk0
- # zpool create -o altroot=/mnt -o cachefile=/var/tmp/zpool.cache zroot /dev/gpt/disk0.nop
- # zpool export zroot
- # gnop destroy /dev/gpt/disk0.nop
- # zpool import -o altroot=/mnt -o cachefile=/var/tmp/zpool.cache zroot
- # zpool set bootfs=zroot zroot
- # zfs set checksum=fletcher4 zroot
- # zfs create zroot/usr
- # zfs create zroot/usr/home
- # zfs create zroot/var
- # zfs create -o compression=on -o exec=on -o setuid=off zroot/tmp
- # zfs create -o compression=lzjb -o setuid=off zroot/usr/ports
- # zfs create -o compression=off -o exec=off -o setuid=off zroot/usr/ports/distfiles
- # zfs create -o compression=off -o exec=off -o setuid=off zroot/usr/ports/packages
- # zfs create -o compression=lzjb -o exec=off -o setuid=off zroot/usr/src
- # zfs create -o compression=lzjb -o exec=off -o setuid=off zroot/var/crash
- # zfs create -o exec=off -o setuid=off zroot/var/db
- # zfs create -o compression=lzjb -o exec=on -o setuid=off zroot/var/db/pkg
- # zfs create -o exec=off -o setuid=off zroot/var/empty
- # zfs create -o compression=lzjb -o exec=off -o setuid=off zroot/var/log
- # zfs create -o compression=gzip -o exec=off -o setuid=off zroot/var/mail
- # zfs create -o exec=off -o setuid=off zroot/var/run
- # zfs create -o compression=lzjb -o exec=on -o setuid=off zroot/var/tmp
- # zfs create -V 4G zroot/swap
- # zfs set org.freebsd:swap=on zroot/swap
- # zfs set checksum=off zroot/swap
- # chmod 1777 /mnt/tmp
- # cd /mnt ; ln -s usr/home home
- # chmod 1777 /mnt/var/tmp
- # sh
- # cd /usr/freebsd-dist
- # export DESTDIR=/mnt
- # for file in base.txz lib32.txz kernel.txz doc.txz ports.txz src.txz;
- > do (cat $file | tar --unlink -xpJf - -C ${DESTDIR:-/}); done
- # cp /var/tmp/zpool.cache /mnt/boot/zfs/zpool.cache
- # echo 'zfs_enable="YES"' >> /mnt/etc/rc.conf
- # echo 'zfs_load="YES"' >> /mnt/boot/loader.conf
- # echo 'vfs.root.mountfrom="zfs:zroot"' >> /mnt/boot/loader.conf
- # touch /mnt/etc/fstab
- Install done!
- Post boot stuff
- # passwd
- # freebsd-update fetch
- # freebsd-update install
- # reboot
- # portsnap fetch extract
- # adduser
- # cd /usr/ports/editors/vim-lite && make install clean
- Build xorg-server with DEVD, not hal
- # cd /usr/ports/x11/xorg && make config-recursive && make install clean
- # cd /usr/ports/x11-wm/fluxbox && make install clean
- # kldload linux
- # echo "linux_enable="YES" >> /etc/rc.conf
- # cd /usr/ports/emulators/linux_base-f10 && make install clean
- # vim /etc/devfs.conf ( add "link /tmp shm" )
- # service devfs restart
- # cd /usr/ports/x11/nvidia-driver && make install clean
- # echo 'nvidia_load="YES"' >> /boot/loader.conf
- # reboot
- # Xorg -configure
- Edit xorg.conf.new and change nv to nvidia
- # cp /root/xorg.conf.new /etc/X11/xorg.conf
- Wine installation:
- Install latest pkgng version 1.1.4 or newer, wget and cabextract
- # cd /usr/ports/ports-mgmt/pkg/ && make install clean
- # cd /usr/ports/archivers/cabextract/ && make install clean
- # cd /usr/ports/ftp/wget/ && make install clean
- Convert to new pkgng format
- # pkg2ng
- Add custom wine repo for pkgng
- # mkdir -p /usr/local/etc/pkg/repos
- # fetch -o /usr/local/etc/pkg/repos http://people.freebsd.org/~dbn/repos/wine.conf
- # fetch -o /usr/local/etc/pkg/repos http://people.freebsd.org/~dbn/repos/wine.cert
- # pkg update
- # pkg install -r wine i386-wine
- Patch nvidia-driver to enable 2D/3D acceleration in Wine.
- # sh /usr/local/share/wine/patch-nvidia.sh
- Reboot to activate patched nvidia driver, or kill X and reload nvidia module.
- # reboot
- Run winecfg and select -> Libraries -> [New override for library: ] d3d11 -> Add -> Edit... -> Disable
- Fetch winetricks and install the usual packages
- $ wget http://winetricks.org/winetricks
- $ chmod +x winetricks
- $ ./winetricks corefonts d3dx9_36 vcrun2005 vcrun2008 vcrun2010
- Install EvE Online as you would
- $ wine EVE_Online_Installer_XXXXXX.exe
Advertisement
Add Comment
Please, Sign In to add comment