WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Need Help With Opera 10.10 & PDF Files  (Read 5481 times)

Offline zak

  • Newbie
  • *
  • Posts: 8
Need Help With Opera 10.10 & PDF Files
« 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.
« Last Edit: January 27, 2010, 07:25:36 AM by zak »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10962
Re: Need Help With Opera 10.10 Autostart
« Reply #1 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.
« Last Edit: January 26, 2010, 03:02:07 AM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline zak

  • Newbie
  • *
  • Posts: 8
Re: Need Help With Opera 10.10 Autostart
« Reply #2 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?


Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10962
Re: Need Help With Opera 10.10 Autostart
« Reply #3 on: January 26, 2010, 04:22:41 AM »
The code in the quote above should work. Put it after the line that has flit.
The only barriers that can stop you are the ones you create yourself.

Offline zak

  • Newbie
  • *
  • Posts: 8
Re: Need Help With Opera 10.10 Autostart
« Reply #4 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!!!

Offline zak

  • Newbie
  • *
  • Posts: 8
Re: Need Help With Opera 10.10 & PDF Files
« Reply #5 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

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10962
Re: Need Help With Opera 10.10 & PDF Files
« Reply #6 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.
The only barriers that can stop you are the ones you create yourself.

Offline zak

  • Newbie
  • *
  • Posts: 8
Re: Need Help With Opera 10.10 & PDF Files
« Reply #7 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" 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", 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 ???

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10962
Re: Need Help With Opera 10.10 & PDF Files
« Reply #8 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.
The only barriers that can stop you are the ones you create yourself.

Offline zak

  • Newbie
  • *
  • Posts: 8
Re: Need Help With Opera 10.10 & PDF Files
« Reply #9 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:


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.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10962
Re: Need Help With Opera 10.10 & PDF Files
« Reply #10 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.
The only barriers that can stop you are the ones you create yourself.

Offline zak

  • Newbie
  • *
  • Posts: 8
Re: Need Help With Opera 10.10 & PDF Files
« Reply #11 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.

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: Need Help With Opera 10.10 & PDF Files
« Reply #12 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
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10962
Re: Need Help With Opera 10.10 & PDF Files
« Reply #13 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.
The only barriers that can stop you are the ones you create yourself.

Offline zak

  • Newbie
  • *
  • Posts: 8
Re: Need Help With Opera 10.10 & PDF Files
« Reply #14 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.