Guest User

Untitled

a guest
Mar 12th, 2018
945
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.41 KB | None | 0 0
  1. // View sgminer CLI
  2. sudo screen -r
  3.  
  4. // Shutdown command
  5. sudo shutdown -h now
  6.  
  7. // List content
  8. ls
  9.  
  10. // Typo
  11. sudo vm sgminer_300MHz_fix_NoHW  /opt/scripta/bin/sgminer
  12.  
  13. // Move the compiled binary file to scripta folder named as sgminer
  14. sudo mv sgminer_300MHz_fix_NoHW  /opt/scripta/bin/sgminer
  15.  
  16. // List content
  17. ls
  18.  
  19. // Enter the following directory: opt/scripta/bin
  20. cd /opt/scripta/bin/
  21.  
  22. // List content
  23. ls
  24.  
  25. // List content with access permissions
  26. ls -l
  27.  
  28. // Set sgminer file owner as root
  29. sudo chown -R root.root sgminer
  30.  
  31. // Set sgminer file permission to all
  32. sudo chmod a+x sgminer
  33.  
  34. // List content
  35. ls
  36.  
  37. // List content with access permissions
  38. ls -l
  39.  
  40. // View sgminer CLI
  41. sudo screen -r
  42.  
  43. // Terminate the CLI (reboot)
  44. qq
  45.  
  46. // Typo
  47. shutdown -h now
  48.  
  49. // Shutdown command
  50. sudo shutdown -h now
  51.  
  52. // Enter the following directory: usr/bin
  53. cd /usr/bin/
  54.  
  55. // List content
  56. ls
  57.  
  58. // Open the following file with VIM text editor for editing
  59. sudo vi update_fw.py
  60.  
  61. // List content
  62. ls
  63.  
  64. // Enter the following directory: usr/bin/sgminer
  65. cd sgminer/
  66.  
  67. // List content
  68. ls
  69.  
  70. // List content with access permissions
  71. ls -l
  72.  
  73. // Set autogen.sh file permission to all
  74. chmod a+x ./autogen.sh
  75.  
  76. // Execute the autogen.sh script
  77. ./autogen.sh
  78.  
  79. // List content
  80. ls
  81.  
  82. // Open the following file with VIM text editor
  83. vi configure.ac
  84.  
  85. // Execute the autogen.sh script again
  86. ./autogen.sh
  87.  
  88. // Execute the configuration script
  89. ./configure
  90.  
  91. // Make the build
  92. make
  93.  
  94. // No idea
  95. dls
  96.  
  97. // Execute the update script
  98. sudo ./update.sh
  99.  
  100. // List content
  101. ls
  102.  
  103. // Set update.sh file permission to all
  104. chdmod a+x ./update.sh
  105.  
  106. // Run the update script again
  107. sudo ./update.sh
  108.  
  109. // List content
  110. ls
  111.  
  112. // Set update.sh file permission to all again
  113. chmod a+x ./update.sh
  114.  
  115. // Run the update script again
  116. sudo ./update.sh
  117.  
  118. // Call the shutdown command
  119. sudo halt
  120.  
  121. // List content
  122. ls
  123.  
  124. // Enter the following directory: usr/bin/sgminer/sgminer
  125. cd sgminer/
  126.  
  127. // List content
  128. ls
  129.  
  130. // Run the update script once again
  131. sudo ./update.sh
  132.  
  133. // View sgminer CLI
  134. sudo screen -r
  135.  
  136. // List content
  137. ls
  138.  
  139. // View sgminer CLI
  140. sudo screen -r
  141.  
  142. // List content
  143. ls
  144. cd sgminer/
  145.  
  146. // List content
  147. ls
  148.  
  149. // Open the following file with VIM text editor for editing
  150. vi driver-baikalu.c
  151.  
  152. // Make the build
  153. make
  154.  
  155. // Run the update script
  156. sudo ./update.sh
  157.  
  158. // View sgminer CLI
  159. sudo screen -r
  160.  
  161. // Run the update script again
  162. sudo ./update.sh
  163.  
  164. // View sgminer CLI
  165. sudo screen -r
  166.  
  167. // Open the following file with VIM text editor for editing
  168. vi driver-baikalu.c
  169.  
  170. // View sgminer CLI
  171. sudo screen -r
  172.  
  173. // List content
  174. ls
  175.  
  176. // List content
  177. ls
  178.  
  179. // Delete this folder
  180. rm -rf sgminer/
  181.  
  182. // List content
  183. ls
  184.  
  185. // Go back to the default folder: /home/Baikal
  186. cd
  187.  
  188. // List content
  189. ls
  190.  
  191. // Enter the following directory: opt/scripta/etc
  192. cd /opt/scripta/etc/
  193.  
  194. // List content
  195. ls
  196.  
  197. // Enter the following directory: opt/scripta/etc/backup
  198. cd backup/
  199.  
  200. // List content
  201. ls
  202.  
  203. // Delete the Example folder
  204. sudo rm -rf Example/
  205.  
  206. // Move the 20171111-1346 folder to a new Example folder
  207. sudo mv 20171111-1346/ Example
  208.  
  209. // List content
  210. ls
  211.  
  212. // Go back to the default folder: /home/Baikal
  213. cd
  214.  
  215. // List content
  216. ls
  217.  
  218. // Write the data buffered in memory to the disk
  219. sync
  220.  
  221. // Shutdown command
  222. sudo shutdown -h now
  223.  
  224. // List network interfaces
  225. ifconfig
  226.  
  227. // Check the process duration of all processes
  228. ps -ef|more
Advertisement
Add Comment
Please, Sign In to add comment