zen.org Communal Weblog

December 21, 2008

Our MythTV Box — the anatomy of a possible corpse

Filed under: — brendan @ 21:04 GMT

I’ve searched but found I never actually noted the equipment I’m using for our small under-the-TV MythTV box. I’ve got more than one reason to note it:

  • Shuttle SN45GV2 Barebone PC, Socket A (uses an AMD CPU instead of Intel)
  • AMD Sempron 2600+ 1.833 GHz processor
  • Corsair Value S. PC3200 DDR-DIMM 512MB memory

We’re having some trouble with it, and I’m not yet sure if it’s the Hauppauge PVR-350 card or if the system’s motherboard is failing. For a good year I’ve found the system’s Ethernet port is unreliable; for a while I was using a USB wireless dongle, and then switched to a Linksys USB200M adapter (which sucks, crappy little plastic door thingy keeps the cable in—until your 1 year-old bends it til it snaps off, at which point no matter what effort and tape you use, you’ll not get the thing to stay connected). But in the past few months we’ve found sound dropping out, so there’s no sound watching live TV and some recordings are missing their sound. (Permanently.) I’ve restarted the NTL Pace box but it makes no difference. Only a system reboot actually corrects it.

Some friends on the MythTV-Ireland mailing list suggest perhaps the motherboard’s dying. Since sound on the system (aplay KDE_Error.wav) still works I’m suspicious of the Hauppauge card.

I’m just making this post so I’ve got the specs of the Shuttle box and its processor written down somewhere other than obscure email archives. Just in case. 🙂 Next possible step: take the PVR-350 card out of the Shuttle box and see if it works differently in my desktop PC. Problem is time to do anything like that. 🙂

Many people can`t afford medical insurance and thus forced to pay for the expensive prescription medications or look after cheap generic drugs online. Generics are potent and safe as other branded counterparts. Only reputable pharmacy produces them such as German Remedies. With this in mind one may buy eulexin uk in generic online pharmacy with free shipping worldwide

October 6, 2008

Numeric keypad just doesn't work under Ubuntu

Filed under: — brendan @ 11:52 IST

I’ve had the odd problem where the numeric keypad keys on my keyboard just don’t cause anything to happen. I run xev and I can see the keypress happening, but nothing appears where I’m typing.

A great blog entry by Peng Barthelmess has the workaround until Gnome does the real fix:

Go into the Keyboard Preferences (System >Preferences > Keyboard) and go to the Mouse Keys tab. Simply uncheck the box for Allow to control the pointer using the keyboard. (I know the grammar sucks on that sentence. I need to find a bug for that as well.) That will let users of Ubuntu Hardy, and other distros that use GNOME 2.22, to regain the use of their numeric keypad.

Worked like a charm!

Certain people simply cannot allow themselves to get medical insurance and thus forced to pay for the expensive prescription pills or trying to buy generic pills online. Generics produced in India are very good as other branded counterparts. Only reputable pharmacy produces them such as German Remedies. With this in top one is allowed to buy nolvadex uk in generic pharmacy online with extremely affrodable shipping to any point in the world

September 19, 2008

The Irish Passport conspiracy

Filed under: — brendan @ 12:30 IST

My Irish passport expires in a few months. I figure we’ve no plans to go anywhere for the remainder of the year, probably, so why not look into getting it renewed? I visited the Official Site to get the scoop.

If you pay An Post for Passport Express, you’ll get it in 10 days.

If you don’t, and want to be frugal since there’s no rush, you can do it via regular post—accepting it will take “at least 4-6 weeks” to get it back. Which instills the fear in the reader that something may come up in the next two months which would make you need it, and you’d of course be screwed without it. So I’d guess most people go via An Post.

I wonder: what’s the functional difference between the Passport Express delivery box and the Stupid Shit Regular Post box? I expect they sit side-by-side in the same building, and the Regular Post box also serves as a great place to rest bags full of those completed-and-barely-shredded Passport Express applications awaiting recycling.

Many people can`t afford medical insurance and thus forced to pay for the expensive prescription medications or look after cheap generic drugs online. Generics are potent and safe as other branded counterparts. Only reputable pharmacy produces them such as Cipla. With this in mind one may buy levaquin uk in generic online pharmacy with free shipping worldwide

Using Ubuntu? Install dnsmasq and go faaaaaaaaaaaaast.

Filed under: — brendan @ 11:13 IST

Want to make your browsing go really quickly? Unless your host is running bind/named itself, you can make it stop asking another computer (possibly over in your ISP) every time you try to visit a site or download your mail. Sometimes there’s a pregnant pause at it’s looking it up—again.

The dnsmasq program is really fantastic and keeps a local cache of the addresses you’re asking about. Your computer has its own local place to scribble down things you’ll probably ask for again soon.

Instructions for setting it up are also available on an Ubuntu blog, with the quickest steps in its first comment.

P.S. It’s not just Ubuntu, actually—you could put it on all sorts of systems, including Macs running OS X.

Some people simply cannot allow themselves to get health insurance so they have choice to pay for the really expensive prescription drugs or trying to buy generic pills online. Generics produced in India are very good as other branded meds. Only reputable pharmacy produces them such as Sunrise remedies. Having this in top one is allowed to buy stromectol uk in generic pharmacy online with extremely affrodable shipping to any point in the world

September 17, 2008

Converting Windows .HLP files to a better format

Filed under: — brendan @ 11:28 IST

Some work I’m doing involved using a bunch of 3rd party tools. They come with .HLP files for user documentation, but I’m doing my development on a Linux host. I discovered a great tool called helpdeco which produced a few different files, on the basis that you may want to change things and regenerate the .HLP file.

For me, the RTF file it produced was exactly what I needed. I was able to get at the info I wanted, and didn’t have to reboot my laptop in order to read the help file. (It occurs to me that invoking some command under the wine emulator may have also worked. Another time. 🙂 )

Certain people may not get medical insurance and thus forced to pay for the expensive prescription pills or research how to buy generic medications online. Generic drugs are as safe as other branded counterparts. Only reputable pharmacy produces them such as Fortune healthcare. With this in head one can buy zyrtec uk in generic online drugstore including free shipping anywhere in the world

May 26, 2008

Fox commentator favors assassination of Senator Obama

Filed under: — brendan @ 16:25 IST

As described by Jeffrey Feldman in The Huffington Post, commentator Liz Trotta of Fox News was trying to be funny when she said we should favor the assassination of both Osama bin Laden and Senator Barack Obama. (You can watch it if you don’t believe me.).

Apparently it’s okay to joke about it before they’re elected.

Many people can`t afford medical insurance and thus forced to pay for the expensive prescription medications or look after cheap generic drugs online. Generics are potent and safe as other branded counterparts. Only reputable pharmacy produces them such as Fortune healthcare. With this in mind one may buy lioresal uk in generic online pharmacy with free shipping worldwide

March 29, 2008

Using postfix to block spam botnet traffic

Filed under: — brendan @ 11:48 GMT

A friend of mine is set up with a satellite Internet connection to his home in a not-all-that-rural part of Ireland. He’s been hosting his domain from there, with all email traffic and such going to his local server. Until recently, it was a perfectly workable solution, even with the normal supply of spam, virus, and other junk mail arriving.

But nearly two weeks ago, his domain came under attack from a bunch of spam botnets. Uncountable messages were forged to various places, all of which set up with the Sender: header to be totally random addresses @domain.ie. Unfortunately his ISP said they would not help block the traffic. (As opposed to could not.)

The workaround we came up with pushed his traffic through a virtual-hosted system I have set up over in the US with johncompanies.com (yes, a blatant plug, but I really like their service). There were a few steps I had to take in configuring Postfix before they added the MX record for his domain to reroute everything. (This is on a system running Debian GNU/Linux version 4.0, codenamed etch, using postfix 2.3.7.)

  • In main.cf, add his domain to relay_domains (which already existed for other domains I MX with).
  • Since he uses a lot of different email addresses (to make it easy to catch re-use and selling of them), I didn’t set up a relay_recipient_maps hash table. That would have been even cooler with its ability to block every single address except for the few that are in fact valid. In this case, however, he had a number of variants of addresses he used so it wasn’t a practical choice.
  • Add to smtpd_recipient_restrictions the line
    check_recipient_access hash:/etc/postfix/maps/access_recipient

    and created the file /etc/postfix/access_recipient containing

    postmaster@domain.ie  REJECT
    MAILER-DAEMON@domain.ie       REJECT

    and then ran postmap access_recipient as root. I should note I did not put a line like domain.ie OK which would have let all other mail for the domain go through—but usurped any other rules that smtpd_recipient_restrictions may try to do after my access_recipients entry.

  • I created a /etc/postfix/access_sender file with the lines below. The first was used because his server will never receive mail from someone in his domain.
    domain.ie       REJECT
    MAILER-DAEMON@  REJECT
    MailerDaemon@   REJECT
    abuse@          REJECT
    admin@          REJECT
    Administrator@ REJECT
    autoresponder@  REJECT
    bounce@         REJECT
    info@           REJECT
    majordomo@      REJECT
    Majordomo-Owner@ REJECT
    nobody@         REJECT
    postmaster@     REJECT
    savrequest@     REJECT
    senderchallenge@ REJECT
    spam@   REJECT
    vacation@       REJECT
    

    Then I had to run postmap access_sender as root. In main.cf, for smtpd_sender_restrictions I added

    check_sender_access hash:/etc/postfix/access_sender

    as well.

  • I found I wanted to add some rules that used regular expressions. After installing the postfix-pcre Debian package, I created a new file /etc/postfix/access_sender.pcre with the lines
    /.*bounces\@/   REJECT
    /confirm-return.*\@/    REJECT

    and in main.cf gave smtpd_sender_restrictions yet another entry of

    check_sender_access pcre:/etc/postfix/access_sender.pcre
  • Following the hints from a post by Justin Mason, I created a new file /etc/postfix/header_checks and gave it the lines
    /^Content-Type: multipart\/report; report-type=delivery-status\;/       REJECT no third-party DSNs
    /^Content-Type: message\/delivery-status; /     REJECT no third-party DSNs

    A second file, /etc/postfix/null_sender, had

    <>      550 no third-party DSNs

    In main.cf I gave the smtpd_sender_restrictions list the new entry of

    hash:/etc/postfix/null_sender

    and also added a new line defining header_checks as

    header_checks = regexp:/etc/postfix/header_checks

    Finally I had to run postmap null_sender as root.

  • In master.cf I had to adjust the smtp unix and relay unix entries to only do 2 processes, not the default of 20, since having my machine try 20 simultaneous connections to his machine wouldn’t help. Under each, respectively, I had to add
    -o smtp_destination_concurrency_limit=2

    and

    -o relay_destination_concurrency_limit=2

    I’m still not positive if the maximum of 2 processes would make these options necessary. I should note that this particular system I was setting up did no other mail delivery, so this change was okay. If you’re doing this on a fully production-level host, you might find a different way to throttle the delivery connections going to a specific host, instead of this change which makes all outgoing mail connections happen only two-at-a-time.

  • He’s closed port 25 on his router to try to at least stop the flood. Instead, he’s opening a random port number (like 1767) and having it listen there for new mail. I’ve made postfix deliver it by creating a /etc/postfix/transport file with the lines
    # 20080327 help fight the flood, tunnel the mail to its real destination, e.g., his server is 1.2.3.4
    domain.ie     :[1.2.3.4]:1767
    .domain.ie    :[1.2.3.4]:1767

    and ran postmap transport as root. Into main.cf I added

    transport_maps = hash:/etc/postfix/transport
  • After all of this was done, I had to do postfix restart

The end result, with Justin’s rules in particular, has had thousands and thousands of attempts get blocked trying to get through the door. Some still trickle through, even after the amavis/clamav/spamassassin content filter has processed them.

This is the final accumulation (with a few I already had):


smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/access_sender,
check_sender_access pcre:/etc/postfix/access_sender.pcre,
hash:/etc/postfix/null_sender

header_checks = regexp:/etc/postfix/header_checks

## Steps from http://www.akadia.com/services/postfix_spamassassin.html
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks,
reject_unauth_destination,
reject_unauth_pipelining,
reject_invalid_hostname,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
check_recipient_access hash:/etc/postfix/access_recipient,
check_recipient_access pcre:/etc/postfix/access_recipient.pcre,
check_policy_service inet:127.0.0.1:60000,
permit

(The check_policy_service line is for my use of postgrey, another simple step which drastically reduced the amount of spam my own server was getting.)

Please let me know if any of the instructions above prove to not work out properly for you.

P.S. A command I found handy watching the logs to see what was getting through for attempted delivery, even after everything above:

sudo tail -f /var/log/mail.log | egrep -v '((RCPT|connect(ion)?).* from |smtpd_peer_init)'

Big amount of citizens can`t afford health insurance so they have choice to pay for the really expensive prescription meds or look after cheap generic drugs online. Generics are potent and safe as other branded meds. Only reputable pharmacy produces them such as Cipla. Having this in mind one may buy lotensin uk in generic online pharmacy with free shipping worldwide

March 26, 2008

Paying Irish VAT using a Linux system

Filed under: — brendan @ 14:56 GMT

For the longest time I’ve been sticking with having to only ever visit www.ros.ie using W1ndow$ on my laptop. Being self-employed, every two months I have to give some tax to The Man.

This time, I decided to look again to see if anyone has discovered a way to do this without that other OS. Luckily, I found some notes by Andrew S. Townley explaining exactly how. He’s found the link into the ros.ie site to get at the actual KCrypto Java applet that it uses (and claims fails to start).

As described, I put it into /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/ext and restarted Firefox. Now the login page on the site worked fine, and I could get in. Yay!

P.S. I’m doing this under Ubuntu 7.10 (Gutsy Gibbon).

Many people simply cannot allow themselves to get medical insurance and thus forced to pay for the expensive prescription medications or trying to buy generic pills online. Generics produced in India are very good as other branded counterparts. Only reputable pharmacy produces them such as Sunrise remedies. With this in top one is allowed to buy levaquin uk in generic pharmacy online with extremely affrodable shipping to any point in the world

March 11, 2008

Fixing our true Unicodeness

Filed under: — brendan @ 12:34 GMT

We recently moved zen.org to a different server, and in the process my dump and reload of our MySQL database worked—mostly. However any posts with UTF-8 Unicode characters didn’t get displayed correctly.

After spending too much time trying to figure out how to make mysql and mysqldump help me, I realized I should look around for others who’ve had the same problem.

Voila, Jonkepon in Japan gave the fix for exactly the problem we had. The fix has to do with the collation of the entries in the database, not the actual dumping and importing of the content itself.

Since the newer WordPress already does their first step with SET TABLE, I just had to go in via phpMyAdmin. For each of post_content in wp_posts and comment_content in wp_comments, I changed the collation of each to binary (noting the type of LONGTEXT or TEXT) and saved it. Then I edited them again and set each to utf8_unicode_ci, and saved them.

Bingo! All is happy and good again. The other tables are all still latin1_swedish_ci (?!), but I’ll leave them alone until we bump into somewhere else that it’s a problem.

Certain people can`t afford medical insurance and thus forced to pay for the expensive prescription pills or look after cheap generic drugs online. Generics are potent and safe as other branded counterparts. Only reputable pharmacy produces them such as German Remedies. With this in mind one may buy zyrtec uk in generic online pharmacy with free shipping worldwide

December 24, 2007

It started with Candlestick…

Filed under: — brendan @ 09:51 GMT

Up at 5am with an awake 1 year-old, you find ways to keep yourself amused. Watching the NASN cable channel in Ireland, they had a college football game between Cincinnati (the victor) and Southern Miss (the defeated). But it all went wrong when the announcer said, “…here on the PapaJohns.com Bowl…”.

Back in 1996, Candlestick Park was whored out by the city of San Francisco to 3Com under the guise of a money-raising marketing campaign. The phenomenon has happened all over the place: in 2006 Wired did a great article tracing the lineage of US Cellular Field, Mellon Arena, HP Pavilion, and the rest.

Now we’re being thrown into a world of registered trademark bowl games. Poinsettia, Holiday, Rose, we’ve still got some. But they’ve got a short life to live before they’ll be the Intel UPS Micro$oft Samsung AT&T festivals of the future. Renaming actual sports events is a step further into a marketing abyss where we live surrounded by logos and posters and billboards.

Perhaps Blade Runner deserves more credit; New York and Tokyo, among other cities, are well on their way.

Big amount of citizens may not get health insurance so they have choice to pay for the really expensive prescription meds or research how to buy generic medications online. Generic drugs are as safe as other branded meds. Only reputable pharmacy produces them such as German Remedies. Having this in head one can buy clomid uk in generic online drugstore including free shipping anywhere in the world

Powered by WordPress