LoginSignup
2
2

More than 5 years have passed since last update.

Windows Subsystem for Linux(WSL)でDebianとWindowsにX

Posted at

下記を参考にしてWSL有効化とDebian導入

https://ygkb.jp/7291
https://qiita.com/Aruneko/items/c79810b0b015bebf30bb
https://www.pcgamer.com/linux-in-windows-10/

まずはDBのアップデートとパッケージのアップデート

これやらないと、後でapt-getでこける。

sudo apt-get update
sudo apt-get upgrade

日本語化

読む分には英語でも良いけど、表示はして欲しい。

sudo apt -y install task-japanese locales-all
sudo update-locale LANG=ja_JP.UTF-8

ここでいったん終了してから、Ubuntuを再起動

sudo dpkg-reconfigure tzdata
sudo apt -y install manpages-ja manpages-ja-dev

何故か文字化けしている時は、コンソールを疑ってみるのも有り。

プロパティ
から
フォント
を選んで、日本語のフォントを選択。

いくつか追加してみる

sudo apt install vim-nox
sudo apt install git
sudo apt install build-essential
sudo apt install zsh
sudo apt install less

sudo apt-get install libssl-dev
sudo apt-get install libreadline-dev
sudo apt-get install zlib1g-dev
sudo apt-get install x11-apps
sudo apt-get install x11-utils
sudo apt-get install x11-xserver-utils
sudo apt-get install libsqlite3-dev
sudo apt-get install nodejs
sudo apt-get install fonts-ipafont
sudo apt-get install libxml2-dev
sudo apt-get install libxslt1-dev

Xmingを入れてみる

Xサーバを下記からダウンロードしてインストール

Windows上のDebianから、GUIなDebianアプリを実行させたい。

echo “export DISPLAY=:0.0” >> ~/.bashrc

お試しに入れてみる。

sudo apt-get install gedit

実験

gedit

デスクトップを入れる。

sudo apt install xfce4
sudo apt install gnome-themes-standard
sudo apt install conky

いつでも使える準備

nano ~/.xinitrc

中身はこちら

#!/usr/bin/env bash
export LANG="en_US.UTF-8”
export LC_ALL="en_US.UTF-8”
exec startxfce4

実行権限付けてリンク

chmod +x ~/.xinitrc
ln -s ~/.xinitrc ~/.xsession

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2