tag:blogger.com,1999:blog-24330520565959762792024-03-13T13:59:38.970+00:00My Howtos and ProjectsThis blog is about: Open Source,
Operating Systems (mainly linux), Networking
and Electronics
The information here is presented in the form of howtos.
Sometimes the information migth be in portuguese!
As vezes a informação pode estar em portugues!Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.comBlogger297125tag:blogger.com,1999:blog-2433052056595976279.post-83861259778976503362022-05-18T10:30:00.016+00:002024-01-11T15:05:12.021+00:00Installing WSL / Python / AnsibleEnable Windows Features for WSL (Windows Subsistem for Linux - aka Linux on Windows)Run on powershelldism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartdism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart Download and Install WSL2 Patchhttps://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msiSet Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com0tag:blogger.com,1999:blog-2433052056595976279.post-7024651113231123072018-10-08T23:13:00.001+00:002018-10-08T23:17:52.172+00:00Nvidia Shield - NAS Server (SMBv1)Configuring The Nvidia Shield (v8.0.0)Go to Settings > Storage & reset > Transfer files over network, to turn this feature on.You'll be presented with a User name - the Nvidia Shield generates it but you can change itPassword - the Nvidia Shield generates the password not youthat you can use on a networked PC to access SHIELD folders. Make sure your PC is on the same network as your Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com7tag:blogger.com,1999:blog-2433052056595976279.post-90390170397473551202017-12-10T09:11:00.001+00:002017-12-10T21:49:27.031+00:00Raspberry Pi/Linux - Installing WebminToday I’m going to show you how to install webmin on you Raspberry Pi or other linux machines. I tested this on a Raspberry Pi.
On The Cli
On the CLI of the machine you want to install Webmin, just do.
sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
wget https://downloads.sourceforge.net/project/webadmin/webmin/1.870/Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com3tag:blogger.com,1999:blog-2433052056595976279.post-21108804071595305882017-11-07T00:28:00.001+00:002017-11-07T00:28:35.625+00:00Linux SSH - Automation with Send & Expect ScriptsBy Ken Hess Expect is a natural and intuitive automation scripting language that operates in much the same way humans do when interacting with a system. You type in commands and expect a certain response to your command. When you receive the expected response, you enter another command and so on. Expect works in the same way, except you have to provide the script with commands and expected Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com4tag:blogger.com,1999:blog-2433052056595976279.post-79996479732245658292017-09-11T23:40:00.001+00:002017-09-11T23:43:35.631+00:00Raspberry - Remote Desktop via The Cloud (Real VNC)Login via SSHOn your PC access the SD card with Raspbian installed:create a file named ssh with no content:this will signal the Raspberry Pi to start the SSH server.Put the SD card on the raspberry and start it.Start VNC ServerNow on the cli via SSH:sudo raspi-config### ADJUST RESOLUTION ###7 Advanced OptionsA5 ResolutionDTM Mode 16 1024x768 60 Hz 4:3### ENABLE REAL VNC SERVER ###Interfacing Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com4tag:blogger.com,1999:blog-2433052056595976279.post-16177807190070474832017-08-03T19:57:00.000+00:002017-08-24T16:41:23.848+00:00IoT / Arduino - USB ESP8266 Programmer (CH340G Chip) I recently bought this ESP8266 WiFi module (ie ESP-01) for my IOT project. This is a self contained chip and can be programmed to do the respective tasks. To ease out the task of programming, I bought this ESP-01 ESP8266 Programmer CH340G Chip USB WiFi Wireless UART GPIO0 Adapter. Please read my tutorial series on IOT. So lets get started ! Installing Drivers - Part 1 1. Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com1tag:blogger.com,1999:blog-2433052056595976279.post-87249070696362076532017-04-18T23:24:00.001+00:002017-04-29T09:14:47.068+00:00Windows - Streaming to TVs (via DLNA)Here I’ going to show you how to stream media (in this the example is video but it should be similar to other media) and share files with a Smart TV. Smart TVs support a standard protocol called DLNA that allows you to stream video and share files to stream, among other things. Normally TV brands give it another name like AllShare (Samsung). Windows Media Player and Windows itself support Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com2tag:blogger.com,1999:blog-2433052056595976279.post-48152886574867839042017-02-11T23:30:00.001+00:002017-02-11T23:30:46.668+00:00Linux/Raspberry - Web SSH Shell (No client needed)You probably access you linux machines via SSH using a client like Putty. With Shell In A Box, you get the same SSH access but without any client, you just use a browser that shows you the the SSH connection via HTTPS. This might be usefull in some scenario, so I’m going to show you how to set up it bellow. To install just type: sudo apt-get install shellinabox and that’s it once it finished Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com4tag:blogger.com,1999:blog-2433052056595976279.post-34813602471201564582017-02-06T21:24:00.001+00:002017-02-06T21:25:00.567+00:00Docker - Running Applications on Docker ContainersDocker is a “container” platform, which allows applications to be run in their own sandboxed world. These applications share resources, e.g. things like hard drive space or RAM, but otherwise can’t interfere with programs running on the host system. For corporate servers this means an attacker may not be able to use a compromised web server to get at the database holding customer data. For the Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com0tag:blogger.com,1999:blog-2433052056595976279.post-63689448230727481172017-01-03T23:14:00.001+00:002017-02-05T00:33:23.483+00:00Finding Your Public IP with Telnet (CLI)Her I’m going to show you a little trick off a way to get you public IP when you just have a command line interface. This can be done in any equipment with telnet like a: Router Switch Linux Server etc How To Do It – Site: Check IP The webpage: http://checkip.dyndns.org gives out you public IP on a Browser, so what we are going to do is to open the Web Page on the HTTP Port (Port 80),Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com0tag:blogger.com,1999:blog-2433052056595976279.post-13842946165372421842016-12-11T10:35:00.000+00:002017-02-08T22:03:16.463+00:00Raspberry Pi/PC - NAS: OpenMediaVaultToday I’m going to show you how to install and configure OpenMediaVault which is a very cool platform that allow you to make a NAS out of a Raspberry Pi or a PC and add a lot of services on top of that, these are either already builtin ou added via the many plugins that you can install with just a click. Index Install - PC / VM Install - Raspberry Pi Log In System Basic SetUp Storage SetUpJago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com2tag:blogger.com,1999:blog-2433052056595976279.post-46752935455129403612016-10-11T22:04:00.001+00:002016-10-11T22:22:20.920+00:00VMWare - CLI: Convert Virtual Disks - Thin to ThickHere I’m going to show you how to convert Thin Virtual Disk (dynamic space allocation up to the provisioned size) to a Thick Virtual Disk (all space provisioned at creation). The Thick Virtual Disk does not save space, but it is safer because the space is already allocated, there are no surprises. With a Thin Virtual Disk you migth run out of space in the Datastore and the Disk can’t grow up to Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com0tag:blogger.com,1999:blog-2433052056595976279.post-74250627414847934222016-10-11T21:06:00.001+00:002016-10-11T22:20:44.797+00:00VMWare - CLI: Convert Virtual Disks - Thick to ThinHere I show you how to convert Thick Virtual Disk (all space provisioned at creation) to a Thin Virtual Disk (dynamic space allocation up to the provisioned size). This is a good way to save space because with a Thin Virtual Disk, only occupies the space of the files It holds at the time. Warning with a Thin Virtual Disk you migth run out of space in the Datastore and the Disk can’t grow upJago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com0tag:blogger.com,1999:blog-2433052056595976279.post-50415314133573581252016-09-18T23:20:00.001+00:002016-09-18T23:20:34.031+00:00Cisco - Upgrade Switches From Tar (Bin+Html)To upgrade a Cisco Switch from a .tar (IOS and Html - Management Web Page), just start TFTP64: and use the command: archive download-sw xxxxxxxxxx on the switch command line, this will download and install the .tar, and set it to boot next time. I normally use is the my “Main Command” this should work in most cases, but you have other options like the ones shown in “Command Options”, that you Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com2tag:blogger.com,1999:blog-2433052056595976279.post-29336714696911500932016-08-23T22:34:00.001+00:002016-10-20T20:48:46.809+00:00VMWare - Linked Clones Without vCenter (with vSphere Client)As soon as you can create snapshots you have all the ingredients required to create linked clones. This will walk you through the process of creating a bunch of linked clones from one master.Only tools used are the vSphere client and a text editor on a Windows host. First create the master VM. It is recommended to use a thin disk ... Give it a reasonable name - so that it stands out from the Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com2tag:blogger.com,1999:blog-2433052056595976279.post-25010594678632377022016-07-19T22:11:00.003+00:002017-02-11T22:55:17.182+00:00VMWare WhiteBox - Desktop and ESXi Server all in One PCI was recently on the market for a new Desktop, I wanted a powerfull machine but on a budget, and also had the ability of becoming as ESXi host (aka ESXi whitebox). So I started looking at AMD CPUs because of the lower price, I had always heard that Intel was the way to go for vitualization, but I soon found out that the AMD CPUs where very virtualization friendly suporting even the most advancedJago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com0tag:blogger.com,1999:blog-2433052056595976279.post-92095771102625008702016-07-16T12:05:00.001+00:002016-07-16T21:45:54.485+00:00Linux - Wifi Configuration (Detailed)This guide was tested with Dapper Drake, Feisty Fawn, Gutsy Gibbon, and Hardy Heron. Since it appears that very few people take wireless security seriously, I'd like to come up with my first HOWTO and explain how I was able to configure a secure home network using WPA2, the latest encryption & authentication standard. There are also other types of configuration (WPA1, mixed mode, LEAP, PEAP, Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com1tag:blogger.com,1999:blog-2433052056595976279.post-21371375903042266972016-07-02T22:46:00.001+00:002016-07-03T12:51:30.068+00:00Raspberry Pi – Media Server for Streaming (via DLNA) Here I’m going to quickly show you how to set up you Raspberry Pi as a Media Server for Streaming via DLNA which is a protocol suported in many TVs, Windows PCs (Windows Media Player) and Android Devices (App: Media House). ## Install Mini DLNA ##sudo apt-get updatesudo apt-get install minidlna ## Mount The Media Disk ##sudo mkdir /media/HD1sudo mount /dev/sda1 /media/HD1 ## Create The Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com0tag:blogger.com,1999:blog-2433052056595976279.post-2041191591848699482016-06-20T23:47:00.001+00:002016-07-07T23:04:08.479+00:00GRUB - Rescue BootLoader on a USB Flash DriveMy goal is to just have a GRUB bootloader (without a Linux instalation) on a USB Flash Drive to: Boot OS with Bootloaders without entering the BIOS Boot OS with Broken Boot Loaders Boot Linux Live CDs Installing the GRUB Boot Loader Run a live CD like Ubuntu, a boot i without installing it. First list your disks in order to identify you USB Flash Drive sudo fdisk -lJago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com2tag:blogger.com,1999:blog-2433052056595976279.post-32852356935838895022016-06-14T23:30:00.001+00:002016-06-14T23:30:37.964+00:00Windows – SSH SOCKS ProxyIf you have a Raspberry Pi or any Linux machine at home, you can use it as an SSH Proxy with the help of SSH and exit to the Internet via you home conection/IP. Some of the advantages are: Privacy (SSH Traffic is Encrypted) Bypassing Local Security Policies (Access Blocked Services) no aditional configuration needed on the SSH server You only need to forward port 22 on your internet router to Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com0tag:blogger.com,1999:blog-2433052056595976279.post-35183616077697232402016-05-30T23:33:00.001+00:002016-05-30T23:33:11.037+00:00Linux – Howto Boot an ISO from GRUBLinux’s GRUB2 boot loader can boot Linux ISO files directly from your hard drive. Boot Linux live CDs or even install Linux on another hard drive partition without burning it to disc or booting from a USB drive. We performed this process on Ubuntu 14.04 — Ubuntu and Ubuntu-based Linux distributions have good support for this. Other Linux distributions should work similarly. This trick requires Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com2tag:blogger.com,1999:blog-2433052056595976279.post-80741270505484855602016-03-28T12:55:00.001+00:002016-03-28T12:57:06.032+00:00Linux - Parted the CLI Disk Management ToolParted is a famous command line tool that allows you to easily manage hard disk partitions. It can help you add, delete, shrink and extend disk partitions along with the file systems located on them. Parted has gone a long way from when it first came out. Some of it’s functions have been removed, others have been added. In this tutorial you will learn the basics of parted and we will show you Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com0tag:blogger.com,1999:blog-2433052056595976279.post-26822709256992575142016-02-14T14:25:00.001+00:002016-02-14T14:25:58.487+00:00Linux - GRE TunnelHow to create a GRE tunnel on Linux GRE tunnels are IP-over-IP tunnels which can encapsulate IPv4/IPv6 and unicast/multicast traffic. To create a GRE tunnel on Linux, you need ip_gre kernel module, which is GRE over IPv4 tunneling driver. So first make sure that ip_gre is loaded. $ sudo modprobe ip_gre $ lsmod | grep gre ip_gre 22432 0 gre 12989 1Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com0tag:blogger.com,1999:blog-2433052056595976279.post-53891689868504631532016-01-21T23:59:00.001+00:002016-01-21T23:59:12.376+00:00Ubuntu - Installation on UEFI / GPT SystemsInstallation of Ubuntu 15.04 (Vivid Vervet) Desktop on UEFI Firmware Systems by Matei Cezar | Published: April 25, 2015 | Last Updated: October 23, 2015 Ubuntu 15.04 , codename Vivid Vervet , non-LTS , has finally been released for Desktops, Servers, Cloud and other instances and flavours. This version comes with nine months support and some interesting changes, the most notable ones being the Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com0tag:blogger.com,1999:blog-2433052056595976279.post-28074742577686369292015-12-18T00:30:00.002+00:002015-12-18T00:42:37.844+00:00Cisco - Packet Sniffing on a RouterThis is very cool and usefull feature that not many people know about, this allows you to capture packets like you do with a PC using Wireshark, and then export them to a file so that you can open and analise it with Wireshark. This feature is called Cisco’s Embedded Packet Capture (EPC), and it has been around since IOS 12.4.20T. Here Im going to show you how to: Capture (Buffer) Save Jago83http://www.blogger.com/profile/08223907418430910982noreply@blogger.com0