• Category Archives Bash
  • Internet » Bash
  • Where is my PI?

    Posted on by rob

    raspberry-pi-580-75[1]Hashtag[1]Unless you use static IP’s or a DHCP reserved IP for your PI (or really, any Linux based computer) how do you know where it lives on your network?  This might not be an immediate issue for you on your home network, but what if you take your PI with you to another network for some reason?  It could also be used to simply let you know when a machine has been rebooted and is back on line..

    Read on to find out how I fixed this problem…

    Continue reading  Post ID 1450


  • Sending SMS from the command line

    Posted on by rob

    Quite a few years ago I started using a VOIP provider called voipcheap.  Aside from the very cheap rates they have for calling (including FREE calls to number of countries), I’ve also found them to be very reliable. Another feature they have is the ability to send SMS’s either via their website or via a direct URL that you can hit with with a few bits of info in the URL and they’ll send out your SMS for you.

    Continue reading  Post ID 1450


  • Disable screen clear after less command

    Posted on by rob

    I’m posting this here mostly for myself (since I keep forgetting how to disable the screen clear after using “less”), but also in case others find the page.

    Add this to your /etc/bashrc  or ~/.bashrc or ~/.profile

    export LESS=X

    I’m copying this from THIS SITE.


  • Ubuntu network location detection

    Posted on by rob

    Ok, it’s not a full location detection as such.. I use my laptop (Ubuntu 9.04) both at home and work, as well as other places.  The problem that I had was related to how SAMBA was configured.  At home I have one workgroup name and at work I want the machine to appear in the company domain.  But also, while out and about in the big bad world I don’t want SAMBA on at all, no need to share anything with anyone.

    So, to over come this and correct it at boot time I’ve come up with the simple script below.  The only other thing you need to do is prepare a couple of smb.conf files to suit the locations you’ll be in.   I have 2 smb.conf files, one for HOME and one for WORK.   I run the script from /etc/rc.local so it runs when I should have networking fully up and running. 

    Here is the script:

    Pretty simple really.  Hope others will find it useful.