<?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 Muhammad Faizan on Medium]]></title>
        <description><![CDATA[Stories by Muhammad Faizan on Medium]]></description>
        <link>https://medium.com/@intellexlab?source=rss-54bbb225fcbf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*A35t_rd4r1fVsfu1.jpg</url>
            <title>Stories by Muhammad Faizan on Medium</title>
            <link>https://medium.com/@intellexlab?source=rss-54bbb225fcbf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 14:24:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@intellexlab/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[Docker based latex environment for quick & easy write up using vscode.]]></title>
            <link>https://intellexlab.medium.com/docker-based-latex-environment-for-quick-easy-write-up-using-vscode-795b921cc411?source=rss-54bbb225fcbf------2</link>
            <guid isPermaLink="false">https://medium.com/p/795b921cc411</guid>
            <category><![CDATA[report-writing]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[latex]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Muhammad Faizan]]></dc:creator>
            <pubDate>Thu, 03 Jun 2021 15:39:26 GMT</pubDate>
            <atom:updated>2021-06-03T15:39:26.274Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WFyA2D62hQJWxJOiV-69zA.png" /><figcaption>Latex with Docker &amp; VSCode</figcaption></figure><p>Recently, I got a chance to work with latex environment to write up some reports for my personal work. I didn’t like the idea to install every component of latex eco-system to my machine, and also it was really confusing and hard for a beginner to setup a latex environment. So, instead I looked for a containerized solution where I can just put all the latex dependencies in a separate container and abstract out the complexities for a novice user. I have pushed up a simple docker based latex environment on my <a href="https://github.com/mfaizanse/latex-docker">github account</a> which you can reuse and easily work with your latex documents. The below method works with MacOS, Windows and Linux machines.</p><h3><strong>Pre-requisites:</strong></h3><ol><li><a href="https://www.docker.com/products/docker-desktop">Docker desktop</a>: Install docker desktop on your machine using the official installer from <a href="https://www.docker.com/products/docker-desktop">here</a>. Docker is available for MacOS, Windows and Linux.</li><li><a href="https://code.visualstudio.com/download">Visual Studio Code (VSCode)</a>: VSCode is an open-source editor by Microsoft. Install VSCode using the official installer from <a href="https://code.visualstudio.com/download">here</a>.</li><li><a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers">Remote — Containers — VSCode Extension</a>: Install this Remote Containers extension in vscode (<a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers">details</a>). It allows to remotely connect to the latex containerized environment and allows you to edit and build latex files.</li><li><a href="https://marketplace.visualstudio.com/items?itemName=James-Yu.latex-workshop">LaTeX Workshop — VSCode Extension</a>: Install this Latex workshop extension in vscode (<a href="https://marketplace.visualstudio.com/items?itemName=James-Yu.latex-workshop">details</a>). Tt allows additional features for easily editing and formatting latex files.</li></ol><h3>Steps:</h3><ol><li>Clone / Fork / <a href="https://github.com/mfaizanse/latex-docker/archive/refs/heads/main.zip">Download</a> my <a href="https://github.com/mfaizanse/latex-docker">latex-docker</a> git repository to your machine.</li></ol><pre>git clone <a href="https://github.com/mfaizanse/latex-docker.git">https://github.com/mfaizanse/latex-docker.git</a></pre><p>2. Open VSCode on your machine. Click the green button on the bottom left corner of the VSCode window. As shown in below image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*5A2V_OW2LkIhAVxhYRnFkg.png" /><figcaption>VSCode: Green button to open Remote Containers drop-down menu.</figcaption></figure><p>3. Select “Open Folder in Container” option from the drop-down menu and open the directory of the repository we downloaded in step 1. See image below for reference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZxytBwfW8g_JP7-vvUjd9w.png" /><figcaption>VSCode: Open Folder in Container</figcaption></figure><p>4. Create / add latex (i.e. tex) files in source directory, and build the project to generate the final pdf. The generated pdf will be saved in source/build directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZlyD1jaFx_H0Jr8uVeqfVQ.png" /></figure><p>5. All Done! You can start editing your latex files !!!</p><h3>Advance Features (Optional):</h3><ul><li><strong>Auto Build on Save:</strong> If you want to auto build the pdf whenever you save a tex file, change the latex-workshop.latex.autoBuild.run from never to onFileChange in file .devcontainer/devcontainer.json.</li><li><strong>Installing additional latex packages:</strong> If you need to install any other latex package in the latex container environment, you can easily edit the dockerfile in .devcontainer directory to add commands to install your desired pacakge. Once you have edited the dockerfile, you need to build your own docker image. For that you need to edit the .devcontainer/docker-compose.yaml file and comment out the image spec and uncomment the build spec. Reload VSCode for the changes to take effect.</li></ul><blockquote><strong>Disclaimer</strong>: Please use my files at your risk. I have tested it on MacOS, Windows 10 and Ubuntu 20.04. If you face any issues, feel free to comment below.</blockquote><h3>References</h3><ul><li>qmcgaw/latexdevcontaine: <a href="https://hub.docker.com/r/qmcgaw/latexdevcontainer">https://hub.docker.com/r/qmcgaw/latexdevcontainer</a></li><li>mfaizan95/latex-docker: <a href="https://hub.docker.com/repository/docker/mfaizan95/latex-docker">https://hub.docker.com/repository/docker/mfaizan95/latex-docker</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=795b921cc411" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to set up Softether VPN client on Ubuntu 20.04 / Linux [Simple]]]></title>
            <link>https://intellexlab.medium.com/how-to-set-up-softether-vpn-client-on-ubuntu-20-04-linux-simple-41768d76ea3?source=rss-54bbb225fcbf------2</link>
            <guid isPermaLink="false">https://medium.com/p/41768d76ea3</guid>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[softether-vpn]]></category>
            <category><![CDATA[linux-mint]]></category>
            <dc:creator><![CDATA[Muhammad Faizan]]></dc:creator>
            <pubDate>Sat, 03 Apr 2021 22:05:02 GMT</pubDate>
            <atom:updated>2021-04-04T13:44:07.420Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="VPN" src="https://cdn-images-1.medium.com/max/1024/1*WbkDQtdhY1ri5U-TKPiaVg.png" /></figure><p>If for any reason, you have to use the SoftEther VPN Client on Linux / Ubuntu environment then you would have noticed that right now there is no UI interface available by SoftEther VPN client for Linux environment. Only the command line tool is available to configure and connect to the VPN server, which is quite a complicated process.</p><p>To make things easier, I have written bash scripts to easily configure, connect/disconnect VPN. The scripts are available at my git repository <a href="https://github.com/mfaizanse/intellexlab-files/tree/main/softether-vpn-client">here</a>. Below I have mentioned the steps needed to properly set up the SoftEther VPN Client on Ubuntu / Linux.</p><h3>Prerequisites:</h3><ol><li>VPN User Account.</li><li>VPN connection configurations (VPN Server Host name, Port and IPv4 address etc.). <strong>Note</strong>: If you don’t know the VPN Server Host IPv4 address, then you can easily find it using the command “nslookup &lt;hostname&gt;”, or simply visit the website (<a href="https://whatismyipaddress.com/hostname-ip">https://whatismyipaddress.com/hostname-ip</a>).</li><li>Linux (Ubuntu, Linux Mint etc.) machine.</li><li>Make sure that IP forwarding is enabled in your system. <strong>Note</strong>: To check if IP forwarding is enabled, open terminal window, and run the following command:</li></ol><pre>cat /proc/sys/net/ipv4/ip_forward</pre><p>If it returns ‘1’, then IP forwarding is enabled and you are good to go to Step 1. Otherwise, you need to enable IP forwarding in /etc/sysctl.conf file.</p><ul><li>Open the file /etc/sysctl.conf in an editor (e.g. sudo gedit /etc/sysctl.conf).</li><li>Uncomment the line: <em>net.ipv4.ip_forward=1. Save and close the file.</em></li><li>Run the following command in terminal: sysctl -p .</li></ul><p>5. Find the local gateway of your system by running the command: sudo netstat -rn . Please note down the gateway IPv4 address, we will need it in step 2. In the following example, the gateway is: 192.168.0.1 .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wFY0-aj0qKrvvThts0JUzQ.png" /></figure><h3>Step 1: Download and extract SoftEther VPN Client</h3><ol><li>Go to SoftEther official website (<a href="https://www.softether.org/">https://www.softether.org</a>) and download the client for your machine. Navigate to Download &gt; Download SoftEther VPN . Click on Download SoftEther VPN .</li></ol><figure><img alt="SoftEther Download Link" src="https://cdn-images-1.medium.com/max/920/1*zn6R9V04xbUfc2_i2e3aWg.png" /></figure><p>2. Make sure you have selected the correct CPU type.</p><figure><img alt="SoftEther VPN Client Linux Download" src="https://cdn-images-1.medium.com/max/904/1*luA1otWOMCQ5YwBMvUOqfQ.png" /></figure><p>3. Extract the downloaded tar.gz file to the location ~/softether.</p><p><strong>Note</strong>: You can also extract it to any other location, but then you would need to update the location configurations in step 2 (in file: vpn_config). To extract the file, you can use the following commands:</p><pre>mkdir ~/softether</pre><pre>tar -xf softether-vpnclient-&lt;version_info&gt;.tar.gz -C ~/softether</pre><p>Now, download the <a href="https://github.com/mfaizanse/intellexlab-files/tree/main/softether-vpn-client">script files from my repository</a>, and save them anywhere on your machine.</p><h3>Step 2: Setup the SoftEther VPN Client</h3><ol><li>Open terminal to the location where you have saved these script files.</li><li>First, we need to set the configuration variables in the file named vpn_config. Open the file in your favourite editor and set the following variables:</li></ol><ul><li>CLIENT_DIR: The location of the SoftEther VPN Client extracted in step 1. e.g. /home/&lt;username&gt;/softether/vpnclient .</li><li>NIC_NAME: The name for virtual network interface. You can use the default one nic1 .</li><li>ACCOUNT_NAME: The name of the VPN Account. You can use any text here. e.g. cisco, cactusvpn etc.</li><li>VPN_HOST_IPv4: The VPN Server Host IP address, which is mentioned in prerequisites e.g. 169.123.123.123.</li><li>LOCAL_GATEWAY: The gateway IPv4 address which we noted in prerequisite#5. e.g. 192.168.0.1 .</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*TuTwpR_aQCj5C6h5yrsBeg.png" /></figure><p>3. Now, make sure the script files are marked as executables. You can review the scripts if you want to, for security concerns :)</p><p>You can run the following commands on the terminal to make them executables:</p><pre>chmod +x ./setup-client.sh</pre><pre>chmod +x ./remove-client.sh</pre><pre>chmod +x ./vpn-connect.sh</pre><pre>chmod +x ./vpn-disconnect.sh</pre><p>4. Run the first setup script, by running the command:</p><pre>./setup-client.sh</pre><p>Follow the instructions on the terminal, and provide the asked information.</p><ul><li><em>Accept the License Agreement by entering 1.</em></li><li><em>Accept the Terms and conditions by entering 1.</em></li><li><em>Destination VPN Server Host Name and Port Number: </em><em>&lt;hostname&gt;:&lt;port&gt; . e.g. vpn.intellexlab.com:443.</em></li><li><em>Destination Virtual Hub Name: </em><em>&lt;hub_name&gt; . The hub name provided by your VPN provider.</em></li><li><em>Connecting User Name: </em><em>&lt;your_vpn_username&gt; .</em></li><li><em>Used Virtual Network Adapter Name: </em><em>&lt;NIC_NAME&gt;. The NIC name we set in vpn_config. e.g. </em><em>nic1.</em></li><li><em>Password: </em><em>&lt;your_vpn_password&gt; .</em></li><li><em>Specify standard or radius: </em><em>radius . Or according to your VPN provider.</em></li></ul><p>When done, review the output on the terminal window to see if there are any errors/issues. If not, continue to next step.</p><h3>Step 3: Connect to the VPN</h3><p>Since now everything is configured, you can connect to the VPN by running the command:</p><pre>./vpn-connect.sh</pre><p>Once completed, you should be able to browse the internet. Hurryyy!!!</p><h4>Disconnect / Sign-Out</h4><p>To disconnect from the VPN, simply run ./vpn-disconnect.sh. Next time, you want to connect again, just simply run ./vpn-connect.sh .</p><p>To permanently sign out your VPN account, first disconnect and then run ./remove-client.sh .</p><blockquote><strong><em>Disclaimer</em></strong><em>: Please use my scripts at your risk. Its working fine for me. If you face any issues, feel free to comment below.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41768d76ea3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>