Welcome to the PiMP OS and Miner.farm forum.
Frequently Used Commands
There are several other commands that you will use a lot as a PiMP:
newpimp: This command shows “Quick Start” steps on how to get up and mining as soon as possible. This tool eventually will become our PiMP setup wizard. Right now, it guides new miners into how to use the tools to get going.
checkconf: This command is used to check the formatting and syntax of a miner .conf file. While we have integrated syntax checking in the PiMP and minerfarm tools already built in, this tool allows any PiMP to manually check a conf file to see if it is valid JSON format.
edit/del: Welcome to the new conf file and default conf file management system.
All of the default (known working) conf files are pre-installed in PiMP.
You can customize your conf files by using the
editcommand. The command
editby itself will show a list of the conf files available to edit. Using the command
edit sgminer.eth.confwill launch the new pimp editor with syntax highlighting. Once you are done editing, it will automatically check the syntax to make sure it is valid and let you know. Also, the default conf will still be preserved on your system so you always have it for testing. Not only that, but pimpup will automatically fetch the latest default confs as we update them so you always have the latest and best known working examples!
Likewise, using the command such as
del sgminer.multi.confwill remove all of your changes and RESTORE the factory default automatically so you can start fresh!
cleanbins: This will basically rm /opt/bins/*.bin from your rig. Why do you want to do this and what are bin files? When you start a miner the first time with new algo or settings, binary kernel files are created specific to your GPU and the Algorithm and settings. They are placed in /opt/bins. Sometimes, you will want to remove these, especially after updating a miner to a new version.
pimp: the newest member of your toolbox and contains all of the scripts and utilities that you need to administer your pimp rig. It is fully integrated with minerfarm agent software for a seamless experience. Allows you to:
Switch mining profiles (which miner and conf you are using to mine)
Take the miner for a test drive with a new conf
View consoles of running miners
Edit your confs
Push wallet addresses into your confs
Set GPU fan speeds
Add and remove PIMP Managed Profiles and User Profiles to minerfarm.
Use the command
pimpto show the full listing of commands and aliases for the
pimp --add [Profile ID]= Add miner to minerfarm agent
pimp --back= Back up your .conf/.pcfg files
pimp --chworker [name]= Change the user in .conf files (
-f filename.conffor one file,
pimp --commands= Show frequently used commands and aliases
pimp --debug [Miner ID]= Start Miner ID without screen, using debug flags
pimp --delete [Miner ID]= Delete Miner ID
pimp --edit [conf file]= Edit conf file and verify changes (Omit file name to see list)
pimp --help= This usage list
pimp --list= List configured miners and profiles by ID
pimp --livechat= Open a chat window to the #PiMP irc channel
pimp --status= Show minerfarm agent status
pimp --start [Miner ID]= Start Miner ID
pimp --stop [Miner ID]|all= Stop Miner ID or all miners
pimp --switch [Miner ID] -p [Profile ID]= Switch Miner ID to Profile ID
pimp --test [Miner ID]= Attach to console of Miner ID. Check conf file and start miner if stopped. (Omit ID to see Miner list)
minerfarmtool is your agent software. Besides talking with the miner.farm server over a fully secured connection, it also allows you to view and manage the miners and provides a basic graphical interface inside the terminal as well as scriptable command line options.
minerfarmtool allows you to:
- Start/stop miners
- Switch mining profiles (which miner and conf you are using to mine)
- Set your miner.farm API keys and Agent name
- Setup miners, confs, and profiles for GPU, CPU, Dual miners, and ASIC miners all at the same time
- Add and remove PIMP Managed Profiles and User Profiles to minerfarm.
- Turn on and off agent and miner logging.
minerfarmwill launch the interactive agent console program.
minerfarm --helpto show the full command and alias listings for the
Logging : Getting more information from the rig
To turn on and off logging, you can use these commands:
minerfarm --logging onand
minerfarm --logging off
The log files are stored to /var/log/agent.log and /var/log/miner.log.
Pimpup : Updating the rig
pimpupis a brand new rewrite of the classic
pimpupdatetool. On each boot and login, pimp checks for its own software updates, and allows you to seamlessly upgrade to the latest pimp version without re-imaging. Simply run
pimpupand it will automatically update itself, the default confs, minerfarm software, and PiMP software.
What is updated by pimpup??
Pimpup itself: provides auto self updating, simply say yes when prompted, then re-run. Will only update itself (/opt/pimp/pimpup).
PiMP Software, provides auto self updating, simply say yes when prompted, will update our own software (all /opt/pimp and /opt/minerfarm software, as well as root and system files and packages needed for it.) The majority of bug fixes are provided in the pimp software updates.
Default confs located in /opt/confs/default will self-update without prompting.
PCI IDs for common hardware is downloaded from official linux repos.
Miners supported by pimpup will be listed and can be chosen from a menu.
You can also update some of the individual mining software yourself using this tool (
cpuminer-multi, etc.) If you choose one of the miners in the menu, it will backup the existing miner folder in /opt/miners, and then download and install the latest version of the miner for you. At the end it will tell you “success” and then you can start mining using your new version. As a bonus, you can also delete old builds and backups that
pimpuphas created (with the
dkey at the menu.)
Other features of pimpup:
pimpup --autowill update pimpup, pimp, minerfarm, the default confs and pci ids, and any currently added profiles. To see what profiles are loaded, use command
pimpup --forcewill forcefully update all pimp software regardless of what version is currently installed. this can fix broken updates and/or allow you to pimpup again if there was already a pimpup released that day.
pimpup --versionwill show the current version of pimpup itself.
How to restore a miner that was backed up with pimpup:
Right now this is still manual restoration, but better backup handling is on our list to improve!
Simply go to the /opt/miners directory, mv the current one out of the way, and mv the backup into place. Here is an example using claymore dual miner:
helpmetool is a script that queries your hardware and software for information. This information is then uploaded securely to the PiMP Troubleshooter, another web app from the PiMP family. This will give you all of the information about your system that you need to troubleshoot problems. You can then provide the helpme URL to the page that was uploaded so that your fellow PiMPs can take a look and help you solve your issues.
pastebinitis a utility that allows you to paste command output to a pastebin. You can use this to paste file contents too, although we believe the
showme [file]command is better for that. Example usage:
lspci -v | pastebinitwill output a URL and you can use that to view the output online in your browser.
gputoolallows you to view realtime information about your GPUs directly from the hardware. You can view your fans, temps, and clocks. It is mostly used to manually set the fan speed on the GPUs.
NOTE: You MUST stop the miners before setting the fans, or you will end up needing a reboot.
gputoolby itself will show the command usage. We also provide a wrapper for
gputool --setall -fcalled
fans. The command
fans 75would set all GPUs to 75% Fan speed, for example.
Be advised: if you have a miner that actually supports fan control (sgminer-gm 5.5+) then this is not needed, and will be overridden by that miner.
gputool --update- This new command EXTENDS the existing settings to other GPUs that are detected but not yet in gpu-config.json without having to delete the file and re-run gputool --config again. That way you can get a GPU running well, then add more cards and apply the same clocks/fans settings previously set.
Other Frequently used commands and aliases:
checkconf [file]= Check json syntax of a config file
cleanbins= Clean miner bin files
del [file]= Delete conf file
edit [file]= Edit conf file (shortcut to pimp --edit)
gputool= Get/set GPU hardware values
helpme= Pastebin diagostic information for a PiMP rescue!
minerfarm= Configure and control miners and agent from the agent console
ms [ID]= Stop miner ID
newpimp= Show quickstart help
pimpkey= Enter/verify PIMP registration key
pimplog= Show the mining log
pimpup= Get the latest updates to PIMP.
rb= Reboot the rig
sc= Show the miner console on port 4028 (Control-A, release, D to detach from it)
sd= Shutdown the rig
showme [file]= Post a file to sprunge pastebin and give you the URL of it.
switchprompt= Switch between PIMP bash prompt and normal bash prompt
Great question today by user.
To update ubuntu packages run: apt update && apt upgrade
doug last edited by doug
While updating I answered yes to replace providers original files while updating ubuntu. Will this cause problems?
Depends on what files you answered yes to. Typically you should just answer no to most of these questions, as some configuration files could get overwritten that are important. If after an upgrade, some new feature is not working as intended, you can edit any configuration file needed. But! For most of the files it might query you about, it will have no impact.
info21 last edited by
How do you update the time please
Time is normally setup by the
ntp(network time protocol) service. This is configured using the
/etc/ntp.conffile. It should already be setup and functional. You can check the status by simply running
service ntp status
[/root]:# service ntp status ● ntp.service - LSB: Start NTP daemon Loaded: loaded (/etc/init.d/ntp; bad; vendor preset: enabled) Active: active (running) since Mon 2018-06-18 07:03:08 EDT; 3h 21min ago Docs: man:systemd-sysv-generator(8) Process: 622 ExecStart=/etc/init.d/ntp start (code=exited, status=0/SUCCESS) CGroup: /system.slice/ntp.service └─649 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 109:114 Jun 18 07:24:39 pimp2 ntpd: 22.214.171.124 local addr 10.0.0.204 -> <null> Jun 18 07:25:12 pimp2 ntpd: 126.96.36.199 local addr 10.0.0.204 -> <null> Jun 18 07:25:41 pimp2 ntpd: 188.8.131.52 local addr 10.0.0.204 -> <null> Jun 18 07:27:55 pimp2 ntpd: 184.108.40.206 local addr 10.0.0.204 -> <null> Jun 18 07:35:48 pimp2 ntpd: 220.127.116.11 local addr 10.0.0.204 -> <null> Jun 18 07:38:17 pimp2 ntpd: 18.104.22.168 local addr 10.0.0.204 -> <null> Jun 18 07:39:02 pimp2 ntpd: 22.214.171.124 local addr 10.0.0.204 -> <null> Jun 18 07:39:06 pimp2 ntpd: 126.96.36.199 local addr 10.0.0.204 -> <null> Jun 18 07:40:16 pimp2 ntpd: 188.8.131.52 local addr 10.0.0.204 -> <null> Jun 18 07:40:19 pimp2 ntpd: 184.108.40.206 local addr 10.0.0.204 -> <null>
We promise to keep your email safe and never spam you.
Copyright (c) 2012-2018 PiMP LLC. All rights Reserved.