Pedro M. S. Oliveira

Mental note – openssl commands usage

From: ciberciti  (15 Greatest Open Source Terminal Applications Of 2012) for personal reference:

## connect to mail server for testing purpose ##
openssl s_client -connect smtp.server.com:995
openssl s_client -connect smtp.server.com:995 -CApath /etc/ssl
## encrypt file ##
openssl aes-256-cbc -salt -in records-fy-2011-12.dbx   -out records-fy-2011-12.dbx.aes
## decrypt file ##
openssl aes-256-cbc -d -in records-fy-2011-12.dbx.aes -out records-fy-2011-12.dbx
13 December 2012 at 09:58 - Comments
Pedro M. S. Oliveira

Tor 0.2.2.39 for RHEL, CentOS and Scientific Linux

Update on the TOR rpm packages for RHEL 6 and it’s clones.

Click to continue reading “Tor 0.2.2.39 for RHEL, CentOS and Scientific Linux”

11 November 2012 at 02:19 - Comments
Pedro M. S. Oliveira

How to re-scan scsi bus

For my personal reference (from http://jeff.blogs.ocjtech.us/2008/05/how-to-re-scan-scsi-bus-on-linux.html)

How to re-scan the SCSI bus on Linux
Note to self/Google, here’s how to re-scan the SCSI bus on Linux:

echo “- – -” > /sys/class/scsi_host/host0/scan

Update: Tim Verhoeven has a more complete description of the re-scanning process.
(http://misterd77.blogspot.com/2007/12/how-to-scan-scsi-bus-with-26-kernel.html)

23 August 2012 at 07:03 - Comments
Pedro M. S. Oliveira

Average file size on directory using filters

While tuning and benchmarking an HP backup device (HPD2D backup system) I need to estimate the average file size of the IMAP server storage.
You may think I could just count the number of files and the divide the used space by the number of files, but that wasn’t the case because i don’t want all the files to count, in this case I just need the maildir files that have the email content.

Click to continue reading “Average file size on directory using filters”

17 March 2012 at 01:50 - Comments
Pedro M. S. Oliveira

Listing storage (scsi) paths for use with multipath

About a year ago I’ve setup some linux RHEL 6 with multipath access to an HP EVA storage.
Today I needed to do it again, and to do so i needed to list all the path available to the storage device, here’s my command line (hope it helps someone else) to list all the path and volumes:

Click to continue reading “Listing storage (scsi) paths for use with multipath”

9 March 2012 at 20:12 - Comments
então e multipath -ll ? Um forte Abraço!
5 June 12 at 16:43
Pedro M. S. Oliveira
Tens razão Telmo, no entanto o comando multipath -ll é muito mais "verboso". Abraço
6 June 12 at 13:39
Pedro M. S. Oliveira

Tor RPM for RHEL 6.x, Centos 6.x, Scientific Linux 6.x (x86_64)

Hi,

Recently I installed a tor relay server but I couldn’t find the rpm for Scientific Linux, so i decided to get the source code and copile it myself, even better i decided to make the RPM.

I’m really short on time so I didn’t create a repo for it (if someone out there vulunters to help maintaining the repo I’ll do it)

For now here’s the rpm, enjoy.

Pedro M. S. Oliveira

 

Tor RPM for REHL6, CentOS 6, Scientific Linux 6 (708)

 

PS – For those of you that doesn’t know what tor project is you may check https://www.torproject.org/

2 March 2012 at 01:23 - Comments
Pedro M. S. Oliveira

MENTAL NOTE – Article about BRTFS on OpenSuSE

Just a link about something I found interesting, its about using BRTFS on OpenSuSE.

http://news.opensuse.org/2012/01/23/using-btrfs-on-opensuse-12-1/

Cheers,
Pedro

6 February 2012 at 12:42 - Comments
Pedro M. S. Oliveira

MENTAL NOTE – Setup bridge device on centos, rhel, scientific linux

MENTAL NOTE – Setup bridge device on centos, rhel, scientific linux

Click to continue reading “MENTAL NOTE – Setup bridge device on centos, rhel, scientific linux”

27 December 2011 at 18:39 - Comments
Pedro M. S. Oliveira

Converting SSL-certificates from CRT format to PEM

MENTAL NOTE from http://moze.koze.net/?p=81
Converting SSL-certificates from CRT format to PEM

Dovecot, for example, seems to expect pem-files, while RapidSSL only issues
crt-files. The solution? Use OpenSSL to convert (via the DER-format) to pem:

openssl x509 -in input.crt -out input.der -outform DER

then

openssl x509 -in input.der -inform DER -out output.pem -outform PEM

19 December 2011 at 16:39 - Comments
Pedro M. S. Oliveira

Google Galaxy Nexus security flaw using face unlock

There is a functionality that is also a very big security flaw – FACE RECOGNITION.
Google warns you about face recognition not being the safest of methods to unlock your phone, but nevertheless you can pass the locking feature just by using any other photo of you.

Click to continue reading “Google Galaxy Nexus security flaw using face unlock”

14 December 2011 at 03:29 - Comments