This setup is for Ubuntu.
You need to use another computer to create the image file. In this example, we assume that you are using Ubuntu.
- Format your USB
- Download ISO image from this website
- Install an application called
Startup Disk Creator
if you do not have it - Launch the application
- Choose the locations of your downloaded ISO file and USB
- Click
Make Startup Disk
- Get in BIOS
- Change SATA to AHCI, secure boot to false, CSM to enabled, the priority of USB in the boot options and the priority of SSD and HDD (To use SSD as system drive, make the SSD's priority higher)
If you use HDD as D drive, you need to mount HDD.
# Check the path to HDD
$ lsblk -f
# Check the current partition for HDD
$ sudo fdisk /dev/sdb (or sda)
>>> command: p
>>> command: n
>>> command: p
>>> command: w
# Format as ext3
$ sudo mkfs -t ext3 <The path to HDD>
$ sudo mkdir /home2
$ sudo mount <The path to HDD> /home2
# Add the following
$ sudo emacs /etc/fstab
# /dev/sdb1 - Extended HDD
/dev/sdb1 /home2 ext3 relatime 0 2
# Confirm the behavior
$ sudo umount /home2
$ sudo mount -a
$ mount
- Choose Japanese to avoid complications in the first place
- Run
./change_language.sh
- Change
Punctuation style
from the window (Mozc Settings
) that opens by clickingTools > Properties
inA
at the top-right corner of Desktop - (Optional) Change keys for
... IME
intoCtrl Space
inKeymap style
inMozc Settings
- Download the setup file
- Run the followings:
$ sudo apt install ~/Downloads/<The setup file name>
- Add the following extensions:
Python
,LaTex Workshop
,C++
- Add the contents in
linter.json
in~/.config/Code/User/settings.json
- Setup the latex environment based on
latex_setup/README.md
- Download the setup file
- Run
./~/Downloads/<The setup file name>
- Run
./initial_anaconda_setup.sh
Note that we can create a new environment as follows:
# Put `-c conda-forge` if python version is too old
$ conda create -n <environment name> python=<version>
- Change the color of ipython
$ ./ipython_color_change.sh
# Change the following
$ emacs ~/.ipython/profile_default/ipython_config.py
<Before>
## Set the color scheme (NoColor, Neutral, Linux, or LightBG).
#c.InteractiveShell.colors = 'Neutral'
<After>
## Set the color scheme (NoColor, Neutral, Linux, or LightBG).
c.InteractiveShell.colors = 'Linux'
- Create a file
~/.github/.gitmessage
- Copy
github_setup/.gitmessage
to~/.github/.gitmessage
- Run
./github_setup/initial_git.sh
To use CUDA driver in your computer, we need to setup NVIDIA driver and CUDA driver. CUDA driver installation often causes serious issues on your machine, so we use Singularity to avoid this issue.
- Check Your GPU Compute Capability and Table: Cuda Toolkit and Corresponding Driver versions
- Go to
Software & Updates
and chooseAdditional Drivers
- Choose
Using NVIDIA driver metapackage from NVIDIA-driver-xxx
and clickApply Changes
, then reboot - Setup the Singularity environment based on the latest version
- Create an image file by
sudo singularity build <file name>.sif <file name>.conf
- Make a shortcut link for the image file
ln -s <The path to sif file> <link name>
- Test by
singularity exec --nv <link name> <command to run a script>