<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="http://blog.vingxia.com/feed.xml" rel="self" type="application/atom+xml" /><link href="http://blog.vingxia.com/" rel="alternate" type="text/html" /><updated>2026-08-09T16:31:20+00:00</updated><id>http://blog.vingxia.com/feed.xml</id><title type="html">Ving’s Notes</title><subtitle>You got this. Make it happen.</subtitle><author><name>Ving</name><email>viing937@gmail.com</email></author><entry><title type="html">My ArchLinux Installation Guide</title><link href="http://blog.vingxia.com/2017/07/04/My-ArchLinux-Installation-Guide.html" rel="alternate" type="text/html" title="My ArchLinux Installation Guide" /><published>2017-07-04T00:00:00+00:00</published><updated>2017-07-04T00:00:00+00:00</updated><id>http://blog.vingxia.com/2017/07/04/My-ArchLinux-Installation-Guide</id><content type="html" xml:base="http://blog.vingxia.com/2017/07/04/My-ArchLinux-Installation-Guide.html"><![CDATA[<ul id="markdown-toc">
  <li><a href="#1-preparation" id="markdown-toc-1-preparation">1. Preparation</a>    <ul>
      <li><a href="#11-connect-to-the-internet" id="markdown-toc-11-connect-to-the-internet">1.1 Connect to the Internet</a></li>
      <li><a href="#12-update-the-system-clock" id="markdown-toc-12-update-the-system-clock">1.2 Update the system clock</a></li>
    </ul>
  </li>
  <li><a href="#2-prepare-the-storage-devices" id="markdown-toc-2-prepare-the-storage-devices">2. Prepare the storage devices</a>    <ul>
      <li><a href="#21-partition-the-devices" id="markdown-toc-21-partition-the-devices">2.1 Partition the devices</a></li>
      <li><a href="#22-format-the-partitions" id="markdown-toc-22-format-the-partitions">2.2 Format the partitions</a></li>
      <li><a href="#23-mount-the-partitions" id="markdown-toc-23-mount-the-partitions">2.3 Mount the partitions</a></li>
    </ul>
  </li>
  <li><a href="#3-installation" id="markdown-toc-3-installation">3. Installation</a>    <ul>
      <li><a href="#31-select-the-mirrors" id="markdown-toc-31-select-the-mirrors">3.1 Select the mirrors</a></li>
      <li><a href="#32-install-the-base-packages" id="markdown-toc-32-install-the-base-packages">3.2 Install the base packages</a></li>
    </ul>
  </li>
  <li><a href="#4-configuration" id="markdown-toc-4-configuration">4. Configuration</a>    <ul>
      <li><a href="#41-fstab" id="markdown-toc-41-fstab">4.1 fstab</a></li>
      <li><a href="#42-change-root" id="markdown-toc-42-change-root">4.2 Change root</a></li>
      <li><a href="#43-locale" id="markdown-toc-43-locale">4.3 Locale</a></li>
      <li><a href="#44-time" id="markdown-toc-44-time">4.4 Time</a></li>
      <li><a href="#45-network-configuration" id="markdown-toc-45-network-configuration">4.5 Network configuration</a></li>
      <li><a href="#46-boot-loader" id="markdown-toc-46-boot-loader">4.6 Boot loader</a></li>
      <li><a href="#47-root-password" id="markdown-toc-47-root-password">4.7 Root password</a></li>
    </ul>
  </li>
  <li><a href="#5-unmount-the-partitions-and-reboot" id="markdown-toc-5-unmount-the-partitions-and-reboot">5. Unmount the partitions and reboot</a></li>
  <li><a href="#6-post-installation" id="markdown-toc-6-post-installation">6. Post-installation</a>    <ul>
      <li><a href="#61-add-user" id="markdown-toc-61-add-user">6.1 Add user</a></li>
      <li><a href="#62-graphical-user-interface" id="markdown-toc-62-graphical-user-interface">6.2 Graphical user interface</a></li>
      <li><a href="#63-networkmanager" id="markdown-toc-63-networkmanager">6.3 Networkmanager</a></li>
      <li><a href="#64-proxy" id="markdown-toc-64-proxy">6.4 Proxy</a></li>
      <li><a href="#67-input-devices" id="markdown-toc-67-input-devices">6.7 Input devices</a></li>
      <li><a href="#68-fonts" id="markdown-toc-68-fonts">6.8 Fonts</a></li>
      <li><a href="#69-chinese-input-method" id="markdown-toc-69-chinese-input-method">6.9 Chinese input method</a></li>
      <li><a href="#610-other" id="markdown-toc-610-other">6.10 Other</a></li>
    </ul>
  </li>
</ul>

<p>It is a ArchLinux installation guide.</p>

<h1 id="1-preparation">1. Preparation</h1>

<h2 id="11-connect-to-the-internet">1.1 Connect to the Internet</h2>

<p>If your device is wired, the <code class="language-plaintext highlighter-rouge">dhcpcd</code> daemon is enabled and will attempt to start a connection, otherwise</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ wifi-menu
</code></pre></div></div>

<h2 id="12-update-the-system-clock">1.2 Update the system clock</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ timedatectl set-ntp true
</code></pre></div></div>

<h1 id="2-prepare-the-storage-devices">2. Prepare the storage devices</h1>

<h2 id="21-partition-the-devices">2.1 Partition the devices</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ fdisk /dev/sdx
</code></pre></div></div>

<h2 id="22-format-the-partitions">2.2 Format the partitions</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ mkfs.ext4 /dev/sdxy
</code></pre></div></div>

<h2 id="23-mount-the-partitions">2.3 Mount the partitions</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ mount /dev/sdxy /mnt
</code></pre></div></div>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ mkdir /mnt/home
$ mount /dev/sdxy /mnt/home
</code></pre></div></div>

<h1 id="3-installation">3. Installation</h1>

<h2 id="31-select-the-mirrors">3.1 Select the mirrors</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ vim /etc/pacman.d/mirrorlist
</code></pre></div></div>

<h2 id="32-install-the-base-packages">3.2 Install the base packages</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ pacstrap -i /mnt base base-devel
</code></pre></div></div>

<h1 id="4-configuration">4. Configuration</h1>

<h2 id="41-fstab">4.1 fstab</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ genfstab -U /mnt &gt;&gt; /mnt/etc/fstab
</code></pre></div></div>

<h2 id="42-change-root">4.2 Change root</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ arch-chroot /mnt /bin/bash
</code></pre></div></div>

<h2 id="43-locale">4.3 Locale</h2>

<p>Uncomment <code class="language-plaintext highlighter-rouge">en_US.UTF-8 UTF-8</code> and <code class="language-plaintext highlighter-rouge">zh_CN.UTF-8 UTF-8</code>.</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ vim /etc/locale.gen
</code></pre></div></div>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ locale-gen
$ echo LANG=en_US.UTF-8 &gt; /etc/locale.conf
</code></pre></div></div>

<h2 id="44-time">4.4 Time</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
$ hwclock --systohc --utc
</code></pre></div></div>

<h2 id="45-network-configuration">4.5 Network configuration</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ echo &lt;hostname&gt; &gt; /etc/hostname
</code></pre></div></div>

<h2 id="46-boot-loader">4.6 Boot loader</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ pacman -S grub os-prober
$ grub-install --recheck /dev/sdx
$ grub-mkconfig -o /boot/grub/grub.cfg
</code></pre></div></div>

<h2 id="47-root-password">4.7 Root password</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ passwd
</code></pre></div></div>

<h1 id="5-unmount-the-partitions-and-reboot">5. Unmount the partitions and reboot</h1>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ umount -R /mnt
$ reboot
</code></pre></div></div>

<h1 id="6-post-installation">6. Post-installation</h1>

<h2 id="61-add-user">6.1 Add user</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ useradd -m -g users -G wheel -s /bin/bash ving
$ passwd ving
</code></pre></div></div>

<p>Allow users in <code class="language-plaintext highlighter-rouge">wheel</code> group use <code class="language-plaintext highlighter-rouge">sudo</code> command.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ vim /etc/sudoers
</code></pre></div></div>

<h2 id="62-graphical-user-interface">6.2 Graphical user interface</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ pacman -S gnome
$ systemctl enable gdm
</code></pre></div></div>

<h2 id="63-networkmanager">6.3 Networkmanager</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ systemctl enable NetworkManager
</code></pre></div></div>

<h2 id="64-proxy">6.4 Proxy</h2>

<p>Shadowsocks.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ pacman -S shadowsocks
$ vim /etc/shadowsocks/example.json
$ systemctl enable shadowsocks@example
</code></pre></div></div>

<p>Proxychains.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ pacman -S proxychains-ng
$ vim /etc/proxychains.conf
</code></pre></div></div>

<h2 id="67-input-devices">6.7 Input devices</h2>

<p>if you are using a laptop</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ pacman -S xf86-input-synaptics
</code></pre></div></div>

<p>if your your laptop has a TrackPoint</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ pacman -S xf86-input-libinput
</code></pre></div></div>

<h2 id="68-fonts">6.8 Fonts</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ pacman -S wqy-microhei
</code></pre></div></div>

<h2 id="69-chinese-input-method">6.9 Chinese input method</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ pacman -S fcitx-im fcitx-configtool
</code></pre></div></div>

<p>The <code class="language-plaintext highlighter-rouge">xprofile</code> is contained in my dot files.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ vim ~/.xprofile
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
</code></pre></div></div>

<p>Reboot and configure fcitx.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ fcitx-configtool
</code></pre></div></div>

<h2 id="610-other">6.10 Other</h2>

<p>Fetch my dot files.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ git clone https://github.com/viing937/dotfiles.git ~/.dotfiles
$ ~/.dotfiles/install.sh
</code></pre></div></div>]]></content><author><name>Ving</name><email>viing937@gmail.com</email></author><summary type="html"><![CDATA[]]></summary></entry></feed>