Postagens

Mostrando postagens de Dezembro, 2017

Como formatar um pen drive no Linux

Primeiro vamos identificar nosso pendrive com o comando mount A saida do comando sera portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000) tmpfs on /run/snapd/ns type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1626292k,mode=755) nsfs on /run/snapd/ns/whatsdesk.mnt type nsfs (rw) /dev/sdb1 on /media/junior/538B-BA22 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) Assim que identificamos (no meu caso foi o /dev/sdb1) iremos desmontar o pendrive sudo umount /dev/sdb1 Para o sistema de arquivos vFAT (FAT32) sudo mkfs.vfat /dev/sdc1 Para sistema de arquivos NTFS sudo mkfs.ntfs /dev/sdc1 Para o sistema de arquivos EXT4 sudo mkfs.ext4 /dev/sdc1 Agora vamos criar nosso pendrive com um vmware (como exemplo) sudo dd if=/home/junior/Downloads/isos/vmware7.iso of=/dev/sdb status=progress && sync

Instalacao Openfire com MySQL Debian 9.3

Pra fechar o ano, vou postar a  Instalação Openfire com MySQL Debian 9.3 # Projeto https://www.igniterealtime.org/projects/openfire/documentation.jsp # Database Guide http://download.igniterealtime.org/openfire/docs/latest/documentation/database.html # Cenario IP_LAN: 192.168.254.200 HOST  : openfire DOMAIN: dominio.local # Apache && OpenSSL apt install apache2 openssl # MySQL echo -e "deb http://repo.mysql.com/apt/debian/ stretch mysql-5.7\ndeb-src http://repo.mysql.com/apt/debian/ stretch mysql-5.7" > /etc/apt/sources.list.d/mysql.list wget -O /tmp/RPM-GPG-KEY-mysql https://repo.mysql.com/RPM-GPG-KEY-mysql apt-key add /tmp/RPM-GPG-KEY-mysql apt update apt install mysql-server # PHP apt install php php-mysql # Java apt install openjdk-8-jre # CREATE database mysql -u root -p CREATE DATABASE openfire; GRANT ALL PRIVILEGES ON openfire.* TO 'openfire'@'localhost' IDENTIFIED BY 'sua_senha'; FLUSH PRIVILEGES; # Download Ultima versao cd /opt ;