siniori e siniori
ecco uno script (da lancirare come utonto root) per installare i fonts per windows vista:
#!/bin/bash<br /><br />set -e<br /><br />if [ ! -w /root ]; then<br /> echo "You have to be root to use this script" >&2<br /> exit 1<br />fi<br /><br />exists() { which "$1" &> /dev/null ; }<br /><br />if ! [ -d /usr/share/fonts/vista ] ; then<br /> exec 2>&1<br /> mkdir -p /usr/share/fonts/vista<br /> exit 1<br />fi<br /><br /># split up to keep the download command short<br />DL_HOST=download.microsoft.com<br />DL_PATH=download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26<br />ARCHIVE=PowerPointViewer.exe<br />URL="http://$DL_HOST/$DL_PATH/$ARCHIVE"<br /><br />if ! [ -e "$ARCHIVE" ] ; then<br /> if exists curl ; then curl -O "$URL"<br /> elif exists wget ; then wget "$URL"<br /> elif exists fetch ; then fetch "$URL"<br /> fi<br />fi<br /><br />TMPDIR=`mktemp -d`<br />trap 'rm -rf "$TMPDIR"' EXIT INT QUIT TERM<br /><br />cabextract -L -F ppviewer.cab -d "$TMPDIR" "$ARCHIVE"<br /><br />cabextract -L -F '*.TT[FC]' -d /usr/share/fonts/vista "$TMPDIR/ppviewer.cab"<br /><br />( cd /usr/share/fonts/vista && mv cambria.ttc cambria.ttf && chmod 664 \<br /> calibri{,b,i,z}.ttf cambria{,b,i,z}.ttf candara{,b,i,z}.ttf \<br /> consola{,b,i,z}.ttf constan{,b,i,z}.ttf corbel{,b,i,z}.ttf )<br /><br />fc-cache -fv /usr/share/fonts/vista<br /><br />rm "$ARCHIVE"<br /><br />echo "Fonts installed successful" >&2
Ottimo, ecco il file pronto:
microsoft_font.sh