Skype multiple account

On the last years, the Skype version for Linux seems unchanged, without features or relevant upgrades (and with many bugs…thank you MS..).
For that, a stable procedure to call a secondary instance of your Skype for Linux program is:

$ skype --secondary &

It launch a secondary session, while the first is running.
If you use the notification icons, you can see the two icons of the two instances, and each instance has the status configuration indipendent from the other.

Enjoy!
😀

Linux installation data

Sometimes, it could be useful to remember the data of installation of your Linux system, even just to be proud of the long years of life of your Linux distribution without big problems.

A simple way to know that date is with the command:

$ sudo dumpe2fs /dev/sda1 | grep 'Filesystem created'

that shows the date of creation of filesystem, in the indicated partition.

If you are not sure about your the root partition, check it using the disk free command:

$ df -h

the root partition is the one mounted on “/“.

Enjoy! 😉

2015 in review

The WordPress.com stats helper monkeys prepared a 2015 annual report for this blog.

Here’s an excerpt:

A San Francisco cable car holds 60 people. This blog was viewed about 3,600 times in 2015. If it were a cable car, it would take about 60 trips to carry that many people.

Click here to see the complete report.

Torrentflux

Torrentflux is a very useful web-application to download torrent on Linux, based on php and Apache webserver.

Pratically, the only interface of this program is a website where the user can easily manage the torrent downloads. It’s very useful because it runs in background without use the GUI and the influence on the system is low. Moreover, the web interface permits to enable the access to the Torrentflux by remote, just setting the right ports forwarding on the home router and using the public IP assigned by the ISP provider on the home connection.

This program runs on apache (PHP webserver) and use the mysql engine.
So, for a debian-based linux the installation steps are:


$ sudo apt-get install mysql-client mysql-server mysql-common

and follow the required database configuration (mainly are required passwords for the database users).


$ sudo apt-get install php5 php5-mysql
$ sudo apt-get install apache2

and then the last step

$ sudo apt-get install torrentflux

After these steps, the Apache2 service need to be restarted

$ sudo service apache2 restart

and the link to the application checked under /var/www/html/.
If is not present, it is necessary to create the link to torrentflux on the webserver

$ sudo ln -s /usr/share/torrentflux/www/ /var/www/html/torrentflux

Finally, the Torrentflux web interface should be running at address
http://localhost/torrentflux/
or
http://127.0.0.1/torrentflux/

Have good downloads!
😀

set-up proxy on linux

Hi everyone!

Here a simple guide to set up a connection via proxy.
If you need to use a proxy to connect to any remote host, you can configure your linux system to use it automatically.
In case of an http proxy, you must write the line below into /etc/environment:

export http_proxy="http://<user>:<pwd>@<host>:<port>"

where “user” is your proxy user, “pwd” is your proxy password, “host” and “port” are the proxy IP and PORT defined to use that proxy connection.

If you need to set other proxy types, you can use the following options:
https_proxy=…,
ftp_proxy=..,
socks_proxy=..
or all_proxy=.. if you use the same proxy options on all proxy servers.

Enjoy! 😉

APT proxy connection

In some cases I needed to connect to internet through a proxy.
There are many ways to set the proxy data into browsers or other applications, and sometimes the APT needs an own proxy configuration.

If your APT does not connects to internet and you must use a proxy, you need to execute this command:

# echo "Acquire::http::proxy \"http://username:pwd@proxyIP:port\";" >> /etc/apt/apt.conf

where username and pwd are your username and password used to login into proxy server, proxyIP and port are the IP address and port of your proxy server.

If the file /etc/apt/apt.conf is not already present into system, this command creates the file and writes into it.
If the file is already present, it can have a standard line for proxy settings, that you have to modify with your settings or to delete after the execution of the command.

After that, you can test the connection of APT with:

# apt-get update

and you should have a normal update of the repositories.

Enjoy! 😉

setup SquirrelMail (HTTP email client)

Hi everyone!!

Today I want to describe how to install SquirrelMail on your personal server. This software is an HTTP MTA (Mail Transfert Agent) like Thunderbird, Evolution and others, but it must be used by an HTTP web page instead a gui interface.
For this, is like a webmail MTA like the web GUI of mail.com, yahoo or anyone other email manager, but it is personalized and it can be used where you don’t have a web GUI of your email, or if you want a simple interface, without annoying advertisements or useful parts.

I used that to manage a personal email on my always-on RasperryPI at home, because at work all the MTA application are blocked by proxy and I don’t like the web interface of @mail.com, then now I use this.  😀

The installation in really simple, by the command:

$ sudo apt-get install squirrelmail

and after, you need to configure the MTA


$ sudo /usr/sbin/squirrelmail-configure

that opens a configuration menu

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1.  Organization Preferences
2.  Server Settings
3.  Folder Defaults
4.  General Options
5.  Themes
6.  Address Books
7.  Message of the Day (MOTD)
8.  Plugins
9.  Database
10. Languages

D.  Set pre-defined settings for specific IMAP servers

C   Turn color on
S   Save data
Q   Quit

Command >> 

with many options to configure your software.

So, under “Server Settings” (“2” and Enter) you can insert the server parameters (i used Yahoo for the example)

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings

General
-------
1.  Domain                 : yahoo.it
2.  Invert Time            : false
3.  Sendmail or SMTP       : SMTP

A.  Update IMAP Settings   : imap.mail.yahoo.com:993 (other)
B.  Update SMTP Settings   : smtp.mail.yahoo.it:465

R   Return to Main Menu
C   Turn color on
S   Save data
Q   Quit

Command >>

and using the command “A” and “B” you can configure the specific IMAP and SMTP parameters

(command A)

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings

General
-------
1.  Domain                 : yahoo.it
2.  Invert Time            : false
3.  Sendmail or SMTP       : SMTP

IMAP Settings
--------------
4.  IMAP Server            : imap.mail.yahoo.com
5.  IMAP Port              : 993
6.  Authentication type    : plain
7.  Secure IMAP (TLS)      : true
8.  Server software        : other
9.  Delimiter              : detect

B.  Update SMTP Settings   : smtp.mail.yahoo.it:465
H.  Hide IMAP Server Settings

R   Return to Main Menu
C   Turn color on
S   Save data
Q   Quit

Command >>

(command B)

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings

General
-------
1.  Domain                 : yahoo.it
2.  Invert Time            : false
3.  Sendmail or SMTP       : SMTP

SMTP Settings
-------------
4.   SMTP Server           : smtp.mail.yahoo.it
5.   SMTP Port             : 465
6.   POP before SMTP       : false
7.   SMTP Authentication   : plain (with custom username and password)
8.   Secure SMTP (TLS)     : true
9.   Header encryption key : 

A.  Update IMAP Settings   : imap.mail.yahoo.com:993 (other)
H.  Hide SMTP Settings

R   Return to Main Menu
C   Turn color on
S   Save data
Q   Quit

Command >> 

After that configuation, setup SquirrelMail into your Apache Web Server

$ sudo echo "Include /etc/squirrelmail/apache.conf" >> /etc/apache2/apache2.conf
$ sudo /etc/init.d/apache2 restart

Now, your SquirrelMail MTA should be online!! Try it at: http://my-server-ip/squirrelmail where you only need to usw your username and password related to the smtp and imap servers configurated.

This is an example on how is the login page
squirrel1

and how the mail looks like
squirrel2

Enjoy! 😉