Bitcoin Forum
May 04, 2024, 07:35:06 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: need help going headless  (Read 1759 times)
Crypt_Current (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


Shame on everything; regret nothing.


View Profile
December 29, 2012, 05:10:44 PM
 #1

hello,

i've been mining for some time now (a little over a year) and i have only been familiar with windows in the past (mostly xp).  well when i started mining, then i started using linux.  So i'm kind of a linux noob, but i catch on quick.  So now I'm running Xubuntu 12.04 using CGMiner, and I want to go headless.  I already apt-get installed the ssh on the one rig.  My question is:  How do I then ssh into my rigs (from for example my windows laptop) to see how the CGMiner is doing, etc?  I have googled this problem up and down, and all the results are way too complex / too much information.  It's really just a simple problem -- maybe there's a simple piece of software I can install on my windows lappy in order to ssh into the mining rig?

Thankis for any information you can provide.

10% off at CampBX for LIFE:  https://campbx.com/main.php?r=C9a5izBQ5vq  ----  Authorized BitVoucher MEGA reseller (& BTC donations appreciated):  https://bitvoucher.co/affl/1HkvK8o8WWDpCTSQGnek7DH9gT1LWeV5s3/
LTC:  LRL6vb6XBRrEEifB73DiEiYZ9vbRy99H41  NMC:  NGb2spdTGpWj8THCPyCainaXenwDhAW1ZT
1714808106
Hero Member
*
Offline Offline

Posts: 1714808106

View Profile Personal Message (Offline)

Ignore
1714808106
Reply with quote  #2

1714808106
Report to moderator
1714808106
Hero Member
*
Offline Offline

Posts: 1714808106

View Profile Personal Message (Offline)

Ignore
1714808106
Reply with quote  #2

1714808106
Report to moderator
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714808106
Hero Member
*
Offline Offline

Posts: 1714808106

View Profile Personal Message (Offline)

Ignore
1714808106
Reply with quote  #2

1714808106
Report to moderator
sega01
Sr. Member
****
Offline Offline

Activity: 391
Merit: 333



View Profile
December 29, 2012, 05:20:28 PM
 #2

Hey,

You can install Putty on your Windows box to SSH into the XUbuntu machine: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

There's a few others, but Putty is the most common. On the XUbuntu side, you'll have to setup sshd. Not sure if that was done for you, or you've already done that. When you SSH in, I'm not certain on how CGMiner works. If you can query it directly, or not.

One thing I like to do is run things inside screen or dtach so I can reattach the session later on. This is more something you'd do with sessions or ncurses applications, rather than things that daemonize to the background.

Example:

mkdir ~/.dtach
dtach -A ~/.dtach/irc irssi
ctrl + \ to detach
logout

And later: dtach -a ~/.dtach/irc

I hope this helps! Let me know if you have any further issues getting this working.

Sincerely,
Teran
Crypt_Current (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


Shame on everything; regret nothing.


View Profile
December 29, 2012, 05:49:17 PM
 #3

Hey,

You can install Putty on your Windows box to SSH into the XUbuntu machine: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

There's a few others, but Putty is the most common. On the XUbuntu side, you'll have to setup sshd. Not sure if that was done for you, or you've already done that.
I've downloaded and installed Putty on my windows lappy, but I have no clue how to use it / log in to my xubuntu machines.  Can you explain that process briefly, or point me to a down-to-earth tutorial?
I installed SSH on one of my two xubuntu rigs (the other one said "out of space" - funny, even though it's using a 4GB flash usb, same as the other one, same persistence size and everything.  OH YEAH and that's another thing, how the heck do I mount this leftover space?  or IS that even leftover space, or is that the reserved space for the persistence file?HuhHuh anyway we can leave that question for very last   Wink) -- I guess I just don't know if it will work for this or how to even use it.  What I'm looking for is something that would ideally give me a graphical (in a window?) representation of what's happening on my mining rigs, sort of like the X desktop looks on it right at this very moment while I'm typing this message.  I realize that may be asking too much, and I can run in a CL environment if I have to, but...

When you SSH in, I'm not certain on how CGMiner works. If you can query it directly, or not.

That's a bridge I'd like to be closer to figuring out how to cross!  Cheesy
That's a big part of my problem -- I'm 95% *nix retarded.  So I understand "OK I can issue commands inside a terminal" but there are SO MANY commands that do SO MANY things...

One thing I like to do is run things inside screen or dtach so I can reattach the session later on. This is more something you'd do with sessions or ncurses applications, rather than things that daemonize to the background.

Alright:  I vaguely understand what you said there.  I need a bit more clarification on "reattach the session later" -- what exactly does this mean and why would I want to?
Another thing that will help me is an answer to this question:  What's the equivalent of the task manager from windows, in xubuntu?  Like, how can I kill certain progs / apps?  OH and where do I put a script that automatically starts CGMiner upon boot?

Example:

mkdir ~/.dtach
dtach -A ~/.dtach/irc irssi
ctrl + \ to detach
logout

And later: dtach -a ~/.dtach/irc

Your help is greatly appreciated.  Can you please provide a brief explanation of what each line of code is doing here?

I hope this helps! Let me know if you have any further issues getting this working.

Sincerely,
Teran

Thank you!

10% off at CampBX for LIFE:  https://campbx.com/main.php?r=C9a5izBQ5vq  ----  Authorized BitVoucher MEGA reseller (& BTC donations appreciated):  https://bitvoucher.co/affl/1HkvK8o8WWDpCTSQGnek7DH9gT1LWeV5s3/
LTC:  LRL6vb6XBRrEEifB73DiEiYZ9vbRy99H41  NMC:  NGb2spdTGpWj8THCPyCainaXenwDhAW1ZT
crazyates
Legendary
*
Offline Offline

Activity: 952
Merit: 1000



View Profile
December 29, 2012, 06:13:32 PM
 #4

Install ssh and byobu onto your linux rig. Then install Putty onto your windows. Sounds like you got this part already done.

When you're in Putty, all I do is enter the IP address of the Linux machine, and click Open. You have to enter a valid username/password for the Linux machine you're logging into. Then you've got a terminal up and running. I havn't bothered with Private keys or anything, but when I move my miners, I'll set them up.

Once you're in there, you can use byobu (or screen) to run your software after you disconnect the SSH session. Both of these allow you to run a program in a "virtial terminal" that you can connect to at any time. For example, I run byobu, which gets me a blank terminal screen, and then I run CGMiner. I press F6, and byobu disconnects, but keeps running in the background, along with CGMiner. I can then close my SSH session without closing CGMiner. If you run CGMiner directly in the SSH session, CGMiner would be closed when you disconnected, so that's why it has to be done this way. If I want to check on CGMiner, I just start a new SSH session, type byobu, and it brings up that CGMiner screen. Press F6 to close, and disconnect. You can do this all day long. I like byobu, as it's dead simple, but I havn't quite figured out how to get byobu to run a program when you reboot the computer. Screen can do this. I learned about byobu from here: https://docs.google.com/document/d/1Gw7YPYgMgNNU42skibULbJJUx_suP_CpjSEdSi8_z9U/edit It's got some GPU specific information, which you might or might not need (I didn't).

Another thing that will help me is an answer to this question:  What's the equivalent of the task manager from windows, in xubuntu?  Like, how can I kill certain progs / apps?  OH and where do I put a script that automatically starts CGMiner upon boot?

From a terminal, you can type "top". That will show you what program are eating the most CPU. To kill a program, you can do "kill -9 cgminer" or whatever program you're trying to kill. As for starting a script, you can place commands into rc.local, and those will be executed on startup.

Tips? 1crazy8pMqgwJ7tX7ZPZmyPwFbc6xZKM9
Previous Trade History - Sale Thread
ssateneth
Legendary
*
Offline Offline

Activity: 1344
Merit: 1004



View Profile
January 01, 2013, 06:58:35 AM
 #5

What does one mean by headless? Does that mean no monitor, keyboard, and mouse? Just power and ethernet? Because thats what my miners are and they run windows. I just use UltraVNC instead of whatever the linux equivalent is in case I need to interact with it. Otherwise it automatically powers on whenever the power plugs it, automatically logs on, and automatically starts mining, overclocks, underclocks, etc without needing any interaction from me.

crazyates
Legendary
*
Offline Offline

Activity: 952
Merit: 1000



View Profile
January 01, 2013, 07:05:16 AM
 #6

What does one mean by headless? Does that mean no monitor, keyboard, and mouse? Just power and ethernet? Because thats what my miners are and they run windows. I just use UltraVNC instead of whatever the linux equivalent is in case I need to interact with it. Otherwise it automatically powers on whenever the power plugs it, automatically logs on, and automatically starts mining, overclocks, underclocks, etc without needing any interaction from me.
Yes that's what headless means. Just a box with power and internet. For Linux, you can either use SSH, or TightVNC if you prefer a GUI.

Tips? 1crazy8pMqgwJ7tX7ZPZmyPwFbc6xZKM9
Previous Trade History - Sale Thread
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!