Launcher customization

If I try to this customization, I get

grafik

Permissions of the files are 644 with owner root. Path is exactly like in the docs.

When I open the index.html direct from my hdd the page works.
What did I miss?

It’s hard to have an idea what was wrong.

Can you paste relevant log?

Maybe @andre8244 can help here :slight_smile:

Hi flatspin,

can you please paste the output of the following commands too?

config show httpd

ll /usr/share/httpd/noindex/

tree /usr/share/httpd/noindex/

1 Like

Hi Andrea, thanks for helping.

Here it is:

httpd=service
    HomePage=startpage
    SSLCipherSuite=HIGH:MEDIUM:!aNULL:!MD5:!SEED:!IDEA
    TCPPorts=80,443
    access=green
    status=enabled

ll /usr/share/httpd/noindex/
total 8
drwxr-xr-x. 3 root root   96 Oct 18 10:46 css
drwxr-xr-x. 2 root root   48 Oct 18 10:46 images
-rw-r--r--  1 root root 4897 Oct 16  2014 index.html
drwxr-xr-x  3 root root   35 Oct 24 16:31 nethserver
drwxr-xr-x  3 root root   34 Oct 24 16:18 startpage

 tree /usr/share/httpd/noindex/
/usr/share/httpd/noindex/
β”œβ”€β”€ css
β”‚   β”œβ”€β”€ bootstrap.min.css
β”‚   β”œβ”€β”€ bootstrap-theme.min.css
β”‚   β”œβ”€β”€ fonts
β”‚   β”‚   β”œβ”€β”€ Bold
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-Bold.eot
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-Bold.svg
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-Bold.ttf
β”‚   β”‚   β”‚   └── OpenSans-Bold.woff
β”‚   β”‚   β”œβ”€β”€ BoldItalic
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-BoldItalic.eot
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-BoldItalic.svg
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-BoldItalic.ttf
β”‚   β”‚   β”‚   └── OpenSans-BoldItalic.woff
β”‚   β”‚   β”œβ”€β”€ ExtraBold
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-ExtraBold.eot
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-ExtraBold.svg
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-ExtraBold.ttf
β”‚   β”‚   β”‚   └── OpenSans-ExtraBold.woff
β”‚   β”‚   β”œβ”€β”€ ExtraBoldItalic
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-ExtraBoldItalic.eot
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-ExtraBoldItalic.svg
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-ExtraBoldItalic.ttf
β”‚   β”‚   β”‚   └── OpenSans-ExtraBoldItalic.woff
β”‚   β”‚   β”œβ”€β”€ Italic
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-Italic.eot
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-Italic.svg
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-Italic.ttf
β”‚   β”‚   β”‚   └── OpenSans-Italic.woff
β”‚   β”‚   β”œβ”€β”€ Light
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-Light.eot
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-Light.svg
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-Light.ttf
β”‚   β”‚   β”‚   └── OpenSans-Light.woff
β”‚   β”‚   β”œβ”€β”€ LightItalic
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-LightItalic.eot
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-LightItalic.svg
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-LightItalic.ttf
β”‚   β”‚   β”‚   └── OpenSans-LightItalic.woff
β”‚   β”‚   β”œβ”€β”€ Regular
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-Regular.eot
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-Regular.svg
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-Regular.ttf
β”‚   β”‚   β”‚   └── OpenSans-Regular.woff
β”‚   β”‚   β”œβ”€β”€ Semibold
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-Semibold.eot
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-Semibold.svg
β”‚   β”‚   β”‚   β”œβ”€β”€ OpenSans-Semibold.ttf
β”‚   β”‚   β”‚   └── OpenSans-Semibold.woff
β”‚   β”‚   └── SemiboldItalic
β”‚   β”‚       β”œβ”€β”€ OpenSans-SemiboldItalic.eot
β”‚   β”‚       β”œβ”€β”€ OpenSans-SemiboldItalic.svg
β”‚   β”‚       β”œβ”€β”€ OpenSans-SemiboldItalic.ttf
β”‚   β”‚       └── OpenSans-SemiboldItalic.woff
β”‚   └── open-sans.css
β”œβ”€β”€ images
β”‚   β”œβ”€β”€ apache_pb.gif
β”‚   └── poweredby.png
β”œβ”€β”€ index.html
β”œβ”€β”€ nethserver
β”‚   β”œβ”€β”€ index.html
β”‚   └── res
β”‚       β”œβ”€β”€ favicon.ico
β”‚       β”œβ”€β”€ jquery.min.js
β”‚       β”œβ”€β”€ nethserver.png
β”‚       β”œβ”€β”€ server-manager.png
β”‚       └── system_apps.php
└── startpage
    β”œβ”€β”€ index.htm
    └── res
        β”œβ”€β”€ 0.gif
        β”œβ”€β”€ 3@2x.jpg
        β”œβ”€β”€ 3.jpg
        β”œβ”€β”€ 4@2x.png
        β”œβ”€β”€ 4.png
        β”œβ”€β”€ ani.css
        β”œβ”€β”€ custom_styles.css
        β”œβ”€β”€ favicon.ico
        β”œβ”€β”€ jquery.min.js
        β”œβ”€β”€ png.js
        β”œβ”€β”€ roe.js
        β”œβ”€β”€ system_apps.php
        β”œβ”€β”€ xr_files.txt
        β”œβ”€β”€ xr_fonts.css
        β”œβ”€β”€ xr_fontsie.css
        β”œβ”€β”€ xr_main.css
        └── xr_text.css

17 directories, 70 files

Console say β€œfavicon.ico” not found.

I’ve to say, that I’m not very failiar with html and css and that stuff. I just followed the docs and tried it out of couriosity if it works. I’m using a simple html generator/editor (Xara) for my own needs.
On the other hand, the docs should provide information so even guys like me can do it. :slight_smile:

BR Ralf

That β€œindex.htm” file extension could be the cause of the issue.
Please try to rename it to β€œindex.html” and let me know if anything changes

1 Like

Really? That is the solution?
Is it possible to make this not (or less) dependent on an extention? (Like it does not matter if htm, html or whatever html correct extention is used)
What I could find [a-z]html + htm as extensions should all be viable options. Debatable: php based extensions.

Many web servers were sensitive to this tiny difference.
It’s not uncommon.
htm came from PC as it used to not be able to handle larger than 3 letter extensions.

I understand that, but that does not mean we should settle with such a restriction?
@dev_team what do you think?

You’ ve got it! It doesn’t show the page as expected, but that’s a matter of html and me. :smile:
Thanks a lot for helping.

1 Like

This is about httpd configuration, it has nothing to do with Nethserver.
Httpd documentation provides information about supported index pages, this should be a good starting point: https://httpd.apache.org/docs/2.4/mod/mod_dir.html#directoryindex

1 Like

IMO the docs should be updated with that info. That should be enough.
I think it’s not an as common thing, that it would justify a great effort to change it.

@andre8244 So if it is the way we implement httpd configuration it has everything to do with NethServer.
I would suggest to implement a broader directoryindex or at least a more flexible directory index. Maybe even an option to choose what index page should be used when multiple options are detected.

Done: https://docs.nethserver.org/projects/nethserver-devel/en/latest/nethserver-httpd.html#welcome-page

4 Likes

With a custom launcher page, will Cockpit still be able to β€œsend” shortcuts to it?

If yes, what restrictions do we have in creating the actual page? How will Cockpit know at which part of the page it can add shortcuts?

How easily can I edit the shortcuts themselves? (i.e. change size or add more not restricted by Cockpit option β€œadd to home page”)

I want to make a portal with additional unrelated to NS links.

β€œYes”.

I think there are no restrictions.
It’s not cockpit who adds the shortcuts, the webpage reads/gets (json) data from cockpit. Once it gets the data you can put it anywhere on the page. It requires some web development skills (sorry, I don’t know all the ins and outs). For me it’s not easy enough but you can make some progress copying the actual launcher and modifying it.

Change size easily with html/css.
Add more shortcuts unrelated to NS, manually but should be easy enough (maybe not as easy as with something like heimdall launcher)

Thanks. I reached the same conclusion.

BTW Heimdall is a LOVELY launcher.