{"id":575,"date":"2013-08-28T14:27:53","date_gmt":"2013-08-28T17:27:53","guid":{"rendered":"http:\/\/blog.abratel.com.br\/?p=575"},"modified":"2013-08-28T14:27:53","modified_gmt":"2013-08-28T17:27:53","slug":"rc-conf-e-httpd-conf-para-virtualbox-phpvirtualbox-vnc-freebsd","status":"publish","type":"post","link":"https:\/\/blog.abratel.com.br\/?p=575","title":{"rendered":"rc.conf e httpd.conf para virtualbox + phpvirtualbox + vnc (FreeBSD)"},"content":{"rendered":"<p><strong>rc.conf<\/strong><\/p>\n<p>hostname=&#8221;virtual-server&#8221;<br \/>\nkeymap=&#8221;us.iso&#8221;<br \/>\nifconfig_bge0=&#8221; inet 192.168.218.210 netmask 0xffffff00&#8243;<br \/>\ndefaultrouter=&#8221;192.168.218.178&#8243;<br \/>\nsshd_enable=&#8221;YES&#8221;<br \/>\nntpd_enable=&#8221;YES&#8221;<br \/>\nntpdate_enable=&#8221;YES&#8221;<br \/>\nntpdate_flags=&#8221;192.168.218.202&#8243;<br \/>\n# Set dumpdev to &#8220;AUTO&#8221; to enable crash dumps, &#8220;NO&#8221; to disable<br \/>\ndumpdev=&#8221;NO&#8221;<br \/>\ndbus_enable=&#8221;YES&#8221;<\/p>\n<p>vboxnet_enable=&#8221;YES&#8221;<br \/>\ndevfs_system_ruleset=&#8221;system&#8221;<br \/>\nvboxguest_enable=&#8221;YES&#8221;<br \/>\nvboxservice_enable=&#8221;YES&#8221;<\/p>\n<p>vboxheadless_enable=&#8221;YES&#8221;<br \/>\nhald_enable=&#8221;YES&#8221;<br \/>\napache22_enable=&#8221;YES&#8221;<\/p>\n<p>vboxwebsrv_enable=&#8221;YES&#8221;<br \/>\nvboxwebsrv_user=&#8221;vbox&#8221;<br \/>\nvboxwebsrv_flags=&#8221;-P \/usr\/home\/vbox\/vboxwebsrv.pid -F \/usr\/home\/vbox\/vboxwebsrv.log -R 5&#8243;<\/p>\n<p># Para iniciar automaticamente As palavras em mai\u00fasculo s\u00e3o os nomes das VMs, voc\u00ea ter\u00e1 que alterar para os nomes das VMs que voc\u00ea criou:<\/p>\n<p># VMs to start (whitespace-separated list):<br \/>\nvboxheadless_machines=&#8221;WINXP CENTOS&#8221;<\/p>\n<p>vboxheadless_winxp_name=&#8221;WINXP&#8221;<br \/>\nvboxheadless_winxp_user=&#8221;vbox&#8221;<br \/>\nvboxheadless_winxp_flags=&#8221;&#8211;vnc &#8211;vncport 5001 &#8211;vncpass 123&#8243;<br \/>\nvboxheadless_winxp_stop=&#8221;acpipowerbutton&#8221;<\/p>\n<p>vboxheadless_devandre_name=&#8221;CENTOS&#8221;<br \/>\nvboxheadless_devandre_user=&#8221;vbox&#8221;<br \/>\nvboxheadless_devandre_flags=&#8221;&#8211;vnc &#8211;vncport 5002 &#8211;vncpass 123&#8243;<br \/>\nvboxheadless_devandre_stop=&#8221;acpipowerbutton&#8221;<\/p>\n<p><strong>apache\/httpd.conf<\/strong><\/p>\n<p>LoadModule php5_module        libexec\/apache22\/libphp5.so<\/p>\n<p>#<br \/>\n# DirectoryIndex: sets the file that Apache will serve if a directory<br \/>\n# is requested.<br \/>\n#<br \/>\n<IfModule dir_module><br \/>\n    DirectoryIndex index.html index.php<br \/>\n<\/IfModule><\/p>\n<p> AddType application\/x-httpd-php .php<br \/>\n   AddType application\/x-httpd-php-source .phps<\/p>\n<p>Alias \/phpvirtualbox \/usr\/local\/www\/phpvirtualbox\/<br \/>\n     AcceptPathInfo On<br \/>\n     <Directory \/usr\/local\/www\/phpvirtualbox><br \/>\n             AllowOverride None<br \/>\n             Order Allow,Deny<br \/>\n             Allow from all<br \/>\n     <\/Directory><\/p>\n","protected":false},"excerpt":{"rendered":"<p>rc.conf hostname=&#8221;virtual-server&#8221; keymap=&#8221;us.iso&#8221; ifconfig_bge0=&#8221; inet 192.168.218.210 netmask 0xffffff00&#8243; defaultrouter=&#8221;192.168.218.178&#8243; sshd_enable=&#8221;YES&#8221; ntpd_enable=&#8221;YES&#8221; ntpdate_enable=&#8221;YES&#8221; ntpdate_flags=&#8221;192.168.218.202&#8243; # Set dumpdev to &#8220;AUTO&#8221; to enable crash dumps, &#8220;NO&#8221; to disable dumpdev=&#8221;NO&#8221; dbus_enable=&#8221;YES&#8221; vboxnet_enable=&#8221;YES&#8221; devfs_system_ruleset=&#8221;system&#8221; vboxguest_enable=&#8221;YES&#8221; vboxservice_enable=&#8221;YES&#8221; vboxheadless_enable=&#8221;YES&#8221; hald_enable=&#8221;YES&#8221; apache22_enable=&#8221;YES&#8221; vboxwebsrv_enable=&#8221;YES&#8221; vboxwebsrv_user=&#8221;vbox&#8221; vboxwebsrv_flags=&#8221;-P \/usr\/home\/vbox\/vboxwebsrv.pid -F \/usr\/home\/vbox\/vboxwebsrv.log -R 5&#8243; # Para iniciar&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/575"}],"collection":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=575"}],"version-history":[{"count":1,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/575\/revisions"}],"predecessor-version":[{"id":576,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/575\/revisions\/576"}],"wp:attachment":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}