[LINUX] Note until you use emacs with WSL

Introduction

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.

Enable WSL

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.

linux choice

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.

Setting 1

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.

Setting 2

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.

install emacs

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

Note until you use emacs with WSL
Until you can use opencv with python
Until you use the Kaggle API with Colab
Until you use PhantomJS with Python on Heroku
Use Windows 10 fonts with WSL
Use pyright with CentOS7, emacs lsp-mode
Until you start Jupyter with Docker
[Note] Where did you use async?
[Note] WSL2 kernel build and use
Until you use Google cola boratory
Until you run python with apache
Until you shake ruby with renpy
Use a custom kernel with WSL2
A note on what you did to use Flycheck with Python
Until you confirm iOS communication with mitmproxy
Until you CI what you made with Django with Jenkins
Until you can use the Google Speech API
[GitHub] Until you pull with ssh using Deploy keys
Until you install TensorFlow-GPU with pip in Windows environment
Site notes to help you use NetworkX with Python
Until you can do simple image recognition with Jupyter
Use mecab-ipadic-neologd with igo-python
Use ansible with cygwin
Use pipdeptree with virtualenv
[Python] Use JSON with Python
Use Mock with pytest
Use indicator with pd.merge
Use Gentelella with django
Use mecab with Python3
Use tensorboard with Chainer
Use DynamoDB with Python
Use pip with MSYS2
Use Python 3.8 with Anaconda
Use pyright with Spacemacs
Use python with docker
Use TypeScript with django-compressor
Until you install MySQL-python
Use LESS with Django
Use MySQL with Django
Use Enums with SQLAlchemy
Use tensorboard with NNabla
Use GPS with Edison
Use nim with Jupyter
Until you can install your own Python library with pip
You cannot use break or continue with the ternary operator
Until you edit an SVG file with AutoCAD to PNG.
[python] A note when trying to use numpy with Cython
Use aggdraw when you want to draw beautifully with pillow