LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-27-2019, 04:19 PM   #1
Marcel Louw
LQ Newbie
 
Registered: Jun 2019
Distribution: Slackware
Posts: 2

Rep: Reputation: Disabled
Automate Multi Console Logins On Slackware Server


Hi, I want to automate this on startup and display each programs output on a different console on my Slackware Server.
Console nr1

alt f1
login as: root
password: LoveLinux
#cd /xmrig-nvidia
#./xmrig-nvidia -c config.json

Console nr2
alt f2
login as: root
password: LoveLinux
#cd /xmrig-cpu
#./xmrig -c config.json


Console nr3 ........

Each program occupy the current display with scrolling text containing hash rate and other program output.

1. I have tried starting and running programs in daemon mode with /etc/rc.d/rc.local On Slackware Xmrig-nvidia does not release the console and server stop running files from rc.local

2. I have tried to start each program with nohup with severe performance decrease in hash rate.

#nohup /xmr-cpu/xmrig -c /xmr-cpu/config.json.lethean > /dev/null 2>&1 & disown
#nohup /xmr-nv/xmrig-nvidia -c /xmr-nv/config.json.lethean > /dev/null 2>&1 & disown

3. Current solution login into each server and start an ssh session for each program. Did I mention ...there are 55 servers

It would also be nice if I knew how to make it switch between server consoles every 5 min.

Anyone?
 
Old 07-01-2019, 02:00 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
I would look into tmux.
 
Old 07-01-2019, 03:28 PM   #3
Marcel Louw
LQ Newbie
 
Registered: Jun 2019
Distribution: Slackware
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi, it is more or less the same as nohup. I would like to run one service on the local console 1 and another on console 2. The gpu driver does not like to not be in control of the screen. Longtime problem.... I will try tmux and xmrig-nvidia with cuda10.
 
Old 07-02-2019, 08:05 AM   #4
Labinnah
Member
 
Registered: May 2014
Location: Łódź, Poland
Distribution: Slackware-current
Posts: 185

Rep: Reputation: 112Reputation: 112
I'm not sure this will working. Did you try to put this commands to /etc/inittab?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
best practice Multihead, multi-screen, multi-display or multi-monitor-Debian 8 lgtrean Linux - Software 1 10-14-2015 09:53 AM
Automate Logins Thru Shell Script rhadmn Linux - Enterprise 5 05-01-2012 04:35 PM
[SOLVED] what's the difference between a multi-cpu , multi-core and a multi-thread system ? entz Linux - Hardware 11 12-20-2011 04:49 PM
LXer: Using scponly To Allow SCP/SFTP Logins And Disable SSH Logins On Debian Squeeze LXer Syndicated Linux News 0 08-24-2011 04:20 AM
LXer: Speaking Unix, Part 6: Automate, automate, automate! LXer Syndicated Linux News 0 01-04-2007 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration