Build a deep learning model operating environment on the server: ubuntu

1. Purchase a server

I bought Tencent Cloud Lightweight Server, the default system is CentOS 7.6, and I reinstalled it as ubuntu18.

2. Build ubuntu visual interface (not necessary)

Reference link: Build Ubuntu visual interface

  1. I failed when configuring VNC
    insert image description here
    : Solution: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied
    because it is not root login, no permission
    Summary:

    • root login: enter suand enter密码
    • Switch back to normal user:su - 用户名
  2. Later, when using VNC Viewer to connect, it also failed, and the connection timed out:
    insert image description here
    because the server has a firewall, just add the corresponding port manually.
    insert image description here

Because it is the No. 1 desktop, the port number is 5901, of course, you can also enter the command to view: netstat -lp|grep -i vnc
insert image description here
3. After the connection is successful, you encounter a gray screen problem:
Solution: VNC Viewer connection gray screen problem

Killing the port didn't kill it (good guys can make mistakes in every step):
solution: VNC - Can't find file *.pid, kill the Xvnc process manually

Finally :
insert image description here

3. Install the pagoda panel

Reference link: Tencent Cloud Host Ubuntu Server Environment Setup and Pagoda Panel Installation
I started to look at it directly from the fourth step, because you can enter commands in orcaterm. If the
insert image description here
direct access fails, the port number may not be opened, so let go of the port; success!
insert image description here

4. Install Anaconda on the Linux server

Reference link: Tencent Cloud Server Notes – Connecting to the server, installing Anaconda
I read it from Chapter 3, because the pagoda is installed, you can upload files directly:
insert image description here

An error occurred conda: command not found;
solution: [Linux] Conda: command not found after installing Anaconda

5. Windows uploads files to the cloud server

  1. Reference link: Windows system uploads files to Linux cloud server through WinSCP.
    I encountered a Permission denied problem when uploading:
    insert image description here
    I tried to modify the folder permissions and still failed, so I gave up.

  2. Reference link 2: Windows system uploads files to the lightweight application server through FTP.
    I installed FileZilla locally; on the server side, I used the FTP service in the Pagoda panel to directly install the corresponding software:
    insert image description here
    a. Encounter: The server sent back an unroutable address , the problem of using the server address instead:
    Solution: FileZilla - The server sent back a non-routable address, use the server address instead
    but this will report a 500 error, so I changed back to the server and sent back a non-routable address, use the server address Instead, ( note that the address must be written correctly ) try multiple times.

Guess you like

Origin blog.csdn.net/qq_46056318/article/details/129320302