[rasp]安裝teamviewer

參考網址:http://yhhuang1966.blogspot.com/2018/01/teamviewer_98.html

問題會出在開機時無法自動啟動teamviewer

https://www.itread01.com/content/1549899921.html
https://www.itread01.com/content/1549454056.html

試著將teamviewer放在rc.local或init.d
都法正常啟動teamviewer

樹梅派RaspberryPi2 安裝 TeamViewer 由外網遠端連線控制

樹莓派開機自動執行程式
How To Autostart Apps In Rasbian LXDE Desktop
 

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart

 

After the last line add a line for each application you wish to autorun. For example if I add lines for LXTerminal and Leafpad my file looks like this :

@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@lxterminal
@leafpad
@xscreensaver -no-splash@

 

@lxterminal -e teamviewer

 

树莓派3-b 自动登录autologin
以root身份自动登录
vim /lib/systemd/system/getty@.service
修改 ExecStart=-/sbin/agetty –noclear %I $TERM为 ExecStart=-/sbin/agetty –noclear -a root %I $TERM
改好了似乎沒用

Raspberry Pi auto login
/usr/bin/raspi-config
if you search for "autologin" you find the commands to change that
and you will see that part of it is changes in
/etc/lightdm/lightdm.conf with the USER NAME
( correct you talk about this problem of yours?? that you are not user "pi" )
that file is to be edit by windows only via putty ssh / login / sudo nano /etc/lightdm/lightdm.conf
改好了似乎沒用,純參考

 

以上方法仍不可行

解除安裝
dpkg -r teamviewer-host
dpkg -P teamviewer-host 連設定檔也移除

安裝
先下載https://www.teamviewer.com/tw/download/linux/
teamviewer-host_14.5.5819_armhf.deb
dpkg -i teamviewer-host_14.5.5819_armhf.deb
會出現相依性錯誤
apt-get install -f  修正錯誤
teamviewer help 查看相關指令
teamviewer info 可以看到ID等相關訊息
teamviewer setup 設定要加入哪個管理帳號
teamviewer passwd ******* 設定密碼

測試結果:
rasp4 需要接螢幕才會執行開機自動登入pi ,teamviewer 的桌面程式才會開啟,遠端才能登入。
rasp3 不需接螢幕就可以連線

rasp4不需外接螢幕也啟動HDMI的設定方法:
/boot/config.txt 把hdmi_force_hotplug=1前的#拿掉

# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1

 

本篇發表於 Linux系統。將永久鏈結加入書籤。