jupyter-notebook
开机启动时显示:jupyter notebook服务启动失败,没找到原因,只能开机后让它自动执行命令来开启
启动命令
/home/jetson/.local/bin/jupyter notebook /home/jetson/jupyter_notebook_config.py –allow-root
jupyter
最好带上命令路径,否则可能提示找不到命令(虽然路径已经在PATH里,但遇到过找不到命令的情况),jupyter_notebook_config.py
是配置文件,内有端口号 ip等信息. 如果不加配置文件,默认只监听localhost,而且局域网无法访问
设置自启动命令
- 在合适位置(/home/jetson)新建文件
new_service.py
#!/bin/bash
#command content
/home/jetson/.local/bin/jupyter notebook /home/jetson/jupyter_notebook_config.py –allow-root
exit 0
- 设置自启动
- 要设置自动登录
配置远程桌面
参考这个
https://www.cnblogs.com/cloudrivers/p/12110117.html
sudo apt install vino
sudo vi /usr/share/glib-2.0/schemas/org.gnome.Vino.gschema.xml
<key name="enabled" type="b">
<summary>Enable remote access to the desktop</summary>
<description>
If true, allows remote access to the desktop via the RFB
protocol. Users on remote machines may then connect to the
desktop using a VNC viewer.
</description>
<default>false</default>
</key>
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
/usr/lib/vino/vino-server # 好像会报错,不过没关系
sudo apt-get install dconf-editor
dconf-editor
/usr/lib/vino/vino-server --display=:0
sudo apt-get install xrdp vnc4server xbase-clients
进入windows远程桌面会闪退
到这一步,进入的远程桌面是和显示器的桌面环境一样的,但比较卡,还有问题
所以选择安装xfce
参考这个
https://blog.csdn.net/weixin_44967177/article/details/107869100
2.1不用做,2.2 2.3做过了
sudo vim/etc/xrdp/startwm.sh
注释最下面的test和exec两行
增加新的一行 gnome-session
sudo apt-get install xfce4
echo xfce4-session >~/.xsession
touch .session
sudo vim/etc/xrdp/startwm.sh
在打开的startwm.sh文件前面加
xfce4-session
sudo service xrdp restart
远程桌面无法打开 终端Terminal
参考这个
https://blog.csdn.net/xiao__wen/article/details/106121671
sudo update-alternatives --config x-terminal-emulator
选择xterm 对应的编号