LoginSignup
6
5

More than 5 years have passed since last update.

Ubuntu 18.04 をRDP接続し日本語化してVisual Studio Codeを使用するまで

Last updated at Posted at 2019-03-21

毎回調べなくても良いようにまとめ。

環境

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:        18.04
Codename:       bionic

参考

https://docs.microsoft.com/ja-jp/azure/virtual-machines/linux/use-remote-desktop
https://www.kwbtblog.com/entry/2018/12/23/035859
https://qiita.com/yy1106/items/1948876b735fd9ae2f55
https://qiita.com/entertvl/items/ee15c3039dcf3d1e1f82
https://qiita.com/rs_/items/7305c5bee18ac4666d73

作業

アップデート

$ sudo apt update
$ sudo apt upgrade -y
$ sudo apt autoremove -y
$ sudo apt autoclean -y
$ sudo reboot

デスクトップインストール

$ sudo apt-get install xfce4 -y

リモートデスクトップサーバーインストール

$ sudo apt-get install xrdp -y
$ sudo systemctl enable xrdp
$ echo xfce4-session >~/.xsession
$ sudo service xrdp restart

RDP接続確認

image.png

タイムゾーン変更

$ sudo timedatectl set-timezone Asia/Tokyo

日本語化

$ sudo apt-get install -y language-pack-ja-base language-pack-ja ibus-mozc fonts-takao-pgothic fonts-takao-gothic fonts-takao-mincho
$ sudo localectl set-locale LANG=ja_JP.UTF-8 LANGUAGE="ja_JP:ja"
$ source /etc/default/locale

※Notoフォントはapt-getできないのかな?

キーボードレイアウト変更

sudo dpkg-reconfigure keyboard-configuration

ウィザードにて以下を指定。
コマンドで設定できないのかな?

Generic 105-key PC (Intl.) > 日本語 > 日本語 > キーボード配置のデフォルト > コンポーズキーなし > いいえ

以下、必要に応じてアプリをインストールします。

Chromeインストール

$ sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
$ sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
$ sudo apt-get update
$ sudo apt-get install google-chrome-stable -y

Node.jsとnpmインストール

$ sudo apt install nodejs -y
$ sudo apt install npm -y

Visual Studio Codeインストール

$ curl -L -o vscode.deb https://go.microsoft.com/fwlink/?LinkID=760868
$ sudo apt install -y ./vscode.deb

VSCodeのインストール方法はいろいろある模様。
https://code.visualstudio.com/docs/setup/linux

今回はcurl -Lでリダイレクト先から.debをダウンロードして手動インストールした。
インストール後、VSCodeを起動して、日本語パックなどを必要なプラグインをインストールする。

感想

  • 改めて列挙すると、いろいろやってる

以上

6
5
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
6
5