Tuesday, January 31, 2017

how to convert file .msg(Mail from Mslook) to open on Thunderbird


wget http://www.matijs.net/software/msgconv/msgconvert.pl
sudo apt-get install libemail-outlook-message-perl
sudo apt-get install libemail-localdelivery-perl
perl msgconvert.pl YourMessage.msg

Ref:
how-do-i-view-an-outlook-msg-file
how-to-view-msg-files-on-ubuntu
for windows

Saturday, January 28, 2017

command check package version on ubuntu, debain

1. apt list package name
apt list pv
Listing... Done
pv/kali-rolling,now 1.6.0-1 i386 [installed]


apt list htop
apt list vim

2. aptitude versions package name
aptitude versions pv
i   1.6.0-1                                            kali-rolling                   500

aptitude versions htop
aptitude versions vim

3. dpkg -s package name
dpkg -s pv

or
dpkg -s pv |grep -i version
Version: 1.6.0-1



Ref:
debian-ubuntu-linux-apt-get-aptitude-show-package-version-command

Monday, January 23, 2017

การโอนข้อมูลระหว่างเครื่อง Linux 2 เครื่อง และแสดง Process ระหว่างส่งไฟล์

1. ต้องติดตั้งโปแรกม nc เพื่อส่ง-รับข้อมูล และโปรแกรม pv เพื่อแสดง process
2. การติดตั้ง
# yum install netcat pv        [On RedHat based systems]
# dnf install netcat pv        [On Fedora 22+ versions]
# apt-get install netcat pv    [On Debian and its derivatives]
3. เครื่อง Linux 1 รันคำสั่ง (เครื่องส่ง) ip: 192.168.1.4
# tar -zcf - CentOS-7-x86_64-DVD-1503.iso | pv | nc -l -p 5555 -q 5
อธิบายคำสั่ง
  1. tar -zcf = tar is a tape archive utility used to compress/uncompress archive files and arguments -c creates a new .tar archive file, -f specify type of the archive file and -z filter archive through gzip.
  2. CentOS-7-x86_64-DVD-1503.iso = Specify the file name to send over network, it can be file or path to a directory.
  3. pv = Pipe Viewer to monitor progress of data.
  4. nc -l -p 5555 -q 5 = Networking tool used for send and receive data over tcp and arguments -l used to listen for an incoming connection, -p 555 specifies the source port to use and -q 5 waits the number of seconds and then quit.

4. เครื่อง Linux 2 (เครื่องรับ/ดาวน์โหลด) ip: 192.168.1.5
# nc 192.168.1.4 5555 | pv | tar -zxf -
Reference
transfer-files-between-two-linux-machines