Prettyscripts

Ubuntu: Install and Setup vsftpd

To install vsftpd: sudo apt-get install vsftpd By default it’s anonoymous only. to change and allow local user to ftp files to and from server: sudo vi /etc/vsftpd.conf change / uncomment the following accordingly:

Ubuntu: Add user

There are 2 commands to add user: useradd and adduser. (The commands could be the same for other Linux.) adduser is easier to use. It prompts for relevant information. To allow new user to run sudo, run: usermod -G admin <username>

PHP: Image manipulation

The GD image library provide functions to manipulate image files. On some installations, this does not come as default and needs to be installed. On fedora, the command is yum install php-gd On ubuntu, the command is sudo apt-get install php5-gd