Visualizzazione post con etichetta configurazione. Mostra tutti i post
Visualizzazione post con etichetta configurazione. Mostra tutti i post

martedì 3 luglio 2007

Slackware 12 su Asus Z99j o Aj8n - Gestione ACPI e tasti funzione

Apena installata, la mia distro preferita (ovviamente Slackware 12) ACPI aveva qualche problama.
Sulla barra non compariva l'icona del controllo delle batterie e i tasti funzione non funzionavano :-)
Ecco come ho risolto:

In fondo al file /etc/rc.d/rc.modules ho aggiunto le seguenti righe:
#######################################################
## ACPI MAOX X ASUS
/sbin/modprobe asus_acpi
/sbin/modprobe video
/sbin/modprobe battery
/sbin/modprobe container
/sbin/modprobe button
/sbin/modprobe ac
/sbin/modprobe thermal
/sbin/modprobe processor
/sbin/modprobe fan

/sbin/depmod -ae
###########################################################à
In queso modo è comparsa l'icona delle batterie e posso gestire il risparmio energetico.

Per i tasti funzione:
in /etc/acpi ho modificato il file acpi_handler.sh come segue:

###########################################################
root@trinity2:/etc/acpi# cat acpi_handler.sh
#!/bin/sh
# Default acpi script that takes an entry for all actions

IFS=${IFS}/
set $@

case "$1" in
button)
case "$2" in
power) /sbin/init 0
;;
*) logger "ACPI action $2 is not defined"
;;
esac
;;
hotkey)
case "$2" in
ATKD)
case "$3" in
0000005e)
logger "WIFI in Accenione..."
/etc/acpi/wifi_on.sh
logger "WIFI Acceso!"
echo "WIFI Acceso!" | wall
;;
0000005f)
logger "WIFI in Spegnimento..."
/etc/acpi/wifi_off.sh
logger "WIFI Spento!"
echo "WIFI Spento!" | wall
;;
00000032)
logger "MUTE / UNMUTE AUDIO..."
MUTE=`amixer get PCM | grep Left | grep -v Right | cut -d " " -f 9`
if [ $MUTE == [on] ]; then
/usr/bin/amixer set PCM mute
else
/usr/bin/amixer set PCM unmute
fi
;;
00000031)
logger "Abbasso il volume..."
amixer set PCM 2-
;;
00000030)
logger "Alzo il volume..."
amixer set PCM 2+
;;
*)
logger "AA $3 AA $4"
logger "BB $3 BB $4"
;;
esac
;;
*) logger "ACPI action $2 is not defined"
;;
esac
;;
*)
logger "ACPI group $1 / action $2 is not defined $3 AAA $4 BBBB $5 CCCC"
;;
esac
###############################################################

Con questo file riesco a controllare il volume e l'attivazione della wireless dai tasti funzione su linux.
Premendo Fn+F10 attivo o disattivo l'audio
Premendo Fn+F11 abbasso l'audio
Premendo Fn+F12 alzo l'audio

e, sempre in /etc/acpi/ ho aggiunto i seguenti file:
#################WIFI_ON############################################
root@trinity2:/etc/acpi# cat wifi_on.sh
#!/bin/bash
/sbin/ifconfig eth0 down
/sbin/modprobe ipw3945
/sbin/depmod -ae
/sbin/ipw3945d --quiet
sleep 5
/sbin/dhcpcd -d -t 15 eth1
#################################################################

#######################WIFI_OFF###############################
root@trinity2:/etc/acpi# cat wifi_off.sh
#!/bin/bash
/sbin/ifconfig eth1 down

/sbin/ipw3945d --kill
/sbin/ipw3945d --kill
killall ipw3945d

/sbin/rmmod ipw3945
/sbin/depmod -ae

/etc/rc.d/rc.inet1 restart
###############################################################

poi un bel
chmod ugo+x /etc/acpi/wifi_*

In questo modo posso attivare e disabilitare la wireless tramite la combinazione di tasti
Fn+F2

Come installare VMWare server su Fedora Core 7

Una meravigliosa guida che spiega come installare vmware server su fedora 7.

http://www.howtoforge.com/vmware_server_fedora7

ecco il cuore della guida:

make[2]: *** [/tmp/vmware-config2/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config2/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.21-1.3194.fc7-i686'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config2/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

This happens because VMware Server isn't ready for a 2.6.21 kernel yet (the default kernel in Fedora 7 is 2.6.21.3). Therefore, we must patch VMware Server a little bit. This can be done as follows:

wget http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update110.tar.gz
tar xvfz vmware-any-any-update110.tar.gz
cd vmware-any-any-update110
./runme.pl

The ./runme.pl command will continue the VMware Server installation. This time it should succeed, and again you can accept all default values. When it asks you

In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines]

you can either accept the default value or specify a location that has enough free space to store your virtual machines.

At the end of the installation, you will be asked to enter a serial number:

Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel:

Fill in your serial number for VMware Server.

After the successful installation, you can delete the VMware Server download file and the installation directory:

cd /home/falko/Desktop
rm -fr vmware-server-distrib
rm -f VMware-server-*.tar.gz

You will now find VMware Server under Applications > Other
ATTENZIONE:
Può essere causa di errore l'assenza di xinetd, quindi prima di iniziare l'installazione assicurarsi di avere xinetd:
yum install xinetd

ATTENZIONE 2:
Una altra possibile causa di problemi è la presenza del file
/etc/vmware/not_configured
occorre eliminarlo:
rm /etc/vmware/not_configured

sabato 30 giugno 2007

Suspend to ram - sospensione in ram su Fedora 7

Per abilitare il suspend to ram e il suspend to diskho modificato il /etc/grub.conf come segue:

kernel /boot/vmlinuz-2.6.21-1.3228.fc7 ro root=LABEL=/ rhgb vga=791 selinux=0 resume=/dev/sda3 quiet

In questa riga ho:to il suspend to disk e il suspend to ram
abilitato il frame buffer a una risoluzione di 1024x768x32
disabilitato il SELinux

Kismet su Fedora 7 con driver atheros (ath_pci)

Kismet su Fedora 7 con driver atheros (ath_pci)

yum install kismet
vi /etc/kismet/kismet.conf

e cambiare la riga:
source=.....
in
source=madwifing_g,wifi0,atherosmadwifing_g

esci e salva.

lancia kismet....

funzionaaaa!!!

Aircrack-ng su Fedora 7 con driver atheros madwifi-ng(ath_pci)

Aircrack-ng su Fedora 7 con driver atheros madwifi-ng(ath_pci)

Per aircrack occorre patchare i driver madwifi-ng appena installati
Seguire i seguenti passaggi per patchare i driver:

ifconfig ath0 down
ifconfig wifi0 down
rmmod wlan_wep ath_rate_sample ath_rate_onoe ath_pci wlan ath_hal ath_rate_amrr 2>/dev/null
svn checkout http://svn.madwifi.org/trunk/ madwifi-ng
wget http://patches.aircrack-ng.org/madwifi-ng-r2277.patch
cd madwifi-ng
patch -Np1 -i ../madwifi-ng-r2277.patch
make
make install
depmod -ae
modprobe ath_pci
cd ..
wget http://download.aircrack-ng.org/aircrack-ng-0.9.1.tar.gz
tar -zxvf aircrack-ng-0.9.1.tar.gz
cd aircrack-ng-0.9.1
make && make install

funzionaaaa!!!

si rimanda qui per la suite: http://aircrack-ng.org/doku.php#aircrack-ng_suite

Madwifi ng driver for atheros minipci wireless fedora 7

Madwifi ng driver for atheros minipci wireless:

Sacrico i driver con un bel

wget http://ovh.dl.sourceforge.net/sourceforge/madwifi/madwifi-0.9.3.1.tar.bz2

tar -jxvf madwifi-0.9.3.1.tar.bz2

cd madwifi-ng

make && make install && depmod -ae

modprobe ath_pci

adesso dovrebbe funzionare tutto.

un bel

iwconfig

di conferma e tutto è ok.


Se non dovesse funzionare provate a cercare su
/etc/sysconfig/network-script/ifcfg-wifi0
e modificate :
DEVICE=wifi0
con
DEVICE=ath0

Adesso tutto ok.
Bye

Codec Multimediali su Fedora Core 7

Per installare i codec apriamo la shell, diventiamo root e diamo questi comandi singolarmente:
wget ftp://mplayerhq.hu/MPlayer/releases/codecs/all-20061022.tar.bz2

tar xjf all-20061022.tar.bz2
mkdir /usr/lib/win32
mv all-20061022/* /usr/lib/win32
rm -fr all-20061022

Installare Adobe Acrobat Reader su Fedora Core 7

Per scaricare ed installare Adobe Reader andiamo qui:

Operating system: Unix/Linux Version: Linux (.rpm) Language: Italian

Dopo aver cliccato su continua lasciamo tutto com’è e clicchiamo du “Download Adobe Reader”. Installiamolo come al solito.

Installare Real Player su Fedora Core 7

Per installare RealPlayer andiamo qui e clicchiamo “RedHat Package” sotto l’enorme bottone giallo ed installiamolo come per i TrueTypeFonts

Installare True Type Font su Fedora Core 7

TrueType Fonts

Partiamo da questi. Scarichiamoli da qui installandoli con il Software Installer in dotazione.

Dopo averli installati apriamo la shell, diventiamo root e diamo il seguente comando:

/etc/init.d/xfs restart

Installare Macromedia Flash Player su Fedora Core 7

da root

nano /etc/yum.repos.d/macromedia.repo e copincolliamo e salviamo questo
[macromedia]

name=Macromedia for i386 Linux

baseurl=http://macromedia.rediris.es/rpm/

#baseurl=http://macromedia.mplug.org/rpm/

#baseurl=http://sluglug.ucsc.edu/macromedia/rpm/

enabled=1

gpgcheck=1

gpgkey=http://macromedia.rediris.es/FEDORA-GPG-KEY

e con questo abbiamo addato il repo Macromedia (serve solo per FlashPlayer).
yum -y install flash-plugin

Installare il supporto per mp3 mplayer e dvd player

Installare il supporto per mp3 mplayer e dvd player:

rpm -ihv http://rpm.livna.org/livna-release-7.rpm

yum update

di nuovo:

yum update

yum install mplayer-gui libdvdcss amarok-extras-nonfree gstreamer-plugins-ugly vlc yum -y install xmms xmms-mp3 xmms-faad2 gstreamer-plugins-ugly libmad libid3tag yum -y install xine xine-lib xine-skins xine-lib-extras-nonfree libdvdcss

giovedì 28 giugno 2007

Fedora Core 7 on Fujitsu Lifebook S7110 - Linux on notebook

Installing Fedora 7 on Fujitsu Siemens Lifebook S 7110

Last updated: 27/06/2007 - Work In Progress

General Hardware Specifications of Lifebook S 7110:
Hardware Components
Status under Linux
Notes
Intel Core 2 Duo T5500 Works No special procedure required during installation.
14.1 XGA TFT Display Works Select Generic LCD Display in Installer
Intel 945 Works .
1 GB RAM Works No special procedure required during installation
40 GB SATA Hard Drive Works No special procedure required during installation
Internal Atheros Wireless Networking (Wi-Fi Certified) Works

With madwifi driver:

http://sourceforge.net/project/showfiles.php?group_id=82936

Integrated Network Card Works No special procedure required during installation
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

No special procedure required if using Kernel 2.6.x.

ALSA Sound drivers required for Kernel 2.4.x

USB Works No special procedure required during installation
ACPI Works No special procedure required during installation
PCMCIA/PCCARD Not tested In Progress
FireWire/IEEE1394 Not Tested In Progress
Bluthoot Not Tested In Progress
Battery Works No special procedure required during installation
FingerPrint Not Works

This laptop is operating under Kernel version 2.6.21

installazione di Fedora 7:

Operazioni post-installazione
Installare il supporto per mp3 mplayer e dvd player

Installare Flash Palyer su Fedora Core 7

Installare True Type Font su Fedora Core 7

Installare RealPlayer su Fedora Core 7

Installare Adobe Reader su Fedora Core 7

Multimedia-Codecs su Fedora Core 7

Fedora 7 java runtime engine jre e java development kit jdk e firefox plugin

Beryl su KDE su Fedora Core 7

Madwifi ng driver for atheros minipci wireless su Fedora Core 7

Aircrack-ng su Fedora Core 7 con driver atheros madwifi-ng(ath_pci)


Kismet su Fedora 7 con driver atheros (ath_pci)

  • df -hl
[root@localhost ~]# df -hl
Filesystem Dimens. Usati Disp. Uso% Montato su
/dev/sda2 34G 4,5G 28G 14% /
tmpfs 501M 0 501M 0% /dev/shm


  • lspci

[root@localhost ~]# lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (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.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (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.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA AHCI Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8055 PCI-E Gigabit Ethernet Controller (rev 12)
05:00.0 Ethernet controller: Atheros Communications, Inc. AR5006EG 802.11 b/g Wireless PCI Express Adapter (rev 01)
08:03.0 CardBus bridge: O2 Micro, Inc. OZ711MP1/MS1 MemoryCardBus Controller (rev 21)
08:03.4 FireWire (IEEE 1394): O2 Micro, Inc. Firewire (IEEE 1394) (rev 02)

  • lsusb
[root@localhost ~]# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 003 Device 003: ID 08ff:2580 AuthenTec, Inc.
Bus 003 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000


Contact Information:
  • e-mail address: mao17[at]katamail[dot]com

Problema con Samba fedora e SELinux

Oggi ho trovato un bel problema si samba.
Qualsiasi condivisione provavo ad aprire ottenevo un bel ACCESSO NEGATO
e in particolare:

'/home/maox' does not exist or permission denied when connecting to
[maox] Error was Permission denied
[2007/05/25 20:39:34, 0] smbd/service.c:make_connection_snum(920)

[soluzione]
Per risolvere:

go to /etc/grub.conf and replace this:
CODE

kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/1

with this:
CODE
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/1 selinux=0


(note the selinux=0 part). the line may be different so if it is, just
add the selinux=0 part and it should work the same...

Reboot. Your system should work.

Adesso tutto funziona


--
principio di Napoleone:
non attribuire a malintenzione cio' che puo'
essere semplicemente spiegato come imbecillita'
--
MaoX Blog:
http://maox.blogspot.com

mercoledì 27 giugno 2007

Enable/disable SELinux on Fedora 7

Come abilitare e/o disabilitare SELinux su Fedora 7

Dalla console (o dalla modalità testuale) lanciare

system-config-securitylevel-tui

lunedì 25 giugno 2007

Configurazione Netgear DG834G per una adsl Telecom Interbusiness

Oggi configuriamo una ADSL Telecom Interbusiness su un Netgear Router
Firewall ADSL Wireless DG834G.

Ipotizziamo che i seguenti parametri ci siano stati dati da Telecom:

ip lan: 88.57.20.1/255.255.255.248
ip ptp: 88.57.6.1/255.255.255.252

il gateway è in genere il secondo ip della lan, quinid in questo caso:
gw: 88.57.20.2

L'ip da assegnare al nostro router è quindi, di solito, il terzo:
ip router: 88.57.20.3

Detto questo copiate le seguenti righe dentro un file dal nome
netgear.cfg
ed importatelo nella configurazione del router.
L'ip del router in lan sarà 192.168.0.254
il nome utente/password: admin/admin

# Netgear DG834 Text Format Configure File v0.2
#
# FW Version V4.01.04
#
# Usage:
# # value list or syntax
# [index]"variable"=value

#< Wizard >
# English German Italian French
[10001]"Language"=Italian
# Australia France Italy Singapore Sweden Switzerland UK Other
[10002]"Country"=Italy
#< Basic Settings >
# dhcpc pppoe pppoa ipoa bridge ip
[20001]"WAN protocol"=ipoa
# 0:off 1:on
[20002]"NAT (Network Address Translation)"=1
#< PPPoE >
[20101]"Login"=
[20102]"Password"=
[20103]"Service Name"=
[20104]"Idle Timeout"=0
[20105]"Static IP Address"=
#< PPPoA >
[20201]"Login"=Guest
[20202]"Password"=
[20203]"Idle Timeout"=0
[20204]"Static IP Address"=
#< Get Dynamically From ISP >
[20301]"Account Name"=
[20302]"Domain Name"=
#< Static IP Address >
[20401]"IP Address"=
[20402]"IP Subnet Mask"=
[20403]"Gateway IP Address"=
#< IP Over ATM (IPoA) >
[20501]"IP Address"=88.57.20.3
[20502]"IP Subnet Mask"=255.255.255.248
[20503]"Gateway IP Address"=88.57.20.2
#< Domain Name Server (DNS) Address >
# 0:off 1:on
[20601]"Use These DNS Servers"=1
[20602]"Primary DNS"=151.99.125.2
[20603]"Secondary DNS"=212.216.172.62
#< Router MAC Address >
# MAC address
[20701]"Use This MAC Address"=
#< ADSL Settings >
# 0: LLC-BASED 1: VC-BASED
[30001]"Multiplexing Method"=0
[30002]"VPI"=8
[30003]"VCI"=35
#< Wireless Settings >
[40001]"Name (SSID)"=wlan
# Africa Asia Australia Canada France Israel Japan Mexico 'South
America' USA
[40002]"Region"=Europe
# 0 - 14
[40003]"Channel"=11
# 0: g & b 1: b only 3: g only
[40004]"Mode"=0
# 0:off 1:on
[40005]"Enable Wireless Access Point"=1
# 0:off 1:on
[40006]"Allow Broadcast of Name (SSID)"=1
# 0:off 1:on
[40007]"Wireless Isolation"=0
# 0:off 1:wep 2:wpa 3:802.1x
[40008]"Security Options"=0
#< Wireless Station Access List >
# 0:off 1:on
[40101]"Turn Access Control On"=1
# MAC+name
[40102]"Trusted Wireless Stations"=00:18:DE:A0:47:55MaurizioNB
#< WEP (Wired Equivalent Privacy) >
# 1: Open System 2: Shared Key 3: Automatic
[40201]"Authentication Type"=3
# 0 64 or 128
[40202]"Encryption Strength"=0
# 1 2 3 4
[40203]"Key Index"=1
[40204]"Key 1"=
[40205]"Key 2"=
[40206]"Key 3"=
[40207]"Key 4"=
#< WPA-PSK >
# (8 ~ 64 characters)
[40301]"Network Key"=
#< WPA-802.1x >
[40401]"Radius Server Name/IP Address"=
[40402]"Radius Port"=1812
[40403]"Shared Key"=
#< Logs >
# 0:off 1:on
[50001]"Attempted access to blocked sites"=1
# 0:off 1:on
[50002]"Connections to the Web-based interface of this Router"=1
# 0:off 1:on
[50003]"Router operation"=1
# 0:off 1:on
[50004]"Known DoS attacks and Port Scans"=1
# 0:Disable 1:Broadcast on LAN 2:Send to Syslog server
[50005]"Syslog"=0
[50006]"Send to this Syslog server IP address"=
#< Block Sites >
# 0:Never 1:Always 2:Per Schedule
[60001]"Keyword Blocking"=1
[60002]"Block Sites Containing these Keywords or Domain Names"=
# 0:off 1:on
[60003]"Allow Trusted IP Address to Visit Blocked Sites"=0
[60004]"Trusted IP Address"=
#< Firewall Rules >
# ENABLE:SERVICE_NAME:ACTION:LAN:WAN:LOG
#
# ENABLE: 0=on or 1=off
# SERVICE_NAME: Actual Service in service table
# ACTION: 0:BLOCK always 1:BLOCK by schedule 2:ALLOW always 3:ALLOW by
schedule
# LAN: 0/0: Any a.b.c.d: Single 1.2.3.4-5.6.7.8: Range
# WAN: 0/0: Any a.b.c.d: Single 1.2.3.4-5.6.7.8: Range
# LOG: 0:Never 1:Always 2: Match 3: Not Match
# ex: 1:Any(ALL):2:192.168.0.250:0/0:1
[70001]"Inbound Rule"=
# The Same as Inbound Rule
[70002]"Outbound Rule"=
#< Services >
# NAME:PROTOCOL:START_PORT-END_PORT
#
# PROTOCOL: tcp udp both all
# ex: Any(TCP):tcp:1-65535
[80001]"Service Table"=
#< Schedule >
# DAY:START_TIME-END_TIME ex:1111111:00:00-24:00
[90001]"Schedule"=1111111:00:00-24:00
#< Time Zone >
# UI (-12 ~ GMT ~ +12)
[90101]"Time Zone"=GMTb
# System (GMT+12 ~ GMT-12)
[90102]"Time Zone"=GMT+0
# 0:off 1:on
[90103]"Daylight Savings Time"=
# 0:off 1:on
[90104]"Use this NTP Server"=0
[90105]"NTP Server"=
#< E-mail >
# 0:off 1:on
[100001]"Turn E-mail Notification On"=1
[100002]"Send To This E-mail Address"=
[100003]"Outgoing Mail Server"=
# 0:off 1:on
[100004]"My Mail Server requires authentication"=0
[100005]"User Name"=
[100006]"Password"=
#< Send E-Mail alerts immediately >
# 0:off 1:on
[100101]"If a DoS attack is detected"=1
# 0:off 1:on
[100102]"If a Port Scan is detected"=1
# 0:off 1:on
[100103]"If someone attempts to access a blocked site"=1
# 0:None 1:When Log is Full 2:Hourly 3:Daily 4:Daily
[100104]"Send Logs According to this Schedule"=3
# 0:off 1:on
[100105]"Send mail when Log is Full"=0
# 0:Sun ~ 6:Sat
[100106]"Day"=
# 0 ~ 24
[100107]"Hour"=11
#< Set Password >
[110001]"Username"=admin
[110002]"Password"=admin
# 0 ~ 99
[110003]"Login times out"=5
#< WAN Setup >
# 0:off 1:on
[120001]"Connect Automatically, as Required"=1
# 0:off 0:on
[120002]"Port Scan and DOS Protection"=1
# 0:off 1:on
[120003]"Enable DMZ Server"=0
[120004]"DMZ Server"=
# 0:off 1:on
[120005]"Respond to Ping on Internet WAN Port"=1
[120006]"MTU Size"=1500
#< Dynnamic DNS >
# 0:off 1:on
[130001]"Use a Dynamic DNS Service"=0
[130002]"Host Name"=
[130003]"User Name"=
[130004]"Password"=
# 0:off 1:on
[130005]"Use Wildcards"=0
#< LAN IP Setup >
#< LAN TCP/IP Setup >
[140101]"IP Address"=192.168.0.254
[140102]"IP Subnet Mask"=255.255.255.0
[140103]"Broadcast IP Address"=192.168.0.255
#< RIP >
# 0:none in:In Only out:Out Only both:Both
[140201]"RIP Direction"=0
# 1:RIP-1 2B:RIP-2B 2M:RIP-2M
[140202]"RIP Version"=1
#< DHCP Server >
# 0:off 1:on
[140301]"Use Router as DHCP Server"=1
[140302]"Starting IP Address"=192.168.0.210
[140303]"Ending IP Address"=192.168.0.250
# Name;IP;MAC
[140304]"Address Reservation"=
#< Remote Management >
# 0:off 1:on
[150001]"Turn Remote Management On"=1
# 1:single 2:range 3:everyone
[150002]"Allow Remote Access By"=3
[150003]"Only This Computer"=
[150004]"IP Address Range Start"=
[150005]"IP Address Range End"=
[150006]"Port Number"=8080
#< Static Routes >
# Name:Dest_ip:Netmask:Gateway:Metric:Private:Active
[160001]"Routes"=
#< UPnP >
# 0:off 1:on
[170001]"Turn UPnP On"=1
[170002]"Advertisement Period"=30
[170003]"Advertisement Time To Live"=4
#< VPN >
[180001]"VPN Version"=2
[180001]"VPN policy"=1
#< SNMP >
# 0:off 1:on
[190001]"Turn SNMP On"=0
# 0:off 1:on
[190002]"Disable Local Web Admin Access"=
[190003]"Read Community Name"=
[190004]"System Contact"=
[190005]"System Name"=
[190006]"System Location"=

--
principio di Napoleone:
non attribuire a malintenzione cio' che puo'
essere semplicemente spiegato come imbecillita'
--
MaoX Blog:
http://maox.blogspot.com

venerdì 15 giugno 2007

Postfix con supporto mysql su fedora - creare il proprio rpm

Postfix con supporto mysql su Fedora

Get the latest source rpm fromFedora Core Developmentand install it
or here:
http://download.fedora.redhat.com/pub/fedora/linux/updates/7/SRPMS/

(Note: the src.rpm not the i386.rpm) with:
rpm -Uvh postfix-2.3.x-1.src.rpm   

If it still not the latest get the latest source from any of thePostfix Download Siteand put int into
rpm/SOURCES/ directory. In postfix.spec modify the version and add MySQL support (%define MYSQL 1) and build it:

rpmbuild -ba postfix.spec
rpmbuild -bb postfix.spec
Cioè:
scarico l'RPM con i sorgenti,
poi scarico l'ultima versione di postfix e lo installo
Tutto va a finire in /usr/src/redhat/SOURCES/
qui sostituisco
postfix-2.3.6.tar.gz
con
postfix-2.3.7.tar.gz
poi in
/usr/src/redhat/SPECS/
modifico
postfix.spec
%define MYSQL 1 Version: 2.3.7
e poi lancio
rpmbuild -ba postfix.spec
rpmbuild -bb postfix.spec
in
/usr/src/redhat/RPMS/i386
trovo i pacchetti RPM e quindi
cd /usr/src/redhat/RPMS/i386
rpm -Uhv ./*

FATTO!!!!

[da http://dailypackage.fedorabook.com/index.php?/archives/6-Wednesday-Why-The-Alternatives-System.html]

To select one of these two packages interactively, the alternatives command is used with the --config option and the generic name of the feature that is being configured:

# alternatives --config mta

There are 2 programs which provide 'mta'.

Selection Command
-----------------------------------------------
*+ 1 /usr/sbin/sendmail.sendmail
2 /usr/sbin/sendmail.postfix

Enter to keep the current selection[+], or type selection number:

Note that the highest-priority alternative is marked with an astrisk (*), and the currently-selected option is marked with a plus-sign (+). Press enter to keep the current setting or enter a number to select another value.

To select an alternative directly from the command line, use the --set option:

# alternatives --set mta /usr/sbin/sendmail.postfix

You can see the current value by using the --display option:

# alternatives --display mta
mta - status is manual.
link currently points to /usr/sbin/sendmail.sendmail
/usr/sbin/sendmail.sendmail - priority 90
slave mta-pam: /etc/pam.d/smtp.sendmail
slave mta-mailq: /usr/bin/mailq.sendmail
slave mta-newaliases: /usr/bin/newaliases.sendmail
slave mta-rmail: /usr/bin/rmail.sendmail
slave mta-sendmail: /usr/lib/sendmail.sendmail
slave mta-mailqman: /usr/share/man/man1/mailq.sendmail.1.gz
slave mta-newaliasesman: /usr/share/man/man1/newaliases.sendmail.1.gz
slave mta-aliasesman: /usr/share/man/man5/aliases.sendmail.5.gz
slave mta-sendmailman: /usr/share/man/man8/sendmail.sendmail.8.gz
/usr/sbin/sendmail.postfix - priority 30
slave mta-pam: /etc/pam.d/smtp.postfix
slave mta-mailq: /usr/bin/mailq.postfix
slave mta-newaliases: /usr/bin/newaliases.postfix
slave mta-rmail: /usr/bin/rmail.postfix
slave mta-sendmail: /usr/lib/sendmail.postfix
slave mta-mailqman: /usr/share/man/man1/mailq.postfix.1.gz
slave mta-newaliasesman: /usr/share/man/man1/newaliases.postfix.1.gz
slave mta-aliasesman: /usr/share/man/man5/aliases.postfix.5.gz
slave mta-sendmailman: /usr/share/man/man1/sendmail.postfix.1.gz
Current `best' version is /usr/sbin/sendmail.sendmail.

Instead of selecting the alternative manually, you can choose to have the highest-priority option automatically selected. This will enable an automatic change as packages are added and removed:

# alternatives --auto mta

The most common use of the alternatives system is to select between implementations of Java, the print server, and the mail transfer agent. Fedora's implementation of alternatives is a rewrite and extension of the alternatives system used in Debian.

(Why is the generic name linked to a name in /etc/alternatives which is symlinked to the target, instead of the generic name being directly symlinked to the target? This was done so that the configuration information is contained in the /etc directory, centralizing the location of configuration data).