15 January 2012 by Etienne
Bonjour!
Hier j’ai réinstallé une debian sur mon DockStar, j’ai pas pensé a changer mon password par défaut avec un SSH activé …
j’ai donc réinitialisé mon mot de passe sans pouvoir me logger sur la clé USB ou est mon installation de Debian.
Pogoplug:~$ mount /dev/sda1 /mnt
## d'abord je monte ma clé USB
Pogoplug:~$ mount -o bind /dev /mnt/dev/
#je lie mes devices sur le système que je vais chrooter
Pogoplug:~$ mount -o bind /proc /mnt/proc/
#la même chose pour les procs
Pogoplug:~$ mount -o bind /sys /mnt/sys
#le sys
Pogoplug:~$ /usr/sbin/chroot /mnt
#je chroot
root@Pogoplug:/# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
#et hop...
Moralité ca m’apprendra !
Permalink | Posted in DockStar, Linux | No Comments »
4 January 2012 by Etienne
Mon frère ma récemment prété un DockStar de chez Seagate sur lequel il est possible d’installer Linux en remplaçant une partie du bootloader.
J’ai donc installé un Arch Linux (Debian Based). Comme ce DockStar dispose que de peu de ressource en mémoire vive (128 Mo) et que je veux faire tourner un maximum d’éléments je suis en train d’optimisé les packages installés, je vous donne la liste des packages que j’ai trouvé avec les équivalents “lourd”.
- Nginx en remplacement de Apache
- Jetty en remplacement de Tomcat
- DropBear en remplacement de OpenSSH
- Udhcp en remplacement de dhcpcd (j’ai des soucis avec la Freebox V6 et une éventuel IP fixe, que j’aurais préféré, tant pis je fais une réservation et puis c’est tout!)
- Vsftpd en remplacement de ftpd, pour plusieurs raisons : Je l’aime bien, les fichiers de conf sont clairs et en termes de sécurité je n’ai pas eu de retour de failles nombreuse. Voir mon tutosur un ftp encrypté en mode anonyme http://etiennedeneuve.free.fr/?p=69
J’ajouterais des éléments au fur et à mesure de mon avancé ainsi que les configurations que j’utilise ainsi que les éléments du systèmes que j’ai désactivés.
Dhcp :
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
300 root 20 o 1888 520 416 S 0.0 0.4 0:00.00 dhcpcd
0,4 % de la ram pour un Dhcp client ca fait beaucoup je trouve…
Tags: ArchLinux, DockStar, Lightweight Linux
Permalink | Posted in Linux | No Comments »
7 December 2011 by Etienne
/* Main Class */ package com.supinfo.requirements.launch; import com.supinfo.requirements.beans.*; import com.supinfo.requirements.interfaces.Vehicle; public class Launcher { /** * @param args */ public static void main(String[] args) { Vehicle v1 = new Car("blanche", "ford", 3); v1.show(); v1.accelerate(); Vehicle v2 = new Truck("Blanc", "Renault", 6); v2.show(); v2.accelerate(); } } /* Car Class */ package com.supinfo.requirements.beans; import com.supinfo.requirements.interfaces.Vehicle; public class Car implements Vehicle { private String color; private String brand; private int numberOfDoor; public Car() { } public Car(String oColor, String oBrand, int oNumberOfDoor){ this.color = oColor; this.brand = oBrand; this.numberOfDoor = oNumberOfDoor; } public String getColor() { return color; } public void setColor(String color) { this.color = color; } public String getBrand() { return brand; } public void setBrand(String brand) { this.brand = brand; } public int getNumberOfDoor() { return numberOfDoor; } public void setNumberOfDoor(int numberOfDoor) { this.numberOfDoor = numberOfDoor; } public void accelerate() { System.out.println("The Car accelerate"); } public void show() { System.out.println(this.color); System.out.println(this.brand); System.out.println(this.numberOfDoor); } } /*Truck Class */ package com.supinfo.requirements.beans; import com.supinfo.requirements.interfaces.Vehicle; public class Truck implements Vehicle{ private String color; private String brand; private int numberOfRolls; /** * @return the color */ public String getColor() { return color; } /** * @param color the color to set */ public void setColor(String color) { this.color = color; } /** * @return the brand */ public String getBrand() { return brand; } /** * @param brand the brand to set */ public void setBrand(String brand) { this.brand = brand; } /** * @return the numberOfRolls */ public int getNumberOfRolls() { return numberOfRolls; } /** * @param numberOfRolls the numberOfRolls to set */ public void setNumberOfRolls(int numberOfRolls) { this.numberOfRolls = numberOfRolls; } public Truck() { } public Truck(String oColor, String oBrand, int oNumberOfRolls){ this.brand = oBrand; this.color = oColor; this.numberOfRolls = oNumberOfRolls; } public void accelerate(){ System.out.println("The Truck accelerate"); } public void show(){ System.out.println(this.color); System.out.println(this.brand); System.out.println(this.numberOfRolls); } } /* Interface Vehicule */ package com.supinfo.requirements.interfaces; public interface Vehicle { void accelerate(); void show(); }
Tags: Java
Permalink | Posted in Developement, Java SE | No Comments »
5 December 2011 by Etienne
package com.supinfo.requirements.launch;
public class Launcher {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello World!");
int[] myIntTab = new int[10];
myIntTab[0] = 1;
myIntTab[1] = 2;
myIntTab[2] = 3;
myIntTab[3] = 4;
myIntTab[4] = 5;
myIntTab[5] = 6;
myIntTab[6] = 7;
myIntTab[7] = 8;
myIntTab[8] = 9;
myIntTab[9] = 10;
int i = 0;
System.out.println("While");
while (myIntTab.length > i) {
if (i % 2 == 0) {
System.out.println(myIntTab[i]);
}
i = i + 1;
}
i = 0;
System.out.println("do..while");
do {
if (i % 2 == 0) {
System.out.println(myIntTab[i]);
}
i = i + 1;
} while (i < 10);
System.out.println("For");
for (i = 0; i < 10; i++) {
if (i % 2 == 0) {
System.out.println(myIntTab[i]);
}
}
System.out.println("For each");
for (int tab : myIntTab) {
if (tab % 2 == 0) {
System.out.println(tab);
}
}
}
}
Tags: Devellopement, Java SE
Permalink | Posted in Developement, Java SE, Non classé | No Comments »
4 December 2011 by Etienne
Je suis devant un choix technique :
Vsphere ou Hyper V
Permalink | Posted in Non classé | No Comments »
2 November 2011 by Etienne
Installation des Vmware Tools pour Centos 6.0 sur Vmware Workstation 8.0
dans le Menu de VMware Workstations, il suffit de cliquer sur le Menu VM puis de choisir Install Vmware Tools.
lancer un shell en root et taper
[root@centos ~]# mkdir /mnt/cdrom
[root@centos ~]# mount /dev/cdrom /mnt/cdrom/
mount: block device /dev/sr0 is write-protected, mounting read-only
[root@centos ~]# cp /mnt/cdrom/
manifest.txt VMwareTools-8.8.0-471268.tar.gz
[root@centos ~]# cp /mnt/cdrom/VMwareTools-8.8.0-471268.tar.gz /root/
[root@centos ~]# tar -xf /root/VMwareTools-8.8.0-471268.tar.gz
[root@centos ~]# ll
total 58040
-rw-------. 1 root root 2058 Nov 1 17:39 anaconda-ks.cfg
-rw-r--r--. 1 root root 43095 Nov 1 17:39 install.log
-rw-r--r--. 1 root root 10915 Nov 1 17:37 install.log.syslog
-r--r--r--. 1 root root 59363249 Nov 2 10:31 VMwareTools-8.8.0-471268.tar.gz
drwxr-xr-x. 7 root root 4096 Aug 22 04:17 vmware-tools-distrib
[root@centos ~]# ./vmware-tools-distrib/
bin/ etc/ lib/
doc/ installer/ vmware-install.pl
[root@centos ~]# ./vmware-tools-distrib/vmware-install.pl
Installing VMware Tools.
In which directory do you want to install the binary files?
[/usr/bin]
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]
What is the directory that contains the init scripts?
[/etc/rc.d/init.d]
In which directory do you want to install the daemon files?
[/usr/sbin]
In which directory do you want to install the library files?
[/usr/lib/vmware-tools]
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes]
The installation of VMware Tools 8.8.0 build-471268 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".
Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]
Initializing...
Making sure services for VMware Tools are stopped.
[EXPERIMENTAL] The VMware FileSystem Sync Driver (vmsync) is a new feature that
creates backups of virtual machines. Please refer to the VMware Knowledge Base
for more details on this capability. Do you wish to enable this feature?
[no] no
Found a compatible pre-built module for vmci. Installing it...
Found a compatible pre-built module for vsock. Installing it...
The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer. Use the flag
--clobber-kernel-modules=vmxnet3 to override.
The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer. Use the flag
--clobber-kernel-modules=pvscsi to override.
The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer. Use the flag
--clobber-kernel-modules=vmmemctl to override.
The VMware Host-Guest Filesystem allows for shared folders between the host OS
and the guest OS in a Fusion or Workstation virtual environment. Do you wish
to enable this feature? [yes] yes
Found a compatible pre-built module for vmhgfs. Installing it...
Found a compatible pre-built module for vmxnet. Installing it...
!!! [EXPERIMENTAL] !!!
VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot they are not already present. By selecting yes,
you will be enabling this experimental feature. You can always disable this
feature by re-running vmware-config-tools.pl.
Would you like to enable VMware automatic kernel modules?
[yes] yes
Disabling timer-based audio scheduling in pulseaudio.
Detected X server version 1.7.7
Stopping HAL daemon: [ OK ]
Starting HAL daemon: [ OK ]
X is running fine with the new config file.
Creating a new initrd boot image for the kernel.
vmware-tools start/running
The configuration of VMware Tools 8.8.0 build-471268 for Linux for this running
kernel completed successfully.
You must restart your X session before any mouse or graphics changes take
effect.
You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
command line or by invoking "/usr/bin/vmware-toolbox" from the command line
during an X server session.
To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.
Enjoy,
--the VMware team
[root@centos ~]#/./usr/bin/vmware-user
[root@centos ~]# reboot
Un fois le reboot effectué, si vous avez besoin de monter un partage Vmware :
[root@centos ~]# mount.vmhgfs .host:/partage /mnt/hgfs
Permalink | Posted in CentOS, Linux | No Comments »
2 August 2011 by Etienne
IIS est inclus dans la solution PME de Microsoft Windows Small Business Server.
J’ai deux serveur IIS en interne, sur mon deuxieme j’ai une plateforme de Management, je voulais donc pouvoir y accéder autrement qu’avec l’IP deux points le port. En effet a termes cette plateforme fera aussi office d’HelpDesk avec le ticketing mis à disposition des clients. J’ai trouver sur iis.net un module d’url Rewriting, installable en quelque clics qui permets de changer ce que le navigateur affichera.
Pour l’installé, aller sur votre IIS et cliquez sur ce lien :
http://www.iis.net/download/URLRewrite
Permalink | Posted in IIS, Windows | No Comments »
2 August 2011 by Etienne
Bonjour!
Je travaille actuellement pour Informatique et Services à Caen. J’ai constaté que certaines machines pour les particuliers nous demandaient des heures de mises à jours, j’ai donc cherché un moyen d’aller plus vite… Wsus ? Non, ce n’est pas possible, il faut être membre de l’Active Directory… Zut…
Puis j’ai trouvé ceci :
http://www.wsusoffline.net/
Ce merveilleux outil libre, permet de télécharger toutes les mises à jours Microsoft et de crée un .exe qui va installé toutes les mises à jours en fonction de ce qui est necessaire, le tout en mode silencieux s’il vous plait. J’ai mis 24h à tout téléchargé entre les mises à jours Windows, Office etc. Mais quel gain de temps après…
Permalink | Posted in Windows | No Comments »
1 August 2011 by Etienne
Exchange 2007 :
De temps en temps un nettoyage des bases de données d’Exchange est nécessaire, voici comment je procède :
[PS] C:\Windows\system32>Dismount-Database "Public Folder Database"
Confirmer
Êtes-vous sûr de vouloir effectuer cette action ?
Démontage de la base de données « SERVEURIS.i-s.local\Public Folder Database ».
[O] Oui [T] Oui pour tout [N] Non [U] Non pour tout [S] Suspendre
[?] Aide(la valeur par défaut est « O ») : O
[PS] C:\Windows\system32>isinteg.exe -s serveuris -test Alltests0% complete.
Databases for server serveuris:
Only databases marked as Offline can be checked
Index Status Database-Name
Storage Group Name: First Storage Group
1 Offline Mailbox Database
Storage Group Name: Second Storage Group
2 Offline Public Folder Database
Enter a number to select a database or press Return to exit.
2
You have selected Second Storage Group / Public Folder Database.
Continue?(Y/N)Y
Test Search Folder Links result: 0 error(s); 0 warning(s); 0 fix(es); 0 row(s);
time: 0h:0m:0s
Test Global result: 0 error(s); 0 warning(s); 0 fix(es); 1 row(s); time: 0h:0m:0s
Test Delivered To result: 0 error(s); 0 warning(s); 0 fix(es); 0 row(s); time: 0h:0m:0s
Test Repl Schedule result: 0 error(s); 0 warning(s); 0 fix(es); 0 row(s); time:0h:0m:0s
Test Timed Events result: 0 error(s); 0 warning(s); 0 fix(es); 0 row(s); time: 0h:0m:0s
Test reference table construction result: 0 error(s); 0 warning(s); 0 fix(es); 0 row(s); time: 0h:0m:1s
Test Folder result: 0 error(s); 16 warning(s); 0 fix(es); 100 row(s); time: 0h:0m:0s
Test Deleted Messages result: 0 error(s); 0 warning(s); 0 fix(es); 0 row(s); time: 0h:0m:0s
Test Message result: 0 error(s); 0 warning(s); 0 fix(es); 660 row(s); time: 0h:0m:0s
Test Attachment result: 0 error(s); 0 warning(s); 0 fix(es); 10208 row(s); time: 0h:0m:0s
Test Per-User Read result: 0 error(s); 0 warning(s); 0 fix(es); 0 row(s); time:0h:0m:0s
Test Replication result: 0 error(s); 0 warning(s); 0 fix(es); 4 row(s); time: 0h:0m:0s
Test Message Tombstone result: 0 error(s); 0 warning(s); 0 fix(es); 6 row(s); time: 0h:0m:0s
Test Folder Tombstone result: 0 error(s); 0 warning(s); 0 fix(es); 0 row(s); time: 0h:0m:0s
Test reference count verification result: 0 error(s); 0 warning(s); 0 fix(es); 0 row(s); time: 0h:0m:0s
[PS] C:\Windows\system32>/Dumpster Count) of total 16 tests; 100% complete.
[PS] C:\Windows\system32>eseutil.exe /G 'D:\Program Files\Microsoft\Exchange Server\Mailbox\Second Storage Group\Public Folder Database.edb'
Extensible Storage Engine Utilities for Microsoft(R) Exchange Server
Version 08.03
Copyright (C) Microsoft Corporation. All Rights Reserved.
Initiating INTEGRITY mode...
Database: D:\Program Files\Microsoft\Exchange Server\Mailbox\Second Storage Group\Public Folder Database.edb
Temp. Database: TEMPINTEG15624.EDB
Checking database integrity.
Scanning Status (% complete)
0 10 20 30 40 50 60 70 80 90 100
|----|----|----|----|----|----|----|----|----|----|
...................................................
Integrity check successful.
Operation completed successfully in 331.783 seconds.
[PS] C:\Windows\system32>eseutil.exe /D 'D:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group\Mailbox Database.edb'
Extensible Storage Engine Utilities for Microsoft(R) Exchange Server
Version 08.03
Copyright (C) Microsoft Corporation. All Rights Reserved.
Initiating DEFRAGMENTATION mode...
Database: D:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group\Mailbox Database.edb
Defragmentation Status (% complete)
0 10 20 30 40 50 60 70 80 90 100
|----|----|----|----|----|----|----|----|----|----|
...................................................
Moving 'TEMPDFRG15392.EDB' to 'D:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group\Mailbox Database.edb'...
File Copy Status (% complete)
0 10 20 30 40 50 60 70 80 90 100
|----|----|----|----|----|----|----|----|----|----|
...................................................
Note:
It is recommended that you immediately perform a full backup
of this database. If you restore a backup made before the
defragmentation, the database will be rolled back to the state
it was in at the time of that backup.
Operation completed successfully in 944.336 seconds.
[PS] C:\Windows\system32>Mount-Database "Mailbox Database"
[PS] C:\Windows\system32>Mount-Database "Public Folder Database"
Permalink | Posted in Exchange 2007, Windows | No Comments »
30 July 2011 by Etienne
Bonjour,
J’ai décidé après un long moment d’absence de me remettre à l’écriture de ce site.
Je vais réaliser des test sur Windows Phone 7, Mac os X lion, Windows Small Buisnness Server 2011, Office 365….
A bientôt
Permalink | Posted in Divers | No Comments »