vendredi 7 novembre 2014

Ubuntu 14.04 Lts - Aptana - ajouter un projet sftp, ftp ...

Voici  comment ajouter un dossier partagé avec une connection ftp, sftp :

Window -> Show View -> Other -> Studio/Remote
(Drag this tabbed window wherever)
Click the add FTP button (see below); #profit
Add New FTP Site...

lundi 22 septembre 2014

Ubuntu serveur 14.04 LTS - installation Tvheadend


Sur ubuntu server il n'y a pas la possibilité d'ajouter des ppa donc pour pouvoir le faire :

sudo apt-get install software-properties-common python-software-properties

source : http://lifeonubuntu.com/ubuntu-missing-add-apt-repository-command/

Suivre :

sudo apt install curl
curl http://apt.tvheadend.org/repo.gpg.key | sudo apt-key add -
sudo apt-add-repository -r http://apt.tvheadend.org/stable
sudo apt-add-repository http://apt.tvheadend.org/unstable
sudo apt update
sudo apt install tvheadend


ensuite connexion à l'interface web via :

http://ipserveur:9981/

Have Xbmc Powar !! 


dans le cas ou le programme ne veut pas démamrer probléme de droits d'écriture visible dans syslog

il faut lancer la commande suivante :

sudo chown -R hts home/hts/
 




 

dimanche 13 avril 2014

Linux Ubuntu - Installation DVB-S2 PCI Cards - TeVii S464 -

Installation d'une carte DVB-s2 sur un serveur UBUNTU 12.04 LTS



> wget http://www.tevii.com/tevii_ds3000.tar.gz
> tar xfvz tevii_ds3000.tar.gz
> cp dvb-fe-ds3000.fw /lib/firmware


Source : http://www.linuxtv.org/wiki/index.php/TeVii_S464

samedi 5 avril 2014

Linux - Exécuter une application en fond de tache

Bonjour ,
 
Quand on execute certaines commandes , scripts bash , ou processus dans un terminal le script garde la main ,
et quand on quitte le terminal cela arrete le script .
Pour lancer un script ou autre en tache de fond (background) , il suffit de rajouter le symbole & a la suite .
ex :
#:~> lacommande &
 
Dans certains cas le systeme envoie le signal SIGHUP aux taches de fond et la commande s'arrete malgres tout quand on quitte le terminal.
Dans ce cas il faut executer la commande en rajoutant nohup devant .
ex :
#:~> nohup lacommande & 


source : http://le.9.over-blog.com/article-lancer-une-commande-en-tache-de-fond-background-sous-linux-53228723.html

jeudi 3 avril 2014

Apache 2 - améliorer l'affichage des fchiers H5Aai

 Installation de h5ai :

prérequis :tester sur une ubuntu 140.4 lts le 14/02/2015
 
 
sudo apt-get install imagemagick  tar zip libav-tools



c'est une interface plutot jolie pour les pages fichier en accés http :
voir la demo ici --> Demo H5ai

procédure install on ubuntu server 14.04 lts :

cd /var/www/html
sudo wget http://release.larsjung.de/h5ai/h5ai-0.26.1.zip
sudo unzip h5ai-0.26.1.zip
sudo nano /etc/apache2/sites-available/000-default.conf



ajouter en début de fichier :

DirectoryIndex  index.html  index.php  /_h5ai/server/php/index.php

les bon droits :
sudo chown www-data:root cache/ -R
sudo chmod 750 cache/ -R
sudo service apache2 restart


modifier le mot de passe de la parti admin :


Allé sur ce site pour généré un mot de passe :
http://www.sha1.cz/

et ajouter à l aligne du fichier :
/var/www/html/_h5ai/server/php/index.php




vérifier que tout est ok sur la config _h5AI :
http://192.168.1.9/_h5ai/

si tout est vert c'est ok !

mardi 1 avril 2014

Symfony 2 - Installation

Installation prérequis :

installer Mysql, Apache et plugin php nécessaire :

>sudo apt-get install php5-intl php-apc curl


Télécharger Symfony2 : 

>cd /var/www>sudo curl -s http://getcomposer.org/installer | php

>php composer.phar create-project symfony/framework-standard-edition [path]/ 2.4.2


pour pouvoir accéder depuis un pc distant via son navigateur : 
> sudo nano /var/www/Symfony/web/config.php

et modifier :

if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
    '127.0.0.1',
 '192.168.1.180',
    '::1',
))) {
    header('HTTP/1.0 403 Forbidden');
    exit('This script is only accessible from localhost.');
}
 
mettre les droits qu'il faut sur les dossiers suivant :

>sudo chmod 777 -R Symfony/app/cache/
>sudo chmod 777 -R Symfony/app/logs/

plus qu'a ce connecter :

http://192.168.1.98/symfony/web/config.php

samedi 1 mars 2014

Apache2 - personaliser la page d'erreur d'un serveur

 
 
 
sudo nano /etc/apache2/sites-available/000-default.conf 
 
 
ajouter : 
 
 Alias /error_html/ "/var/www/error_html/"
<Directory "/var/www/error_html">
    AllowOverride None
    Options IncludesNoExec
    AddOutputFilter Includes html
    AddHandler type-map var
    Order allow,deny
    Allow from all
    LanguagePriority en cs de es fr it nl sv pt-br ro
    ForceLanguagePriority Prefer Fallback
</Directory>
   ErrorDocument 404 /error_html/HTTP_NOT_FOUND.html



créer les dossiers qu'il faut : 
sudo mkdir /var/www/error_html/

 
créer le fichier d'erreur personaliser : 
sudo nano HTTP_NOT_FOUND.html

ajouter :

<p>Page d'erreur personnaliser</p>



et redemarrer apache :
sudo service apache2 restart
 
 
et lorsqu'on arrive sur une page du serveur nous avons notre page personnaliser qui s'affiche :)
 
 
 
 


vendredi 28 février 2014

mardi 18 février 2014

Ubuntu 13.10 - Install Aptana Studio -

1> Prérequis :
sudo apt-get install libwebkitgtk-1.0-0 git-core
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
2> Aptana :

Download -> http://www.aptana.org/products/studio3/download
sudo unzip [aptana].zip -d /opt

3> ajouter le raccourci :

Créez le fichier /usr/share/applications/aptana.desktop et entrez-y les lignes suivantes :
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Aptana Studio 3
GenericName=Integrated Development Environment
Comment=Aptana Strudio 3 Integrated Development Environment
Exec=/opt/Aptana_Studio_3/AptanaStudio3 %F
TryExec=/opt/Aptana_Studio_3/AptanaStudio3
Icon=/opt/Aptana_Studio_3/icon.xpm
StartupNotify=true
StartupWMClass="Aptana Studio 3"
Terminal=false
Type=Application
MimeType=text/xml;application/xhtml+xml;application/x-javascript;application/x-php;application/x-java;text/x-javascript;text/html;text/plain
Categories=GNOME;Development;IDE;


Comment Installer un Serveur Ark Survival Ascend sur Linux avec Docker

 Les fans d'Ark Survival Ascend qui utilisent Linux peuvent désormais se réjouir, car il existe une solution pour déployer un serveur Ar...