<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jeffrey Zhuang on Medium]]></title>
        <description><![CDATA[Stories by Jeffrey Zhuang on Medium]]></description>
        <link>https://medium.com/@ginurx?source=rss-4d575a69b898------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MVk4IfmQunIXxuBDtqBJCw.jpeg</url>
            <title>Stories by Jeffrey Zhuang on Medium</title>
            <link>https://medium.com/@ginurx?source=rss-4d575a69b898------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 03:17:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ginurx/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Configure your VirtualBox VM to Automatically Start on Ubuntu]]></title>
            <link>https://medium.com/@ginurx/how-to-configure-your-virtualbox-vm-to-automatically-start-on-ubuntu-538bc0b99378?source=rss-4d575a69b898------2</link>
            <guid isPermaLink="false">https://medium.com/p/538bc0b99378</guid>
            <category><![CDATA[virtualbox]]></category>
            <category><![CDATA[systemd]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[virtualbox-tips]]></category>
            <category><![CDATA[ubuntu-22-04]]></category>
            <dc:creator><![CDATA[Jeffrey Zhuang]]></dc:creator>
            <pubDate>Wed, 14 Aug 2024 12:14:15 GMT</pubDate>
            <atom:updated>2024-08-14T12:17:17.897Z</atom:updated>
            <content:encoded><![CDATA[<p>Create a file at <em>/etc/default/virtualbox</em> with the following content:</p><pre>VBOXAUTOSTART_DB=/etc/vbox<br>VBOXAUTOSTART_CONFIG=/etc/vbox/autostart.cfg</pre><blockquote><strong>Note:</strong> The /etc/default/virtualbox is a configuration file that is read by the /usr/lib/virtualbox/vboxautostart-service.sh script.</blockquote><p>Create a directory at /etc/vbox, and a file at /etc/vbox/autostart.cfg with the following content:</p><pre>default_policy = deny<br><br># assume alice is the user that will be allowed to autostart VMs<br># please replace alice with the actual username of the user<br>alice = {<br>    allow = true<br>}</pre><p>Set the permissions of the /etc/vbox directory and the /etc/vbox/autostart.cfg file:</p><pre>chgrp vboxusers /etc/vbox<br>chmod 1775 /etc/vbox</pre><p>Add the user to the vboxusers group:</p><pre># replace alice with the actual username of the user<br>sudo usermod -aG vboxusers alice</pre><p>Create a file name &lt;username&gt;.start in the /etc/vbox directory for each user that you want to allow to autostart VMs. And change the owner of the file to the user:</p><pre># replace alice with the actual username of the user<br>touch /etc/vbox/alice.start<br>chown alice /etc/vbox/alice.start</pre><blockquote><strong>Note:</strong> Without the &lt;username&gt;.start file, you may get the following error:</blockquote><blockquote>Adding machine &#39;VM NAME&#39; to the autostart database failed with VERR_ACCESS_DENIED</blockquote><blockquote>Adding machine &#39;windows-3dsmax-service&#39; to the autostart database failed with VERR_ACCESS_DENIED</blockquote><p>Set the autostart database path:</p><pre>VBoxManage setproperty autostartdbpath /etc/vbox</pre><p>Add the VM to the autostart database:</p><pre>VBoxManage modifyvm &quot;VM NAME&quot; --autostart-enabled on</pre><blockquote><strong>Note:</strong> Replace VM NAME with the name of the VM that you want to autostart.</blockquote><blockquote>You can get the name of the VM by running the following command:</blockquote><blockquote>VBoxManage list vms</blockquote><p>Start the vboxautostart-service:</p><pre>systemctl enable vboxautostart-service<br>systemctl start vboxautostart-service</pre><p><strong>Useful Links:</strong></p><p><a href="https://lifeofageekadmin.com/how-to-set-your-virtualbox-vm-to-automatically-startup/">https://lifeofageekadmin.com/how-to-set-your-virtualbox-vm-to-automatically-startup/</a></p><p><a href="https://mcgilldevtech.com/2020/04/auto-start-virtual-box-vms-on-linux/">https://mcgilldevtech.com/2020/04/auto-start-virtual-box-vms-on-linux/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=538bc0b99378" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Set Port Forwarding for Internet Sharing on Mac OS X Using pf]]></title>
            <link>https://medium.com/@ginurx/how-to-set-port-forwarding-for-internet-sharing-on-mac-os-x-using-pf-a7a338f09953?source=rss-4d575a69b898------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7a338f09953</guid>
            <category><![CDATA[nat]]></category>
            <category><![CDATA[pf]]></category>
            <category><![CDATA[os-x]]></category>
            <category><![CDATA[firewall]]></category>
            <category><![CDATA[port-forwarding]]></category>
            <dc:creator><![CDATA[Jeffrey Zhuang]]></dc:creator>
            <pubDate>Fri, 07 Jul 2023 09:50:48 GMT</pubDate>
            <atom:updated>2023-07-07T09:52:47.853Z</atom:updated>
            <content:encoded><![CDATA[<p>This concise guide will walk you through the process of setting up port forwarding on OS X utilizing pf, a built-in and robust packet filter module.</p><p>Imagine a scenario where you’re sharing Ethernet on a Mac via Wi-Fi with your phone and want to access port 8080 on your phone via the Mac’s Ethernet.</p><p>Initially, you’ll need to modify the /etc/pf.conf file. To do so, append the following lines:</p><pre>anchor &quot;custom&quot;<br>load anchor &quot;custom&quot; from &quot;/etc/pf.anchors/custom&quot;</pre><p>In this context, “custom” signifies the name of the anchor, which can be altered according to your preferences. The path following from - /etc/pf.anchors/custom - will store the port forwarding rules we&#39;re about to introduce. If desired, you can specify a different file path.</p><p>Next, generate a file at &quot;/etc/pf.anchors/custom&quot; and incorporate the rule for port forwarding. As an example, suppose your Mac utilizes the en0 interface for the Ethernet. If you&#39;re uncertain about which interface is in use, you can scrutinize the output of the ifconfig command and identify the interface by its associated IP address. For this guide, we&#39;ll presume the en0 interface is in use. To forward the 8080 TCP port on your Mac to the port 8080 on your phone (whose IP, for the sake of this guide, is 192.168.2.10), you&#39;ll need to add the following line:</p><pre>rdr pass on en0 inet proto tcp from any to any port 8080 -&gt; 192.168.2.10 port 8080</pre><p>Subsequently, execute the following command to load the new rules from the recently added “custom” anchor:</p><pre>pfctl -f /etc/pf.conf</pre><p>To verify if the rules have been successfully incorporated, use pfctl -a custom -sn, where &quot;custom&quot; denotes the anchor name.</p><p>Upon successful addition, the output should resemble:</p><pre># pfctl -a custom -sn<br>No ALTQ support in kernel<br>ALTQ related functions disabled<br>rdr pass on en0 inet proto tcp from any to any port = 8080 -&gt; 192.168.2.10 port 8080</pre><p>Should you ever decide to discontinue port forwarding, the rules on the anchor can be removed via the anchor name using pfctl -a custom -F all. Following this, you can edit the /etc/pf.conf file to delete the two lines that were added earlier. Lastly, delete the /etc/pf.anchors/custom file.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7a338f09953" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>