blog/content/post/install-code-server-on-artix.md
2022-06-15 07:09:32 +00:00

2 KiB

title date lastmod draft keywords description tags categories author comment toc autoCollapseToc postMetaInFooter hiddenFromHomePage contentCopyright reward mathjax mathjaxEnableSingleDollar mathjaxEnableAutoNumber hideHeaderAndFooter flowchartDiagrams sequenceDiagrams
Install Code Server on Artix 2022-06-15T06:59:27Z 2022-06-15T06:59:27Z false
artix
code-server
code-server
linux
false false false false false false false false false false false
enable options
false
enable options
false

Same as installing code-server on Arch, except you need an OpenRC script.

Install using yay

yay is a convenient AUR helper.

yay -S code-server 

Install using makepkg

git clone https://aur.archlinux.org/code-server.git
cd code-server
makepkg -si 

Download and configure OpenRC script

The script is pretty generic and should work on most OpenRC-based distributions with minimal tweaks. You just need to download it, make it executable and put your username in line 3.

cd /etc/init.d/
sudo wget -c https://banyan.divineduty.xyz/GNUxeava/code-server-openrc/raw/branch/master/code-server 
sudo chmod +x code-server 

code-server reads configuration from ~/.config/code-server/config.yaml. It is better than sending arguments directly to code-server using the script.

Usage

Start on boot with default runlevel

sudo rc-update add code-server default 

Start the service immediately

sudo rc-service code-server start