Categoria: Unix

  • azioni mappa di server oltre sshfs

    azioni mappa di server oltre sshfs

    Installation on Debian apt-get install sshfs mkdir /media/xxx ssh-keygen ssh-copy-id -i ~/.ssh/id_rsa.pub username@xxx.com vi /etc/rc.local (questo file verrà eseguito dopo rete è abilitata) sshfs -o allow_other xxx @ xxx:/var/www/ /media/xxx sshfs -o allow_other xxx@xxx:/var / www // media / xxx1

  • Server Linux Backup

    In primo luogo è necessario avviare un sistema di soccorso-Disk -> LINK fdisk -l mkdir /mnt/sda1 mount /dev/sda1 /mnt/sda1/ cd /mnt/sda1 tar -cvpf backups/fullbackup.tardirectory=/exclude=procexclude=sysexclude=dev/ptsexclude=backups .  

  • Creare una Public Key Infrastructure Utilizzo degli script di facile rsa

    The first step when setting up OpenVPN is to create a Public Key Infrastructure (PKI). Il PKI è costituito da: A public master Certificate Authority (CA) certificato e una chiave privata. Un certificato pubblico separato e coppia di chiavi private (appresso un certificato) per ogni server e ogni cliente. To facilitate the certificate creation

  • login su chiave SSH

    login su chiave SSH

    Debian ssh-keygen ssh-copy-id -i ~/.ssh/id_rsa.pub username@servername OSX ssh-keygen ssh-add ~/.ssh/id_rsa cat ~/.ssh/id_rsa.pub | ssh servername -l username ‘mkdir .ssh ; gatto >>.ssh/authorized_keysbackup RSA key over rsync rsync -avzdeletesparse ~/.ssh/id_rsa.pub /target/target

  • Generatore di cluster SQL

    Generatore di cluster SQL

    hier finden sie eine sehr gute seine mit script für die sql cluster Generierung http://www.severalnines.com/

  • Configurare Sendmail come smart host

    Smart host è molto utile se si è in dial-up di rete o, talvolta, un host trova la posta che è in grado di fornire direttamente all'host remoto desiderato. In rete di grandi dimensioni, è una buona idea avere un server che agisce singolo host / posta come MTA. Smart hosts are usually used when all other methods

  • Shell script di backup – SMB di Windows / Linux Server

    Shell script di backup – SMB di Windows / Linux Server

    prepare copy all files in one folder modify backup-start.sh with your path and configs make a btrfs partition create a subvolume for the backup path create a cronjob start backup-start.sh daily backup-start.sh weekly backup modes smb sshs sshnosymlink sshsudoftp backup-start.sh #!/bin / bash # check the backup script if its running and if yes then calc for a snapshot

  • sysprep per Mac OSX

    Il settore IT sta cambiando. Dove molti di noi storicamente affrontato quasi esclusivamente con ambienti basati su Windows, ora stiamo vedendo ambienti con sempre più Mac. Il che significa, come amministratori di sistema ora abbiamo bisogno di trovare il modo per ottimizzare l'imaging Mac come facciamo noi con Windows. Anche se i Mac non sono così schizzinosi quando…

  • Copiare i file tramite ssh e rsync

    per copiare i file su SSH e rsync, rende la vita molto più facile. Man muss nicht keine verzeichnisse mappen Man muss nicht meher alle Dateien kopieren, sondern nur ein diff deswegen habe ich eine Codeline geschrieben, in welcher ein solver kopiervorgang beschrieben ist rsync -chavzPstats username@remote-server:/path/to/the/folder/ /local/path/

  • controllare i file più grandi di 2GB

    Ascolta ho un codeline intresting per trovare tutti i file più grande poi 2 GB for linux find /var/ -type f -size +20000k -exec ls -lh {} ; 2> /dev / null | awk ‘{ print $ NF “: ” $5 }’ | -nrk nero 2,2   si -a / var | -r sort -n | -n testa 10  …