LibreOffice Writer to EPUB

My daughter loves to write stories in writer, gedit or anything she can get her hands on. I thought it would be great to put them on the nook in epub format. Here’s how to get the converter set up or the plugin installed.

My setup
LibreOffice 3.4.4
Linux Mint 12
Writer2epub.oxt [writer2epub 1.1.10] [link]

Download the extension here. Once downloaded, I right clicked the file (Writer2epub.oxt), and selected Open With LibreOffice. It launched, I accepted the agreement and it installed. Restarted LibreOffice Writer and there they are. Three icons in the upper left hand corner under the New Document icon. Nice!

I use Calibre to get these things on the eReaders.(Nook and Kindle)

SD card mounting and right clicking in Thunar 1.2.2 via Linux Mint xfce

I just installed Linux mint xfce and I only have/had 2 problems. My SD card was not always mounted when I inserted it into the built in card reader. Go to Menu>Settings>Removable Drives and Media. Under Removable Drives I checked 3 options that seemed to have fixed the problem.
Mount removable drives when hot-plugged
Mount removable media when inserted
Browse removable media when inserted
Plus I installed pmount from the repositories.
All is well with auto mounting SD cards, media players and usb sticks.

I was trying to sort pictures into separate folder via Thunar 1.2.2. While right clicking files, the options menu would flash, then disappear. If I held the right mouse button down the menu would stay. That ain’t right. After scouring the Internet I found that changing the “Style” would fix this problem. Go to Menu>settings>Appearance and for the style select Xfce-4.6 . Fixed. Don’t know why but it’s fixed.

xfce version: 4.8.0
Thunar version: 1.2.2
I ran away in horror from Linux Mint 12 main edition do to bugginess and performance issues on my laptop. I’ll revisit version 13.

Speeding up Iceweasel

This is being done on Iceweasel 3.5.16,
which is what comes with Debian 6 (Squeeze)
Open Iceweasel and type about:config in the address bar and press Enter.
Promise that you’ll be careful.
Change the following preferences to the new values shown.
Change a setting by double clicking it.

browser.display.show_image_placeholders: false
network.prefetch-next: false
network.http.max-persistent-connections-per-server: 8
network.http.pipelining: true
network.http.pipelining.maxrequests: 8
network.dns.disableIPv6: true

That should do it.

Installing Urban Terror 4.11 on Debian Squeeze (64 bit)

I upgraded to Squeeze 64 bit, carried over the UT folder, started UrbanTerror and Crash! For some reason It would not run. I was running UT 4.1 on Debian Lenny (32 bit). Yes I did start the 64 bit launcher… Crashed! So I downloaded UT 4.11. Still crashed. It seems to be a bug, but I did find a fix.
Here > Optimized executable; builds of ioq3 engine for urt
I’ll reproduce it here in case that one goes away. I just merged the UT folder and the optimized folder. oq3-urt is the launcher.

I pretty much followed my old instructions here. I just had to merge in a few optimized files in the install folder.

The file below will download as ioq3-1807-urt-251210-linux64-tar.odt. After it is downloaded, rename it to ioq3-1807-urt-251210-linux64-tar.bz2

I had to change the extension to get it on the server.
ioq3-1807-urt-251210-linux64.tar.odt

Or just download it from here without having to change the file name: www0.org.

Extract ioq3-1807-urt-251210-linux64-tar.bz2 into urt’s executable binary directory (tar jxpvf in console or with a file manager).

run ./ioq3-urt (if it’s not executable, chmod +x)
ioq3-urt now starts the game.
You should be in business. I fixed my install.

Thanks again to www0.org for the help.

Installing Debian 6 (Squeeze)

I just installed Debian squeeze on 2 of my machines. I’ve documented the process the best that I could. I started to document the process since 5 (Lenny) came out so install would be a no brainer. I’ve decide to put it out there/here in pdf and odt format. Why? Because I think it’s easier to read… plus with the odt, you can save and change the process to fit your situation. Ayway there they are. Use any pdf reader to view the pdf and use LibreOffice to view the odt.

Debian_Squeeze _Setup.odt
Debian_Squeeze _Setup.pdf

OK, I copy and pasted the document below. I would still open one of the above documents on go off of that. It looks the way I want it to in the above documents. If I make any major changes to the document, I’ll make another post.
I actually did the 2nd machine/install with the netinstall from a usb stick. The process is the same.

Like I’ve always said, this site is mainly notes for myself.
My notes are your notes…

Debian Squeeze Setup
November 9th 2011

I will be installing Debian Squeeze with the 1st installation DVD. The first one is all I need for
my needs. It gives me the basic Gnome desktop install and I’ll add the rest later. Lets start.
Put DVD in drive and boot/reboot machine. I choose the “install” option. There is a “Graphical
install” but I prefer the old one. It’s pretty looks the same but I prefer the old one. A few screens with
answers.
Select a language: English
Select your location: United States
Select a keyboard layout: American English
Configure the network:
Hostname: debiandesktop
I put debian desktop because this machine will me my main desktop. Command prompt will
look like this terry@debiandesktop . Put whatever you want.
Domain name: ___________
I leave this one blank.
Set up users and passwords:
Root password: ***********(use a good password)
Re-enter password to verify: ***********
Full name for new user: terry
Username for your account: terry
I t auto filled that one.
Choose a password for the new user: **********
Re-enter password to verify: **********
Select your time zone: Central
Partition Disks:
Partitioning method:
“Guided – use entire disk” (my choice)
Select disk partition:
“select the partition”
Partitioning scheme:
“All files in one partition” (recommended for new users) (my choice)
This screen has the partitioning overview. If everything looks good, Select:
“Finish partitioning and write changes to disk.”
Write changes to disk?:
“Yes”
Base system is installed/installing (Installing base system)

Configure the package manager
Your CD or DVD has been scanned: “More CD/DVD scanning options. We only have 1 DVD”
Scan another CD or DVD now?:
“No”
Use a mirror?:
“Yes”
Debian archive mirror country:
“United States”
Debian archive mirror:
“ftp.uwsg.indiana.edu”

HTTP proxy information (blank for none):
“blank”
Configuring popularity contest: “no”
Software selection:
*Graphical desktop environment
*SSH Server
*Standard system utilities

45mins later…

Install the GRUB boot loader on a hard disk
Install the GRUB boot loader to the master boot record?:
“Yes”
Finish installation (disk is ejected)
“continue”
System Reboots

Log in!

Debian Squeeze setup

First thing I do is open up Iceweasle and install xmarks. I use it to sync bookmarks.

**Add myself to the sudoers list.
Open up a terminal and type:
su
Then enter the root password.
Now in the terminal, type:
visudo
Now add your username to the list.
Under:
root ALL=(ALL) ALL
add
terry ALL=(ALL) ALL
It should look like this:
root ALL=(ALL) ALL
terry ALL=(ALL) ALL
Now press Ctrl +x and when prompted to save, press y. Then press Enter.

**Add Repositories
In a terminal type:
cd /etc/apt
Then type:
sudo gedit sources.list
Type your password.
Your sources.list file should look something like this:

# deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ – Official i386 DVD Binary-1 20110322-
15:11]/ squeeze contrib main

deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ – Official i386 DVD Binary-1 20110322-15:11]/
squeeze contrib main

deb http://ftp.uwsg.indiana.edu/linux/debian/ squeeze main
deb-src http://ftp.uwsg.indiana.edu/linux/debian/ squeeze main

deb http://security.debian.org/ squeeze/updates main contrib
deb-src http://security.debian.org/ squeeze/updates main contrib

# squeeze-updates, previously known as ‘volatile’
deb http://ftp.uwsg.indiana.edu/linux/debian/ squeeze-updates main contrib
deb-src http://ftp.uwsg.indiana.edu/linux/debian/ squeeze-updates main contrib

Change them to look like this:

# deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ – Official i386 DVD Binary-1 20110322-
15:11]/ squeeze contrib main

#deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ – Official i386 DVD Binary-1 20110322-15:11]/
squeeze contrib main

deb http://ftp.uwsg.indiana.edu/linux/debian/ squeeze main contrib non-free
deb-src http://ftp.uwsg.indiana.edu/linux/debian/ squeeze main contrib non-free

deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free

# squeeze-updates, previously known as ‘volatile’
deb http://ftp.uwsg.indiana.edu/linux/debian/ squeeze-updates main contrib non-free
deb-src http://ftp.uwsg.indiana.edu/linux/debian/ squeeze-updates main contrib non-free

# I added multimedia repo below
deb http://www.debian-multimedia.org squeeze main non-free

I put a # in front of the 2nd deb cdrom entry. We will not be updating from the CD/DVD rom drives. I
also added “contrib non-free” to the end of all of the existing entries. I also added a multimedia repo.
Check out this page http://debian-multimedia.org
There’s one more step after the update.
Now hit “save” and close the document. Open a terminal and type:
sudo aptitude update
It complained about a key. In a terminal type:
sudo aptitude install debian-multimedia-keyring
When asked, type the word “yes”
Done!

**Install flash
In a terminal type:
sudo aptitude install flashplugin-nonfree
Done! Freedom hater!

Install DVD playback packages:
sudo aptitude install libdvdcss2 w32codecs gstreamer0.10-lame gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly vlc

These are the individual packages in the previous string. Some might already be installed.
I added a few extra that I like.

libdvdcss2
w32codecs
gstreamer0.10-lame
gstreamer0.10-plugins-good
gstreamer0.10-plugins-bad
gstreamer0.10-plugins-ugly
vlc
audacity
radiotray
convertall
chromium-browser
filezilla
handbrake-gtk
handbrake-cli

I’m now showing 15 updates available in the upper right notification area. I’ll go ahead and let it do it’s
thing. More in a bit.

Video Driver Installation (64 bit)
nvidia GeForce 7300 GT / 7600 GS

I’m installing the 195.36.31…. driver because that’s what’s available in the repos.
Using Synaptic Package Manager I installed:

nvidia-kernel-2.6.32-5-amd64 195.36.31+2+4+2.6.32-24 NVIDIA binary kernel module
for Linux 2.6.32.5-amd64
nvidia-kernel-common 20100522+1 NVIDIA binary module support files
nvidia-glx
nvidia-xconfig

Then from a terminal I ran:
sudo nvidia-xconfig

Using X configuration file: “/etc/X11/xorg.conf”.
VALIDATION ERROR: Data incomplete in file /etc/X11/xorg.conf.
At least one Device section is required.
Backed up file ‘/etc/X11/xorg.conf’ as ‘/etc/X11/xorg.conf.backup’
New X configuration file written to ‘/etc/X11/xorg.conf’

I then rebooted. I usually get the NVIDIA splash screen during the boot. I didn’t this time but I did verify that the driver is installed and working.

Now from Synaptic Package Manager I installed:
nvidia-settings
Your resolution should be set to auto which is the native resolution of the monitor. With the next command, you should be able to change that.
At a terminal type:
sudo nvidia-settings
to get to the NVIDIA X Server Settings window (GUI) to adjust settings. Everyones happy…. I hope.

Radio Tray

Let’s see… Radio Tray. It’s my new favorite application. I heard about it on episode 6 of a podcast called Working In The Open. Check out the podcast and check out the app. It’s not in the Debian repositories but there is a .deb install file on the radio tray site. Check that out here: http://radiotray.sourceforge.net/ .

It’s just a simple little app that runs in your system tray. It streams Internet radio stations. It’s easy to configure and to manage radio stations. To install, just download the deb file and run it. That’s if you have a Debian based system. I’ve installed it on Linux Mint 8 so far and I love it. I will attempt an install on Debian Lenny at a later date. I’ll update this post then. The source is available so it should be installabe on any linux system.

If you do install it, may I suggest your first station addition?
http://www.hardradio.com/streaming/hardmp3.m3u

To add that station, just right click the Radiotray icon in your system tray and select “Configure radios”. When the “Configure radios” window pops up, select “Add”. Then just add the radio stations name and the URL of the stream. Select OK and your set.

Dig that!

“EVOLUTION” – Linux Commercial

ConvertAll for Mint 8 and Ubuntu 9.10 broke

I don’t use ConvertAll very often but when I do, it’s pretty darn handy.  It’s a conversion program. Miles into Kilometers and so on. We’ll version 0.4.2, the version in the Mint 8 and Ubuntu 9.10 repos, seems to be broke. I found a bug report >here< that included a comment >here< with instructions on how to fix or at least get around the problem. Which is pretty much, download version 0.4.3 . This is a solution from Colin Mills that fixed it for me. Colin writes:

“I can confirm that there is a bug in this version of Convertall. The developer (http://convertall.bellz.org/index.html) has released a new version with a number of bug fixes.
If you are comfortable running the terminal, there is an alternative. Uninstall the current version of Convertall. Download and unpack the latest tar file from the website. Since the new package has the same dependencies as the current version, open a terminal and enter:-

sudo apt-get build-dep -y convertall
cd Convertall
sudo python install.py

This will install a working version of Convertall. In my case, Convertall was not shown on the menu, so I used the Alacarte menu to add it. The launch command is “convertall’ and the icon is in “/usr/local/share/icons/convertall”.

Hopefully, the new version of Convertall will be ported to the Karmic repos at some point.”

Like I said, this worked for me except for the icon. It wasn’t there. That’s ok though, not needed. Thanks Colin Mills.

Ubuntu 9.10 : Disable recently viewed documents

I was asked how to disable recently viewed video files in Movie Player. Well looks like there are no GUI options to do this. I mean no options in Gnome or Movie Player to shut this feature off. It’s not an option but we can get it done. This solution also shuts off the Recent Documents feature in Gnome. I’ve only had success with this in Ubuntu 9.10. I doesn’t work on Debian 5(Lenny). That’s as far as my testing has gone. I will try it on Mint 8…. but not tonight. First lets create a hidden file in our home directory. Open a terminal and type:
touch ~/.gtkrc-2.0
You now need to open the file you just created with gedit. Type:
gedit ~/.gtkrc-2.0
sudo is not needed. You created this file in your home directory, you own it.🙂 That will open the blank document “.gtkrc-2.0”
Now copy and paste this command into that document and save it.
gtk-recent-files-max-age=0
For this to take affect, you need to restart Gnome. You can reboot your machine, or restart Gnome from the command line. To restart Gnome from the command line, shut down all running applications. Firefox, gedit….whatever…shut it down. You might want to write this command down. Now open a terminal and type:
sudo /etc/init.d/gdm restart
Done! No more history. Go to Places > Recent Documents, and it should be grayed out…. empty. Now open Movie player. The file history should be gone.
I got my info from here. >Ubuntu Guide<

Hope this helps…

Ubuntu 9.10 : Adding and automounting a second hard drive

I really should document things like this while I’m doing it and not after the fact. This is how I think it went. I was given and old hard drive. I figured I’d add it to the Ubuntu 9.10 install that I’m using as kind of a media server. It would be nice to have a second hard drive that just contains media. In the end, the hard drive was trashed, but I will repeat this process with a new hard drive soon. I think I need a terabyte drive anyway.

The PC involved/Hardware:
MB: Epox: EP 8RDA3+ Pro
CPU: AMD Athlon XP 2400+ (2Ghz)
Ram: 1.5 Gig
Video Card: Nvidia GeForce 4 Ti 4200
HD1: Western Digital 120 GB drive (IDE)
Adding HD2: 300 GB Western Digital (IDE)

First thing I did was shut down the computer. I made sure HD1 and HD2 were both jumped CS (Cable Select). I connected HD2 to the secondary position(middle) of the IDE cable. Connected the power plug and turned the computer back on. I’m not sure why but I was expecting it not to boot… but it did.

HD2 showed up in nautilus, but it was not mounted. If I click on it, I need to enter my password to mount it. I’ll deal with this later. I need to format the drive first. I went to System > Administration > Disk Utility. Selected HD2, deleted the current partition, formated it ext4 and I believe I was asked if I wanted to take ownership of the drive… I think. Well I did. Oh yea, It asked for a new volume name and I called it bucket. I’m gonna be tossing a lot of stuff in.. the… bucket…. …. nevermind.

At that point I could open nautilus, click on bucket, enter my password to mount the drive to read and write to HD2(bucket). I tried to navigate to this drive with mediatomb and was informed that mediatomb does not have permission to access this drive. Ok. Anyway, nautilus looks like this right now.That’s after I manually mount HD2(bucket).

I have to edit the /etc/fstab file to automount HD2. So I opened a terminal and typed:
$ sudo gedit /etc/fstab

It looked like this:

After a lot of research on the net, I narrowed my entry down to this:
/dev/sdb1 /media/bucket ext4 rw,user,auto,exec 0 0
I got the /dev/sdb1 /media/bucket information from the disk utility at System > Administration > Disk Utility. I also had to create the mount point. I opened nautilus with root privileges:
$ gksudo nautilus
I then made my way to /media and made a folder named bucket.
My fstab file now looks like this:

I commented above my entry there at the end. It works. It is mounted when the machine boots and read write access for myself and other programs(mediatomb) is not a problem. I’m going to be doing this again real soon because this disk is trashed.

Follow

Get every new post delivered to your Inbox.