VNC SERVER

Image

ports tcp/udp 5900

vi /etc/sysconfig/vncservers

set the right user

restart vncserver

vncviewer -via student@node1 -localhost:2

Advertisements

VSFTPD Ftp Server

yum -y install vsftpd

The following configuration is used to allow anonymous users to access to the ftp and disables the localusers

vi /etc/vsftpd.conf

local_enable=NO
anonymous_enable=YES
write_enable=NO

anon_root=/var/ftp

chkconfig vsftpd on
/etc/init.d/vsftpd restart

Data privacy ( LUKS )

3-lukscryptsetup luksFormat /dev/vdb1 ( insert password )
cryptsetup luksOpen /dev/vdb1 crypdisk

now you can format the device pointing the dev mapper :

mkfs -t ext4 /dev/mapper/vdb1

mkdir /secret ; mount /dev/mapper/cryptdisk /secret

vi /etc/passfile

<password>

adding the config to crypttab :

cryptdisk /dev/mapper/vdb1   /etc/passfile

adding the config to fstab :

/dev/mapper/vdb1     /secret      ext4    defaults 0 0