mercoledì 27 giugno 2007

Fai il tuo Cavo RJ45 seguendo lo standard

Indice

[nascondi]

Cablaggio per connettore RJ-45 secondo gli standard EIA/TIA-568A/B

Pin Cp. T568A Cp. T568B Cond. Codice colori T568A Codice colori T568B
1 3 2 1 Coppia 3 Cond. 1 bianco di bianco/verde Coppia 2 Cond. 1 bianco di bianco/arancio
2 3 2 2 Coppia 3 Cond. 2 verde di bianco/verde Coppia 2 Cond. 2 arancio di bianco/arancio
3 2 3 1 Coppia 2 Cond. 1 bianco di bianco/arancio Coppia 3 Cond. 1 bianco di bianco/verde
4 1 1 2 Coppia 1 Cond. 2 blu di bianco/blu Coppia 1 Cond. 2 blu di bianco/blu
5 1 1 1 Coppia 1 Cond. 1 bianco di bianco/blu Coppia 1 Cond. 1 bianco di bianco/blu
6 2 3 2 Coppia 2 Cond. 2 arancio di bianco/arancio Coppia 3 Cond. 2 verde di bianco/verde
7 4 4 1 Pair 4 Cond. 1 bianco di bianco/marrone Pair 4 Cond. 1 bianco di bianco/marrone
8 4 4 2 Pair 4 Cond. 2 marrone di bianco/marrone Pair 4 Cond. 2 marrone di bianco/marrone

RJ-45 EIA/TIA 568A pinout Left RJ-45 EIA/TIA 568A pinout right

RJ-45 EIA/TIA 568B pinout Left RJ-45 EIA/TIA 568B pinout right

RJ-45 EIA/TIA 568A pinout Left RJ-45 EIA/TIA 568B pinout right


RJ45 - Pin Out

Female Male
Ethernet Female Ethernet Male
Pin Name Description
1 TX_D1+ Tranceive data +
2 TX_D1- Tranceive data -
3 RX_D2+ Receive data +
4 BI_D3+ Bi-directional Data+
5 BI_D3- Bi-directional Data-
6 RX_D2- Receive data -
7 BI_D4+ Bi-directional Data+
8 BI_D4- Bi-directional Data-


Assemblare un cavo tipo Diretto secondo lo standard EIA568A.

  1. La maggior parte delle pinze a crimpare ha due coppie di lame, una coppia, da un lato, per spellare i fili e l'altra coppia, dall'altro lato, per tagliare i fili. Se la pinza non vi permette di tagliare la guaina del cavo dovete usare una lametta ed incidere con questa la guaina stessa, togliendone un pezzo della lunghezza di circa tre centimetri. Fate molta attenzione a non tagliare o incidere l'isolamento dei fili dentro la guaina, la maggior parte delle guaine appena incise si spezzano se piegate o tirate.
  2. Quando avete rimosso la guaina, avrete quattro coppie di file avvolti tra di loro a due a due e di colore diverso. Svolgete le coppie di fili in modo da avere otto fili separati, ma fate attenzione a distinguerli nel caso non avessero colori diversi (in alcuni cavi i fili bianco/colore sono tutti bianchi).
  3. Aprite a ventaglio i fili nell'ordine in cui dovrete crimparli da sinistra a destra. La configurazione del cavo la potete vedere in Tabella 1 e Figura A.


  4. Tabella 1: Come configurare un cavo tipo Diretto

    Connettore 1

    Connettore 2

    Bianco/Verde

    Bianco/Verde

    Verde

    Verde

    Bianco/Arancio

    Bianco/Arancio

    Blu

    Blu

    Bianco/Blu

    Bianco/Blu

    Arancio

    Arancio

    Bianco/Marrone

    Bianco/Marrone

    Marrone

    Marrone

    Nota bene: se i colori del cavo sono diversi basta mantenere le corrispondenze giuste.







    Nelle figure a sinistra vedete come devono essere configurati entrambi i connettori del cavo diretto T568A. Tenendo il connettore nella posizione indicata e con i fili che entrano dal basso, l'aletta si trova dietro.

    Figura A: Schema di cablaggio secondo lo Standard EIA/TIA T568A.

  5. Tenere i fili stretti tra due dita ed appiattirli in modo che stiano ben affiancati tra di loro, lisciateli bene, togliendo le leggere curvature dovute al precedente avvolgimento tra i fili, stirandoli con le dita. Attenzione che non si spostino dall'ordine in cui devono stare.
  6. Continuando a tenerli stretti tagliate con la pinza la parte eccedente i due centimetri in modo da averli tutti della stessa lunghezza.
  7. Inserire i fili nel connettore RJ45 tenendoli sempre allineati stretti tra le dita. Il connettore deve avere la linguetta in basso, non in vista. La guaina isolante deve arrivare giusto vicino al bordo del connettore.
  8. Guardando sul lato del connettore trasparente, verificate che i fili siano giunti sino in fondo. Quindi inserite il connettore nella pinza a crimpare e, stringendo la pinza con due mani, crimpate il connettore in modo da fermare i fili. La pinza non dovrebbe aprirsi se non si é giunti fino in fondo.
  9. Ora ripetete esattamente i vari passaggi visti sopra nei punti da 1 a 7 per crimpare il cavo dall'altro lato.



Fotografie del connettore completato.

Assemblare un cavo tipo incrociato (crossover) secondo lo standard EIA568B.

Il cavo incrociato (crossover) si deve usare quando si devono connettere, direttamente tra loro, due macchine senza usare un hub, uno switch o un router. Su uno dei connettori del cavo si devono posizionare i fili nello stesso identico modo appena visto sopra nei punti da 1 a 7 (vedi Tabella 2 e Figura B).
Nel secondo connettore i fili devono essere posizionati in modo diverso da quello visto sopra invertendo tra loro le coppie 2 e 3 (vedi Tabella 2). La procedura é la stessa e la cura nel posizionare i fili deve essere sempre attenta.

Tabella 2: Come configurare un cavo tipo Incrociato (Crossover).

Connettore 1

Connettore 2

Bianco/verde

Bianco/Arancio

verde

Arancio

Bianco/Arancio

Bianco/verde

Blu

Blu

Bianco/Blu

Bianco/Blu

Arancio

verde

Bianco/Marrone

Bianco/Marrone

Marrone

Marrone

Nota bene: se i colori del cavo sono diversi basta mantenere le corrispondenze giuste. Come si vede il connettore 1 é uguale a quello del cavo Diretto mentre il connettore 2 é diverso.







Nelle figure vedete come devono essere configurati entrambi i connettori del cavo incrociato T568B (crossover). Tenendo il connettore nella posizione indicata e con i fili che entrano dal basso, l'aletta si trova dietro.


Figura B: Schema di cablaggio secondo lo Standard EIA/TIA T568B.



Ecco un altro modo di rappresentare le connessioni sopra descritte.






Schema delle connessioni nella presa a muro per RJ45.


martedì 26 giugno 2007

[Recensione] - Un ottimo software per la gestione dei Blog

http://www.lifetype.net/


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

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

mercoledì 20 giugno 2007

Sfondo bellissimo - we suck more

Linux Fedora 7 on Asus Z99J Series and Asus A8JN notebook

Installing Fedora 7 on
Linux on Asus Z99J Series and Asus A8JN

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
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

With ipw3945 driver: Follow this article

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.
Read below for more details

USB Works No special procedure required during installation
ACPI Works Special procedure required during installation.
Read below for more details
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:

Operazioni post-installazione

Utili repository per Fedora core 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

make
make install
modprobe gspca

Now it work perfectly.
You can try it with vlc

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


You can change on the fly the gspca parameter here


cd /sys/module/gspca/parameters
autoexpo

compress

debug

force_rgb

gamma

GBlue

GGreen

GRed

lightfreq

OffBlue

OffGreen

OffRed

usbgrabber


to read them you can usa a cat

to change them use this:

echo "value" > parameter
this is a little description:

autoexpo:Enable/Disable auto exposure (default=1: enabled) (PC-CAM 600/Zc03xx/spca561a/Etoms Only !!!) (int)
debug:Debug level: 0=none, 1=init/detection, 2=warning, 3=config/control, 4=function call, 5=max (int)
force_rgb:Read RGB instead of BGR (int)
gamma:gamma setting range 0 to 7 3-> gamma=1 (int)
OffRed:OffRed setting range -128 to 128 (int)
OffBlue:OffBlue setting range -128 to 128 (int)
OffGreen:OffGreen setting range -128 to 128 (int)
GRed:Gain Red setting range 0 to 512 /256 (int)
GBlue:Gain Blue setting range 0 to 512 /256 (int)
GGreen:Gain Green setting range 0 to 512 /256 (int)
compress:Turn on/off compression (not functional yet) (int)
usbgrabber:Is a usb grabber 0x0733:0x0430 ? (default 1) (int)
lightfreq:Light frequency banding filter. Set to 50 or 60 Hz, or zero to NoFliker (default=50) (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)


ACPI

modprobe asus-laptop
load the correct module, but i had good experience with slackware and
http://sourceforge.net/projects/acpi4asus


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

  • lspci

[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 ~]#



  • lsusb

[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 ~]#



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

martedì 19 giugno 2007

linux boot vga parameter value - grub and lilo

Valori del parametro vga= da passare a lilo o grub

This is the table of value for the vga parameter
in your lilo.conf or grub.conf (or menu.lst)
put:
vga=xxx


Reference value for x

640x480 800x600 1024x768 1280x1024 1152x864 1600x1200
8 bit 769 771 773 775 353 800
15 bit 784 787 790 793 354 801
16 bit 785 788 791 794 355 802
24 bit 786 789 792 795
803

per maggiori informazioni:
http://gentoo-wiki.com/HOWTO_fbsplash

lunedì 18 giugno 2007

Linux e webcam su asus A8JN e Z99J

Finalmente la Webcam FUNZIONA.
Sul mio Asus Z99Jseries (riconosciuto come un A8JN)
per installare la webcam è stato sufficiente scaricare il pacchetto
http://mxhaard.free.fr/spca50x/Download/gspcav1-20070508.tar.gz

dal seguente sito

http://mxhaard.free.fr/download.html

e dare

make
make install
modprobe gspca

e ora FUNZIONA!!!

Potete provarla con l'ottimo VLC (File -> Apri periferica di acquisizione)
Se l'immagine dovesse avere strani colori aggiungete questa riga al file

/etc/modprobe.conf :
options gspca force_rgb=1

se invece l'immagine è troppo scura provate ad aggiungere questo:

options gspca force_rgb=0 gamma=4

e poi ricaricare il modulo con

modprobe -r gspca
modprobe gspca
Inoltre è possibile cambiare al volo i parametri di gspca

cd /sys/module/gspca/parameters

I parametri sono i seguenti:

autoexpo
compress
debug
force_rgb
gamma
GBlue
GGreen
GRed
lightfreq
OffBlue
OffGreen
OffRed
usbgrabber

per leggerli basta un cat

e per modificarli :

echo "_valore_" > _parametro_

Allego di seguito una breve descrizione dei parametri:

autoexpo:Enable/Disable auto exposure (default=1: enabled) (PC-CAM 600/Zc03xx/spca561a/Etoms Only !!!) (int)
debug:Debug level: 0=none, 1=init/detection, 2=warning, 3=config/control, 4=function call, 5=max (int)
force_rgb:Read RGB instead of BGR (int)
gamma:gamma setting range 0 to 7 3-> gamma=1 (int)
OffRed:OffRed setting range -128 to 128 (int)
OffBlue:OffBlue setting range -128 to 128 (int)
OffGreen:OffGreen setting range -128 to 128 (int)
GRed:Gain Red setting range 0 to 512 /256 (int)
GBlue:Gain Blue setting range 0 to 512 /256 (int)
GGreen:Gain Green setting range 0 to 512 /256 (int)
compress:Turn on/off compression (not functional yet) (int)
usbgrabber:Is a usb grabber 0x0733:0x0430 ? (default 1) (int)
lightfreq:Light frequency banding filter. Set to 50 or 60 Hz, or zero to NoFliker (default=50) (int)

Connettori SCSI

fedora 7 - kde like mac osx - kde come mac osx con baghira

Una ottima guida passo passo
a very good step by step guide
http://baghira.sourceforge.net/OS_Clone-en.php

Installare applicazioni per kde

./configure --prefix=`kde-config --prefix`
make
make install

in caso di errori, se non trova Qt aggiungere:
--with-qt-dir=$QTDIR --with-qt-libraries=$QTDIR/lib --with-extra-libs=$QTDIR/lib
opuure a mano
--with-qt-dir=/usr/lib/qt-3.3 --with-qt-libraries=/usr/lib/qt-3.3/lib --with-extra-libs=/usr/lib/qt-3.3/lib --with-qt-include=/usr/lib/qt-3.3/include

Fedora 7 like mac osx with baghira

Ecco come fare:

yum install kdelibs-devel kdebase-devel libXtst-devel rpm-build

wget http://www.kde-look.org/CONTENT/content-files/59592-baghira.spec
mv 59592-baghira.spec /usr/src/redhat/SPECS/baghira.spec

wget http://mesh.dl.sourceforge.net/sourceforge/baghira/baghira-0.8.tar.bz2
mv baghira-0.8.tar.bz2 /usr/src/redhat/SOURCES

cd /usr/src/redhat/SPECS/
rpmbuild -bb baghira.spec

cd ../RPMS/i386/
rpm -Uhv baghira-0.8-1.i386.rpm

Adesso nel pannello di controllo di kde possiamo scegliere baghira come
tema e decorazione.

Saluti

domenica 17 giugno 2007

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

Installo i pacchetti necessari:
yum install compat-libstdc++-296.i386 compat-libstdc++-33.i386
Installiamo la jre e la jdk
Andiamo su
http://java.sun.com/javase/downloads/index.jsp
e scarichiamo la jdk (ultima versione formato rpm)

chmod ugo+x jdk-6u1-linux-i586-rpm.bin
./jdk-6u1-linux-i586-rpm.bin
rispondere yes per accettare la licenza

[root@trinity2 ~]# ls /usr/bin/java -la
lrwxrwxrwx 1 root root 22 12 giu 20:56 /usr/bin/java ->
/etc/alternatives/java
[root@trinity2 ~]# ls -la /etc/alternatives/java
lrwxrwxrwx 1 root root 35 12 giu 20:56 /etc/alternatives/java ->
/usr/lib/jvm/jre-1.5.0-gcj/bin/java
[root@trinity2 ~]# rm /etc/alternatives/java
rm: rimuovere link simbolico `/etc/alternatives/java'? y
[root@trinity2 ~]# ln -s /usr/java/jdk1.6.0_01/bin/java
/etc/alternatives/java

[root@trinity2 ~]# java -version
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

adesso abilitiamo il plugin per firefox
[root@trinity2 ~]# ln -s
/usr/java/jdk1.6.0_01/jre/plugin/i386/ns7/libjavaplugin_oji.so
/usr/lib/firefox-2.0.0.4/plugins/

Beryl su Fedora 7





Dopo aver risolto i problemi della scheda video (v. post precedente - che però segue questo :-) )
ho installato beryl

yum install beryl-kde

con questo cmd mi ha installato tutte le dipendenze e i pacchetti necessari

beryl-core.i386
beryl-kde.i386
beryl-manager.i386
beryl-plugins.i386
beryl-settings.i386
beryl-settings-simple.i386

A questo punto per attivare beryl non devo far altro che lanciare
beryl-manager

Per configurare beryl:
http://lunapark6.com/?p=2916&cp=3

Se si vuole lanciarlo in automatico... consiglio il seguente link.

Automatic installation of XGL, compiz and beryl on Fedora

http://nicofo.tuxfamily.org/dotclear/index.php/2007/02/23/25-automatic-installation-of-xgl-compiz-and-beryl-on-fedora

Fedora 7 nvidia driver e direct rendering problem

Oggi ho provato a installare i driver nvidia abilitando il direct rendering
non ce l'ho fatta.
Ho provato di tutto, ma l'installazione tramite i pacchetti rpm e yum
non ha dato nessun risultato.
Ogni volta che provavo il comando
glxinfo | grep rend

ottenevo
direct rendering: No

Alla fine, stufo e quasi rassegnato mi sono deciso e ho fatto
l'installazione manuale.
Ecco i passi necessari:

Scarico
http://us.download.nvidia.com/XFree86/Linux-x86/100.14.09/NVIDIA-Linux-x86-100.14.09-pkg1.run

poi un bel

telinit 3

yum remove kmod-nvidia.i686
yum install kernel-devel gcc

chmod ugo+x NVIDIA-Linux-x86-100.14.09-pkg1.run

./NVIDIA-Linux-x86-100.14.09-pkg1.run

seguo i passi necessari

quando ha finito ho dato un bel telinit 5

e.... magia...

glxinfo | grep rend
direct rendering: Yes
OpenGL renderer string: GeForce Go 7300/PCI/SSE2

Rimborso per Windows preinstallato, il parere dell'Aduc

Fonte: http://attivissimo.blogspot.com/2006/08/rimborso-windows-garante-sancisce.html

Questo articolo vi arriva grazie alle gentili donazioni di "foucault66" e "f.graniglia".

L'Aduc ha pubblicato oggi un comunicato a proposito della controversia sul diritto negato al rimborso per Windows preinstallato e non utilizzato, come previsto da una poco nota clausola della licenza Microsoft. La questione (e il mio successo nell'ottenere il rimborso, seguito da quello di pochi altri testardi) è raccontata in dettaglio nella mia pagina apposita.

L'associazione di consumatori aveva denunciato Microsoft all'Autorità Garante della Concorrenza e del Mercato per abuso di posizione dominante, proprio perché è praticamente impossibile acquistare un PC senza Windows preinstallato (specialmente nel settore dei portatili e la clausola di rimborso prevista nella licenza viene sistematicamente boicottata da rivenditori e produttori. In questo senso, anzi, Aduc ha citato in giudizio HP e ha predisposto un modulo per la richiesta di rimborso.

Il comunicato Aduc di oggi cita la risposta dell'Autorità Garante, che non sono riuscito a trovare sul sito del Garante ma che secondo ADUC è in una "lettera 28300/06 del 27/7/2006" nell'ambito del procedimento DC/5073 (sarebbe interessante leggerla per intero, ho già chiesto all'Aduc):
...L'Autorità, dopo la seduta dello scorso 20 luglio 2006, ci ha comunicato che secondo lei questo abuso non c'è: per Microsoft l'Autorità ritiene che quanto da noi segnalato non vi è riferibile, ma lo sarebbe per le imprese produttrici di hardware che pre-installano Windows nei computer. "Dalle informazioni raccolte –continua l'Autorita' garante della Concorrenza e del Mercato- è inoltre emerso che sul mercato vi sono imprese che offrono prodotti che non installano tale sistema operativo e che comunque i consumatori possono rifiutare l'installazione di Windows e ricevere un rimborso".
Microsoft non è colpevole, insomma, ma lo sono i rivenditori e i produttori che non consentono l'applicazione corretta della licenza. Al tempo stesso, le parole del Garante ribadiscono il diritto del consumatore a ricevere un rimborso.

Aduc riassume lucidamente il problema del rimborso. A parte la faccenda di arricchire ulteriormente Microsoft con un prodotto che il consumatore non vuole (perché vuole installare Linux o ha già una licenza valida di Windows) ma è costretto a pagare,
i consumatori vorrebbero poter scegliere "UN PC SENZA SISTEMA OPERATIVO" alla stregua di "UN VASO SENZA FIORI"; o perlomeno, i fiori vorrebbero poterli scegliere da soli!
Parole sante.
 

venerdì 15 giugno 2007

Intel ipw3945 on Fedora 7

Intel ipw3945 on Fedora 7

Taken from the following website link. Copied and pasted hence the layout.

http://forums.fedoraforum.org/showthread.php?p=805589#post805589
http://fedoramobile.org/Members/ops...45-on-fedora-7/

This howto will show you how to blacklist/remove iwl3945 / mac80211 in Fedora 7 and install / use the "known working" ipw3945 kernel module / driver, microcode firmware, regulatory daemon and startup init script. For this you will need to have root privileges and have roots path/environment.

Applicable to Fedora Versions

* Fedora Core 7

Requirements
Explanation of requirements.

1. kernel-devel (kernel development files for building modules against the running kernel)
2. gcc (C++ compiler)
3. ipw3945-1.2.1.tgz (driver / kernel module)
4. ipw3945-ucode-1.14.2.tgz (microcode / firmware)
5. ipw3945d-1.7.22.tgz (regulatory daemon)
6. ipw3945 (startup init script)

Doing the Work

Basic description of what will be done and what is expected. Learn to become root here.

1. Blacklisting the offending modules:

Code:
#nano /etc/modprobe.d/blacklist


add these exact lines at the bottom then save and exit:

Code:
# iwl3945 blacklist iwl3945 blacklist mac80211


2. Reboot the system:

Code:
#] reboot


3. Create a temp directory on your desktop called 'ipw3945' and download the following files into it:

Code:
$] mkdir /home/$user/Desktop/ipw3945 (replace $user with your username)


http://prdownloads.sourceforge.net/....1.tgz?download
http://bughost.org/ipw3945/ucode/ip...code-1.14.2.tgz
http://bughost.org/ipw3945/daemon/ipw3945d-1.7.22.tgz
http://fedoraos.org/ipw3945/ipw3945

4. Install kernel development packages and gcc compiler:

Code:
#] yum install kernel-devel gcc

5. Unpack the gzipped tarballs into the directory on your desktop called 'ipw3945' that we created earlier:

Code:
$] tar xvfz ipw3945-1.2.1.tgz
$] tar xvfz ipw3945-ucode-1.14.2.tgz
$] tar xvfz ipw3945d-1.7.22.tgz


6. Copy ucode firmware and regulatory daemon to their respective locations:

Code:
cp ipw3945-ucode-1.14.2/ipw3945-ucode /lib/firmware
cp ipw3945d-1.7.22/ipw3945d /sbin

(or choose the version for x86_64 if necessary)

7. Compile and copy the resuling kernel module to the correct location (for more options here see 'more information' below):

Code:
$] cd ipw3945-1.2.1 && make
$] su --login
#] cp /home/$user/Desktop/ipw3945/ipw3945-1.2.1/ipw3945.ko /lib/modules/2.6.21-1.3212.fc7/kernel/drivers/net/wireless/
#] chmod 744 /lib/modules/2.6.21-1.3212.fc7/kernel/drivers/net/wireless/ipw3945.ko
#] depmod -ae


8. Install startup init script:

Code:
#] cp /home/$user/Desktop/ipw3945/ipw3945 /etc/init.d
#] chmod +x /etc/init.d/ipw3945
#] chkconfig --add ipw3945 && chkconfig ipw3945 on


9. Reboot the system:

Code:
#] reboot


Troubleshooting
How to test
Explanation troubleshooting basics and expectations.

1. Configure the device:

Code:
#] system-config-network

new --> wireless connection --> Intel Corporation PRO/Wireless 3945ABG Network Connection --> forward

2. Restart the network:

Once you have disabled all other network cards, configured your ip address, gateway, DNS, subnet mask,
SSID, wifi channel, and encryption key:
Code:
# service network restart

Common problems and fixes

Many laptops with built in wireless have a WLAN switch that is a toggle switch for enabling/disabling the wireless radio.

Please make sure you check this is on, or your ipw3945 wireless adapter will not detect correctly or work at all.

Also, disable all other network cards before attempting to use the ipw3945.
More Information

Special Notes:

If you'd like Monitor Mode, Promiscuous Mode or RadioTap enabled for this device you will need to edit the Makefile in

Step 7 before compiling the kernel module uncomment the corresponding line(s):
Code:
CONFIG_IPW3945_MONITOR=y
CONFIG_IEEE80211_RADIOTAP=y
CONFIG_IPW3945_PROMISCUOUS=y

Added Reading

* http://fedoraos.org
 

Fedora e Acrobat Reader - expr: errore di sintassi

Ho installato Acrobat Reader AdobeReader_ita-7.0.8-1.i386.rpm preso dal
sito Adobe.
Quando lo lancio, ottengo questo errore:
||

$ acroread

expr: errore di sintassi
expr: errore di sintassi
expr: errore di sintassi
...


all'infinito, finché non premo ctrl+c

SOLUZIONE:
A chi mai servisse, ho trovato la soluzione in rete in questo forum:
Link:
<https://fcp.surfsite.org/modules/newbb/viewtopic.php?topic_id=26864&forum=12&post_id=114769>


In pratica, bisogna aprire lo script /usr/bin/acroread e fare le
seguenti sostituzioni:
||

418# echo $mfile| sed
's/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g'
419 echo $mfile| sed
's/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]*\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g'

644# MIN_GTK_VERSION="240"
645 MIN_GTK_VERSION="2040"


I numeri all'inizio sono i numeri di riga...
In realtà, a me bastava solo la prima delle due.
C'era un errore di sintassi nella riga di sed.

Usiamo vim di default su fedora

Come fare in modo che vi corrisponda a vim

Iniziamo:
yum -y update

VI=VIM

vi /etc/profile.d/vim.sh

It should look like this:

if [ -n "$BASH_VERSION" -o -n "$KSH_VERSION" -o -n "$ZSH_VERSION" ]; then

[ -x /usr/bin/id ] || return

[ `/usr/bin/id -u` -le 100 ] && return

# for bash and zsh, only if no alias is already set

alias vi >/dev/null 2>&1 || alias vi=vim

fi


Add a # sign in front of lines 2 and 3, so that it looks like this:

if [ -n "$BASH_VERSION" -o -n "$KSH_VERSION" -o -n "$ZSH_VERSION" ]; then

# [ -x /usr/bin/id ] || return

# [ `/usr/bin/id -u` -le 100 ] && return

# for bash and zsh, only if no alias is already set

alias vi >/dev/null 2>&1 || alias vi=vim

fi

Link utili per l'installazione e configurazione di Fedora

Riferimenti:
http://www.freespamfilter.org/FC4.html
http://wiki.dovecot.org/DovecotLDAPostfixAdminMySQL
http://postfix.pentachron.net/
http://wiki.dovecot.org/FrontPage?highlight=%28%28DovecotLDAPostfixAdminMySQL%29%29
http://flakshack.com/anti-spam/wiki/index.php?page=Installing+Needed+Perl+Modules
http://www.hostingsoftware.net/index.php?module=pagemaster&PAGE_user_op=view_page&PAGE_id=56
ftp://ftp.esat.net/mirrors/ftp.porcupine.org/mirrors/postfix-release/index.html
http://www.maiamailguard.com/maia/wiki/Install
http://download.fedora.redhat.com/pub/fedora/linux/core/development/source/SRPMS/

--  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

Dovecot con supporto mysql su fedora - creare il proprio rpm

DOVECOT con supporto mysql 

La stessa cosa vista x postfix la si può fare x Dovecot:
wget http://download.fedora.redhat.com/pub/fedora/linux/core/development/source/SRPMS/dovecot-1.0-2.rc17.fc7.src.rpm
rpm -Uhv dovecot-1.0-2.rc17.fc7.src.rpm
wget http://www.dovecot.org/releases/dovecot-1.0.rc22.tar.gz
cp dovecot-1.0.rc22.tar.gz /usr/src/redhat/SOURCES/
cd /usr/src/redhat/SPECS
vi dovecot.specs
cambio

%define build_postgres 0
Release .......
yum install gettext-devel
rpmbuild -ba dovecot.specs
rpmbuild -bb dovecot.specs
cd /usr/src/redhat/RPMS/i386/
rpm -Uhv ./dovecot-*
Seguo http://wiki.dovecot.org/DovecotLDAPostfixAdminMySQL

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).