Highlighted
Absent Member.
Absent Member.
677 views

Modifying the css file

I have a little problem to understand how the default iprint web page
for printer installation http://host/ipp is set up. I do find a css file
in the /var/opt/novell/iprint/htdocs/styles directory. However, changes
there seem to have no effect even after an apache restart. For example,
I tried to change the Novell logo with another picture:
background: transparent url(images/novlogo.gif) right top no-repeat;
Could someone point me the the script or process that actually sets up
the page and reads the style file?

Günther
0 Likes
4 Replies
Highlighted
Knowledge Partner
Knowledge Partner

Re: Modifying the css file

On 16/08/2013 08:56, Günther Schwarz wrote:

> I have a little problem to understand how the default iprint web page
> for printer installation http://host/ipp is set up. I do find a css file
> in the /var/opt/novell/iprint/htdocs/styles directory. However, changes
> there seem to have no effect even after an apache restart. For example,
> I tried to change the Novell logo with another picture:
> background: transparent url(images/novlogo.gif) right top no-repeat;
> Could someone point me the the script or process that actually sets up
> the page and reads the style file?


After some investigation it seems that /ipp is handled via the iPrint
module for Apache (mod_ipp) and novlogo.gif is displayed via
/ipp/pheader.htm which appears to be hardcoded into it.

How did I find this?

I checked where the logo was coming from - hitting http://<server>/ipp
in Firefox I could see from View Page Info that it was
http://<server>/ippdocs/images/novlogo.gif

I then checked server's Apache logs to see where novlogo.gif was being
referred from - "grep novlogo.gif /var/log/apache2/access_log" which
implicated http://<server>/ipp/pheader.htm

Next I checked where /ipp mapped to on file system - "grep ipp
/etc/opt/novell/httpd/conf.d/iprint_g.conf" which found a LocationMatch
directive for /(ids|ipp) but no Directory[Match] directive. Hmm.

So does pheader.htm exist anywhere on the server? Eventually "find / |
grep pheader" said no. Another hmm.

Thinking it might be the iPrint module somehow providing pheader.htm -
"grep pheader.htm /opt/novell/iprint/httpd/lib64/mod_ipp.so" which
reported "Binary file /opt/novell/iprint/httpd/lib64/mod_ipp.so
matches". Bingo.

This was confirmed by "grep novlogo.gif
/opt/novell/iprint/httpd/lib64/mod_ipp.so" which reported "Binary file
/opt/novell/iprint/httpd/lib64/mod_ipp.so matches". Ditto for
images/novlogo.gif.

Having originally tried editing iprint.css to point novlogo at a
different .gif file, after discovering the above I replaced novlogo.gif
and restarted Apache but no joy. Even deleting novlogo.gif (after saving
a backup) didn't show a broken image so it seems mod_ipp.so may also
include novlogo.gif itself.

Oh and just to make sure there isn't a secret copy of novlogo.gif I
checked with "find / | grep novlogo" - there isn't.

Whilst I'll ask Novell I think all this means you can't customise /ipp
page ... but you could create a separate custom page with specific links
to individual printers. How much work that is will depend on how many
printers you have and how often things change.

HTH.
--
Simon
Novell Knowledge Partner

------------------------------------------------------------------------
Do you work with Novell technologies at a university, college or school?
If so, your campus could benefit from joining the Technology Transfer
Partner (TTP) program. See novell.com/ttp for more details.
------------------------------------------------------------------------
0 Likes
Highlighted
Knowledge Partner
Knowledge Partner

Re: Modifying the css file

On 16/08/2013 08:56, Günther Schwarz wrote:

> I have a little problem to understand how the default iprint web page
> for printer installation http://host/ipp is set up. I do find a css file
> in the /var/opt/novell/iprint/htdocs/styles directory. However, changes
> there seem to have no effect even after an apache restart. For example,
> I tried to change the Novell logo with another picture:
> background: transparent url(images/novlogo.gif) right top no-repeat;
> Could someone point me the the script or process that actually sets up
> the page and reads the style file?


PS you didn't say which version of OES you're using but I tested with
OES11 SP1 (patched up to January 2013.)

HTH.
--
Simon
Novell Knowledge Partner

------------------------------------------------------------------------
Do you work with Novell technologies at a university, college or school?
If so, your campus could benefit from joining the Technology Transfer
Partner (TTP) program. See novell.com/ttp for more details.
------------------------------------------------------------------------
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Modifying the css file

Am 16.08.2013 16:56, schrieb Simon Flood:
> On 16/08/2013 08:56, Günther Schwarz wrote:
>
>> Could someone point me the the script or process that actually sets up
>> the page and reads the style file?

>
> After some investigation it seems that /ipp is handled via the iPrint
> module for Apache (mod_ipp) and novlogo.gif is displayed via
> /ipp/pheader.htm which appears to be hardcoded into it.


> Thinking it might be the iPrint module somehow providing pheader.htm -
> "grep pheader.htm /opt/novell/iprint/httpd/lib64/mod_ipp.so" which
> reported "Binary file /opt/novell/iprint/httpd/lib64/mod_ipp.so
> matches". Bingo.
>
> This was confirmed by "grep novlogo.gif
> /opt/novell/iprint/httpd/lib64/mod_ipp.so" which reported "Binary file
> /opt/novell/iprint/httpd/lib64/mod_ipp.so matches". Ditto for
> images/novlogo.gif.


Thank you very much indeed for the thorough investigation and
explanation. As I'm rather old school I was searching in configuration
files and scripts in the htdocs directory and not in the binaries.

> Having originally tried editing iprint.css to point novlogo at a
> different .gif file, after discovering the above I replaced novlogo.gif
> and restarted Apache but no joy. Even deleting novlogo.gif (after saving
> a backup) didn't show a broken image so it seems mod_ipp.so may also
> include novlogo.gif itself.
>
> Oh and just to make sure there isn't a secret copy of novlogo.gif I
> checked with "find / | grep novlogo" - there isn't.


Actually on my system I can replace the picture with a different one
with the very same name, and it shows up as soon as the page is
reloaded. This is what I probably will do given that it might be too
much a task to play with the binary.

> Whilst I'll ask Novell I think all this means you can't customise /ipp
> page ... but you could create a separate custom page with specific links
> to individual printers. How much work that is will depend on how many
> printers you have and how often things change.


This is explained in the documentation, but might be too much work where
a little bit of cosmetic changes of the default page will be sufficient
for me.

Günther
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Modifying the css file

Am 16.08.2013 17:02, schrieb Simon Flood:
> On 16/08/2013 08:56, Günther Schwarz wrote:
>
>> I have a little problem to understand how the default iprint web page
>> for printer installation http://host/ipp is set up. I do find a css file
>> in the /var/opt/novell/iprint/htdocs/styles directory. However, changes
>> there seem to have no effect even after an apache restart. For example,
>> I tried to change the Novell logo with another picture:
>> background: transparent url(images/novlogo.gif) right top no-repeat;
>> Could someone point me the the script or process that actually sets up
>> the page and reads the style file?

>
> PS you didn't say which version of OES you're using but I tested with
> OES11 SP1 (patched up to January 2013.)


Here it is OES11 SP1 also. Have a nice weekend.

Günther

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.