TEXT 48
Pastebin 2020 Guest on 6th July 2020 01:25:44 PM
  1. Pastebin 2020
  2. Software developers or users always encounter different problems during the process of software development or usage. Some of these problems may include errors, therefore one way to solve them is to share error messages, command output or the contents of given files with other developers or users on the Internet.
  3.  
  4. There are many online platforms for sharing such problems which can be referred to as online content-sharing tool. An online content-sharing tool is often called a pastebin.
  5.  
  6. The Fedora ecosystem has one such tool called fpaste, is a web-based pastebin and a command line tool used for debugging errors or simply looking for feedback on some text.
  7.  
  8. Therefore in this article we are going to look at ways of how you can use fpaste as a programmer or normal user to report errors from commandline to fpaste.org site..
  9.  
  10. In order to use fpaste, you need to access it using one of the two ways; via the website or the command line. In this guide we shall focus more on the command line but let us see how you can use it via the web-based interface.
  11.  
  12.  
  13. To use it from the website, you can go to fpaste website, copy your error, paste it into the input box provided, and then submit it. A response page will be provided and it has the URL link that you can send to fellow debuggers.
  14.  
  15. The web user interface allows a user to:
  16.  
  17. set the syntax of the paste.
  18. tag the paste with his or her alias.
  19. use a password.
  20. set a time for the pasted error to expire.
  21. How to Install fpaste Tool in Linux
  22. To install it on Fedora/CentOS/RHEL distributions, you can run the following command as a privileged user.
  23.  
  24. # yum install fpaste
  25. # dnf install fpaste         [On Fedora 22+ versions]
  26. Sample Output
  27. Last metadata expiration check performed 0:21:15 ago on Fri Jan 22 15:25:34 2016.
  28. Dependencies resolved.
  29. =================================================================================
  30.  Package         Arch            Version                   Repository       Size
  31. =================================================================================
  32. Installing:
  33.  fpaste          noarch          0.3.8.1-1.fc23            fedora           38 k
  34.  
  35. Transaction Summary
  36. =================================================================================
  37. Install  1 Package
  38.  
  39. Total download size: 38 k
  40. Installed size: 72 k
  41. Is this ok [y/N]: y
  42. Downloading Packages:
  43. fpaste-0.3.8.1-1.fc23.noarch.rpm                       9.3 kB/s |  38 kB     00:04    
  44. ---------------------------------------------------------------------------------------
  45. Total                                                  5.8 kB/s |  38 kB     00:06    
  46. Running transaction check
  47. Transaction check succeeded.
  48. Running transaction test
  49. Transaction test succeeded.
  50. Running transaction
  51.   Installing  : fpaste-0.3.8.1-1.fc23.noarch                                       1/1
  52.   Verifying   : fpaste-0.3.8.1-1.fc23.noarch                                       1/1
  53.  
  54. Installed:
  55.   fpaste.noarch 0.3.8.1-1.fc23                                                        
  56.  
  57. Complete!
  58. Now we will see some ways on how to use fpaste from terminal.
  59.  
  60. You can paste a test.txt, as follows:
  61.  
  62. # fpaste test.txt
  63.  
  64. Uploading (1.9KiB)...
  65. http://ur1.ca/ofuic -> http://paste.fedoraproject.org/313642/34569731
  66. To use a nickname and password while pasting test.txt, run this command.
  67.  
  68. # fpaste test.txt -n “labmaster” --password “labmaster123” test.txt
  69.  
  70. Uploading (4.7KiB)...
  71. http://ur1.ca/ofuih -> http://paste.fedoraproject.org/313644/57093145
  72. To send a script file named test_script.sh, specify the language as bash, copy the returned URL link to the X clipboard and make the paste private as follows.
  73.  
  74. # fpaste -l bash --private --clipout test_script.sh
  75.  
  76. Uploading (1.9KiB)...
  77. http://ur1.ca/ofuit -> http://paste.fedoraproject.org/313646
  78. To send the output of the w command, run this command.
  79.  
  80. # w | fpaste
  81.  
  82. Uploading (0.4KiB)...
  83. http://ur1.ca/ofuiv -> http://paste.fedoraproject.org/313647/53457312
  84. To send your system information with a description and a confirmation, run this command below.
  85.  
  86. # fpaste --sysinfo -d "my laptop" --confirm -x "1800"
  87.  
  88. Gathering system info .............................OK to send? [y/N]: y
  89. Uploading (19.1KiB)...
  90. http://ur1.ca/ofuj6 -> http://paste.fedoraproject.org/313648/53457500
  91. You can also paste the output of more than one command. In the next example I am going to send the output of the following commands; uname -a, date and who.
  92.  
  93. # (uname -a ; date ; who ) | fpaste --confirm -x "1800"
  94.  
  95. Linux tecmint.com 4.2.6-301.fc23.x86_64 #1 SMP Fri Nov 20 22:22:41 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
  96. Fri Jan 22 15:43:24 IST 2016
  97. root     tty1         2016-01-22 15:24
  98. root     pts/0        2016-01-22 15:32 (192.168.0.6)
  99.  
  100. OK to send? [y/N]: y
  101. Uploading (0.4KiB)...
  102. http://ur1.ca/ofujb -> http://paste.fedoraproject.org/313649/14534576
  103. You can use many other options of fpaste in man pages.
  104.  
  105. # man fpaste
  106. Summary
  107. fpaste is a good content-sharing tool with easy to use methods. We have looked at some few examples of using it in this guide but you can explore more by trying out many other options.
  108.  
  109. If you encounter any errors while using it, you can post a comment or for those of who use fpaste, please add some information about how you use it and share your experience.

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.