Removing or Modifying svn client passwords
For how common this task is, it’s incredibly hard to find on Google. You’ll need to remember this for anytime you want to change your user account, password, or just delete your account from your subversion client. This works in Netbeans, RabbitVCS, and a majority of other subversion clients that just connect with the svn package.
- Open a terminal (This can be done in a file manager’s search tool, but I’ll show you how in a terminal so you get a better idea of how it works)
- enter the command
grep -r "<HOSTNAME>" ~/.subversion/auth/
(Replace <HOSTNAME> with the SVN’s hostname, so for instance http://svn.vincentprime.com/applepie/svn would be svn.vincentprime.com) Grep searches inside files for whatever you put in the ” “. The -r makes it recursive, so it will look through all the files in all folders deeper than where it was directed to at the end of the line.
- You will get a line that looks something like this
/home/vincent/.subversion/auth/svn.simple/888c928072e9643a13b38ea43532896d:<http://svn.vincentprime.com:80> My Projects
You want the path before the “:”
- Now just enter
rm /home/vincent/.subversion/auth/svn.simple/888c928072e9643a13b38ea43532896d
to remove the file, and have subversion forget your account credentials.
- Next time you run your subversion, you will be asked for your username and password again.
Writing a script to toggle a pointing device in linux
I recently purchased a new laptop, and installed Ubuntu Linux. There’s one major problem with the laptop; the trackpad is too sensitive and resting your palm will click the mouse. The computer includes a shortuct (FN + F9) to disable the trackpad, but natrally from linux this doesn’t work.
Here’s how you can solve this:
- You need to get the name of the pointing device that you wish to disable, so open a terminal and type “xinput list”. (Note: if you have a second pointing device plugged in, unplug it before running this command to prevent confusion.)
Example: The trackpad that I wish to disable is called “PS/2 Logitech Wheel Mouse” - Create a new empty document someplace where you will remember the location (I recommend placing this in it’s own folder), and both you and whoever else that may use the script has write access to the containing directory. Name the document “togglemouse.sh”. (I like to put helpful scripts within a “scripts” folder in my home directory, but if you have a multi-user machine then you could put it in a shared drive or directory.)
- Open the new document with a text editor, and paste the following script.
#!/bin/bash mouse="/tmp/mymouse" if [ -e $mouse ]; then xinput set-int-prop "PS/2 Logitech Wheel Mouse" "Device Enabled" 8 1 rm /tmp/mymouse else xinput set-int-prop "PS/2 Logitech Wheel Mouse" "Device Enabled" 8 0 echo 1 > /tmp/mymouse fi
- Change where it says “PS/2 Logitech Wheel Mouse”, to the name of the pointing device that you found in step 1. Then save.
- Now to disable the pointing device, you just need to run the script. The script will check the temp directory for a file called mymouse, if the file exists then it will enable the mouse and delete the file, if the file doesn’t exist then it will disable the mouse and create the file.
- If you’re using Ubuntu, you can create a keyboard shortcut to run this script by going to
System > Preferences > Keyboard Shortcuts
Select “Add”, write a descriptive name for the shortcut, place the location of the script in the command, hit ok, click the right column next to the new shortcut and press the keys desired for your new shortcut.
- If you’re using Ubuntu, you can create a keyboard shortcut to run this script by going to
EDIT: Moved the location of the mouse disabled file into the temp directory (/tmp/mymouse), so it goes away on reboot.