Author

Topic: Can't view Cgminer stats on Raspberry Pi (Read 2028 times)

sr. member
Activity: 280
Merit: 250
Sometimes man, just sometimes.....
August 23, 2013, 10:11:11 AM
#6
If you are on the same network as your Pi, just download Putty and SSH into your Pi.  Then just use screen -r to view your screen.
hero member
Activity: 850
Merit: 1000
August 22, 2013, 07:13:37 PM
#5
You'll need to enable auto-login for this to work, so don't do this if security is a concern. I do this over a wired network so I'm not too concerned about it. I can't take credit for almost all of this, but here's what I did.

To automatically login to the Pi:
1. Edit /etc/inittab
    a. Put a comment (#) in front of this line:
   1:2345:respawn:/sbin/getty 115200 tty1

     b....and add this below it (pi is the username):
   1:2345:respawn:/bin/login -f pi tty1 /dev/tty1 2>&1

To automatically load the desktop
1. Edit /etc/rc.local
   a. Add this above the exit 0: line (pi is the username)
   su -l pi -c startx

Install X11VNC Server on the Pi
In a Terminal:
Code:
sudo apt-get install x11vnc
x11vnc -storepasswd
This will prompt you to create your VNC password. It will be stored in ~/.vnc/passwd

Now, create this directory: /home/pi/.config/autostart

You need to know that the period in front of config means that .config is a hidden folder. You can make your hidden directories visible by going to "View, Hidden Files and Folders" (or something like that). Inside the autostart directory, create the file X11vnc.desktop  This filename MUST end with .desktop

The contents of  X11vnc.desktop should be:
Code:
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=x11VNC
Exec=x11vnc -forever -usepw -display :0 -ultrafilexfer
Terminal=false
StartupNotify=false
Hidden=false

That's it! Go ahead and reboot.

Now, from your VNC Client, type in the IP address of your PI and you'll connect to it. It will ask you for your password, and then a few seconds later, you're in. I do get an error message that I don't have the proper VNC  version, but I ignore it. This has worked for me for almost 2 months with no problems.
newbie
Activity: 59
Merit: 0
August 22, 2013, 07:08:41 PM
#4
I'm very new to linux as well.

what would be the command line to run cgminer on the desktop?
newbie
Activity: 47
Merit: 0
August 19, 2013, 10:25:03 PM
#3
So I'm trying to make it where I can view my cgminer 3.1.1 on my raspberry pi. I'm using a VNC so I can see the stats on a different screen. I can't figure out how exactly to view anything and google searches haven't turned up any help.

Probably not getting responses because could use more info.
How did you run cgminer?  How was it started?

If you ran it from from the desktop, then when you connect with VNC to your session, you should just see it.

One suggestion might be starting it in a screen or tmux session.  That way, you can connect to it by opening a terminal window or through SSH, and attaching to the cgminer session with screen -r, or tmux attach, etc.



newbie
Activity: 59
Merit: 0
August 19, 2013, 05:01:39 AM
#2
Really? No one can help me with this? I figured it was something simple too....
newbie
Activity: 59
Merit: 0
August 18, 2013, 07:11:49 AM
#1
So I'm trying to make it where I can view my cgminer 3.1.1 on my raspberry pi. I'm using a VNC so I can see the stats on a different screen. I can't figure out how exactly to view anything and google searches haven't turned up any help.
Jump to: