> kubuntu/lubuntu 20 setup
kubuntu/lubuntu 20 setup

lubuntu partition

Size File System Mount Point Flags
500 MiB fat32 /boot/efi boot
30000 MiB ext4 / root
(total-500-20000-memory) ext4 /home (none)
4500 MiB (memory) linuxswap (none) swap

Run aptget_k20.py

Delete the part for Chrome and run again

sudo visudo

Add line at the end
wu ALL=(ALL) NOPASSWD:AL

reboot

Set up Japanese input

Reboot
Right click the ibus icon, Preference -> Input Method -> Add -> Japanese -> Mozc
Delete other method

Download softwares

wget -O - https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh | bash
wget -O - https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh | bash
sudo cp -rf ~/Documents/stardict-longman-2.4.2 /usr/share/goldendict/dict/
sudo cp -rf ~/Documents/stardict-longman-2.4.2 /usr/share/goldendict/dict/
sudo apt install ~/Downloads/VNC-Viewer-6.21.1109-Linux-x64.deb
sudo apt install ~/Downloads/VNC-Viewer-6.21.1109-Linux-x64.deb

Copy thunderbird config files

Skip the file .thunderbird/h0q5a1y3.default-release/ImapMail/gumail.gifu-u.ac.jp/INBOX

zip -r thunderbird.zip .thunderbird/ -x '.thunderbird/h0q5a1y3.default-release/ImapMail/gumail.gifu-u.ac.jp/INBOX'
zip -r thunderbird.zip .thunderbird/ -x '.thunderbird/h0q5a1y3.default-release/ImapMail/gumail.gifu-u.ac.jp/INBOX'

Copy thunderbird.zip to /home/wu/ of the new PC.
At the new PC run the following commands (first remove old thunderbird folder and create a new folder using the zip file)

rm -rf .thunderbird
unzip thunderbird.zip
rm -rf .thunderbird
unzip thunderbird.zip

Network

Wired -> restrict to device
Set LAN port to 192.168.3.2

Setup 10.226.82.12
DNS server: 133.66.1.13
Address: 10.226.82.12
Submask: 255.255.255.0
Gateway: 10.226.82.1

Delete useless folders

gedit .config/user-dirs.dirs
gedit .config/user-dirs.dirs
XDG_DESKTOP_DIR="$HOME/.config/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_TEMPLATES_DIR="$HOME/"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_MUSIC_DIR="$HOME/"
XDG_PICTURES_DIR="$HOME/"
XDG_VIDEOS_DIR="$HOME/" 
XDG_DESKTOP_DIR="$HOME/.config/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_TEMPLATES_DIR="$HOME/"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_MUSIC_DIR="$HOME/"
XDG_PICTURES_DIR="$HOME/"
XDG_VIDEOS_DIR="$HOME/" 

Detele Desktop, Templates, Public, Music, Pictures, Videos, Reboot

KDE wallet

Choose first option, and leave password blank

Panel on second monitor

Add panel -> Default panel -> drag to the second monitor
Open something and right click on the bar -> More actions -> configure task manager -> behavior -> Show only tasks From current screen

Disable screen lock (search "lock")

Do not store history

Setting -> Workspace -> Workspace Behavior -> Activities -> Privacy

start menu right click -> config application launcher -> uncheck "expand search to ..."
remove 'history', 'computer'


Thunar cannot connect to ftp

sudo apt-get install gvfs-fuse gvfs-backends
sudo apt-get install gvfs-fuse gvfs-backends

Install gdal (Can be added to aptget_k20.py)

sudo apt install libgdal-dev  (Not needed)
export CPLUS_INCLUDE_PATH=/usr/include/gdal  (Not needed)
export C_INCLUDE_PATH=/usr/include/gdal  (Not needed)
sudo apt install gdal-bin python3-gdal
sudo apt install libgdal-dev  (Not needed)
export CPLUS_INCLUDE_PATH=/usr/include/gdal  (Not needed)
export C_INCLUDE_PATH=/usr/include/gdal  (Not needed)
sudo apt install gdal-bin python3-gdal

"dh key too small" error

sudo gedit /etc/ssl/openssl.cnf
Run im-config
Choose Update -> ibus
sudo gedit /etc/ssl/openssl.cnf
Run im-config
Choose Update -> ibus

Add the following line at the beginning

openssl_conf = default_conf

Add the following lines at the end

[default_conf]
ssl_conf = ssl_sect

[ssl_sect]
system_default = system_default_sect

[system_default_sect]
CipherString = DEFAULT:@SECLEVEL=1

Set custom display resolution

cvt 1440 960 60
cvt 1440 960 60

1680x1050 59.95 Hz (CVT 1.76MA) hsync: 65.29 kHz; pclk: 146.25 MHz
Modeline "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync

xrandr --newmode "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync
xrandr --addmode <display_name> 1680x1050_60.00
xrandr --newmode "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync
xrandr --addmode <display_name> 1680x1050_60.00
#Get display_name
xrandr | grep -e " connected [^(]" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/"
#Get display_name
xrandr | grep -e " connected [^(]" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/"

For Note laptop, create a file .setResi.sh, and execute at every boot

#!/bin/sh

#cvt 1440 960 60
xrandr --newmode "1440x960_60.00"  113.75  1440 1528 1672 1904  960 963 973 996 -hsync +vsync
#xrandr | grep -e " connected [^(]" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/"
xrandr --addmode eDP-1 1440x960_60.00
xrandr --output eDP-1 --mode 1440x960_60.00
#!/bin/sh

#cvt 1440 960 60
xrandr --newmode "1440x960_60.00"  113.75  1440 1528 1672 1904  960 963 973 996 -hsync +vsync
#xrandr | grep -e " connected [^(]" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/"
xrandr --addmode eDP-1 1440x960_60.00
xrandr --output eDP-1 --mode 1440x960_60.00

touchpad

sudo apt install xserver-xorg-input-synaptics
sudo apt install xserver-xorg-input-synaptics

Reboot

Touchpad may have some problem everytime waking up from sleep
Make a file named wakeupTouchpad.sh, put it in /lib/systemd/system-sleep, add the following contents:

#!/bin/sh

modprobe -r hid_multitouch i2c_hid_acpi i2c_hid
modprobe i2c_hid_acpi i2c_hid hid_multitouch
#!/bin/sh

modprobe -r hid_multitouch i2c_hid_acpi i2c_hid
modprobe i2c_hid_acpi i2c_hid hid_multitouch

And make it executable sudo chmod a+x wakeupTouchpad.sh

config files

mv /home/wu/tools/backup/config_terminator /home/wu/.config/terminator/config
mv /home/wu/tools/backup/user-places.xbel /home/wu/.local/share/user-places.xbel
mv /home/wu/tools/backup/config_terminator /home/wu/.config/terminator/config
mv /home/wu/tools/backup/user-places.xbel /home/wu/.local/share/user-places.xbel