[Guide] Change OMV webgui Login Wallpaper

  • Good day! OMV forumers. 1st off, I know there is already a guide on this topic here, but after I fiddle around with it today for hours, I found out how to properly change the wallpaper without any script.


    I won't cover how to replace file within linux/debian environment as it is not my intention to do so here, but I believe there are plenty ways to do it and there are plenty guides in the internet for your to explore, be it using CLI or SSH like a pro or setup file browser and mount the root directory with root privilege or using SFTP software such as FileZilla using root account too are fine, just pick your poison...


    To begin with this topic, I would like to thank npaezduin for the initial guide and info on the location of the wallpaper which is at /var/www/openmediavault/assets/images/, particularly we are looking for the 3 picture files which are login.jpg, standby.jpg and shutdown.jpg.

    The difference between these 3 files are pretty much self explanatory by its name, login.jpg is the background picture used on your login page, standby is the background picture used when you issue command on OMV to standby using webgui as well as for shutdown.jpg correspond to shutdown command.


    To replace the background picture you would only replace the corresponding picture file (login/standby/shutdown) with another picture file of your choice but the new picture must be in jpg format and keeping the same file name (login.jpg/standby.jpg/shutdown.jpg) with user:group is root:root and permission rw-r--r--. I had tested this quite some time, any picture in jpg format will work fine regardless of picture dimension or aspect ratio, for optimal please do keep the image ratio around 17~18:9 for optimum view with your browser maximized on your screen with 16:9 ratio. There is no harm if you use a 16:9 ratio wallpaper as browser will automatically crop out some region of the wallpaper.


    FYI: renaming file extension of another format to jpg does not mean the picture is now converted to jpg format, don't be silly. The proper way of converting a picture of another format to jpg format is open the picture with your picture viewer/editor and perform save as into another file with jpg format, or use TRUSTED online free picture converter, some may have watermark in the converted picture though and beware some fishy website provide this service to embed malware into the converted picture to infect any PC opening the picture file, use them on your own risk.


    Now, after replaced the picture file, as explained by forumer npaezduin, no matter how you refresh the browser or restart the NAS your login/standby/shutdown background will not change on your browser. Yes, I found this too abit weird, but not until I perform "Delete Browsing Data" and remove only the "cache images and files" as well as selecting the time range to "All Time", after done clearing cache image then refresh the login page again and voila~, it is done.


    for Android phones (particularly google chrome apps), you need to close the app (swipe out from recent app too or just perform force stop in the app info if you will) and then clear cache in app info and reopen the OMV webgui again, the background should be refresh with the new background that you use.

    *please do your own finding with other Android/iOS web browser how to clear app cache


    pasted-from-clipboard.jpg


    hope the above guide would be of help and I wish you to have a nice day with your OMV login page with new background

    Ma Workstation: LG 29WQ600-W 29'' UltraWide + Asus TUF F15 FX507ZE

    Intel Core i7-12700H 14C/20T, 16GB 4800MTs DDR5, Win 11 Pro, 512GB + 2TB Gen2 NVME SSD, Nvidia RTX 3050Ti 4GB GDDR6


    Ma Homelab: Dell OptiPlex 3050 Micro + Orico 5-bay DAS DS500C3 [Overall power: (idle) 19W, (full load) 46W]

    Intel Core i5-7500T 4C/4T, 8GB 2400MTs DDR4, OMV7, 128GB SSD + DAS: 5x2TBHDD in Raid5 with SnapRAID & MergerFS | Pi-hole, Jellyfin, NPM, Uptime Kuma & Tailscale in Docker | DKMS with R8168 driver

    Edited once, last by crashtest: Potential advertising for a paid product was removed. ().

  • crashtest

    Approved the thread.
  • Add on: Sorry, I just found out why script is needed as detailed by forumer npaezduin , apparently some update or system reboot will overwrite the background image to the default one, so to overcome this hence script/cronjob is needed. My revised method of changing OMV WebGUI login background is as below:


    With reference to my 1st post above, you will need to copy the modified login/shutdown/standby jpg image file and rename to login2.jpg/shutdown2.jpg/standby2.jpg in the same folder /var/www/openmediavault/assets/images and then create a new task in crontab or new schedule task in OMV WebGUI under System's tab to run the following command every 5 minute or 1 hour (you may set on reboot but I have yet to test it):


    Code
    cd /var/www/openmediavault/assets/images/ && ([ -f "login2.jpg" ] && (diff -q "login2.jpg" "login.jpg" || cp "login2.jpg" "login.jpg")) && ([ -f "shutdown2.jpg" ] && (diff -q "shutdown2.jpg" "shutdown.jpg" || cp "shutdown2.jpg" "shutdown.jpg")) && ([ -f "standby2.jpg" ] && (diff -q "standby2.jpg" "standby.jpg" || cp "standby2.jpg" "standby.jpg"))


    pasted-from-clipboard.png


    the command above simply check if the file login2/standby2/shutdown2 exist and then differentiate login/standby/shutdown image file against login2/standby2/shutdown2 image file, if found to be different then it will copy login2/standby2/shutdown2 image file and overwrite login/standby/shutdown image file. This command should not cause any unnecessary write operation on disk to reduce wear out on system's disk especially SSDs.

    Ma Workstation: LG 29WQ600-W 29'' UltraWide + Asus TUF F15 FX507ZE

    Intel Core i7-12700H 14C/20T, 16GB 4800MTs DDR5, Win 11 Pro, 512GB + 2TB Gen2 NVME SSD, Nvidia RTX 3050Ti 4GB GDDR6


    Ma Homelab: Dell OptiPlex 3050 Micro + Orico 5-bay DAS DS500C3 [Overall power: (idle) 19W, (full load) 46W]

    Intel Core i5-7500T 4C/4T, 8GB 2400MTs DDR4, OMV7, 128GB SSD + DAS: 5x2TBHDD in Raid5 with SnapRAID & MergerFS | Pi-hole, Jellyfin, NPM, Uptime Kuma & Tailscale in Docker | DKMS with R8168 driver

  • Xange

    Set the Label from OMV 7.x to OMV 8.x

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!