Michal Hrušecký

...about me, Linux and OpenSource

openSUSE Paste

openSUSE Paste

It's been some time since I started working on openSUSE pastebin clone with Bento theme. I had some other duties so it took some time to find some final resting place for that. Some of you asked me for a better URL. I finally found it and since today SUSE Paste is running again on new address and it is ready to serve you face-wink.png I also wrote a simple script to make it easier to use it. So you can start using it, promoting openSUSE and if you encounter any problems, don't hesitate to report them. If you are interested in details behind this paste, continue reading, otherwise start pasting face-wink.png

Ok, so you are still here? So you probably want to know what, why and how. SUSE Paste is still based on Stikked. As you can see on Stikked project page, there were no commits since 2008. But it doesn't matter as long as it works and as long as I can fix it. We've got for example newer Geshi included, Bento theme and shorter links. Last time people complained about long URL. I did two things to reduce it. First one is the domain. SUSEpaste.org is quite short and easy to remember. Other thing I did is that I got rid of the unnecessary /index.php/view/hash in URL of your paste and replaced it only with /hash. So URL for pastes now looks like this:

http://susepaste.org/59758306

Pretty short, isn't it?

Other thing I did is that I asked my friend Jaromír Červenka whether he will host it. And he agreed. So I got hosting for SUSE Paste for free. Why did I asked him? Well there were plenty of reasons why. First of all, he is valuable member of openSUSE community. You may remember him as a person behing live.opensuse.org. Apart from that he is offerering web hosting and now he is starting to offer VPS hosting too. He hosts my blog since I created it. But what is really important is that all his servers are running openSUSE and currently openSUSE 11.3 face-smile-big.png . So hosting is provided by our community member and it's running on the newest openSUSE!

Now back to the paste itself. One reason to revive it is feature#310201. It's about including some pastebin software in openSUSE in every instalation to make it easier for people to ask questions on IRC. I agree that it is a good idea to include something to make pastebin usage easier for the newbies. And if we are going to point them to some predefined pastebin, why not to our own! Let's promote ourselfs face-smile-big.png Also I tried proposed pastebinit and I don't really like that it is written in python and has some complex dependencies (configobj). So I want to try to include some really simple script in next openSUSE which will use SUSEPaste...

I have created such a simple script and it is already available in openSUSE Contrib. So if you've got Contrib among your repositories, you can install package susepaste and try it. Just two examples of usage:

dmesg | susepaste
susepaste /etc/fstab

This should give you an easy hint how to use ti face-wink.png

sources: http://www.gitorious.org/opensuse/paste
service: http://susepaste.org
script: http://susepaste.org/script/susepaste

#1 Re: openSUSE Paste

cb400f, <> / Saturday 31 July 2010 9:24am  
avatar

Great. I've already updated the bot factoid so, SUSEhelp will suggest using susepaste on IRC.

[ Reply (0) ]

#2 Re: openSUSE Paste

Sebastian Siebert, <E-Mail> / Wednesday 11 August 2010 3:17am  
avatar

Hi,

thanks for the useful service. I write a script for opensuse-user with AMD/ATI graphics card. The script can generate a report and upload it to susepaste.org with cURL.

But I get this error message:
A Database Error Occurred:
Error Number: 1153

Got a packet bigger than 'max_allowed_packet' bytes

INSERT INTO `pastes` (`id`, `created`, `raw`, `lang`, `replyto`, `name`, `title`, `private`, `pid`, `toexpire`, `expire`, `paste`) VALUES (NULL, 1281491166, '------------------------------------------------\n System and diagnostic report\n------------------------------------------------\n Generated by makerpm-ati-10.8.sh\n at 2010-08-11 03:32:51\n\n Script was written by\n Sebastian Siebert\n Website: http://www.sebastian-siebert.de\n------------------------------------------------\n\n\n\n# OUTPUT: /bin/uname -a\n------------------------------------------------\nLinux linux 2.6.34-12-desktop #1 SMP PREEMPT 2010-06-29 02:39:08 +0200 x86_64 x86_64 x86_64 GNU/Linux\n
...

The file size is ~260 KB

This include following report:
- uname -a
- /etc/SuSE-release
- /proc/version
- gcc --version
- fglrxinfo
- ldd fglrxinfo
- env
- /proc/cpuinfo
- /proc/meminfo
- lspci -nn
- /proc/ati/*/*
- /etc/X11/xorg.conf.d/*
- /etc/X11/xorg.conf
- /var/log/Xorg.*.log
- dmesg
- lsmod
- /etc/ati/amdpcsdb
- /etc/ati/amdpcsdb.default
- hwinfo --monitor
- hwinfo --gfxcard
- rpm -qa | grep fglrx
- /boot/grub/menu.lst
- /etc/sysconfig/kernel

Can you increase your database the 'max_allowed_packet' bytes to 512 KB?

Thank you very much for your great work.

Greeting,

Sebastian
(openSUSE Member Freespacer)

[ Reply (0) ]

Leave a Comment

Write the captcha code you are seeing.

Comment XML feeds: RSS | Atom

openSUSE Conference 2010

Identica

  • Last ride in the driving school on Wednesday, then the exams on Monday, I wonder whether I'll make it...
    4 days ago :: link
  • Did you knew that all ducks are wearing dog mask? http://i.imgur.com/XSVIy.jpg
    18 days ago :: link
  • Firt ride in the driving school. No crush, kill or destroy so I guess it's going well so far :-D
    18 days ago :: link
  • Already at #frosconn preparing for !openSUSE Connect hacking session!
    20 days ago :: link
  • Are you interested in !openSUSE Connect? Join us at #froscon! http://bit.ly/dDdKIp
    23 days ago :: link

Ohloh Journal for Michal Hrušecký

  • Working on Affisix slides for ITAT2010. Got frist slide with caption and one from the middle of the slideshow. The rest is still only in my TODO ;-)
    21 hours ago :: link
  • Finally pushed Affisix version that supports variables in the way I'm satisfied with. Time to get back to the documentation fixing ;-)
    11 days ago :: link
  • Article about Affisix was acceptet for ITAT 2010! Time to fix everything that reviewers complained about!
    78 days ago :: link
  • Abstract for ITAT2020 about Affisix sent, working on the article now...
    108 days ago :: link
  • Just commited basit filter mode support to the Affisix repository. It is still missing a lot of features, but the basics are already there!
    134 days ago :: link

Emblems

Powered By Jaws Project
Supports RSS2
Supports Atom
Powered By openSUSE
Powered By Vim
Is Valid XHTML
Is Valid CSS
Is Valid RSS2