Convert avif images to png

Posted by MD     Category: Informatica

 

I happened to want to save an image from a website with avif format (android 12 technology), but then not be able to view it with default image reader. So I created a Nautilus script to convert it to png

 

The only dependency you need is Davif which you can download here:

 

https://github.com/link-u/davif/releases/download/v0.1.0-20200331/davif_0.1.0-20200331_amd64.deb

 

Now download my script here:

 

https://www.dropbox.com/s/bu77yrq0h2kv8ik/Avif-to-png.sh?dl=0

 

Now just move it to your home, full path:

 

/home/USER/.local/share/nautilus/scripts

 

Where instead of USER you will put the login name

 

Then give it execution permissions (right click > properties > permissions > allow execution)

 

I hope it can be useful to you

 

Bye

Video conversion MB output size

Posted by MD     Category: Informatica



Hi, I found a very handy script to convert videos and choose the final weight in MB, useful for example to reduce and insert movies in social media.

The original script is used from terminal, while I modified it and it integrates with the Nautilus file manager on Gnu/Linux distros based on Gnome

The script has the following dependencies: ffmpeg for the video and zenity for the graphical interface (so you can set the MB you want to have as endings)

On distros based on the package manager apt give:

sudo apt-get install ffmpeg zenity

You can download it from here: videoMBdimensione.sh

Then put it in the folder

/home/USER/.local/share/nautilus/scripts

Changing obviously USER with login user name

Then right click on the file , Properties , enable “allow file to run”

Well now just right click on any mp4 video, choose scripts and you will see videoMB size.sh, click on it and it will ask you the number of MB of compression, then it will start the conversion

I hope you like it!

Convert HEIC iphone mac photos to JPG with Ubuntu

Posted by MD     Category: Informatica



Hi, I ran into a friend of mine who has iphone with the problem of opening with Ubuntu his photos which however are in HEIC format.

I found an easy solution:

open a terminal and type in

sudo apt-get install libheif-examples

give enter and type in your password to install this dependency,

After that create a text file and call it whatever you like, I put “convert_HEIC_in_JPG.sh”

give it execution permissions (right click properties > permissions > execution)

then open it up and write in it:

#!/bin/bash
for f in *.HEIC
do
echo “I am converting the file $f”
heif-convert $f $f.jpg
done

Now save and move the file to

/home/USER/.local/share/nautilus/scripts

(instead of USER put your user name)

now when you go to a folder with photos in HEIC just select everything,

right click > script > convert_HEIC_in_JPG.sh

will now start the conversion by itself, the wait will depend on the number of photos selected!!

I hope it can be of help to you

Bye

Rename PDF based on the title tag data

Posted by MD     Category: Informatica



Hello,
after several attempts I present a new script for Nautilus (file manager present in most linux distributions): allows you to rename all the PDF files, within the same folder, according to the internal tag of the title (for instance right click, property, document, title); very useful in various cases !!!
first of all download this file:

move the file to
/home/YourName/.local/share/nautilus/scripts/
then by right clicking on the file
go to property > permissions
and put the check mark on “Allow file execution as a program”
Now just select the file or pdf files that interest you and right click
script > renam-Port-title-tag-in-name.sh
NB: ATTENTION the script renames all the PDFs contained in that folder
NB: ATTENTION If the PDF file has no title tag the PDF will be deleted
I hope you come back useful !!!

Guide to install and manage tor on ubuntu 4.16 without vidalia

Posted by MD     Category: Informatica







Hi, as I was accustomed to vidalia, I had to endeavor to better manage tor on the new version! But let’s take it easy, first of all we install tor, open the terminal with ctrl + t:
sudo gedit /etc/apt/sources.list
Now it will open a text editor, copy and paste the following line at the bottom:
deb http://deb.torproject.org/torproject.org xenial main
save and close the editor. Always on the terminal to:
gpg –keyserver keys.gnupg.net –recv 886DDD89 gpg –export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add – sudo apt-get update

sudo apt-get install deb.torproject.org-keyring

sudo apt-get update

sudo apt-get install tor

then you have to install the proxy:

sudo apt-get install polipo

sudo gedit /etc/polipo/config
insert:

### Basic configuration
### *******************

# Uncomment one of these if you want to allow remote clients to
# connect:

# proxyAddress = "::0"        # both IPv4 and IPv6
# proxyAddress = "0.0.0.0"    # IPv4 only

proxyAddress = "127.0.0.1"
proxyPort = 8118

# If you do that, you'll want to restrict the set of hosts allowed to
# connect:

# allowedClients = "127.0.0.1, 134.157.168.57"
# allowedClients = "127.0.0.1, 134.157.168.0/24"

allowedClients = 127.0.0.1
allowedPorts = 1-65535

# Uncomment this if you want your Polipo to identify itself by
# something else than the host name:

proxyName = "localhost"

# Uncomment this if there's only one user using this instance of Polipo:

cacheIsShared = false

# Uncomment this if you want to use a parent proxy:

# parentProxy = "squid.example.org:3128"

# Uncomment this if you want to use a parent SOCKS proxy:

socksParentProxy = "localhost:9050"
socksProxyType = socks5

Well now you have to configure:
sudo gedit /etc/default/tor

We’re going to put in place of RUN_DAEMON=”yes”

RUN_DAEMON=”no”

Now to prevent the automatic start giving:
sudo systemctl disable tor.service

sudo update-rc.d tor disable

sudo update-rc.d -f tor remove

Now restart your PC! To graphically manage the start-tor instead of vidalia I created a small program with gui Download it here

Put it in your home or wherever you like is important not to move it if you want that it does not require a password:

sudo gedit /etc/sudoers OR sudo visudo

basically enter:
cacccacc
YourName ALL= NOPASSWD: /home/YourName/Tor-polipo.sh

Here now right-click on Tor-polipo.sh in your home, click properties, permissions enable the execution! For firefox you should get “Proxy selector” by Michele Pezza, to manage the proxy now easily go on plugins, manage proxy , add and copy the following configurations:





Good surfing Tor 😉

Nautilus Script antivirus scan

Posted by MD     Category: Informatica

Hello everyone today I propose un’estenzione nautilus that simplifies scanzione antivirus on linux.
You may wonder now what is a virus on linux:
a) To scanzionare files before transferring them on Windows (prevention)
b) For a hard-disk scanzionare infected (care)
The script created by me iterfaccia has a graphic that will follow you step by step before and during the scanzione.
The scanzione is based on ‘ClamAV antivirus for linux
If you do not have antivirus installed the script will propose the installation.

Instructions:
1) download the script from this link
2) Copy the script
vostraHOME/.gnome2/nautilus-scripts
(to view hidden folders use ctrl + h)
3) Give it execute permissions by right-clicking on the file, properties, permissions, select to run as a program.
4) Position yourself with your cursor on any folder or file by scanzionare, then right-click, scripts, scanzione-Antivirus

5) Now you will be asked to update the virus signature (recommended)

here is the window that appears when updating

6) Follow the graphical instructions and good scan
We carry a possible SCAN-measured weight:

Hope you like it, to the next!

if you want to leave me: comments, report errors, constructive criticism! write here

FireTray minimize thunderbird in the gnome panel

Posted by MD     Category: Informatica

# # Last modified November 16, 2012 # #





Hello from time FireTray use to keep active in the bar thunderbird gnome so I signal the presence of new email!
It looks like this:
in the absence of email

fireTray-immagine

with email notification arrived

fireTray-immagine

I wrote this article because I realized that installing certain versions of FireTray on thunderbird does not always work.

Now and then I write the respective correspondences versions make it all work:

Thunderbird 9/10/11/12/13/14/15/16   —-> firetray-0.4.0a2.xpi

NB: For version 16 will only count for incoming mail and right click and closing only one new message (the rest comes under management)

Thunderbird 8 —-> firetray-0.3.0-svn-r134M.xpi
(later update from add-ons otherwise does not go directly)

Compress pdf script with Nautilus

Posted by MD     Category: Informatica

After doing a search on the net I found that pdf file compression is quite dark!

To make life easier I created a script Nautilus (tested on version 10.04 and 11.04 of ubuntu 64bit, but working with all of them)

The script compresses the pdf looking for in the can to maintain good visual quality.

First you need to install a dependency, open the terminal and write

sudo apt-get install ghostscript

Now download the script created by me

Once you have downloaded the script must be placed in

/home/vostronome/.gnome2/nautilus-scripts

then right-clicking on the file

go to properties> permissions

and put the check “Allow executing file as program”

Now just you select the PDF file you need, and right-click

script> Compress-PDF

now wait patiently (depends on the weight of the file)

I hope you might come in handy!

 

if you want to leave me: comments, report errors, constructive criticism! write here

Add links to the applet indicator (envelope) of gnome

Posted by MD     Category: Informatica





# # Last update: January 15, 2011 # #

You know those icon Envelope right of the panel gnome ubuntu?

gnome-indicator

Well you can add the link to the drop-down menu to open several programs

here’s how you would have after adding your favorite programs:

gnome-indicator-final

For the occasion, I created a script for the most popular programs:

aMsn

Skype

Thunderbird

amule

Firefox

Rhythmbox

Once you have downloaded the execute permissions with

right click

> properties> permissions> (tick) consetire executing file as program

To run the script you have to click

alt + F2

and write gksudo

then given a space and drag the script then press enter
[es: gksudo /home/Vostronome/Add-INDICATOR-Zenity.sh]

if you want to leave me: comments, report errors, constructive criticism! write here