Shell voice control

This howto here cause a dialogue was on the beach with a friend who unfortunately does not use the voice command to be “cool” like me, but out of necessity.

Unfortunately, the development of assistive technology, and especially in Italy increasingly the preserve of a few speculators who develop trading systems and only for costs that are prohibitive in some cases.

SALE OF THIS TYPE OF TECHNOLOGY IS BEHAVIOUR OF PIECES OF SHIT AND I CONSIDER THIS NOT JUSTIFICABLE.

First

This howto here cause a dialogue was on the beach with a friend who unfortunately does not use the voice command to be “cool” like me, but out of necessity.

Unfortunately, the development of assistive technology, and especially in Italy increasingly the preserve of a few speculators who develop trading systems and only for costs that are prohibitive in some cases.

SALE OF THIS TYPE OF TECHNOLOGY IS BEHAVIOUR OF PIECES OF SHIT AND I CONSIDER THIS NOT JUSTIFICABLE.

First

This howto here cause a dialogue was on the beach with a friend who unfortunately does not use the voice command to be “cool” like me, but out of necessity.

Unfortunately, the development of assistive technology, and especially in Italy increasingly the preserve of a few speculators who develop trading systems and only for costs that are prohibitive in some cases.

SALE OF THIS TYPE OF TECHNOLOGY IS BEHAVIOUR OF PIECES OF SHIT AND I CONSIDER THIS NOT JUSTIFICABLE.

First

$ sudo su

For Ubuntu until lucid add some repository

# add-apt-repository ppa:dhuggins/cmusphinx

From oneiric onwards

# cat "deb http://ppa.launchpad.net/dhuggins/cmusphinx/ubuntu lucid main deb-src http://ppa.launchpad.net/dhuggins/cmusphinx/ubuntu lucid main " >> /etc/apt/sources.list && apt-get clean && apt-get update

and install the necessary dependencies

# apt-get install gstreamer0.10-pocketsphinx xdotool

make a work directory

# mkdir tmp

download the little magic program

# wget http://voximp.googlecode.com/files/voximp-0.0.1.tar.gz

uncompress it with

# tar -xvzf voximp-0.0.1.tar.gz

move the program in the right directory

# mv voximp.py /usr/bin/voximp

# cd  sample_configs

# mv voximpconf.py.sample voximpconf.py

# mkdir ~/.config/voximp/

# cp * ~/.config/voximp/

leave the root shell with ctrl+d and

$ voximp

Speak to your pc and he will understand (something)

Stay tuned and may the source be with you.

 

Open ed2k with firefox

FIrst
DISCLAMIER  THIS ARTICLE SHOWS ONLY HOW TO INTEGRATE  SOME APPLICATIONS WITH FIREFOX.
I WILL NOT RESPOND FOR  READER’S USE OF THIS PROTOCOL.

Ubuntu 11.04

$ cd .mozilla/firefox/xxxxxxx.default

xxxxxxx.default iis the profile you’re using firefox

$ nano prefs.js

and add the following three lines at bottom of the file

user_pref (“network.protocol-handler.app.ed2k”, “/ usr/bin/ed2k”);

user_pref (“network.protocol-handler.expose.ed2k”, false);

user_pref (“network.protocol-handler.external.ed2k”, true);

when click on a ed2k link firefox will ask the application to open it.

If you use amule for example, you can run a shell command

$ which ed2k

and insert the resulting string in the firefoxs form

For generic gnome users (not ubuntu 11,04)

  1. Close firefox
  2. edit the home/.mozilla/firefox/ xxxxxxx.default/pref.js
  3. delete all entries that contain ed2k
  4. open a shell then run the line below
  5. $ Gconftool-2-t-string -s /desktop/gnome/url-handlers/ed2k/command “/ path/to/ed2k%s” && gconftool-2-t bool -s /desktop/gnome/url-handlers/ed2k/needs_terminal false && gconftool-2-t bool -s /desktop/gnome/url-handlers/ed2k/enabled true

  6. clicking on a file with firefox ed2k protocol will ask ‘the application to open it if you use such amule
  7. just run a shell command
  8. $ Which ed2k

  9. and insert the resulting string in the form for opening files of firefox.

If you are faced with the fake files just use amule with angelmule and remember that for the European community suggest is not a crime!!!

 

Howto install and use tor on windows

After a chat about the virtues and vices of megavideo & CO with my dear friend Pia, I thought I’d write a brief but comprehensive howto on installing and using tor on Windows.

First we download the package (installation files) from here. Now we proceed with the installation during the installation select the full option that will install everything you need:

  • tor the actual program
  • vidalia tors GUI
  • polipo web proxy that helps to speed up browsing
  • Torbutton Firefox plugin that lets you enable and disable Tor by clicking

Now the only thing left to do is restart Firefox (I hope for you that you are using this browser) torbutton appear at the bottom right from this moment on you will be anonymous.

To check if tor work just go https://check.torproject.org or just click here. If tor not be active check the status using vidalia in the system tray,  after installing look a green onion (indicates that Tor is active) or dark with an x ​​above (tor not active) by clicking the right button you will see various options including start and stop.

That should be all at least for web browsing, for the configuration of other programs and protocols tor I recommend anyone to visit this page, thanks for the attention and have a nice day.

 

fast fstab howto

Anyone who has ever used an ubuntu system to transfer files on usb support has surely noticed that just entered the media is immediately mounted and opened as a folder. Often, when such support is used frequently should decide the name and mount point, especially if like me you use the shell to work on files. The purpose of this guide is to explain how to interact with fstab to make sure that your USB is installed automatically in your preferred folder
First open a terminal and take the power with

$ sudo su

Plug in the device and after the automount type

# mount

Your device is listed in last position, once you have identified the device, from here sdX, we get the unique id better known as UUIDs of each partition inside the mount with the command

blkid /dev/sdXy

with y partition number that we want to mount.

The system will respond with something like

/Dev/sdxy: LABEL = "LABEL" UUID = "1234567890ABCDEF" TYPE = "filesystem"

We analyze the information obtained

  • /Dev/sdxy: is the device identified by the system
  • LABEL: is the label of the partition
  • UUID: is the unique identifier of the partition
  • TYPE: the type of filesystem (fat.ntfs, jfs, ext4 …)

Now that we know what we do, we can move on to more serious work. If you already have an empty folder on which to mount your device otherwise well

# Mkdir absolute_pathname_of_desidered_mountpoint

Once we created the folder to make a copy of our original fstab (the Pisan always say “meglio avè paura che toccarne”)

# cp /etc/fstab/etc/fstab.bkup

Before edit fstab i must explain some recommendations, EDIT FSTAB CAN BE DANGEROUS, so I highly recommend that you keep the lines already present in fstab, you can now edit fstab

# nano / etc / fstab

fstab appear like this

# / Etc / fstab: static file system information.
#
# <file System> <mount Point> <type> <options> <dump> <pass>

proc / proc proc nodev, noexec, nosuid 0 0
# Entry for / dev / sdxy:
UUID = 01234567-f012-890th-bcde-3456789abcde / jfs errors = remount-ro 0 1
# Entry for / dev / sdXz:
UUID = 12345678-90ab-cdef-0123-456789abcdef none swap sw 0 0

Ok this is not so intuitive, cause this CAN BE RISKY so we ONLY add A LINE to fstab

# / Etc / fstab: static file system information.
#
# <file System> <mount Point> <type> <options> <dump> <pass>

proc / proc proc nodev, noexec, nosuid 0 0
# Entry for / dev / sdxy:
UUID = 01234567-f012-890th-bcde-3456789abcde / jfs errors = remount-ro 0 1
# Entry for / dev / sdXz:
UUID = 12345678-90ab-cdef-0123-456789abcdef
UUID = 1234567890ABCDEF  absolute_pathname_of_desidered_mountpoint defaults 0 0

test with

# mount -a

if you have done everything correctly should not return any message, and performing

# ls absolute_pathname_of_desidered_mountpoint

you should see the files on the device at this point you can leave the system to its fate with ctrl + d

$
 

Ubuntu video codec s

A common problem for linux users is the missing audio or video codecs. The main cause is the ‘existence of a certain circle of people that causes economic interest and stupidity do not want to encourage the development of open systems. Now we demonstrate to these idiots who can not stop progress.
First

$ sudo su

add medibuntu repository and relative keys than update packages list.

# wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list &&  apt-get --quiet update && apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && apt-get --quiet update 

now we can install the codecs

# apt-get install libdvdcss2 non-free-codecs

a questo punto mancano solo i codecs winzoz windows
for 32 bit architecture

# apt-get install w32codecs

for 64 bit architecture

# apt-get install w64codecs

and leave the sistem whith con ctrl+d

$
 

Autologin ssh

The purpose of this post is eliminate the annoying passwords  from ssh connection on a remote PC

First we make a public rsa key

$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/username/.ssh/id_rsa):
Created directory '/home/username/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/username/.ssh/id_rsa.
Your public key has been saved in /home/username/.ssh/id_rsa.pub.
The key fingerprint is:
4e:3f:15:59:3c:6d:54:7d:ff:a5:2b:56:17:fc:7d:fa username@remotehost

make a .ssh folder (if exist is no bad)

$ ssh username@localhost mkdir -p .ssh
username@localhost's password:

Ora inseriamo la nuova chiave pubblica sull’ host remoto username@remotehost:.ssh/authorized_keys ed inseriamo per l’ultima volta la password:

Now insert the new public key on the remote host username@remotehost:.ssh/authorized_keys and enter the password for the last time:

$ cat .ssh/id_rsa.pub | ssh username@remotehost 'cat >> .ssh/authorized_keys'

from this moment onwards typing

$ ssh remotehost -l username

and no more password needed!!!

 

tor installation on ubuntu

It can happen that some funny guy with very little brain  try to obscure randomly the network thinking that it is actually possible.

This how to is meant to demonstrate that this idiot has less brains than you could imagine.

First take the power

$ sudo su

Once you enter the password copy and paste the following line

# echo "deb http://deb.torproject.org/torproject.org $(lsb_release -cs) main" >> /etc/apt/sources.list && echo "deb http://deb.torproject.org/torproject.org experimental-$(lsb_release -cs) main" >> /etc/apt/sources.list && gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add - && apt-get update && apt-get install tor tor-geoipdb

Now we need a little program to interface us with tor

# apt-get install privoxy

and configure it with the following command

# echo "forward-socks4a / localhost:9050 " >> /etc/privoxy/config

now start all  with

# /etc/init.d/privoxy restart && /etc/init.d/tor start
leave your computer to its fate with ctrl + d
$

From today onwards when you will hear the word “censorship” smile lift the medium and think that “with 4 commands I do whatever I want”.