{
    "componentChunkName": "component---src-pages-pensieve-index-js",
    "path": "/pensieve/",
    "result": {"data":{"allMarkdownRemark":{"edges":[{"node":{"frontmatter":{"title":"Automation Playbook For Setting Up Fedora 36","description":"ansible-fedora36-playbook","slug":"/pensieve/fedora-playbook","date":"2022-04-16T00:00:00.000Z","tags":["Linux","Fedora","Ansible"],"draft":false},"html":"<h2>Fedora Ansible Playbook</h2>\n<p>This playbook -</p>\n<p><strong>Install</strong></p>\n<ul>\n<li>Chrome</li>\n<li>Visual Studio Code</li>\n<li>Sublime Text</li>\n<li>Spotify (lpf-spotify)</li>\n</ul>\n<p><strong>Configure</strong></p>\n<ul>\n<li>DNF Settings\n<ul>\n<li>dnf default 'NO' to 'Yes'</li>\n<li>add fastestmirror</li>\n<li>add parallel download</li>\n</ul>\n</li>\n<li>Add Media Encoding REPO</li>\n<li>Add Third Party Free &#x26; Non-Free RPM REPO</li>\n<li>Change Default Shell to ZSH</li>\n<li>Change Starship command prompt</li>\n<li>Add my custom dotfiles\n<ul>\n<li>gitignore</li>\n<li>gitconfig</li>\n<li>custom zshrc</li>\n<li>custom tmux</li>\n</ul>\n</li>\n</ul>\n<p>on Local Machine (Version: Fedora 36).</p>\n<h2>Installation</h2>\n<ol>\n<li>Install Ansible on Your Machine <code class=\"language-text\"> sudo dnf install ansible</code></li>\n<li>Clone or Download <strong><a href=\"https://github.com/ypo777/ansible-fedora-playbook\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">this repository</a></strong> to your local machine.</li>\n<li>Run <code class=\"language-text\">ansible-playbook main.yml -K</code> in repo directory. Enter your account password.</li>\n</ol>\n<p>TODO</p>\n<ul>\n<li>Install Oh-my-zsh</li>\n</ul>"}},{"node":{"frontmatter":{"title":"How to setup X-UI panel for v2ray vpn","description":"setup v2ray using Bash, Ansible, Docker","slug":"/pensieve/x-ui","date":"2022-03-22T00:00:00.000Z","tags":["Ansible","Bash","Docker"],"draft":false},"html":"<h2>မာတိကာ</h2>\n<ol>\n<li><a href=\"#getting-started\">Getting Started</a></li>\n<li><a href=\"#setup\">Setup X-UI using differnet methods</a>\n<ul>\n<li><a href=\"#bash\">Bash</a></li>\n<li><a href=\"#docker\">Docker</a></li>\n<li><a href=\"#ansible\">Ansible</a></li>\n</ul>\n</li>\n<li><a href=\"#ssl\">Getting SSL Certificate</a></li>\n<li><a href=\"#configuration-x-ui-panel\">Configuration X-UI</a></li>\n</ol>\n<p><a name=\"getting-started\"></a></p>\n<h2>1. Getting Started</h2>\n<p>X-UI Panel ကို Setup လုပ်တာကို Bash, Ansible, Docker တွေကိုသုံးပြီး setup လုပ်မှဖြစ်တယ် <br>\r\nလိုအပ်သည့်အရာများ</p>\n<ul>\n<li>Domain Name</li>\n<li>Server</li>\n<li>Cloudflare Account</li>\n</ul>\n<p>ပထမဆုံး Domain Name ကို Cloudflare ရဲ့ Name Server ထည့်ပေးရမယ်။ ပြီးရင် Server IP ကို Domain Name ဆီကို A Record နဲ့ Point ပေးရမယ်။ <br></p>\n<p><strong>If you don't know how to do this step</strong> -> <a href=\"https://privacymelon.com/how-to-setup-v2ray-ws-tls-cdn/#setup\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">How to Point Domain to VPS IP?</a></p>\n<p><a name=\"setup\"></a></p>\n<h2>2. Setup X-UI Panel using differnet methods</h2>\n<p><a name=\"bash\"></a></p>\n<h3>Bash Script ကိုသုံးပြီး setup လုပ်ခြင်း</h3>\n<p>Server ကို ssh နဲ့ login ဝင်ပြီးရင် အောက်က command ကို run လိုက်ပါ။\r\nRun ရင် Email , Domain &#x26; TimeZone ကို ထည့်ပေးရမယ်။\r\n<br>\r\nIf You Don't Know Your TimeZone -> <strong><a href=\"https://en.wikipedia.org/wiki/List_of_tz_database_time_zones\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">TimeZone List</a></strong></p>\n<div class=\"gatsby-highlight\" data-language=\"shell\"><pre class=\"language-shell\"><code class=\"language-shell\"><span class=\"token function\">bash</span> <span class=\"token operator\">&lt;</span><span class=\"token punctuation\">(</span><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-s</span> https://raw.githubusercontent.com/ypo777/x-ui-panel/main/Bash/v2ray_setup.sh <span class=\"token punctuation\">)</span></code></pre></div>\n<p><a name=\"docker\"></a></p>\n<h3>Docker ကိုသုံးပြီး setup လုပ်ခြင်း</h3>\n<p>First - Pull Docker Container to Your VPS</p>\n<div class=\"gatsby-highlight\" data-language=\"shell\"><pre class=\"language-shell\"><code class=\"language-shell\"><span class=\"token function\">docker</span> pull ypo007/x-ui</code></pre></div>\n<p>Second - Creating Docker Container</p>\n<div class=\"gatsby-highlight\" data-language=\"shell\"><pre class=\"language-shell\"><code class=\"language-shell\"><span class=\"token function\">docker</span> run <span class=\"token parameter variable\">--restart</span><span class=\"token operator\">=</span>always <span class=\"token parameter variable\">--name</span> x-ui <span class=\"token parameter variable\">-d</span> <span class=\"token parameter variable\">-p</span> <span class=\"token number\">54321</span>:54321 <span class=\"token parameter variable\">-p</span> <span class=\"token number\">8000</span>-8010:8000-8010/tcp <span class=\"token parameter variable\">-p</span> <span class=\"token number\">8000</span>-8010:8000-8010/udp <span class=\"token parameter variable\">--tmpfs</span> /tmp <span class=\"token parameter variable\">--tmpfs</span> /run <span class=\"token parameter variable\">--tmpfs</span> /run/lock <span class=\"token parameter variable\">-v</span> /sys/fs/cgroup:/sys/fs/cgroup:ro <span class=\"token parameter variable\">-v</span> /etc/x-ui:/etc/x-ui ypo007/x-ui</code></pre></div>\n<p>Last - <a href=\"#ssl\">Get SSL</a></p>\n<p>Email &#x26; Domain Name ကို မိမိအသုံးပြုမိဟာနဲ့ ပြောင်းပါ</p>\n<div class=\"gatsby-highlight\" data-language=\"shell\"><pre class=\"language-shell\"><code class=\"language-shell\"><span class=\"token function\">sudo</span> certbot certonly <span class=\"token parameter variable\">--standalone</span> --preferred-challenges http --agree-tos <span class=\"token parameter variable\">--email</span> your-email-address <span class=\"token parameter variable\">-d</span> test.example.com</code></pre></div>\n<p>SSL ကို ရက် ၉၀ တခါ Update လုပ်ချင်ရင်</p>\n<div class=\"gatsby-highlight\" data-language=\"shell\"><pre class=\"language-shell\"><code class=\"language-shell\">certbot renew --force-renewal</code></pre></div>\n<p><a name=\"ansible\"></a></p>\n<h3>Ansible ကိုသုံးပြီး setup လုပ်ခြင်း</h3>\n<p>Ansible Inventory မှာ Server ရဲ့ IP Address, SSH Username &#x26; Key Path ကိုထည့်ပါ</p>\n<div class=\"gatsby-highlight\" data-language=\"shell\"><pre class=\"language-shell\"><code class=\"language-shell\">ansible-playbook v2raysetup.yaml</code></pre></div>\n<p><a name=\"ssl\"></a></p>\n<h2>3. Getting SSL Certificate</h2>\n<div class=\"gatsby-highlight\" data-language=\"shell\"><pre class=\"language-shell\"><code class=\"language-shell\"><span class=\"token function\">sudo</span> certbot certonly <span class=\"token parameter variable\">--standalone</span> --preferred-challenges http --agree-tos <span class=\"token parameter variable\">--email</span> your-email-address <span class=\"token parameter variable\">-d</span> test.example.com</code></pre></div>\n<p><a name=\"configuration-x-ui-panel\"></a></p>\n<h2>4. Configuration X-UI Panel</h2>\n<ol>\n<li>X-UI Panel ရဲ့ default port ကို သုံးပြီး Panel ကို browser ကနေဝင်ပါ။ <br>Exampel - http://YOUR_VPS_IP:54321</li>\n<li>Admin &#x26; Password : both \"admin\" (default - တရုတ်စာ)</li>\n<li>အရင်ဆုံး Admin Password or Both ကိုချိန်းပါ။</li>\n<li>New User ထည့်ခြင်း\n<ul>\n<li>Go to Inbound List</li>\n<li>Click <code class=\"language-text\">+</code> button</li>\n<li>Enter your desired name in <code class=\"language-text\">remark</code></li>\n<li>Select <code class=\"language-text\">protocol: vmess</code></li>\n<li>Listen IP <code class=\"language-text\">yourIP</code></li>\n<li>Port : <code class=\"language-text\">your desired port</code> ( TCP:443 - Recommended)</li>\n<li>Transmission: <code class=\"language-text\">ws</code></li>\n<li>Open TLS Option</li>\n<li>Enter your domain name</li>\n<li>Add Certificated you got from <a href=\"#4-getting-ssl-certificate\">SSL Certificate</a></li>\n<li>If you don't need , close <code class=\"language-text\">sniffing</code> option</li>\n</ul>\n</li>\n</ol>"}}]}},"pageContext":{}},
    "staticQueryHashes": ["1994492073","2681795072","3391063840","604461682"]}