0% found this document useful (0 votes)
62 views3 pages

Instalacao Linux

This document provides instructions for various tasks related to installing and configuring software on a Linux system. It includes commands for updating packages, restarting Linux, installing desktop tools, networking packages, programming languages, databases, and virtualization software. It also provides steps for configuring services like MySQL and managing virtual machines.

Uploaded by

Jonatas Oliveira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views3 pages

Instalacao Linux

This document provides instructions for various tasks related to installing and configuring software on a Linux system. It includes commands for updating packages, restarting Linux, installing desktop tools, networking packages, programming languages, databases, and virtualization software. It also provides steps for configuring services like MySQL and managing virtual machines.

Uploaded by

Jonatas Oliveira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

# mostra versão sistema

lsb_release -a

# update and upgrade


sudo apt update && sudo apt upgrade -y

# reiniciar gnu/linux travado


alt + printscreen + reisub (digitar)

# centralizar novas telas


sudo apt install gnome-tweaks

# utilizar headset
sudo apt install pavucontrol

# instalar pacotes de rede


sudo apt install net-tools

# instalar git
sudo apt install git

# verificar versão do pacote no repositorio


apt show nome-pacote

# instalar pacote .deb


sudo apt install ./nome-pacote

# instalar nodejs
sudo snap install node --classic --channel=16

# snap-store error
sudo killall snap-store
sudo snap refresh

# install jdk17 lts


sudo apt install -y libc6-x32 libc6-i386
wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.deb
sudo dpkg -i jdk-17_linux-x64_bin.deb

# jdk in path
nano ~/.bashrc
export PATH=/usr/lib/jvm/jdk-17/bin:$PATH
source ~/.bashrc

# encurtar caminho pasta no bash


nano ~/.bashrc
PROMPT_DIRTRIM=1
source ~/.bashrc

# instalar virtualbox
https://www.virtualbox.org/wiki/Linux_Downloads

# instalar mysql
sudo apt install mysql-server-8.0
mysql --version ==> verifica instalação
service mysql status ==> verifica se serviço está rodando
service mysql stop ==> para serviço
service mysql start ==> inicia serviço
# configurar mysql
sudo mysql_secure_installation
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : n
Remove test database and access to it? (Press y|Y for Yes, any other key for
No) : y
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y

# acessar mysql
mysql -u nomeusuario -p

# instalar mysql-workbench
https://dev.mysql.com/downloads/workbench/
sudo apt install ./mysql-workbench-community_8.0.30-1ubuntu22.04_amd64.deb

# rodar appimage
sudo apt install libfuse2

# virtualizacao
#verifica se processor possui recurso necessario rodar virtualizacao tipo 1
(Bar Metal)
lscpu - mostra caracteristicas do processador
grep svm /proc/cpuinfo - AMD
grep vmx /proc/cpuinfo - INTEL

kvm - modulo kernel


qemu - emula hardware
libvirt - api
virsh - cli
virt-manager - gerenciador gráfico

#instalação
sudo apt install virt-manager - ambiente grafico
sudo apt install virsh - ambiente cli

#systemctl
systemctl status libvirtd.service - verifica status do serviço
systemctl is-enabled libvirtd.service - verifica se libvirt esta ativo
systemctl enable libvirtd.service - habilita servico de virtualizacao
systemctl disable libvirtd.service - desabilita servico de virtualizacao
systemctl start libvirtd.service - inicia servico de virtualizacao
systemctl stop libvirtd.service - para servico de virtualizacao

#virsh
virsh list --all - mostra vm criadas
virsh start nomevm - inicia vm
sudo adduser usuario libvirt - adicionar usuario ao grupo

You might also like