Mudanças entre as edições de "Instalando/Conectando via VNC no Carro"
(→Via PC) |
(→Via Ipad) |
||
| (6 revisões intermediárias por 2 usuários não estão sendo mostradas) | |||
| Linha 24: | Linha 24: | ||
$ vncserver -kill :1 | $ vncserver -kill :1 | ||
| − | + | Altere o arquivo ~/.vnc/xstartup, conforme as seguintes linhas: | |
| − | + | #!/bin/sh | |
| + | |||
| + | # VNC Server (Virtual-Mode) start-up script compatible with Ubuntu 12.04 | ||
| + | |||
| + | [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources | ||
| + | xsetroot -solid grey | ||
| + | |||
| + | vncconfig -iconic & | ||
| + | |||
| + | if [ -f /usr/bin/gnome-session ]; then | ||
| + | # Some gnome session types won't work with Xvnc, try to pick a sensible | ||
| + | # default. | ||
| + | for SESSION in "ubuntu-2d" "2d-gnome"; do | ||
| + | if [ -f /usr/share/gnome-session/sessions/$SESSION.session ]; then | ||
| + | DESKTOP_SESSION=$SESSION; export DESKTOP_SESSION | ||
| + | GDMSESSION=$SESSION; export GDMSESSION | ||
| + | STARTUP="/usr/bin/gnome-session --session=$SESSION"; export STARTUP | ||
| + | fi | ||
| + | done | ||
| + | fi | ||
| + | |||
| + | if [ -x /etc/X11/Xsession ]; then /etc/X11/Xsession | ||
| + | elif [ -x /etc/X11/xdm/Xsession ]; then /etc/X11/xdm/Xsession | ||
| + | elif [ -x /etc/X11/xinit/Xsession ]; then /etc/X11/xinit/Xsession | ||
| + | elif [ -x /etc/gdm/Xsession ]; then /etc/gdm/Xsession gnome-session | ||
| + | elif [ -x /etc/kde/kdm/Xsession ]; then /etc/kde/kdm/Xsession | ||
| + | elif [ -x /usr/dt/bin/Xsession ]; then | ||
| + | XSTATION=1 DTXSERVERLOCATION=local /usr/dt/bin/Xsession | ||
| + | elif [ -x /usr/dt/bin/dtsession ]; then /usr/dt/bin/dtsession | ||
| + | else | ||
| + | if which twm > /dev/null 2>&1; then | ||
| + | xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & | ||
| + | twm | ||
| + | else | ||
| + | xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" | ||
| + | fi | ||
| + | fi | ||
| + | |||
| + | vncserver -kill $DISPLAY | ||
Rode o seguinte comando para iniciar o vncserver | Rode o seguinte comando para iniciar o vncserver | ||
| Linha 65: | Linha 103: | ||
* [[https://itunes.apple.com/us/app/remotepc-remote-desktop/id405038711?mt=8 Remote PC Desktop]] | * [[https://itunes.apple.com/us/app/remotepc-remote-desktop/id405038711?mt=8 Remote PC Desktop]] | ||
* [[https://itunes.apple.com/app/mocha-vnc-lite/id284984448?mt=8 Mocha VNC Lite]] | * [[https://itunes.apple.com/app/mocha-vnc-lite/id284984448?mt=8 Mocha VNC Lite]] | ||
| + | * [[https://itunes.apple.com/br/app/pocketcloud-remote-desktop/id398798399?mt=8 PocketCloud Remote Desktop - RDP / VNC]] | ||
<b>Eu recomendo instalar o VNC Client.</b> | <b>Eu recomendo instalar o VNC Client.</b> | ||
| Linha 77: | Linha 116: | ||
==Via PC== | ==Via PC== | ||
| − | + | Instale o VNC Viewer. | |
No Fedora digite: | No Fedora digite: | ||
| Linha 89: | Linha 128: | ||
No fedora: | No fedora: | ||
$ vncviewer | $ vncviewer | ||
| + | |||
| + | No ubuntu: | ||
| + | $ xtightvncviewer | ||
Digite o ip seguido de :1, assim: | Digite o ip seguido de :1, assim: | ||
192.168.0.201:1 | 192.168.0.201:1 | ||
| + | |||
| + | Conecte | ||
Edição atual tal como às 22h00min de 10 de abril de 2013
Este é um tutorial para instalar o VNC nas blades do carro. Também mostra como acessar via Ipad e PC.
Instalando o VNC
Aqui são mostrados os passos para instalar o VNC para [Ubuntu] e [Fedora]
No Ubuntu
Instale o vnc server:
$ aptitude -y install vnc4server
Digite o seguinte comando com o usuário que você quer o acesso do vnc:
$ vncpasswd
Este comando é para configurar uma senha de acesso. Aparecerá algo assim:
Password: Verify:
Depois de definir a senha digite:
$ vncserver :1
Mate o processo para poder configurar a sessão:
$ vncserver -kill :1
Altere o arquivo ~/.vnc/xstartup, conforme as seguintes linhas:
#!/bin/sh
# VNC Server (Virtual-Mode) start-up script compatible with Ubuntu 12.04
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
if [ -f /usr/bin/gnome-session ]; then
# Some gnome session types won't work with Xvnc, try to pick a sensible
# default.
for SESSION in "ubuntu-2d" "2d-gnome"; do
if [ -f /usr/share/gnome-session/sessions/$SESSION.session ]; then
DESKTOP_SESSION=$SESSION; export DESKTOP_SESSION
GDMSESSION=$SESSION; export GDMSESSION
STARTUP="/usr/bin/gnome-session --session=$SESSION"; export STARTUP
fi
done
fi
if [ -x /etc/X11/Xsession ]; then /etc/X11/Xsession
elif [ -x /etc/X11/xdm/Xsession ]; then /etc/X11/xdm/Xsession
elif [ -x /etc/X11/xinit/Xsession ]; then /etc/X11/xinit/Xsession
elif [ -x /etc/gdm/Xsession ]; then /etc/gdm/Xsession gnome-session
elif [ -x /etc/kde/kdm/Xsession ]; then /etc/kde/kdm/Xsession
elif [ -x /usr/dt/bin/Xsession ]; then
XSTATION=1 DTXSERVERLOCATION=local /usr/dt/bin/Xsession
elif [ -x /usr/dt/bin/dtsession ]; then /usr/dt/bin/dtsession
else
if which twm > /dev/null 2>&1; then
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm
else
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop"
fi
fi
vncserver -kill $DISPLAY
Rode o seguinte comando para iniciar o vncserver
$ vncserver :1 -geometry 1024x768 -depth 24
No Fedora
Instale o Tiger VNC:
# yum -y install tigervnc-server
Digite os comandos abaixo como usuário normal (carxx):
$ vncpasswd
Este comando é para configurar uma senha de acesso. Aparecerá algo assim:
Password: Verify:
Depois de definir a senha digite:
$ vncserver :1
Mate o processo para poder configurar a sessão:
$ vncserver -kill :1
Adicione no final do arquivo ~/.vnc/xstartup, as seguintes linhas:
# twm & # add at the last line: make it comment exec gnome-session & # use Ghome
Rode o seguinte comando para iniciar o vncserver
$ vncserver :1 -geometry 1024x768 -depth 24
Acessando a máquina
Via Ipad
Para acessar o VNC via Ipad faça o seguinte:
Instale via AppStore alguns dos seguintes aplicativos:
Eu recomendo instalar o VNC Client.
Depois de instalado condigure para acesar:
IP: 192.168.0.201 Senha: Padrão do LCAD Porta: 5901
E conecte.
Via PC
Instale o VNC Viewer.
No Fedora digite:
# yum install tigervnc
No Ubuntu digite:
# apt-get install xtightvncviewer
Para acessar use:
No fedora:
$ vncviewer
No ubuntu:
$ xtightvncviewer
Digite o ip seguido de :1, assim:
192.168.0.201:1
Conecte