OpenOffice having landscape and portrait in document

It is quite hard to find out how to have Landscape and Portrait size in one document, specially let say you want to have page 5 and 8 in Landscape and the rest in Portrait.

The solution is to create style which will do formating. There is one more option and it is “next style” so either keep it as default and next page will be back in Portrait (that is default style) or have next style in Landscape and the whole document will be in landscape.

To change just one page you have to do right click

  1. Click into the first paragraph where you want to change the page orientation.
  2. Choose Format – Paragraph.
  3. Click theText Flow tab.
  4. Under Breaks, enable Insert. Then enable With Page Style. Select a page style that uses the landscape or portrait page orientation.
    To change the orientation of the current page only, select a page style where the Next Style option is set to “Default”.
    To change the orientation of the current and subsequent pages, select a page style where the Next Style option is set to the name of the page style.
    If you want to change the page orientation later on in the document, repeat these steps for the first paragraph on the page.
  5. Click OK.

More you can find in OO help pages

NSLU2 – little file server which is worth to have

I was using PC for my  fileserver needs. It had few disadvantages:

  • noise – very noisy (few HD, fans, cpu,…)  could not sleep in next room 🙂
  • power consuption – let’s face it, most of the time it will be just running without any work


  • you can install any OS
  • applications (samba, VPN, media server, …. )

I have found very nice little piece of hardware made by Linksys called NSLU2.


NSLU2Little nice HW with 2 USB ports. You can install several firmwares (openwrt, debian, …). Very easy to store and other things.


  • small
  • small power consumption – with 1 HD about 16W/hour
  • OS – either linksys firmware or linux based firmware (openwrt, debian,…)
  • applications (few thousands applications compiled for given firmware)
  • very silent – just HD sometimes does little noise
  • connect any USB peripheral (HD, printer, …. )


  • could not run windows 🙂
  • just 2 usb ports, anyway you can have USB hub and connect more devices 🙂 Actually it has 5 USB ports, but just 2 are open. The rest can be added by this manual.

I have set it up with OpenWRT firmware and have just 1 HD (for now).  I am running:

  • samba – fileshare
  • rtorrent – to download linux iso images like ubuntu and other things 🙂
  • iTunesServer – to stream my music to local network
  • VPN – using openVPN to connect to my local network from outside (actually running it on my WRT54GL router which runs also openwrt firmware)
  • Asterisk – open source PBX, telephony engine, and telephony applications toolkit
  • and many others

Things which I want to do:

  • 2/4 GB Flash disk which holds OS (debian)
  • 1TB hard drive Western Digital Caviar GreenPower 3.5″ 1TB WD10EACS
  • This how-to encrypt HD with truecrypt

OpenVPN on wrt54gl

I have set up OpenVPN on my wrt54gl

Here is tutorial how to install OpenVPN if you are running kamikaze firmware

Here is the tutorial I have used

For bridge release use this one

How-to encrypt disk on nslu2 box

Encrypt disk

commands in order:

dd if=/dev/urandom of=/share/flash/data/cryptfile bs=1M count=800
define how big the hard drive will be by changing count

losetup -e 1 /dev/loop0 /share/flash/data/cryptfile => give password

mkfs.ext3 /dev/loop0

mount -t ext3 /dev/loop0 /mnt/loopback/

ls /mnt/loopback/

Another option is to use Truecrtypt on your NSLU2 box. Read more here.

ssh back on nslu2 box

Once I have found out that I can’t ssh my nslu2 box. After searching net I have found out that I have to recreate /dev/null because my /dev/null became normal folder

I had to run this command

rm -f /dev/null
mknod -m 666 /dev/null c 1 3

after that everything was OK.