A new version (/tmp/file1bBLK4) of configuration file /etc/ssh/sshd_config is available, but the version installed currently has been locally modified.
1. install the package maintainer's version 5. show a 3-way difference between available versions 2. keep the local version currently installed 6. do a 3-way merge between available versions 3. show the differences between the versions 7. start a new shell to examine the situation 4. show a side-by-side difference between the versions What do you want to do about modified configuration file sshd_config? 1
因为选了Pytorch镜像,Python工具组系统已经自带了,不需要安装。
安装要用的到的工具包
1 2 3 4 5 6 7 8
# 工具包 sudo apt-get install -y \ apt-utils \ curl wget unzip zip \ cmake make automake \ openssh-server \ net-tools \ vim git gcc g++
root@autodl-container-e39d46b8d3-01da7b14:~# apt-get install -y libgl1-mesa-dev libglew-dev libboost-dev libboost-thread-dev libboost-filesystem-dev libpython2.7-dev libglu1-mesa-dev freeglut3-dev Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:
The following packages have unmet dependencies: freeglut3-dev : Depends: libxext-dev but it is not going to be installed Depends: libxt-dev but it is not going to be installed libgl1-mesa-dev : Depends: mesa-common-dev (= 20.0.8-0ubuntu1~18.04.1) but it is not going to be installed Depends: libx11-dev but it is not going to be installed Depends: libx11-xcb-dev but it is not going to be installed Depends: libxdamage-dev but it is not going to be installed Depends: libxext-dev but it is not going to be installed Depends: libxfixes-dev but it is not going to be installed Depends: libxxf86vm-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages.
/root/autodl-tmp/libtorch/include/c10/util/C++17.h:27:2: error: #error You need C++14 to compile PyTorch 27 | #error You need C++14 to compile PyTorch | ^~~~~
#Check C++11 or C++0x support #include(CheckCXXCompilerFlag) #CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11) #CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X) #if(COMPILER_SUPPORTS_CXX11) # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") add_definitions(-DCOMPILEDWITHC11) # message(STATUS "Using flag -std=c++11.") #elseif(COMPILER_SUPPORTS_CXX0X) # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") # add_definitions(-DCOMPILEDWITHC0X) # message(STATUS "Using flag -std=c++0x.") #else() # message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.") #endif()
/root/autodl-tmp/GCNv2_SLAM/src/GCNextractor.cc: In constructor ‘ORB_SLAM2::GCNextractor::GCNextractor(int, float, int, int, int)’: /root/autodl-tmp/GCNv2_SLAM/src/GCNextractor.cc:218:37: error: no match for ‘operator=’ (operand types are ‘std::shared_ptr<torch::jit::Module>’ and ‘torch::jit::Module’) module = torch::jit::load(net_fn); ^ In file included from /usr/include/c++/7/memory:81:0, from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:4, from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:3, from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/script.h:3, from /root/autodl-tmp/GCNv2_SLAM/include/GCNextractor.h:24, from /root/autodl-tmp/GCNv2_SLAM/src/GCNextractor.cc:63:
You will require a password to access your desktops.
Password: Warning: password truncated to the length of 8. Verify: Would you like to enter a view-only password (y/n)? n xauth: file /root/.Xauthority does not exist
Desktop 'TurboVNC: autodl-container-e39d46b8d3-01da7b14:1 (root)' started on display autodl-container-e39d46b8d3-01da7b14:1
Creating default startup script /root/.vnc/xstartup.turbovnc Starting applications specified in /root/.vnc/xstartup.turbovnc Log file is /root/.vnc/autodl-container-e39d46b8d3-01da7b14:1.log
cd Pangolin-0.6/examples/HelloPangolin mkdir build && cd build cmake .. make
编译完成之后需要先执行export DISPLAY=:1启用GUI再启动需要GUI的程序
1 2
export DISPLAY=:1 ./HelloPangolin
如果没有export直接启动,还是会报错
1 2 3 4
root@autodl-container-e39d46b8d3-01da7b14:~/autodl-tmp/Pangolin-0.6/examples/HelloPangolin/build# ./HelloPangolin terminate called after throwing an instance of 'std::runtime_error' what(): Pangolin X11: Failed to open X display Aborted (core dumped)
root@autodl-container-e39d46b8d3-01da7b14:~/autodl-tmp/GCNv2_SLAM/datasets/TUM# pip2 install numpy DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. Looking in indexes: http://mirrors.aliyun.com/pypi/simple Collecting numpy Downloading http://mirrors.aliyun.com/pypi/packages/3a/5f/47e578b3ae79e2624e205445ab77a1848acdaa2929a00eeef6b16eaaeb20/numpy-1.16.6-cp27-cp27mu-manylinux1_x86_64.whl (17.0 MB) |████████████████████████████████| 17.0 MB 21.1 MB/s Installing collected packages: numpy Successfully installed numpy-1.16.6
ORB-SLAM2 Copyright (C) 2014-2016 Raul Mur-Artal, University of Zaragoza. This program comes with ABSOLUTELY NO WARRANTY; This is free software, and you are welcome to redistribute it under certain conditions. See LICENSE.txt.
Input sensor was set to: RGB-D
Loading ORB Vocabulary. This could take a while... Vocabulary loaded!
ORB Extractor Parameters: - Number of Features: 1000 - Scale Levels: 8 - Scale Factor: 1.2 - Initial Fast Threshold: 20 - Minimum Fast Threshold: 7
Depth Threshold (Close/Far Points): 5.97684
------- Start processing sequence ... Images in the sequence: 573
Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.New map created with 251 points Finished! -------
median tracking time: 0.0187857 mean tracking time: 0.0193772
Saving camera trajectory to CameraTrajectory.txt ...
trajectory saved!
Saving keyframe trajectory to KeyFrameTrajectory.txt ...