bash script
{ echo "open indirizzo.ip.server.ftp
user ftpuser ftppassword
hash
type ascii
mget file
close"
} | ftp -i -n -v 2>&1
Soluzioni ai problemi informatici che incontro ogni giorno. Linux, Microsoft, Windows, Fedora, Slack, Slackware. Tutte le configurazioni
{ echo "open indirizzo.ip.server.ftp
user ftpuser ftppassword
hash
type ascii
mget file
close"
} | ftp -i -n -v 2>&1
Quando invio una mail da riga di comando ottengo il seguente output nel
maillog:
Jul 30 09:04:25 vidol sm-mta[5107]: l6U74PNH005107:
from=<root@vidol.xx.xx.it>, size=463, class=0, nrcpts=1,
msgid=<200707300704.l6U74PQY005106@vidol.xx.xx.it>, proto=ESMTP,
daemon=MTA, relay=localhost [127.0.0.1]
Jul 30 09:04:25 vidol sendmail[5106]: l6U74PQY005106: to=root,
ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay,
pri=30190, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent
(l6U74PNH005107 Message accepted for delivery)
Jul 30 09:04:25 vidol sm-mta[5108]: l6U74PNH005107: to=xx@xx.xx.it,
ctladdr=<root@vidol.xx.xx.it> (0/0), delay=00:00:00, xdelay=00:00:00,
mailer=esmtp, pri=30677, relay=[111.222.33.44] [111.222.33.44],
dsn=5.6.0, stat=Data format error
Jul 30 09:04:25 vidol sm-mta[5108]: l6U74PNH005107: l6U74PNH005108: DSN:
Data format error
SOLUZIONE:
Il problema era nel fatto che vidol.xx.xx.it non era nel dns.
Occorre aggiungere un record A o CNAME alla risoluzione diretta e un
record PTR alla inversa.
sendmail -d0.1 -bt < /dev/null | grep MILTER
wget http://www.libspf2.org/spf/libspf2-1.2.5.tar.gz
wget http://dfn.dl.sourceforge.net/sourceforge/smfs/smf-spf-2.0.2.tar.gz
tar -zxvf libspf2-1.2.5.tar.gz
cd libspf2-1.2.5
./configure
make && make check
make install
ldconfig
Quando si lancia make check si ottengono questi errori, cmq poi tutto funziona correttamente
---------------------------------------------------------------------------------------
make[3]: Entering directory
`/root/Ordine/software/SPF_milter/libspf2-1.2.5/tests'
Running single tests on the parser...
Running tests from test_parser.txt (with args '')...
All regression tests passed
PASS: run_single_parser
Running single tests using adoption roll data...
Running tests from test_adopt_roll.txt (with args '')...
Error: 101 tests failed
FAIL: run_single_adopt_roll
Running single tests using data from the RFC examples...
Running tests from test_rfc_examples.txt (with args '')...
Error: 46 tests failed
FAIL: run_single_rfc_examples
Running single tests using static test dns zone file...
Running piped tests using live data...
Running tests from test_live.txt (with args '-pipe -test-opt=-dns=test
--todo=121=FIXME --todo=135.result=FIXME --todo=136.result=FIXME
--todo=137.result=FIXME --todo=139=Persistent_data_error?
--todo=140=Persistent_data_error? --todo=142=Persistent_data_error?
--todo=145=Persistent_data_error? --todo=146=Persistent_data_error?
--todo=149=Persistent_data_error? --todo=154=Persistent_data_error?
--todo=155=Persistent_data_error? --todo=156=Persistent_data_error?
--todo=157=Persistent_data_error? --todo=158=Persistent_data_error?
--todo=159=Persistent_data_error? --todo=160=Persistent_data_error?
--todo=161=Persistent_data_error? --todo=162=Persistent_data_error?
--todo=163=Persistent_data_error? --todo=164=Persistent_data_error?
--todo=165=Persistent_data_error? --todo=166=Persistent_data_error?
--todo=167=Persistent_data_error? --todo=168=FIXME --todo=169=FIXME')...
Error: 569 tests failed
FAIL: run_single_tdns
Running piped tests using static test dns zone file...
Running single tests using live data...
Running tests from test_live.txt (with args '--todo=121=FIXME
--todo=135.result=FIXME --todo=136.result=FIXME --todo=137.result=FIXME
--todo=168=FIXME --todo=169=FIXME')...
Error: 215 tests failed
FAIL: run_many_tdns
Running single tests using live data...
Running tests from test_live.txt (with args '--todo=121=FIXME
--todo=135.result=FIXME --todo=136.result=FIXME --todo=137.result=FIXME
--todo=168=FIXME --todo=169=FIXME')...
Error: 215 tests failed
FAIL: run_single_live
Running piped tests using live data...
Running tests from test_live.txt (with args '-pipe --todo=121=FIXME
--todo=135.result=FIXME --todo=136.result=FIXME --todo=137.result=FIXME
--todo=139=Persistent_data_error? --todo=140=Persistent_data_error?
--todo=142=Persistent_data_error? --todo=145=Persistent_data_error?
--todo=146=Persistent_data_error? --todo=149=Persistent_data_error?
--todo=154=Persistent_data_error? --todo=155=Persistent_data_error?
--todo=156=Persistent_data_error? --todo=157=Persistent_data_error?
--todo=158=Persistent_data_error? --todo=159=Persistent_data_error?
--todo=160=Persistent_data_error? --todo=161=Persistent_data_error?
--todo=162=Persistent_data_error? --todo=163=Persistent_data_error?
--todo=164=Persistent_data_error? --todo=165=Persistent_data_error?
--todo=166=Persistent_data_error? --todo=167=Persistent_data_error?
--todo=168=FIXME --todo=169=FIXME')...
Error: 569 tests failed
FAIL: run_many_live
=======================================
6 of 7 tests failed
Please report to libspf2@rt.anarres.org
=======================================
make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory
`/root/Ordine/software/SPF_milter/libspf2-1.2.5/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory
`/root/Ordine/software/SPF_milter/libspf2-1.2.5/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory
`/root/Ordine/software/SPF_milter/libspf2-1.2.5/tests'
make: *** [check-recursive] Error 1
root@proxy2:~/Ordine/software/SPF_milter/libspf2-1.2.5#
---------------------------------------------------------------------------------------
cd ..
cd smf-spf-2.0.2
make
make install
vi /etc/mail/smfs/smf-spf.conf
/usr/local/sbin/smf-spf -c /etc/mail/smfs/smf-spf.conf
Add these lines to your Sendmail configuration file (usually sendmail.mc):
define(`confMILTER_MACROS_HELO', confMILTER_MACROS_HELO`, {verify}')dnl
INPUT_MAIL_FILTER(`smf-spf', `S=unix:/var/run/smfs/smf-spf.sock,
T=S:30s;R:1m')dnl
IMPORTANT: make sure that libmilter is compiled with
BROKEN_PTHREAD_SLEEP defined.
If this symbol is not defined, libmilter will use sleep() in
signal-handler thread,
which may cause various program misbehaviors, including coredumps.
To rebuild Sendmail with this symbol defined, add the following line to your
Sendmail/devtools/Site/site.config.m4:
APPENDDEF(`confENVDEF', `-DBROKEN_PTHREAD_SLEEP')
vi /usr/share/sendmail/cf/m4/cf.m4
[La necessità di inserire il parametro sopra-descritto mi è ignota, ma quando ho provato a
aggiungerlo sendmail non partiva]
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
A questo punto possiamo riavviare sendmail e controllare su /var/log/maillog| Identificativo articolo | : | 823176 |
| Ultima modifica | : | lunedì 23 gennaio 2006 |
| Revisione | : | 2.4 |
| 1. | Avviare il Gestore di sistema di Exchange. |
| 2. | Se l'opzione Visualizza gruppi amministrativi è selezionata, espandere Gruppi amministrativi, quindi GruppoAmministrativo (dove GruppoAmministrativo è il nome del proprio gruppo amministrativo). Nota Per visualizzare i gruppi amministrativi, fare clic con il pulsante destro del mouse su NomeOrganizzazione, scegliere Proprietà, selezionare la casella di controllo Visualizza gruppi amministrativi, scegliere OK, quindi di nuovo OK e riavviare il Gestore di sistema di Exchange. |
| 3. | Espandere Server, NomeServerInUso, quindi NomeGruppoArchiviazione. |
| 4. | Fare clic con il pulsante destro del mouse su Archivio cassette postali e scegliere Proprietà. |
| 5. | Fare clic sulla scheda Limiti. |
| 6. | Nella casella Mantieni cassette postali eliminate per (giorni) specificare il numero di giorni in cui gli elementi eliminati possono rimanere sul server prima dell'eliminazione definitiva, quindi scegliere OK. |
| 1. | Avviare il Gestore di sistema di Exchange. |
| 2. | Se l'opzione Visualizza gruppi amministrativi è selezionata, espandere Gruppi amministrativi, quindi GruppoAmministrativo (dove GruppoAmministrativo è il nome del proprio gruppo amministrativo). Nota Per visualizzare i gruppi amministrativi, fare clic con il pulsante destro del mouse su NomeOrganizzazione, scegliere Proprietà, selezionare la casella di controllo Visualizza gruppi amministrativi, scegliere OK, quindi di nuovo OK e riavviare il Gestore di sistema di Exchange. |
| 3. | Espandere Server, NomeServerInUso, quindi NomeGruppoArchiviazione. |
| 4. | Espandere Archivio cassette postali, fare clic con il pulsante destro del mouse su Cassette postali, quindi scegliere Esegui agente di pulitura. |
| 5. | Fare clic con il pulsante destro del mouse sulla cassetta postale che si desidera recuperare, quindi scegliere Riconnetti. |
| 6. | Nell'elenco di account del servizio directory Microsoft Active Directory visualizzato selezionare l'account utente a cui si desidera connettere la cassetta postale, quindi scegliere OK. |
| 7. | Chiudere il Gestore di sistema di Exchange. |
| 1. | Prendere nota delle seguenti informazioni disponibili nel computer di produzione che esegue Exchange Server 2003:
| ||||||||||||||||||||
| 2. | Installare Windows 2000 Server o Windows Server 2003 nel server di ripristino, quindi creare un nuovo insieme di strutture di Active Directory. | ||||||||||||||||||||
| 3. | Eseguire il programma di installazione di Exchange Server 2003, quindi creare una nuova organizzazione con lo stesso nome dell'organizzazione di Exchange esistente. | ||||||||||||||||||||
| 4. | Effettuare una delle seguenti operazioni a seconda della specifica situazione:
| ||||||||||||||||||||
| 5. | Eseguire il programma di installazione di Exchange Server 2003, quindi installare i servizi di messaggistica e collaborazione di Microsoft Exchange e gli strumenti di gestione del sistema di Microsoft Exchange, se questi ultimi non sono già installati nel server. | ||||||||||||||||||||
| 6. | Configurare il nome del gruppo di archiviazione in modo che venga utilizzato lo stesso nome del computer di produzione che esegue Exchange Server 2003. Per effettuare questa operazione:
| ||||||||||||||||||||
| 7. | Disinstallare il database. Per effettuare questa operazione:
| ||||||||||||||||||||
| 8. | Eliminare il database e i file di registro esistenti sul server di ripristino. Per effettuare questa operazione:
| ||||||||||||||||||||
| 9. | Ripristinare il file di database da una copia di backup. | ||||||||||||||||||||
| 10. | Installare il database. Per effettuare questa operazione:
| ||||||||||||||||||||
| 11. | Creare un nuovo utente in Utenti e computer di Active Directory. Verificare che il nuovo account utente non sia abilitato alla cassetta postale. Per creare il nuovo utente:
| ||||||||||||||||||||
| 12. | Nel Gestore di sistema di Exchange espandere Archivio cassette postali, fare clic con il pulsante destro del mouse su Cassette postali, quindi scegliere Esegui agente di pulitura. | ||||||||||||||||||||
| 13. | Recuperare la cassetta postale. Per effettuare questa operazione:
| ||||||||||||||||||||
| 14. | Utilizzare Microsoft Outlook per esportare i dati della cassetta postale in un file con estensione pst o utilizzare lo strumento Exmerge.exe per estrarre dati da più cassette postali. Per scaricare Exmerge.exe, visitare il seguente sito Web Microsoft (informazioni in lingua inglese): |
| 1. | In Outlook 2003 scegliere Nuovo dal menu File, quindi fare clic su File di dati di Outlook. |
| 2. | Nella finestra di dialogo Nuovo file di dati di Outlook fare clic su File delle cartelle personali (.pst) di Outlook 97-2002, quindi scegliere OK. |
| 3. | Nella finestra di dialogo Crea o apri file di dati di Outlook selezionare un percorso nella casella Salva in, quindi digitare un nome per il file, ad esempio Exmerge.pst. Nella casella Tipo file l'impostazione sarà File delle cartelle personali (*.pst). Scegliere OK. |
| 4. | Nella finestra di dialogo Cartelle personali Microsoft è possibile modificare la riga Nome con un nome visualizzato univoco, ad esempio "Dati di Exmerge" senza virgolette. Questo è il nome con il quale verrà visualizzato il file pst nell'Elenco cartelle in Outlook. Scegliere OK. Mantenere i valori predefiniti per le altre impostazioni. |
| 5. | Il nuovo file verrà visualizzato nell'Elenco cartelle in Outlook. Fare clic con il pulsante destro del mouse sul file, quindi scegliere Chiudi nome cartella, dove nome cartella è il nome visualizzato impostato nel passaggio 4. |
| 6. | Scegliere Importazione ed esportazione dal menu File. |
| 7. | Nell'Importazione/Esportazione guidata fare clic su Esporta in un file, quindi scegliere Avanti. |
| 8. | Nella pagina Esporta in un file selezionare File delle cartelle personali (.pst), quindi scegliere Avanti. |
| 9. | Nella pagina Esporta cartelle personali selezionare la cartella da esportare. Se si desidera esportare l'intero contenuto della cassetta postale, selezionare il nome utente nella parte superiore della struttura Selezionare la cartella da cui esportare i dati, quindi scegliere Avanti. |
| 10. | Nella pagina Esporta cartelle personali utilizzare il pulsante Sfoglia per individuare il file con estensione pst appena creato, quindi selezionarlo. Scegliere OK dopo avere effettuato la selezione, quindi Fine. Per visualizzare il contenuto del file e verificare che i dati siano stati esportati correttamente, aprire il file in Outlook. Per effettuare questa operazione, scegliere Apri dal menu File, fare clic su File di dati di Outlook, quindi selezionare il file. |
| • | Microsoft Exchange Server 2003 Enterprise Edition |
| • | Microsoft Exchange Server 2003 Standard Edition |
http://mkeadle.org/index.php?p=31
Apache and NTLM
Here’s where the NTLM authentication comes in. Head over to the mod_ntlm homepage and grab a copy. Gentoo doesn’t currently have an ebuild for mod_ntlm, so I had to install by hand, but there may be RPMs floating around somewhere if that’s your game. In order for mod_ntlm to work, you’ll need to have the server running Apache joined to the domain. The process used in Squid + NTLM can be used for that.
The neat thing about mod_ntlm is how easy it is to setup once it’s installed. All mod_ntlm functionality is controlled through .htaccess files (link for Apache2). Here’s a copy of the mod_ntlm enabled .htaccess I’m using. Once in place, users will be auto-authed by NTLM and you’ll be able to grab their username from the REMOTE_USER environment variable.
Dopo aver installato apache2, php ecc...
per usare apache con il mod_proxy per mettere in sicurezza outlook web
access
mi sono accorto che cercando di allegare file (diversi dai txt) alle
mail che voglio spedire
con webmail non succedeva niente e i file non venivano allegati.
Per risolvere il problema ho dovuto aggiornare apache 2.0 alla versione
2.0.59.
Apache2:
./configure --enable-so --enable-cgi --enable-info --enable-rewrite
--enable-speling --enable-usertrack --enable-deflate --enable-ssl
--enable-mime-magic --enable-ext-filter --enable-proxy
--enable-proxy-connect --enable-proxy-ftp --enable-proxy-http
--enable-modules=all
make
make install
php-4.4.7:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr
make
make install
| Article ID | : | 262352 |
| Last Review | : | February 26, 2007 |
| Revision | : | 2.2 |
| 1. | Start Exchange System Manager. |
| 2. | Double-click Global Settings, and then click Internet Message Formats. |
| 3. | In the Details pane, right-click a domain name, and then click Properties. The default SMTP domain is "*". |
| 4. | In the Properties box, click the Advanced tab, and then click to select the Out of office responses check box. This enables Out-of-Office responses to the Internet for the selected domain. |
-- -- principio di Napoleone: non attribuire a malintenzione cio' che puo' essere semplicemente spiegato come imbecillita' -- MaoX Blog: http://maox.blogspot.com
http://www.webmasterpoint.org/news/Windows-Vista-funzioni-identificare-dati-degli-utenti_p29368.html
--
principio di Napoleone: non attribuire a malintenzione cio' che puo' essere semplicemente spiegato come imbecillita'
MaoX Blog:
Problemi e soluzioni di un sistemista informatico:
http://maox.blogspot.com
fdisk /mbr
fixboot
fixmbr
dipende dalla versione del disco di boot (w98 w2000 wxp)
2.) La linux boot disk
dd if=/dev/null of=/dev/sdX bs=446 count=1
oppure
ATTENZIONE: il seguente comando elimina ANCHE la TABELLA DELLE PARTIZIONI!!!
dd if=/dev/null of=/dev/sdX bs=512 count=1Soluzione:
aggiungi l'utente nel gruppo plugdev
riavvia il computer
Last updated: 03/07/2007 - Work In Progress
General Hardware Specifications of Lifebook S 7110:| Hardware Components | Status under Linux | Notes |
| Intel Core 2 Duo T5200 | Works | No special procedure required during installation. |
| 14.1 XGA TFT Display | Works | Select Generic LCD Display in Installer |
| Nvidia GEForce 7300 | Works | Follow this article |
| 1 GB RAM | Works | No special procedure required during installation |
| 120 GB SATA Hard Drive | Works | No special procedure required during installation |
| Internal Intel Wireless Networking (Wi-Fi Certified) | Works | |
| Integrated Network Card | Works | You need kernel >= 2.6.19 Special procedure required during installation. Read below for more details |
| Internal 56k Modem | Not Tested | In progress |
| CD-RW DVD-RW Drive | Works | No special procedure required during installation |
| IrDA | Not Tested | In progress |
| Intel High Definition Audio Controller | Works | You need Kernel 2.6.x. Special procedure required during installation. |
| USB | Works | No special procedure required during installation |
| ACPI e tasti funzione | Works | Special procedure required during installation. Follow this article |
| PCMCIA/PCCARD | Not tested | In Progress |
| FireWire/IEEE1394 | Work | No special procedure required during installation |
| Card Reader | Works | Special procedure required during installation. Read below for more details |
| Battery | Works | No special procedure required during installation |
| Webcam | Works | Special procedure required during installation. Read below for more details |
This laptop is operating under Kernel version 2.6.21
installazione di Fedora 7:
Sound System - Audio
After installation i cannot hear audio.
The default conf do not work.
I have changed my modprobe.conf
(see below) and everything work correctly.
[root@trinity2 ~]# cat /etc/modprobe.conf
alias eth0 r8169
alias scsi_hostadapter ata_piix
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd-hda-intel model=3stack
options snd-card-0 index=0
Webcam
On my Asus Z99Jseries (like a A8JN)
to make webcam work you have to install this software:
http://mxhaard.free.fr/spca50x/Download/gspcav1-20070508.tar.gz
This is the home page:
http://mxhaard.free.fr/download.html
You have to follow this steps:
wget http://mxhaard.free.fr/spca50x/Download/gspcav1-20070508.tar.gz
tar -zxvf gspcav1-20070508.tar.gz
cd gspcav1-20070508
If your image should be strange and with bad color change your
/etc/modprobe.conf :
add this line
options gspca force_rgb=1
else, if your image is too dark, try this line:options gspca force_rgb=0 gamma=4
when you have a change reload the module before retry
modprobe -r gspca
modprobe gspca
this is a little description:
autoexpo:Enable/Disable auto exposure (default=1: enabled) (PC-CAM 600/Zc03xx/spca561a/Etoms Only !!!) (int)Card Reader
Every info from:
http://gentoo-wiki.com/HOWTO_SD_and_MMC_card_readers
Lan
Driver only included in newer Kernels (RTL8168b/8111b), Module name "r8169" or alternatively the proprietary Realtek-driver "r1000".
I recommend to use the build in kernel driver, because it's making less trouble during an upgrade and it's working as it should.
TouchPad
Synaptics Touchpad, works with the dafualt configuration obtained after installation (including scrollbars)
modprobe asus-laptop
load the correct module, but i had good experience with slackware and
http://sourceforge.net/projects/acpi4asus
Installare RealPlayer su Fedora Core 7
[root@trinity2 ~]# lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express PCI Express Root Port (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300] (rev a1)
02:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
06:00.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller
06:00.1 Generic system peripheral [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
06:00.2 System peripheral: Ricoh Co Ltd Unknown device 0843 (rev 01)
06:00.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a)
06:00.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 05)
[root@trinity2 ~]#
[root@trinity2 ~]# lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 093a:2500 Pixart Imaging, Inc.
Bus 001 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 005 Device 002: ID 0ac8:0321 Z-Star Microelectronics Corp.
Bus 004 Device 001: ID 0000:0000
[root@trinity2 ~]#