How To Get Free VPS, RDP Gui Lifetime Google Colaboratory

Show more

How To Get Free VPS, RDP Gui Lifetime Google Colaboratory - Within the world of Data Science, there are very interesting initiatives, and one of the most interesting ones, in addition to all the training options and tools available, is the Google Colab.


Colab is a cloud service, based on Jupyter Notebooks, which allows the free use of Google GPUs and TPUs, with libraries such as Scikit-learn, PyTorch, TensorFlow, Keras, and OpenCV. All with under Python 2.7 and 3.6, which are not yet available for R and Scala.


Although it has some limitations, which can be consulted on its FAQ page, it is an ideal tool, not only to practice and improve our knowledge in Data Science techniques and tools but also for the development of machine learning applications (pilots) and deep learning, without having to invest in hardware or Cloud resources.


With Colab we can create notebooks or import those that we already have created, as well as share and export them whenever we want. This fluidity when handling information is also applicable to the data sources that we use in our projects (notebooks) so that we can work with the information contained in our own Google Drive, local storage unit, GitHub, and even in others. cloud storage systems, such as Amazon's S3.



Starting to work with Colab

In order to have our workspace in Colab, we will have to have a google account and access the Google Drive service. Once inside, we will give New> Folder, putting the name that we consider



Loading the data

When loading the data, which will be used in the notebook, there are several options, but here we will see three:


Enable access to our Google Drive

Upload your data from an Amazon S3 instance

Get the data saved on our local disk

To mount and enable access to our Google Drive, we will execute the following code:


from google.colab import drive
drive.mount ('/ content / gdrive')


Google Colaboratory is a virtual machine environment based on Jupyter Notebooks.

They can be run in the cloud, it is possible to choose to run our notebook on a CPU, GPU, or a TPU for free. It has some restrictions, such as that a session lasts 12 hours, after that time our environment is cleaned and we lose the variables and files that we have stored there.

They are very convenient for beginners who want to experiment with machine learning and deep learning but without incurring cloud processing costs. In addition, the work environment already comes with many libraries installed ready to use, such as Tensorflow, saving us the work of setting up our development environment.


Cell types

As in Jupyter Notebook, we have code cells and markdown or text cells.

To insert cells, if we place the cursor between two cells, we get the option to add text or code cells as seen in the following image. We can also do it from the Insert menu, or from the more code and text buttons on the top bar.


An interesting feature of Colabs is the possibility of adding a temporary code cell. We insert it from the Insert menu, they are displayed as an auxiliary window in the browser as seen in the following image. It is very useful for quick tests without adding extra cells in our notebooks.


How to use datasets in Colab?

One of the first things we're going to want to do is use our datasets on the notebook. There are several ways to do it.

Import from Google Drive

A simple way to do this is by importing the files from Google Drive. In Colab we have code fragments available that solve this integration with Drive.


It is advisable to investigate the rest of the code snippets provided, several common file handling tasks and even visualizations are there solved.


Import from Github

A very convenient alternative is to import our datasets to Colab from a git repository hosted for example on Github (or Bitbucket). We can clone the repository to our workspace simply with the following line:


How to import your own functions from .py files

In order not to overload our notebook and reuse functions from one notebook to another, it is desirable to keep code with certain functions in separate Python files. In Jupyter Notebooks we usually import .py files with different helper functions, this is also possible in Colab.

I can perform it as shown in the following code snippet. A git repository must be cloned containing a file (filename.py in the example) with the functions I want to use.


How To Get Free VPS, RDP Gui Lifetime Google Colaboratory

Akuh.net has prepared the file below, you just run it, no need to change anything, you can create 2 VPS / RDP at the same time

Official Site: https://colab.research.google.com/


2 RDP Google Colab
VNC Viewer

Video Tutorial



How To Run Windows Application On Google Colab



  • To install wine you must open terminal as root
sudo su
  • pin in this tutorial 123456
apt install wine-stable
sudo dpkg --add-architecture i386 && apt-get update && apt-get install wine32

  • to change windows:
winecfg
 
  • to run windows aplication just open terminal
enter wine (drag your app here)




NOTE:
Akuh.net is not responsible for this tutorial
This tutorial is only for education
Next Post Previous Post
11 Comments
  • sudesh
    sudesh June 8, 2021 at 9:13 AM

    sir , i cant install , playonlinux or wine

    • akuh
      akuh June 8, 2021 at 8:14 PM

      hello,,
      to install wine you must open terminal as root
      sudo su
      pin in this tutorial 123456

      apt install wine-stable
      sudo dpkg --add-architecture i386 && apt-get update && apt-get install wine32


      to change windows:
      winecnfg

      to run windows aplication just open terminal
      enter wine (drag your app here)

    • sudesh
      sudesh June 8, 2021 at 9:33 PM

      sorry frist time debian trying , how to open terminal as root ?

    • akuh
      akuh June 8, 2021 at 10:55 PM

      I have updated please check it

    • sudesh
      sudesh June 9, 2021 at 6:56 AM

      worked , thanks sir

  • Unknown
    Unknown August 7, 2021 at 2:29 AM

    hello sir is this only for 12hrs ? what do you mean "Google Colab give you Instance with 12GB of RAM and GPU for 12 hours."

    • akuh
      akuh August 7, 2021 at 8:01 AM

      yes as I said vps will stop after 12 hours, but you can restart it again

  • Unknown
    Unknown September 14, 2021 at 8:20 AM

    the terminal is not accepting the password, how can i go about it?

    • akuh
      akuh September 14, 2021 at 10:49 AM

      sudo su
      password 123456

  • men
    men September 17, 2021 at 12:23 PM

    @Akuh I have encountered this error when mount Google Drive, can you help me?
    Traceback (most recent call last):
    File "/content/mount.py", line 5, in
    drive.mount('/home/akuhnetwork/drive')
    File "/usr/local/lib/python3.7/dist-packages/google/colab/drive.py", line 114, in mount
    ephemeral=ephemeral)
    File "/usr/local/lib/python3.7/dist-packages/google/colab/drive.py", line 134, in _mount
    'TBE_EPHEM_CREDS_ADDR'] if ephemeral else _os.environ['TBE_CREDS_ADDR']
    File "/usr/lib/python3.7/os.py", line 681, in __getitem__
    raise KeyError(key) from None
    KeyError: 'TBE_CREDS_ADDR'

    • akuh
      akuh September 17, 2021 at 3:01 PM

      ok i'll update later, it looks like google colab is updating

Add Comment
comment url