M I T I C O
http://xpenguins.seul.org/
play <infile> tempo <numero>Questo "play" fa parte del pacchetto "sox", potete cambiare il tempo da 0.1 a '?' (ma oltre il 3 non ha senso), velocita` normale e` 1.
mpg123 -pitch <numero> <infile>Non e` proprio il "tempo", potete cambiare da -0.9 a 3.3, il "man" non lo dice, il valore normale e` 0.
mplayer <infile> -speed <numero>La velocita` puo` essere impostata da 0.01 a 100, la normale e` 1.
sox <infile> <outfile> tempo <numero>Non rimane che rippare in mp3, io utilizzo questo comando, perche` normalmente faccio tutta la directory:
for i in *.wav; do lame -h -b 320 "${i}" "${i%.wav}.mp3";done
mkdir tmp cd tmp tar -xvjf ../owncloud-<versione>.tar.bz2
chown root:www-data -R owncloud/ chmod g+w owncloud
apt-get install apache2 php5 php5-common php5-gd php5-sqlite curl libcurl3 libcurl3-dev php5-curl mysql-server php5-mysqlnon sono sicuro che il "php-mysql" serva, ma male non dovrebbe fare.
a2ensite default-ssl a2enmod rewrite headers ssl(spero di non aver dimenticato qualcosa, li ho ricopiati dall' ordine sparso di un "history" finale)
Alias /owncloud /var/www/owncloud <Directory /var/www/owncloud/> AllowOverride All order allow,deny allow from all </Directory>
invoke-rc.d apache2 restart
mysqladmin -u username -p create databasename
mysql -u username -p
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES, CREATE TEMPORARY TABLES ON `databasename`.* TO 'username'@'localhost' IDENTIFIED BY 'password';
Query OK, 0 rows affected
FLUSH PRIVILEGES;
exit
iptables -t nat -I PREROUTING -p TCP -i interfacciainternet --dport 10212 -j DNAT --to-destination indirizzowebserver:80
iptables -A INPUT -p TCP -s 0/0 --destination-port 80 -j ACCEPT
iptables -A FORWARD -p TCP -i interfacciainternet --dport 80 -j ACCEPT
apt-get flashplugin-nonfree
update-flashplayer-plugin --install
Copiare da una directory i files e le directory in ordine di eta`, dal piu` vecchio al piu` recente, in una chiavetta usb, spostandoli infine in una diversa posizione
copy-and-move.sh
#!/bin/bash # Help if [[ $# -ne 3 || $1 = "-h" ]]; then echo "uso: $0 <directory e/o nomefile sorgente> \ <destinazione/percorso completo della directory dove copiare> \ <destinazione/percorso completo della directory dove spostare>" echo "" exit 1 fi # Fixed ? SOURCE="$1" DESTCP="$2" DESTMV="$3" echo -n "Name of the source directory [$SOURCE]: " read SOURCE if [ "$SOURCE"x = x ]; then SOURCE="$1"; fi echo -n "Name of the copy destination directory [$DESTCP]: " read DESTCP if [ "$DESTCP"x = x ]; then DESTCP="$2"; fi echo -n "Name of the move destination directory [$DESTMV]: " read DESTMV if [ "$DESTMV"x = x ]; then DESTMV="$3"; fi NOME="`ls -tr $SOURCE | cut -f1 | head -n 1`" while [ "$NOME" != "" ] do echo "Inizio copia .." cp -v -R "$SOURCE/$NOME" "$DESTCP"; if [ "$?" != "1" ] then echo "Inizio sposta .." mv -v "$SOURCE/$NOME" "$DESTMV" NOME="`ls -tr $SOURCE | cut -f1 | head -n 1`" else echo "Ended at: $SOURCE/$NOME" exit 1 fi done
dpkg-reconfigure exim4-config
2.3.1. Using Exim as SMTP-AUTH client If you want to set up Exim as SMTP AUTH client for delivery to your internet access provider's smarthost put the name of the server, your login and password in /etc/exim4/passwd.client. See the man page for exim4-config_files(5) for more information about the required format. If you need to enable AUTH PLAIN or AUTH LOGIN for unencrypted connections because your service provider does support neither TLS encryption nor the CRAM MD5 authentication method, you can do so by setting the AUTH_CLIENT_ALLOW_NOTLS_PASSWORDS macro. Please refer to Section 2.1.3, "Using Exim Macros to control the configuration" for an explanation of how best to do this. /etc/exim4/passwd.client needs to be readable for the exim user (user Debian-exim, group Debian-exim). It is suggested that you keep the default permissions root:Debian-exim 0640.
man exim4_passwd_clientTrovando:
/etc/exim4/passwd.client contains account and password data for SMTP authentication when exim is authenticating as a client to some remote server. The file should contain lines of the form target.mail.server.example:login-user-name:password which will cause exim to use login-user-name and password when sending messages to a server with the canonical host name target.mail.server.examâ ple. Please note that this does not configure the mail server to send to (this is determined in Debconf), but only creates the correlation between host name and authentication credentials to avoid exposing passwords to the wrong host. Please note that target.mail.server.example is currently the value that exim can read from reverse DNS: It first follows the host name of the tarâ get system until it finds and IP address, and then looks up the reverse DNS for that IP address to use the outcome of this query (or the IP address itself should the query fail) as index into /etc/exim4/passwd.client. This goes inevitably wrong if the host name of the mail server is a CNAME (a DNS alias), or the reverse lookup does not fit the forward one. Currently, you need to manually lookup all reverse DNS names for all IP addresses that your SMTP server host name points to, for example by using the host command. If the SMTP smarthost alias expands to multiple IPs, you need to have multiple lines for all the hosts. When your ISP changes the alias, you will need to manually fix that. You may minimize this trouble by using a wild card entry or regular expressions, thus reducing the risk of divulging the password to the wrong SMTP server while reducing the number of necessary lines. For a deeper discussion, see the Debian BTS #244724. password is your SMTP password in clear text. If you do not know about your SMTP password, you can try using your POP3 password as a first guess. This file must be readable for the Debian-exim user and should not be readable for others. Recommended file mode is root:Debian-exim 640. # example for CONFDIR/passwd.client # this will only match if the serverâs generic name matches exactly mail.server.example:user:password # this will deliver the password to any server *:username:password # this will deliver the password to servers whose generic name ends in # mail.server.example *.mail.server.example:user:password # this will deliver the password to servers whose generic name matches # the regular expression ^smtp[0-9]*.mail.server.example:user:password
host smtp.gmail.com
smtp.gmail.com is an alias for gmail-smtp-msa.l.google.com. gmail-smtp-msa.l.google.com has address 173.194.66.109 gmail-smtp-msa.l.google.com has address 173.194.66.108
# password file used when the local exim is authenticating to a remote # host as a client. # # see exim4_passwd_client(5) for more documentation # # Example: ### target.mail.server.example:login:password gmail-smtp-msa.l.google.com:USERNAME@gmail.com:PASSWORD
Smettete di cercare il vostro software alternativo, cambiate direttamente il sistema operativo adottandone uno libero, cosi` sostituite tutto in una volta sola!
debmirror --progress --verbose --source --passive --host="<debian mirror>" --method=http --root="debian" --dist=etch --arch=i386,amd64 --postcleanup --getcontents --ignore-release-gpg </home/$USER/debmirror>
debmirror --progress --verbose --source --passive --host="<debian mirror>" --method=http --root="multimedia" --dist=etch --arch=i386 --postcleanup --getcontents --ignore-release-gpg --ignore-missing-release --ignore-small-errors --section=main </home/$USER/debmirror>
--host="<debian mirror>"Non sbagliate l'indirizzo del server da cui avete intenzione di scaricare la distribuzione.
--root="debian"Questa e` la directory del server che contiene la/e distribuzione/i, la riconoscete perche` ha una sottodirectory che si chiama "dists".
--arch=i386Se cercate di scaricare la versione "amd64", che per questa release non esisteva .. be`, auguri.
--section=mainQuesto e`, forse, il piu` importante, assicuratevi che vi siano le relative sottodirectory, pena una serie di errori indecifrabili.
--section=foo[,bar,..] -s foo Specify the section of Debian to mirror. Defaults to main,contrib,non-free,main/debian-installer.
apt-get install tftpd-hpa apt-get install syslinux mkdir /var/lib/tftpboot/knoppix cp /usr/lib/syslinux/pxelinux.0 /var/lib/tftpboot/ mkdir /var/lib/tftpboot/knoppix/pxelinux.cfg touch /var/lib/tftpboot/knoppix/pxelinux.cfg/default mkdir /opt/knoppix
next-server 192.168.2.1; filename "/knoppix/pxelinux.0";e riavvio:
invoke-rc.d dhcp3-server restart
PROMPT 1 F1 boot.msg F2 f2 F3 f3 DISPLAY boot.msg DEFAULT knoppix APPEND secure nfsdir=192.168.2.1/opt/knoppix nodhcp init=/etc/init ramdisk_size=100000 lang=en vt.default_utf8=0 apm=power-off initrd=miniroot.gz nomce libata.force=noncq hpsa.hpsa_allow_any=1 loglevel=1 tz=localtime BOOT_IMAGE=knoppix TIMEOUT 100 # TOTALTIMEOUT 20 LABEL knoppix KERNEL linux APPEND secure nfsdir=192.168.2.1:/opt/knoppix nodhcp init=/etc/init ramdisk_size=100000 lang=en vt.default_utf8=0 apm=power-off initrd=miniroot.gz nomce libata.force=noncq hpsa.hpsa_allow_any=1 loglevel=1 tz=localtime BOOT_IMAGE=knoppix
/opt/knoppix 192.168.2.0/255.255.255.0(rw,no_subtree_check,no_root_squash,async)e riavvio:
invoke-rc.d nfs-kernel-server restart
cd /opt tar xvzf ~/firefox-NN.N.tar.gzQuesta volta pero` ho creato un link sul mio desktop lasciando inalterato (in realta`, ripristinandolo come in origine) l'eseguibile "/usr/bin/firefox":
ln -s /opt/firefox/firefox /home/$USER/Desktop/firefoxScaricato l'ultimo flash player di Adobe versione 64 bit, decomprimendolo e copiando "libflashplayer.so" nella directory utente "~/.mozilla/firefox/<stringa random>.default/plugins/".
host HOSTNAME { hardware ethernet 00:01:02:03:04:05; fixed-address 192.168.0.200; option host-name "HOSTNAME"; ddns-hostname "HOSTNAME"; }Ovviamente, per le vostre esigenze, dovete sostituire HOSTNAME, il numero dell'ethernet hardware e l'indirizzo da dare.
update-static-leases on;
/etc/init.d/dhcp3-server restartDate tempo un paio di minuti perche` il DNS si aggiorni ..
cd /opt tar xvzf ~/firefox-9.qualcosa.tar.gzPoi ho cambiato il link della /usr/bin/firefox che era collegato a "iceweasel":
ln -s /opt/firefox/firefox /usr/bin/firefoxPoi ho dovuto installare le librerie a 32 bit:
apt-get install ia32-libs-gtkInfine, ho scaricato il flash player di Adobe versione 32 bit, decomprimendolo e copiandomi il file "libflashplayer.so" nella directory utente "~/.mozilla/firefox/<stringa random>.default/plugins/".