General TC > General TC Talk
[SOLVED] Japanese Epson Laptop - keyboard help and Japanese font help
Rich:
Hi kirin-rex
I don't see anything wrong in your setup. You said:
--- Quote from: kirin-rex on April 06, 2020, 10:19:40 PM --- ... However, if I click EXIT and EXIT TO PROMPT, I can type " with no problem. If I erase " and type STARTX, I can still type " with no problem. ...
--- End quote ---
So, if I understand you correctly, just doing Exit to Prompt and then startx fixes it?
Try moving the command:
--- Code: ---loadkmap < /usr/share/kmap/qwerty/jp106.kmap
--- End code ---
from bootlocal.sh to bootsync.sh.
It should appear before the line that calls bootlocal.sh , like this:
--- Code: ---loadkmap < /usr/share/kmap/qwerty/jp106.kmap
/opt/bootlocal.sh &
--- End code ---
[EDIT]: Fixed typo. Changed loadmap to loadkmap. Rich
kirin-rex:
Thank you, Rich! You're awesome!
That fixed the problem.
I added the lines in bootsync.sh.
It gave me a little trouble because it didn't want to save. Same permission trouble I had before the first time I wanted to edit bootlocal. Luckily, I wrote all the steps on that thread.
I used
--- Code: ---sudo chown tc:staff /opt/bootsync.sh
sudo chmod 775 /opt/bootsync.sh
--- End code ---
That let me save. Had a minor problem with a misspelling (wrote "loadmap" instead of "loadkmap"), but it was easily found and fixed.
Keyboard seems properly working now. Just have to add it to the other 13 laptops, but seems to be good!
Thank you again for your outstanding help.
Rich:
Hi kirin-rex
I just want to add some notes here in case someone else runs into the same problem.
Here's what I think was happening:
1. bootsync.sh is launched almost at the end of tc-config.
2. bootsync.sh runs synchronously in the foreground effectively blocking tc-config from running until it completes.
3. The last line in bootsync.sh launches bootlocal.sh to run in the background. This allows tc-config to continue
executing in parallel with bootlocal.sh.
4. tc-config executes its last few commands and returns control to /etc/inittab.
5. /etc/inittab logs in the user which executes the contents ~/.profile which launches X
6. We now have a potential race between bootlocal.sh completing and X starting.
The "loadkmap < /usr/share/kmap/qwerty/jp106.kmap" command needs to run before X starts. Placing it in bootlocal.sh does
not guarantee that. Placing it in bootsync.sh does.
Maybe the FAQ page should be updated to recommend using bootsync.sh instead of bootlocal.sh for this function?
--- Quote from: kirin-rex on April 09, 2020, 04:55:37 AM --- ... Had a minor problem with a misspelling (wrote "loadmap" instead of "loadkmap"), but it was easily found and fixed. ...
--- End quote ---
That was my fault. I copy/pasted your misspelling from another post. :) I will fix those posts.
curaga:
FAQ updated, thanks.
kirin-rex:
Back to the font problem.
tldr version: Put a new font in /usr/share/fonts/ but it disappears on reboot.
I want to be able to see Japanese characters when using firefox, so I attempted to install a Japanese font.
Most advice I've seen says to simply copy the font to /usr/share/fonts/, but I got a "permission denied", so I used terminal:
--- Code: ---sudo cp -f /sdb1/MPLUS1p-Medium.ttf /usr/share/fonts/
--- End code ---
That worked ... but on reboot the font is gone again.
Some advice says put is in /usr/local/share/fonts/ but I don't have a fonts folder in /user/local/share.
Other advice says maybe put it in ~/.fonts ... but I don't know where that is.
I'm thinking there's something really simply I need to do to keep the font in the /usr/share/fonts folder.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version