Pro 1.5 setup golden, but tmpfs got me beat
Posted: Fri Apr 08, 2005 6:26 am
I recently setup Pro 1.5, with apache mysql php and teamspeak2
Im looking to setup a webcam on my computer that will ftp a picture to gentoox box every 15 sec, however i dont want that much hdd activity. so i want to use a ramdisk, and setup an alias in apache. This is where im stuck.
my /etc/fstab file:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/loop/0 / reiserfs defaults,errors=remount-ro 0 1
proc /proc proc defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 defaults,ro,user,noauto 0 0
/mnt/fatx/e/swap none swap sw 0 0
/dev/hda51 /mnt/fatx/c fatx defaults,noauto,umask=022 0 0
/dev/hda50 /mnt/fatx/e fatx defaults,umask=0000 0 0
/dev/hda55 /mnt/fatx/f fatx defaults,umask=0000 0 0
tmpfs /dev/shm tmpfs size=45k 0 0
picture sizes are only about 24k so a large ramdisk is not needed
i have an alias in /etc/apache2/conf/commonapache2.conf of
Alias /icons/ /var/www/localhost/icons/
Alias /doc /usr/share/doc
Alias /webcam /dev/shm
i try http://www.1337dot.com/webcam/filehere.jpg it does not work but http://www.1337dot.com/icons/a.gif does
do i have the tmpfs setup properly? is that why i can view it in apache? or is it an apache alias problem?
My apologies for grammar and spelling, its late and ive been at setup most of this all day, ive searched around the net and found that fstab entry to add a tmpfs but honestly i dont know much if its proper to use,
thanks,
Jeff V
Im looking to setup a webcam on my computer that will ftp a picture to gentoox box every 15 sec, however i dont want that much hdd activity. so i want to use a ramdisk, and setup an alias in apache. This is where im stuck.
my /etc/fstab file:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/loop/0 / reiserfs defaults,errors=remount-ro 0 1
proc /proc proc defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 defaults,ro,user,noauto 0 0
/mnt/fatx/e/swap none swap sw 0 0
/dev/hda51 /mnt/fatx/c fatx defaults,noauto,umask=022 0 0
/dev/hda50 /mnt/fatx/e fatx defaults,umask=0000 0 0
/dev/hda55 /mnt/fatx/f fatx defaults,umask=0000 0 0
tmpfs /dev/shm tmpfs size=45k 0 0
picture sizes are only about 24k so a large ramdisk is not needed
i have an alias in /etc/apache2/conf/commonapache2.conf of
Alias /icons/ /var/www/localhost/icons/
Alias /doc /usr/share/doc
Alias /webcam /dev/shm
i try http://www.1337dot.com/webcam/filehere.jpg it does not work but http://www.1337dot.com/icons/a.gif does
do i have the tmpfs setup properly? is that why i can view it in apache? or is it an apache alias problem?
My apologies for grammar and spelling, its late and ive been at setup most of this all day, ive searched around the net and found that fstab entry to add a tmpfs but honestly i dont know much if its proper to use,
thanks,
Jeff V