Post
Topic
Board Mining (Altcoins)
Re: [OS] nvOC easy-to-use Linux Nvidia Mining
by
fullzero
on 25/05/2017, 14:02:37 UTC

to launch oneBash with screen you would edit 2unix to contain the following:

Code:
#!/bin/bash

expect -c 'spawn sudo dos2unix /media/m1/1263-A96E/oneBash
expect "*password*:"
send "miner1\r" '
sleep 6

expect -c 'spawn sudo ldconfig /usr/local/cuda/lib64
expect "*password*:"
send "miner1\r" '
sleep 6

screen -m -t name_of_your_window bash '/media/m1/1263-A96E/oneBash'

Let me know how this goes.

Thank you so much.  This works for starting screen, but the onebash script keeps creating new instances...  
I thought I would be able to fix this, but I couldn't figure out how you're making onebash reinitialize.
How are you starting onebash on terminal startup? I checked ~/.bashrc and /etc/bash.bashrc, I might have missed it, but didn't seem to be in there.  

Thanks again, you're enabling me to learn a lot.

You would need to change the gnome terminal profile setting to alter this.  I have it set to relaunch on command exit to ensure that dos2unix will eventually properly convert oneBash, as it will not always do so successfully on the first attempt.

So long as you don't reconnect your usb to a windows computer this should already be done on your rig, so altering it should be ok.

when mining process is open select the gnome terminal (where gpus are mining) then move the cursor to the top right, select preferences, ensure mining (profile) is highlighted, click edit, select the command tab, change "when the command exits" to exit the terminal

This should be what you are looking to do.