<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Abhisek Goswami: Documentation Made Easy</title>
<link>https://abhisek-goswami.com/blog/category/documentation-made-easy/</link>
<atom:link href="https://abhisek-goswami.com/blog/category/documentation-made-easy/rss.xml" rel="self" type="application/rss+xml"/>
<description>Step-by-step guides and plain-language explainers that make technical work easy to follow.</description>
<language>en-in</language>
<lastBuildDate>Thu, 03 Dec 2026 13:30:00 GMT</lastBuildDate>
<item>
<title>Remote desktop from Linux with Remmina: a secure setup guide</title>
<link>https://abhisek-goswami.com/blog/remmina-rdp-on-linux-guide/</link>
<guid isPermaLink="true">https://abhisek-goswami.com/blog/remmina-rdp-on-linux-guide/</guid>
<pubDate>Thu, 03 Dec 2026 13:30:00 GMT</pubDate>
<category>Documentation Made Easy</category>
<category>linux</category><category>rdp</category><category>remmina</category><category>remote-work</category><category>security</category>
<description>Install Remmina, create an RDP connection without storing credentials, tune it for slow networks, secure it with a VPN or SSH tunnel, and fix common problems.</description>
<content:encoded><![CDATA[<p><img src="https://abhisek-goswami.com/blog/img/remmina-rdp-on-linux-guide.png" alt="Infographic: remote desktop from Linux with Remmina in five steps: install, create a profile, no saved passwords, tune and secure"></p><p>Remote work means many of us need to reach Windows or Linux desktops from a Linux machine. <strong>Remmina</strong> is the most popular open-source remote desktop client for Linux, and it supports RDP, VNC, SSH and more.</p>
<p>This guide covers installing Remmina, creating a secure RDP connection that <strong>doesn&#39;t store your credentials</strong>, tuning performance, and fixing common issues.</p>
<h2>Why Remmina?</h2>
<ul>
<li><strong>Many protocols:</strong> RDP, VNC, SPICE, SSH and more, in one app.</li>
<li><strong>Saved profiles:</strong> organise all your connections in one place.</li>
<li><strong>Easy to use:</strong> a clean interface for beginners, with deep settings for experts.</li>
<li><strong>Actively maintained:</strong> regular updates for security and new features (<a href="https://remmina.org/">remmina.org</a>).</li>
</ul>
<p><img src="https://abhisek-goswami.com/blog/img/remmina-main-window.png" alt="Remmina&#39;s main window, with the RDP protocol selected and an empty list of saved connections"></p>
<h2>Step 1: Install Remmina</h2>
<p><strong>Ubuntu / Debian</strong></p>
<pre><code class="language-bash">sudo apt update
sudo apt install remmina remmina-plugin-rdp
</code></pre>
<p><strong>Fedora</strong></p>
<pre><code class="language-bash">sudo dnf install remmina remmina-plugins-rdp
</code></pre>
<p><strong>Arch Linux</strong></p>
<pre><code class="language-bash">sudo pacman -S remmina freerdp
</code></pre>
<p><strong>Any distribution (Flatpak)</strong></p>
<pre><code class="language-bash">flatpak install flathub org.remmina.Remmina
</code></pre>
<h2>Step 2: Create a connection profile</h2>
<ol>
<li>Open Remmina and click <strong>New connection profile</strong> (the <strong>+</strong> icon).</li>
<li>Set <strong>Protocol</strong> to <strong>RDP – Remote Desktop Protocol</strong>.</li>
<li>Fill in the <strong>Basic</strong> tab:</li>
</ol>
<pre><code class="language-text">Name:      Office workstation
Server:    192.168.1.50   (or host name, e.g. desktop.example.local)
Username:  (leave empty)
Password:  (leave empty)
</code></pre>
<ol start="4">
<li>Click <strong>Save</strong>.</li>
</ol>
<h2>Step 3: Keep your credentials off the machine</h2>
<p>Leaving <strong>Username</strong> and <strong>Password</strong> empty means Remmina <strong>asks for them each time</strong> you connect, instead of storing them in the profile. That&#39;s safer on shared or portable computers: if the laptop is lost, your RDP password isn&#39;t saved on it.</p>
<blockquote>
<p><strong>A note on &quot;anonymous&quot; RDP:</strong> Windows RDP servers require authentication, and Network Level Authentication (NLA) checks credentials before a session starts. You can avoid <strong>storing</strong> credentials, but you can&#39;t skip authentication. That&#39;s a good thing.</p>
</blockquote>
<h2>Step 4: Tune performance</h2>
<p>Open the profile&#39;s <strong>Advanced</strong> tab:</p>
<pre><code class="language-text">Colour depth:        lower it (e.g. 16 bpp) on slow connections
Quality:             &quot;Poor&quot; or &quot;Medium&quot; for slow links, &quot;Best&quot; on a LAN
Resolution:          match your screen, or use a fixed smaller size
Disable wallpaper:   on
Clipboard:           on only if you need it
Shared folder:       only if you need to move files
</code></pre>
<p>Lower colour depth, smaller resolution and no wallpaper or effects make a noticeable difference on slow or mobile connections.</p>
<h2>Step 5: Secure the connection</h2>
<p><strong>Never expose RDP (port 3389) directly to the internet.</strong> Instead:</p>
<ul>
<li><strong>Use a VPN.</strong> Connect your organisation&#39;s VPN first, then open Remmina. See <a href="https://abhisek-goswami.com/blog/secure-rdp-with-ssl-vpn/">Securing RDP with an SSL VPN</a>.</li>
<li><strong>Or use an SSH tunnel.</strong> Remmina&#39;s <strong>SSH Tunnel</strong> tab can route the RDP session through an SSH server you already have access to:</li>
</ul>
<pre><code class="language-text">SSH Tunnel tab:
  Enable SSH tunnel:   on
  SSH server:          bastion.example.com:22
  Authentication:      SSH public key (recommended)
</code></pre>
<ul>
<li><strong>Verify the certificate.</strong> On first connection, Remmina shows the server&#39;s certificate fingerprint. Accept it only if it matches what your administrator gave you.</li>
</ul>
<h2>Troubleshooting</h2>
<table>
<thead>
<tr>
<th>Problem</th>
<th>What to check</th>
</tr>
</thead>
<tbody><tr>
<td>Connection fails immediately</td>
<td>Server address and port; is the host reachable (<code>ping</code>)? Is the VPN connected?</td>
</tr>
<tr>
<td>Authentication fails</td>
<td>Username format (<code>DOMAIN\user</code> or <code>user@domain</code>); Caps Lock; account not locked</td>
</tr>
<tr>
<td>Certificate warning</td>
<td>Confirm the fingerprint with your IT team before accepting</td>
</tr>
<tr>
<td>Slow or laggy session</td>
<td>Lower colour depth and quality; disable wallpaper; check bandwidth</td>
</tr>
<tr>
<td>RDP option missing</td>
<td>Install the RDP plugin (<code>remmina-plugin-rdp</code> or <code>freerdp</code>)</td>
</tr>
</tbody></table>
<p>For detail, start Remmina from a terminal (<code>remmina</code>) and read the error messages it prints.</p>
<h2>Use remote access responsibly</h2>
<ul>
<li>Connect only to systems you&#39;re authorised to use.</li>
<li>Follow your organisation&#39;s remote-access and acceptable-use policies.</li>
<li>Lock or disconnect sessions when you step away.</li>
</ul>
<h2>Conclusion</h2>
<p>Remmina makes RDP from Linux simple. Install it, create a profile that doesn&#39;t store credentials, tune it for your network, and always connect through a VPN or SSH tunnel. You get a remote desktop that&#39;s fast <strong>and</strong> secure.</p>
<p><em>Related reading: <a href="https://abhisek-goswami.com/blog/secure-rdp-with-ssl-vpn/">Securing RDP with an SSL VPN</a> · <a href="https://abhisek-goswami.com/blog/singapore-vps-hosting-for-asian-businesses/">Singapore VPS hosting</a></em></p>
<p><em>Originally published at <a href="https://abhisek-goswami.com/blog/remmina-rdp-on-linux-guide/">abhisek-goswami.com</a>.</em></p>]]></content:encoded>
</item>
<item>
<title>Securing Remote Desktop Protocol (RDP) with an SSL VPN</title>
<link>https://abhisek-goswami.com/blog/secure-rdp-with-ssl-vpn/</link>
<guid isPermaLink="true">https://abhisek-goswami.com/blog/secure-rdp-with-ssl-vpn/</guid>
<pubDate>Thu, 03 Dec 2026 12:30:00 GMT</pubDate>
<category>Documentation Made Easy</category>
<category>security</category><category>rdp</category><category>vpn</category><category>tls</category><category>remote-work</category>
<description>Why exposed RDP is risky, how SSL VPNs work, and a step-by-step checklist to put remote desktop safely behind an encrypted, MFA-protected tunnel.</description>
<content:encoded><![CDATA[<p><img src="https://abhisek-goswami.com/blog/img/secure-rdp-with-ssl-vpn.png" alt="Infographic: securing remote desktop with an SSL VPN in five steps, from remote user and MFA to TLS tunnel, VPN gateway and RDP host"></p><p><strong>Remote Desktop Protocol (RDP)</strong>, developed by Microsoft, lets people use a computer, server or application from anywhere, as if they were sitting in front of it. Administrators, remote workers, developers and support teams rely on it every day.</p>
<p>That convenience is also a risk. RDP servers exposed directly to the internet are a favourite target for attackers, and a compromised RDP login can lead to data breaches or ransomware. Putting RDP behind an <strong>SSL VPN</strong> is one of the most effective ways to protect it.</p>
<h2>RDP basics</h2>
<p>RDP sends the remote screen to you and your keyboard and mouse input back, so it feels local. Key features:</p>
<ul>
<li><strong>Desktop access and control:</strong> see and operate a remote machine.</li>
<li><strong>Resource sharing:</strong> files, clipboard, printers and drives.</li>
<li><strong>Encryption:</strong> modern RDP uses TLS and Network Level Authentication (NLA).</li>
</ul>
<p>Common uses include system administration, remote work, software testing, training and support.</p>
<h2>What is an SSL VPN?</h2>
<p>An <strong>SSL VPN</strong> creates an encrypted tunnel between a user and a private network using the <strong>TLS</strong> protocol. &quot;SSL&quot; is the historical name; TLS replaced SSL years ago, but the term stuck. SSL VPNs come in two forms:</p>
<ul>
<li><strong>Clientless:</strong> users connect through a web browser portal.</li>
<li><strong>Client-based:</strong> a small app gives full network access.</li>
</ul>
<h3>Building blocks</h3>
<ul>
<li><strong>Authentication:</strong> passwords plus multi-factor authentication (MFA), tokens or digital certificates.</li>
<li><strong>Encryption:</strong> TLS protects everything in transit.</li>
<li><strong>Access control:</strong> rules decide who can reach which systems, following the principle of least privilege.</li>
<li><strong>Endpoint checks:</strong> the gateway can check that a device is patched and has security software before letting it in.</li>
</ul>
<h3>Why organisations choose SSL VPNs</h3>
<ul>
<li><strong>Easy access</strong> from laptops, tablets and phones, even through a browser.</li>
<li><strong>Strong encryption</strong> using the same TLS that protects online banking.</li>
<li><strong>MFA support</strong> to stop stolen passwords from being enough.</li>
<li><strong>Granular control</strong> per user or group.</li>
<li><strong>Good fit for BYOD</strong>, with posture checks for personal devices.</li>
<li><strong>Scales</strong> from small teams to large enterprises.</li>
</ul>
<h2>How an SSL VPN works</h2>
<ol>
<li><strong>Handshake:</strong> the client and gateway agree on encryption settings and verify certificates.</li>
<li><strong>Authentication:</strong> the user proves who they are, ideally with MFA.</li>
<li><strong>Encrypted session:</strong> TLS encrypts traffic, today typically with AES-GCM or ChaCha20. Older ciphers like RC4 and 3DES are deprecated and should be disabled.</li>
<li><strong>Session management:</strong> sessions time out and users re-authenticate periodically.</li>
<li><strong>Reverse proxy (often):</strong> the gateway sits between users and internal servers, so those servers are never directly reachable from the internet.</li>
</ol>
<p>For configuration guidance, see NIST&#39;s <a href="https://csrc.nist.gov/pubs/sp/800/52/r2/final">TLS guidelines (SP 800-52)</a>.</p>
<h2>Why put RDP behind an SSL VPN?</h2>
<ul>
<li><strong>RDP isn&#39;t exposed to the internet:</strong> port 3389 is closed to the outside world, which removes the most common attack path.</li>
<li><strong>Two layers of authentication:</strong> VPN login with MFA, then RDP login.</li>
<li><strong>Protection on untrusted networks:</strong> hotel and café Wi-Fi can&#39;t read your session.</li>
<li><strong>Visibility:</strong> the gateway logs who connected, when and to what.</li>
<li><strong>Device checks:</strong> only healthy devices reach your servers.</li>
</ul>
<h2>Setting it up: a checklist</h2>
<p><strong>On the VPN gateway</strong></p>
<ol>
<li>Install and configure the SSL VPN following your vendor&#39;s guide.</li>
<li>Install a valid TLS certificate from a trusted certificate authority.</li>
<li>Connect authentication to your directory (for example Active Directory or Entra ID) and <strong>turn on MFA</strong>.</li>
<li>Create a policy that allows RDP (TCP 3389) only to specific hosts and only for specific groups.</li>
</ol>
<p><strong>On the RDP hosts and network</strong></p>
<ol>
<li>Require <strong>Network Level Authentication</strong> on the RDP host.</li>
<li>Update firewall rules so RDP is reachable <strong>only from the VPN address range</strong>.</li>
<li>Keep hosts patched, and lock accounts after repeated failed logins.</li>
</ol>
<p><strong>On user devices</strong></p>
<ol>
<li>Install the VPN client (or share the portal address).</li>
<li>Configure the RDP client to connect to the internal host name once the VPN is up.</li>
</ol>
<p><strong>Before launch</strong></p>
<ol>
<li>Test from outside the network: RDP must fail without the VPN and work with it.</li>
<li>Document the setup and train users.</li>
</ol>
<h2>Authentication best practices</h2>
<ul>
<li><strong>MFA everywhere:</strong> an authenticator app or hardware key, not just SMS where possible.</li>
<li><strong>Certificates:</strong> strong, but plan how you&#39;ll issue, renew and revoke them.</li>
<li><strong>Passwords:</strong> long passphrases and a check against known-breached passwords. Current <a href="https://pages.nist.gov/800-63-4/">NIST guidance</a> favours this over forced regular changes.</li>
</ul>
<h2>Conclusion</h2>
<p>RDP is indispensable, but it should never face the internet on its own. An SSL VPN with MFA, tight access rules and good logging turns it into a secure, user-friendly way to work from anywhere.</p>
<p><em>Using Linux? Read <a href="https://abhisek-goswami.com/blog/remmina-rdp-on-linux-guide/">Remote desktop from Linux with Remmina</a>.</em></p>
<p><em>Originally published at <a href="https://abhisek-goswami.com/blog/secure-rdp-with-ssl-vpn/">abhisek-goswami.com</a>.</em></p>]]></content:encoded>
</item>
<item>
<title>REST APIs explained with simple examples and real-world use cases</title>
<link>https://abhisek-goswami.com/blog/rest-apis-explained/</link>
<guid isPermaLink="true">https://abhisek-goswami.com/blog/rest-apis-explained/</guid>
<pubDate>Thu, 03 Dec 2026 04:30:00 GMT</pubDate>
<category>Documentation Made Easy</category>
<category>api</category><category>rest</category><category>python</category><category>flask</category><category>developer-docs</category>
<description>What a REST API is, the four HTTP verbs, real examples from social media and healthcare, a working Flask API in Python, and the practices that make an API easy to use.</description>
<content:encoded><![CDATA[<p><img src="https://abhisek-goswami.com/blog/img/rest-apis-explained.png" alt="Infographic: REST APIs in four verbs, GET, POST, PUT and DELETE, using an online bookstore as the example"></p><p>Streaming a film, checking your bank balance, booking a cab: behind each of these, REST APIs are moving data between applications. This guide explains the basics with examples you can try.</p>
<h2>What is a REST API?</h2>
<p>A <strong>REST API</strong> (Representational State Transfer Application Programming Interface) lets software applications talk to each other using standard HTTP requests. It&#39;s lightweight and scalable, which is why it replaced most older, heavier integration methods.</p>
<p>Think of an API as a <strong>waiter in a restaurant</strong>. You place an order, the waiter takes it to the kitchen and comes back with your dish. An API takes your request to a server and comes back with the data, or confirms that the action happened.</p>
<h2>What makes REST different</h2>
<p>REST APIs are <strong>stateless</strong>: every request carries everything the server needs to process it. They also use a small set of standard HTTP methods:</p>
<table>
<thead>
<tr>
<th>Method</th>
<th>Purpose</th>
<th>Bookstore example</th>
</tr>
</thead>
<tbody><tr>
<td><code>GET</code></td>
<td>Read data</td>
<td>List available books</td>
</tr>
<tr>
<td><code>POST</code></td>
<td>Create data</td>
<td>Add a new book</td>
</tr>
<tr>
<td><code>PUT</code></td>
<td>Update data</td>
<td>Change a book&#39;s price</td>
</tr>
<tr>
<td><code>DELETE</code></td>
<td>Remove data</td>
<td>Take an old listing down</td>
</tr>
</tbody></table>
<p>Because every REST API uses the same verbs, a developer who has used one can quickly understand another.</p>
<h2>Real-world use cases</h2>
<p><strong>Social media.</strong> Platforms such as X (formerly Twitter) offer APIs so other apps can read posts, publish updates or analyse trends. Reading a user&#39;s recent posts looks like this:</p>
<pre><code class="language-http">GET https://api.x.com/2/users/{user_id}/tweets
</code></pre>
<p>The response is JSON: the posts plus details such as like and repost counts. Check the <a href="https://docs.x.com/x-api/introduction">X API documentation</a> for current access tiers.</p>
<p><strong>Healthcare.</strong> Electronic health record systems use APIs to share data securely. A patient-portal call might be:</p>
<pre><code class="language-http">GET /appointments/12345
</code></pre>
<p>The response lists the patient&#39;s upcoming appointments, so the portal, the clinic and reminder systems all show the same information.</p>
<h2>Build a small REST API with Python and Flask</h2>
<p><a href="https://flask.palletsprojects.com/">Flask</a> is a lightweight Python web framework. Here is a minimal API for a library.</p>
<p><strong>1. Install Flask:</strong></p>
<pre><code class="language-bash">pip install flask
</code></pre>
<p><strong>2. Create <code>app.py</code>:</strong></p>
<pre><code class="language-python">from flask import Flask, jsonify, request

app = Flask(__name__)

books = [
    {&quot;id&quot;: 1, &quot;title&quot;: &quot;1984&quot;, &quot;author&quot;: &quot;George Orwell&quot;},
    {&quot;id&quot;: 2, &quot;title&quot;: &quot;To Kill a Mockingbird&quot;, &quot;author&quot;: &quot;Harper Lee&quot;},
]

@app.route(&quot;/books&quot;, methods=[&quot;GET&quot;])
def get_books():
    return jsonify(books)

@app.route(&quot;/books&quot;, methods=[&quot;POST&quot;])
def add_book():
    new_book = request.get_json()
    books.append(new_book)
    return jsonify({&quot;message&quot;: &quot;Book added&quot;}), 201

@app.route(&quot;/books/&lt;int:book_id&gt;&quot;, methods=[&quot;PUT&quot;])
def update_book(book_id):
    updated = request.get_json()
    for book in books:
        if book[&quot;id&quot;] == book_id:
            book.update(updated)
            return jsonify({&quot;message&quot;: &quot;Book updated&quot;})
    return jsonify({&quot;message&quot;: &quot;Book not found&quot;}), 404

@app.route(&quot;/books/&lt;int:book_id&gt;&quot;, methods=[&quot;DELETE&quot;])
def delete_book(book_id):
    global books
    books = [b for b in books if b[&quot;id&quot;] != book_id]
    return jsonify({&quot;message&quot;: &quot;Book deleted&quot;})

if __name__ == &quot;__main__&quot;:
    app.run(debug=True)
</code></pre>
<p><strong>3. Run it:</strong></p>
<pre><code class="language-bash">python app.py
</code></pre>
<p><strong>4. Try it</strong> with cURL or <a href="https://www.postman.com/">Postman</a>:</p>
<pre><code class="language-bash">curl http://127.0.0.1:5000/books
curl -X POST http://127.0.0.1:5000/books \
  -H &quot;Content-Type: application/json&quot; \
  -d &#39;{&quot;id&quot;: 3, &quot;title&quot;: &quot;Dune&quot;, &quot;author&quot;: &quot;Frank Herbert&quot;}&#39;
</code></pre>
<h2>Best practices for a REST API people enjoy using</h2>
<ul>
<li><strong>Document it.</strong> Clear docs decide whether developers adopt your API. Tools like <a href="https://swagger.io/specification/">Swagger / OpenAPI</a> and Postman generate interactive documentation.</li>
<li><strong>Authenticate.</strong> Use API keys or <a href="https://oauth.net/2/">OAuth 2.0</a> so only the right clients get in.</li>
<li><strong>Rate-limit.</strong> Cap requests per client and time window to protect performance.</li>
<li><strong>Return useful errors.</strong> A clear message and the right status code (400, 404, 429) save developers hours.</li>
<li><strong>Version it.</strong> Use paths like <code>/v1/books</code> and <code>/v2/books</code> so you can improve the API without breaking existing users.</li>
</ul>
<h2>Where REST APIs are heading</h2>
<p>REST still powers most integrations: storefronts talking to payment gateways, ride-hailing apps talking to maps and payments, analytics tools talking to everything. Learning the basics is useful for developers, product managers and founders alike.</p>
<p><em>More from the blog: <a href="https://abhisek-goswami.com/blog/javascript-async-callbacks-promises-async-await/">JavaScript asynchronous programming</a>, which is how a web page calls an API without freezing. Want to see API documentation I&#39;ve written? Browse my <a href="https://abhisek-goswami.com/projects/">projects and samples</a>.</em></p>
<p><em>Originally published at <a href="https://abhisek-goswami.com/blog/rest-apis-explained/">abhisek-goswami.com</a>.</em></p>]]></content:encoded>
</item>
</channel>
</rss>
