Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have dansguardian working and thought to customize the access denied page with the logo of the company and some look and feel. There is an image embedded that does not show up though the page is displayed. The location where image should be is blank. This is what I have done and I do not know why it is not working on the dansguardian though it is working on my desktop.
Now I am not programmer or designer so I have no idea if this ok or not but I have looked around and this seems ok as page was designed by our designer.
Dont ask if the logo.jpg file exists or not. It does and is spelled correctly.
Any other comments would be appreciated.
Then how do I do that? I got this syntax from LQ when I needed to insert my signature in Thunderbird. Now if I have to give http:// reference then how do I give it?
And why do I need http reference? The logo and the html code are both on same machine in same directory. This is just a html page that dansguardian will display on client browser if they try to surf url that is banned.
I tried to look into the properties of image from browser and it shows the correct location where the logo is but still the image is not displayed.
What I thought was that HTML code will just pick up the image from the image location source I specify and will display.
How do I do that now?
I have the best success using a relative path. For example, if you put the image in the same directory as your html file, you can just use
<img src="logo.jpg" width="550" height="103" />
Thats what I did but I could not make logo displayed on browser. But I am still confused why is this termed as url. It is not.
But as advised will try http:// method and then revert back with what the outcome is.
That does not work out. Now there is a confusion. If I create a website that is purely based on HTML and I need to display some images that I have on server why will I give the path to be http:// ?
I still feel the img tag that I used was ok but somehow image wasnt getting picked up.
Any other advises?
if you think that that is correct, then I have to say that shows that you aren't understanding html / http to any great extent. As i said, html is CLIENT side. the web server just gives a text file to your browser, it has NO interest in what is in it. css, html etc... are all things that your browser is responsible. How can you tell a browser to open a file:// ??? it makes no sense whatsoever, as the browser, if it even supports file:// which is non-standard, will be looking at it's OWN disks, and that's just a mess then. you have to use an http reference, and once you realise why, you'll feel pretty sheepish in hindsight.
I'm not familiar at all with dansguardian, but it looks like one of its functions is to be a web server. As such, it must have a configuration file that tells it where the root directory of its website is located. That is the folder where your html and img files should be. The config file is probably under /etc/dansguardian, since that directory is included in the file path you specified in your original post. However I find it unusual that any content would be served from a directory under /etc. It is more often under a directory like /var.
If you can show us where your relevant files are we can better help you position them where they need to be. And don't be embarrassed that you might reveal that everything is out of its proper place. We've all done that.
Right, I'll put up an example of this using one of my actual websites (currently in development so don't be too judgmental =P).
It's http://andraslife.com/ you'll notice in the top left hand corner their is a logo image. It, in itself is hosted on the same Virtual Machine as the website. The image is referred to in the source code by...
It is relatively stored to the page itself in a directory of logo as a picture called logo.png. The page itself is stored exactly at /var/www/html/andra/index.php and the image is stored at /var/www/andra/logo/logo.png. Because it's a relative link to andraslife.com, it simply calls up andraslife.com/logo/logo.png by ammending the said /logo/logo.png to the end of the current URL/domain... hope that makes more sense.
If you still do not understand, you can supply your URL (Universal Resource Locator) for your site and where the image is relative (in physical file system path) to the actual site/page that is trying to view it.