dns mds
----------8<------------------8<----------
vi /etc/apt/source.list
deb http://mds.mandriva.org/pub/mds/debian squeeze main
apt-get update
apt-get install mmc-agent mmc-web-base mmc-web-network python-mmc-network slapd ldap-utils
gunzip -d /usr/share/doc/python-mmc-base/contrib/ldap/dnszone.schema.gz
cp /usr/share/doc/python-mmc-base/contrib/ldap/dnszone.schema /etc/ldap/schema/
cp /usr/share/doc/python-mmc-base/contrib/ldap/mmc.schema /etc/ldap/schema/
vi /etc/ldap/slapd.conf
include /etc/ldap/schema/dnszone.schema
include /etc/ldap/schema/mmc.schema
slaptest f /etc/ldap/slapd.conf -F /etc/ldap/slapd.d/
chown openldap:openldap /etc/ldap/schema/ -R
chown openldap:openldap /etc/ldap/slapd.d/ -R
service slapd restart
vim /etc/mmc/plugins/network.ini
----------8<------------------8<----------
root@DDNS-PDC-LDAP:/etc/mmc/plugins# grep -v "^#" /etc/mmc/plugins/network.ini
[main]
disable = 0
[dhcp]
dn = ou=DHCP, %(baseDN)s
pidfile = /var/run/dhcpd.pid
init = /etc/init.d/dhcp3-server
init = /etc/init.d/isc-dhcp-server
logfile = /var/log/syslog
leases = /var/lib/dhcp3/dhcpd.leases
[dns]
dn = ou=DNS, %(baseDN)s
pidfile = /var/run/bind/run/named.pid
init = /etc/init.d/bind9
logfile = /var/log/syslog
bindroot = /etc/bind/
bindgroup = bind
----------8<------------------8<----------
grep -v "^#" /etc/default/mmc-agent
ENABLE=yes
----------8<------------------8<----------
apt-get install bind9 resolvconf
mkdir /home/archives
>/var/run/named/named.options
vi /etc/bind/named.conf
installation du serveur dhcpd avec l option ldap
apt-get install isc-dhcp-server-ldap dhcp3-server
integrer le schema dhcp dans la configuration de ldap
cp
vi /etc/ldap/slapd.conf
----------8<------------------8<----------
include /etc/ldap/schema/dhcp.schema
----------8<------------------8<----------
compiler la configuration
slaptest -f /etc/ldap/slapd.conf -F /etc/ldap/slapd.d/
remettre les permissions sur la configuration :
chown openldap:openldap /etc/ldap/schema/ -R
chown openldap:openldap /etc/ldap/slapd.d/ -R
edition de la configuration dhcpd
vi /etc/dhcp/dhcpd.conf
----------8<------------------8<----------
ldap-server "localhost";
ldap-port 389;
ldap-username "cn=dhcpmanager,dc=home,dc=lan";
ldap-password "dhcpmanager";
ldap-base-dn "ou=DHCP,dc=home,dc=lan";
ldap-method dynamic;
ldap-debug-file "/var/log/dhcp-ldap-startup.log";
ldap-ssl off;
----------8<------------------8<----------
mettre les permissions pour le service dhcpd sur le fichier de log
chown dhcpd:dhcpd /var/log/dhcp-ldap-startup.log
crypte le mot de passe pour dhcpmanager :
----------8<------------------8<----------
slappasswd
New password:
Re-enter new password:
{SSHA}+TuFFrJfPomrmsbbuIhsc8lbh8ULGetd
----------8<------------------8<----------
copier le mot de passe encoder et le mettre dans le champ userpassword si dessou.
puis importer dans phpldapadmin
----------8<------------------8<----------
dn: ou=DHCP,dc=home,dc=lan
objectclass: organizationalunit
ou: DHCP
description: Serveur dhcp
dn: cn=dhcpmanager,dc=home,dc=lan
objectclass: top
objectclass: person
cn: dhcpmanager
sn: dhcpmanager
je gkey has ext2 partition with bsd.rd image for network install
http://www.openbsd.org/loongson.html
download the boot image (kernel + initrd)
ftp://ftp.fr.openbsd.org/pub/OpenBSD/4.7/loongson/bsd.rd
put the file on ext2 fs on the key
load the installer by the way:
load /dev/fs/ext2@usbg0/bsd.rd
the install use all the gkey
when install is finiched reboot with bios option:
load /dev/fs/ext2@usbg0/boot/boot
and
initrd /dev/fs/ext2@usbg0/boot/bsd
for initialised the bios use
set al /dev/fs/ext2@usbg0/boot/boot
and
set rd /dev/fs/ext2@usbg0/boot/bsd
activate Fn+F11 key for WebCam snapshot on debian-mipsel
by jean-baptiste Masurel August 16, 2009 - 19:39
adding uvccapture package
apt-get install uvccapture
Modify .Xmodmap and add new XF86Launch3 with xev keycode for Fn+F11
!Fn F11
keycode 159 = XF86Launch3
and in .config/openbox/lxde-rc.xml
adding into keyboard section
<!-- snapshot controle -->
<keybind key="XF86Launch3">
<action name="Execute">
<execute>.config/openbox/WebCam-Snapshot.sh</execute>
</action>
</keybind>
</keyboard>
add script to a file :.config/openbox/WebCam-Snapshot.sh
#!/bin/bash
#
/usr/bin/uvccapture -q100 -o/home/user1/snap_`/bin/date +%Y%m%d-%H%M%S`.jpg
dont forget the right
chmod u+x .config/openbox/WebCam-Snapshot.sh
Log off and log on to apply
activate Fn+F1 key for Xwindow screenshot on debian-mipsel
by jean-baptiste Masurel August 15, 2009 - 16:15
like command Fn+F2 wifi
adding imagemagic package
apt-get install imagemagick
modify .Xmodmap for adding XF86Launch2
!Fn F1
keycode 187 = XF86Launch2
and in .config/openbox/lxde-rc.xml
adding into keyboard section
<!-- snapshot controle -->
<keybind key="XF86Launch2">
<action name="Execute">
<execute>.config/openbox/Snapshot.sh</execute>
</action>
</keybind>
</keyboard>
edit the file .config/openbox/Snapshot.sh
#!/bin/bash
/usr/bin/import -window root /home/user1/screenshot-`/bin/date +%Y%m%d-%H%M%S`.png
log off and log on to take effect
Synchro Palm T|X with gdium on debian-mipsel
by jean-baptiste Masurel August 15, 2009 - 15:35
I 've installed jpilot and pilot-link
apt-get install jpilot pilot-link
I've adding module visor to /etc/modules
echo visor >>/etc/modules
I launch jpilot and add usb: to preferance in serial port:
I add the dialout group to my user
gpasswd -a user1 dialout
log off and log on user1 to apply the changes
i plug the usb cable
i launch update in jpilot and after one second i push the sync button on the palm.
and it sync .
Activate Fn+F2 key for wifi on debian-mipsel
by jean-baptiste Masurel August 05, 2009 - 13:53
first step : .Xmodmap : finding keycode with xev command
!Fn F2
keycode 194 = XF86Launch0
second step: .config/openbox/lxde-rc.xml
into <keyboard> section adding :
<!-- Wifi controle -->
<keybind key="XF86Launch0">
<action name="Execute">
<execute>/home/user1/.config/openbox/wifi.sh</execute>
</action>
</keybind>
</keyboard>
third step making small bash script for on/off into : /home/user1/.config/openbox/wifi.sh
#!/bin/bash
#
RT61PCI=`lsmod |grep rt61pci|cut -d" " -f1|head -1`
if [ "$RT61PCI" = "rt61pci" ] ; then
sudo /sbin/modprobe -r rt61pci
else
sudo /sbin/modprobe rt61pci
fi
fourth step : visudo for adding user right privilege for modprobe
user1 ALL=NOPASSWD:/sbin/modprobe -r rt61pci,/sbin/modprobe rt61pci
last step restart Lxde via log off and logon
and try Fn+F2 and verify via :
lsmod |grep rt61pci
Se connecter en 3g/GPRS via bluetooth et orange (3G connexion via bluetooth)
by jean-baptiste Masurel June 29, 2009 - 17:32
Voir ce site tres clair (view this website is ver clear but in french):
http://libercad-eeepc.blogspot.com/2008/01/se-connecter-en-3ggprs-via-bl...
par contre si a la connection le pair bluetooth ne marche pas pour associer le gdium et le telephone
(the gdium dont find the phone)
au lancement de la commande : "pon gprs" (ajouter votre utilisateur au groupe dips pour qu il puisse lancer la commande pon gprs) avec le message suivant dans /var/log/syslog:
(add your user in group dips for lauching command "pon gprs" (view the messages in /var/log/syslog))
Failed to open /dev/rfcomm0 : Connection refused
faire la commande (do the command ):
hcitool hci0 piscan
et faire la recherche de periferique via le gsm
(force the phone to find the gdium)
pour orange le gprs-chat est comme ceci:
(file gprs-chat for ORANGE provider)
TIMEOUT 10
ECHO ON
ABORT '\nABORT\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' \rAT
TIMEOUT 15
OK ATE1
OK 'AT+cgdcont=1,"IP","orange"'
OK ATD*99#
CONNECT