0
0

Ubuntu コマンドインストール

Last updated at Posted at 2021-06-30

必要に応じて

# キーバインドを変更するなら(一部のPCで効かない)
# DELL Vostro 3020 Small Desktopで有効だが再起動で忘れる
$ setxkbmap -option ctrl:swapcaps
# キーバインド戻す
$ setxkbmap -option

# キーバインドを変更するなら(一部のPCで効かない)
# DELL Vostro 3020 Small Desktopで有効
$ sudo vi /etc/default/keyboard
XKBOPTIONS="ctrl:swapcaps"
$ sudo systemctl restart console-setup
# Ubuntu再起動

# ユーザーを追加してsudo可能に設定するなら
$ sudo adduser masumi
$ sudo gpasswd -a masumi sudo

# 現在のネットワーク設定を表示するのにifconfigを使うなら
$ sudo apt -y install net-tools

# Ethernetリンク速度を表示するなら
$ sudo apt -y install ethtool

# 動作クロックを表示するなら
$ sudo apt -y install cpufrequtils

git global設定

$ cd
$ git config --global credential.helper store
$ git config --global user.email "taro@nihon.co.jp" # メルアドを設定
$ git config --global user.name "Taro Nihon" # 氏名を設定

時刻が9時間ずれるので対応

BIOSの時刻を日本時間に合わせる
WindowsはBIOS日本時間を使う
UbuntuはBIOS時間をローカル時間として解釈するように設定する

$ sudo hwclock -D --systohc --localtime

link
https://dlrecord.hatenablog.com/entry/2020/06/13/112553

WindowsからUbuntuにリモートデスクトップ

https://orenda.co.jp/blog/rdp-ubuntu%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%9F%E9%96%8B%E7%99%BA%E7%92%B0%E5%A2%83%E6%A7%8B%E7%AF%89/
https://ao-tela.com/vnc-vino/
https://www.peconet.org/server/ubuntu20/xrdp.html

不要なカーネルを削除する

$ dpkg --get-selections | grep linux-
$ sudo apt-get autoremove --purge linux-image-3.13.0-{65,71}

メモ

bash for文
https://www.koikikukan.com/archives/2014/03/03-015555.php
keyswap
https://linuxfan.info/capslock-ctrl
apt apt-get 違い
https://qiita.com/quzq/items/8e47414bf95d1fcfa24a

0
0
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
0
0