jeudi 6 septembre 2012

Autoriser le déploiement sur un repository Nexus



Pour déployer des artifact sur un repository, nous pouvons passer par l'interface utilisateur de nexus, mais il faut avoir les droits d'administration. Il est également possible de deployer un artifact en tapant la commande suivante.

mvn deploy:deploy-file -Dfile=C:\data\monapp\monartifact.jar -Durl=http://monnexus.com/nexus/content/repositories/monrepository/ -DpomFile=C:\data\monapp\monartifact.pom -DrepositoryId=monserverid

Dans notre fichier settings.xml, les lignes suivantes doivent être présentes.


      monapp-repository
      monusernexus
      monpwdnexus



La configuration des droits pour un utilisateur de NEXUS n'est pas triviale. Ces quelques lignes vous aideront surement.

Admettons que vous ayez un repository maven2 nommé monrepository hébergé par nexus



Créer d'abord un utilisateur monuser



Puis créer un privileges pour le repository monrepository ayant les droit create/update/delete


Vous voyez que quatre lignes de privileges ont été créées.


Il reste à les assigner à un role avec le privilege. Pour cela nous créons un rôle et nous lui donnons les quatre privileges.



jeudi 23 août 2012

Login Ubuntu with no password for children like in windows

If you wish to use Ubuntu 12.04 and let a user open an session with a simple button click  (without being prompted for a password). Just type the following command in a terminal window :
sudo passwd -d myuser (where myuser is the user you want to grant this right) 

The command clear the password in /etc/shadow file for the specified user. You can then open a gnome session without any password.
Simple isn't it ?

samedi 3 décembre 2011

Activer HTTPS de httpd sur ubuntu

Pour activer https sur Ubuntu

a2ensite default-ssl

vendredi 2 décembre 2011

Update Grub in Ubuntu

In order to start have your windows first in your Ubuntu 11.10, just change the order of the files in /etc/grub.d by changing the number starting each entry.

By default, the directory contains the files : 00_header, 01_linux, 02_linux_xen, 03_os_probe etc.
If you change the file names so that numbers looks like 00_header, 01_os_probe, 02_linux, 03_linux_xen

And then run grub-update (to update /boot/grub/grub.cfg) in command line. Windows will launch first at startup.

mercredi 26 octobre 2011

Aptitude sur Ubuntu

Installation a travers un proxy


vi /etc/apt/apt.conf.d/05aptitude

Ajouter la ligne :

Acquire::http::Proxy "http://myusername:mypasswd@myproxy:3128";

Rechercher un package à partir de son nom


root@ubuntu:/home/clement# apt-cache search jetty
libjetty-extra - Java servlet engine and webserver -- extra libraries
libjetty-extra-java - Java servlet engine and webserver -- extra libraries
libjetty-java - Java servlet engine and webserver -- core libraries
libjetty-java-doc - Javadoc for the Jetty API
jetty - Java servlet engine and webserver
liblogback-java - flexible logging library for Java
liblogback-java-doc - flexible logging library for Java - documentation
liboauth-signpost-java - simple OAuth message signing for Java
libspring-security-2.0-java-doc - documentation for Spring Security 2.0
libspring-security-acl-2.0-java - modular Java/J2EE application security framework - ACL
libspring-security-core-2.0-java - modular Java/J2EE application security framework - Core
libspring-security-ntlm-2.0-java - modular Java/J2EE application security framework - NTLM
libspring-security-portlet-2.0-java - modular Java/J2EE application security framework - Portlet
libspring-security-taglibs-2.0-java - modular Java/J2EE application security framework - Taglibs
solr-common - enterprise search server based on Lucene - common files
solr-jetty - enterprise search server based on Lucene - Jetty integration