Linux

Epson 4490 Scanner in linux

According to http://ubuntuforums.org/showthread.php?t=1432944&page=2 and the FAQ at http://download.ebz.epson.net/faq/linux/faq_ls_00002.html you need to install two packages to get it working in Linux:

iscan-data
iscan

but it didn't work for me until I also installed

iscan-plugin-gt-x750

Hope this helps someone.

search for 4490 at this page to get the download links:

http://download.ebz.epson.net/dsc/search/01/search/searchModule

Verizon Samsung Galaxy S3 ROM modifications

I just want to quickly document some of the things I did in order to root my new Samsung Galaxy SIII.

When I got it last weekend the system had Android 4.1.1 on it and it immediately started prompting me to update the ROM Over The Air (OTA). I chose to defer this so I could research available ROMS as sometimes newer ROMS can be harder to root. It turns out there was already a process to root even 4.1.2.

Most of the guides for rooting use Odin which is a Windows only app however Cyanogenmod has a process documented that uses heimdall which is a free software implementation of the same protocol that Odin uses that is also cross platform (including Linux). I found the ROM I wanted to update to (a rooted version of the OTA update for 4.1.2) here:

http://forum.xda-developers.com/showthread.php?t=2178482

I then tried to adapt the process to install Cyanogenmod from here:

http://wiki.cyanogenmod.org/w/Install_CM_for_d2vzw

This got me to a point where clockworkmod allowed me to install the ROM from the xda-developers thread above.

However after I rebooted my phone booted to a yellow notification that said it had prohibited software on it and to take the phone to a Verizon store. I think this was because I accidentally skipped step 7 above:

7. Flash bootloader zipfile via recovery:

The other possibility (and I barely understand this) is that there were compatibility differences between the boot files I installed and the one needed/included with the ROM.

No worries, someone else had this problem and it can be fixed by entering download mode and reflashing a stock ROM. I did that using this guide:

http://forum.xda-developers.com/showthread.php?t=1974114

Now, I think technically heimdall can do this but you have to pass a ton of options and specify each file independently whereas with Odin you can specify just the tar.md5 file, so I fired up a Windows system and just used Odin. That got me back. I followed the rest of the instructions in the last thread to end up with Clockwork Mod Recovery, rooted and with an unlocked bootloader. Then, I used clockworkmod to install the original ROM I wanted from thread 2178482 above.

Whew.

Now I have a good starting point.. Time to figure out how to remove all these Verizon apps.

Thunderbird Change Time display from 12 hr to 24 hr

http://lildude.co.uk/howto-customise-thunderbird-date-format

Using the script from above I found what I wanted
YYYY-MM-DD
%H:%M:%S

===
de_AT
d_fmt="%Y-%m-%d"
t_fmt="%T"
===
start thunderbird like so

$ LC_TIME=de_AT thunderbird

If you use LC_ALL=de_AT Thunderbird will use german completely, not just for time/date

Now how can I easily launch Thunderbird from Gnome 3 on Fedora 18 easily?

EDIT: Make a script and add it with alacarte:
http://blog.randell.ph/2011/08/01/how-to-create-custom-application-launc...

Automatically remove last machine sshed to from known_hosts file

If you ssh to machines that get reprovisioned often you get the familiar ssh warning:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!

You can use ssh-keygen -R $hostname to remove it from your known_hosts file. Thanks to Evan McNabb for that one. He suggested aliasing 'dk' for "delete key" into your ~/.bashrc like so:

alias dk='ssh-keygen -R '

which works well, but you have to copy paste the hostname you just sshed to after 'dk'. The other day I figured out a way to automate 'dk' into removing the system by pulling the hostname from bash history. You can put this in your .bashrc:

function dk() {
ssh-keygen -R $(history 2 | head -n 1 | awk '{print $3}' | sed 's/.*@//')
}

Since I'm learning bash more extensively and for others that don't already know what it does: it uses bash command substitution like '$(echo hi)' to first run the history command and show the last two commands run (the ssh and history commands) and then head is used to only print the first line, awk is used to print the third column, the user@hostname part and then sed is used to replace any username@ with nothing, then that hostname is given to ssh-keygen -R.

Android Trojan using SMS and email from user's Address book

My Girlfriend got the following SMS messages on her Android phone (HTC EVO on Sprint)

From December 11, 2012 she is pretty sure she followed this one:

My name is Chris. You mobile is on the third place. Your X-mas code for http://[redacted]target.com?EAHEGHBCHE is 5473

She may or may not have followed the link in this one:
From December 6, 2012

Your contact last day has WON! Visit http://[redacted]/?3968, put your code 3968 to recive card within 24hours.

I thought it might be this: Android Trojan Used To Create Simple SMS Spam Botnet

or this: Android Trojan Can Partake in DDoS Attacks, Send SMS Spam

Then, today her phone emailed and SMSed many messages[1] with a URL to many of her contacts, presumably from her phone's address book. The software used in the trojan Cloudmark identified is known as SpamSoldier. SpamSoldier apparently downloads a list of address from a command and control server in order to spread, which is obviously different than the address book used by the trojan on my girlfriend's phone. This doesn't match the SpamSoldier signature. Additionally I couldn't find any of the apk file names listed by Cloudmark on her phone.

The second trojan I linked to is named Android.DDoS.1.origin and I couldn't find this on her phone either. If anyone has any more information let me know via email: 'johnbrier' at the popular google email service.. I'll update here as I find more info.

1)
An example of one of the messages received over email is the following:

http://[redacted].eu/tgcyoll.php

Migrating CQRLOG from one PC to another

I had to do this just now and I thought I would document it (at least for myself) and maybe it will help others.

This probably isn't all the things everyone might have to do but it works for how I use CQRLOG

I use Fedora 16 x86_64
I use the binary release of CQRLOG "Complete application directory"
I mostly just use CQRLOG to log my contacts and upload them to LoTW, nothing else (so far)
I use CQRLOG 1.3.0

Install dependencies

yum install openssl-devel (needed for LoTW upload support)
yum install hamlib
yum install mysql-server (interesting this binary release of CQRLOG uses distro provided mysql but starts it manually, so you do NOT need to do 'systemctl enable mysqld.service')
yum install trustedqsl

run tqslcert and load your .p12 certificate file
run tqsl and readd your location with the same name as on the other computer

tar up the .config directory for cqrlog from the original computer

tar -cjvf /tmp/cqrlog-backup.tar.bz2 ~/.config/cqrlog/

transfer the cqrlog-backup.tar.bz2 to the new PC and extract it
cd ~/
tar -xvf /path/to/cqrlog-backup.tar.bz2

Download cqrlog_1.3.0_amd64.tar.gz from http://www.cqrlog.com/?q=webfm_send/222/1

cd ~/
tar -xvf /path/to/cqrlog_1.3.0_amd64.tar.gz
run cqrlog as normal

~/cqrlog-1.3.0/usr/bin/cqrlog

All should be good.

Creating a QSL card in Inkscape

So since I've become active in ham radio again I have been working 17 meters SSB pretty regularly. The other day I worked a French station F2FG and apparently he needs North Carolina for his Worked All States (WAS) award. I know this because he sent me his QSL card requesting I send him mine to confirm the contact, specifically mentioning WAS. Well that creates kind of a problem because the only QSL cards I have are from when I lived with my parents in Wilmington and I don't live there anymore, plus those cards were ugly anyway!

So I have some free time on my hands and I got started using the Free and Open Source vector graphics editor, Inkscape. I was familiar with this tool and wanted to give it a shot so I went through some tutorials and went at it. I was picking it up alright but I had some issues so I asked my friend Patrick Connelly who has done some work for me in the past with it for some help. He whipped up a template for my required size which I had measured from other QSL cards I had as either 5 1/2" (w) x 3 1/2" (h) or 140mm (w) x 90mm (h). What I had been doing was making the page layout as small as a single card. I asked Patrick how I would want to store this for printing, ie one file with both sides or two separate files.

HP Touchpad and Preware to improve performance

My buddy Michael picked up an HP Touchpad at $99 and gave it to me for my birthday. I have been enjoying it a lot. At first it seemed too heavy to be a tablet. I thought you were supposed to be able to hold tablets with one hand comfortably but this one needs two after an extended period of time or it needs to lean against something.

Recently some of my friends who have had the Touchpad for a bit longer than me suggested I install Preware so I could install the Uberkernel which increases the CPU clock from the default of 1.1 GHz to around 1.5 GHz which is apparently what the CPU is rated to run at anyway.

My friend Adam created a great Preware setup guide on how to do all this.

I did run into one main problem which was installing the WebOS SDK since it is only distributed for Windows, Mac and Ubuntu Linux in deb format. Since I'm on Fedora 14 I can't use deb. I got around that with alien...

Boxee Box is a Disappointment

The boxee box has been quite a disappointment. I've said it before, but it really is annoying when boxee, based on XBMC is less usable than it's roots, and then netflix dies(even after restoring/reflashing and upgrading), and to add insult to injury I can't modify the open source software on the box, or put anything else on it (like xbmc). If it's going to be as limited as proprietary software I might as well have a proprietary box that works.

NetworkManager, bridging and VPN

I cannot get this to work.

in /etc/sysconfig/network-scripts/ifcfg-eth0 as soon as I add this
line and save it NetworkManager stops managing eth0

BRIDGE="br0"

Then if I click on the nm-applet the VPN option is greyed out and
unclickable. It also shows "wired networks

[root@farina network-scripts]# cat ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="none"
HWADDR="00:24:8C:6C:31:DF"
NM_CONTROLLED="yes"
ONBOOT="yes"
BRIDGE="br0"

[root@farina network-scripts]# cat ifcfg-br0
DEVICE="br0"
BOOTPROTO="dhcp"
#HWADDR="00:24:8C:6C:31:DF"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Bridge"
DELAY="0"

I don't see how this can work?

I thought about letting eth0 do dhcp and that worked, but as soon as i
enable BRIDGE="br0" in ifcfg-eth0, network manager stops managing it..
(check the screenshot)

I wonder if I create the bridge manually if networkmanager would work on eth0.

Syndicate content