docker 桌面镜像内安装gui程序启动报错
jupyter notebook出现报错:OSError: [Errno 99] Cannot assign requested address
解决:添加参数,--ip=0.0.0.0 --allow-root
报错:端口占用 8888
解决:lsof -i:8888 kill -9 pid 即可
或者:
输入 jupyter notebook --generate-config
在提示的文件路径找到 generate-config.py文件
在文件中搜索 port ,将默认端口进行更改 比如8889
重启
总结:对jupyter进行配置即可
./code出现报错:5822:0812/071846.227498:FATAL:atom_main_delegate.cc(223)] Running as root without --no-sandbox is not supported. Seehttps://crbug.com/638180.Trace/breakpoint trap (core dumped)
解决:添加参数:--no-sandbox
又出现报错:You are trying to start Visual Studio Code as a super user which isn't recommended. If this was intended, please specify an alternate user data directory using the `--user-data-dir` argument.
解决:/root/zz/VSCode-linux-x64/bin/code . --user-data-dir='.'
即可!
cmake 出现报错:-- The C compiler identification is unknown -- The CXX compiler identificati
解决: 安装gcc, g++, make等编译器
apt install build-essential