Tag Archives: Terminal

Fixing Palm Detect on Ubuntu 14.04

For some awful reason, palm detect is off by default, even though it appears to be on in the system settings.  The problem occurs while I’m typing lots of code, or responding to an email.  I’ll be typing along. not paying close attention to where my cursor is.  All of a sudden, everything I just typed, highlights in the midst of me typing, and disappears because my cursor just selected everything and erased it.

After weeks of trying different start up scripts, and changing different settings, I think I have finally come to a conclusion on this issue.  Here are the steps I took to fix this:

First you need to figure out what type of touch pad device you are using according to xinput.  This is done by running:

xinput list

xinput-list

Look for the keyword ‘touchpad’.

xinput-list-highlight-touchpad

Copy the entire text with the word touchpad in it.  This is the name of your touchpad device, as far as Ubuntu is concerned.
Make note of the ‘id’

Now list the properties of your touchpad with the command:

xinput list-props [touchpad name]
xinput list-props {id}

x-input-list-props-touchpad

You’re looking for 2 lines here,  Palm Detection and Palm Dimensions.  As you can see, my Palm Detection is already set to 1, and Palm Dimensions are already set to small numbers.  These are the things you’re looking to change.

To change these settings, you want to type into terminal:

xinput set-prop "[device name]" "Synaptics Palm Detection" 1
xinput set-prop {id} "Synaptics Palm Detection" 1

xinput set-prop "{id}" "Synaptics Palm Dimensions" 5, 5

Obviously, replace the [device name] with you’re specific device name, and also replace “Synaptics Palm Dimensions” with whatever is in your terminal.  Mine was defaulted at 10, 100 for palm dimensions, which wasn’t even close to right.  You’re going to want to keep running setting the palm dimensions until you find something that works for your specific touchpad.

You’re almost done.  Once you find the settings that work for you, you’re going to want to save these settings so they don’t get reset to what they were before on your next restart.  This is done by opening your Dash menu (super button).  Type: Start, and click Startup Applications.

start-menu-startup-applications

Once you have this window open, click Add.

startup-applications-preferences

add-startup-command

You can set the name to be whatever you’d like.  I’d suggest making it simple so you remember what that command is.  In the command box, you paste your command that you have found works for your palm detect.  You’ll want to do this for Palm Detect and for Palm Dimensions.

Now restart your computer and test.  You can see if the changes took by running the xinput list-props [device] command again and seeing if your new settings are there.

I hope this helps you, please comment where it does or not.

Unknown Terminal Type.

The terminal from a Xubuntu desktop isn’t executing any commands. The error is “ ‘unknown’: unknown terminal type. Check what terminal is set to by running: ” SET | MORE ”   Then scroll down to where you see the variable:  ” TERM= “.  If ” TERM=unknown “, simply fix this problem by typing:  TERM=xterm

Updating timezone information on my VPS

Haha because of having a VPS I cannot set the time on it, from what I can tell.  All though I cannot change the time, i can update the timezone.  This is a very easy to do command:

export TZ=America/Chicago

BAM! After running this command I run the command:  date   to make sure it worked.

Enabling DOMDocument in php

How to enable DOMDocument in php.

Putty SSH Shell Login

Well you can take the time to recompile php, but that’s just a pain. Now if you have SSH Shell access to your linux server running php, this can be pretty easy. I’m running CentOS 5, let me know if this doesn’t work for you. Run the following command in your shell (logged in with root):

BAM! Let it find all the files needed, say YES to download, then let it install and restart your apache to reload all your php and it’s modules.

Using SSH without using or needing a password

Linux SSH keygen -t DSA command executionI’ve tried many methods now of using SSH keys to login without a password.  Needless to say, I had to mix a couple methods to make this work.  This isn’t that hard.

Step 1) You’re on a linux machine (or putty’d into a linux box) trying to SSH into a remote host without having to use a password.   In my case i need to run automated commands to upload files to a remote host.  You need to create a SSH key for both machine.  Do this by running the following command:

The default file should already be set, press enter.

The passphrase will remain empty (since you don’t want to type it every time you log in) Press Enter again.

Then press Enter for a third time to confirm the empty passphrase.

It should look something like the picture above.

Step 2) Upload the SSH Public Key to the remote server.  Use the following command:

This will upload the file to your remote and will place the pub key file in .ssh/authorized_keys.

upload ssh key to remote host

Now type “logout” to get out of your remote host’s SSH.  Then log back in via:

It shouldn’t ask for a password anymore.  If any of this information doesn’t apply to you, or you have any questions please feel free to ask.  Thanks for reading.

Thanks to the 2 sources that I used to come up with my own, thank you:
http://support.suso.com/supki/SSH_Tutorial_for_Linux
http://linuxproblem.org/art_9.html

~Steven Kohlmeyer