[LINUX] Initial settings from Kubuntu installation

This article is a tutorial that doubles as a personal note on basic Kubuntu environment setup. I have selected an environment that requires as few settings as possible.

Mainly input Japanese and set the terminal. It is set according to personal preference, so please read as appropriate.

The hardware environment is the US keyboard specification of ThinkPad X1 Carbon 6th.

Distribution (desktop environment)

Select Kubuntu as the distribution. The desktop environment is KDE and the window manager is X Window. I think it's Windows-like and easy to use.

Installation

Download the iso file from here. Burn it to USB with some tool.

If you change the boot order and start with pointing to USB, Kubuntu will start, so click the install icon to proceed with the installation. There is no particular setting except during dual boot, so follow the instructions to install.

Unplug the USB, reboot, and update apt. After that, select each software and install it.

$ sudo apt update
$ sudo apt upgrade

HiDPI settings

If you are using a monitor with a large resolution relative to its size, the display will be too small to read.

Adjust the Global scale from "Display and Monitor-> Display Settings" in KDE Settings to zoom in on all elements. If you have a laptop with a resolution of 2560x1440, you should set the magnification to 150%.

Key config

I want Ctrl to come next to ʻA for personal preference, so replace it with left Ctrl` from the settings. You can switch by enabling "Input device-> Keyboard-> Details-> Ctrl position-> Swap Ctrl and Caps Lock" from the KDE settings.

font

Select Noto as the Japanese font. (Installed in Kubuntu)

HackGenNard is used for monospaced fonts for programming and consoles. Download the latest version from Release Page, place the extracted ttf file in ~ / .fonts, and install it with $ fc-cache -fv. Will be done.

Setting

Select Noto Sans CJK JP from" Appearance-> Fonts-> Adjust All Fonts "in KDE Settings to adjust the size. The system font should now be Noto.

Change the monospaced font to one of the HackGenNard family.

Terminal environment

The terminal environment has yakuake running Fish.

yakuake is a drop-down terminal emulator. Press the hotkey to bring up the terminal from the top of the screen.

Unlike other high-performance shells such as zsh, fish is a user-friendly shell that allows you to use syntax highlighting and other functions from the beginning without using any plugins.

You can set Fish to start in .bashrc etc., but you want to keep the login shell and the shell script format is different, so the default shell etc. are intentionally left unset.

fish on yakuake settings

It will be installed with sudo apt install yakuake fish.

First, set yakuake to start automatically at startup. Start yakuake once and set the trigger key (F12 by default).

Search and register yakuake from "Workspace-> Start and Exit-> Automatic Start-> Add Program" in KDE Settings. Restart and confirm that it is started by pressing the registered key.

Next, click the button next to "Close" at the bottom right of the launched yakuake, and adjust the width and height as you like. From the same place, enter "Profile Management" and set the fish startup settings.

Create a new profile with "New ..." and enter the edit screen with "Edit ..."

Please set / usr / bin / fish in" General-> Command ". This will start fish from the beginning.

It is a good idea to change the theme to your liking in "Appearance". You can also make it transparent by editing the theme.

You can also change the font by clicking "Choose ...". HackGen is specified here as well, but it does not appear by default, so enable Show all fonts, select HackGen35Nard Console, and set it to 12pt of Regular.

Finally, press "Make default" on the profile management screen that you have left editing, and the yakuake settings are complete.

This time, the Ctrl + Alt + T shortcut is left, so if you want to use bash, you can use Konsole.

Japanese input environment

Use Fcitx-Mozc. For input switching, set Left Alt in addition to Ctrl + Space.

Mozc adjusts the behavior in Japanese environment.

Fcitx settings

Launch the Fcitx settings and verify that English and Mozc are registered for the current input method.

Register Left Alt by clicking the" Full half key "of" General settings-> Trigger Input Method ".

Mozc settings

Start the Mozc setting and set the punctuation mark to ",." And the space to half-width from "General".

Set full-width and half-width from "Input Assistance". In the character group, set the character string before conversion of alphabets, numbers, "() {} []", and "# \ $ & 2 @ $ ^ _ |` \ "to half-width characters.

Summary

In addition to this, if the memory is insufficient, expand the swap area.

Please let us know if you have any recommended settings or environments.

Recommended Posts

Initial settings from Kubuntu installation
[Linux] [Initial Settings] System Settings
[Linux] [Initial Settings] Getting Started
Anaconda 4.4.0 Initial Settings for Windows
[Linux] [Initial Settings] Install & Uninstall
Get clipboard from Maya settings
[Linux] [Initial Settings] [Flutter] Summary
Raspbian initial settings (Raspberry Pi 4)
Tomcat installation and autostart settings
[Linux] [Initial Settings] Backup & Recovery
From Elasticsearch installation to data entry
[Linux] [Initial Settings] Table of Contents
OpenMPI installation from download to pass-through
Initial settings for Mac (for data analysts)