Ubuntu study notes, ubuntu
Myself and Its Configuration
8 GB memory, 16 gb ssd. GB ordinary hard drive.
Machine configuration goals:
As a java php development environment and server environment.
Partition Scheme:
| 16 GB hard drive |
|
|
| / |
13G |
|
| /Boot |
0.5 GB |
|
| /Swap |
2G |
|
| 500G hard drive |
|
|
| /Tmp |
10 |
Temporary Files |
| /Home |
200 |
Personal document |
| /Var |
80 |
Email, Server |
| /Usr |
80 |
Software Installed with apt-get |
| /Usr/local |
30 |
Non-apt-get Software |
| /Opt |
20 |
Software manually installed |
Software Installation Process
- Input Method: the built-in input method is very difficult to use, so I downloaded the sogou input method. Download it from the official website.
- Install vim
- Wps installation. Some fonts were missing during wps installation, so I searched the internet for installing the. deb package.
- Use the built-in email tool of ubuntu to configure the mailbox system. Because it is a personal computer, pop or imap is used to send and receive emails. Because of the company's confidentiality requirements, the sending port is 465.
- Import the company certificate file. First, pour out the certificate from the company's computer and place it on the baidu network disk. download it from here and import it to the google browser. In this way, the company's network can be used.
- Set the company's vpn. In this way, you can access the company's network from home.
- Install jre. I installed the default version, that is, openjre.
- Install jdk. I installed the default version, that is, openjdk.
========================================================== ============Related Knowledge: ubuntu directory and mount point
| Directory |
Content |
Partition interval size |
|
| / |
Root directory |
8 GB |
The larger the value, the better. If you do not separate the partitions, all of them will be placed under this partition by default. |
| /Boot |
Contains the kernel of the operating system and the files used during system startup. Stores the files used by the bootstraploader, such as lilo. The core images are often stored here, rather than in the root directory. Even if a problem occurs with the primary root partition, the computer can still start |
200 m |
|
| /Swap |
Swap partition is also a file system. It serves as the virtual memory of Linux. |
2G |
|
| /Tmp |
Information and data generated by the Directory storage program during running |
|
|
| /Home |
Is the location of the user's home directory. is the location of the user's folder |
|
|
| /Usr |
/Usr is a very important directory. Usually this file system is large because all programs are installed here. In this directory, you can find additional tools that are not suitable for storing in the/bin or/etc directory. For example, games, printing tools, etc. The/usr directory contains many subdirectories: the/usr/bin directory is used to store programs;/usr/share is used to store shared data, such as music files or icons; The/usr/lib directory is used to store some library files that cannot be run directly, but are necessary for many programs to run.
/All files in usr are generally from the linux distribution (distribution ); Your package manager will automatically help you manage the/usr directory. |
|
|
| /Usr/local |
Is the place where the software is stored in Linux. This mainly stores software that is manually installed, that is, software that is not installed through the "new" or apt-get. |
|
|
| /Opt |
Here we mainly store some optional programs. Programs that can be directly deleted If you want to try the latest firefox test version? Install it in the/opt directory. In this way, when you try to delete firefox, you can directly delete it without affecting any other settings of the system. Install the program in the/opt directory. All its data and library files are stored in the same directory. |
|
|
| /Var |
/Var contains the data to be changed during normal operation of the system. The directory size of the data is usually changed or expanded. Some Contents in the original/var directory are in/usr, but to keep the/usr directory relatively stable, put those directories that need to be changed frequently in/var. |
|
|
| /Root |
Superuser directory |
|
|
| /Etc |
Mainly stores system configuration files. |
|
|
| /Dev |
Device-Related Files |
|
|
| Partition type |
Introduction |
Remarks |
| /Boot |
Start Partition |
Generally, 100 M-200 M is set. The boot directory contains the kernel of the operating system and the files to be used during system startup. |
| / |
Root Partition |
All directories with no mount point specified will be placed under this mount point. |
| /Home |
User directory |
Generally, each user is about mb. for special purposes, for example, the file can be enlarged with G. The partition size depends on the number of users. For computers used by multiple users, it is recommended that/home be independent, and normal user permissions can be well controlled, such as disk quota restrictions for users or user groups, and user access permissions. |
| /Tmp |
Temporary Files |
Generally, 1-5 GB is set to facilitate the loading of ISO image files. It is also necessary to independently Mount multiple user systems or network servers. The temporary file directory is also one of the most frequently encountered directories. |
| /Usr |
File System |
Generally, it takes 3-15 GB. Most software programs installed by users are here. It is like the Windows directory and the Program Files directory. In many Linux systems,/usr/local is also used as a mount point. |
| /Var |
Variable data directory |
Contains the data to be changed during system operation. The directory size of the data usually changes frequently, and the system log records are also under/var/log. Generally, a multi-user system or network server needs to create this partition, which is very helpful for System Log maintenance. Generally, the disk size is 2 to 3 GB. You can also divide the remaining space of the hard disk into var values. |
| /Srv |
System Service Catalog |
It is used to store the directory of files required for service Startup, which is not often changed. |
| /Opt |
Additional Application |
Stores optional installation files. Individuals generally include software materials downloaded by themselves, such as Office and QQ. |
| /Swap |
Swap Partition |
Generally 2 times the memory, up to 2 GB |
| |
|
The following are common partition mount points: |
| /Bin |
Binary executable directory |
Stores binary executable programs, which can be called directly through the command line without entering the folder where the program is located. |
| /Sbin |
System Administrator command storage directory |
Store Standard System Administrator files |
| /Dev |
Store Device Files |
Driver files |
| ... |
|
Don't introduce... |
Jdk
In short, JDK is an SDK for developers. It provides a Java development environment and a runtime environment. The SDK is a Software Development Kit. It generally refers to a Software Development Kit, which can include function libraries and compiled programs.JDK is the Java Development Kit.
Jre
JRE is the Java Runtime Enviroment, which refers to the Java Runtime Environment and is intended for Java program users rather than developers.