<?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: Naimul Kabir</title>
    <description>The latest articles on DEV Community by Naimul Kabir (@kabirnayeem99).</description>
    <link>https://dev.to/kabirnayeem99</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%2F350477%2F43d43cde-aed9-4d85-9956-6505b4d0a5f5.jpg</url>
      <title>DEV Community: Naimul Kabir</title>
      <link>https://dev.to/kabirnayeem99</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kabirnayeem99"/>
    <language>en</language>
    <item>
      <title>Turn your Manjaro into Arch</title>
      <dc:creator>Naimul Kabir</dc:creator>
      <pubDate>Sun, 19 Jul 2020 09:33:25 +0000</pubDate>
      <link>https://dev.to/kabirnayeem99/turn-your-manjaro-into-arch-5c7c</link>
      <guid>https://dev.to/kabirnayeem99/turn-your-manjaro-into-arch-5c7c</guid>
      <description>&lt;h1&gt;
  
  
  Manjaro To Arch Conversation
&lt;/h1&gt;

&lt;p&gt;Manjaro is one of the most popular Linux distro, no confusion here. Its easy installation process, supportive hardware with easy Arching makes it so much popular. Manjaro is the best choice for those beginners who wants to use Arch in any way. But there's some annoyance about Manjaro too. Manjaro is not as bleeding edge as Arch - holds back the update for some time, often breaks by switching DE, and a little bit bloated. So, users may later want to switch over to arch, but still fears the hassle of Arch Installation Process. This is a guide for those who want to install arch with less hassle or wants to switch over to Arch from Manjaro.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Changing the Pacman Configuration
&lt;/h2&gt;

&lt;p&gt;Pacman, using libalpm, will attempt to read pacman.conf each time it is invoked. This configuration file is divided into sections or repositories. Each section defines a package repository that Pacman can use when searching for packages in - sync mode. The exception to this is the options section, which defines global options.&lt;br&gt;
First, create a backup of your pacman.conf file by&lt;br&gt;
&lt;code&gt;sudo cp /etc/pacman.conf /etc/pacman.conf.bak&lt;/code&gt;&lt;br&gt;
and then change your &lt;code&gt;/etc/pacman.conf&lt;/code&gt; as below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
CacheDir = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg      = pacman glibc
# If upgrades are available for these packages they will be asked for first
# SyncFirst    = manjaro-system archlinux-keyring manjaro-keyring
#XferCommand = /usr/bin/curl -C - -f %u &amp;gt; %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
Color
#TotalDownload
# We cannot check disk space from within a chroot environment
CheckSpace
#VerbosePkgLists

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Never
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Manjaro Linux
# packagers with `pacman-key --populate archlinux manjaro`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

[core]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[extra]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[community]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

[multilib]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 2: Change Your Mirrors
&lt;/h2&gt;

&lt;p&gt;Go to the Pacman Mirrorlist Generator, select your country and hit the Generate button. And then paste generated lines in your /etc/pacman.d/mirrolist file. It will look 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;# Arch Linux repository mirror list
# Generated on 2019–11–26
# Please use 'pacman-mirrors -id' To reset custom mirrorlist
# Please use 'pacman-mirrors -c all' To reset custom mirrorlist
# To remove custom config run 'pacman-mirrors -c all'
# Bangladesh
Server = http://mirror.xeonbd.com/archlinux/$repo/os/$arch
# India
Server = http://mirror.cse.iitk.ac.in/archlinux/$repo/os/$arch
Server = https://ind.mirror.pkgbuild.com/$repo/os/$arch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 3: Change Manjaro Related ETC files
&lt;/h2&gt;

&lt;p&gt;Etc usually contains the configuration files for all the programs that run on your Linux/Unix system.&lt;/p&gt;

&lt;h3&gt;
  
  
  a) Remove Manjaro Release file
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;sudo cp /etc/manjaro-release /etc/manjaro-release.bak&lt;/code&gt;&lt;br&gt;
And then Uninstall Manjaro Release file by&lt;br&gt;
&lt;code&gt;sudo pacman -Rns manjaro-release&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  b) Backing Up pacman-mirrors.conf
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;sudo mv /etc/pacman-mirrors.conf /etc/pacman-mirrors.conf.bak&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  c) Change os-release file
&lt;/h3&gt;

&lt;p&gt;The os-release file contains the necessary information for operating system identification. It is set by the operating system vendor. Change &lt;code&gt;/etc/os-release&lt;/code&gt; file like below:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="20;2;20;222;202"
HOME_URL="https://www.archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
LOGO=archlinux
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  d) Change the issue file
&lt;/h3&gt;

&lt;p&gt;The file /etc/issue is a text file which contains a message or system identification to be printed before the login prompt. Change the /etc/issue file like below:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Arch Linux \r (\l)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  e ) Change lsb-release file
&lt;/h3&gt;

&lt;p&gt;Change &lt;code&gt;/etc/lsb-release&lt;/code&gt; file like below&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;LSB_VERSION=1.4
DISTRIB_ID=Arch
DISTRIB_RELEASE=rolling
DISTRIB_DESCRIPTION="Arch Linux"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 4: Do an update
&lt;/h2&gt;

&lt;p&gt;Do an update by running &lt;code&gt;sudo pacman -Syyu&lt;/code&gt; and if it asks to replace any packages do so. and install some packages like pacman, systemd, your DE again by running  &lt;code&gt;sudo pacman -S &amp;lt;package name&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Install and Uninstall Some Packages
&lt;/h2&gt;

&lt;p&gt;Install kernel and other necessary packages by running&lt;br&gt;
&lt;code&gt;sudo pacman -Scc &amp;amp;&amp;amp; sudo pacman -S linux-lts linux-lts-headers acpi_call-dkms tlp pacman-mirrors grub&lt;/code&gt;&lt;br&gt;
Uninstall all the packages related to Manjaro, such as Manjaro alsa and others. And reinstall some of the removed dependency, like installing &lt;code&gt;pulseaudio&lt;/code&gt; and &lt;code&gt;alsa-lib&lt;/code&gt; again. &lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Bug fixing
&lt;/h2&gt;

&lt;p&gt;Run &lt;code&gt;sudo tlp usb&lt;/code&gt; to stop mouse freezing.&lt;br&gt;
Open   &lt;code&gt;/etc/default/grub&lt;/code&gt; file and change the &lt;code&gt;GRUB_DISTRIBUTION&lt;/code&gt; to &lt;code&gt;"Arch"&lt;/code&gt; and &lt;code&gt;update-grub&lt;/code&gt; by running&lt;br&gt;
&lt;code&gt;sudo grub-mkconfig -o /boot/grub/grub.cfg&lt;/code&gt;&lt;br&gt;
Restart your computer and you will find that your computer is running Arch now. Let people know that you are now a ARCH USER.&lt;br&gt;
If you face any problems, please let me know.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>archlinux</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
