Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: zak on January 26, 2010, 12:42:02 AM

Title: Need Help With Opera 10.10 & PDF Files
Post by: zak on January 26, 2010, 12:42:02 AM
Good morning.

I'm new here, so first of all a big HELLO to everybody.

I've got a problem and need some help.
I'm a Linux-Noob (normally using Macintosh).

I installed the latest version of TC and was able to integrate in bootlocal.sh a german keyboard layout.
Now I'm hanging by integrating Opera to run automatically on systemstartup/login.

When I start Opera from the shell (root@box:/home/tc# opera) there's a folder generated called ".opera". It's located in /root and comprises the "normal" opera files (like operaprefs.ini).
After a reboot this folder is deleted.
But I need this one to save the "urlfilter.ini" to restrict webaccess.

The folder is only generated when I start Opera from shell. Starting it from the "task bar" it's not there.

1st question: how can I make the ".opera" folder persistent?
2nd question: what's the correct command in bootlocal.sh to start opera automatically after system start? I integrated "loadopera < /usr/local/bin/opera" but that didn't work.


Thanks in advance for your help.

Regards
Johannes

P.s.: I would like to setup a machine which I power on, Opera starts automatically in kioskmode and only one website is available.


EDIT:
Question 1 is fixed. I found the folder in "/home/tc/.opera". Now I only need to run it during startup.
Title: Re: Need Help With Opera 10.10 Autostart
Post by: curaga on January 26, 2010, 03:00:11 AM
True, don't run a browser as root.

X apps can't be started from bootlocal.sh, they would go in /home/tc/.xsession backgrounded.
Quote
opera &

Re persistency, you can store your Opera prefs either via backup or persistent home. On a kiosk machine I would use backup, so that after setting it up, you can turn backup off, so any new settings made are removed on reboot.

On the other hand, I'm not sure what prefs Opera allows the user to change when in kiosk mode.
Title: Re: Need Help With Opera 10.10 Autostart
Post by: zak on January 26, 2010, 03:51:30 AM
Thanks for your help curaga.

Can you tell me which code I exactly have to insert in the .xsession to become Opera autostarted?

Title: Re: Need Help With Opera 10.10 Autostart
Post by: curaga on January 26, 2010, 04:22:41 AM
The code in the quote above should work. Put it after the line that has flit.
Title: Re: Need Help With Opera 10.10 Autostart
Post by: zak on January 26, 2010, 05:16:31 AM
It worked ;D THANKS!!!!

Damn what easy :D

I added now "opera -kioskmode &" and it runs very well.
Great. Thanks again!!!
Title: Re: Need Help With Opera 10.10 & PDF Files
Post by: zak on January 27, 2010, 07:30:30 AM
Hey mates.

Is it possible to link PDF files as an application in Opera?
I downloaded and installed Xpdf and epdfview and tried to set the MIME filetype in Opera (Prefences -> Advanced -> Downloads) with a new "link" to pdf and the path "/usr/local/bin/xpdf".
Furthermore I linked it under Preferences -> Advanced -> Programs.

Unfortunately nothing worked yet.

Whats the trick to get it working?

Thanks again for your help.
Johannes
Title: Re: Need Help With Opera 10.10 & PDF Files
Post by: curaga on January 27, 2010, 07:45:53 AM
I understand you created a new type called "pdf"?

Prefs -> Advanced -> Downloads, untick the box that says "hide file types opened by opera", type pdf into the search box. The result should be "application/pdf". This is the correct mime type to edit.
Title: Re: Need Help With Opera 10.10 & PDF Files
Post by: zak on January 27, 2010, 11:49:20 PM
Exactly.
I created a new type at "Downloads".

Furthermore I added in the same way a new type at "Preferences -> Advanced -> Programs".

It works...sometimes.
When I klick at this link "ATS-Wheels Motorsport Flyer 2009 (http://atsmotorsport.de/ats/index.php?option=com_content&task=view&id=229&Itemid=284)" at "PDF-Download (1.6MB)" it's correctly opened with xpdf.

But when I try to open the PDF at this link "ATS-Wheels DTC Superlight ABE/TÜV Certificate (http://atsmotorsport.de/ats/index.php?option=com_rsfiles&task=files.display&path=...ATS...ATS_DTC...DTC-75714_7%2C5x17...4-Loch-108-Einpresstiefe_20...63%2C4_Ford&Itemid=50)", Opera opens a download-window but I'm not able to use "open" because there's no other application linked in the drop-down-field by "Open with".

I'm a little bit confused ???
Title: Re: Need Help With Opera 10.10 & PDF Files
Post by: curaga on January 28, 2010, 05:03:28 AM
It also depends on the server; if the server doesn't send the mime type as pdf, web browsers have nothing to say against it.
Title: Re: Need Help With Opera 10.10 & PDF Files
Post by: zak on January 28, 2010, 05:55:10 AM
Exactly. That's clear.
But why doesn't Opera show in the drop-down-field at "Open with" the Xpdf-Viewer when the window opens to aks where the file should be saved?

I attached a screenshot of the "Download file"-box from my Windows XP machine.
At TC and Linux-Opera I am only able to select "Other Application ...".


Next problem: systemwide the "@" (ATL-GR+Q at Gernan keyboard layout) as well as the vowels (ö, ä, ü), the "ß", "\" and some other keys in conjunction with "ALT-GR" are working fine. But in Opera it's not possible to type them.
I tried every German keyboard layout available with kmap (de-latin1-nodeadkeys.kmap, de-latin1.kmap, de.kmap, de_CH-latin1.kmap).
The keys are not "stored" in another position (like US-layout). They're just not working.

German layout looks like this:
(http://upload.wikimedia.org/wikipedia/commons/thumb/3/36/KB_Germany.svg/400px-KB_Germany.svg.png)

Is there a file I can edit to fix this and "route" Opera to the correct settings?
"standard_keyboard.ini" at "/usr/local/share/opera/ui/" isn't a helpful option.
Title: Re: Need Help With Opera 10.10 & PDF Files
Post by: curaga on January 28, 2010, 06:04:15 AM
Maybe on Windows Opera doesn't rely on the mime type sent by the server, but on the file extension. If you take a look in the two links posted before, the first is sent as a pdf, but the second as "unknown".

Alt-gr - see the faq; this is a limitation of Xvesa. Can be fixed with a xmodmap invocation.
Title: Re: Need Help With Opera 10.10 & PDF Files
Post by: zak on January 29, 2010, 06:31:08 AM
"Before I ask a question, I have to check the FAQ" ;D
Thanks for the tip. I got it now.

And now I try to get Acrobat Reader 9.3 working with TC.
Title: Re: Need Help With Opera 10.10 & PDF Files
Post by: beerstein on January 29, 2010, 09:37:35 AM
HI:
How did you this?

"I installed the latest version of TC and was able to integrate in bootlocal.sh a german keyboard layout."

I would like to have another keyboard layout too.

Thank you
beerstein
Title: Re: Need Help With Opera 10.10 & PDF Files
Post by: curaga on January 29, 2010, 01:43:18 PM
- install kmaps.tcz
- add boot param "kmap=de" to have a german layout

The latter step can also be done via bootlocal.sh.
Title: Re: Need Help With Opera 10.10 & PDF Files
Post by: zak on February 02, 2010, 02:03:59 AM
@beerstein:

As curaga said, install kmaps.tcz from the application manager.

Then add at bootlocal.sh the line:
"loadkmap < /usr/share/kmap/???.map (??? = the map you want. Use "de-latin1" for the German one)

After that, add at .xsession the line:
"sleep 3 && xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &"
AFTER "waitforX"!

Then the kmap should work systemwide and in every installed program.
Title: Re: Need Help With Opera 10.10 & PDF Files
Post by: beerstein on February 02, 2010, 04:36:40 AM
Thank you for your help. I will try it. I also have problems with permanent extensions on /hda1 while using lice CD. I got good help in another post of the forum.

I will let you know.
beerstein