Since I am introductory to emacs, I thought it would be nice if I could play with emacs on my company's computer, so I briefly investigated how to do it, so I will summarize it. Windows10 is a prerequisite.
Control panel ↓ Programs and features ↓ Enable or disable Windows features ↓ Check Windows Subsystem for Linux ↓ OK. After restarting, a message will appear stating that it will be valid, so restart.
Open Microsoft Store ↓ Search by wsl ↓ There are several distributions to choose from, so choose and get them.
It seems that there are ubuntu, debian, openSUSE, kali, centos, etc. There is a charge for centos (although it costs only 230 yen) I somehow made it debian.
When the linux console started, I was asked only to set the username and password, so enter it. This may vary depending on the distribution.
If you have a proxy server in your company, you also need to set it. (Because I get an error with apt)
export http_proxy="http://username:passwd@proxyserver:port"
export https_proxy="http://username:passwd@proxyserver:port"
By the way, if there is a symbol in the user name or password at this time, it must be% encoded.
sudo -E apt update
sudo -E apt install emacs
The -E option is added so that the environment variable set earlier can be used with sudo.
For the time being, it can be used with this. that's all.
Recommended Posts