LiveJournal to WordPress

Finally decided to take the plunge and moved to a new home in a WordPress based blog with Ajax plug-ins and cross-posting to LiveJournal. Sadly LiveJournal was getting ancient.

Transferring from LiveJournal to WordPress was not as easy as it should or as it probably was in 2005. The included script of WordPress 3.1.1 didn’t work it kept spitting out this error:

Importing Posts

We’re downloading and importing your LiveJournal posts...

Uh oh – LiveJournal has disconnected us because we made too many requests to their servers too quickly.

We’ve saved where you were up to though, so if you come back to this importer in about 30 minutes, you should be able to continue from where you were.

And all the automatic scripts I found googling were severely outdated so I had to hack into one of them.

The initial procedure was found here, where I used ljarchive to download the whole LiveJournal database and export it to XML and the script I try to use were from here, but I had to modify the script because it was completely broken.

It seems that the table structure has changed throught WordPress progress and not updated on the script, this is the script I modified [download id=”1″], for anyone attempting to use it you might need to modify the table names to suit your MySQL database.

Installed and configured pptpd at luisaranguren.com

  • Installed and configured pptpd at http://luisaranguren.com
  • Generated ssh rsa keys for password-less authentication from trusted hosts
  • Generated ssh rsa keys for password-less authentication from iPod
  • Installed two different public keys on http://luisaranguren.com, first one for trusted local hosts and a separate one for the iPod
  • Checked validation of http://luisaranguren.com with http://validator.w3.org and corrected any mistakes, also included W3C icons to denote successful validation
  •  Configured MRTG to monitor a Netgear DG834GT ADSL modem, including attenuation, SNR and throughput by heavily modifying this

pcre:fwsam

  • Upgraded the server memory from 256MB to 768MB
  • Installed a 80GB Maxtor Hard Drive
[root@luisaranguren]# hdparm -i /dev/sdb

/dev/sdb:

Model=Maxtor 4R080L0, FwRev=RAMC1TU0, SerialNo=R29XVRME
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=57
BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=16
CurCHS=4047/16/255, CurSects=16511760, LBA=yes, LBAsects=160086528
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5 udma6
AdvancedPM=yes: disabled (255) WriteCache=enabled
Drive conforms to: ATA/ATAPI-7 T13 1532D revision 0: ATA/ATAPI-1,2,3,4,5,6,7

* signifies the current active mode

  • Installed a 1TB hard drive in my desktop box ~3TB total storage
  • Installed and configured pulledpork to update snort rules
had to add pcre:fwsam to disablesid.conf to avoid a fwsam error in snort
  • Fine tuned and fixed a few snort errors
  • To make it easier to catch problems added to /etc/mysql/my.cnf

  • [mysqld]
    log-error=/var/log/mysql/error.log

Created a wpad.dat file for Web Proxy Autodiscovery

Today,

  • Created a wpad.dat file for Web Proxy Autodiscovery Protocol so clients get proxy auto configuration, the contents are:
  • function FindProxyForURL(url, host) { return "PROXY luisaranguren.com:3128; DIRECT"; }

  • Updated DNS records to include http://wpad.luisaranguren.com
  • Updated .htaccess for url shorten and redirection

  • [root@monsterxx9 etc]# cat /srv/http/.htaccess
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^autodiscover.luisaranguren.com$
    RewriteRule ^(.*)$ https://luisaranguren.com/Autodiscover/Autodiscover.php [R=301,L] 

    RewriteCond %{HTTP_HOST} ^wpad.luisaranguren.com$
    RewriteRule ^(.*)$ http://luisaranguren.com/wpad.dat [R=301,L]

     

  • Updated from squid 2.7 to 3.1 that includes support for IPv6

What did I do today? Finished installing doveco

What did I do today?

  • Finished installing dovecot http://dovecot.org (pop3 & imap)
  • Created and installed SSL certificates
  • Finished testing z-push in http://luisaranguren.com/z-push/ (Open Source ActiveSync Gateway)
  • Updated DNS server for ActiveSync Autodiscovery for http://autodiscovery.luisaranguren.com
  • ; Activesync Autodiscovery
    autodiscover IN A 123.243.191.116
    _autodiscover._tcp IN SRV 0 0 80 luisaranguren.com.

  • Updated DNS server with SPF Sender Policy Framework
  • luisaranguren.com. IN TXT "v=spf1 a:123-243-191-116.static.tpgi.com.au ip4:123.243.191.116 ip6:2001:470:1f05:267::1 ip6:2001:470:1f04:267::2 ip6:2001:470:1f05:267::1/128 ip6:2001:470:1f04:267::2/128 a mx ~all"
    luisaranguren.com. IN SPF "v=spf1 a:123-243-191-116.static.tpgi.com.au ip4:123.243.191.116 ip6:2001:470:1f05:267::1 ip6:2001:470:1f04:267::2 ip6:2001:470:1f05:267::1/128 ip6:2001:470:1f04:267::2/128 a mx ~all"
    123-243-191-116.static.tpgi.com.au. IN TXT "v=spf1 a -all"
    123-243-191-116.static.tpgi.com.au. IN SPF "v=spf1 a -all"
    imap IN TXT "v=spf1 a -all"
    imap IN SPF "v=spf1 a -all"
    mail IN TXT "v=spf1 a -all"
    mail IN SPF "v=spf1 a -all"
    smtp IN TXT "v=spf1 a -all"
    smtp IN SPF "v=spf1 a -all"

Bought a new domain finally http://luisaranguren.com Fully

Bought a new domain finally http://luisaranguren.com

Fully working with A, AAAA and MX records. IPv6 glue too.

Same proxyjudge at http://luisaranguren.com/cgi-bin/prxjdg.cgi and at http://luisaranguren.com/proxyjudge.php

Access logs are in http://luisaranguren.com/analog/access_log.html

Other services running like:

  • http://luisaranguren.com/mrtg
  • http://luisaranguren.com/webalizer
  • http://luisaranguren.com/squid-reports

Also got a IPv6 sage level certification with he.net
IPv6 Certification Badge for pizzaman

Samba server for iOS

UPDATE 2011/07/18:

Tom Zickel/OpenHebrew, creator of Samba for iOS, informed that Samba is now available from Cydia/BigBoss repository so no need to follow the procedure described below, instead install Samba Controller from Cydia.

http://tom.zickel.org/samba/samba.txt

 

About
-----
Samba for iPhone/iPod Touch allows you to see your device as a network drive on your computer (and you can copy / change / stream files from / to it). It works on any OS that supports SMB/CIFS protocols (out of the box for most ones, including Windows).

This package should work on both iPhoneOS 2.x and 3.x

Disclaimer
----------
This is a BETA release, install it at your own risk, only if you feel comfortable with accessing the device via terminal. The final release will be made publicly on Cydia with a much simpler installation routine.
Please provide me back with feedback about this package as much as possible (i expect this do be a very popular package once out officaly), so tell me if you've used it, on what device & OS and if it works Ok or not.

Please report your findings to openhebrew (at) gmail (dot) com with Samba in the topic.

Installation instructions
-------------------------
1. Add the following repository URL: http://tom.zickel.org/samba/ No need to add a new repository because BigBoss repository is included with Cydia.
2. Install the package "Samba controller" and it's dependencies.

Uninstall
---------
2. Uninstall the package "samba".

How to use this
---------------
Samba is disabled after installation, to turn it on and configure it:
1. Go to Settings in your device.
2. Go to Samba.
3. Change the settings as you like.
4. To start samba, make sure to turn autostart on, and leave the settings pane.

After turning it on, find your device's IP and put it in your computer as a samba / network share (windows \\<your device ip> or linux smb://<your device ip> etc...)

Important Notes
---------------
- The service is turned off by default after installation.
- The service username is root and cannot be changed.
- The service default password is listed on the bottom on the settings pane (this is a security feature, each device has it's own auto generated passwd), you can use it, or change to your own one.
- nmbd isn't automatically loaded, so device doesn't show up at "network neighbourhood" (and the likes) for now.
- The whole filesystem of the device shows up as a writable network share with the URI \\<your phone ip>\main in windows or smb://<your phone ip>/main otherwise.
- To make samba work also when screen is black (device is idle), consider installing insomnia and running it: apt-get install com.imalc.insomnia (and respring), this makes network applications still keep running when device goes idle, and is not specific to samba.

SBSettings switch
-----------------
You may also install an SBSettings switch to quickly turn samba on/off via running:
1. Install from the repoistory the samba toggle.
Then, you should have an samba sbsettings toggle in your list (after you run samba settings atleast once).

Feedback
--------
I need feedback, even if everything works ok, I also want to get your input on if the settings pane is ok, and if the default password issue is ok as well.
openhebrew (at) gmail (dot) com