Entrance Events! Chat Gallery Search Everyone Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
April 02, 2025 - @450.80 (what is this?)
Activity rating: Five Stars Posts & Arts: 252/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts Start New Topic  Submit Art
News: :seal: Thank you for today! :seal: Super News: Upload a banner!

+  MelonLand Forum
|-+  World Wild Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  I switched from Windows to Linux and...


« previous next »
Pages: [1] Print
Author Topic: I switched from Windows to Linux and...  (Read 661 times)
di
Full Member ⚓︎
***


she/her

⛺︎ My Room
RSS: RSS

View Profile WWW

Great Posts PacmanFirst 1000 Members!OG! Joined 2021!
« on: June 12, 2024 @40.29 »

...I really like it! However, I was hoping someone here could help a newbie out.

When I open my HTML files offline in the browser, any linked content (such as images or style.css) doesn't appear.

For example, on Windows, if I opened this html file in a web browser, it would look like this



But on Linux, it looks like this, stripped bare of CSS and images



I also notice that the URL links to this, instead of the file's actual directory.



When I tried typing in the proper file directory, it didn't fix itself.

I was wondering why this is, and how I can view the HTML with linked content embedded into it, like I can in Windows.
Logged

invader_gvim
Full Member ⚓︎
***


Don't scream for help. Fight together!

⛺︎ My Room

View Profile WWWArt

Sent On Earth By The Almighty TallestJoined 2024!
« Reply #1 on: June 12, 2024 @224.90 »

Before doing anything, try opening it in a different browser. If that doesn't work, then try this.  :pc:

According to this reddit thread it might be an issue caused by you using a sandboxed browser through either snap or flatpak. Try installing firefox (or any other browser) through your distro's package manager directly.

Open your terminal to type in commands. Alternatively you can use the graphical package manager which should be common sense.

On Ubuntu it would be
                                                              --> sudo apt install firefox

uninstall firefox b4 doing this. Don't worry! You will still be able to install packages through your terminal or the graphical package manager just fine once it is uninstalled.

Uninstall the sandboxed browser causing the problem like this --> sudo snap remove firefox(or whatever browser)
OR                                                            --> sudo flatpak uninstall firefox(or whatever browser)

I hope this helps.  :pc:  :4u:
« Last Edit: June 12, 2024 @228.39 by invader_gvim » Logged

Memory
Guest
« Reply #2 on: June 12, 2024 @317.88 »

Was the website saved appropriately? ("Web Page, complete" as opposed to "Web Page, HTML only")

Check the folder, where you saved your website: Are those additional files (images, CSS) there as well?
Logged
Melooon
Hero Member ⚓︎
*****


So many stars!

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games
RSS: RSS

View Profile WWWArt

Hyperactive DonutGreat Posts PacmanOfficially DogThanks for being rad!a puppy for your travelsAlways My Pal
« Reply #3 on: June 12, 2024 @541.76 »

Im not sure if this is your html file or one you've saved - but as an alternative solution to opening the files directly: I have a lot of sites Iv saved using SiteSucker and something I tend to do on mac is put them in the Sites folder in my user folder and then I have a lil local-only web server that reads that folder - so when I wanna browse some sites I just go to "localhost" in my browser and it shows me all the sites iv saved as a nice list to browse! Doing it that way also means that JavaScripts function normally and everything works well!
Logged


everything lost will be recovered, when you drift into the arms of the undiscovered
ThunderPerfectWitchcraft
Hero Member ⚓︎
*****


Here be dragons

⛺︎ My Room

View Profile WWWArt

Great Posts PacmanThanks for being rad!First 1000 Members!Joined 2023!
« Reply #4 on: June 12, 2024 @716.03 »

If none of the above works, please tell us what Distro and Browser you use :).
Logged

TheFrugalGamer
Sr. Member ⚓︎
****


⛺︎ My Room
Itch.io: My Games
RSS: RSS

View Profile WWW

Great Posts PacmanFirst 1000 Members!Pocket Icelogist!Joined 2022!
« Reply #5 on: June 13, 2024 @617.51 »

Im not sure if this is your html file or one you've saved - but as an alternative solution to opening the files directly: I have a lot of sites Iv saved using SiteSucker and something I tend to do on mac is put them in the Sites folder in my user folder and then I have a lil local-only web server that reads that folder - so when I wanna browse some sites I just go to "localhost" in my browser and it shows me all the sites iv saved as a nice list to browse! Doing it that way also means that JavaScripts function normally and everything works well!

This is such a lovely idea! I use wget since I'm on Linux, but it does much the same thing as SiteSucker. I may set up something similar, only as a separate home server since I'm usually archiving lots of stuff myself as well. Thanks for sharing!
Logged

starbreaker
Sr. Member ⚓︎
****


What good is Heaven if we dare not storm it?

⛺︎ My Room
SpaceHey: Friend Me!
RSS: RSS

View Profile WWW

Great Posts PacmanFirst 1000 Members!G4 Club Member!Joined 2023!
« Reply #6 on: June 13, 2024 @714.54 »


I also notice that the URL links to this, instead of the file's actual directory.



When I tried typing in the proper file directory, it didn't fix itself.

I was wondering why this is, and how I can view the HTML with linked content embedded into it, like I can in Windows.

I test my website locally on Slackware Linux before uploading, and I've noticed that when something isn't loading properly it's because I've either used an absolute link that isn't available locally (maybe because the wifi is off) or because I had messed up a relative link. Without being able to read your web pages I can't tell you more.
Logged

di
Full Member ⚓︎
***


she/her

⛺︎ My Room
RSS: RSS

View Profile WWW

Great Posts PacmanFirst 1000 Members!OG! Joined 2021!
« Reply #7 on: June 14, 2024 @80.05 »

According to this reddit thread it might be an issue caused by you using a sandboxed browser through either snap or flatpak...

This ended up being the issue - I was using a sandboxed browser. I uninstalled Firefox and then reinstalled through the terminal. Now the address bar reflects the file's actual location and the linked style.css and images display normally.

Thanks so much for finding that thread and letting me know how to fix it!

& thanks to everyone else for jumping to the rescue, too. I knew this would be a good place to ask.

Going to lock the thread since the problem's solved.
Logged

Pages: [1] Print 
« previous next »
 

Vaguely similar topics! (3)

Linux Mascot Games. (Yes, they exist.)

Started by Icey!Board ♖ ∙ Video Games

Replies: 13
Views: 2090
Last post April 29, 2023 @551.45
by Gum Skyloard
Playing Ozwamp's Voyage on Linux with Wine.

Started by Icey!Board ♖ ∙ Video Games

Replies: 0
Views: 1491
Last post April 13, 2022 @123.11
by Icey!
Linux gaming, when developers won't cross platform.

Started by Icey!Board ♖ ∙ Video Games

Replies: 10
Views: 3051
Last post July 05, 2022 @855.67
by Memory

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | ~ Send Feedback ~ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi