Aug
12
2012
whenever you install itunes || co, you will have installed al required stuff already. so to view the content of your plist file use following batch file:
you need plutil in the folder %commonprogramfiles(x86)%\Apple\Apple Application Support
then you can also convert back to binary with that tool.
show_plist.bat [plist-file]
cd %commonprogramfiles(x86)%\Apple\Apple Application Support
echo now showing "%1"
echo plutil -convert xml1 -o - "%1"
plutil -convert xml1 -o - "%1"
or to convert them directly:
Bin to XML: plutil -convert xml1 file.plist
XML to Bin: plutil -convert binary1 file.plist
Comments Off on plist binary file: view or edit without additional software :-) | posted in iphone, windows
Aug
5
2012
first install
apt-get install inotify-tools
maybe also screen to have inotify running with screen in the background
then monitor what is going on. directories after a @ are ignored.
inotifywait -m -r / @/dev @/media @/mnt @/opt @/proc @/root @/sbin @/sys @/tmp @/usr @/bin @/etc @/lib @/var/run/samba/ @/var/cache/samba/
case “$1” in
start)
log_daemon_msg “Starting Samba daemons”
mount -t tmpfs tmpfs /var/run/samba
mount -t tmpfs tmpfs /var/cache/samba
# Make sure we have our PIDDIR, even if it’s on a tmpfs
install -o root -g root -m 755 -d $PIDDIR
at stop)
..
..
fi
fi
umount /var/run/samba
umount /var/cache/samba
log_end_msg 0
;;
reload)
———-
for me it did not do all the trick. samba was still trying to access:
/var/lib/samba so:
mv /var/lib/samba/ /var/lib/samba_
cp -ar /var/lib/samba_ /tmp/samba_lib
ln -sf /tmp/samba_lib /var/lib/samba
(this is what I am currently testing… but should work.. so unconfirmed yet 🙂
Comments Off on linux server adm – decrease / monitor hd access | posted in bash