~Toughbooktalk~ Rob - 630-300-8877

The largest Toughbook discussion site on the net!
It is currently Sun Dec 10, 2017 10:08 pm

All times are UTC-06:00




Post new topic  Reply to topic  [ 11 posts ]  Go to page 1 2 Next
Author Message
PostPosted: Wed Feb 03, 2016 9:23 pm 
Offline

Joined: Sun Dec 07, 2014 2:39 pm
Posts: 61
Location: Around Kansas City
So I plugged the CF-H1 up to charge in its dock. I pulled out my trusty
External Samsung DVD drive and plugged it in. It has never failed to
boot a computer, until now.

I tried several different OS's, it wasn't the OS.

Then I tried Knoppix on a usb I keep for just such problems. It
booted right up. I had watched the DVD spin up and the BIOS moved
on before it could read, locking it into a loop that wouldn't boot.

Another DVD drive might work, but I didn't have one.

So I pulled the iso and loaded it onto a usb, I was in a hurry so I just used :

dd bs=4M if=debian\ wheezy\ 20150114-04\:58.iso of=/dev/sdb

as root. "dd" has the nickname "disc destroyer", but that is if
your not careful. To make a bootable usb from an iso its great.
Just make sure you know which drive is which.

So anyway, the first try was with a 64 bit, it would boot to the
install page but not run or install. The 32 bit Debian however
is installed and updating now.

I did go into /Settings/System Settings then to System Administration
and finally Login Screen. I enabled password LESS login. Its not secure
I know, but if my class notes are that valuable, heck, they can have them.

Both batteries show with percentages under power, and I didn't have
to do anything for touch (finger) and digitizer to work switching
back and forth. I think this is going to work out nicely.

The install is a little slow as the Atom isn't a power house. I also
turned off Neomuk indexing as it eats CPU time, but I do that
on my laptops too. But now it seems to run nicely, I wont be
compiling programs on it, but that isn't why I wanted it.

So the clif notes version of installing Linux on a CF-H1 is
use usb install media, dock, and everything else is pretty standard.

_________________
glitch

CF-19 Mk-1 / CF-M34 / CF-27 / CF-28 / CF-29 Mk-1 / CF-H1 Field/Health

“The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way.” Heraclitus ~5 bc


Last edited by glitch on Sat Feb 06, 2016 10:32 pm, edited 1 time in total.

Top
   
 Post subject: Re: Linux on CF-H1
PostPosted: Fri Feb 05, 2016 5:22 am 
Offline

Joined: Sun Dec 07, 2014 2:39 pm
Posts: 61
Location: Around Kansas City
Set up the finger print reader for log in security. It was really easy.
The OS is Debian Wheezy but other systems should be similar.

From a terminal:

you@yourcomputer:~$ sudo apt-get install fprintd
you@yourcomputer:~$ sudo apt-get install libpam-fprintd

check that everything went ok:

you@yourcomputer:~$ grep fprint /etc/pam.d/common-auth

you should get:

you@yourcomputer:~$ auth [success=1 default=ignore] pam_fprintd.so max_tries=1 timeout=10 # debug

or a very similar result, then to store your finger print:

you@yourcomputer:~$ fprintd-enroll

You will have to slide your finger over the sensor several times.

At this point try to restart the computer, if the normal login screen comes up
try just clicking "Login" (no password), a second message box should pop-up and tell you
to swipe your finger. On the CF-H1 with Debian this works fine.

And if you use the wrong finger the login just resets after scolding you.

**Some OS's you may have to alter the login configuration. Its located in
/etc/pam.d/

** edit - mispelled / extra words

_________________
glitch

CF-19 Mk-1 / CF-M34 / CF-27 / CF-28 / CF-29 Mk-1 / CF-H1 Field/Health

“The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way.” Heraclitus ~5 bc


Top
   
 Post subject: Re: Linux on CF-H1
PostPosted: Fri Feb 05, 2016 5:59 am 
Offline
User avatar

Joined: Tue Oct 13, 2015 3:19 am
Posts: 193
Location: Old Europe
i can see that fingerprint readers are practical and easy to use
but they do not provide any real security, as its waaayyy to easy to fool fingerprint readers

even a stupid password like "qwerty"+year of birth would provide better security


Top
   
 Post subject: Re: Linux on CF-H1
PostPosted: Fri Feb 05, 2016 3:48 pm 
Offline

Joined: Sun Dec 07, 2014 2:39 pm
Posts: 61
Location: Around Kansas City
If they want my Discrete Math or Compiler homework they can have it, heck, I'll
swipe my finger for them! I back it up every night so at most I'd lose a day's notes.

This is setup for note taking and there is nothing valuable on it. But it was the easiest
way to have some security. Besides, pulling up a virtual keyboard on the login screen
is a pain.

_________________
glitch

CF-19 Mk-1 / CF-M34 / CF-27 / CF-28 / CF-29 Mk-1 / CF-H1 Field/Health

“The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way.” Heraclitus ~5 bc


Top
   
 Post subject: Re: Linux on CF-H1
PostPosted: Fri Feb 05, 2016 6:01 pm 
Offline
User avatar

Joined: Thu Oct 14, 2010 1:13 pm
Posts: 2177
Location: TDR-HQ California
Good stuff.

Maybe I'll try this on my CF-53 fingerprint reader.

dd :rofl: disk destroyer.........good also.

Thanks,

Jeff

_________________
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/


Top
   
 Post subject: Re: Linux on CF-H1
PostPosted: Fri Feb 05, 2016 7:33 pm 
Offline

Joined: Sun Dec 07, 2014 2:39 pm
Posts: 61
Location: Around Kansas City
I hope you did get a chuckle, :)

I guess if I broke it down for someone that doesn't know:

dd bs=4M if=debian\ wheezy\ 20150114-04\:58.iso of=/dev/sdb

dd writes an image from a file to device or vice versa, it is powerful and DOES NOT have a safety.

bs=4m is the size of chunks it transfers
if=blah blah blah is the "in file" with path included (where you get the iso)
of=blah blah blah is the "out file" with path (what you're writing to)

I pull isos with K3b but I also like Braseo

And I decided to get a bunch of usb's, they have gotten cheap, and load my favorite distro's on them.
_______________________________

today I used "xev" in a console, it opens a window and as mouse or button events happen it outputs info like this:

KeyPress event, serial 40, synthetic NO, window 0x2e00001,
root 0x83, subw 0x0, time 1583891, (55,136), root:(638,159),
state 0x0, keycode 39 (keysym 0x73, s), same_screen YES, <<< you'll see the code in this line
XLookupString gives 1 bytes: (73) "s"
XmbLookupString gives 1 bytes: (73) "s"
XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x2e00001,
root 0x83, subw 0x0, time 1583986, (55,136), root:(638,159),
state 0x0, keycode 39 (keysym 0x73, s), same_screen YES,
XLookupString gives 1 bytes: (73) "s"
XFilterEvent returns: False

I used it to find the key codes for the keys on the side of the H1, they are:

Keycodes for CF-H1
camera key = 111
RFID key = 116
A1 key = 36
A2 key = 114
A3 key = 9
"Key" key = 68

So tomorrow I will try binding them to what I want so they work. I don't have an RFID
program loaded yet. I dont know what I want the A1 -A3 keys to do. I did forget the
RFID key on the handle, but it might be the same as RFID key on the front.

you can try "xev >> keys.txt" and it will save the mouse and keys to a text file.

_________________
glitch

CF-19 Mk-1 / CF-M34 / CF-27 / CF-28 / CF-29 Mk-1 / CF-H1 Field/Health

“The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way.” Heraclitus ~5 bc


Top
   
 Post subject: Re: Linux on CF-H1
PostPosted: Sat Feb 06, 2016 6:48 am 
Offline

Joined: Sun Dec 07, 2014 2:39 pm
Posts: 61
Location: Around Kansas City
So, I pulled the keymap in a format to feed it back in with xmodmap

you@yourcomputer:~$ xmodmap -pke >> xmodmap.txt

And the keys I mapped would really disable things I use frequently,
Why Panasonic didnt use keycodes that were unused is beyond me.

I listed them below if you want to know what they do normally, it
may help, like the "Key" key being the F2 key to get into BIOS setup

camera key = 111 up arrow key
RFID key = 116 down arrow key
A1 key = 36 return key
A2 key = 114 right arrow key
A3 key = 9 escape key
"Key" key = 68 F2 key

Heres the normal map of keys, no modifications:

keycode 8 =
keycode 9 = Escape NoSymbol Escape
keycode 10 = 1 exclam 1 exclam
keycode 11 = 2 at 2 at
keycode 12 = 3 numbersign 3 numbersign
keycode 13 = 4 dollar 4 dollar
keycode 14 = 5 percent 5 percent
keycode 15 = 6 asciicircum 6 asciicircum
keycode 16 = 7 ampersand 7 ampersand
keycode 17 = 8 asterisk 8 asterisk
keycode 18 = 9 parenleft 9 parenleft
keycode 19 = 0 parenright 0 parenright
keycode 20 = minus underscore minus underscore
keycode 21 = equal plus equal plus
keycode 22 = BackSpace BackSpace BackSpace BackSpace
keycode 23 = Tab ISO_Left_Tab Tab ISO_Left_Tab
keycode 24 = q Q q Q
keycode 25 = w W w W
keycode 26 = e E e E
keycode 27 = r R r R
keycode 28 = t T t T
keycode 29 = y Y y Y
keycode 30 = u U u U
keycode 31 = i I i I
keycode 32 = o O o O
keycode 33 = p P p P
keycode 34 = bracketleft braceleft bracketleft braceleft
keycode 35 = bracketright braceright bracketright braceright
keycode 36 = Return NoSymbol Return
keycode 37 = Control_L NoSymbol Control_L
keycode 38 = a A a A
keycode 39 = s S s S
keycode 40 = d D d D
keycode 41 = f F f F
keycode 42 = g G g G
keycode 43 = h H h H
keycode 44 = j J j J
keycode 45 = k K k K
keycode 46 = l L l L
keycode 47 = semicolon colon semicolon colon
keycode 48 = apostrophe quotedbl apostrophe quotedbl
keycode 49 = grave asciitilde grave asciitilde
keycode 50 = Shift_L NoSymbol Shift_L
keycode 51 = backslash bar backslash bar
keycode 52 = z Z z Z
keycode 53 = x X x X
keycode 54 = c C c C
keycode 55 = v V v V
keycode 56 = b B b B
keycode 57 = n N n N
keycode 58 = m M m M
keycode 59 = comma less comma less
keycode 60 = period greater period greater
keycode 61 = slash question slash question
keycode 62 = Shift_R NoSymbol Shift_R
keycode 63 = KP_Multiply KP_Multiply KP_Multiply KP_Multiply KP_Multiply KP_Multiply XF86ClearGrab
keycode 64 = Alt_L Meta_L Alt_L Meta_L
keycode 65 = space NoSymbol space
keycode 66 = Caps_Lock NoSymbol Caps_Lock
keycode 67 = F1 F1 F1 F1 F1 F1 XF86Switch_VT_1
keycode 68 = F2 F2 F2 F2 F2 F2 XF86Switch_VT_2
keycode 69 = F3 F3 F3 F3 F3 F3 XF86Switch_VT_3
keycode 70 = F4 F4 F4 F4 F4 F4 XF86Switch_VT_4
keycode 71 = F5 F5 F5 F5 F5 F5 XF86Switch_VT_5
keycode 72 = F6 F6 F6 F6 F6 F6 XF86Switch_VT_6
keycode 73 = F7 F7 F7 F7 F7 F7 XF86Switch_VT_7
keycode 74 = F8 F8 F8 F8 F8 F8 XF86Switch_VT_8
keycode 75 = F9 F9 F9 F9 F9 F9 XF86Switch_VT_9
keycode 76 = F10 F10 F10 F10 F10 F10 XF86Switch_VT_10
keycode 77 = Num_Lock NoSymbol Num_Lock
keycode 78 = Scroll_Lock NoSymbol Scroll_Lock
keycode 79 = KP_Home KP_7 KP_Home KP_7
keycode 80 = KP_Up KP_8 KP_Up KP_8
keycode 81 = KP_Prior KP_9 KP_Prior KP_9
keycode 82 = KP_Subtract KP_Subtract KP_Subtract KP_Subtract KP_Subtract KP_Subtract XF86Prev_VMode
keycode 83 = KP_Left KP_4 KP_Left KP_4
keycode 84 = KP_Begin KP_5 KP_Begin KP_5
keycode 85 = KP_Right KP_6 KP_Right KP_6
keycode 86 = KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add XF86Next_VMode
keycode 87 = KP_End KP_1 KP_End KP_1
keycode 88 = KP_Down KP_2 KP_Down KP_2
keycode 89 = KP_Next KP_3 KP_Next KP_3
keycode 90 = KP_Insert KP_0 KP_Insert KP_0
keycode 91 = KP_Delete KP_Decimal KP_Delete KP_Decimal
keycode 92 = ISO_Level3_Shift NoSymbol ISO_Level3_Shift
keycode 93 =
keycode 94 = less greater less greater bar brokenbar bar
keycode 95 = F11 F11 F11 F11 F11 F11 XF86Switch_VT_11
keycode 96 = F12 F12 F12 F12 F12 F12 XF86Switch_VT_12
keycode 97 =
keycode 98 = Katakana NoSymbol Katakana
keycode 99 = Hiragana NoSymbol Hiragana
keycode 100 = Henkan_Mode NoSymbol Henkan_Mode
keycode 101 = Hiragana_Katakana NoSymbol Hiragana_Katakana
keycode 102 = Muhenkan NoSymbol Muhenkan
keycode 103 =
keycode 104 = KP_Enter NoSymbol KP_Enter
keycode 105 = Control_R NoSymbol Control_R
keycode 106 = KP_Divide KP_Divide KP_Divide KP_Divide KP_Divide KP_Divide XF86Ungrab
keycode 107 = Print Sys_Req Print Sys_Req
keycode 108 = Alt_R Meta_R Alt_R Meta_R
keycode 109 = Linefeed NoSymbol Linefeed
keycode 110 = Home NoSymbol Home
keycode 111 = Up NoSymbol Up
keycode 112 = Prior NoSymbol Prior
keycode 113 = Left NoSymbol Left
keycode 114 = Right NoSymbol Right
keycode 115 = End NoSymbol End
keycode 116 = Down NoSymbol Down
keycode 117 = Next NoSymbol Next
keycode 118 = Insert NoSymbol Insert
keycode 119 = Delete NoSymbol Delete
keycode 120 =
keycode 121 = XF86AudioMute NoSymbol XF86AudioMute
keycode 122 = XF86AudioLowerVolume NoSymbol XF86AudioLowerVolume
keycode 123 = XF86AudioRaiseVolume NoSymbol XF86AudioRaiseVolume
keycode 124 = XF86PowerOff NoSymbol XF86PowerOff
keycode 125 = KP_Equal NoSymbol KP_Equal
keycode 126 = plusminus NoSymbol plusminus
keycode 127 = Pause Break Pause Break
keycode 128 = XF86LaunchA NoSymbol XF86LaunchA
keycode 129 = KP_Decimal KP_Decimal KP_Decimal KP_Decimal
keycode 130 = Hangul NoSymbol Hangul
keycode 131 = Hangul_Hanja NoSymbol Hangul_Hanja
keycode 132 =
keycode 133 = Super_L NoSymbol Super_L
keycode 134 = Super_R NoSymbol Super_R
keycode 135 = Menu NoSymbol Menu
keycode 136 = Cancel NoSymbol Cancel
keycode 137 = Redo NoSymbol Redo
keycode 138 = SunProps NoSymbol SunProps
keycode 139 = Undo NoSymbol Undo
keycode 140 = SunFront NoSymbol SunFront
keycode 141 = XF86Copy NoSymbol XF86Copy
keycode 142 = XF86Open NoSymbol XF86Open
keycode 143 = XF86Paste NoSymbol XF86Paste
keycode 144 = Find NoSymbol Find
keycode 145 = XF86Cut NoSymbol XF86Cut
keycode 146 = Help NoSymbol Help
keycode 147 = XF86MenuKB NoSymbol XF86MenuKB
keycode 148 = XF86Calculator NoSymbol XF86Calculator
keycode 149 =
keycode 150 = XF86Sleep NoSymbol XF86Sleep
keycode 151 = XF86WakeUp NoSymbol XF86WakeUp
keycode 152 = XF86Explorer NoSymbol XF86Explorer
keycode 153 = XF86Send NoSymbol XF86Send
keycode 154 =
keycode 155 = XF86Xfer NoSymbol XF86Xfer
keycode 156 = XF86Launch1 NoSymbol XF86Launch1
keycode 157 = XF86Launch2 NoSymbol XF86Launch2
keycode 158 = XF86WWW NoSymbol XF86WWW
keycode 159 = XF86DOS NoSymbol XF86DOS
keycode 160 = XF86ScreenSaver NoSymbol XF86ScreenSaver
keycode 161 = XF86RotateWindows NoSymbol XF86RotateWindows
keycode 162 = XF86TaskPane NoSymbol XF86TaskPane
keycode 163 = XF86Mail NoSymbol XF86Mail
keycode 164 = XF86Favorites NoSymbol XF86Favorites
keycode 165 = XF86MyComputer NoSymbol XF86MyComputer
keycode 166 = XF86Back NoSymbol XF86Back
keycode 167 = XF86Forward NoSymbol XF86Forward
keycode 168 =
keycode 169 = XF86Eject NoSymbol XF86Eject
keycode 170 = XF86Eject XF86Eject XF86Eject XF86Eject
keycode 171 = XF86AudioNext NoSymbol XF86AudioNext
keycode 172 = XF86AudioPlay XF86AudioPause XF86AudioPlay XF86AudioPause
keycode 173 = XF86AudioPrev NoSymbol XF86AudioPrev
keycode 174 = XF86AudioStop XF86Eject XF86AudioStop XF86Eject
keycode 175 = XF86AudioRecord NoSymbol XF86AudioRecord
keycode 176 = XF86AudioRewind NoSymbol XF86AudioRewind
keycode 177 = XF86Phone NoSymbol XF86Phone
keycode 178 =
keycode 179 = XF86Tools NoSymbol XF86Tools
keycode 180 = XF86HomePage NoSymbol XF86HomePage
keycode 181 = XF86Reload NoSymbol XF86Reload
keycode 182 = XF86Close NoSymbol XF86Close
keycode 183 =
keycode 184 =
keycode 185 = XF86ScrollUp NoSymbol XF86ScrollUp
keycode 186 = XF86ScrollDown NoSymbol XF86ScrollDown
keycode 187 = parenleft NoSymbol parenleft
keycode 188 = parenright NoSymbol parenright
keycode 189 = XF86New NoSymbol XF86New
keycode 190 = Redo NoSymbol Redo
keycode 191 = XF86Tools NoSymbol XF86Tools
keycode 192 = XF86Launch5 NoSymbol XF86Launch5
keycode 193 = XF86Launch6 NoSymbol XF86Launch6
keycode 194 = XF86Launch7 NoSymbol XF86Launch7
keycode 195 = XF86Launch8 NoSymbol XF86Launch8
keycode 196 = XF86Launch9 NoSymbol XF86Launch9
keycode 197 =
keycode 198 = XF86AudioMicMute NoSymbol XF86AudioMicMute
keycode 199 = XF86TouchpadToggle NoSymbol XF86TouchpadToggle
keycode 200 = XF86TouchpadOn NoSymbol XF86TouchpadOn
keycode 201 = XF86TouchpadOff NoSymbol XF86TouchpadOff
keycode 202 =
keycode 203 = Mode_switch NoSymbol Mode_switch
keycode 204 = NoSymbol Alt_L NoSymbol Alt_L
keycode 205 = NoSymbol Meta_L NoSymbol Meta_L
keycode 206 = NoSymbol Super_L NoSymbol Super_L
keycode 207 = NoSymbol Hyper_L NoSymbol Hyper_L
keycode 208 = XF86AudioPlay NoSymbol XF86AudioPlay
keycode 209 = XF86AudioPause NoSymbol XF86AudioPause
keycode 210 = XF86Launch3 NoSymbol XF86Launch3
keycode 211 = XF86Launch4 NoSymbol XF86Launch4
keycode 212 = XF86LaunchB NoSymbol XF86LaunchB
keycode 213 = XF86Suspend NoSymbol XF86Suspend
keycode 214 = XF86Close NoSymbol XF86Close
keycode 215 = XF86AudioPlay NoSymbol XF86AudioPlay
keycode 216 = XF86AudioForward NoSymbol XF86AudioForward
keycode 217 =
keycode 218 = Print NoSymbol Print
keycode 219 =
keycode 220 = XF86WebCam NoSymbol XF86WebCam
keycode 221 =
keycode 222 =
keycode 223 = XF86Mail NoSymbol XF86Mail
keycode 224 = XF86Messenger NoSymbol XF86Messenger
keycode 225 = XF86Search NoSymbol XF86Search
keycode 226 = XF86Go NoSymbol XF86Go
keycode 227 = XF86Finance NoSymbol XF86Finance
keycode 228 = XF86Game NoSymbol XF86Game
keycode 229 = XF86Shop NoSymbol XF86Shop
keycode 230 =
keycode 231 = Cancel NoSymbol Cancel
keycode 232 = XF86MonBrightnessDown NoSymbol XF86MonBrightnessDown
keycode 233 = XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp
keycode 234 = XF86AudioMedia NoSymbol XF86AudioMedia
keycode 235 = XF86Display NoSymbol XF86Display
keycode 236 = XF86KbdLightOnOff NoSymbol XF86KbdLightOnOff
keycode 237 = XF86KbdBrightnessDown NoSymbol XF86KbdBrightnessDown
keycode 238 = XF86KbdBrightnessUp NoSymbol XF86KbdBrightnessUp
keycode 239 = XF86Send NoSymbol XF86Send
keycode 240 = XF86Reply NoSymbol XF86Reply
keycode 241 = XF86MailForward NoSymbol XF86MailForward
keycode 242 = XF86Save NoSymbol XF86Save
keycode 243 = XF86Documents NoSymbol XF86Documents
keycode 244 = XF86Battery NoSymbol XF86Battery
keycode 245 = XF86Bluetooth NoSymbol XF86Bluetooth
keycode 246 = XF86WLAN NoSymbol XF86WLAN
keycode 247 =
keycode 248 =
keycode 249 =
keycode 250 =
keycode 251 =
keycode 252 =
keycode 253 =
keycode 254 =
keycode 255 =

_________________
glitch

CF-19 Mk-1 / CF-M34 / CF-27 / CF-28 / CF-29 Mk-1 / CF-H1 Field/Health

“The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way.” Heraclitus ~5 bc


Top
   
 Post subject: Re: Linux on CF-H1
PostPosted: Sat Feb 06, 2016 4:55 pm 
Offline
User avatar

Joined: Thu Oct 14, 2010 1:13 pm
Posts: 2177
Location: TDR-HQ California
How's about making this a stickie? in the Linux section? At least add (edit) title to include keymap?or some other good description.

Map a key for OSK? (on screen keyboard)...just a suggestion...

Have you tried this with front buttons on a CF-19? I tried several things since forgotten and never got a response.

Exciting.

_________________
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/


Top
   
 Post subject: Re: Linux on CF-H1
PostPosted: Sat Feb 06, 2016 10:31 pm 
Offline

Joined: Sun Dec 07, 2014 2:39 pm
Posts: 61
Location: Around Kansas City
I get distracted easily, I forgot to finish the post above.

Say you want to change a key binding

make a file in your home directory called ".xmodmaprc" without the quotes

in this file save the keybinding like this:

keycode 9 = XF86AudioMute

to test it run this in a terminal:

you@yourcomuter:~$ xmodmap ~/.xmodmaprc

In this example the escape key now mutes the audio output. Dont panic,
when you restart your computer it will be the escape key again.

So if you like it and want it to run every time you start your computer
try the following:
_______________________________________________________________________
For KDE:

First change directory:

you@yourcomputer:~$ cd ~/.kde/Autostart/

In that directory save a file named: "xmodmap.sh" again, no quotes

in that file put the following 2 lines:

#! /bin/bash

xmodmap ~/.modmaprc


Then make the file executable:

you@yourcomputer:~$ chmod +x ./.xmodmap.sh

It should start when your computer starts. You just made a shell script.
They are great for repeat or tedious jobs.

_______________________________________________________________________
For other Window managers:

To load your new keymap at startup, add this to your ~/.xsessionrc file:

xmodmap ~/.xmodmaprc
_______________________________________________________________________
For keys on the front of the 19, those are more difficult. They are software
controlled and I havent gotten into them yet. I will look when I can.

_________________
glitch

CF-19 Mk-1 / CF-M34 / CF-27 / CF-28 / CF-29 Mk-1 / CF-H1 Field/Health

“The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way.” Heraclitus ~5 bc


Last edited by glitch on Sun Feb 07, 2016 4:30 pm, edited 1 time in total.

Top
   
PostPosted: Sun Feb 07, 2016 3:32 pm 
Offline
User avatar

Joined: Thu Oct 14, 2010 1:13 pm
Posts: 2177
Location: TDR-HQ California
Ignorance is bliss.

Is there a step to chown or something for shell scripts.....to make it really really permanent. :confused: Seems like I remember another step.
Off Topic below.
I used a shell script to start Gobi 2000 from Linux. (I wanted the GPS) Maybe it was for naming the desktop shortcut. :confused:

It's been a year or so. Now I just use echo -n "\$GPS_START" > /dev/ttyUSB2 # from terminal. I wrote a shell script to do this once called GPS START AND LINKED IT TO A GUI. (cap lock came on):)

Find Gobi with lsusb. Use that number in place of ttyUSB2 shown above.

Background. Windows automatically launches Gobi...Linux does not. \$GPS_START is only needed once per session.
End Off topic. :salute:
Clarification and confusion start and end with the same letter.

_________________
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 11 posts ]  Go to page 1 2 Next

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited