Pour activer https sur Ubuntu
a2ensite default-ssl
samedi 3 décembre 2011
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.
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
mardi 1 mars 2011
Dump et load avec MySQL
How to make a dump
mysqldump -umyuser -pmypasswd mydb > dumpinteg_20110228.sql
How to load a dump
mysql -umyuser -pmypasswd mydb --default-character-set=utf8 < dumpinteg_20110228.sql
mysqldump -umyuser -pmypasswd mydb > dumpinteg_20110228.sql
How to load a dump
mysql -umyuser -pmypasswd mydb --default-character-set=utf8 < dumpinteg_20110228.sql
mardi 22 février 2011
Installer un serveur subversion sur apache sur Ubuntu
Nous allons installer simplement un serveur svn
1. Installer les packages:
apt-get install subversion libapache2-svn
ou
yum install mod_dav_svn
(yum search dav)
2. Créer le répository
mkdir /var/svn
svnadmin create /var/svn/
chown -R www-data:www-data /var/svn/
chmod -R g+ws /var/svn/
3. Créer le fichier d'authentification
htpasswd -c -m /etc/apache2/dav_svn.passwd
4. Configurer apache
<Location /svn >
DAV svn
SVNPath /var/svn
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
</Location /svn >
5.Redémarrer Apache
/etc/init.d/apache2 restart
lundi 21 février 2011
deploiement d'un fichier
Pour déployer un fichier sur archiva :
mvn deploy:deploy-file -Dfile=gwt-servlet.jar -DgroupId=com.google.gwt -DartifactId= -Dversion=1.3.0 -Dpackaging=jar -DrepositoryId=archiva.internal -Durl=http://archiva/repository/internal -DgeneratePom=true
Attention a bien fournir le proxy correct (https) et a fournir le user Id
mvn deploy:deploy-file -Dfile=gwt-servlet.jar -DgroupId=com.google.gwt -DartifactId= -Dversion=1.3.0 -Dpackaging=jar -DrepositoryId=archiva.internal -Durl=http://archiva/repository/internal -DgeneratePom=true
Attention a bien fournir le proxy correct (https) et a fournir le user Id
<proxies>
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http https</protocol>
<host>proxy.mdp</host>
<port>3128</port>
<nonProxyHosts>vmjirarh01|archiva</nonProxyHosts>
</proxy>
</proxies>
<server>
<id>archiva.internal</id>
<username>upload</username>
<password>ftj0bs-09</password>
</server>
<server>
<id>archiva.snapshots</id>
<username>upload</username>
<password>ftj0bs-09</password>
</server>
Inscription à :
Articles (Atom)