Archive > 15.1 Legacy Series
Installing X and virtualbox
cdburgess75:
Thanks for the help on the repos: Here is a quick dirty virtual box with a vncserver to manage ---this install works on version: OPNsense 15.1.12-amd64 (don't forget to allow ports for vnc:5001) **This is not complete but close, any suggestions would be helpful.
1. change repo:
goto /usr/local/etc/pkg/repo/FreeBSD.conf and change the value "no" to "yes"
2. install pkg:
pkg update -f
pkg install -fy xorg
pkg install -fy mate-desktop
pkg install -fy mate
pkg install -fy slim
pkg install -fy virtualbox-ose
pkg install -fy virtualbox-ose-additions
pkg install -fy vboxtool
pkg install -fy tightvnc
3.file changes:
cp -p /etc/rc.conf /etc/rc.conf-old
cp -p /etc/rc.conf /root
echo 'apache24_enable="YES"' >> /etc/rc.conf
echo 'mysql_enable="YES"' >> /etc/rc.conf
echo 'dbus_enable="YES"' >> /etc/rc.conf
echo 'hald_enable="YES"' >> /etc/rc.conf
echo 'slim_enable="YES"' >> /etc/rc.conf
echo 'vboxguest_enable="YES"' >> /etc/rc.conf
echo 'vbox_service="YES"' >> /etc/rc.conf
echo 'vboxnet_enable="YES"' >> /etc/rc.conf
echo 'vboxservice_flags="--disable-timesync"' >> /etc/rc.conf
echo 'vboxheadless_enable=“YES"' >> /etc/rc.conf
cp -p /boot/loader.conf /boot/loader.conf-old
cp -p /boot/loader.conf /root
echo "kldload vboxdrv" >> /boot/loader.conf
echo "kldload vboxguest" >> /boot/loader.conf
echo "kldload vboxnetflt" >> /boot/loader.conf
echo "kldload vboxnetadp" >> /boot/loader.conf
echo "exec ck-launch-session mate-session" > /root/.xinitrc
4. Allow ports for vnc:5001 in firewall Rules section
run: "vncserver" to set password
login: with a vnc client and run "VirtualBox &" from command line in X windows
weust:
So you converted a firewall/router into a desktop?
franco:
I really don't recommend pulling in X11 without building your own packages on top of our ports tree. We turn it off to keep the system slim, and this turning off will have bad side effects with packages from FreeBSD that have it turned on. Any pkg-upgrade can potentially destroy your OPNsense system. Use with great care.
cdburgess75:
Thanks for the heads up. I truly did not want to install X, however I could not get vbox working in headless mode. But headless mode is the goal, and that will be all CLI. I will continue to work toward this and keep the post updated. The point of this is to host (hypervisor) some applications (vm's for spam filters/etc) for small businesses. Definitely not a desktop weust :)
weust:
If you're installing X on a firewall you might as well be calling it a desktop.
You're headless part doesn't make any sense at all.
Detach a VM and it's headless.
Navigation
[0] Message Index
[#] Next page
Go to full version