jupyter-notebook

开机启动时显示:jupyter notebook服务启动失败,没找到原因,只能开机后让它自动执行命令来开启

启动命令

1
/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
1
2
3
4
#!/bin/bash
#command content
/home/jetson/.local/bin/jupyter notebook /home/jetson/jupyter_notebook_config.py –allow-root
exit 0
  • 设置自启动
    a12w33
    1681e1a1726c37d2
  • 要设置自动登录
    54acb9ca0ea7d203

配置远程桌面

参考这个

https://www.cnblogs.com/cloudrivers/p/12110117.html
56c7e289b31c13ff

1
2
3
sudo apt install vino
sudo vi /usr/share/glib-2.0/schemas/org.gnome.Vino.gschema.xml

1
2
3
4
5
6
7
8
9
<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>

256ad5ef81aa3fa4

1
2
3
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
/usr/lib/vino/vino-server # 好像会报错,不过没关系
sudo apt-get install dconf-editor

b22089a855cff18d

1
2
3
dconf-editor
/usr/lib/vino/vino-server --display=:0
sudo apt-get install xrdp vnc4server xbase-clients

04a7264295ba17b0

进入windows远程桌面会闪退

到这一步,进入的远程桌面是和显示器的桌面环境一样的,但比较卡,还有问题
所以选择安装xfce

参考这个
https://blog.csdn.net/weixin_44967177/article/details/107869100

2.1不用做,2.2 2.3做过了

1
2
3
4
5
6
7
8
9
10
11
12
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

1
2
sudo update-alternatives --config x-terminal-emulator
选择xterm 对应的编号