Tuesday, November 25, 2014

Setup and run FTP Server on Unbuntu 14.04 LTS

https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-on-ubuntu-12-04

Simply run the following commands to install vsftpd:

> sudo apt-get install vsftpd

Run the following commands to open the vsftpd.conf for editing:

> sudo gedit /etc/vsftpd.conf

In the vsftpd.conf, uncomment the following line:

anonymous=NO
local_user=YES
write_enable=YES
chroot_local_user=YES

Save and close vsftpd.conf and change the root folder:

> sudo chown root:root $HOME

Now restart the vsftpd:

> sudo service vsftpd restart


Sunday, November 23, 2014

Disable internal keyboard of a laptop running on Ubuntu 14.04 LTS

Recently I need to use a very old laptop, which happens to have some of its internal keyboard damaged, i attached an external keyboard via usb but the internal keyboard keeps interfere with the terminal input and the GUI (possibly due to malfunction that causes some keys to be pressed permanently). Therefore, I decided to disable the internal keyboard of the laptop, and now everything works wonderfully. The way to do this is as following:

1. Open a terminal, and run the following command:

> xinput list

2. Take note of the id in the line that reads "AT Translated Set 2 Keyboard", in my laptop it is 14. Now run the following command to disable it:

> xinput float 14

By the way, to re-enable run "xinput reattach 14".

Saturday, January 11, 2014

Free tool for file conversion between PDF, Tex, Word and so on

pandoc (Download from http://johnmacfarlane.net/pandoc/index.html)

A set of tools useful for network analysis on Windows OS

Traceroute: trace network to network hopping to the destination host
(Enter tracert command on Windows console)

wget: fetch contents from network
(Download from http://gnuwin32.sourceforge.net/packages/wget.htm)

cUrl: fetch contents from network
(Download from http://curl.haxx.se/dlwiz/?type=bin&os=Win32&flav=-&ver=2000%2FXP)

Wireshark: trace the protocol layering, packet, data frames when contents are transmitted from the local machine to hosts on the network
(Download from http://www.wireshark.org/download.html)