Sunday, March 27, 2016

Google Cloud Plataform - Compute engine - comand line examples



#list machine types
gcloud compute machine-types list

#list created instances
gcloud compute instances list

#create a redhat-6 instance with default machine type
gcloud compute instances create example-instance --image rhel-6 --zone us-central1-a

#delete redhat-6 instance
gcloud compute instances delete example-instance --zone us-central1-a

#create a ubuntu 15.10 instance with f1-micro machine type
gcloud compute instances create ubuntu1510-f1micro --image ubuntu-15-10 --zone us-central1-a --machine-type f1-micro

#create a ubuntu 15.10 instance with f1-micro machine type with HTTP/HTTPS enabled
gcloud compute instances create ubuntu1510-f1micro --image ubuntu-15-10 --zone us-central1-a --machine-type f1-micro  --tags http-server,https-server

#stop ubuntu 15.10 instance
gcloud compute instances stop ubuntu1510-f1micro  --zone us-central1-a

#start ubuntu 15.10 instance
gcloud compute instances start ubuntu1510-f1micro  --zone us-central1-a

#hardware reboot ubuntu 15.10 instance
gcloud compute instances reset ubuntu1510-f1micro  --zone us-central1-a


#ubuntu 15.10 instance change machine type to n1-standard-1
gcloud compute instances set-machine-type ubuntu1510-f1micro --machine-type n1-standard-1 --zone us-central1-a

#ubuntu 15.10 instance change machine type to g1-small
gcloud compute instances set-machine-type ubuntu1510-f1micro --machine-type g1-small  --zone us-central1-a

#ubuntu 15.10 instance change machine type to f1-micro
gcloud compute instances set-machine-type ubuntu1510-f1micro --machine-type f1-micro  --zone us-central1-a

#ubuntu 15.10 instance enable HTTP/HTTPS access
gcloud compute instances add-tags ubuntu1510-f1micro --zone us-central1-a --tags http-server,https-server







Wednesday, March 23, 2016

Ubuntu kernel Rebuild


# Get source
apt-get source linux-image-$(uname -r)

# Get tools
apt-get build-dep linux-image-$(uname -r)

# Copy current config
cp -v /boot/config-$(uname -r)   .config

# Customize config
make menuconfig

# parallel build
make -j

# Install kernel modules first (~260MB with debug symbols stripped)
make INSTALL_MOD_STRIP=1 modules_install

# Install kernel image (~6MB)
make install

# Reboot



References:
https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel


Friday, December 11, 2015

Firmware Openwrt-15.05 para roteadores TP-Link com suporte OpenVPN

A imagem padrão disponível no site do Openwrt-15.05 não tem suporte ao OpenVPN, que pode ser instalado pelo gerenciador de pacotes 'opkg', mas devido a limitada memória flash de 4MB de grande maioria dos modelos, a instalação do Openvpn falha por falta de espaço. Mas se a imagem for feita com carinho com o OpenVPN já embutido durante a compilação vai funcionar nos limitados modelos low-cost de 4MB. A quem interessar disponibilizei essas imagens com OpenVPN para modelos de 4MB, veja nos Downloads do blog, essa lista de arquivos: DOWNLOAD
openwrt-15.05-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin openwrt-15.05-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin openwrt-15.05-ar71xx-generic-tl-mr3220-v2-squashfs-factory.bin openwrt-15.05-ar71xx-generic-tl-mr3420-v1-squashfs-factory.bin openwrt-15.05-ar71xx-generic-tl-mr3420-v2-squashfs-factory.bin openwrt-15.05-ar71xx-generic-tl-wr1043nd-v1-squashfs-factory.bin openwrt-15.05-ar71xx-generic-tl-wr1043nd-v2-squashfs-factory.bin openwrt-15.05-ar71xx-generic-tl-wr740n-v1-squashfs-factory.bin openwrt-15.05-ar71xx-generic-tl-wr740n-v3-squashfs-factory.bin openwrt-15.05-ar71xx-generic-tl-wr740n-v4-squashfs-factory.bin

Friday, December 4, 2015

LinSSID: Graphical Wifi Scanner

sudo add-apt-repository ppa:wseverin/ppa sudo apt-get update; sudo apt-get install linssid

Thursday, December 3, 2015

sudo sem perdir senha

basta adicionar essa linha no /etc/sudoers
usuario ALL = NOPASSWD: ALL

Saturday, October 3, 2015

Testando o Syma X5C

Pequeno, rápido, estável e grava video no cartão SD, e de quebra faz todo tipo de flips.

Sunday, August 9, 2015

Mais um drone nascendo no laboratório de robótica

Iniciando  o trabalho
Transmissor de 5 canais - Turnigy 5X
Receptor de 5 canais - TGY-5RX

Controlador de voo - Openpilot CC3D Atom



frame

frame

lab

lab