It is convenient to have one Linux environment that can be broken, so prepare it. Xfce4 is adopted because it is relatively light in the desktop environment of Ubuntu.
We aim to be able to develop Java + Spring web applications on Ubuntu.
https://www.virtualbox.org/wiki/Downloads
https://www.ubuntulinux.jp/download
Change HDD to 10GB-> 32GB
Major items | Medium item | Sub-item |
---|---|---|
General | Altitude | Clipboard sharing: bidirectional |
General | Altitude | Drag and drop: bidirectional |
system | Motherboard | Main memory: 8192MB |
system | Motherboard | Boot order: Remove floppy |
system | Motherboard | Chipset: ICH9 |
system | processor | Number of processors: 2 |
system | Acceleration | Paravirtualized interface: KVM |
display | screen | Video memory: 256MB |
display | screen | Number of displays: 1 |
display | screen | Acceleration: Enable |
display | screen | Acceleration: Enable |
storage | controller:IDE | * Only at initial startup: Ubuntu iso image that has been downloaded |
Shared folder | Select a folder for sharing | Check the mount |
After starting the VM, follow the on-screen instructions to install. Select Japanese in the first language selection. -> Reboot
Complete update support and Guest Addition installation.
#Install Synaptic Package Manager
$ sudo apt install synaptic
#Kill the conky process
$ killall conky
#In the search window`xfce4`And install the following
・ Xfce4
・ Xfce4-goodies
-> Reboot
On the login screen, select the xfce4 session from the * mark and log in.
See IBus-Mozc: http://www.fuukemn.biz/page74-ubuntu-xfce.html
$ LANG=C xdg-user-dirs-gtk-update
Java / SDKMAN Official: https://sdkman.io/install Official: https://sdkman.io/jdks
#Installing SDKMAN
$ curl -s "https://get.sdkman.io" | bash
$ source "$HOME/.sdkman/bin/sdkman-init.sh"
#Java installation
$ sdk list java
$ sdk install java
* Maven and Grade are OK with this
$ sdk install maven
$ sdk install gradle
VSCode Official: https://code.visualstudio.com/docs/setup/linux
$ curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
$ sudo install -o root -g root -m 644 packages.microsoft.gpg /usr/share/keyrings/
$ sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
$ sudo apt-get install apt-transport-https
$ sudo apt-get update
$ sudo apt-get install code
Git / Github
#Installation
$ sudo apt install git
#Initial setting
$ git config --global user.name "ottoman"
$ git config --global user.email "[email protected]"
#ssh key generation&Register on Github
$ cd ~/.ssh(If not, make)
$ ssh-keygen -t rsa
->Public key(id_rsa.pub)Register the contents on Github
#commit editor to vim
$ git config --global core.editor vim
Official: Download and unzip from https://spring.io/tools * This time sts-4.6.1.RELEASE
#Create a directory for STS under opt
$ sudo mkdir /opt/sts
#Placement
$ cp -r sts-4.6.1.RELEASE /opt/sts/
sts.sh
#!/bin/bash
JDK_VERSION=11.0.7.hs-adpt
STS_VERSION=4.6.1
export JAVA_HOME=/home/swat/.sdkman/candidates/java/$JDK_VERSION
export PATH=$PATH:$JAVA_HOME/bin
cd /opt/sts/sts-$STS_VERSION.RELEASE/
./SpringToolSuite4
Set to call the previous shell
Official: Download the Linux version from https://mergedoc.osdn.jp/
#Sts the contents of features and plugins in the unzipped-4.6.1.Copy to RELEASE features and plugins
$ sudo cp -r ./features/jp.sourceforge.mergedoc.pleiades/ /opt/sts/sts-4.6.1.RELEASE/features/
$ sudo cp -r ./plugins/jp.sourceforge.mergedoc.pleiades/ /opt/sts/sts-4.6.1.RELEASE/plugins/
#Add the following to the ini file(sts-4.6.1.RELEASE/SpringToolSuite4.ini)
-Xverify:none
-javaagent:plugins/jp.sourceforge.mergedoc.pleiades/pleiades.jar
If you start it with this, it will be in Japanese
sudo snap install postman
Official: https://github.com/nvm-sh/nvm#install--update-script
#NVM installation
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
# .Check bashrc
$ cat .bashrc | grep -A3 'export NVM_DIR'
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# .Reflect bashrc
$ source ~/.bashrc
#Check the version of nvm
$ nvm --version
0.35.3
# Node.js installation
$ nvm ls-remote
$ nvm install v12.16.3
I might put something like this
--DB client
Recommended Posts