Go to advanced search

by tdenson
Sat Aug 08, 2015 6:08 pm
Forum: Beginners
Topic: Restricting access on a network
Replies: 16
Views: 1935

Re: Restricting access on a network

You're contradicting yourself now. You want to give your friend admin access but you don't want to give your friend complete access - that's impossible. No I'm not, I don't think you understood what I said. I said I wanted to give him complete access to the Pi but nowhere else. What I meant by nowh...
by tdenson
Sat Aug 08, 2015 1:20 pm
Forum: Beginners
Topic: Restricting access on a network
Replies: 16
Views: 1935

Re: Restricting access on a network

I want to give someone access to a Pi on my network via ssh. I am happy for them to have admin access to the Pi but nowhere else. What's the simplest way of achieving this (I have complete control of the network in question). As soon as you give admin (by which I assume you mean sudo) access then A...
by tdenson
Sat Aug 08, 2015 12:59 pm
Forum: Beginners
Topic: Restricting access on a network
Replies: 16
Views: 1935

Re: Restricting access on a network

Joe Schmoe wrote:Unplug the Pi from the network.
How does he access the Pi if it's not connected to the network ?

Perhaps I should have been a bit more explicit. The Pi will be accessed from outside the network, via a port forward on port 22 (ssh) to the Pi.
by tdenson
Sat Aug 08, 2015 12:26 pm
Forum: Beginners
Topic: Restricting access on a network
Replies: 16
Views: 1935

Restricting access on a network

I want to give someone access to a Pi on my network via ssh. I am happy for them to have admin access to the Pi but nowhere else. What's the simplest way of achieving this (I have complete control of the network in question).
by tdenson
Mon Jul 06, 2015 7:24 am
Forum: Beginners
Topic: VNC to actual desktop
Replies: 10
Views: 2146

Re: VNC to actual desktop

Well, as others have noted, if you tell raspi-config to boot to a desktop, it should "just work". Either way, it should launch the X desktop automatically on boot. Then you run: x11vnc -display :0 -usepw -forever -q from your ssh session - and Bob's your uncle. Yes, it did "just work" but that comm...
by tdenson
Sun Jul 05, 2015 11:04 pm
Forum: Beginners
Topic: VNC to actual desktop
Replies: 10
Views: 2146

Re: VNC to actual desktop

I'm confused. You want the desktop you see on the screen, but its headless with no screen. Either: 1) Have a screen, run startx locally and use x11vnc OR 2) Don't have a screen, and use tightvncserver which creates its own X instance You can't have both. I can understand why you are confused, I am ...
by tdenson
Sun Jul 05, 2015 11:00 pm
Forum: Beginners
Topic: VNC to actual desktop
Replies: 10
Views: 2146

Re: VNC to actual desktop

Are you running raspbian, and do you have it booting to the gui or to the command line? It needs to boot to the gui. I get the following if I boot it to the desktop (doesn't work if I try connecting to it) - 05/07/2015 22:55:48 rfbListenOnTCP6Port: error in bind IPv6 socket: Address family not supp...
by tdenson
Sun Jul 05, 2015 9:42 pm
Forum: Beginners
Topic: VNC to actual desktop
Replies: 10
Views: 2146

Re: VNC to actual desktop

You need to have the GUI open using startx x11vnc doesn't make its own X instance. I already tried that but when I run startx via ssh I get - X.Org X Server 1.12.4 Release Date: 2012-08-27 X Protocol Version 11, Revision 0 Build Operating System: Linux 3.2.0-2-mx5 armv7l Debian Current Operating Sy...
by tdenson
Sun Jul 05, 2015 2:47 pm
Forum: Beginners
Topic: VNC to actual desktop
Replies: 10
Views: 2146

Re: VNC to actual desktop

x11vnc is the solution. OK, I've installed x11vnc on the target Pi whose desktop I want to display with my VNC client (as it happens from a Mac) and when I run it I get - ========================================================== 05/07/2015 14:13:44 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 1...
by tdenson
Sat Jul 04, 2015 11:04 pm
Forum: Beginners
Topic: VNC to actual desktop
Replies: 10
Views: 2146

VNC to actual desktop

I want to run a VNC session to a Pi but show the actual desktop that is already running on the Pi itself. I have searched here and Google for an answer but the only thing I can find is a couple of years old and involves running X11vnc and looks rather techie. Can anyone point me to a simple solution...
by tdenson
Fri Jun 19, 2015 7:58 pm
Forum: Beginners
Topic: ssh "permission denied" problem
Replies: 11
Views: 16767

Re: ssh "permission denied" problem

I got the following - Jun 18 07:28:18 Pi-NYE1 sshd[7414]: Accepted password for pi from 192.168.6.106 port 52295 ssh2 Jun 18 07:28:18 Pi-NYE1 sshd[7414]: pam_unix(sshd:session): session opened for user pi by (uid=0) Jun 18 07:31:05 Pi-NYE1 sudo: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/...
by tdenson
Thu Jun 18, 2015 11:56 am
Forum: Beginners
Topic: ssh "permission denied" problem
Replies: 11
Views: 16767

Re: ssh "permission denied" problem

[quote="DougieLawson Obviously my port forward is working as I get the password prompt. That proves that you are forwarding the port to a machine that runs an SSH service; it might not be the machine you think it is. Other obvious problems are passing the wrong username or password. The best diagno...
by tdenson
Wed Jun 17, 2015 1:52 pm
Forum: Beginners
Topic: ssh "permission denied" problem
Replies: 11
Views: 16767

Re: ssh "permission denied" problem

Obviously my port forward is working as I get the password prompt. That proves that you are forwarding the port to a machine that runs an SSH service; it might not be the machine you think it is. Other obvious problems are passing the wrong username or password. The best diagnostic is immediately a...
by tdenson
Tue Jun 16, 2015 6:21 pm
Forum: Beginners
Topic: ssh "permission denied" problem
Replies: 11
Views: 16767

Re: ssh "permission denied" problem

The default for Raspbian is don't allow passwords from remote systems. It's OK from your LAN but not from the public internet. I'd recommend leaving it like that and looking at using a public/private key pair (with the public key in ~/.ssh/authorized_keys) as that's a much more secure connection. Y...
by tdenson
Tue Jun 16, 2015 11:43 am
Forum: Beginners
Topic: ssh "permission denied" problem
Replies: 11
Views: 16767

ssh "permission denied" problem

I have a Pi which I can ssh to quite happily over the local network, but when I connect from outside and put in the (correct) password I get "permission denied, please try again". Obviously my port forward is working as I get the password prompt. Can anyone give me a few pointers as to what I am loo...
by tdenson
Sat Jun 13, 2015 4:01 pm
Forum: Beginners
Topic: Script behaving differently in Cron to command line
Replies: 7
Views: 749

Re: Script behaving differently in Cron to command line

As a follow up to my question I would now like to run VNC over the reverse SSH connection. I start the connection at the remote end with - /usr/bin/ssh -N -R 2242:localhost:22 [email protected].dnsalias.com I then connect to it from my local end with - ssh -l pi -p 2242 localhost However, I am confused by w...
by tdenson
Fri Jun 12, 2015 10:43 pm
Forum: Beginners
Topic: Script behaving differently in Cron to command line
Replies: 7
Views: 749

Re: Script behaving differently in Cron to command line

if [[ $? -ne 0 ]]; then That is ksh syntax. Unless your script has a #!/bin/bash line (or ksh or zsh), or your crontab file has a SHELL=/bin/bash setting, cron will run the script in /bin/sh. In sh, that test is always false, because [[ is not a valid command. The correct syntax is with single [ ]....
by tdenson
Fri Jun 12, 2015 10:31 pm
Forum: Beginners
Topic: Script behaving differently in Cron to command line
Replies: 7
Views: 749

Re: Script behaving differently in Cron to command line

To run anything from cron you have to build the complete environment, you can't assume that ./cst will map to /home/pi/cst. You also don't need & as everything is spawned as a new background task. Change the line in your crontab to */1 * * * * /home/pi/cst > tunnel.log and see it that works better....
by tdenson
Fri Jun 12, 2015 8:09 pm
Forum: Beginners
Topic: Script behaving differently in Cron to command line
Replies: 7
Views: 749

Script behaving differently in Cron to command line

Can someone help me with this please. I have the following script (named cst) to set up a reverse ssh tunnel - /bin/pidof ssh if [[ $? -ne 0 ]]; then echo Creating new tunnel connection /usr/bin/ssh -N -R 2242:localhost:22 [email protected].dnsalias.com else echo ssh already running fi It works fine if I ru...
by tdenson
Sat Jun 06, 2015 1:10 pm
Forum: Other projects
Topic: Driving a matrix display for a shop
Replies: 2
Views: 512

Driving a matrix display for a shop

Anyone seen a Pi used to drive a Matrix LED display for a shop window ?
by tdenson
Sat Jun 06, 2015 12:35 pm
Forum: Beginners
Topic: Displaying camera pictures on Pi
Replies: 0
Views: 225

Displaying camera pictures on Pi

I am trying to use fim to display pictures from an ssh session. I get the following error -

fim testcapture.jpg
ioctl VT_GETSTATE: Inappropriate ioctl for device (not a linux console?)

Can I do this from ssh or do I need to have a local connection ?
by tdenson
Thu Jun 04, 2015 3:19 pm
Forum: Beginners
Topic: Running a browser from an SSH session
Replies: 11
Views: 2791

Re: Running a browser from an SSH session

Is there anyone here running X via Putty on Windows 7 ?
by tdenson
Tue Jun 02, 2015 4:46 pm
Forum: Beginners
Topic: Running a browser from an SSH session
Replies: 11
Views: 2791

Re: Running a browser from an SSH session

Assuming you have an X server running on your desktop PC set DISPLAY=:0 ssh -X [email protected] on my mac I use: "DISPLAY=:0 ssh -X [email protected]" but I have the X windows extensions to OSX installed... I am using a Mac so I will install the extensions OK, I got it working on the Mac, but now I need...
by tdenson
Tue Jun 02, 2015 1:51 pm
Forum: Beginners
Topic: Running a browser from an SSH session
Replies: 11
Views: 2791

Re: Running a browser from an SSH session

Assuming you have an X server running on your desktop PC set DISPLAY=:0 ssh -X [email protected] on my mac I use: "DISPLAY=:0 ssh -X [email protected]" but I have the X windows extensions to OSX installed... I have installed Quartz on my Mac (I believe this to be the extensions to which you refer) but I ...
by tdenson
Tue Jun 02, 2015 12:03 pm
Forum: Beginners
Topic: Running a browser from an SSH session
Replies: 11
Views: 2791

Re: Running a browser from an SSH session

hvanschaick wrote:Assuming you have an X server running on your desktop PC

set DISPLAY=:0
ssh -X [email protected]

on my mac I use: "DISPLAY=:0 ssh -X [email protected]"

but I have the X windows extensions to OSX installed...
I am using a Mac so I will install the extensions

Go to advanced search