Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-01-2005, 09:15 AM
|
#1
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Rep:
|
Icons for Apache
Can someone tell me where this icon for the "image2" is located at? I looked in my apache2 dir and was not able to find a storage folder for icons or anything like that? I would like to add my own .jpg image called "image2" for my Apache web server however I need to find where they are located.
Here is the icon I am talking about. Its the one you see on the very left next to each file name.
http://i4.photobucket.com/albums/y14...will/index.jpg
|
|
|
11-01-2005, 09:27 AM
|
#2
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,229
|
These icons are in a directory named "icons". There is a "Alias /icons/ "/some/directory/" directive in your apache config file. So you have to go to the /some/directory to change those icons.
|
|
|
11-01-2005, 11:02 AM
|
#3
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Original Poster
Rep:
|
Yes, I figured that much. I just was unable to find /some/directory/ so I was wondering if anyone had a good place to check since I can't seem to find it.
|
|
|
11-01-2005, 01:51 PM
|
#4
|
LQ Newbie
Registered: Jun 2004
Posts: 2
Rep:
|
Hi,
In recent versions of Apache the icon folder is located in /var/www/icons.
Anyway, if you don't find it there you can try to user the slocate command to find where the folder is located (you can even try the command slocate with your file name and it will most probably find it).
Ammar.
|
|
|
11-01-2005, 02:00 PM
|
#5
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Original Poster
Rep:
|
How would I use the "slocate" the command in this scenario?
Here is what I see in my directory.
Code:
stricom:/# cd /var/
stricom:/var# ls
backups cache lib local lock log mail opt run spool tmp www
stricom:/var# cd www/
stricom:/var/www# ls
apache2-default index.html wedding
stricom:/var/www# rm index.html
stricom:/var/www# ls
apache2-default wedding
stricom:/var/www# cd apache2-default/
stricom:/var/www/apache2-default# ls
apache_pb2_ani.gif index.html.de index.html.he.iso8859-8 index.html.no index.html.ru.utf8
apache_pb2.gif index.html.dk index.html.hr.iso8859-2 index.html.po.iso8859-2 index.html.sv
apache_pb2.png index.html.ee index.html.it index.html.pt index.html.var
apache_pb.gif index.html.el index.html.ja.iso2022-jp index.html.pt-br index.html.zh-cn.gb2312
apache_pb.png index.html.en index.html.ko.euc-kr index.html.ru.cp-1251 index.html.zh-tw.big5
banner.jpg index.html.es index.html.lb.utf8 index.html.ru.cp866 robots.txt
index.html.ca index.html.et index.html.nl index.html.ru.iso-ru
index.html.cz.iso8859-2 index.html.fr index.html.nn index.html.ru.koi8-r
|
|
|
11-02-2005, 01:54 AM
|
#6
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,229
|
Run to update your slocate.db and then:
|
|
|
11-02-2005, 05:57 AM
|
#7
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Original Poster
Rep:
|
Very cool.
Code:
stricom:~# updatedb
stricom:~# locate image2.gif
/usr/share/apache2/icons/image2.gif
/usr/share/apache2/icons/small/image2.gif
Now to figure out which one is which. There seems to be a large and a small one so I will need to mess around.
What does the "updatedb" command do?
|
|
|
11-02-2005, 06:40 AM
|
#8
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,229
|
updatedb updates the database used from (s)locate to index your files. Run:
Code:
man slocate
man updatedb
to learn more.
Regards
|
|
|
11-02-2005, 06:56 AM
|
#9
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Original Poster
Rep:
|
Thanks!
|
|
|
All times are GMT -5. The time now is 05:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|