Introducing a stand-alone micro-editor similar to the nano-editor's upward compatibility with the Archlinax VPS server
↓
This micro editor is not well known, but shortcuts and GUI have been optimized for modern times, so it may greatly increase work efficiency.
↓
In this tutorial, we will explain step-by-step how to install a micro editor on a vanilla arch VPS server.
↓
I will explain how to install yay, which can manage AUR packages in the same way as Pacman
↓
The micro editor is not supported by the official Pacman, so I will explain how to install it using yay.
↓
The PC used for this development is here. Reproducibility may be improved by using the same equipment.
↓
Buy Amazon.com Gigabyte AERO 15 for Creator
Youtube
Blog gigabyte aero 15 4k review
↓
This is the one with the largest number of users. We are developing this using a VPS server. Here is the tutorial for initial setup.
↓
Youtube
Blog How to open vps server with Conoha VPS
↓
I would be grateful if you could read this article about how to connect to VPS server using SSH.
SSHを使ったVPSサーバーへの接続のやり方についてはこの記事をご参照いただけましたら幸いです。
↓
Blog Arch VPS → First SSH settings sshd setting
Youtube
↓
If the OS of your PC is Windows, use Bash Shell to build the environment. Here is how to install Bash Shell.
お使いのPCのOSがウインドウズだった場合はバッシュシェルを使って環境を構築します。バッシュシェルの導入のやり方はこちらになります。
↓
Blog Awindows10 → chocolatey git bash install & uninstall
Youtube
↓
After starting Bash, type
ssh ???.???.???.??
and Enter
↓
The part of ??? is the number displayed in VPS of this time.
↓
The authenticity of host ~ ngerprint])? Is displayed, type
yes
then Enter
↓
root@???.???.???.???'s password: is displayed, type the password that you recommended when creating the Arch VPS and enter.
↓
If you see [root @ localhost ~] #
, you can successfully connect to ssh.
↓
Make settings inside SSH.
↓
From here, I will explain the procedure to install yay using CLI.
↓
Type
pacman -Syu elinks
to enter. Update Arch Linux to the latest
↓
:: Proceed with installation? [Y/n]
↓
Will be output, so type
y
then enter
↓
If you see ==> Image generation successful
, you are successful.
↓
Packages downloaded with pacman will be placed in the
/var/cache/pacman/pkg
directory and the files will be kept there unless you manually remove them.
↓
Even if the package is updated, the old version of the cache file will remain.
↓
Therefore, if you do not manually delete the files on a regular basis, the amount of storage used will increase.
↓
I think it's an important part of using Arch Linux, which is hard to notice. If you update the cache and clear the cache regularly, you can operate the server more stably.
↓
Type
pacman -Sc
then enter. Clear the Archlinax cache
↓
:: Do you want to remove all other packages from cache? [Y/n]
↓
Type
y
to enter
↓
:: Do you want to remove unused repositories?
↓
Type
y
to enter
↓
Install nano, the most popular text editor that you find intuitive and easy to use.
↓
If you have another familiar editor, we would appreciate it if you could install it.
↓
Type
pacman -S nano
to enter. Install nano.
↓
:: Proceed with installation? [Y/n] is output. Type
y
to enter
↓
The color is changed to improve the visibility of CLI. This action is optional.
↓
Type
nano /etc/pacman.conf
and enter.
↓
Delete the # from #Color in the editor to make it Color. The act of removing the # is called commenting out.
↓
To undo your changes, add a # for Color in the editor and make it #Color.
↓
Although it is an option, you can change the download animation by adding
ILovecandy
under # Misc options. This is a flavor element.
↓
After making changes, press Ctrl(^) + s to save the changes
↓
Ctrl(^) + x Exit nano with
↓
Give superuser privileges to general users. If you do not do this, ordinary users will not be able to rewrite files inside the root.
↓
Type
pacman -S sudo
and enter.
↓
Type
EDITOR=nano visudo
and enter.
↓
Delete # in
# % wheel ALL = (ALL) ALL
in the editor to make
% wheel ALL = (ALL) ALL
↓
After making changes, press Ctrl(^) + s to save the changes
↓
Ctrl(^) + x Exit nano with
↓
Install the git package needed to download yay files from the git hub
↓
Type
pacman -S git
and enter.
↓
:: Proceed with installation? [Y/n] Will appear, type
y
and enter
↓
Since yay is written in go language, installation of go language is required.
↓
Type
pacman -S go
and enter
↓
Create a general user.
↓
Type
useradd -m -aG wheel {Your username}
and enter.
Here, by adding -m
, a folder of {Your username} is created under the home directory.
↓
Add {Your username} to the wheel group with -aG wheel
. This will put you in the #% wheel ALL = (ALL) ALL
group, so you can add sudo privileges.
↓
Even if you forget to add a group here, you can add or remove it later, but it is a hassle and it would be easier to register all at once in the useradd part.
↓
Type
passwd {Your username}
and enter.
↓
Type
{Type any password you want to}
to enter.
↓
Type
{Again type any password you want to}
and enter.
↓
If you see passwd: password updated successfully Is successful
↓
Type
su {The user name you just created}
and enter.
↓
Change user account from administrator to general user
↓
Type
cd
and enter.
↓
Go to the document root for regular users.
↓
Download yay in the document root of the created general user.
↓
Since it is a repository created by the user, the risk of cracking increases, yay does not recommend installing yay with root authority or root hierarchy.
↓
Creating a general user is almost mandatory to use yay.
↓
Type
git clone https://aur.archlinux.org/yay.git
and enter
↓
Type
cd yay
and enter
↓
Type
makepkg -si
and enter
↓
[sudo] password for arch: is output, type the password of a general user and enter
↓
:: Proceed with installation? [Y/n] Will appear, type
y
and enter
↓
This concludes the explanation of how to install yay.
↓
I will explain how to uninstall yay.
↓
Type
makepkg -c
and enter
↓
That's how to uninstall yay.
↓
The existence of the yay folder in the document root of general users is annoying, delete it. Please note that you cannot uninstall yay if this yay folder does not exist (1 lose)
↓
Type
cd ..
and enter
↓
Type
sudo rm -r yay
and enter
↓
[sudo] password for arch: is output, type the password of a general user and enter
↓
Install the micro editor using yay.
↓
Type
yay -S micro
and enter
↓
:: There are 4 providers available for micro:
:: Repository AUR
1) micro 2) micro-bin 3) micro-git 4) micro-nightly-bin
↓
Is output as that, type
1
and enter
↓
:: Downloaded PKGBUILD (1/1): micro-bin 1 micro-bin (Build Files Exist) ==> Diffs to show? ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4) ==>
↓
Is output as that, type
N
and enter
↓
[sudo] password for {General user name 一般ユーザー名}:
↓
Is displayed, type the password given to the general user and enter
↓
This concludes the explanation of how to install the micro editor.
↓
I will also describe how to uninstall when the micro editor is no longer needed.
↓
Type
yay -R micro
and enter
↓
[sudo] password for {General user name 一般ユーザー名}: Is displayed, type the password given to the general user and enter
↓
:: Do you want to remove these packages? [Y/n]
↓
Is output as that, type
y
and enter
↓
This concludes the explanation of how to uninstall the Micro Editor.
↓
Those who don't need the nano editor because they introduced a micro editor
↓
Type
sudo pacman -R nano
and enter
↓
[sudo] password for {General user name 一般ユーザー名}: Is displayed, type the password given to the general user and enter
↓
:: Do you want to remove these packages? [Y/n]
↓
Is output as that, type
y
and enter
↓
Now you can delete the nano editor
↓
I will list the shortcut commands of the micro editor
↓
ctrl + a | 全部選択 / Select all ctrl + x | 切り取り / Cut ctrl + c | コピー / copy ctrl + v | 貼り付け / Paste ctrl + z | 元に戻す / Undo ctrl + y | やり直し / redo ctrl + k | 行を切り取り / cut line ctrl + f | 検索 / Search ctrl + n | 次を検索 / Find Next ctrl + p | 前を検索 / Find Previous ctrl + l | 指定行へジャンプ / Jump to the specified line ctrl + g | ヘルプ / Help ctrl + r | 行数表示切り替え / line number display switching ctrl + t | 新しいタブを開く / open a new tab ctrl + ] | 左のタブを選択 / Select left tab ctrl + \ | 右のタブを選択 / Select right tab ctrl + o | ファイルを開く / Open file ctrl + s | 保存 / Save ctrl + d | 行を複製 / duplicate line ctrl + m | 改行を入力 / Enter a line break ctrl + i | タブを入力 / enter tab ctrl + h | バックスペースを入力 / Enter backspace ctrl + e | コマンド入力モード / Command input mode ctrl + b | シェルコマンド入力モード / Shell command input mode ctrl + w | 次のスプリットへ移動 / move to next split ctrl + q or ctrl + ESC | タブやスプリットを閉じる / close tab or split
↓
Commonly used commands are Ctrl + s Save
↓
Ctrl + q Is the end
↓
I also list the Yay shortcut. The usage is almost the same as the Pacman command.
↓
yay {-h --help} / ヘルプ
yay {-V --version} / バージョン
yay {-D --database} <options> <package(s)> / データベース
yay {-F --files} [options] [package(s)] / ファイル
yay {-Q --query} [options] [package(s)] / クエリ
yay {-R --remove} [options] <package(s)> / 削除
yay {-S --sync} [options] [package(s)] / 同期
yay {-T --deptest} [options] [package(s)] / depテスト
yay {-U --upgrade} [options] <file(s)> / アップグレード
yay {-Y --yay} [options] [package(s)] /
yay {-P --show} [options] / 表示
yay {-G --getpkgbuild} [package(s)] / パッケージビルドを表示
--repo Assume targets are from the repositories / レポジトリから参照する
-a --aur Assume targets are from the AUR / AURから参照
--save Causes the following options to be saved back to the config file when used / 設定ファイルに保存
--aururl <url> Set an alternative AUR URL / 代替のAUR URLを設定
--builddir <dir> Directory used to download and run PKBUILDS / PKBUILDSのダウンロードと実行に使用されるディレクトリ
--editor <file> Editor to use when editing PKGBUILDs / PKGBUILDを編集するときに使用するエディター
--editorflags <flags> Pass arguments to editor / 引数をエディターに渡す
--makepkg <file> makepkg command to use / 使用するmakepkgコマンドを指定
--mflags <flags> Pass arguments to makepkg / makepkgに引数を渡す
--pacman <file> pacman command to use / pacmanコマンドを使用
--tar <file> bsdtar command to use / bsdtarコマンドを使用
--git <file> git command to use / gitコマンドを使用
--gitflags <flags> Pass arguments to git / gitに引数を渡す
--gpg <file> gpg command to use / gpgコマンドを使用
--gpgflags <flags> Pass arguments to gpg / gpgに引数を渡す
--config <file> pacman.conf file to use / pacman.confを使用
--makepkgconf <file> makepkg.conf file to use / makepkg.confを使用
--nomakepkgconf Use the default makepkg.conf / デフォルトのmakepkg.confを使用
--requestsplitn <n> Max amount of packages to query per AUR request
--completioninterval <n> Time in days to to refresh completion cache / 完了キャッシュを更新するための数を指定
--sortby <field> Sort AUR results by a specific field during search / 検索中に特定のフィールドでAURの結果を並べ替え
--answerclean <a> Set a predetermined answer for the clean build menu / クリーンビルドメニューに所定の回答を設定する
--answerdiff <a> Set a predetermined answer for the diff menu / 差分メニューに所定の回答を設定する
--answeredit <a> Set a predetermined answer for the edit pkgbuild menu / pkgbuildの編集メニューに所定の回答を設定する
--answerupgrade <a> Set a predetermined answer for the upgrade menu / アップグレードメニューに所定の回答を設定
--noanswerclean Unset the answer for the clean build menu / クリーンビルドメニューの回答を解除
--noanswerdiff Unset the answer for the edit diff menu / 差分編集メニューの回答の設定を解除
--noansweredit Unset the answer for the edit pkgbuild menu / pkgbuildの編集メニューの回答の設定を解除
--noanswerupgrade Unset the answer for the upgrade menu / アップグレードメニューの回答を解除
--cleanmenu Give the option to clean build PKGBUILDS / PKGBUILDSをクリーンビルドするオプションを提供
--diffmenu Give the option to show diffs for build files / ビルドファイルの差分を表示するオプションを提供
--editmenu Give the option to edit/view PKGBUILDS / PKGBUILDSを編集/表示するオプションを提供
--upgrademenu Show a detailed list of updates with the option to skip any / 更新の詳細リストを表示し、スキップするオプションを選択
--nocleanmenu Don't clean build PKGBUILDS / ビルドPKGBUILDSをクリーンアップしない
--nodiffmenu Don't show diffs for build files / ビルドファイルの差分を表示しない
--noeditmenu Don't edit/view PKGBUILDS / PKGBUILDSを編集/表示しない
--noupgrademenu Don't show the upgrade menu / アップグレードメニューを表示しない
--askremovemake Ask to remove makedepends after install / インストール後にmakedependsを削除するように依頼
--removemake Remove makedepends after install / インストール後にmakedependsを削除
--noremovemake Don't remove makedepends after install / インストール後にmakedependsを削除しない
--afterclean Remove package sources after successful install / インストールが成功した後にパッケージソースを削除
--noafterclean Do not remove package sources after successful build / ビルドが成功した後でパッケージソースを削除しない
--bottomup Shows AUR's packages first and then repository's / AURのパッケージを最初に表示し、次にリポジトリのパッケージを表示
--topdown Shows repository's packages first and then AUR's / 最初にリポジトリのパッケージを表示し、次にAURを表示
--devel Check development packages during sysupgrade / sysupgrade中の開発パッケージを確認
--nodevel Do not check development packages / 開発パッケージをチェックしない
--gitclone Use git clone for PKGBUILD retrieval / PKGBUILDの取得にgit cloneを使用
--nogitclone Never use git clone for PKGBUILD retrieval / PKGBUILDの取得にgit cloneを使用しない
--rebuild Always build target packages / 常にターゲットパッケージをビルド
--rebuildall Always build all AUR packages / 常にすべてのAURパッケージをビルド
--norebuild Skip package build if in cache and up to date / キャッシュ内が最新の場合、パッケージのビルドをスキップ
--rebuildtree Always build all AUR packages even if installed / インストールされている場合でも常にすべてのAURパッケージをビルド
--redownload Always download pkgbuilds of targets / 常にターゲットのpkgbuildをダウンロード
--noredownload Skip pkgbuild download if in cache and up to date / キャッシュ内が最新の場合、pkgbuildのダウンロードをスキップ
--redownloadall Always download pkgbuilds of all AUR packages / すべてのAURパッケージのpkgbuildsを常にダウンロード
--provides Look for matching provders when searching for packages / パッケージを検索するときに一致するプロバイダーを探す
--noprovides Just look for packages by pkgname / pkgnameでパッケージを探す
--pgpfetch Prompt to import PGP keys from PKGBUILDs / PKGBUILDからPGPキーをインポートするように要求
--nopgpfetch Don't prompt to import PGP keys / PGPキーのインポートを要求しない
--useask Automatically resolve conflicts using pacman's ask flag / pacmanの質問フラグを使用して競合を自動的に解決
--nouseask Confirm conflicts manually during the install / インストール中に手動で競合を確認
--combinedupgrade Refresh then perform the repo and AUR upgrade together / 更新してから、リポジトリとAURのアップグレードを一緒に実行
--nocombinedupgrade Perform the repo upgrade and AUR upgrade separately / リポジトリのアップグレードとAURのアップグレードを個別に実行
--sudoloop Loop sudo calls in the background to avoid timeout / タイムアウトを回避するために、sudo呼び出しをバックグラウンドでループ
--nosudoloop Do not loop sudo calls in the background / バックグラウンドでsudo呼び出しをループしない
--timeupdate Check packages' AUR page for changes during sysupgrade / sysupgrade中の変更についてパッケージのAURページを確認
--notimeupdate Do not check packages' AUR page for changes / パッケージのAURページの変更をチェックしない
-c --complete Used for completions / 補完に使用
-d --defaultconfig Print default yay configuration / デフォルトのyay設定を印刷
-g --currentconfig Print current yay configuration / 現在のyay設定を印刷
-s --stats Display system package statistics / システムパッケージの統計情報を表示
-w --news Print arch news / アーチニュースを印刷
-c --clean Remove unneeded dependencies / 不要な依存関係を削除
--gendb Generates development package DB used for updating / 更新に使用する開発パッケージDBを生成
-f --force Force download for existing tar packages / 既存のtarパッケージの強制ダウンロード
↓
Thank you for watching until the end.
↓
If you like the content, it would be very encouraging to make a donation. Thank you for your warm support.
↓
https://www.amazon.com/hz/wishlist/ls/25QWFDBIGH2I
https://www.amazon.co.jp/hz/wishlist/ls/3QXEWZF6CZOWF
1PfRFYr5eYLDcC89bZhGP2jq9oV1oWhaT9
↓
Thank you for watching until the end. I'm glad if you can use it as a reference.
↓
We will continue to update useful information. If you don't mind, please donate. If you donate, I'll be happy to jump.