[raspbmc] use without display?

Hi all,

I want to use my RasPi without a connected Display (far away from the TV), but I can't find a way to control the XBMC server. For example, to add a folder to the sources and some other things.

Is there any possibility to control the unit without a display? It's not necessary to have a graphical interface.

Thanks and regards,

Schultze

--


							A. Einstein
Reply to
Michael Schütz
Loading thread data ...

You should set up avahi and a vnc server. After that you can connect remotely from another machine and see the virtual desktop. Maybe you don?t need avahi, I don?t know if your home machines are windows, osx or linux. But either you use a monitor or you connect via vnc. A third solution would be using ssh, but I don?t know if your xbmc can be used that way.

B. Alabay

--
http://www.thetrial.de/ 
???????????????
Reply to
Ba?ar Alabay

formatting link

Reply to
A. Dumas

There's a whole bunch of ways to control Raspbmc remotely.

As other people have mentioned, ssh. And Google on "ssh without password" to find how to set up authentication keys if you're going to use it often.

Files are best handled via a Samba server, so that you can move files around with your remote machine's usual file-manager. (XBMC has a Samba client, but Raspbmc adds a Samba server too.) Enable it (via the XBMC desktop on your TV, for the moment) as follows:

programs > raspbmc-settings > system-config > [scroll down] samba-server > select >ok

You then have to Google how to use a Samba server from whatever remote OS you're using. You would mount a "CIFS" share on remote Linux, for example.

Also you can remote-control XBMC itself with the "xbmc-send" program. I can't remember if it's installed by default, or if you have to install the "xbmc-eventclients-xbmc-send" package manually. If so, via ssh:

sudo apt-get update sudo apt-get install xbmc-eventclients-xbmc-send

Then you can control XBMC via ssh. The list of commands is at:

formatting link

E.g., play a video via ssh with: xbmc-send --action="PlayMedia(/home/pi/vid/vid.mp4)"

Enable remote-control (but I'm not sure if this is necessary) like this: system > services > remote-control > allow other systems to control XBMC

Then if you're using Linux on your remote machine, install the package "xbmc-eventclients-xbmc-send" there (it's in Ubuntu's repository, for example) and you can then control XBMC with remote (not ssh) scripts, e.g.:

xbmc-send --host=192.168.0.2 --action="PlayMedia(/home/pi/vid/vid.mp4)"

("host" being whatever your PI's IP address is, of course).

Finally, if you're feeling adventurous, Google for "xbmc json-rpc api" and learn all about that.

Reply to
Dave Farrance

Ba?ar Alabay schrieb:

All my machines run under Linux (also Android and Sailfish). Whitch

Ah, thank you. I can see the RasPi desktop.

Don't know. I will test usage with vnc.

Thanks,

Schultze

--

unbeabsichtigter Nebeneffekt sein. 
							Linus Torvald
Reply to
Michael Schütz

Doesn't that tend to screw up access permissions?

Assuming that you have SSH configured to link the two hosts, another way that works rather well is to use gftp but select the SSH2 file transfer protocol. This causes it to connect to the remote sshd server and to operate as a nice, graphical sftp client.

--
martin@   | Martin Gregorie 
gregorie. | Essex, UK 
org       |
Reply to
Martin Gregorie

If it's the "uid:gid" issue that you're thinking about; if you've defaulted to 1000:1000 for your own user account on the remote machine, then the "pi" owned files will appear to have your own username, which works OK for file transfer. So on the remote machine:

sudo mkdir -p /mnt/pi sudo mount -t cifs //pi1/pi /mnt/pi \

-o username=pi,password=raspberry,uid=1000,gid=1000

(pi1 being the pi's hostname assigned to an ip address in /etc/hosts)

If your user account has a different uid:gid (as mine does), it does mean that you need to "sudo" to move files onto the pi. I use the KDE Root Actions Servicemenu to allow me to do it from the filemanager:

formatting link

Reply to
Dave Farrance

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.