Parsix Linux Fixes
 

TÄMÄ SIVU SUOMEKSI - THIS PAGE IN FINNISH

If you have feedback to this page, you can post them in http://www.parsix.org forum as reply to topic "My Parsix Tips".

These same tips may also work on other Debian based distros like Ubuntu (where sudo is used instead of Root Terminal) but I have not tested it.

Latest Updates

2014-02-06:

  • Note: this page is old, I will update it later, maybe move to separate pages.

2008-7-26:

2008-7-20:

2008-6-23:

  • I'm in progress of moving this webpage content to Parsix Wiki and adding new additional content there. You can check my Latest Updates at Parsix Wiki about the progress and content there.

2008-6-12:

  • Watch Quicktime video streams like Apple.com keynotes etc. - added info how to download and watch newest Apple keynote. Warning: video size is 1,2 GB ! I used programs wine, iTunes and VLC for this.
  • Now I'm waiting for Bluesoleil Linux version to became available for download and buy. There is already customized version for eeePC, and Debian (and other Linux distro) version will be available in near future. I presume it'll have as good sound quality etc. as in Windows version, that I have bought before. I have tried my Jabra BT620s headset with Linux BlueZ bluetooth, sound quality wasn't good, and had some problems setting up with Skype.

2008-5-20:

  • Vodafone app and Huawei E220 3G USB modem - Here's how I can connect to Internet with it and send and receive SMS
  • TODO: I should check out later that Vodafone app install and use notes later, because I just today got it working and maybe some steps can be left out or clarified.
  • TODO: update this page with following from Forum:
    • VirtualBox-ose kernel drivers etc are already in Parsix repos
    • "apt-get install numlockx" and add to System / Preferences / Sessions command "numlockx off" to get keyboard working if it's messed up
    • Frostwire and using different Java versions
    • Printer Sharing - ipp and samba
    • Installing OpenOffice.org 3.0 beta (Forum thread Parsix 1.5 Test - Comments
    • uvc webcam drivers are already included in Parsix kernel so my Creative Live! Cam Optia works out of the box
    • Using Win/Linux midi apps with wine and timidity (Forum thread Hardware midi with C-Media CMI8738 sound card?)
  • TODO: add new stuff:
    • Jungle Disk - I use this for automatic encrypted backups to Amazon S3. Linux/Win/MacOSX, cheap.
    • Adobe Air for Linux - maybe I'll code something with it someday.
    • NoMachine NX - SSH-encrypted fast remote control with full image quality, much better than VNC. I should add stuff about changing SSH port and running NXClient from USB stick.
    • Maybe make separate favourite podcast page? From this webpage TrueCrypt take Securitynow and PaulDotCom, and then add:
    • Xara Xtreme - vector graphics app, I should check how it compares to Inkscape that I mostly use. I tried it some months ago.
    • Maybe someday figure out how to get VMware Server or VirtualBox non-OSE version with USB support working. Currelty I use VirtualBox-ose version.
    • Maybe someday figure out full disk encryption.
    • apt-get install p7zip - add some info of 7zip that can compress files with great compression ratio and at the same time encrypt with AES - very useful for backups.

2008-5-13:

2008-5-6:

2008-4-26:

  • Firefox 3 beta5 - language pack now works in Viola Test 1 and Swiftweasel because there was update to Quick Locale Switch Addon.

2008-4-22:

  • I installed Parsix Viola Test 1 today.
  • Small story: Tried to get Huawei E220 working with Vodafone app. I have had it working once with Parsix and my modified kernel  ( Kernel for Huawei E220 USB 3G-modem - "mokkula" - and Sonera ) and it worked once, but not after some updates. Vodafone app requires python 2.5 with some dependencies, so I installed Ubuntu 8.04 beta. There I could install Vodafone app, but it didn't work well. Then kernel update Ubuntu started to fill my harddisk with many GB:s of logs (at /var/logs) of some kernel bug, trackerd and evolution-data-server used 100% of CPU, so I tried Fedora 9 Beta. There was missing gksu package so I didn't get Vodafone app working when installed it with rpm -Uvh [app].rpm --force. I didn't get USB working in VirtualBox, python-tk package was missing, autologin didn't work with the new gdm version. So now I'm back to Parsix.
  • Watch Windows Media Video and Apple.com/trailers In Iceweasel- Works with Swiftweasel (didn't work in Iceweasel then) UPDATE 2008-5-13: Now works in Iceweasel

2008-4-16:

2008-4-2:

  • Firefox 3 beta5 - language pack now works because Firefox 3 beta5 is released and new language pack available to download.

2008-4-1:

  • Skype With Video - Creative Live! Cam Optia is a great webcam, here's how I got it working!

2008-3-25:

  • I tried Viola, but it's not ready yet, so now I'm back to Parsix 1.0r1 using default ramon repositories.
  • Firefox 3 beta5 - 4.5 fixes bookmark bugs etc, but language pack doesn't work (it did in 3.0b4)
  • VirtualBox - finished installing tips.
  • More Translated Apps In Your Language - added a note that I don't anymore usually do dpkg-reconfigure locales.
  • TrueCrypt 5.1a - updated to new version, no other changes.

2008-3-19:

  • Firefox 3 beta4 - run Firefox 2 and 3 at the same time! UPDATE: added flash tip.

2008-3-17:

  • VirtualBox - added some random notes for a start.
  • TrueCrypt 5.1 - made a change, so that entering root password isn't required anymore.

2008-3-16:

2008-3-15:

2008-3-14:

  • Fix resolution etc. messed up display settings- added step 4) If you have some other resolution than 1024x768, check System / Settings / Appearance / Fonts settings that are listed in step 5, if they are any different, if so write them down.
  • Table of Contents - new addition
  • Latest Updates - new addition
  • Introduction - removed stuff about 100Hz that is told later in page, and moved some stuff to new topic Installing Parsix

2008-3-13:

2008-3-12:


Table Of Contents


Introduction

Hi, I'm Lauri Ojansivu, Finnish user of Parsix Linux.

Parsix Linux homepage is at http://www.parsix.org and Parsix is from Iran.

There is interview made in 2006 about the main developer at Distrowatch, but there has been lots of updates since then.

From DistroWatch comments I did read at 2008-02-03 that Parsix is much faster than Ubuntu and started to write this 2008-02-04.

I tried Parsix Live CD and found out this:

  • it really is faster
  • it did recognize and set 100Hz refresh rate automatically at first, then it lost it in updates, so I added 100Hz refresh rate again
  • I didn't need Ubuntu fix "Stop frequent one second freezes" for my laptop because it didn't freeze at all!!!
  • Parsix is based on modified Debian testing and partly Kanotix, not Ubuntu. Well, Ubuntu is heavily modified from Debian and uses it's own repositories.
  • sudo and gksudo doesn't work (gives permission errors), so I have to use Root Terminal.
  • when I once enter root password in Synaptic or other app, it remembers root password next time in same session.

Installing Parsix

You can also read Parsix Installation and other documents from http://www.parsix.org

Main point of these steps here is to select ext3 partition format.

1) Go to http://www.parsix.org and download .iso file from SF.Net mirrors.

2) Burn it to empty CD-R or CD-RW with Nero or any other CD burn program. If you don't have CD burn program, you can search from http://www.google.com for "free cd burn".

3) Reboot your computer with the CD in your CD-drive. If it doesn't boot, you need to change BIOS settings, usually pressing F2 or Delete key when booting, and select CD drive as first boot device. If you have more than one internal CD drive, you need to test with the CD where it starts booting.

4) In Parsix Live CD boot screen, you can select language with F2 key. If you have widescreen monitor, select the correct resolution too.

5) When Live CD has booted, start install by double clicking icon.

6) You can have Windows as first partition, second partition as ext3 partition type (so you can access it from Windows side too, as seen in topic below), and third partition as Linux swap - about twice the size of your RAM. Add boot flag to first partition if it's not there yet.

On my laptop that has 1GB RAM I have only one ext3 partition for Parsix and one 2 GB swap partition, and I run WinXP in VMware Server.


Enable Internet

After installing Internet didn't work, so I had to enable it in top menu System / Administration / Network Settings.

Another option is to click Applications / Parsix / Network Configuration .

If you don't have network manager (System / Administration / Network Settings) and manage otherwise get net connection if you type in Root Terminal:

apt-get install network-manager

Or download it with other PC (or same PC when booted to Windows etc) and transfer the package with CD or USB thumbdrive:

http://packages.debian.org/testing/net/network-manager


Change Default Theme

System / Settings / Appearance and select Parsix theme, so that it looks like Ubuntu and not so dark.


Download Parsix Background Image

You can download big version of this background image and read more about it here.

It was created by Parsix user [--x--] in California with Blender and Gimp.

There is also FLOSS Weekly Podcast Episode about Blender at http://twit.tv/floss25 .


Automatic Login

1) Click System / Administration / Login window (if I translate correctly).

2) Click Security Tab.

3) Check "Take automatic login to use" and write your username there and click Close.


About Debian Repositories Where Applications Are

Debian packages are named like package.deb (like skype.deb etc)
so you can then install them as root by typing:

dpkg -i package.deb

- but this is needed only, if the package isn't already in any repositories
that are included.
You can read more about dpkg and other commands by typing

man dpkg (or man othercommand)


But usually you use apt-get like this:

apt-get update (updates list of packages)
apt-get upgrade (downloads and installs all updates)
apt-get dist-upgrade (some updates needs the distro updated too)
apt-get clean (remove already installed installation files from taking extra space)
apt-cache search firefox (search for package, example used is firefox)
apt-get install mozilla-firefox (installs package)
apt-get remove mozilla-firefox (removes package)


The repositories where programs are searched are listed in text file, that you can edit with Applications / Accessories / Root Terminal:

gedit /etc/apt/sources.list

By default you may have there something like:

deb http://ftp.us.debian.org/debian/ testing main contrib non-free

but Debian also has local mirrors, so for Finland (and faster access) I changed it to:

deb http://ftp.fi.debian.org/debian/ testing main contrib non-free

You can add more repositories (like wine from www.winehq.org, more about wine later in this page) with text editor, or you can use Synaptic GUI to do all this in graphical interface.
Synaptic is in System / Administration menu, if not you can install it with:

apt-get install synaptic

If you'd like to have notifications when new updates are available, install update-notifier:

apt-get install update-notifier


More Translated Apps In Your Language

Iceweasel is based on Firefox and is Parsix's default Internet Webbrowser.
OpenOffice can open and edit Word, Excel and PowerPoint files.
Voikko is Finnish proofreading and hyphenation for OpenOffice, your own language may have own package or already in OpenOffice.

With following commands you get more apps translated.
Change fi to your own country. Don't install voikko if you don't need Finnish proofreading etc.

With Root Terminal type:

apt-get update
apt-get install iceweasel-l10n-fi openoffice.org-l10n-fi openoffice.org-voikko

These I don't anymore usually do:

apt-get install debconf
dpkg-reconfigure locales

Then configure OpenOffice settings, so click Applications / Office / OpenOffice Writer.

From OpenOffice top menu, click Tools / Settings / Language settings / Languages, and there from Document default languages dropdown menu select your own language.

Then Language settings / Writing Tools and make sure that your language proofreading and hyphenation links are checked. Then click OK.

You can now test if your language is proofread correcly by writing to document your language wrongly and correctly typed. Wrongly typed text is wave-underlined.


Windows As Default Boot Choice

Well, that is if you have Windows in first partition of harddisk and want to do this.

In Root Terminal:

gedit /boot/grub/menu.lst

In the bottom of that text file is the Windows text lines. Select and cut them and paste them upper before the text "### BEGIN AUTOMAGIC KERNELS LIST".

Save and exit Gedit.


When Booted Into Windows, Also See And Modify Linux Files

Well, that is if you have Windows in first partition of harddisk and want to do this, and your Linux partition is in ext3 format.

Install ext2fsd setup wizard:

http://ext2fsd.sourceforge.net/projects/projects.htm

Someone may be interested too about unix utilities for Windows:

http://unxutils.sourceforge.net


Static IP Working

In network settings DNS tab, write IP address of nameserver to lower empty box.

Fix resolution etc. messed up display settings

Parsix updates messed up appearance and xorg settings, so easiest way to fix it is:

1) Boot with Parsix live cd, so it autodetects display settings.

2) Mount internal harddrive by doubleclicking desktop icon, in my case it's sda1.

3) In Root Terminal (root password is parsix) type: (remember to change sda1 if needed!)

cp /etc/X11/xorg.conf /media/sda1/etc/X11/

4) If you have some other resolution than 1024x768, check System / Settings / Appearance / Fonts settings that are listed in step 5, if they are any different, if so write them down.

5) Reboot to Parsix on your harddrive

6) System / Settings / Appearance / Fonts:

- change all fonts to size 8
- click Advanced (or Additional Settings)
- change to 98 DPI
- click Close and Close


Get 100Hz Refresh Rate To Monitor's 1024x786 Screenmode

(This isn't actually needed if you use previous tip to fix display settings.)

Edit your xorg.conf as root with:

gedit /etc/X11/xorg.conf

There change HorizSync:

Section "Monitor"
Identifier "Typical display"
Option "DPMS"
HorizSync 30-85
VertRefresh 50-160
#Originals here:
#HorizSync 30-70
#VertRefresh 50-160
EndSection


Watch Windows Media Video and Apple.com/trailers In Iceweasel

Type in Root Terminal:

apt-get remove mozilla-plugin-vlc
apt-get install mozilla-mplayer w32codecs

And that installs codecs etc from debian-multimedia.org that is included in default sources.list .

Windows Media testpage, Finnish news: http://www.mtv3.fi/uutiset/
Apple.com trailers: http://www.apple.com/trailers/


Watch Quicktime video streams like Apple.com keynotes etc.

I had some problems with Quicktime Streaming, video didn't display or went too fast. So here's how I could download Apple keynote video and watch with normal speed:

1) Install wine in Root Terminal, using default repositories included with Parsix:

apt-get install wine

2) On menu Applications / System Tools / Wine configuration, set it as WinXP and use alsa for sound.

3) Download iTunes for Windows XP and Vista: http://www.apple.com/itunes/download/

4) Right click iTunesSetup.exe . If there's not "open with wine" then click arrow "use own command" and type wine and click Open. When iTunes installs, it's normal that sometimes screen goes black, just move mouse or move some Gnome window around, or type as normal user "killall gnome-panel" so that menus refresh. That black color bug maybe will be fixed in later wine version.

5) Now we'll try to find iTunes. There may be icon in menu Applications/Others, or have Desktop icon. But not on my PC, so in Gnome file manager, from menu click View / Show Hidden files, and then navigate to directory:

/home/username/.wine/drive_c/Program Files/iTunes/iTunes.exe

Program Files may be translated into your language. If you want, you can also right click desktop and make shortcut with command "wine /home/username/.wine/drive_c/Program Files/iTunes/iTunes.exe"

6) Right click iTunes.exe. If there's not "open with wine" then click arrow "use own command" and type wine and click Open.

7) In iTunes, go to iTunes Store. There's Apple keynotes somewhere, so subscribe to it. Warning: newest some day ago (today is 2008-6-12) was 1,2 GB, so only download it if you have enough bandwidth.

8) After it's dowloaded, it doesn't open correctly with doubleclick, so it's better to use VLC for playing it. Close iTunes. In Gnome file manager, you can stop showing hidden files by clicking again "View / View Hidden Files". Then go to directory:

/home/username/iTunes/iTunes Music/Podcasts/Apple Keynotes/

9) Right click and open with VLC file "WWDC 2008 Keynote Address.m4v" (or some other file you downloaded). If VLC is not in menu, click arrow "use own command" and type vlc and click Open.

10) From VLC top menu, click Video / Full screen. Enjoy! :)

Hey, all this with Free Software, without buying Windows or Mac. :)


Quictime Streaming

1) Go with Iceweasel to Apple.com and click any video page

2) In Iceweasel browser click View / Page Source

3) Use keyboard to type Ctrl-F (or click Edit / Find from this page)

4) Write .mov to search for link that begins with "http://stream.qtv.apple.com..." and ends with .mov, like "_650_ref.mov", (but be sure that the link doesn't say "audio" because that doesn't have video)

5) Select with mouse and copy (Ctrl-C) the link you found in step 4.

6) Click Applications / Sound and Video / VLC media player

7) Click File / Open Network Stream

8) In Network Tab, Select "HTTP/HTTPS/FTP/MMS" and paste link there (Ctrl-V) and click OK.

(You can also save video stream to harddisk there if you want.)

9) When video starts, click Video / Fullscreen. Then you can use right click menu to exit.


Customize Iceweasel: Block Ads

You can chage Iceweasel addon settings at Tools / Addons, but here's some direct links to addons. Install Adblock Plus:
https://addons.mozilla.org/fi/firefox/addon/1865

Install Filterset.G blocked ad list updater:
https://addons.mozilla.org/fi/firefox/addon/1136

After browser restart you can click to set checkmark that automatic update dialog is not showed again.

Customize Iceweasel: Toolbar, Homepage, Downloads, Passwords

1) Click Show / Toolbars / Bookmars bar to not show it

2) Right click Homepage button and select Edit

3) From Show dropdown list select Icons and text

4) Drag Adblock button from toolbar to Edit window, and drag Print button from Edit window to toolbar in the left side of G-Google.

5) Click Finish to close Edit window

6) Click Edit / Settings.

7) Homepage: well, we use local Google homepage http://www.google.fi

8) General tab: When Iceweasel starts -dropdown list: well, I use "Open last session windows and tabs" but someone else may like "Start my homepage". Choose what you like.

9) General Tab, Downloads: uncheck "Close when downloads are ready" and check "Always ask download folder".

10) Security Tab: Uncheck "Save passwords".


Opera Kestrel Beta To Parsix

Download it from Opera Desktop Team: http://my.opera.com/desktopteam/blog/

To get ads away, you can read for original links:
http://slashdot.org/comments.pl?sid=273931&threshold=1&commentsort=0&mode=thread&cid=20290715

Or just download this filter list:

urlfilter.ini (5k)

And put it into your .opera directory.

I use Opera because it has fast bookmark sync. Beta has bugs, so usually I use Iceweasel (based on Firefox) with AdBlock Plus and Filterset.G. But I have a huge bookmark list in Opera beta with bookmark sync, I'm not loading it to Iceweasel because it may slow down it.


Get Tclkit Working

Download it from Tclkit download matrix http://www.equi4.com/pub/tk/downloads.html

To get it working type command in Root Terminal:

apt-get install libstdc++5

I used before Tclkit with Password Gorilla http://www.fpx.de/fp/Software/Gorilla/

but nowadays I use KeePass, for that I have tips below on this same page.

So in Terminal as normal user type:

./tclkit gorilla-1.4.kit

to open my Password Safe passwords. Another possibility is to download Windows version from http://passwordsafe.sourceforge.net/ and use it with Wine.


If You Need Packages From Debian-unofficial.org

First see if you need anything that is listed at http://debian-unofficial.org

First you need GPG key for Debian Unofficial repositories .
(This I found working tips from http://www.fermasoft.com/index.php/HowTo/Apt-key )

1) Type following commands in Root Terminal:

apt-get update
gedit getAptKey

2) Copy this text to that getAptKey file:

#!/bin/bash
gpg --keyserver subkeys.pgp.net --recv-keys $1
gpg --armor --export $1 | apt-key add -

3) ... and save it and exit gedit. Then type:

chmod +x getAptKey
./getAptKey 394D199524C52AC3

4) Add extra repositories to /etc/apt/sources.list :

# Extra repositories
deb http://ftp.debian-unofficial.org/debian/ testing main contrib non-free restricted

5) Then just apt-get update and install what you need.



Install KompoZer Webpage Editor (Updated Version Of Nvu)

You can download it from: http://www.kompozer.net

If your language is not yet listed in KompoZer page, but there is translation in Nvu page http://www.nvu.com , then you can install Nvu here:

http://nvudev.com/download/nvu-1.0.ubuntu.5.04.deb

After installing it, update menus as normal user in Terminal:

killall gnome-panel

And then install your language that is listed in http://www.nvu.com and restart Nvu.


Mount .IMG Floppy or .ISO CD/DVD Image, or Create .ISO

I didn't find my USB floppy drive at first and needed to access .img floppy image.

In Root Terminal for Floppy image:

mkdir /media/virtualfloppy
mount -o loop floppyimage.img /media/virtualfloppy

In Root Terminal for CD/DVD .iso image:

mkdir /media/virtualcd
mount -o loop something.iso /media/virtualcd

You can change filenames and directories where you mount as you want.

You can create .iso image with Brasero:

1) Click Applications / Sound and Video / Brasero Disc Burning

2) Click Copy Disc (if you make .iso from CD/DVD) or create new project (if you add own files).

3) Select .iso image as destination and start.


Get Silicon Image 3132 eSATA PCMCIA Card Working

I have this PCMCIA eSATA card in my laptop:
http://www.verkkokauppa.com/popups/prodinfo.php?id=23671

And this eSATA/USB hard drive enclosure:
http://www.verkkokauppa.com/popups/prodinfo.php?id=22951

I used this Fedora package as basis for my modification, first download link on the top:
http://www.siliconimage.com/support/supportsearchresults.aspx?pid=32&cid=3&ctid=2&osid=1

So I installed floppy image it to floppy, copied files from it and made .zip file:

esata.zip (317k)

Unarchive it to home directory. There is esata/starttaa.sh which is only file I added.

Parsix has NTFS-3G included as default.

Add the textline colored in green to your /etc/fstab :

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
devpts /dev/pts devpts defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
/dev/sda6 / ext3 defaults,errors=remount-ro 0 1
/dev/sda1 /media/sda1 ntfs-3g auto,force,users,exec,umask=000 0 0
/dev/sda5 /media/sda5 ntfs-3g auto,force,users,exec,umask=000 0 0
/dev/sda7 none swap sw 0 0
/dev/sdb1 /media/sdb1 ntfs-3g auto,force,users,exec,umask=000 0 0
/dev/cdrom /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/cdrom1 /media/cdrom1 udf,iso9660 user,noauto 0 0

There sda1 is first partition of laptop internal hard drive and did contain WinXP. sda5 is another NTFS partition used to store data. sda6 is where Parsix is installed. sda7 is Linux swap partition, that should be twice the RAM size. sdb1 is using PCMCIA eSATA card and external eSATA drive. cdrom0 is internal DVD burner. cdrom1 is external Firewire DVD burner.

Actually that partition table is before I installed Parsix using nearly all harddrive space and 2 GB swap partition (I have 1 GB RAM in my laptop).

Create mount directory for sdb1 in Root Terminal

mkdir /media/sdb1

And then manually mount it in Root Terminal, change lauri to your username:

sh /home/lauri/esata/starttaa.sh
mount -a

Next step was to figure out how to mount it automatically at startup, so today 2008-08-05 I got it working this way:

1) Edit some text file as root with gedit:

gedit /etc/init.d/mountall.sh

There add starttaa.sh script and at the end of mount command add ,ntfs-3g

do_start() {
#
# Mount local file systems in /etc/fstab.
#
mount_all_local() {
/home/lauri/esata/starttaa.sh
mount -a -t nonfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs,gfs2,ntfs-3g \
-O no_netdev }

2) Then edit rc.local:

gedit /etc/rc.local

There add one text line so it reads as follows, after that is exit 0 that was already there:

mount -a
exit 0

BUT BUT - in Parsix 1.0r1 it doesn't work, it did work in previous version. After automatic login I have to manually open Root Terminal and type "mount -a". How can I fix this? I even tried to add "sleep 20" before mount -a, and it didn't work.

(This is needed, because mount -a doesn't work yet at earlier step mountall.sh, but should work later in the boot process in rc.local. You can read more about rc.d scripts from:
http://www.linux.com/articles/114107 )


How To Restart X Server

(remember to save unsaved work etc or logout before restarting X)

Ctrl-Alt-Backspace


Login To Remote Server With SSH

In Applications / Accessories / Terminal:

ssh username@somemachine.com

Where username is your username in the remote server. If the remote server doesn't have name like somemachine.com, you can write IP address there instead.


FileZilla SSH & FTP client

Add this as root to /etc/apt/sources.list :

# Debian experimental: FileZilla
deb http://ftp.de.debian.org/debian/ experimental main non-free contrib
deb-src http://ftp.de.debian.org/debian/ experimental main non-free contrib

Then type:

apt-get update
apt-get install filezilla

If you save sites with FileZilla, they are stored in file /home/username/.filezilla/sitemanager.xml
in plain text xml.

Other packages from experimental are not normally installed during apt-get upgrade.
I found the package with google and got more info about experimental from kde page:
http://pkg-kde.alioth.debian.org/experimental.html


Epson Stylus CX3200 Etc Printers Working From Remote WinXP PC

UPDATE 2008-3-15: It seems that cupsys-driver-gutenprint is already installed in Parsix 1.0r1.

First when I tried to connect to printer using samba, the Linux driver wasn't in the menu!
So, as hinted on linuxprinting.org page , I had to install gutenprint to have printer drivers for CUPS:

apt-get install cupsys-driver-gutenprint

For some strange reason when adding printer, it complained about machine name, so I had to change in System / Network settings / General Tab, Network name as localhost . Wonder why.

Then it appeared to menu and worked great!


Install PDF Printer

I use PDF printer to save paper, save web bank receipts and send webpages in E-mail.

(This isn't usually needed in OpenOffice and Inkscape which can save directly to PDF, but inside Inkscape it may not save complex colorshades to PDF, so when printing it to PDF printer which makes PDF that has bitmap image, all complex colorshades are preserved).

In Root Terminal type:

apt-get install cups-pdf

Then go to System / Administration / Printer, add printer (cups pdf is there) as generic postcript printer.

When you print to it, PDF:s go to /home/username/PDF/ directory.


TrueCrypt 5.1a

I installed ubuntu x86 package of TrueCrypt 5.1a from
http://www.truecrypt.org/downloads.php

.. but it didn't work at first, because Parsix disables sudo. I found answer by searching TrueCrypt forums:

sudo privileges:
Because the TrueCrypt program works with devices, you will need root privileges to create or mount a truecrypt container. Truecrypt uses sudo internally to manage this privilege escalation, so the /etc/sudoers file must be adjusted to reflect the new permissions to run truecrypt with root privileges. /etc/sudoers can only be edited with the visudo program (which actually uses the nano editor by default in Etch).

In Root Terminal:

visudo

Hmm, so it uses vi, which I wasn't so familiar with, so I had to figure it out: pressing Insert key gets you into insert mode, and out of insert mode you can go with Esc.
To save and quit, type :wq <enter>
To only quit without saving, type :q <enter>

Add following line with visudo to the end of textfile:

ALL ALL=NOPASSWD: /usr/bin/truecrypt *

and as each user, create a link on the desktop to the shared executable

ln -s /usr/bin/truecrypt ~/Desktop/truecrypt

Ok, after that, when you mount TrueCrypt volume, it asks volume password, and then mounts the volume.

But copying lots's of data (like 3.2 GB VMware image containing WinXP) is slow, so it's better to use Windows Truecrypt full disk encryption inside Windows, that will actually make Windows faster in normal and VM use. You can learn more about Truecrypt 5 from Security Now Podcast Episode #133:
http://www.grc.com/securitynow

But if you are interested about security, be sure to listen PaulDotCom:s Security Podcast too:
http://pauldotcom.com


VMware Server

I downloaded free VMware Server for Linux, registered and got free license key. You only need VMware Server for Linux TAR Binary. I had to download it with wget, Iceweasel didn't save file correctly. Then I started to install it in Root Terminal.

VMware Server has local GUI that I used, just like in VMware Workstation.
When I installed it, during compiling kernel module, it had this compile error:

/tmp/vmware-config0/vmmon-only/linux/driver.c:1659: error: 'struct mm_struct' has no member named 'dumpable'

When I pasted it to Google, it found this page which had the fix, which I duplicate below:

The page tells these commands fix it, in Root Terminal:

wget http://www.m4r3k.org/storage/vmware-any-any-update115.tar.gz
tar xvf vmware-any-any-update115.tar.gz
cd vmware-any-any-update115/
./runme.pl

Here's a local copy of the file just in case: vmware-any-any-update115.tar.gz

In vmware-config.pl configuration script I selected with wizard:

  • Host-only networking, no NAT (so WinXP there has different IP address and I can transfer files there)
  • These are only what I used, yours may be different: Private IP address 10.0.0.101 (it seems to use private subnet 10.0.0.0), Subnet Mask 255.255.0, etc.
  • directory of VM:s in my case: /home/lauri/VirtualMachines
  • In WinXP VM I set static IP address of 10.0.0.101

You can install Windows much faster, if you make iso image of the installation CD:

1) Click Applications / Sound and Video / Brasero Disc Burning

2) Click Copy Disc

3) Select .iso image as destination and start.

4) Then in VMware Server settings use .iso image as CD drive.

By the way, I read from somewhere that WinXP in VMware in Parsix works much faster than Vista in real hardware. Well, actually booting WinXP on real hardware is too slow for me too, so I boot to Parsix and start VMWare with WinXP only when really needed.

You can right click desktop and add shortcut/starter to command vmware .

Then after I got WinXP installed, I shared folder with in WinXP (without using wizard) and connected to it from Parsix side using file manager's menu File / Connect to Server, Windows share, use WinXP VM:s IP address, login name and password, and then I could transfer files.
After that I changed WinXP SP2 included Firewall settings to accept connections from my Parsix side's IP-address.

I set from VMware Server View Menu: Toolbars / Text only, no status bar, no tabs. Then I set WinXP resolution as 800x600 so it fit nice in my 1024x768 screen.

Inside WinXP VM I use TrueCrypt Windows version, just updated it to version 5.1.
I have also connected from the WinXP VM to one real WinXP PC:s printer.

When I had problem with my eSATA external harddrive, it needed Windows's chkdsk, I added it to my WinXP VM as additional hard drive with Physical disk that means direct hardware access. After booting WinXP in VM, it didn't see the drive but fixed it anyway.

If the physical drive is not automatically fixed when WinXP boots, type this in command prompts:

chkdsk c: /F

or any other drive letter. You can also start checking drive in Windows Explorer drive options (right click drive, click options, click Tools, check for errors, and fix automatically - no full surface scan).

I have Parsix installed using whole internal laptop harddrive, and WinXP VM inside VMware.

If you have Grc.com:s Spinrite (www.spinrite.info) that fixes harddrive bad sectors and other trouble, you can first use wine to start it and create .iso image, then use VMware Server to boot iso image and as harddrive use direct access to harddisk. Spinrite in a VM needs only maybe 640k memory, but I think VMware's minimum is 4 MB of RAM. Of course you shouldn't have the harddisk mounted in linux at the same time while fixing it.


Adobe Photoshop etc. in Wine

There is new article about Wine at networkworld 2008-4-14. It has some info what programs currently works with Wine.

Currently works: Adobe Photoshop CS & CS2 (not CS3 properly yet), Dreamweaver 8, Flash CS3.
You can read more at Jomranvi's blog and Wine BugDB.

Well, if you really need it, it works. I usually use native Linux programs like Inkscape (vector graphics), Krita (CMYK support) and Gimp.

I used Adobe Photoshop CS version.

If you have Photoshop upgrade version that needs to check older Photoshop version CD, you need to have another CD drive where the older version is, because during installation of Photoshop you can't change CD:s.

If you don't have 2 CD drives, you need to make another of them .ISO image with Brasero:

1) Click Applications / Sound and Video / Brasero Disc Burning

2) Click Copy Disc

3) Select .iso image as destination and start.

Then in Root Terminal (you can use another name in place of virtualcd directory):

mkdir /media/virtualcd
mount -o loop photoshop.iso /media/virtualcd

Install www.winehq.org version (as told at http://www.winehq.org/site/download-deb) as root,
and install Microsoft's fonts too:

wget http://wine.budgetdedicated.com/apt/sources.list.d/etch.list -O /etc/apt/sources.list.d/winehq.list
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | apt-key add -
apt-get update
apt-get install msttcorefonts wine

Then put Photoshop CD in, dont use Autorun.exe but navigate to Photoshop folder where is setup.exe, right click it and open with Wine. Install as normally.

After it's installed, start it. All Photoshop menus are now visible in Wine's new version, I didn't need to open them manually this time.

For icons to show in menu, it's needed to type as normal user:

killall gnome-panel

Icons for Photoshop are in top menu: Application/Misc or Application/Other (I have Finnish menus so I'm not so sure).

You can try to uninstall Windows apps this way as norman user:

wine uninstaller

but sometimes it doesn't work. You can change some Wine settings by typing as normal user:

winecfg

Wine's Windows files are in directory /home/username/.wine/drive_c

You can read more about Wine's PhotoShop support from:
http://wiki.winehq.org/AdobePhotoshop

This all is possible because Google has sponsored to get Photoshop etc. working with Wine:
http://code.google.com/opensource/wine.html


Skype With Video

With some webcameras, video works with Skype. At 2008-3-15, there isn't Beta version available, so download from:

http://www.skype.com

It goes directly to localized Linux webpage. I installed Debian Etch .deb file. It includes some translations, others can be manually installed as described in next topic.

Beta versions are sometimes available from:
http://www.skype.com/intl/en/download/skype/linux/beta/

You can read more about it from Skype forum's Linux section:
http://forum.skype.com


Creative Live! Cam Optia

This webcam works with Linux with great image quality!

First close Skype if it's running.

In Root Terminal:

apt-get install subversion luvcview
svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk linux-uvc
cd trunk
make
make install

In Terminal as normal user:

luvcview

So now you see yourself in the screen. Use your fingers to focus camera (focus is the metal colored thing that's around camera lens) so picture is clear.

Then start Skype, and change video settings to automatically start webcam.

The driver is from http://linux-uvc.berlios.de


Logitech QuickCam Chat for Skype

I have Logitech QuickCam Chat for Skype, which still has Skype bug too dark picture. Only some webcams have that bug. I searched in Synaptic for webcam , there I found needed packages.

Here's how I got it working:

Type in Root Terminal:

apt-get install gspca-source
cd /usr/src

tar -xjf gspca.tar.bz2

m-a prepare
m-a a-i gspca

This installs and compiles gspca video for linux kernel module. Then QuickCam Chat driver.

Type in Root Terminal:

apt-get install qc-usb-source qc-usb-utils
cd /usr/src
tar -xzvf qc-usb-modules.tar.gz
cd modules/qc-usb-source/
make
make install
depmod -a
cd /usr/src/modules/qc-usb-source
./quickcam.sh

With quickcam.sh you need to press Enter many times until it says to plug in USB webcam. Well, time passed and it didn't find it, so I rebooted, and then Skype recognized it as "Logitech QuickCam EC (/dev/video0)".

qc-usb-utils includes commandline program qcset, I tried to set more light with "qcset -b 65535" command but didn't see any effect in Skype. Maybe I'll search Skype forums for more information.

If you need more info about above packages, search in Synaptic with word "webcam" and right click gspca-source, qc-usb-source or qc-usb-utils and select Properties, there is tab for filenames they installed. Sources and some docs are unarchived in /usr/src/modules directory.


Skype In Your Own Language

Check for your language translation to and download to home directory:
http://forum.skype.com/index.php?showtopic=101369

In home directory right click file and extract here

Write in Root Terminal to copy to right directory, it may be different according what language you downloaded, here I copy all files (*) from Skype_fi_2.0.0.27_v1 directory:

cp Skype_fi_2.0.0.27_v1/* /usr/share/skype/lang/

Next time you start Skype it uses translation, if it's same as used now in Parsix.


Start Skype And Other Apps Automatically When PC Starts

1) Click System / Settings / Session

2) Click Add

3) Write Name: Skype , Command: skype

4) Click Ok and Close.

You can also autostart other apps like Pidgin (MSN Messenger/Yahoo/ICQ/GoogleTalk/etc client) this way.


KeePass Password Manager

I use KeePass for password management, there is versions for many operating systems.
KeePass is at:
http://keepass.info

You can install linux version with:

apt-get install keepassx
killall gnome-panel

And then it's at top menu Applications and first submenu, KeePassX.


Leo Outlining / Literate / Programmer's Editor

I use Leo to collect notes and code in tree-like fashion. There's also lot's of plugins for Leo.
http://leo.sourceforge.net

I installed it from CVS so it had latest features.
In Google Groups they talk about compiling with newest tk and antialiasing, but I haven't tried it yet.

Screenshots

http://sourceforge.net/project/screenshots.php?group_id=3458

 

Installing Leo

From your home directory in Root Terminal:

apt-get install cvs python-tk
cvs -d :pserver:guest@cvs.tigris.org:/cvs login

Press Enter when it asks for password. Then continue typing in Root Terminal:

cvs -d :pserver:guest@cvs.tigris.org:/cvs checkout leo
cd leo
sh ./install
cd ..
rm -rf leo

The last command removes unneeded installation files. 

 

Using Leo

Leo files have extension .leo

To make new document, in Terminal as normal user type :

leo

To open pre-existing document, in Terminal as normal user type:

leo something.leo

To make desktop shortcut to document, right click desktop, click add shortcut, and use this as command line with file path:

leo /home/username/something.leo

 

Uninstalling Leo

In Root Terminal type:

rm -fr /usr/local/lib/leo
rm -f  /usr/local/bin/leo


Bluetooth Headset Jabra BT620s

Audio quality is great, but sound is sometimes a a little choppy when listening MP3. I'm using insmat USB bluetooth adapter. These tips are based on http://www.gentoo-wiki.com/HOWTO_use_a_bluetooth_headset

1) Type in Root Terminal:

apt-get install bluetooth-alsa

2) Download these textfiles to your home directory:

3) Put your headset in pairing mode.

4) Type as normal user in Terminal:

hcitool scan

5) Then it shows headset address like 00:00:00:00:00:00 with different numbers there.
Copy that address to bottom of asoundrc.txt and a2dprc.txt files.

6) Type as normal user in Terminal:

cp asoundrc.txt .asoundrc
cp a2dprc.txt .a2dprc

7) You can delete the two .txt files if you want.

8) Download some MP3, OGG or other music files to your home directory, like for example from FLOSS Weekly Podcast.

9) Type as normal user in Terminal (you can use any other audio file instead):

mplayer -ao alsa:device=bluetooth FLOSS-026.mp3

You get a popup asking for headset pin number, in my case it's 0000 . Then it starts playing.
If you need more info about mplayer, type as normal user in Terminal:

man mplayer

I tried it with Skype this way but had problems:

1) I connected headset with mplayer with the command above and pressed Ctrl-C to stop playing MP3.

2) In Skype Options / Sound Device I selected Bluetooth (not a2dpd) from all 3 dropdown lists, but when I tried test call, there was problem with the microphone. I have not yet figured out why.

Skype seems to freeze nicely when trying different settings, so I had to sometimes kill it in Root Terminal:

ps aux | grep skype
kill -9 WriteProcessNumberHere

After killing Skype starting to play MP3:s with mplayer didn't work, so I had to reboot.

If playing MP3:s with mplayer doesn't work straight away, you need to make pairing again:

1) right click bluetooth icon on top of screen and click Settings

2) click headset name and click remove

3) press headset button to get it to pairing mode

4) start mplayer again.

There may be more tips on following page, but there I didn't get automatic startup scripts working because Gentoo is so different from Parsix.
http://www.gentoo-wiki.com/HOWTO_use_a_bluetooth_headset


Change Desktop Shortcut Icons

When you right click current desktop background and click to add starter command, there are some icons available for it if you click the default icon.

But, if after creating the shortcut icon, you:

1) right click icon and click Properties

2) click the icon in the right side of name field

3) then there in the file selector is folder "pixmaps" where is more icons.

From pixmaps for TrueCrypt I selected debian-security.png and for VMware I selected gnome-windows.png .

Any of the starter icons is better than default one which usually displays too small, and if I try to resize it, it doesn't stay resized always.


VirtualBox

VirtualBox is same kind of sofware as VMware, and it's homepage is http://www.virtualbox.org

VirtualBox is noticably faster than VMware Server, and gave helpful error messages that I pasted to google search and found answers.

In Root Terminal:

gedit /etc/apt/sources.list

To the bottom copy this text:

# VirtualBox
deb http://www.virtualbox.org/debian etch non-free

In Root Terminal, to get key for repositories and install:

wget http://www.virtualbox.org/debian/innotek.asc && apt-key add innotek.asc
apt-get update
apt-get install virtualbox
/etc/init.d/vboxdrv setup

You need to add you user to the vboxuser group (this group adding tip originally from ubuntuforums):

go to System -> Administration -> Users and Groups

Select the "Manage Groups" -> Scroll down to vboxusers -> select (click) the group vboxusers -> Click "Properties" -> tick off you user box

In Root Terminal, to get USB support working:

gedit /etc/fstab

To the bottom add this text:

none /proc/bus/usb usbfs devgid=1001,devmode=664 0 0

Then in Root Terminal, to get USB this first time working (after this it's mounted automatically) :

mount -a

Log off and back in (to get vboxuser settings active).

Click Application / System Tools / Innotek VirtualBox.

Click Settings / USB and checkmark "Take USB-driver into use" (or something like that) but
do not checkmark "Enable USB Echi Controller" because that may prevent some usb devices working.

You can install Windows much faster, if you make iso image of the installation CD:

1) Click Applications / Sound and Video / Brasero Disc Burning

2) Click Copy Disc

3) Select .iso image as destination and start.

Then in VirtualBox settings use .iso image as CD drive.

To get shared folder working, in VirtualBox click Settings / Shared folders, and add shared directory
(I used new directory /home/lauri/shared ) and then in WinXP command prompt I typed:

net use x: \\vboxsvr\shared

You can change x: to other drive letter, or shared to other shared folder if you want.

Ok, now installing is finished.

----

Some rambling, not necessary to read for installation:

Well, I had many reasons for trying VirtualBox: I have Logitech QuickCam Chat for Skype webcam (that I'll may sell in near future) that has dark video in Linux, Bluetooth Headset Jabra 620s that has problems with lag and microphone in Linux, and my VMware 4 GB image is full and didn't recognize USB devices (I saw fix somewhere, need to track it down) .

With VirtualBox installed, Bluetooth works nearly (if USB2.0 support is not checked in preferences) and if there's not Linux Iceweasel and virusscanner and anything extra running - not a long term solution. Webcam can take good thill photos but not very speedy video.

Possible alternative wireless headphones for Linux:
http://www.ltbaudio.com/qbassu.html



Firefox 3 beta5

UPDATE 2008-5-13: 

Installing language pack, for example Finnish:

apt-get install iceweasel-l10n-fi

Iceweasel should use language pack now. If not, install Locale Switcher:

Restart, then from Tools / Languages select your language.

Also see:

Customize Iceweasel: Block Ads

Flash plugin, if it doesn't work yet, type in Root Terminal:

apt-get install flashplayer-mozilla

Old stuff about Swiftweasel

Iceweasel works now 2008-5-13, see above, this is not needed.

Recent Slahdot article:

Download newest Swiftweasel trunk from here:
http://sourceforge.net/project/showfiles.php?group_id=195473

There's builds for different processors, I selected athlon something for this AMD Sempron laptop.

When you have installed it, type in Root Terminal:

killall gnome-panel

If it then sometimes doesn't start  Applications / Internet menu the first time, try it again from the same menu. This is a known bug.

"incompatible addons" blaa blaa, fix copied below (from this page):

1. In the Firefox address bar type “about:config”
2. By-pass the warning screen (Anything worthwhile is a little dangerous!)
3. Right click in the list of settings, choose New > Boolean
4. Type the phrase “extensions.checkCompatibility” and press enter
5. Choose “false” as the value
6. Restart Firefox

Now all of your “incompatible” add-ons should be working.

You can download other language pack from here, left click it:
ftp://ftp.mozilla.org/pub/firefox/nightly/3.0b5-candidates/rc2/linux-xpi/

Install Locale Switcher:
https://addons.mozilla.org/fi/firefox/addon/356

Restart, then from Tools / Languages select your language.

If you anyway wanted to try installing language pack and it gives XUL errors with 4.5, you can remove language pack and not working extensions when you start Swiftweasel in Terminal:

swtrunk -UILocale en-US

Nearly all the same customizing tips apply to Firefox 3 that apply to Firefox 2, link upper in this page:
Customize Iceweasel: Toolbar, Homepage, Downloads, Passwords

Flash plugin, if it doesn't work yet, type in Root Terminal:

apt-get install flashplayer-mozilla

(I found about this deb package from here, there's also info about deb repository but I didn't use it:
http://ubuntuforums.org/showthread.php?p=4507731 )


Vodafone app and Huawei E220 3G USB modem

E220 can have some custom logos:

  • Sonera has Sonera logo on E220, and calls it Huawei E220
  • Elisa has Vodafone logo on E220, and calls it Vodafone E220

Remove pin code from sim card used in E220 with any mobile phone before using with Vodafone app.

1) Download Vodafone Mobile Connect Card driver from here:
https://forge.vodafonebetavine.net/frs/?group_id=12

I used Vodafone app that has following filename at that address above:
vodafone-mobile-connect-card-driver-for-linux-2.0.beta3-installer.run

I have mirrored the file I got working here(15MB), though version above is newer.

If you change version, you can delete old vmc directory in Root Terminal:

rm -rf /opt/vmc

And then reinstall.

2) Right click file and change it's properties to executeable (or type "chmod +x filename")

3) Run installer in Root Terminal.

4) From top menu: Applications / Internet /  Vodafone Mobile Connect Card driver for Linux

5) If it does not start, maybe you have old settings in your home directory.
    In terminal in your home directory ( /home/username/ )type:

rm -rf .vmc2

6) When Vodafone app starts, select your mobile device and add following settings.

Correct settings for Finnish Sonera Internet provider is:

Profile name: Sonera

Username: " "    (3 characters including space between them)

Password: " "

APN Host: internet           (for Sonera or Elisa) 

                                        (or prointernet if you want real IP address with Sonera, I have not tested)

                                        (or internet.saunalahti if you have Saunalahti instead of Sonera)

7) Check your wired lan settings - System / Administration / Network. It does not need to be enabled.

8) Logout and Login to Gnome again.

9) Insert Huawei E220. After a while on your desktop comes Huawei green icon that means CD-ROM image that has Huawei Windows drivers etc. Right click it and unmount it.

10) click from top menu Applications / Internet / Vodafone Mobile...

11) Check that Vodafone app menu Tools / Profiles / Edit Profile / Sonera (or some other than Sonera) has the same settings as in step 4 above.

12) Click Connect button. If it doesn't connect first time, disconnect it and Connect again.

Then you can:

  •  use webbrowser etc
  • click Vodafone app:s Usage button to see how have been uploaded and downloaded
  • click SMS to send and receive SMS messages.

When connecting to Internet next time, only steps 9-10 and 12 are needed.


OLD DO NOT USE: Kernel for Huawei E220 USB 3G-modem - and Sonera

UPDATE 2008-5-20: Use the Vodafone app above instead.

Sonera is Finnish Internet provider. "mokkula" is Finnish name that competing Internet provider DNA uses for the same device. I installed this modem for a friend, that had laptop that had originally slow Vista, I formatted it and installed Parsix, now it's fast.

This is kernel compiled for USB 3G modem, based on kernel 2.6.24.3. Only changes are these kernel options that will turn on support for it: Device Drivers -> USB support -> USB Serial Converter support ->

  • USB Serial Converter support (CONFIG_USB_SERIAL)
  • USB driver for GSM and CDMA modems (CONFIG_USB_SERIAL_OPTION)

These options I changes in /boot/config-2.6.23-parsix-17 and imported them to kerneler.
I made kernel packages with help of kerneler (version 0.19a alpha) that makes building kernels easier:
http://www.kerneler.org

(I have deleted the deb files because they're not necessary anymore, USB kernel options are included in default Parsix kernel.)

Here is Wikipedia article about Huawei E220 in English:
http://en.wikipedia.org/wiki/Huawei_E220

You can read more about it in Finnish or google for more info:
http://linux.fi/index.php/Huawei_E220/E270

I had to modify /etc/grub/menu.lst order so that new kernel is at top and boots first (Default):
title Debian GNU/Linux, kernel 2.6.24.3mokkula Default
root (hd0,0)
kernel /boot/vmlinuz-2.6.24.3mokkula root=/dev/sda1 ro ramdisk_size=100000 lang=us apm=power-off nomce quiet vga=791 resume=swap:/dev/sda2
initrd /boot/initrd.img-2.6.24.3mokkula
savedefault

Then I had to modify /etc/wvdial.conf for Sonera Internet settings, you can check in the provided manual or Windows PC if Init's text is "internet" and phone number "*99#" in your case:

[Dialer Defaults]
Modem = /dev/ttyUSB0
Init = AT+CGDCONT=1,"IP","internet"
Phone = *99#
Stupid Mode = 1
Username = " "
Password = " "

While compiling kernel I tried USB 3G modem in WinXP PC, and it didn't connect to Internet, so I had to call Sonera. So, they hadn't activated data plan, even when it was selected in the order. After that it started working in both Windows and Parsix.

After Parsix has booted, one inserts USB 3G modem with one cable, and after minute or two the light of the USB modem is steady and Internet works. To disconnect, just take the modem out of PC.