Archive

Archives pour la catégorie ‘Logiciel’

Réplication MySQL Master-Slave et Master-Master

21/05/2021 Comments off

Source: ResponsiveMind

replicationLa réplication d’un base de données permet de disposer du même jeu de données à tout moment sur deux serveurs ou plus. MySQL permet d’automatiser la recopie des données entre une machine principale et plusieurs secondaires de façon unidirectionnelle (réplication master-slave) ou de façon bidirectionnelle entre 2 serveurs (réplication master-master). Dans ce tutoriel, nous allons mettre en place ces deux types de systèmes, le second étant une extension du premier.

 

Si vous n’avez pas lu mon article à propos de la création d’une architecture serveurs distribuée, je vous invite à le faire, et spécialement mon exemple de mise en en oeuvre avec 2 serveurs, vous comprendrez peut-être mieux l’utilité d’une configuration de ce type. Pour les plus pressées, sachez simplement que je proposais de créer 2 serveurs web accueillant chacun sa propre base de données, les données étant strictement identiques et chaque insertion ou modification de données étant immédiatement recopiée. Lire la suite…

Installation de Plexmediaserver

17/05/2021 Comments off

Installation de Plexmediaserver

L’installation de Plexmediaserver se fera en deux parties (console et sur Plexmediaserver).

1er Partie :

sudo apt-get install curl
echo "deb http://shell.ninthgate.se/packages/debian squeeze main" | sudo tee -a /etc/apt/sources.list.d/plexmediaserver.list
sudo curl http://shell.ninthgate.se/packages/shell-ninthgate-se-keyring.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install plexmediaserver

Plexmediaserver est installé normalement .

Code Init qui peuvent être utile :

Start

service plexmediaserver start

Stop

service plexmediaserver stop

Restart

service plexmediaserver restart

Status

service plexmediaserver status

Résumons un peu la situation
Nous avons maintenant accès à http:// IPSERVEUR:32400/web/ et nous pouvons nous connecter mais le serveur ne dis que nous n’avons pas les permissions !

Remarque : Pour se connecter , il faut un compte Plex (aller sur plex.tv et inscrivez vous c’est gratuit)

2e Partie :

Pour pouvoir activer Plexmediaserver, nous devons nous connecter à l’URL (http:// IPSERVEUR:32400/web/) local comme si nous étions le serveur. Et pour ça , rien de plus facile , nous allons créer un tunnel SSH.

ssh -L 32400:127.0.0.1:32400 root@IPSERVEUR

De là, aller sur votre navigateur web (chrome, firefox,…) à l’adresse suivante :

127.0.0.1:32400/web/

Vous accéderez en local et pourrez activer Plexmediaserver.

140125062519321314

Une fois installé , vous arrêtons le Tunnel SSH avec cette ligne code suivante :

quit

Vous pouvez accéder maintenant à cette URL :

http://IPSERVEUR:32400/web/
Categories: Logiciel, Tutoriel Tags:

irssi : Startup HOWTO

07/05/2021 Comments off

To new Irssi users (not to new IRC users ..)

Copyright (c) 2000-2002 by Timo Sirainen, release under GNU FDL 1.1 license.

Index with some FAQ questions that are answered in the chapter:

  1. For all the lazy people
    • This window management is just weird, I want it exactly like ircII
  2. Basic user interface usage
    • Split windows work in weird way
    • How can I easily switch between windows?
    • But alt-1 etc. don’t work!
  3. Server and channel automation
    • How do I automatically connect to servers at startup?
    • How do I automatically join to channels at startup?
    • How do I automatically send commands to server at connect?
  4. Setting up windows and automatically restoring them at startup
  5. Status and msgs windows & message levels
    • I want /WHOIS to print reply to current window
    • I want all messages to go to one window, not create new windows
  6. How support for multiple servers works in irssi
    • I connected to some server that doesn’t respond and now irssi keeps trying to reconnect to it again and again, how can I stop it??
    • I want to have own status and/or msgs window for each servers
  7. /LASTLOG and jumping around in scrollback
    • How can I save all texts in a window to file?
  8. Logging
  9. Changing keyboard bindings
    • How do I make F1 key do something?
  10. Proxies and IRC bouncers
    • What’s this irssi-proxy?
  11. Irssi’s settings
  12. Statusbar
    • I loaded a statusbar script but it’s not visible anywhere!

Lire la suite…

Categories: Logiciel, Réseau, Tutoriel Tags:

TransmissionHowTo

02/05/2021 Comments off

Transmission Command Line

The BitTorrent protocol can be used to reduce the server and network impact of distributing large files. Rather than downloading a file from a single source server, the BitTorrent protocol allows users to join a « swarm » of hosts to download and upload from each other simultaneously.

Transmission is designed for easy, powerful use. We’ve set the defaults to Just Work and it only takes a few clicks to configure advanced features like watch directories, bad peer blocklists, and the web interface. When Ubuntu chose Transmission as its default BitTorrent client, one of the most-cited reasons was its easy learning curve.

This How-to focuses on CLI (Command Line Interface) and the Web interface

Transmission has been configured to work out of the box on a desktop. Because this how-to is designed for Ubuntu server we need to manually allow remote access. Lire la suite…

Categories: Logiciel, Tutoriel Tags:

Protect WordPress sites with .htaccess

28/04/2021 Comments off

Plug-ins

Our job as WordPress users (aside from contributing to the WordPress community) is keeping our installs safe from people we do not want to access our sites. There are numerous plug-ins to help shore up our WordPress defenses such as Login LockDown which records IP address and blocks them after a set number of login attempts which helps against brute force attacks. Lire la suite…