<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: SMJ</title>
    <description>The latest articles on DEV Community by SMJ (@baddate).</description>
    <link>https://dev.to/baddate</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F97496%2F1147b577-002d-40f4-9318-000fc4680f29.png</url>
      <title>DEV Community: SMJ</title>
      <link>https://dev.to/baddate</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/baddate"/>
    <language>en</language>
    <item>
      <title>Build site with Franklin.jl</title>
      <dc:creator>SMJ</dc:creator>
      <pubDate>Tue, 01 Dec 2020 03:08:21 +0000</pubDate>
      <link>https://dev.to/baddate/build-site-with-franklin-jl-4113</link>
      <guid>https://dev.to/baddate/build-site-with-franklin-jl-4113</guid>
      <description>&lt;h2&gt;
  
  
  Forward
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://franklinjl.org/"&gt;Franklin.jl&lt;/a&gt; is a simple, customisable static site generator oriented towards technical blogging and light, fast-loading pages.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;At first, I want to learning Julia with a small open source project, smaller and better. Then I search on github with topic&lt;code&gt;#julia&lt;/code&gt;, and I find this tool. As I learned about it on its site, I think I can use this for my massively personal site(maybe it is beautiful, but too complex), and learning Julia when rebuilding my site.&lt;/p&gt;

&lt;p&gt;Therefore, I write this tutorial as my beginning.&lt;/p&gt;

&lt;p&gt;Last but not least, Franklin.jl has many features:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Augmented markdown allowing definition of LaTeX-like commands,&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Easy inclusion of user-defined div-blocks,&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Maths rendered via KaTeX, code via highlight.js both can be pre-rendered,&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Can live-evaluate Julia code blocks,&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Live preview of modifications,&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Simple optimisation step to compress and pre-render the website,&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Simple publication step to deploy the website,&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Straightforward integration with Literate.jl.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Setup Environment
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Download Julia from &lt;a href="https://julialang.org/downloads/"&gt;official site&lt;/a&gt; for your OS.&lt;/li&gt;
&lt;li&gt;Install it.&lt;/li&gt;
&lt;li&gt;Open julia REPL.&lt;/li&gt;
&lt;li&gt;Then excute &lt;code&gt;using Pkg; Pkg.add(Franklin)&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Start building
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;New a site with the following scripts:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight julia"&gt;&lt;code&gt;&lt;span class="n"&gt;julia&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="n"&gt;Franklin&lt;/span&gt;
&lt;span class="n"&gt;julia&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;newsite&lt;/span&gt;&lt;span class="x"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"mySite"&lt;/span&gt;&lt;span class="x"&gt;,&lt;/span&gt; &lt;span class="n"&gt;template&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"pure-sm"&lt;/span&gt;&lt;span class="x"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;✓&lt;/span&gt; &lt;span class="n"&gt;Website&lt;/span&gt; &lt;span class="n"&gt;folder&lt;/span&gt; &lt;span class="n"&gt;generated&lt;/span&gt; &lt;span class="n"&gt;at&lt;/span&gt; &lt;span class="s"&gt;"mySite"&lt;/span&gt; &lt;span class="x"&gt;(&lt;/span&gt;&lt;span class="n"&gt;now&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="n"&gt;directory&lt;/span&gt;&lt;span class="x"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;
&lt;span class="n"&gt;→&lt;/span&gt; &lt;span class="n"&gt;Use&lt;/span&gt; &lt;span class="n"&gt;serve&lt;/span&gt;&lt;span class="x"&gt;()&lt;/span&gt; &lt;span class="n"&gt;from&lt;/span&gt; &lt;span class="n"&gt;Franklin&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;see&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;website&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;your&lt;/span&gt; &lt;span class="n"&gt;browser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once you excuted the command above, this Julia REPL workspace will be in your site folder.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Start local server for debug:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight julia"&gt;&lt;code&gt;&lt;span class="n"&gt;julia&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;serve&lt;/span&gt;&lt;span class="x"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;→&lt;/span&gt; &lt;span class="n"&gt;Initial&lt;/span&gt; &lt;span class="n"&gt;full&lt;/span&gt; &lt;span class="n"&gt;pass&lt;/span&gt;&lt;span class="o"&gt;...&lt;/span&gt;
&lt;span class="n"&gt;→&lt;/span&gt; &lt;span class="n"&gt;Starting&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;server&lt;/span&gt;&lt;span class="o"&gt;...&lt;/span&gt;
&lt;span class="n"&gt;✓&lt;/span&gt; &lt;span class="n"&gt;LiveServer&lt;/span&gt; &lt;span class="n"&gt;listening&lt;/span&gt; &lt;span class="n"&gt;on&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="o"&gt;://&lt;/span&gt;&lt;span class="n"&gt;localhost&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;8000&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="o"&gt;...&lt;/span&gt;
  &lt;span class="x"&gt;(&lt;/span&gt;&lt;span class="n"&gt;use&lt;/span&gt; &lt;span class="n"&gt;CTRL&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;C&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;shut&lt;/span&gt; &lt;span class="n"&gt;down&lt;/span&gt;&lt;span class="x"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;you can get this page in your browser:&lt;br&gt;
&lt;a href="/_img/franklin_example_page.png" class="article-body-image-wrapper"&gt;&lt;img src="/_img/franklin_example_page.png" alt="Franklin Example"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;note: this &lt;code&gt;mySite&lt;/code&gt; folder will be created in your current directory. You can check your current directory with&lt;code&gt;pwd()&lt;/code&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Site Structure
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Page structure
&lt;/h3&gt;

&lt;p&gt;your &lt;code&gt;mySite&lt;/code&gt; folder structure like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;├─.github
│  └─workflows
├─_assets
│  └─scripts
│      └─output
├─_css
├─_layout
├─_libs
│  ├─highlight
│  ├─katex
│  │  └─fonts
│  └─pure
└─__site
    ├─assets
    │  ├─menu1
    │  │  ├─code
    │  │  │  └─output
    │  │  └─output
    │  └─scripts
    │      └─output
    ├─css
    ├─layout
    ├─libs
    │  ├─highlight
    │  ├─katex
    │  │  └─fonts
    │  └─pure
    ├─menu1
    ├─menu2
    ├─menu3
    └─tag
        ├─code
        ├─image
        └─syntax
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;.github&lt;/code&gt; folder is generated for Github Actions, you can config some fields for your customization.Fox example, you can change trigger branch from &lt;code&gt;dev&lt;/code&gt; to your &lt;strong&gt;workspace branch&lt;/strong&gt; like &lt;code&gt;master&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Build and Deploy&lt;/span&gt;
&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;push&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;branches&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
&lt;span class="pi"&gt;-&lt;/span&gt;      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;dev&lt;/span&gt;
&lt;span class="s"&gt;+      - master&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then you should change another &lt;strong&gt;BRANCH&lt;/strong&gt;(I named it as site branch) field here:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;    &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Build and Deploy&lt;/span&gt;
      &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;JamesIves/github-pages-deploy-action@releases/v3&lt;/span&gt;
      &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;GITHUB_TOKEN&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.GITHUB_TOKEN }}&lt;/span&gt;
&lt;span class="pi"&gt;-&lt;/span&gt;       &lt;span class="na"&gt;BRANCH&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;master&lt;/span&gt;
&lt;span class="na"&gt;+       BRANCH&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;dev&lt;/span&gt;
        &lt;span class="s"&gt;FOLDER&lt;/span&gt;&lt;span class="err"&gt;:&lt;/span&gt; &lt;span class="s"&gt;__site&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;NOTE: you must keep the site branch &lt;strong&gt;different from&lt;/strong&gt; the workspace branch(in the case it's &lt;code&gt;master&lt;/code&gt;), because you site files will be generated on &lt;code&gt;dev&lt;/code&gt; branch&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you use config above, your &lt;code&gt;master&lt;/code&gt; branch is your workspace branch and your &lt;code&gt;dev&lt;/code&gt; branch is your Github Pages site branch.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deploying on GitHub
&lt;/h2&gt;

&lt;h3&gt;
  
  
  local config
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Create a personal repo on github, named &lt;code&gt;username.github.io&lt;/code&gt;, or you can name it whatever you want to if you have a domain.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open local folder you created with Franklin before with bash or any other shell.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Follow these steps below to config your repo: &lt;br&gt;
i)&lt;code&gt;git remote add origin URL_TO_YOUR_REPO&lt;/code&gt; &lt;br&gt;
ii)&lt;code&gt;git add . &amp;amp;&amp;amp; git commit -m "initial files"&lt;/code&gt; &lt;br&gt;
iii)&lt;code&gt;git push -u origin master&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  github config
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Open &lt;code&gt;Settings&lt;/code&gt; on your repo page, and scrolling down until you find &lt;code&gt;GitHub Pages&lt;/code&gt; option.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Config it as below:&lt;br&gt;
&lt;a href="/_img/githubpage.png" class="article-body-image-wrapper"&gt;&lt;img src="/_img/githubpage.png" alt="Github Pages on Settings"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;note: you must make the branch &lt;strong&gt;same&lt;/strong&gt; as the &lt;strong&gt;site branch&lt;/strong&gt; in the &lt;code&gt;deploy.yml&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;DONE!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can find some examples of websites using Franklin.jl from &lt;a href="https://github.com/tlienart/Franklin.jl"&gt;Franklin.jl&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;By the way, I following this &lt;a href="https://abhishalya.github.io/"&gt;blog site&lt;/a&gt; as templates and customizing it. It is a very simple and wonderful site.&lt;/p&gt;

&lt;p&gt;Please comment or email me if there are any errors.&lt;/p&gt;

&lt;h2&gt;
  
  
  REFERENCE
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://franklinjl.org/"&gt;https://franklinjl.org/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/abhishalya/abhishalya.github.io"&gt;https://github.com/abhishalya/abhishalya.github.io&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.github.com/en/free-pro-team@latest/github/working-with-github-pages"&gt;https://docs.github.com/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>julia</category>
      <category>githubpages</category>
      <category>franklinjl</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to speed up GIT PUSH</title>
      <dc:creator>SMJ</dc:creator>
      <pubDate>Wed, 16 Oct 2019 09:02:51 +0000</pubDate>
      <link>https://dev.to/baddate/how-to-speed-up-git-push-i11</link>
      <guid>https://dev.to/baddate/how-to-speed-up-git-push-i11</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;OS: Windows10&lt;br&gt;
Shell: git bash&lt;br&gt;
Platform: GitHub&lt;br&gt;
Protocol: ssh&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Can anyone help me with Git Push Speed? I have 7 MB/S connection but push and pull are at 90-110 KB/S. It take hours to push and I got this error:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;fatal: remote end hung up unexpectedly
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Thanks in advance.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>git</category>
    </item>
    <item>
      <title>I can't use any firefox add-ons</title>
      <dc:creator>SMJ</dc:creator>
      <pubDate>Sat, 04 May 2019 08:22:57 +0000</pubDate>
      <link>https://dev.to/baddate/i-can-t-use-any-firefox-add-ons-2c8a</link>
      <guid>https://dev.to/baddate/i-can-t-use-any-firefox-add-ons-2c8a</guid>
      <description>&lt;p&gt;All my firefox add-ons are reported some bugs, and I also can't install other add-ons.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why?&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>browser</category>
      <category>firefox</category>
    </item>
    <item>
      <title>Arch Linux Installation Guide on HP Pavilion</title>
      <dc:creator>SMJ</dc:creator>
      <pubDate>Thu, 02 May 2019 09:59:34 +0000</pubDate>
      <link>https://dev.to/baddate/arch-linux-installation-guide-on-hp-pavilion-33lf</link>
      <guid>https://dev.to/baddate/arch-linux-installation-guide-on-hp-pavilion-33lf</guid>
      <description>&lt;p&gt;My computer details:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Computer: HP Pavilion laptop&lt;br&gt;
CPU: Intel i5-8250U&lt;br&gt;
GPU: NVIDIA MX150&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Pre-installation
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Verify the boot mode
&lt;/h3&gt;

&lt;p&gt;To verify if it is UEFI mode, use this command:&lt;br&gt;
 &lt;code&gt;ls /sys/firmware/efi/efivars&lt;/code&gt;&lt;br&gt;
If it show some details, the system is UEFI. Otherwise, the system may be booted in BIOS or CSM mode.&lt;/p&gt;
&lt;h3&gt;
  
  
  Connect to the internet
&lt;/h3&gt;

&lt;p&gt;Because I'm using HP laptop. so i just need connect to wifi with this command &lt;code&gt;wifi-menu&lt;/code&gt;. If you want to connect to wired network, reference official guide about &lt;a href="https://wiki.archlinux.org/index.php/Dhcpcd#Installation"&gt;dhcpcd&lt;/a&gt;&lt;br&gt;
You can check this connection by  &lt;code&gt;ping www.archlinux.org&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;
  
  
  Update the system clock
&lt;/h3&gt;

&lt;p&gt;Use &lt;code&gt;timedatectl set-ntp true&lt;/code&gt; to ensure the system clock is accurate, to check the service status, use &lt;code&gt;timedatectl status&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;
  
  
  Partition the disks
&lt;/h3&gt;

&lt;p&gt;Use &lt;code&gt;lsblk&lt;/code&gt; or &lt;code&gt;fdisk -l&lt;/code&gt; to vertified device.&lt;br&gt;
First, run &lt;code&gt;fdisk /dev/sda&lt;/code&gt;（note: if your device is /dev/sdX, run &lt;code&gt;fdisk /dev/sdX&lt;/code&gt;), and you will enter  the &lt;em&gt;fdisk&lt;/em&gt; dialog. &lt;br&gt;
Next enter &lt;code&gt;m&lt;/code&gt; you will get help details. If you use a separate hard drive. enter &lt;code&gt;g&lt;/code&gt; to format it as GPT. &lt;br&gt;
Next, enter &lt;code&gt;n&lt;/code&gt; to create new partitions, enter &lt;code&gt;w&lt;/code&gt; to exit if you finished.&lt;/p&gt;

&lt;p&gt;This is my partition layout:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mount points&lt;/th&gt;
&lt;th&gt;Partition&lt;/th&gt;
&lt;th&gt;Partition Type&lt;/th&gt;
&lt;th&gt;Size&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;/mnt&lt;/td&gt;
&lt;td&gt;/dev/sda3&lt;/td&gt;
&lt;td&gt;linux filesystem&lt;/td&gt;
&lt;td&gt;50G&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;/mnt/boot&lt;/td&gt;
&lt;td&gt;/dev/sda2&lt;/td&gt;
&lt;td&gt;linux filesystem&lt;/td&gt;
&lt;td&gt;500M&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;/mnt/boot/EFI&lt;/td&gt;
&lt;td&gt;/dev/sda1&lt;/td&gt;
&lt;td&gt;EFI system partition&lt;/td&gt;
&lt;td&gt;500M&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;[swap]&lt;/td&gt;
&lt;td&gt;/dev/sda4&lt;/td&gt;
&lt;td&gt;linux swap&lt;/td&gt;
&lt;td&gt;16G&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;/mnt/home&lt;/td&gt;
&lt;td&gt;/dev/sda5&lt;/td&gt;
&lt;td&gt;linux filesystem&lt;/td&gt;
&lt;td&gt;300G&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h3&gt;
  
  
  Format the partitions
&lt;/h3&gt;

&lt;p&gt;If the EFI partition is on /dev/sdX0, run:&lt;br&gt;
&lt;code&gt;mkfs.fat -F32 /dev/sdX0&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If the root partition is on* /dev/sdX1* and will contain the ext4 file system, run:&lt;br&gt;
&lt;code&gt;mkfs.ext4 /dev/sdX1&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If you created a partition for swap, initialize it with mkswap:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mkswap /dev/sdX2
swapon /dev/sdaX2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run these commands if you use my layout:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mkfs.fat -F32 /dev/sda1
mkfs.ext4 /dev/sda2
mkfs.ext4 /dev/sda3
mkfs.ext4 /dev/sda5
mkswap /dev/sda4
swapon /dev/sda4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Mount the file systems
&lt;/h3&gt;

&lt;p&gt;Run these commands if you use my layout:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mount /dev/sda3 /mnt
mkdir /mnt/boot
mount /dev/sda2 /mnt/boot
mkdir /mnt/boot/EFI
mount /dev/sda1 /mnt/EFI
mkdir /mnt/home
mount /dev/sda5 /mnt/home
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Select mirrors
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Open mirrorlist file by  &lt;code&gt;nano /etc/pacman.d/mirrorlist&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Uncomment your selected server.&lt;/li&gt;
&lt;li&gt;save changes
### Install the base packages
Use &lt;code&gt;pacstrap /mnt base base-devel&lt;/code&gt;
## Configure the system
### Generate an fstab file&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;genfstab -U /mnt &amp;gt;&amp;gt; /mnt/etc/fstab&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Check it in case of errors: &lt;code&gt;cat /mnt/etc/fstab&lt;/code&gt;
### Into new system
Run &lt;code&gt;arch-chroot /mnt&lt;/code&gt;
### Timezone and Location&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set Timezone:&lt;br&gt;
&lt;code&gt;ln -sf /usr/share/zoneinfo/Region/City /etc/localtime&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set the hardware clock:&lt;br&gt;
&lt;code&gt;hwclock --systohc&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set location&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Uncomment en_US.UTF-8 UTF-8 and other needed locales in &lt;strong&gt;/etc/locale.gen&lt;/strong&gt;, and generate it:&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nano /etc/locale.gen 
locale-gen
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By the way, the new system doesn't have &lt;code&gt;vim&lt;/code&gt;.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create the &lt;code&gt;locale.conf&lt;/code&gt; and set &lt;code&gt;LANG&lt;/code&gt;variable:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nano /etc/locale.conf
LANG= en_US.UTF-8 UTF-8
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Network Config
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Create the &lt;em&gt;hostname&lt;/em&gt; file and enter your hostname: &lt;code&gt;nano /etc/hostname&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Add matching entries to &lt;em&gt;hosts&lt;/em&gt;:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;127.0.0.1   localhost
::1     localhost
127.0.1.1   myhostname.localdomain  myhostname
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Set root password
&lt;/h3&gt;

&lt;p&gt;Run &lt;code&gt;passwd&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Enable microcode updates
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pacman -S intel-ucode # for intel CPU
pacman -S amd-ucode # for amd CPU
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Install and set Bootloader
&lt;/h3&gt;

&lt;p&gt;I use &lt;a href="https://en.wikipedia.org/wiki/GNU_GRUB"&gt;grub&lt;/a&gt;, so:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Install related packages:
&lt;code&gt;pacman -S grub dosfstools efibootmgr&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Install grub
&lt;code&gt;grub-install --target=x86_64-efi --efi-directory=/boot/EFI --recheck&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Use the grub-mkconfig tool to generate /boot/grub/grub.cfg:
&lt;code&gt;grub-mkconfig -o /boot/grub/grub.cfg&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Install Wireless LAN tools
&lt;/h3&gt;

&lt;p&gt;I use &lt;code&gt;wifi-menu&lt;/code&gt; to connect to wifi, so I need this packages:&lt;br&gt;
 &lt;code&gt;pacman -S wpa_supplicant dialog iw&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Add a user
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Add a user
&lt;code&gt;useradd -m -g users -s /bin/bash username&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Set password for user
&lt;code&gt;passwd username&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Privilege escalation(sudo)
&lt;code&gt;nano /etc/sudoers&lt;/code&gt; and add &lt;code&gt;username ALL=(ALL) ALL&lt;/code&gt; below &lt;code&gt;root ALL=(ALL) ALL&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Post-Installation
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Install display server
&lt;/h3&gt;

&lt;p&gt;Run the minimal command: &lt;code&gt;pacman -S xorg-server&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Install display driver
&lt;/h3&gt;

&lt;p&gt;Because I use*NVIDIA MX150* graphics card, I use this &lt;code&gt;xf86-video-nouveau&lt;/code&gt;driver. For details you can referrence &lt;a href="https://wiki.archlinux.org/index.php/NVIDIA"&gt;this&lt;/a&gt;. If you use &lt;em&gt;amd card&lt;/em&gt;, you can read &lt;a href="https://wiki.archlinux.org/index.php/Xorg#AMD"&gt;this&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Thank you for reading!&lt;/strong&gt;&lt;br&gt;
I will continue to update this article later if I find something.&lt;/p&gt;

</description>
      <category>archlinux</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Can I change the linux kenrnel to a lower version on docker?</title>
      <dc:creator>SMJ</dc:creator>
      <pubDate>Sun, 10 Mar 2019 04:31:26 +0000</pubDate>
      <link>https://dev.to/baddate/can-i-change-the-linux-kenrnel-to-a-lower-version-on-docker-3m2j</link>
      <guid>https://dev.to/baddate/can-i-change-the-linux-kenrnel-to-a-lower-version-on-docker-3m2j</guid>
      <description>&lt;p&gt;I want to compile and run a linux-2.x kernel without a VM, but a linux container.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>docker</category>
      <category>linux</category>
    </item>
    <item>
      <title>Ubuntu 18.04 install Java and Eclipse IDE</title>
      <dc:creator>SMJ</dc:creator>
      <pubDate>Fri, 08 Mar 2019 09:58:28 +0000</pubDate>
      <link>https://dev.to/baddate/ubuntu-1804-install-java-and-eclipse-ide-4d84</link>
      <guid>https://dev.to/baddate/ubuntu-1804-install-java-and-eclipse-ide-4d84</guid>
      <description>&lt;h1&gt;
  
  
  Requirements
&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Download an &lt;code&gt;JDK&lt;/code&gt; gz file.&lt;br&gt;
&lt;a href="https://www.oracle.com/technetwork/java/javase/downloads/index.html"&gt;https://www.oracle.com/technetwork/java/javase/downloads/index.html&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Download &lt;code&gt;Eclipse IDE installer&lt;/code&gt; gz file.&lt;br&gt;
&lt;a href="https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2018-12/R/eclipse-inst-linux64.tar.gz"&gt;https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2018-12/R/eclipse-inst-linux64.tar.gz&lt;/a&gt;&lt;br&gt;
you can select an mirror site for downloading it.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  Config JDK
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Extract and Install Java
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;tar -xvf ~/Downloads/jdk1.8.0_201.tar.gz&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Create an folder to store it.
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;sudo mkdir /usr/lib/jvm/jdk1.8.0_201&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Move extracted package to the directory.
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;sudo mv jdk1.8.0_201*/* /usr/lib/jvm/jdk1.8.0_201/&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Run the commands below to configure java.
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;update-alternatives &lt;span class="nt"&gt;--install&lt;/span&gt; &lt;span class="s2"&gt;"/usr/bin/java"&lt;/span&gt; &lt;span class="s2"&gt;"java"&lt;/span&gt; &lt;span class="s2"&gt;"/usr/lib/jvm/jdk1.8.0_201//bin/java"&lt;/span&gt; 1010 
&lt;span class="nb"&gt;sudo &lt;/span&gt;update-alternatives &lt;span class="nt"&gt;--install&lt;/span&gt; &lt;span class="s2"&gt;"/usr/bin/javac"&lt;/span&gt; &lt;span class="s2"&gt;"javac"&lt;/span&gt; &lt;span class="s2"&gt;"/usr/lib/jvm/jdk1.8.0_201//bin/javac"&lt;/span&gt; 1010 
&lt;span class="nb"&gt;sudo &lt;/span&gt;update-alternatives &lt;span class="nt"&gt;--install&lt;/span&gt; &lt;span class="s2"&gt;"/usr/bin/javaws"&lt;/span&gt; &lt;span class="s2"&gt;"javaws"&lt;/span&gt; &lt;span class="s2"&gt;"/usr/lib/jvm/jdk1.8.0_201//bin/javaws"&lt;/span&gt; 1010
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Create &lt;code&gt;Java Environment Variables&lt;/code&gt;.
&lt;/h2&gt;

&lt;p&gt;New an file.&lt;br&gt;
&lt;code&gt;sudo vim /etc/profile.d/javajdk.sh&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Copy this lines to &lt;code&gt;javajdk.sh&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;J2SDKDIR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/usr/lib/jvm/jdk1.8.0_201
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;J2REDIR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/usr/lib/jvm/jdk1.8.0_201/jre
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$PATH&lt;/span&gt;:/usr/lib/jvm/jdk1.8.0_201/bin:/usr/lib/jvm/jdk1.8.0_201/db/bin:/usr/lib/jvm/jdk1.8.0_201/jre/bin
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;JAVA_HOME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/usr/lib/jvm/jdk1.8.0_201
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;DERBY_HOME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/usr/lib/jvm/jdk1.8.0_201/db
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make it effective.&lt;br&gt;
&lt;code&gt;source /etc/profile.d/javajdk.sh&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Test if successful.&lt;br&gt;
Run the command&lt;code&gt;java -version&lt;/code&gt;, it will show messages like this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;java version &lt;span class="s2"&gt;"1.8.0_201"&lt;/span&gt;
Java&lt;span class="o"&gt;(&lt;/span&gt;TM&lt;span class="o"&gt;)&lt;/span&gt; SE Runtime Environment &lt;span class="o"&gt;(&lt;/span&gt;build 1.8.0_201-b09&lt;span class="o"&gt;)&lt;/span&gt;
Java HotSpot&lt;span class="o"&gt;(&lt;/span&gt;TM&lt;span class="o"&gt;)&lt;/span&gt; 64-Bit Server VM &lt;span class="o"&gt;(&lt;/span&gt;build 25.201-b09, mixed mode&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;if it, Congratulations!&lt;/p&gt;

&lt;h1&gt;
  
  
  Install Eclipse
&lt;/h1&gt;

&lt;p&gt;Extract &lt;code&gt;eclipse installer&lt;/code&gt; gz file, then just run the &lt;code&gt;eclipse-inst&lt;/code&gt; executable file.&lt;br&gt;
or run the command on &lt;code&gt;eclipse installer&lt;/code&gt; directiry&lt;br&gt;
&lt;code&gt;./eclipse-inst&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Next, it is some easy steps!&lt;/p&gt;
&lt;h1&gt;
  
  
  Add an icon on application lancher
&lt;/h1&gt;
&lt;h2&gt;
  
  
  Step1: change current directiry to &lt;code&gt;/usr/share/applicaitons&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;cd /usr/share/applicaitons&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Step2: new a &lt;code&gt;Java.desktop&lt;/code&gt; file.
&lt;/h2&gt;

&lt;p&gt;Input the lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[Desktop Entry]
Encoding=UTF-8
Name=Java #name it
Comment=Eclipse-Java
Exec=/path/eclipse #your path
Icon=/path/icon.xpm #your path
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;Development;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step3: Give it execution permission.
&lt;/h2&gt;

&lt;p&gt;Run the command:&lt;br&gt;
&lt;code&gt;sudo chmod +x Java.desktop&lt;/code&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Reference
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://websiteforstudents.com/install-oracle-java-jre-jdk-on-ubuntu-18-04-lts-beta/"&gt;https://websiteforstudents.com/install-oracle-java-jre-jdk-on-ubuntu-18-04-lts-beta/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This is my first post, if there are any errors, please correct me:)&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>java</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
