linux(三)——tmux中使用jupyter實現便捷看圖及編輯

1)tmux a -t yourtmuxname 起一個終端複用的session

2)安裝jupyter:pip install jupyter

3)命令行運行jupyter notebook

4)瀏覽器登錄給的地址

 

常用快捷鍵:

tmux ls

tmux a -t XXX

ctrl+b %左右切 “上下切   d退出 x關閉

https://blog.csdn.net/chenqiuge1984/article/details/80132042

報錯處理:

Tmux報錯:can't create socket: Permission denied

1)輸入【strace -e trace=file tmux】

輸出:

access("/bin/bash", X_OK)               = 0

mkdir("/tmp//tmux-1177000684", 0700)    = -1 EACCES (Permission denied)

can't create socket: Permission denied

+++ exited with 1 +++

2)刪除這個/tmp/tmux-1177000684文件,其中“1177000684”是UID信息,可以輸入shell語句“id”進行確認

3)輸入【strace -e trace=file tmux】

若無法解決,提權限【sudo strace -e trace=file tmux】之後使用tmux也要提權限   sudo tmux a –t xxx

 

總結一下:

1.strace -e trace=file tmux #看看是哪個文件夾的鍋

2.有這個文件夾:rm –rf /tmp/tmux-UID號

                 strace -e trace=file tmux

3.沒有這個文件夾: sudo strace -e trace=file tmux

  注:如果連/tmp文件夾也沒有了的話,要 sudo mkdir /tmp

 

 

參考網址:

tmux:

https://blog.csdn.net/chenqiuge1984/article/details/80132042

https://www.cnblogs.com/jianzhe/p/7455087.html

https://blog.csdn.net/gxlzyt123456/article/details/65436467

jupyter:

https://www.cnblogs.com/nxld/p/6566380.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章