Of Code and Me

Somewhere to write down all the stuff I'm going to forget and then need

Speed up Google apps account login with Empathy chat client in Ubuntu August 3, 2011

Filed under: Linux — Rupert Bates @ 10:25 am
Tags:

When I first set up the Empathy chat client to connect to my Google apps account it took a ridiculous amount of time to load the contacts, usually over 10 minutes, and this was every time I logged in.

By changing the settings on the account though I got it to work pretty much instantaneously.

Settings:

Login ID: your email address
Password: your password

Under advanced settings:

Check ‘Encryption Required’ checkbox
Resource: Home
Server: talk.google.com
Port: 5223
Check ‘Use old SSL’ checkbox

Advertisements
 

Make the backspace key work in Firefox on Linux July 21, 2011

Filed under: Linux — Rupert Bates @ 10:55 am

To make the backspace key in Firefox on Linux take you back to the previous page as it does on other platforms and in other browsers do the following:

  1. put about:config in the address bar and hit enter
  2. scroll down to browser.backspace_action and double click it
  3. set the value to 0
 

Setup Apache on Ubuntu April 8, 2010

Filed under: Linux,Systems Administration,Web — Rupert Bates @ 4:21 pm

Go to System -> Administration -> Synaptic Package Manager

Find the apache2 package (using the quick search is the easiest way), click ‘Mark for installation’ and then click the ‘Apply’ button

When the install is completed check that:

  1. the Apache program files are in /etc/apache2/
  2. there is an index.html file in /var/www/ (this is the root of the default vhost)
  3. apache2 is running, the command: ps -A | grep apache2 should return at least 1 result
  4. browsing to http://localhost/index.html serves that file successfully (I needed to restart it after the install before I could browse to localhost)

To start, stop and restart Apache :
/etc/init.d/apache2 start
/etc/init.d/apache2 s
/etc/init.d/apache2 restart

 

A Total Newbies guide to a few Linux commands September 2, 2009

Filed under: Linux — Rupert Bates @ 12:36 pm

This is just a reminder for me really, as I struggle to debug one of our LAMP sites after our Sys Admin left…

cd [directoryname] – Change directory

cd .. – Go up one directory

cd ../.. – Go up 2 directories

ls – List directory contents

cat [filename] – Show the contents of a text file

rm [filename] – Delete a file

rmdir [directory] – Delete a directory

rmdir -r [directory] – Delete a directory and all it’s contents

sh [filename] – Execute a shell script file

Tab – Complete a filename

Ctrl + c – Cancel a running command

crontab -l – List all the current user’s cron jobs

ps -A – List all running processes

ps -A | grep java – list all running java processes

find -name *blah*.zip – Find all zip files with blah in their name, more examples

grep “[string literal]” *.log -C 4 – Search for a string literal in all .log files and return 4 lines on either side of the matching line, more examples

tail [filename] -follow – Show the last 10 lines of a file and watch it for changes (Ctrl + c to cancel)