个人工具

UbuntuHelp:Pastebinit

来自Ubuntu中文

跳转至: 导航, 搜索

Pastebinit

This guide is meant to assist and guide the use of pastebinit. This tutorial has been tested with Ubuntu 9.04 Jaunty.

Pastebin.com

Pastebin.com is a site that is used to post long messages that cant be used in the IRC or other chat clients. You can copy and paste the error messages you get with a specific command onto the pastebin on the site and send it to the site. In return you will get a url in which you can give to someone else for them so see your full errors. Though that is not the entire use of pastebin. You can post any text you would like. From what i understand length doesn't matter.

Installation

To install pastebinit you can install the following package: pastebinit

Use Pastebinit

Once you have pastebinit installed it's time to test it out.

  • The command for pastebinit in the terminal is:
 
<command> | pastebinit 

For example if you were having grub issues and someone in the IRC ask you to post your menu.lst into a pastebin you would enter the following in a terminal:

 
cat /boot/grub/menu.lst | pastebinit
  • This will paste the contents of your menu.lst into a pastebin log url which will look like this:
 
http://pastebin.com/f5c9dc0b1 

. Give that url that the terminal returns to you to whoever it is that is helping you and they will post it in their web browser and be able to view your menu.lst through the pastebin.com site. NOTE: After you start the pastebinit command it may take 1-2 minutes. depending on the size of the contents from the command posted, to return back a url. During this time DO NOT mess with the terminal that is running the cmd.