You are not logged in.
Hi, I have followed this http://wiki.archlinux.org/index.php/Spe … sing_tmpfs and after each reboot or logout firefox is like "out-of-the-box" there is no history, no passwords and so on... Where could I have possibly gone wrong?
my /etc/profile
#
# /etc/profile
#
# This file is intended to be used for ALL common
# Bourne-compatible shells. Shell specifics should be
# handled in /etc/profile.$SHELL where $SHELL is the name
# of the binary being run (discounting symlinks)
#
# Sections taken from SuSe's /etc/profile
# Note the explicit use of 'test' to cover all bases
# and potentially incompatible shells
#Determine our shell without using $SHELL, which may lie
shell="sh"
if test -f /proc/mounts; then
case $(/bin/ls -l /proc/$$/exe) in
*bash) shell=bash ;;
*dash) shell=dash ;;
*ash) shell=ash ;;
*ksh) shell=ksh ;;
*zsh) shell=zsh ;;
esac
fi
# Load shell specific profile settings
test -f "/etc/profile.$shell" && . "/etc/profile.$shell"
#Set our umask
umask 022
# Set our default path
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
export PATH
# Export default pkg-config path
PKG_CONFIG_PATH="/usr/lib/pkgconfig"
export PKG_CONFIG_PATH
export MOZ_DISABLE_PANGO=1
# Some readline stuff that is fairly common
HISTSIZE=1000
HISTCONTROL="erasedups"
INPUTRC="/etc/inputrc"
LESS="-R"
LC_COLLATE="C"
export HISTSIZE HISTCONTROL INPUTRC LESS LC_COLLATE
# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -x $profile && . $profile
done
unset profile
fi
# Termcap is outdated, old, and crusty, kill it.
unset TERMCAP
# Man is much better than us at figuring this out
unset MANPATH
my /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
#/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
#/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
#/dev/fd0 /media/fl auto user,noauto 0 0
UUID=67427dfb-0bde-4579-98a2-56ebeaadbf49 / ext3 defaults 0 1
UUID=6b368726-fb60-42e1-9a92-089771214ee7 swap swap defaults 0 0
/dev/sda1 /mnt/sda1 ntfs-3g user,rw,umask=000 0 0
/dev/sda6 /mnt/sda6 vfat user,rw,umask=000 0 0
firefox /home/minimal/.mozilla/firefox/vlwdv4b0.default tmpfs size=128M,noauto,user,exec,uid=1001,gid=1002 0 0
my /bin/tmpfs_firefox.sh
#!/bin/bash
# Change this to match your correct profile
PROFILE="vlwdv4b0.default"
cd "${HOME}/.mozilla/firefox"
if test -z "$(mount | grep -F "${HOME}/.mozilla/firefox/${PROFILE}" )"
then
mount "${HOME}/.mozilla/firefox/${PROFILE}"
fi
if test -f "${PROFILE}/.unpacked"
then
rsync -av --delete --exclude .unpacked ./"$PROFILE"/ ./profile/
else
rsync -av ./profile/ ./"$PROFILE"/
touch "${PROFILE}/.unpacked"
fi
exit
my "sudo crontab -e"
#
# DO NOT EDIT THIS FILE MANUALLY!! USE crontab -e INSTEAD.
#
# <minute> <hour> <day> <month> <dow> <command>
01 * * * * /usr/sbin/run-cron /etc/cron.hourly
02 00 * * * /usr/sbin/run-cron /etc/cron.daily
22 00 * * 0 /usr/sbin/run-cron /etc/cron.weekly
42 00 1 * * /usr/sbin/run-cron /etc/cron.monthly
*/5 * * * * * /bin/tmpfs_firefox.sh
maybe I specified the cron job only for root user by using sudo, I get an empty file when using just "crontab -e" (without sudo). Although the crontab -e I posted here is from "sudo crontab -l". Thank you very much for you reply
Linux!
Offline
update your user crontab with the line you have in your root cron file (run crontab -e without the sudo) and it should work. it's using the wrong directory right now because you're having it run as root.
Offline
Thank you, that helped... At leat I think it is. I have shortened the time from 5 to 2 mins, because I am not convinced 5 minutes profile saving is frequent enough. Does this action have any consequenses? Thank you
Linux!
Offline
there shouldn't be anything wrong with updating it more frequently. It will be slightly more resource intensive on your system, but since it's pretty much only running an rsync command, it shouldn't really effect your system at all.
Offline
there shouldn't be anything wrong with updating it more frequently. It will be slightly more resource intensive on your system, but since it's pretty much only running an rsync command, it shouldn't really effect your system at all.
yeah, that's what I figured
Linux!
Offline