ubuntu init - Forest0923/memo GitHub Wiki
- Ubuntu 18.04 LTS (minimal install)
- Ubuntu 20.04 LTS (minimal install)
wget https://github.com/Forest0923/memo/blob/master/scripts/settings_ubuntu_18_20.sh
chmod 755 settings_ubuntu_18_20.sh
sudo ./settings_ubuntu_18_20.sh
- At first, upgrade apt with following commands.
sudo apt update
sudo apt upgrade
- English name is easier to operate on the command line than Japanese name.
env LANGUAGE=C LC_MESSAGES=C xdg-user-dirs-gtk-update
- Select
Update names
.
gsettings set org.gnome.desktop.session idle-delay 3600
- Yamagata university:
sudo sed -i.bak -e 's%http://jp.archive.ubuntu.com/ubuntu/%http://ftp.yz.yamagata-u.ac.jp/pub/linux/ubuntu/archives/%g' /etc/apt/sources.list
sudo sed -i 's/#DefaultTimeoutStopSec=90s/#DefaultTimeoutStopSec=90s\nDefaultTimeoutStopSec=10s/' /etc/systemd/system.conf
Reference:
- Add the following command as a startup application.
- Selectable [monitor name] and [resolution] can be shown by
xrandr
.
xrandr --output [monitor name] --mode [resolution]
- GUI: run
gnome-session-properties
- CUI: run the following command at
~/.config/autostart
cat <<EOF > xrandr.desktop
[Desktop Entry]
Type=Application
Exec=xrandr --output Virtual1 --mode 1440x900
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=monitor_resolution
Comment=Change builtin monitor resolution
EOF
sudo sed -i 's/# set bell-style none/set bell-style none/' /etc/inputrc
- Register favorite apps:
gsettings set org.gnome.shell favorite-apps "['firefox.desktop', 'org.gnome.Terminal.desktop', 'org.gnome.Nautilus.desktop']"
- Change icon size:
gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 36