Muffinresearch Labs by Stuart Colville

Archive for the 'Linux/Unix' Category

  1. Linux: Spotify Screensaver D-Bus Script update - 27th October 2011
  2. Linux: Spotify Track Notifier with added D-Bus love - 23rd March 2011
  3. Updating Vim to Use Plugins From Branches - 11th February 2011
  4. Android: Force Moving Apps to an SD Card - 2nd February 2011
  5. Spotify ScreenSaver Toggle with D-bus - 3rd November 2010
  6. Fake SMTP server with Python - 15th October 2010
  7. Inverting Screen Colours for Late-Night Hacking - 30th September 2010
  8. Ubuntu: Spotify Screensaver Toggle - 13th September 2010
  9. Debugging Elusive Puppet Errors - 8th June 2010
  10. Ubuntu: java.net.SocketException in ec2-api-tools - 4th June 2010
  11. Adding more disk space to a Linux Virtual Machine - 30th March 2010
  12. Linux: Fix for apt-get update – Waiting for Headers - 30th March 2010
  13. Solved: VirtualBox Ubuntu Karmic Server VM crashes - 8th February 2010
  14. Howto: SSH into VirtualBox 3 Linux Guests - 8th February 2010
  15. Ubuntu: Changing the default java binary - 5th December 2009
  16. Ubuntu: Lock Screen and Pause Spotify - 22nd October 2009
  17. VirtualBox: Error: Cannot register the hard disk - 23rd July 2009
  18. BASH: Using brace expansion - 22nd June 2009
  19. vim: automatically highlight long lines - 22nd June 2009
  20. Bash: turn on case-insensitive tab completion - 6th June 2009
  21. Running VMware images under VirtualBox - 4th June 2009
  22. Simple Switching of VirtualEnv Environments - 12th May 2009
  23. Vim: Setting the colorscheme Doesn’t Work - 28th April 2009
  24. VirtualBox: Access Guests via a Virtual Interface - 8th April 2009
  25. From OSX to Ubuntu - 5th April 2009
  26. Unix Permissions Calculator - 2nd March 2009
  27. Puppet: Server Configuration Made Easy - 18th January 2009
  28. Checking tarball contents before extraction - 10th November 2008
  29. Bash: Resolving Symlinks to Shellscripts - 10th October 2008
  30. Ubuntu: change editor globally - 7th October 2008
  31. Linux: Changing UIDs and GIDs for a user - 24th September 2008
  32. Ubuntu: BUG: soft lockup – CPU#0 stuck for 11s! - 20th August 2008
  33. Working around uTidyLib’s unicode handling - 29th July 2008
  34. VMWare: Fixing Time Drift in AMD Dual-core Systems - 22nd July 2008
  35. FAIL of the week: uTidyLib unicode error - 17th July 2008
  36. Ubuntu Hardy: Setting up VMWare-tools from the CLI - 13th July 2008
  37. Vmware: “SIOCSIFADDR: No such device eth0″ after cloning - 13th July 2008
  38. No Interfaces Available Using Wireshark on Mac OSX - 2nd June 2008
  39. pwdn: show last n dirs of current directory - 2nd April 2008
  40. Mac OSX tip: ls command color output - 1st April 2008
  41. Django: Switching between development branches - 9th March 2008
  42. From the command line to your clipboard and vice versa - 4th March 2008
  43. Extracting a single file from a tar backup - 12th November 2007
  44. Showing last two directories of pwd in BASH prompt - 25th September 2007
  45. BASH: Single-quotes inside of single-quoted strings - 30th January 2007
  46. SSH SOCKS Proxy - 19th January 2007
  47. MacFUSE: sshfs for your mac - 19th January 2007
  48. Dedicated server recovery mode - 1st January 2007
  49. Compiling mod_python for MAMP - 20th December 2006
  50. Ubuntu Edgy under Parallels Desktop for mac - 3rd November 2006
  51. Six useful shell commands for web developers - 16th October 2006
  52. vim tip: Fix the cursor keys echoing characters in insert mode - 15th October 2006
  53. Concatenating & minimising JavaScript Files in TextMate - 9th October 2006
  54. Customising TextMate with commands - 31st August 2006
  55. Redirecting subdomains to directories in apache. - 20th August 2006
  56. Keeping ssh connections alive - 1st June 2006
  57. Ubuntu Breezy Badger install horrors - 18th October 2005
  58. fscked up beyond all recognition - 23rd August 2005
  59. Ubuntu Ubuntu they drink it in the congo - 2nd August 2005
  60. Sendmail Backup MX - 26th October 2004
  61. News: Moving on to pastures new and back-up mx - 20th October 2004
  62. Suspect SSH activity in server logs - 31st August 2004
  63. Linux command locate – useful for err… locating files? - 15th May 2004

GNU screen: open tab in current working directory|(1)

A nice trick for having screen open a new tab in the same directory as the one you’re currently in. To use it add it to your .screenrc

# Open new window in current dir.
bind c stuff "screen -X chdir \$PWD;screen^M"
bind ^c stuff "screen -X chdir \$PWD;screen^M"

Hat tip: mteckert on SuperUser.com

Ubuntu: add-apt-repository: command not found|(3)

When you’re using a minimal Ubuntu install if you find the ‘add-apt-repository’ command is missing (it’s useful for adding PPAs and other repositories), then simply run:

sudo apt-get install python-software-properties

Photos on Flickr

© Copyright 2004-12 Stuart Colville, all rights reserved. May contain traces of Muffin. Powered by WordPress. Hosting by Slicehost.com This page was baked in 0.555s.