Chris Tate-Davies

An archive of helpful tit bits of information for development, and probably some stuff that is incomplete, wrong or boring…

Accessing /var/www/ as normal user

Some useful linux commands to help with editing web pages on a server: To give access to others to my www folder (so I don’t have to login as sudo): chmod 2775 . -R To show the groups for the selected user: groups <username> groups www-data To add the www-data user to the local user’s [...]

Setting up postfix on Ubuntu for mailing from PHP

To allow your Ubuntu server to send emails from PHP, then you need to install postfix. Postfix is a mailer for *nix platforms. So, to install it: sudo apt-get install postfix When this is installing, you’ll need to enter some options, like what sort of server you’re connecting to. I use my companies details in [...]

Remove svn folders from Ubuntu

When backing up a source code working copy, you don’t always want all the little .svn folders everywhere. You can “export” the working copy, or if you forgot, you have remove them all. Change the the folder containing the working copy (this is very important*) cd /home/username/www/sitename/ And then remove them all, recursively with this [...]

Help in using Ubuntu Terminal Console

Help in using Ubuntu Terminal Console Remote connection To ssh to another Lunix terminal, use this command: ssh username@host -p port The default SSH port is 21, but you could change it to anything, i.e. 9100 Remote teminal will prompt for your password, and job done. File/Folder functions cp – Copy file cp /usr/bin/file /tmp/location [...]

Ubuntu Console commands for SVN

Console commands in Ubuntu for use with subversion Checkout a branch: svn checkout url@revision path To update your local source: svn up And to commit a single file: svn ci -m “message for commit” <files> Multiple committing is just without the <files>. To download a revision svn co -r 1671<remotefolder> <localfolder> <remotefolder> could be any [...]

« go back
  • Chris Tate-Davies

    Hello there. This is my little "repository" on the world wide web. Its for nothing more than documenting things that I might need again in the future. You could describe it as an extension to my memory.

    Also an online collaboration of my thoughts through the day. I'll try to keep the real random stuff out and keep the blog on course.

    Thanks for stopping by... Hope you find what you're looking for...

  • Tags