Home Random Sh17cast Forums

Hitler Loses Faith in Apple

Wednesday, February 10, 2010

Hitler rages about his disappointment after hearing about Apple’s new Ipad.

“How am I supposed to play Bloons!”

posted by johntash at 5:46 am  

Upgraded udev on a Gentoo Xen guest recently? Easy fix.

Wednesday, January 27, 2010

I guess some time in the last few months, I updated udev on my Gentoo Xen Guest. Normally, this wouldn’t be a problem and it wasn’t since I didn’t need to reboot the system until yesterday. It wouldn’t come back up automatically, so I consoled the domain with xm, and saw this:

* Mounting proc at /proc ... [ ok ]
* Mounting sysfs at /sys ... [ ok ]
* Your kernel is too old to work with this version of udev.
* Current udev only supports Linux kernel 2.6.25 and newer.
* Could not create /dev/pts!
* Checking root filesystem ...Failed to open the device '/dev/hda2': No such file or directory

* Filesystem couldn't be fixed :(
[ !! ]
Give root password for maintenance
(or type Control-D to continue):

Of course I didn’t read the obvious error at first, and started messing around with other things before finally realizing the kernel the Xen domain is booting from is still at version 2.6.18. I had two options:
1) upgrade the domu kernel from xen-sources (>2.6.18-r12 still being masked on this system) and copy it to the xen host for the vm to boot from.
2) downgrade udev and pretend it never happened.

I chose #2, mainly because it’d take less time and work.
In short, here’s what I did:
Note: This is all from root on the Xen Dom0, not the guest machine.. since it wouldn’t boot yet.

root@Dom-0:# mount /dev/sde5 /mnt/gentoo
root@Dom-0:# mount -t proc none /mnt/gentoo/proc
root@Dom-0:# mount -o bind /dev /mnt/gentoo/dev
root@Dom-0:# chroot /mnt/gentoo /bin/bash
root@Dom-0:# env-update; source /etc/profile; export PS1="(chroot) $PS1"
root@Dom-0:# echo ">=sys-fs/udev-141" >> /etc/portage/package.mask
root@Dom-0:# emerge -avDu udev

And that was it! Started up the gentoo xen domain again, and it booted right up.

posted by johntash at 3:34 pm  

Search and Replace using VIM

Sunday, November 1, 2009

I always forget little things like this.       Today I changed the dyndns hostname I’ve been using on a server, and needed to update my Apache vhost .conf file to reflect the new domain.      There’s only about 10-15 virtual hosts in this file, but I still didn’t want to manually edit it.    I’m lazy.

vim 90_bac.supercoolname.tld.conf

Once you’re in vim, it’s super-easy to do a find and replace.     This is the command I ran:


%s tells vim to search through the entire file.

/g tells vim to replace every instance of bac.supercoolname.tld with bac.evenbettername.tld

There’s a ton of other useful stuff you can do with regular expressions, but this is something I forget a lot when I don’t use it frequently.

posted by johntash at 1:14 pm  

Nmap 5.00 Released

Thursday, July 16, 2009

Just a quick news update.    was released today!

In case you’re not aware, Nmap’s a free/open-source network scanner, and this is the first major release in quite some time.      I’m installing it now and will update when I get a chance to try some of the new features out 🙂

Head over to their for a detailed list of the changes, but here’s the top 5 improvements(as listed by them) :

  1. The new tool aims to be your for data transfer, redirection, and debugging. We released a whole detailing security testing and network administration tasks made easy with Ncat.
  2. The is one of Nmap’s most powerful and flexible features. It allows users to write (and share) simple scripts to automate a wide variety of networking tasks. Those scripts are then executed in parallel with the speed and efficiency you expect from Nmap. All existing scripts have been 搬瓦工 improved, and 32 new ones added. New scripts include a whole bunch of MSRPC/NetBIOS attacks, queries, and vulnerability probes; open proxy detection; whois and AS number lookup queries; brute force attack scripts against the SNMP and POP3 protocols; and . All NSE scripts and modules are described in the new .
  3. We released , the official Nmap guide to network discovery and security scanning. From explaining port scanning basics for novices to detailing low-level packet crafting methods used by advanced hackers, this book suits all levels of security and networking professionals. A 42-page reference guide documents every Nmap feature and option, while the rest of the book demonstrates how to apply those features to quickly solve real-world tasks. More than half the book is .
  4. The addition of the completes Nmap’s growth into a whole suite of applications which work together to serve network administrators and security practitioners. Ndiff makes it easy to automatically scan your network daily and report on any changes (systems coming up or going down or changes to the software services they are running). The other two tools now packaged with Nmap itself are Ncat and the Zenmap GUI and results viewer.
  5. Nmap performance has . We spent last summer scanning much of the Internet and merging that data with internal enterprise scan logs to determine the most commonly open ports. This allows Nmap to scan fewer ports by default while finding more open ports. We also added a fixed-rate scan engine so you can bypass Nmap’s congestion control algorithms and scan at exactly the rate (packets per second) you specify.

posted by johntash at 2:37 pm  

Supercomputers – Future game show contestants?

Thursday, June 4, 2009

I came across this piece of [old] news at CIO.   Apparently IBM is working on a new super computer code-named “Watson”.   They’re trying to take Artificial Intelligence to the next level with this machine, and think it’ll be capable of competing with humans on game shows like Jeopardy.

“Watson, in its final stages of development, is a question answering system that has been in development for nearly two years. Underneath Watson’s hood, natural language processing and other technologies analyze meanings behind words. This gives Watson the ability to identify relevant and irrelevant content, interpret ambiguous expression and puns, decompose questions into sub-questions, and synthesize information to form an answer, IBM says. Watson considers massive volumes and varieties of natural language, then quickly analyzes and scores supporting or refuting evidence—in a matter of seconds.”

With Wolfram Aplha out now and Google Squared in the works, it seems like there’s actually quite a bit of work going on with AI-ish programs lately.     I’m looking forward to hearing more about AI development.

Read more at IBM Supercomputer to Compete on Jeopardy.

posted by johntash at 5:25 am  

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 http://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  

Minimize Thunderbird to Tray

Thursday, November 27, 2008

I’ve been using mozilla thunderbird a lot more lately, mainly because of work.   It’s always bugged me that it doesn’t minimize to the tray by default.

It’s probably fairly obvious, but I ended up searching google for a little while and stumbling across old versions of a plugin 嘉盛 meant to minimize thunderbird to the windows system tray.    I should have just looked on mozilla’s website to begin with 🙂

To help someone else out when searching for “how to minimize thunderbird to tray”, go download the following extension:

See it in action(below and above):

MinimizeToTray options

posted by johntash at 11:23 pm  
Next Page »

33 queries. 0.138 seconds.
Copyright © 2007-2010 http://www.thesh17.com