Parsix Linux Vinkit
 

THIS PAGE IN ENGLISH 


Uusimmat päivitykset

23.6.2008:

16.3.2008:

  • APUVA, englanninkieliselle sivulle (linkki yllä) on tullut niin paljon päivityksiä, että missä ihmeen vaiheessa mä kerkiän niitä suomentelemaan... ehkä joskus kun pöly laskeutuu... 

14.3.2008:

  • Uusimmat päivitykset - uusi aihe
  • Johdanto - poistettu asiaa 100Hz:sta josta kerrotaan myöhemmin tällä sivulla, ja siirretty asiaa uuteen aiheeseen Parsix Linuxin asentaminen

13.3.2008:

  • Suomentaminen on kesken, tänään saatiin jo 1/3 asti suomennettua
  • Adobe Photoshop jne. ja Wine - lisätty ohjelmia jotka toimivat Winellä
  • Imuroi Parsix taustakuva - uusi aihe
  • Tietoa Debian pakettivarastoista joissa ohjelmat ovat - lisätty apt-get clean ja apt-get dist-upgrade komennot 

12.3.2008:  

  • Katso Quicktime videoita kuten Apple.com keynoteja jne. - uusi aihe
  • VMware Server: lisätty noin 3 kappaletta loppuosaan komennosta chkdsk C: /F  kun korjataan NTFS osiota
  • Asenna PDF tulostin - uusi aihe

 

Johdanto 

Hei, olen Lauri Ojansivu, Parsix Linux -käyttäjä.

Parsix Linuxin kotisivut ovat osoitteessa http://www.parsix.org ja Parsix on kotoisin Iranista.

Parsixin pääkehittäjästä on vuonna 2006 tehty haastattelu Distrowatch:issa, mutta monia päivityksiä on sen jälkeen tullut.

Luin DistroWatch:in kommenteista 3.2.2008 että Parsix on paljon nopeampi kuin Ubuntu Linux ja aloitin kirjoittaa tätä 4.2.2008.

Kokeilin Parsix Live CD:tä ja löysin seuraavaa:

  • se on selvästi nopeampi
  • se tunnisti ja asetti 100Hz virkistystaajuuden ulkoiseen monitoriin ensin, sitten kadotti asetuksen päivitysten yhteydessä, joten lisäsin 100Hz virkistystaajuuden uudestaan.
  • En tarvinnut Ubuntu -korjausta "Pysäytä usein esiintyvät yhdeksi sekunniksi jumiutumiset" koska niitä ei esiintynyt ollenkaan!
  • Parsix perustuu muokattuun Debian testing-versioon ja osittain Kanotixiin, ei Ubuntuun. Ubuntu puolestaan on Debianista paljon muokattu versio ja käyttää täysin omia pakettivarastojaan.
  • sudo ja gksudo ei toimi (antaa käyttölupa kielletty -virheitä), joten täytyy käyttää Root Terminal:ia.
  • Kun kerran kirjoitan root salasanan Synaptic:ia tai muuta ohjelmaa avatessa, se muistaa salasanan seuraavilla kerroilla saman istunnon aikana.


Parsix Linuxin asentaminen

1) Mene osoitteeseen http://www.parsix.org ja imuroi .iso tiedosto SF.Net:stä.

2) Polta se tyhjälle CD-R tai CD-RW levylle Nerolla tai millä tahansa muulla poltto-ohjelmalla. Jos sinulla ei ole poltto-ohjelmaa, voit etsiä sitä osoitteesta http://www.google.fi hakusanalla "free cd burn".

3) Käynnistä kone uudelleen kun CD on CD-asemassasi. Jos se ei käynnisty, sinun tulee muuttaa BIOS asetuksia, yleensä painamalla F2 tai Delete -näppäintä konetta käynnistäessä, ja valita CD asema ensimmäiseksi jolta käynnistetään. Jos sinulla on enemmän kuin yksi sisäinen CD-asema, sinun tulee kokeilla mistä niistä CD alkaa käynnistyä.

4) Parsix Live CD:n käynnistysruudusta voit valita kielen F2 näppäimellä. Jos sinulla on laajakuvanäyttö, valitse oikea näytön tarkkuus myös.

5) Kun Live CD on käynnistynyt, aloita asentaminen kaksoisklikkaamalla Install-kuvaketta.

6) Sinulla voi olla Windows ensimmäisellä osiolla, toinen osio ext3 muodossa (jotta voit käyttää sitä myös Windowsin puolelta, kuten on kerrottu alempana tällä sivulla) ja kolmas osio Linux swap:ina - kooltaan noin kaksi kertaa RAM-muistisi määrä. Lisää boot -lippu (boot flag) ensimmäiselle osiolle jos sitä ei vielä ole siellä.

Kannettavassani jossa on 1GB RAM-muistia minulla on vain yksi ext3 osio Parsixille ja yksi 2GB swap osio, ja ajan VMware Serverissä WinXP:tä.

 

Netti toimimaan

Asennuksen jälkeen netti ei heti toiminut, joten se piti ottaa käyttöön valikosta Järjestelmä / Ylläpito / Verkko, ruksaa kohdan Langallinen yhteys.

Toinen vaihtoehto on klikata Sovellukset / Parsix / Network Configuration .

Jos sinulla ei ole network manager:ia (Järjestelmä / Ylläpito / Verkko) ja onnistut muulla tavoin saamaan nettiyhteyden, voit kirjoittaa Root Terminal:issa:

apt-get install network-manager 

Tai imuroidan sen toisella tietokoneel (tai samalla koneella kun se on käynnistetty Windowsin puolelle) ja siirtää asennuspaketin CD:llä tai USB tikulla:

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


Muuta oletus ulkoasua

Järjestelmä / Asetukset / Ulkoasu ja valitse Parsix, niin näyttää samannäköiseltä kuin Ubuntu eikä niin tummalta.


Imuroi Parsix taustakuva

Voit imuroida ison version tästä taustakuvasta ja lukea kuvasta lisää täältä.

Kuvan on tehnyt Parsix käyttäjä [--x--] Californiasta.


Kirjaudu automaattisesti sisään

1) Klikkaa Järjestelmä / Ylläpito / Kirjautumisikkuna.

2) Klikkaa Turvallisuus -välilehteä.

3) Ruksaa "Ota automaattinen kirjautuminen käyttöön" ja kirjoita käyttäjänimesi sinne ja klikkaa Sulje.


Tietoa Debian pakettivarastoista joissa ohjelmat ovat

Debian paketit on nimetty kuten paketti.deb (kuten skype.deb jne)
joten voit asentaa ne root:tina kirjoittamalla:

dpkg -i package.deb

- mutta tämä on tarpeellista vain, jos paketti ei löydy jo valmiiksi pakettivarastoista.
Voit lukea lisää dpkg ja muista komennoista kirjoittamalla

man dpkg        (tai man toinenkomento)


Mutta tavallisesti voit käyttää apt-get komentoa näin:

apt-get update (päivittää pakettilistat)
apt-get upgrade (imuroi ja asentaa kaikki päivitykset)
apt-get dist-upgrade (jotkut päivitykset tarvitsevat päivittää distroakin)
apt-get clean (poistaa tilaa viemästä jo asennetut asennustiedostot)
apt-cache search firefox (etsii paketti, käytetty esimerkki on firefox)
apt-get install mozilla-firefox (asentaa paketin)
apt-get remove mozilla-firefox (poistaa paketin)


Pakettivarastot, joissa ohjelmat ovat, on lueteltu tekstitiedostossa, jota voit muokata Sovellukset / Apuohjelmat / Root Terminalissa:

gedit /etc/apt/sources.list

Oletuksena siellä lukee jotain tähän tapaan:

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

mutta Debianilla on myös paikallisia pakettivarasto-peilejä, joten Suomea varten (ja nopeampien imurointien takia) muutin sen seuraavaksi:

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

Voit lisätä lisää pakettivarastoja (kuten wine:n www.winehq.org pakettivaraston, enemmän winestä myöhemmin tällä sivulla) tekstieditorilla, tai voit käyttää graafista käyttöliittymää Synaptic:ia.
Synaptic on valikossa Järjestelmä / Ylläpito, ellei ole voit asentaa sen komennolla:

apt-get install synaptic

Jos haluat saada ilmoituksen kun uusia päivityksiä on saatavilla, voit asentaa ohjelman update-notifier:

apt-get install update-notifier


Lisää suomennoksia

Iceweasel perustuu Firefoxiin ja on Parsixin oletus nettiselain.
OpenOffice ohjelmalla voit muokata Word, Excel ja PowerPoint tiedostoja.
(Voikko on suomen kielen oikoluku ja tavutus OpenOfficelle).

Seuraavilla komennoilla Root Terminal:ssa saat lisää suomennoksia:

apt-get update
apt-get install iceweasel-l10n-fi openoffice.org-l10n-fi openoffice.org-voikko
apt-get install debconf
dpkg-reconfigure locales

Sitten tarkista OpenOfficen asetukset, eli klikkaa Sovellukset / Toimisto / OpenOffice Writer.
OpenOfficen ylävalikosta Työkalut / Asetukset / Kieliasetukset / Kielet,
sieltä Asiakirjan oletuskielet Länsimainen -pudotusvalikosta valitse Suomi.
Sitten Kieliasetukset / Kirjoituksen aputyökalut ja katso että ylimmät 3 kohtaa on ruksattuna, eli Voikko oikoluku ja tavutus jne. Sitten klikkaa Ok. Voit kokeilla kirjoittaa suomenkielistä tekstiä, väärin kirjoitetut näkyy alleviivattuina aaltoviivoilla.


Windows käynnistymään oletuksena

Tämä siis siinä tapauksessa, jos sinulla on myös Windows tietokoneessasi.

Root Terminalissa:

gedit /boot/grub/menu.lst

Sen tekstitiedoston lopussa on Windows tekstirivit. Valitse ne ja leikkaa ja liitä ne ylemmäs ennen tekstiä "### BEGIN AUTOMAGIC KERNELS LIST".

Tallenna ja poistu Geditistä.


Windowsin puolelta muokkaa Linux osion tiedostoja

Tämä siis siinä tapauksessa, jos sinulla on myös Windows tietokoneessasi, ja Linux osio käyttää on ext3-muodossa.

Asenna ext2fsd asennusvelho:

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

Joku voi olla kiinnostunut myös muista unix komennoista Windowsille::

http://unxutils.sourceforge.net


Kiinteä IP-osoite toimimaan

Jos haluat kiinteän IP-osoitteen, lisää ADSL-modeemin IP-osoite myös verkkoasetusten välilehdelle DNS / Haettavat aluenimet.


Korjaa resoluutio jne. näyttöasetukset tarvittaessa 

Parsix päivitykset sekoitti välillä ulkoasu ja xorg asetuksia, helpoin tapa korjata se on seuraava:

1) Käynnistä Parsix live cd:llä, joten se tunnistaa automaattisesti näyttöasetukset.

2) Ota käyttöön (mounttaa) sisäinen kovalevy kaksoisklikkaamalla sen kuvaketta työpöydällä, minun tapauksessani kyseessä oli sda1.

3) Kirjoita Root Terminalissa (root salasana on parsix) :     (muista vaihtaa sda1 tarvittaessa!)

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

4) Käynnistä uudellee Parsixiin joka käynnistyy kovalevyltäsi

5) Järjestelmä / Asetukset / Ulkoasu / Kirjasimet:

- muuta kaikkien fonttien kooksi 8
- klikkaa Lisätiedot...
- vaihda luvuksi 98 DPI
- klikkaa Sulje ja Sulje

 


100Hz virkistystaajuus monitorin 1024x786 näyttötilaan

(Tätä ei itse asiassa tarvita jos käytät edellistä vinkkiä korjaamaan näyttöasetukset.) 

Sovellukset / Apuohjelmat / Root Terminalissa kirjoita:

gedit  /etc/X11/xorg.conf

Sieltä muuta kohtaa HorizSync:

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

 

Katso Windows Media videota Iceweasel selaimessa

Jotta saat MTV3:n uutiset ja muut Windows Media ja ja Quicktime videot toimimaan, kirjoita Sovellukset / Apuohjelmat / Root Terminal:issa seuraavaa:

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

Näin asentuu tarvittavat ohjelmisto debian-multimedia.org:ista joka on oletuksena mukana pakettivarastoissa /etc/apt/sources.list tekstitiedostossa.


Katso Quicktime videoita kuten Apple.com keynoteja jne.

1) Mene Iceweasel -nettiselaimella osoitteeseen Apple.com ja klikkaa mitä tahansa videosivua

2) Iceweasel selaimesta klikkaa Näytä / Sivun lähdekoodi

3) Näppäile Ctrl-F (tai klikkaa Muokkaa / Etsi tältä sivulta)

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

(Iceweasel asetuksien muokkausta, mainospoisto jne.)

You can chage Iceweasel addon settings at Tools / Addons, but here's some direct links to addons. (Iceweasel-selaimessa voit muokata lisäosia valikossa Työkalut / Lisäosat, mutta tässä muutamia suoria linkkejä lisäosiin.

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 select for example US adblock list updates, and click to set checkmark that automatic update dialog is not showed again. (Selaimen uudelleenkäynnistyksen jälkeen voit valita esim. US:n mainospoisto listapäivitykset ja ruksata ettei mainospoisto automaattipäivityksistä ilmoiteta myöhemmin).


Customize Iceweasel: toolbar, homepage, downloads, passwords 

(Muutetaan Iceweaselin asetuksia):

1) Click Show / Toolbars / Bookmars bar to not show it (Näytä / Työkalupalkit / Kirjainmerkkipalkki klikkaamalla pois näkyvistä)

2) Right click Homepage button and select Edit (Klikkaa oikealla hiiren painikkeella Aloitussivu painiketta ja valitse Muokkaa)

3) From Show dropdown list select Icons and text (Näytä-pudotusvalikosta valitse Kuvakkeet ja teksti).

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. (Vedä Adblock painike työkalupalkista Muokkaa-ikkunaan ja vedä Tulosta-painike Muokkaa-ikkunasta G-Googlen vasemmalle puolelle.)

5) Click Finish to close Edit window (Klikkaa Valmis sulkeaksesi Muokkaa-ikkunan.)

6) Click Edit / Settings (Klikkaa Muokkaa / Asetukset).

7) Homepage: well, we use local Google homepage http://www.google.fi
(Kotisivuna meillä on käytössä Googlen etusivu)

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.
(Yleiset-välilehti: Kun Iceweasel käynnistyy: no, minä käytän vaihtoehtoa "Avaa viimeisen istunnon ikkunat ja välilehdet" mutta jotkut haluaa valita "Avaa aloitussivuni").

9) General Tab, Downloads: uncheck "Close when downloads are ready" and check "Always ask download folder".
(Yleiset-välilehti, Lataukset: ota ruksi pois kohdasta "Sulje se, kun lataukset ovat valmiita" ja ruksaa "Valitse aina tallennuskansio".)

10) Security Tab: Uncheck "Save passwords".
(Turvallisuus: Ota ruksi pois kohdasta "Tallenna sivustojen salasanat".)


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 web page editor (updated version of Nvu)

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

(KompoZer on uusin versio nettisivujen muokkausohjelmasta joka muistuttaa FrontPagea ja DreamWeaveria, tosin KompoZer on saatavilla vasta englanniksi. Suomeksi ohjelman saa kun käyttää vanhempaa Nvu:ta, jonka asennustiedosto on:

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

Eli avaa se suoraan (tai imuroi se ja asenna kaksoisklikkaamalla). Sen jälkeen kirjoita Sovellukset / Apuohjelmat / Root Terminal:issa seuraavaa:

killall gnome-panel

Tämä päivittää valikot, eli nyt näkyy Sovellukset / Ohjelmointi / Nvu.
Nvu:n suomen kielen kielipaketti on osoitteessa:

http://www.mozilla.fi/wiki/Kielipaketit

)


 

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, so now my /etc/fstab is as following:

# /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).

At first I couldn't make directories to NTFS-3G partition. This was because of directory permissions.
sdb1 is the external SATA drive.
So I had to type following, change lauri to your own username:

cd /media
umount /media/sda1
umount /media/sda5
umount /media/sdb1
chown lauri sda1
chown lauri sda5
chown lauri sdb1

And then manually mount it as root:

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) Script to executeable: 

chmod u+x /home/lauri/esata/starttaa.sh

2) Edit some text file as root with gedit:

gedit /etc/init.d/mountall.sh

There add 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        }

3) 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

This is needed, because mount -a doesn't work yet at earlier step mountall.sh, but works 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:    (Sovellukset / Apuohjelmat / Pääte)

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.fi.debian.org/debian/ experimental main non-free contrib
deb-src http://ftp.fi.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

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!


Asenna PDF tulostin

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.


Kernel for Huawei E220 USB 3G-modem - "mokkula" - and Sonera

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.

IN FINNISH:
Sonera on suomalainen Internet-palvelujen tarjoaja, ja käytän USB 3G-laitteesta nimeä "mokkula" kuten DNA:n mainoksissakin. Asensin mokkulan kaverille, jolla oli kannettavassa hidas Vista, joten formatoin koneen ja asensin Parsix -linuxin, joten kone on nyt nopea. 

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)

Tämä on Parsixiin käännetty uusi kernel, joka perustuu kernel versioon 2.6.24.3. Ainoat muutokset siihen on yllä näkyvät asetukset. Kerneli on käännetty kerneler-apuohjelman avulla joka tekee kääntämisen helpommaksi, linkki alla.

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

You can download these deb packages from:
Voit imuroida asennus deb-paketit osoitteesta:
http://sivuja.info/parsix_mokkula/

You can read more about it in Finnish or google for more info:
Tarkempia tietoja asennuksesta on suomenkielisellä sivulla:
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):
Minun täytyi muokata tekstitiedostoa /etc/grub/menu.lst että se on ylimpänä ja oletusarvona (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 settings:
Sitten muokkasin /etc/wvdial.conf tekstitiedostoa että siinä on Soneran asetukset:

[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.

Kääntäessä kerneliä kokeilin mokkulaa WinXP koneessa, eikä se yhdistänyt nettiin, joten piti soittaa Soneralle. He eivät tietenkään olleet aktivoineet datapakettia, vaikka se oli merkitty tilaukseen. Sen jälkeen netti alkoi toimia Windowsissa ja Parsixissa.

Kun Parsix on käynnistynyt, laitetaan mokkula yhdellä kaapelilla kiinni, ja minuutin tai parin päästä mokkulan valo palaa tasaisena ja netti toimii. Yhteyden saa poikki kun ottaa modeemin irti.


TrueCrypt 5.0a

I installed debian package of TrueCrypt 5.0a 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).
$ 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>

And modify the default /etc/sudoers file to contain extra lines something like (change lauri to your username):

# User alias specification
User_Alias TRUECRYPTERS = lauri
# Cmnd alias specification
Cmnd_Alias TRUECRYPT = /usr/bin/truecrypt
# User privilege specification
TRUECRYPTERS ALL = (root) 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 first asks volume password, and then root password, and works ok.

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. VMware Server has local GUI that I used, just like in VMware Workstation.
When I installed it, during compiling kernel module, it had some compile error. When I pasted it to Google, it found some (was it italian?) page that had instructions, I tried to find it on my PC, but didn't yet... maybe it's the same patch that's in page
http://www.kvaes.be/ubuntu/vmmon-issues-with-ubuntu-gutsy-gibson/
and that archive had runme.pl that patched VMware's kernel module source and then I got it compiling ok.

If finds the site while installing VMware Server, you can email me, my name is in this website's http address, and gmail address is like firstname.lastname@gmail.com

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, 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.

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 jne. ja 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.
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 in. I had to open tool palettes etc from window menu.

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. Download it 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

But I haven't got video working yet in Parsix, it worked in Ubuntu. Mostly this is because I haven't had yet time to figure it out yet. I have Logitech QuickCam Chat for Skype webcam. In Ubuntu there was a problem, that this camera model's video was too dark, because automatic light settings didn't work (it did work in other Linux videochat programs). I haven't checked if this video too dark problem is fixed yet.

If you have any tips, you can email me, my name is in this website's http address, and gmail address is like firstname.lastname@gmail.com

Thanks!

 

Skype in Finnish or other language - SKype suomeksi

Download Finnish or other translation to home directory:    (Imuroi suomennos kotikansioon: )
http://forum.skype.com/index.php?showtopic=101369

In home directory right click file and extract here   (kotikansiossa klikkaa oikealla hiiren painikkeella ja pura tähän)

Write in Root Terminal to copy to right directory:         (Kirjoita Root Terminal:ssa kopioidaksesi oikeaan kansioon: )

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

Next time you start Skype it uses translation.        (Kun seuraavan kerran käynnistät Skypen, se on suomeksi. )

 

Start Skype and other apps automatically when PC starts

1) Click System / Settings / Session   (klikkaa Järjestelmä / Asetukset / Istunnot)

2) Click Add        (Klikkaa Lisää)

3) Write Name: Skype   ,  Command: skype   (Kirjoita Nimi: Skype  , Komento: skype )

4) Click Ok and Close.   (Klikkaa OK ja Sulje).

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

(Voit tällä tavalla käynnistää automaattisesti myös muita ohjelmia, kuten Pidgin jolla voi chattailla MSN Messenger/Yahoo Messenger/ICQ/Google Talk/etc kaverien kanssa).


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 in tree-like fashion and it's many other features.
http://leo.sourceforge.net

I had to install it from CVS so it had latest fixes and worked ok.
Well, in Google Groups they talk about compiling with newest tk and antialiasing, but I haven't tried it yet.

From your home directory as root: 

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

Leo files have extension .leo
Then as normal user you can type something like:

leo
leo something.leo

Or make desktop shortcut to document, using command line leo something.leo
There's lot's of plugins etc for leo.



I HAVE NOT TESTED THESE BELOW: 

Jabra BT620s Bluetooth Headset working

Install gbtsco version 1.1 from:

http://www.stgraber.org/category/gbtsco

Well, the problem for me is still that it gives disturbing hiss and beep noises while listening, and that I haven't got newest iTunes working in ubuntu, so I'll still need to use WinXP for listening.

apt-get install bluetooth-alsa