Computing

Handy Linux Commands

I use most of these commands every day to simplify my terminal interactions with an Ubuntu development box.  This is more of a personal reference but thought I would share incase you find it useful.

Task
Command

Get all users on the system

for user in `getent passwd | cut -d: -f1`; do id $user; done

Look for enabled modules or particular [...]

Samba File Share Over SSH Tunnel

Sometimes you need to be able to access a remote Samba server in a secure manner from a Windows machine.  This is a relatively simple procedure on an XP SP3 machine like mine linking into an Ubuntu server pre setup with Samba file sharing.
Windows is a little bit annoying as it binds all filesharing operations to [...]

Memcached and APC: Two Simple Techniques to Speed up your PHP Web Application

Memcached and APC are two tools that you can install on your server and gain almost instant gratification!  APC basically caches executions that you send to a PHP process so that the next time you ask the parser to run your script it only has to look for some pre-chewed opcode in memory rather than parsing your PHP [...]

Installing APC and Memcached for PHP Sessions on Ubuntu and Debian

Installing APC on Debian or Ubuntu is as simple as:
user@server:/directory/$ sudo apt-get install php-apc

Now let us reboot the Apache process to enable our new cache:
user@server:/directory/$ sudo /etc/init.d/apache2 restart

APC should now be ready to run on your server.  Try running the following command to verify it is setup; you should get something in response like mine:
user@server:/directory/$ php -r ‘phpinfo();’ | grep [...]

Haiku OS Progress

Haiku OS Progress

I have previously written about Haiku (formerly OpenBeOs) on my blog and I am pleased to say that I revisited this project last night and had a play with the latest nightly builds.  It has moved on from the last time I look at it nearly 4 years ago now, but it still has some [...]

Using phing for good – Unfuddle Add Repository and SVN Import Tasks

As you may be aware I have recently been playing with the excellent Agavi framework and it introduced me to the interesting phing tool.  Phing can be used to automate tasks with build files that are close to interoperable with Apache Ant, which uses XML files to configure builds.  The advantage phing has for us [...]

Installing APC and Memcached for PHP Sessions on Redhat

Installing APC on Redhat is as simple as:
[user@server directory]# yum install php-pecl-apc

APC should now be ready to run on your server.  Try running the following command to verify it is setup; you should get something in response like mine:
[user@server directory]# php -r ‘phpinfo();’ | grep ‘apc’
apc
MMAP File Mask => /tmp/apc.s5jA6w
apc.cache_by_default => On => On
apc.coredump_unmap [...]

PuTTY and Control + S or Ctrl + S

As you have found this page I am sure you have accidentally hit the control+s short cut whilst inside a PuTTY shell and following that no keystrokes appear to affect the session. Basically hitting ctrl+s causes PuTTY to stop executing the stream coming in from the keyboard. It does however still listen to [...]

Firefox 3.1 has Web Workers (threading) and Geolocation

Firefox 3.1 has Web Workers (threading) and Geolocation

The latest beta 2 release includes web workers, which are essentially threads allowing you to farm off Javascript heavy lifting to background processes so that the interface can continue to load without being impacted upon.  The Mozilla developer center [sic] has an interesting article on implementing them; Using web workers, which includes a couple of worked [...]

CrunchBang Linux on the Eee Pc

So far I have tried out Ubuntu, eeeBuntu, EasyPeasy Linux and CrunchBang Linux (all of which are Debian based) on the Asus Eee PC.  Ubuntu was a bit of an annoyance to get setup and it was troublesome trying to get all the buttons or the sound and microphone to work so I then tried [...]

Page 1 of 612345»...Last »

Advertisement

Licence