Home Random Sh17cast Forums

How To: Eggdrop 1.6.19 + SSL on Gentoo 64 bit

Wednesday, March 4, 2009

Update: The official version in Gentoo’s repo has been bumped for a while now including the SSL patch. You shouldn’t need to follow the instructions here.

We rebuilt our server a few weeks ago, and I was just now getting around to putting eggdrop on it again and setting up the sh17radio bot we had before.

I installed eggdrop-1.6.18 through portage, and everything was cool until I tried to connect via SSL.

[02:35] Trying server irc.thesh17.com:7000
[02:35] DNS resolved irc.thesh17.com to x.x.x.x
[02:35] net_switch_to_ssl()
[02:38] SSL_connect() = -1, error:00000000:lib(0):func(0):reason(0)
[02:38] SSL Failed connect to irc.thesh17.com (Error while switching to SSL).

Apparently eggdrop has some issues with SSL on 64 bit systems, but Egghelp has a few patches to fix this.   eggdrop 1.6.19 has been out since April, but the ebuilds in Gentoo Portage haven’t been updated yet for whatever reason so I took it upon myself to update my own ebuild and share it here.

Note:  I did find this gentoo bug for a version bump.   This is where the  eggdrop-1.6.19-patches-1.0.tar.bz2 file came from with all of the patches.

How to install the eggdrop-1.6.19 ebuild?

If you already have a local portage overlay set up, ignore step 1 & 2.   Otherwise, we need to create a portage overlay directory and add it to make.conf.

  1. [code]mkdir -p /usr/local/portage/net-irc/eggdrop[/code]
  2. [code]echo ‘PORTDIR_OVERLAY=”/usr/local/portage”‘ >> /etc/make.conf[/code]
  3. Now we need to actually download/install the updated ebuild
    [code lang=”bash”]cd /usr/local/portage/net-irc/eggdrop
    wget https://www.thesh17.com/wp/wp-content/uploads/2009/03/eggdrop-1619-tstar.bz2
    tar xvjf eggdrop-1619-tstar.bz2[/code]
  4. After we extract it, delete the tarball and copy the patches to the distfiles directory
    [code]rm -f eggdrop-1619-tstar.bz2 ; cp -v files/eggdrop-1.6.19-patches-1.0.tar.bz2 /usr/portage/distfiles/[/code]
  5. You’ll probably need to add eggdrop to your package.keywords file now, so change amd64 to whatever keyword you would normally use on your system (Note:  I only added it specifically for this version)
    [code]echo “=net-irc/eggdrop-1.6.19 ~amd64” >> /etc/portage/package.keywords[/code]
  6. Now, emerge!
    [code]emerge -av eggdrop[/code]
  7. If you haven’t used eggrop before, then you’d want to log in as the user you’re planning to run it on then run ‘eggdrop-installer’

After installing the new ebuild, everything connects successfully 🙂

[02:55] main: entering loop
[02:55] Trying server irc.thesh17.com:7000
[02:55] DNS resolved irc.thesh17.com to x.x.x.x
[02:55] net_switch_to_ssl()
[02:55] SSL_connect() success
[02:55] net: connect! sock 8
[02:55] Connected to irc.thesh17.com

Expect more posts later on, and check out my previous eggdrop post if you want to set up a bot that announces shoutcast stations.

Post in the comments if you have any trouble getting it to work and I’ll help you out.

posted by johntash at 4:58 am  

Cold Boot Beats Your Disk Encryption

Monday, February 25, 2008

Do you use Microsoft Window’s Bitlocker?   TrueCrypt?  DMCrypt?  Or whatever the hell Apple calls their disk encryption?

If you do.  Here’s something for you to think about.   That encryption key is more vulnerable than you probably realize.  It’s always going to be sitting somewhere in your ram while you’re logged onto your system.  If you put your machine to sleep, it’s going to be there.   Even if you completely power off your laptop/computer, it will still be sitting in that ram chip for at least a little while.

This video demonstrates an attack against Bitlocker:

Want to feel safe again?

  • Always shutdown your computer.  Not sleep,hibernate, or any other lowpower state.
  • Find a program to scramble your ram on shutdown.
  • Don’t use liquid nitrogen to cool your ram.
  • Reevaluate your encryption needs, because most likely you don’t need to encrypt the WHOLE disk.  If you’re using linux; look into setting up encryption per user per their home folder.

posted by johntash at 6:47 pm  

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

Tuesday, May 1, 2007

The number of the day is 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

Digg got told by HD DVD to remove a story about hd-dvd’s processing key from doom9’s forums and now the internet’s basically pissed at them for choosing a sponsor over their users. Digg users are revolting by digging only stories with the key to the front page of digg.

There’s t-shirts, songs, videos, domains, and lots of other creative things containing the key now. ThePirateBay is embracing the numbers.

I’ll wait til andy watches the next episode of diggnation and see if they say anything about it.

Posts that contain 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 per day for the last 30 days.
Technorati Chart
Get your own chart!

PS: Digg this

posted by johntash at 11:06 pm  

Video of the Day: Escape from Handcuffs

Saturday, April 14, 2007

I’m sure everyone has known how to do this since they were like 5, but it’s neat anyway.

(Update 9/13/08: Updated youtube video link.  The old video was removed)

posted by johntash at 9:27 am  

Embedded Video Plugin Modified to show videos in feeds

Friday, March 30, 2007

It’s been slightly annoying me that videos weren’t showing up in The Sh17’s RSS feed, so I decided to modify the plugin I’ve been using.

From the author’s page: jovelblog » Embedded Video with Link

V3.0 – 30.01.2007

* plugin ready for WordPress 2.1!
* removed video object in feed, just a link instead
* added video portal: brightcove, aniBOOM
* added support for local media files like mov, avi, mpg, flv, swf

I guess videos showed up in feeds up until version 3.0. I started editing the embedded-video.php file and around line 132 is where my modifications start.
Lines 132 to 159. All I did was comment out the if/else statement.
//if ( !is_feed() ) {
switch ($match[1]) {
case "youtube": $output .= YOUTUBE_TARGET; break;
case "google": $output .= GOOGLE_TARGET; break;
case "myvideo": $output .= MYVIDEO_TARGET; break;
case "clipfish": $output .= CLIPFISH_TARGET; break;
case "sevenload": $output .= SEVENLOAD_TARGET; break;
case "revver": $output .= REVVER_TARGET; break;
case "metacafe": $output .= METACAFE_TARGET; break;
case "yahoo": $output .= YAHOO_TARGET; break;
case "ifilm": $output .= IFILM_TARGET; break;
case "myspace": $output .= MYSPACE_TARGET; break;
case "brightcove": $output .= BRIGHTCOVE_TARGET; break;
case "aniboom": $output .= ANIBOOM_TARGET; break;
case "vimeo": $output .= VIMEO_TARGET; break;
case "guba": $output .= GUBA_TARGET; break;
case "dailymotion": $output .= DAILYMOTION_TARGET; $match[3] = "nolink"; break;
case "garagetv": $output .= GARAGE_TARGET; $match[3] = "nolink"; break;
case "local":
if (preg_match("%([[:print:]]+).(mov|qt)$%", $match[2])) { $output .= QUICKTIME_TARGET; break; }
elseif (preg_match("%([[:print:]]+).(wmv|mpg|mpeg|mpe|asf|asx|wax|wmv|wmx|avi)$%", $match[2])) { $output .= VIDEO_TARGET; break; }
elseif (preg_match("%([[:print:]]+).(swf|flv)$%", $match[2])) { $output .= FLASHPLAYER_TARGET; break; }
default: break;
//} else {
// if a feed, overwrite nolink option
//$match[3] = "Link";

And I added this:

//add generic <noembed> so that feed readers that dont support it won't get confused
$output .= "<noembed>--There's a video here that you can't see. You should check out the blog post and watch it.--</noembed>";

Now. With any luck, video’s will start showing up in feeds. If the plugin doesn’t get updated anytime soon, I’ll extend it and just have it post a thumbnail of the video or something with a link to the post.

For a test:

posted by johntash at 6:36 pm  

Balancing one wheel scooter

Friday, March 9, 2007

Hack a Day just posted this. A one wheeled balancing scooter. From the creators website:

I’ve put together this page to document a one-wheeled balancing scooter / skateboard that I’ve just finished. It’s the culmination of several iterations over the last few years, and definitely my favourite.

It’s very similar to a snowboard to ride, requiring no user input other than the movement of your body mass. Leaning forwards and backwards controls the velocity and moving your weight from heal to toe controls the turn radius. It’s easy and very intuitive to ride.”

I want one of these things; it looks pretty fun. Here’s a couple pictures and a video of it in action.

One Wheeled Balancing Scooter 3

One Wheeled Balancing Scooter 2

More: Balancing one wheel scooter – Hack a Day

posted by johntash at 1:13 am  

27 queries. 0.167 seconds.
Copyright © 2007-2010 http://www.thesh17.com