ubuntu20.04+GAMIT10.71 installation

Lomefeit finishing ( qq8212714 ) , thanks to Yin Yebiao (update: 2020-09-18 )

NOTE: First install VM 15.5.6 Pro on the computer (omitted).

Suggestion: The allocated hard disk is not less than 25G .

1. Install ubuntu20.04 (It is recommended to download the 20.04 desktop version directly from the official website )

2. Install VM tools ( VM15 Pro is usually integrated , there will be relevant prompts when installing ubuntu20.04 )

3. Get root

The following command input is recommended to use the right-click to open the terminal Open Terminal. Pay attention to the spaces when entering manually. It is recommended to directly copy and paste the following commands.

(1) Log in to the system as an ordinary user and create a password for the root user

Enter the command in the terminal:

sudo passwd root

Then enter the password you want to set, and this completes the steps to set the root user password

su root

Run under root

(2) modify the file /usr/share/lightdm/lightdm.conf.d/ 50-ubuntu.conf file,

gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

Modify as follows:

[Seat:*]

user-session=ubuntu

greeter-show-manual-login=true

all-guest=false

(3) Notes

sudo gedit /etc/pam.d/gdm-autologin
comment out the auth required pam_succeed_if.so user != root quiet_success line (about the third line)

sudo gedit /etc/pam.d/gdm-password
comment out the auth required pam_succeed_if.so user != root quiet_success line (around the third line)

(4) Modify the /root/.profile file

gedit /root/.profile

Modify the line mesg n 2> /dev/null || true at the end of the file to

tty -s && mesg n || true

save document.

(5) Restart the system, enter the root user name and password, and log in to the system.

(Attention click Not listed?)

4. Install the leading software

Download and install directly from the current server

(1)csh/tcsh

apt-get install csh tcsh

(2) gfortran

apt-get install gfortran

(3)ncftp

apt-get install ncftp

(4)gmt       

apt-get install gmt

(5)libx11-dev

apt-get install libx11-dev

(6)make

apt-get install make

(7)curl

apt-get install curl

(1)~(7) The installation takes about 10 minutes to 2 hours, or even longer, depending on the network speed and server conditions.

5. Install GAMIT

(1) Copy the installation folder to the opt file

The download date of the source file for this installation is 20200915 , and the date of the internal upgrade file is 20200907

(The default folder name is source)

(2) Install (note that the compressed file in the folder will be decompressed by itself when running the installation command)

./install_software

(3) Configuration file

  1. ^C interrupted during installation

libraries/Makefile.config

Modify the following information (recommended)

================

MAXSIT 80                                                                                  

MAXSAT 40

MAXATM 25

MAXEPC 8640

The save is complete.

  1. Continue to run the installation

./install_software

(4) Modify the .bashrc file

Enter the root folder and run the terminal:

List all files: ls -a

Then edit the .bashrc file: gedit .bashrc

Add at the end of the file: (note that the path must match the actual installation path)

export PATH="$PATH:/opt/source/gamit/bin:/opt/source/com:/opt/source/kf/bin"

export HELP_DIR=/opt/source/help/

It is recommended to restart the ubuntu system after modification.

6. Test

(1) Run the terminal, enter root privileges, enter doy, if a similar interface appears:

(2) Run the terminal, enter root privileges, enter sh_get_rinex, if a similar interface appears:

(3) Run the terminal, enter root privileges, enter sh_gamit -v, if a similar interface appears:

The version after this installation shows 10.72.

If all the above appear, the installation is successful.

Guess you like

Origin blog.csdn.net/lomefeit/article/details/108637740