<?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 Karan Ksrk on Medium]]></title>
        <description><![CDATA[Stories by Karan Ksrk on Medium]]></description>
        <link>https://medium.com/@ksrk?source=rss-ceb31b9a865f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*v2LBy5cHJvgZJGUIJIZc0Q.jpeg</url>
            <title>Stories by Karan Ksrk on Medium</title>
            <link>https://medium.com/@ksrk?source=rss-ceb31b9a865f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 23:38:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ksrk/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[I Built a Tool to Cast My PC Screen to DJI Goggles 3 (and Any DLNA TV)]]></title>
            <link>https://ksrk.medium.com/i-built-a-tool-to-cast-my-pc-screen-to-dji-goggles-3-and-any-dlna-tv-743f3c651bc6?source=rss-ceb31b9a865f------2</link>
            <guid isPermaLink="false">https://medium.com/p/743f3c651bc6</guid>
            <category><![CDATA[fpv]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[dji]]></category>
            <category><![CDATA[dlna]]></category>
            <dc:creator><![CDATA[Karan Ksrk]]></dc:creator>
            <pubDate>Sat, 17 Oct 2026 08:10:58 GMT</pubDate>
            <atom:updated>2026-10-17T08:14:48.560Z</atom:updated>
            <content:encoded><![CDATA[<p>FPV goggles have some of the best personal screens I own, and my DJI Goggles 3 can show up on my home network as a DLNA renderer. I wanted to send a movie, or my live desktop, straight to them from my Windows PC, with sound and remote control, without setting up a media server. So I built <strong>dlna-cast</strong>.</p><p>dlna-cast is an open-source Node.js tool that casts videos, music or your live desktop to DLNA video goggles and smart TVs, from a desktop app or the command line. It uses only open standards (SSDP for discovery, HTTP for streaming and SOAP for control) and has zero npm dependencies.</p><p>GitHub: <a href="https://github.com/karan-ksrk/dlna-cast">github.com/karan-ksrk/dlna-cast</a></p><h3>What it does</h3><ul><li><strong>Finds renderers automatically.</strong> It sends SSDP M-SEARCH requests and also listens for the NOTIFY announcements some devices send instead of answering searches. It remembers the last device you used.</li><li><strong>Casts files with seeking.</strong> Files are served with HTTP byte ranges, and the format is matched to what the renderer says it accepts.</li><li><strong>Casts your screen live</strong> as low-latency H.264 in MPEG-TS, using GPU capture and encoding (NVENC, Quick Sync or AMF) when available, and falling back to software automatically.</li><li><strong>Includes your PC’s sound</strong> through WASAPI loopback, with no virtual audio driver needed.</li><li><strong>Full remote control:</strong> pause, resume, seek, volume and mute. Every command is read back to confirm it took effect.</li><li><strong>A desktop app and a CLI.</strong> The app has a native file picker, recent files, display and quality choices, a live throughput readout and an activity log.</li></ul><h3>Tested on DJI Goggles 3</h3><p>My test device is the DJI Goggles 3. Here’s how it behaved:</p><ul><li><strong>Discovery:</strong> the goggles don’t answer SSDP searches; they only announce themselves with NOTIFY. That’s why dlna-cast listens for announcements as well as searching. If they don’t show up right away, give the search more time with the timeout option (30 seconds usually works).</li><li><strong>Files:</strong> MP4 and MPEG-TS play, with seeking.</li><li><strong>Screen casting:</strong> works, including the PC’s audio.</li><li><strong>Pause and seek:</strong> work.</li><li><strong>Volume and mute:</strong> the goggles accept the command but ignore it. dlna-cast reads the value back, sees nothing changed and tells you, instead of pretending it worked. Use the goggles’ own buttons for volume.</li></ul><p>The goggles run the Platinum UPnP stack, so other devices built on it should behave in a similar way.</p><h3>How it works</h3><p>Every cast has three parts: discover, serve and control.</p><p><strong>1. Discover (SSDP).</strong> dlna-cast repeats M-SEARCH on every LAN interface while listening for NOTIFY ssdp:alive. A device’s description and control URLs are only used when they’re on a local address and on the same host that answered.</p><p><strong>2. Serve (HTTP).</strong> Files are served with 206/416 range support so the renderer can seek. A live stream is cut into whole 188-byte MPEG-TS packets, so a renderer that joins mid-stream or falls behind always gets packets it can sync on.</p><p><strong>3. Control (SOAP).</strong> dlna-cast calls SetAVTransportURI with DIDL-Lite metadata, then Play. It polls the renderer’s state every second and reads back each pause, volume or mute change.</p><p>For screen casting, ffmpeg captures the display (ddagrab on the GPU, or gdigrab) and encodes low-latency H.264 with a keyframe every second. A small WASAPI loopback helper pipes the PC’s audio into ffmpeg and fills silence so the stream never stalls.</p><h3>Getting started</h3><p>You need Node.js 18.17 or newer, a DLNA renderer on the same network as your PC, and ffmpeg if you want screen casting. The desktop app, screen capture and system audio are Windows 10/11 only; file casting and remote control from the command line also work on macOS and Linux.</p><pre>git clone https://github.com/karan-ksrk/dlna-cast.git<br>cd dlna-cast<br>npm run gui</pre><p>There’s nothing to npm install. Pick a renderer on the left, then cast a file or your screen. From the command line:</p><pre>node src/cli.mjs discover                       # list renderers on the network<br>node src/cli.mjs play &quot;D:\Videos\holiday.mp4&quot;   # cast a file<br>node src/cli.mjs screen                         # cast your desktop, with sound</pre><p>While a cast is running: Space pauses or resumes, ←/→ seek 10 seconds, ↑/↓ change the volume, M mutes and Q stops. If the screen cast stutters over Wi-Fi, pick the Light quality preset or drop the bitrate to 3000 kbps.</p><h3>Safe on your network</h3><p>Media is served only to the renderer you chose, at an unguessable URL. The app’s control API is bound to 127.0.0.1 and requires a per-launch token.</p><h3>Testing without a device</h3><p>npm test runs the suite against a fake renderer on loopback. It can answer searches or only send NOTIFY (like the goggles), includes hostile URLs in its description that must be rejected, and can ignore Pause or volume the way real devices do.</p><h3>Try it</h3><p>dlna-cast is MIT licensed and available on <a href="https://github.com/karan-ksrk/dlna-cast">GitHub</a>. If you try it with another pair of goggles, a smart TV or a set-top box, open an issue or a pull request so I can add it to the compatibility table.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=743f3c651bc6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A2LM: The Free, Self-Hosted LLM Gateway With Auto-Failover Across 8 Providers]]></title>
            <link>https://ksrk.medium.com/a2lm-the-free-self-hosted-llm-gateway-with-auto-failover-across-8-providers-edec0874aa61?source=rss-ceb31b9a865f------2</link>
            <guid isPermaLink="false">https://medium.com/p/edec0874aa61</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[free]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Karan Ksrk]]></dc:creator>
            <pubDate>Sun, 15 Mar 2026 07:00:01 GMT</pubDate>
            <atom:updated>2026-03-15T07:00:01.280Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5xuqU1RpCEcK_vhAx-u_ag.png" /><figcaption>A2LM stands for All-to-LLM — your single gateway to all LLM providers.</figcaption></figure><p>I Built a Free LLM Gateway That Never Goes Down — Here’s How It Works</p><p>Stop paying for a single AI provider. Start routing across eight of them automatically.</p><p>If you’ve ever built something with an AI API, you know the feeling.</p><p>You’re showing a demo to someone important. The app freezes. You refresh. A cold, unhelpful message stares back at you: <em>429: Rate limit exceeded</em></p><p>Your quota ran out. Or the provider had an outage. Or you simply forgot that free tiers have caps. Either way, the demo is ruined.</p><p>What if your app could <strong>automatically switch</strong> to a different AI provider the moment one goes down — with zero code changes on your end?</p><p>That’s exactly what <strong>A2LM Gateway</strong> does.</p><h4>What Is A2LM Gateway?</h4><p>A2LM is an open-source LLM gateway — a smart middleman that sits between your app and the AI world.</p><p>Instead of your app talking directly to, say, Groq or Mistral, it talks to A2LM. A2LM then figures out the best available AI provider <strong>at that moment</strong> — based on who has quota left, who’s responding fastest, and who’s actually healthy — and routes your request there.</p><p>The best part? <strong>Your app doesn’t need to know any of this is happening.</strong> A2LM speaks the same language as OpenAI’s API, so if you’ve ever used OpenAI’s Python SDK or API, you can drop A2LM in as a direct replacement.</p><p>The Problem It Solves</p><p>AI APIs come with annoying limitations:</p><ul><li><strong>Rate limits</strong>: You can only send so many requests per minute before they cut you off.</li><li><strong>Daily quotas</strong>: Free tiers have hard caps on how much you can use per day.</li><li><strong>Outages</strong>: Providers go down. It happens more than you’d think.</li><li><strong>Latency spikes</strong>: Sometimes a provider just gets slow for no obvious reason.</li></ul><p>The traditional approach? Pick one provider, pray it stays up, and scramble to fix things when it doesn’t.</p><p>A2LM’s approach? Route across <strong>8 providers simultaneously</strong>, fall back gracefully, and let the system heal itself.</p><h4>The Eight Providers It Supports</h4><p>A2LM knows how to talk to all of these:</p><ol><li><strong>Groq </strong>— blazing fast inference</li><li><strong>Cerebras </strong>— another speed-first provider</li><li><strong>Mistral </strong>— strong European-built models</li><li><strong>Google AI Studio </strong>— Gemini and Gemma models</li><li><strong>NVIDIA NIM </strong>— enterprise-grade inference</li><li><strong>Cloudflare Workers AI</strong> — edge-deployed models</li><li><strong>OpenRouter </strong>— a meta-router with tons of models</li><li><strong>Cohere </strong>— great for enterprise text tasks</li></ol><p>And you can use all of them <strong>for free</strong> (within their free tiers). A2LM doesn’t cost anything to run beyond your own server — and even a cheap VPS or a Raspberry Pi can host it.</p><p>Fun fact: You can configure multiple API keys per provider. A2LM rotates through them automatically for even higher throughput.</p><h4>How Smart Routing Actually Works</h4><p>This is where it gets interesting. A2LM doesn’t just pick providers in a fixed order. It scores them dynamically, considering:</p><ul><li>Quota remaining: Has this provider used up its daily limit?</li><li>Recent latency: Is it responding quickly right now?</li><li>Health status: Has it been failing lately?</li><li>Circuit breaker: If a provider keeps failing, A2LM temporarily stops sending it requests and lets it recover.</li></ul><p>Think of it like a GPS app that reroutes around traffic in real time — except instead of roads, it’s rerouting around AI provider limits and slowdowns.</p><h4>Three Simple Modes: auto, fast, smart</h4><p>You don’t need to know which specific model to use. A2LM gives you three friendly aliases:</p><p><strong>🔀 auto</strong><br>The balanced everyday option. Routes to the best general-purpose model available, starting with Groq’s Llama 3.3 70B and falling back across the others.</p><p><strong>⚡ fast</strong><br>When speed matters more than capability. Prioritizes smaller, faster models — great for real-time apps, autocomplete, or chatbots that need instant responses.</p><p><strong>🧠 smart</strong><br>When you need the best reasoning. Targets larger, more capable models like DeepSeek R1, QwQ-32B, and Gemini 2.5 Flash.</p><p>You just pass one of these as the <em>model </em>name in your request — that’s it.</p><h4>Using It Feels Exactly Like OpenAI</h4><p>Here’s what sending a request looks like with the Python SDK:</p><pre>from openai import OpenAI<br>client = OpenAI(<br> base_url=&quot;http://localhost:8080/v1&quot;,<br> api_key=&quot;your-gateway-api-key&quot;,<br>)<br>response = client.chat.completions.create(<br> model=&quot;auto&quot;,<br> messages=[{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Hello from A2LM&quot;}],<br>)<br>print(response.choices[0].message.content)</pre><p>Notice anything? It’s <strong>identical </strong>to how you’d use the OpenAI SDK — except the `base_url` points to your A2LM instance instead of OpenAI’s servers.</p><p>Streaming works too, with no extra configuration needed.</p><h4>What’s Under the Hood</h4><p>A2LM is built with Python and FastAPI. Routing state — quota tracking, health scores, latency history — lives in <strong>Redis</strong>, which makes it fast and keeps everything in sync even across multiple instances.</p><p>Getting it running takes two commands:</p><pre>cp .env.example .env<br># (add your provider API keys to .env)<br>docker compose up - build</pre><p>Your gateway is live at <em>http://localhost:8080</em>.</p><p>There’s even a built-in Redis Commander UI (<em>http://localhost:8081</em>) so you can watch quota and health data update in real time — genuinely satisfying to watch during a load test.</p><h4>A Peek at the Dashboard Endpoints</h4><p>Once running, A2LM exposes some useful inspection endpoints:<br><em>| GET /v1/models | All available model IDs |<br>| GET /v1/providers | Per-provider quota, health, and latency |<br>| GET /health | Is the gateway alive? |<br>| GET /health/ready | Is Redis connected and ready? |</em></p><p>If every provider is exhausted or unhealthy, the gateway returns 503 with a Retry-After: 60 header — clean, standard, and easy to handle in any client.</p><h4>Who Is This For?</h4><p><strong>Developers</strong> building AI-powered apps who want resilience without managing multiple provider clients themselves.</p><p><strong>Hackers and hobbyists</strong> who want to squeeze maximum free-tier usage out of every provider without babysitting rate limits.</p><p><strong>Teams</strong> who need a single internal endpoint that the whole company can use, with quota shared and tracked centrally.</p><p><strong>Anyone </strong>who’s had a demo ruined by a 429 error and never wants it to happen again.</p><h4><strong>The Bigger Picture</strong></h4><p>We’re at an interesting moment with AI infrastructure. The models themselves are becoming a commodity — you can get genuinely good open-weight models for free from half a dozen providers today. What’s valuable is the <strong>orchestration layer</strong>: knowing which model to call, when, and how to recover gracefully when it fails.</p><p>A2LM is a practical, self-hosted answer to that problem. It’s not trying to replace any single provider — it’s trying to make *all of them* more reliable together.</p><h4>Getting Started</h4><p>The project is open source. You’ll need:</p><ol><li>Docker (for the easiest setup)</li><li>A Redis instance (included in the Docker Compose file)</li><li>At least one provider API key (all the providers listed have free tiers)</li></ol><p>Clone the repo, add your keys to <em>.env</em>, run <em>docker compose up — build</em>, and you’re routing across eight AI providers in minutes.</p><p>If you want to go further, the docs cover advanced topics like multi-key rotation, custom model aliases, and integration with the OpenAI SDK’s async client.</p><p><strong>The next time your AI provider hits a rate limit, your app shouldn’t notice. With A2LM, it won’t.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edec0874aa61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install MicroStack on Ubuntu VMware]]></title>
            <link>https://ksrk.medium.com/how-to-nstall-microstack-on-ubuntu-vmware-ff7a2092bf58?source=rss-ceb31b9a865f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff7a2092bf58</guid>
            <category><![CDATA[openstack]]></category>
            <category><![CDATA[how-to]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[install]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[Karan Ksrk]]></dc:creator>
            <pubDate>Wed, 22 Jan 2025 10:33:48 GMT</pubDate>
            <atom:updated>2025-01-22T13:19:59.552Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oyl_vVP_rvrhvxYm.png" /></figure><p><strong>MicroStack</strong> is a lightweight, all-in-one deployment of OpenStack designed for quick and easy installation, primarily for testing, development, or edge computing use cases.</p><h3>Key Features:</h3><ul><li><strong>Single-node OpenStack</strong>: Runs on a single machine, simplifying setup.</li><li><strong>Snap-based installation</strong>: Installed as a snap package, making it easy to deploy and update.</li><li><strong>Full OpenStack stack</strong>: Includes components like Nova, Neutron, Keystone, Glance, and more.</li><li><strong>Minimal configuration</strong>: Pre-configured for ease of use, ideal for prototyping or learning.</li><li><strong>Supports production</strong>: Can be used for small-scale production environments.</li></ul><p>MicroStack is particularly useful for developers or teams experimenting with OpenStack without requiring a full-scale deployment.</p><p>Its key components include:</p><ul><li><strong>Keystone</strong>: Manages authentication and identity services.</li><li><strong>Nova</strong>: Handles the lifecycle of compute instances.</li><li><strong>Neutron</strong>: Provides networking services for connectivity between interfaces.</li><li><strong>Glance</strong>: Manages disk and server images.</li><li><strong>Cinder</strong>: Offers persistent block storage to running instances.</li></ul><p>Follow the steps below to install microstack on Ubuntu inside VMware workstation.</p><h3>Update the packages</h3><pre>sudo apt update<br>sudo apt upgrade -y</pre><h3>Install Microstack</h3><pre>sudo snap install microstack --beta</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*8lhZadVXZwLGDuH18wYuwg.png" /></figure><p>Verify installation by running below</p><pre>snap list microstack</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*lhVn3BZ1UEkBgNwco0mmaA.png" /></figure><h3>Install all services of Microstack</h3><pre>sudo microstack init --auto --control</pre><p>check the version</p><pre>microstack.openstack --version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*lwK5PZFd43dtbhvBoRG_qg.png" /></figure><h3>Fetch password for microstack Dashboard</h3><pre>sudo snap get microstack config.credentials.keystone-password</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*UnA3CZMPWSxDvsl0d4EcBA.png" /></figure><p>copy the password and save somewhere</p><h3>Login To OpenStack Dashboard</h3><p>find the Ubuntu IP address by running ip a command</p><p>then type that IP in the browser</p><p>use username: <strong>admin </strong>and the above password to log in</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lz4k-y8RLyCm32c-ADDSXA.png" /></figure><p>Microstack is setup successfully on your device</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vwk58ANjDgD6pyfO_OkZeQ.png" /></figure><p>That’s the END.</p><p>some useful resources<br><a href="https://canonical.com/microstack">https://canonical.com/microstack</a><br><a href="https://snapcraft.io/install/microstack/raspbian">https://snapcraft.io/install/microstack/raspbian</a><br><a href="https://youtu.be/r3E_TGIpQuY?si=fLm19V-oIzCNNqW9">https://youtu.be/r3E_TGIpQuY?si=fLm19V-oIzCNNqW9</a></p><p>some useful commands for microstack</p><p>1. Check if all services of microstack are running or not</p><pre>sudo snap services microstack</pre><p>2. Get the microstack catalog</p><pre>microstack.openstack catalog list</pre><p>Clap if you find this useful</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff7a2092bf58" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Enable Autocomplete in Powershell]]></title>
            <link>https://ksrk.medium.com/how-to-enable-autocomplete-in-powershell-5993f28b37bd?source=rss-ceb31b9a865f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5993f28b37bd</guid>
            <category><![CDATA[powershell]]></category>
            <category><![CDATA[windows-11]]></category>
            <category><![CDATA[autocomplete]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Karan Ksrk]]></dc:creator>
            <pubDate>Mon, 13 Jan 2025 04:52:05 GMT</pubDate>
            <atom:updated>2025-01-14T02:06:58.166Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*LeSHzkZE4ZKCJCfVp2Jnyw.gif" /></figure><h3>How to Enable Autocomplete in PowerShell</h3><p>As you can see in the video above, Windows PowerShell has a cool 😎 feature called autocomplete 🙂, provided by the PSReadline module. To install this module and enable autocomplete, follow the instructions below.</p><h3>Step 1: Install PSReadline</h3><p>Run the following command to install the PSReadline module:</p><pre>Install-Module PSReadLine -Force<br></pre><h3>Step 2: Open the PowerShell profile</h3><p>Run the following command to open your PowerShell profile in Notepad:</p><pre>notepad $PROFILE</pre><p>If you encounter an error related to the file path, run this command first to create the profile, and then run the notepad $PROFILE command again:</p><pre>if (-not (Test-Path $PROFILE)) { $null = New-Item -Force $PROFILE }</pre><h3>Step 3: Paste the following snippet inside Notepad</h3><p>Add the following code to your PowerShell profile:</p><pre>Import-Module PSReadLine<br><br># Shows navigable menu of all options when hitting Tab<br>Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete<br><br># Autocompleteion for Arrow keys<br>Set-PSReadLineOption -HistorySearchCursorMovesToEnd<br>Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward<br>Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward<br><br>Set-PSReadLineOption -ShowToolTips<br>Set-PSReadLineOption -PredictionSource History</pre><h3>Step 4: Save and Restart PowerShell</h3><p>Save the Notepad file, close PowerShell, and then reopen PowerShell. Your autocomplete setup is now complete!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5993f28b37bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy Django Project with gunicorn and nginx on a Linux server]]></title>
            <link>https://blog.stackademic.com/deploy-django-project-with-gunicorn-celery-and-nginx-on-the-linux-server-5a919e7f64ef?source=rss-ceb31b9a865f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a919e7f64ef</guid>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[gunicorn]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[nginx]]></category>
            <dc:creator><![CDATA[Karan Ksrk]]></dc:creator>
            <pubDate>Sun, 06 Aug 2023 05:44:37 GMT</pubDate>
            <atom:updated>2023-11-28T01:28:09.860Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x57lTcL1kirN9lh8SWMnWA.jpeg" /></figure><h3>Setting up SSH for remote login</h3><ul><li>generate ssh public and private key</li><li>login to the server via ssh</li><li>remove password authentication</li></ul><pre>ssh-keygen -b 4096<br>scp .\ex-key.pub user@192.168.44.129:~\.ssh\authorized_keys<br>ssh -i .\ex-key user@192.168.44.129<br>sudo nano /etc/ssh/sshd_config</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*d5X6tgqZrFn6gn7yugjKcg.png" /></figure><pre>sudo nano /etc/ssh/sshd_config.d/50-cloud-init.conf</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/1*XI8odqlo_wdoFl9BY56Cvw.png" /></figure><pre><br>sudo systemctl reload sshd<br>logout</pre><ul><li>logout from the server and then log in again using the ssh private key</li></ul><pre>ssh -i .\ex-key user@192.168.44.129</pre><h3>Django Project Setup</h3><ul><li>clone project to server</li><li>create virtual environment</li><li>install packages</li><li>database migrations</li></ul><pre>git clone &lt;project&gt;<br>sudo apt install python3-virtualenv<br>virtualenv venv<br>. venv/bin/activate<br>pip install -r requirements.txt<br>python manage.py makemigrations<br>python manage.py migrate<br>python manage.py collectstatic</pre><h3>Gunicorn Setup</h3><ul><li>install gunicorn via pip</li><li>install supervisor via pip as well as apt</li><li>remove default configurations</li><li>create a new gunicorn configuration</li></ul><pre>pip install gunicorn<br>sudo apt install supervisor<br>pip install supervisor<br>sudo mkdir -p /var/log/gunicorn/<br>sudo rm -rf /etc/supervisor/conf.d/<br>sudo mkdir /etc/supervisor/conf.d<br>sudo nano /etc/supervisor/conf.d/gunicorn.conf</pre><ul><li>change path accordingly</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yogeGLyk_vVK0VQZdLpSNQ.png" /></figure><ul><li>read new configuration and start gunicorn service using supervisorctl command</li></ul><pre>sudo supervisorctl reread<br>sudo supervisorctl update<br>sudo supervisorctl retart all</pre><h3>Nginx Setup</h3><ul><li>Install nginx</li><li>creating configuration file</li></ul><pre>sudo apt install nginx -y<br>sudo nano /etc/nginx/sites-available/&lt;project_name&gt;.conf</pre><ul><li>change IP to your server IP</li><li>change the path accordingly for static files</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*0ADSWN-oBJsQBNERMOqgVQ.png" /></figure><ul><li>change the default user for nginx to your username</li></ul><pre>sudo ln -s /etc/nginx/sites-available/zameendar_backend.conf /etc/nginx/sites-enabled<br>sudo nano /etc/nginx/nginx.conf</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*4X9YhewRt2NYGjY9R4ubTA.png" /></figure><p>giving permission for the .sock file</p><pre>sudo chown &lt;user&gt;:&lt;user&gt; &lt;project&gt;/&lt;project&gt;.sock<br>sudo nginx -t<br>sudo service nginx restart</pre><p>That’s it go to your browser and go to your IP address</p><p>thanks for reading this article.</p><h3>Stackademic</h3><p><em>Thank you for reading until the end. Before you go:</em></p><ul><li><em>Please consider </em><strong><em>clapping</em></strong><em> and </em><strong><em>following</em></strong><em> the writer! 👏</em></li><li><em>Follow us on </em><a href="https://twitter.com/stackademichq"><strong><em>Twitter(X)</em></strong></a><em>, </em><a href="https://www.linkedin.com/company/stackademic"><strong><em>LinkedIn</em></strong></a><em>, and </em><a href="https://www.youtube.com/c/stackademic"><strong><em>YouTube</em></strong></a><strong><em>.</em></strong></li><li><em>Visit </em><a href="http://stackademic.com/"><strong><em>Stackademic.com</em></strong></a><em> to find out more about how we are democratizing free programming education around the world.</em></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a919e7f64ef" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/deploy-django-project-with-gunicorn-celery-and-nginx-on-the-linux-server-5a919e7f64ef">Deploy Django Project with gunicorn and nginx on a Linux server</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Block Ads from Almost Every site]]></title>
            <link>https://ksrk.medium.com/block-ads-from-almost-every-site-397eee0cef0e?source=rss-ceb31b9a865f------2</link>
            <guid isPermaLink="false">https://medium.com/p/397eee0cef0e</guid>
            <category><![CDATA[google]]></category>
            <category><![CDATA[chrome]]></category>
            <category><![CDATA[ads]]></category>
            <category><![CDATA[block]]></category>
            <category><![CDATA[block-ads]]></category>
            <dc:creator><![CDATA[Karan Ksrk]]></dc:creator>
            <pubDate>Sun, 20 Mar 2022 09:29:23 GMT</pubDate>
            <atom:updated>2022-11-28T19:15:51.672Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oYg81JxjkBAdF853X-utLQ.jpeg" /></figure><p>Ads Ads Ads❌ huh they are everywhere. Who likes ads by the way. Some People pay money💵 for not seeing the ads. I don’t wanna hurt their feelings🥲 but you guys are lucky because today I will show you how you can block ads from almost every website while watching youtube, movies or other kinds of stuff. Haha, not that one you shitty-minded persons. Yeah, it&#39;s free😒.</p><p>So, I will keep it simple. Because I don’t like complicated things or people🤐.</p><h4>Three things you need</h4><ol><li>uBlock Origin (Chrome Extension)</li><li>Tampermonkey (Script Manager is also a chrome Extension)</li><li>Anti Block Killer (script from Github)</li></ol><p>Let’s get started</p><h4><strong>1. uBlock Origin</strong></h4><blockquote>uBlock Origin is NOT an “ad blocker”😯: it is a wide-spectrum blocker — which happens to be able to function as a mere “ad blocker”. The default behavior of uBlock Origin when newly installed is to block ads, trackers and malware sites — through EasyList, EasyPrivacy, Peter Lowe’s ad/tracking/malware servers, Online Malicious URL Blocklist, and uBlock Origin’s own filter lists.</blockquote><p>Just install the extension according to your browser.</p><ul><li><a href="https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm">https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm</a></li><li><a href="https://addons.mozilla.org/firefox/addon/ublock-origin/">https://addons.mozilla.org/firefox/addon/ublock-origin/</a></li><li><a href="https://microsoftedge.microsoft.com/addons/detail/ublock-origin/odfafepnkmbhccpbejgmiehpchacaeak">https://microsoftedge.microsoft.com/addons/detail/ublock-origin/odfafepnkmbhccpbejgmiehpchacaeak</a></li><li><a href="https://addons.opera.com/extensions/details/ublock/">https://addons.opera.com/extensions/details/ublock/</a></li></ul><h4>2. Tampermonkey</h4><blockquote>Tampermonkey is the most popular userscript😮manager.<br>You can install any script manager. but I will go with this popular one 😏. Install this extension also</blockquote><ul><li><a href="https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo">https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo</a></li><li><a href="https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/">https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/</a></li><li><a href="https://addons.opera.com/en/extensions/details/tampermonkey-beta/">https://addons.opera.com/en/extensions/details/tampermonkey-beta/</a></li><li><a href="https://microsoftedge.microsoft.com/addons/detail/tampermonkey/iikmkjmpaadaobahmlepeloendndfphd">https://microsoftedge.microsoft.com/addons/detail/tampermonkey/iikmkjmpaadaobahmlepeloendndfphd</a></li></ul><h4>3. Anti Block Killer</h4><blockquote>Anti Block Killer provide scripts to run to block ads. Sometime website will know that you are using some adblocker like uBlock origin and the website ask to ublock adblocker for accessing their content. So here anti block killer comes in with this websites will never know that you are using some adblocker and you can enjoy the content without any ads. Yeah it&#39;s cool 😉</blockquote><p>That’s why we use tampermonkey to run this script.<br>So, to install this script go to the Github page<br><a href="https://github.com/reek/anti-adblock-killer#anti-adblock-killer--reek">https://github.com/reek/anti-adblock-killer#anti-adblock-killer--reek</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*--IqE9rxkFYOjlasvTXvMQ.png" /></figure><p>Click on install from github.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*CMKzE_hxDGYO8l04kwE-cA.png" /></figure><p>wait for some seconds to install on tampermonkey extension.</p><p>After that, you can hit “always allow” if you don’t want tampermonkey popping up all the time asking you permission to use the userscript.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*1GtoCccQRJWrgzTi-3VnUg.png" /></figure><p>You can check anti-block killer is running or not, also you can disable it with just a click. Go to tampermonkey extension.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*6KnfzZrGgdjlSg_9p0GpvA.png" /></figure><p>That’s it, now you can enjoy your content ads free.</p><p>Thanks for reading🙂.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=397eee0cef0e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install Flutter Without Android Studio on Ubuntu]]></title>
            <link>https://ksrk.medium.com/install-flutter-without-android-studio-on-ubuntu-a14a66a88f9f?source=rss-ceb31b9a865f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a14a66a88f9f</guid>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[android-studio]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Karan Ksrk]]></dc:creator>
            <pubDate>Mon, 17 Aug 2020 17:56:50 GMT</pubDate>
            <atom:updated>2023-07-07T04:27:09.176Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lb3Wzw51KAYVjxSl5R3gKQ.png" /><figcaption>No need for the Android Studio to setup Flutter</figcaption></figure><p>Here I will show you how we can set up Flutter on Ubuntu without installing an Android studio. This is very useful if your pc runs slow or you don&#39;t like the android studio and you want to code in some other code editor</p><p><strong>Reminder</strong>: Guys, this article is old. Maybe I have mentioned some packages that are outdated, but the process will remain the same with the latest packages. Please install the updated packages accordingly.</p><p>Use the terminal for this tutorial.</p><h3>Install OpenJDK 8</h3><p>I am using Java 8 because the latest version of Java creates some problems with flutter so version 8 is fine.</p><p>In terminal type:</p><pre>sudo apt install openjdk-8-jre</pre><pre>sudo apt install openjdk-8-jdk</pre><h3>Install Git</h3><p>In terminal type:</p><pre>sudo apt install git</pre><h3>Setting Up Folder</h3><p>I am keeping everything in a single directory. Use a terminal or you can make a folder inside the “Home” directory.</p><pre>cd ~<br>mkdir Android<br>cd Android<br>mkdir cmdline-tools</pre><h3>Install Flutter SDK</h3><p>Download Flutter from the following URL</p><p><a href="https://flutter.dev/docs/get-started/install/linux">Linux install</a></p><p>Go to the folder where you downloaded the zip file and unzip the file. You can unzip it by right click on the file and click on extract here or using the terminal by the following code</p><pre>tar xvf flutter_linux_1.17.3-stable.tar.xz</pre><p>Now move the <strong>“flutter”</strong> folder to the “<strong>Home/Android/” </strong>directory</p><pre>sudo mv flutter/ ~/Android/</pre><p>Now the full path looks like this</p><blockquote><strong>Home/Android/flutter</strong></blockquote><h3>Install Android Command Line Tools</h3><p>Install Android command-line tools for Linux from the following URL</p><p><a href="https://developer.android.com/studio#command-tools">https://developer.android.com/studio#command-tools</a></p><p>Go to the folder where you downloaded this file and unzip the file.</p><p>unzip commandlinetools-linux-6609375_latest.zip</p><p>Now move the <strong>“tools”</strong> folder to the “<strong>Home/Android/cmdline-tools/” </strong>directory</p><pre>sudo mv tools/ ~/Android/cmdline-tools/</pre><p>Now the full path looks like this</p><blockquote><strong>Home/Android/cmdline-tools/tools</strong></blockquote><h3>Set Some Environment Variables</h3><p>now go back to the <strong>“Home”</strong> directory and open up the <strong>“.bashrc” </strong>file for setting up some environment variables</p><pre>cd ~<br>sudo gedit .bashrc </pre><p>Now write this at the end of the .bashrc file</p><pre>export ANDROID=$HOME/Android<br>export PATH=$ANDROID/cmdline-tools/tools:$PATH<br>export PATH=$ANDROID/cmdline-tools/tools/bin:$PATH<br>export PATH=$ANDROID/platform-tools:$PATH</pre><pre># Android SDK<br>export ANDROID_SDK=$HOME/ANDROID<br>export PATH=$ANDROID_SDK:$PATH</pre><pre># Flutter<br>export FLUTTER=$ANDROID/flutter<br>export PATH=$FLUTTER/bin:$PATH</pre><p>save the file</p><h3>Download Android SDK</h3><p>So for Flutter to run we need to install system-image, platform-tools, build-tools, platforms; android.</p><p>I am using android-29, you can use the version which is compatible with your Android device. If you want to see all available versions for system-image, platform-tools, build-tools, and platforms; android type the following in the terminal</p><pre>sdkmanager --list</pre><p>for version 29 type the following command in terminal</p><pre>sdkmanager “system-images;android-29;default;x86_64”<br>sdkmanager &quot;platforms;android-29&quot;<br>sdkmanager “platform-tools”<br>sdkmanager &quot;build-tools;29.0.3&quot;</pre><p>Now accept the licenses.</p><p>sdkmanager --licenses</p><h3>Configure SDK path for Flutter</h3><pre>flutter config --android-sdk ~/Android</pre><h3>Call To Flutter Doctor</h3><p>Run this command in terminal</p><p>flutter doctor -v</p><blockquote><em>This command give you all green tick, ignore </em><em>[!] at android studio because we are not using it.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*QyXD8WQP5hhbI32pBpj1Jw.png" /></figure><blockquote><em>if it ask for Accept Licenses with flutter doctor use below command to accept licenses</em></blockquote><pre>flutter doctor --android-licenses</pre><h3>Setup Your Android Phone</h3><p>For running Flutter App on our physical device we need to turn on USB Debugging on your Android phone. It&#39;s very simple to do a search on Google “how to turn USB Debugging on ‘phone_name’” or use the below link as a reference</p><p><a href="https://www.syncios.com/android/how-to-debug-xiaomi-redmi-phone.html">How to Enable Developer Options and USB debugging on Xiaomi Redmi Phone</a></p><h3>Again Run Flutter Doctor</h3><p>Run this command</p><p>flutter doctor -v</p><p>your phone show a popup click on allow</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*A5qvHMOer4Oddbg43s3pmQ.png" /></figure><blockquote>If you see error like following then Type following in the terminal</blockquote><pre>sudo apt-get install android-sdk-platform-tools-common</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*sjBJqc-aFzy6D840vIZNcw.png" /></figure><blockquote>Then unplug your phone from pc then Turn OFF and then Turn ON usb debugging on your android device and reconnect to pc via usb .</blockquote><blockquote>Again run flutter doctor</blockquote><pre>flutter doctor -v</pre><h3>Does it look like this?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*Zg1LYUP0xJ7Af0jDnl50oA.png" /></figure><h3>If yes then congratulations flutter set up successfully on your pc</h3><h3>Test Flutter Code</h3><p>Let’s create a Flutter project</p><p>In terminal type:</p><pre>cd Desktop/<br>flutter create hello_world<br>cd hello_world<br>flutter run</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*NsAb55XUekglc4LeTPA1jw.png" /><figcaption>On the right side, this is my android phone screen</figcaption></figure><h3><strong>Now you can code in any code editor you want, I prefer Visual Studio Code because it provides </strong>great <strong>plugins for flutter code.</strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a14a66a88f9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install Flutter without Android Studio on Window]]></title>
            <link>https://ksrk.medium.com/install-flutter-without-android-studio-on-window-9d3781172912?source=rss-ceb31b9a865f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d3781172912</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[windows-10]]></category>
            <category><![CDATA[android-studio]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Karan Ksrk]]></dc:creator>
            <pubDate>Sat, 15 Aug 2020 14:24:25 GMT</pubDate>
            <atom:updated>2025-01-22T07:23:48.974Z</atom:updated>
            <content:encoded><![CDATA[<h3>Install Flutter without Android Studio on Windows (2025)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7D4AErm0Q_HeLtYhE1pa5Q.png" /><figcaption>From Android Studio to VS Code</figcaption></figure><blockquote>Is Android Studio slowing down your PC and interfering with other applications? Don’t worry, I’ve found a solution to run Flutter without the need to install Android Studio! Just follow these simple steps:</blockquote><p><strong>Reminder</strong>:(2025) Hey guys, I’ve updated this article with all the latest packages and tested everything in Windows 11 with the newest versions. You can now follow the same steps using the updated packages.</p><p>Before following the steps, I recommend installing the following 3 packages inside Visual Studio:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yuWBWyxJRbWqPfSeI2so7g.png" /></figure><p>Use the Windows command prompt for this tutorial</p><p>&lt;win-key&gt; + R then type cmd</p><p>So we keep everything in a single directory. Choose the directory where you want to install Flutter. I am choosing my C drive. you can also do as I am doing.</p><h3>Create Directory</h3><pre>cd C:\<br>mkdir Android<br>cd Android</pre><h3>Install Git</h3><p>First, we need to install git in our system.</p><p>download git for Windows from the following URL</p><p><a href="https://git-scm.com/downloads">Install</a></p><h3>Install Flutter SDK</h3><p>Download the latest version of Flutter SDK from the below URL:</p><p><a href="https://docs.flutter.dev/get-started/install/windows/mobile#download-then-install-flutter">https://docs.flutter.dev/get-started/install/windows</a>/</p><p>extract the zip file and copy the folder with the name <strong>“flutter”</strong> to <strong>“<em>C:\Android” </em></strong>folder, the full path looks like this</p><pre>c:\Android\flutter</pre><h3>Install OpenJDK 17</h3><p>Download binaries for Windows from the following URL: <br><a href="https://www.openlogic.com/openjdk-downloads?field_java_parent_version_target_id=807&amp;field_operating_system_target_id=436&amp;field_architecture_target_id=391&amp;field_java_package_target_id=396">https://www.openlogic.com/openjdk-downloads</a></p><p>extract the zip file and copy the folder with the name <strong>“openjdk”</strong> to <strong>“C:\Android” </strong>folder, the full path look like this</p><pre>C:\Android\openjdk</pre><h3>Install Android command tools</h3><p>Download Android command tools for Windows from the following URL: <a href="https://developer.android.com/studio/#command-tools">https://developer.android.com/studio/#command-tools</a></p><p>before extracting the zip file make a folder inside “C:/Android/ ”folder name “cmdline-tools” to the directory look like this</p><pre>C:\Android\cmdline-tools</pre><p>extract the zip file and copy the <strong>“latest ” </strong>folder inside <strong>“C:\Android\cmdline-tools” </strong>so the full path looks like this</p><pre>C:\Android\cmdline-tools\latest</pre><h3>Set Some Environment Variables</h3><pre>setx JAVA_HOME &quot;C:\Android\openjdk&quot;<br>setx ANDROID_HOME &quot;C:\Android&quot;<br>setx path &quot;%path%;C:\Android\cmdline-tools;C:\Android\cmdline-tools\latest;C:\Android\cmdline-tools\latest\bin;C:\Android\flutter\bin&quot;</pre><h3>IMPORTANT STEP !!!!!! Download latest cmdline-tools</h3><p>In my case, the Android website doesn’t provide the latest version, so we need to upgrade to the latest version of the cmdline-tools using the sdkmanager command.</p><pre>sdkmanager --install &quot;cmdline-tools;latest&quot;</pre><p>close all cmd or terminal windows and open it again</p><p>now delete the folder <strong>latest </strong>from “C:\Android\cmdline-tools\”<br>and rename the <strong>latest-2</strong> folder to <strong>latest</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*zF4a5Cjs_IylHZJ7dEflhg.png" /></figure><p>Close all cmd windows and reopen</p><h3>Download Android SDK</h3><p>So for Flutter to run we need to install Android SDK</p><p>Run the command sdkmanager --list to get a list of available packages you can install for Android. For Android 15, you can go with API level 35. Make sure the build-tools and platform;android are also the same version (35).</p><pre>sdkmanager &quot;system-images;android-35;default;x86_64&quot;<br>sdkmanager &quot;platform-tools&quot;<br>sdkmanager &quot;build-tools;28.0.3&quot;<br>sdkmanager &quot;platforms;android-28&quot;<br>sdkmanager emulator</pre><blockquote>You can download any version after that flutter will automaitcally install the version compatible with your AndroidAccept the licenses</blockquote><p>To accept the licenses run the following command</p><pre>sdkmanager --licenses</pre><p>press y then Enter for each license</p><h3>Configure SDK path for Flutter</h3><pre>flutter config --android-sdk C:\Android\</pre><h3>Accept Flutter licenses</h3><blockquote>Accept Licenses with flutter doctor use below command</blockquote><pre>flutter doctor --android-licenses</pre><blockquote>If you encounter an error saying sdkmanager not found, make sure you’ve followed the “<strong>Download latest cmdline-tools</strong>” step carefully.</blockquote><h3>Call To Flutter Doctor</h3><p>Run this command</p><pre>flutter doctor -v</pre><blockquote>This command give you all green tick, ignore <em>[!] at android studio </em>because we are not using it.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OjPbknNTM1MWVs3TGwBiVg.png" /></figure><p>You can skip further steps, Flutter is already set up successfully. To run your Flutter app on a physical Android device or emulator, you can continue with the next steps. 🙂</p><h3>Setup Your Android Phone</h3><p>For running Flutter App on our physical device we need to turn on USB Debugging on your Android phone. It’s very simple to do just search on Google “how to turn USB Debugging on ‘phone_name’” or use the below link as a reference</p><p><a href="https://www.syncios.com/android/how-to-debug-xiaomi-redmi-phone.html">How to Enable Developer Options and USB debugging on Xiaomi Redmi Phone</a></p><h3>Run Flutter Example App</h3><pre>cd C:\Android\flutter\examples\hello_world<br>flutter run</pre><p>your phone shows a popup click on allow</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*cNOiBlCC0j4SMYW5somwWQ.png" /></figure><h3>Create the Emulator</h3><p>If you don’t have access to a physical device you can use an emulator. Use the below command to create an emulator</p><p>I have given a name Pixel you can give any name you want</p><pre>avdmanager -s create avd -n Pixel -k &quot;system-images;android-35;default;x86_64&quot;</pre><blockquote><em>answer [no] to the showed question.</em></blockquote><h3>Run the emulator</h3><pre>flutter emulators --launch Pixel</pre><h3>List of already created virtual emulators</h3><pre>avdmanager list avd</pre><h3>Flutter run</h3><p>Then again test your flutter code, before that make sure no physical Android device is connected to your PC</p><pre>cd C:\Android\flutter\examples\hello_world<br>flutter run</pre><h3>Delete the emulator</h3><pre>avdmanager delete avd -n Pixel</pre><p>Now you can code inside Visual Studio Code just install the Flutter plugin for Visual Studio code to taste the features of Flutter</p><p><a href="https://flutter.dev/docs/development/tools/vs-code">Visual Studio Code</a></p><p>I personally prefer to run an Android app on the physical device if your pc has low specs or if you need to build an app fast because in an emulator your pc will consume so much RAM while running an emulator</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d3781172912" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>