Bitcoin Forum
October 20, 2017, 06:09:04 PM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Can't view Cgminer stats on Raspberry Pi  (Read 1869 times)
Yinero
Jr. Member
*
Offline Offline

Activity: 59


View Profile
August 18, 2013, 12:11:49 PM
 #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.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Yinero
Jr. Member
*
Offline Offline

Activity: 59


View Profile
August 19, 2013, 10:01:39 AM
 #2

Really? No one can help me with this? I figured it was something simple too....
sephtin
Jr. Member
*
Offline Offline

Activity: 47


Laughing WITH you...


View Profile
August 20, 2013, 03:25:03 AM
 #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.



Yinero
Jr. Member
*
Offline Offline

Activity: 59


View Profile
August 23, 2013, 12:08:41 AM
 #4

I'm very new to linux as well.

what would be the command line to run cgminer on the desktop?
c789
Hero Member
*****
Offline Offline

Activity: 839



View Profile
August 23, 2013, 12:13:37 AM
 #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 >/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.

Comparison of Privacy-Centric Coins: https://moneroforcash.com/monero-vs-dash-vs-zcash-vs-bitcoinmixers.php also includes Verge and Pivx
Zanatos666
Sr. Member
****
Offline Offline

Activity: 280


Sometimes man, just sometimes.....


View Profile
August 23, 2013, 03:11:11 PM
 #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.

Squiggly letters, written really fast, with a couple of dots for good measure.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!