How to take a screenshot with Ubuntu Touch

After the guide to the dual boot android and ubuntu touch, today we return to talk about the new operating system developed by Canonical proposing a small guide on how to make screenshots with Ubuntu Touch, since it is not yet possible to carry them out via key combinations or via app.

As we all know Ubuntu Touch is in the development phase, a very unripe phase but since it is still Ubuntu (complete with a terminal) it is fairly simple to solve some problems, specifically today we will see how to save a script inside Ubuntu Touch that takes a screenshot after a tot of seconds that we will decide from time to time.

There are no special requirements: just have yours device with Ubuntu touch, the USB cable and a PC with a GNU / Linux distribution with ADB installed, for the installation of ADB on Ubuntu 13.10 execute the following commands in the terminal:

$ sudo apt-get install android-tools-adb $ sudo apt-get install android-tools-fastboot

If used instead Ubuntu 12.04:

$ sudo add-apt-repository ppa: phablet-team / tools $ sudo apt-get update $ sudo apt-get install android-tools-adb $ sudo apt-get install android-tools-fastboot

The procedure adopted in this guide consists in saving a script in an Ubuntu Touch folder via ADB in order to start it from the terminal every time we need to take a screenshot.

LET'S BEGIN

Open the PC terminal and type:

$ gedit screenshot

an empty file will open in which you will have to paste all the code you find below:

#! / bin / bash echo "ScreenShot App for Ubuntu Touch" echo "" echo "" echo "How many seconds do I have to wait before capturing the Screenshot?" read SEC sleep $ SEC NOW = $ (date) SCREEN = "screenshot- $ NOW.png "/ system / bin / screencap -p / home / phablet / Pictures /" $ SCREEN "notify-send" Screenshot Captured "" Saved in / home / phablet / Pictures "

Save the file before continuing.

Now connect your device (with Ubuntu Touch started) via USB to the PC, and always from the terminal we create a folder in our device called "Programs"In which we will insert the script (this step is just a matter of order, you can skip it and transfer the script directly to the home).

$ adb shell mkdir / home / phablet / Programs

now we are ready to transfer the file, and give it execution permissions:

$ adb push screenshot / home / phablet / Programs $ adb shell chmod + x / home / phablet / Programs / screenshots

We finished!
Whenever you want to capture the screen of your display, simply open the terminal (in Ubuntu Touch) and type:

/ Home / phablet / Programs / screenshot

you will be asked to enter the number of seconds after which the screenshot will be captured, enter a value of your choice and send, you will find the image in the folder "Pictures"And also in the gallery.

ubuntu-touch ubuntu-touch

Source | XDA

Share
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
💣 Don't get away Xiaomi Mi Electric Scooter Pro 2 Global on offer for only 375 € with Mi Band 5 as a gift and free shipping from Europe!

Receive the latest posts by email

Enter the email and choose the inscriptions on the new page

InTheBit.it
Added devices
  • Compare Smartphone (0)
Compare
0