Ben Hamilton

Find Process to Kill Process

Need to find a process so you can kill it? Find the process first, replace NAMEOFPROCESS with the name or part thereof of the process you’re trying to find: ps -ax | grep NAMEOFPROCESS The first column lists the process id. Then kill the process, replacing PROCESSID with the actual number of the process: kill […]

Posted in *nix, How to | Tagged , , | Comments Off on Find Process to Kill Process

Find an IP address in files

Ever been looking for a config file that contains an incorrect IP address? If the IP address you’re looking for is 8.8.8.8 Then this command is for you: find . -type f -exec grep -l 8.8.8.8 {} \; It’ll find all occurrences of 8.8.8.8 that appear in files in the current directory and folders below […]

Posted in *nix, How to | Tagged , | Comments Off on Find an IP address in files

Location of the SugarCRM log file

By default it’s in the same base folder as the SugarCRM application files. But on occasion we’ll move it. Quickly find it’s location by looking in the config.php file. The two relevant lines are: ‘log_dir’ => ‘/var/log/sugarcrm/’, ‘log_file’ => ‘sugarcrm.log’, If you’re at the command line, then this makes it easy: grep ‘log_dir’ config.php

Posted in General | Tagged , , | Comments Off on Location of the SugarCRM log file

Find a file on a linux server

From the command line find / -name ‘index.html’ 2>/dev/null This will find and display all occurances of index.html and all the errors will not display.

Posted in General | Tagged | Comments Off on Find a file on a linux server

How to backup SugarCRM from the command line

From the linux command line, these commands let you backup and restore a SugarCRM database. Update 2016-04-26: Just saw this SugarCRM KB Providing a Backup Without Sensitive Data which is really useful. Thanks Jared. Firstly, for a proper back up of SugarCRM you’ll need two files, one containing the application files, one containing the SQL database. […]

Posted in *nix, SQL | Tagged , , , , | Comments Off on How to backup SugarCRM from the command line

Linux Load Averages

For when you’re trying to explain what the load average figure means (which you get from running either top or w from the linux command line) this link will help explain it easily. Easier than spending 10 minutes talking about it.

Posted in *nix, How to | Tagged , | Comments Off on Linux Load Averages

Get SAMBA running on linux

This article here describes how to get SAMBA running on a Raspberry Pi. The protocol, which is known as the Common Internet File System (CIFS) – but was originally called Server Message Block (SMB), has been implemented on other operating systems including Linux. The most popular implementation is known as Samba and it allows devices […]

Posted in How to | Tagged , , | Comments Off on Get SAMBA running on linux

Download a file on dropbox using wget on linux

Firstly, get the dropbox share link. It will look like this https://www.dropbox.com/s/ad2arn440pu77si/test.txt Then add a “?dl=1” to the end of that url and a “-O filename” so that you end up with something like this: wget https://www.dropbox.com/s/ad2arn440pu77si/test.txt?dl=1 -O test.txt Now you can easily get files onto your linux box that aren’t available elsewhere.

Posted in How to | Tagged , , | Comments Off on Download a file on dropbox using wget on linux

Mobile Ubuntu

…the company is aiming to rival Android and it believes that the conflict of interest from Google’s purchased Motorola has given many of its Android partners cause to look for alternative options. Ubuntu has the aim of being one such choice as a disruptive, smaller option…

Posted in General | Tagged , , | Comments Off on Mobile Ubuntu

Red Hat expands Brisbane office

Neat. Red Hat has begun to expand its Brisbane headquarters, with plans to boost engineering and support staff for the Asia Pacific region after it added a third level to its facility. via Red Hat expands Brisbane office.

Posted in General | Tagged , , | Comments Off on Red Hat expands Brisbane office

Painless upgrade to WordPress 2.5

Just did yet another painless upgrade to WordPress, which is the software that powers this web site. It is now running version 2.5 quite happily. What made this upgrade different was the fact that I did it from my laptop running Ubuntu 7.10. Every other upgrade I’ve done from a Windows platform, using the FTP […]

Posted in How to | Tagged , , , , , , | Comments Off on Painless upgrade to WordPress 2.5

More GRUB editing

Two pages I’ve found useful when playing with GRUB (a Boot loader that allows you to choose between multiple operating systems on boot up) are these: The GRUB Manual The GRUB page – particularly this one on temporarily editing a GRUB menu item It is nice to be able to re-order the menu items, change […]

Posted in How to | Tagged , , , | 2 Comments

Ubuntu & Wireshark sitting in a tree

Did a google for “Ubuntu wireshark install” hoping to get some instructions on how to get Wireshark installed under Ubuntu. Found the following line: sudo apt-get install ethereal and knowing that ethereal was the former name for wireshark, I promptly entered sudo apt-get install wireshark at the command prompt. Lo and Behold, it starts installing […]

Posted in Uncategorized | Tagged , , , | Comments Off on Ubuntu & Wireshark sitting in a tree

Ubuntu VPN goodness

I’m now running Ubuntu 7.10 on my personal laptop (it dual boots with MS Vista Ultimate, but defaults to Ubuntu). Of course I want to do it all, including connecting to MS Windows VPN’s. The short set of instructions over at tipotheday were spot-on. My only addition would be to have the Ubuntu 7.10 install […]

Posted in How to, Microsoft | Tagged , , , , , | Comments Off on Ubuntu VPN goodness

Editing the GRUB records

Posted more for my own benefit sudo vi /boot/grub/menu.lst This runs vi as the superuser, editing the grub menu, which is what controls which OS to boot into. Important for me ’cause the new laptop is now dual booting Ubuntu and MS Vista Ultimate. Just changing the default OS, now it’s Ubuntu 7.10, loving it!

Posted in How to | Tagged , , , , | Comments Off on Editing the GRUB records