Configurar Teclado LXDE ABNT2 x11rdp xrdp
Autor: Antonio Martins | Publicado: 2016-09-13T14:47:00-03:00








Ola Pessoal, hoje estarei compartilhando um método fácil para configuração do teclado para quem utiliza xrdp ou x11rdp em seu servidor linux com a interface gráfica com base no LXDE.

Partindo do principio que você ja esteja com o seu servidor xrdp/x11rdp instalado e configurado fazer os seguinte passos abaixo em sua console com o usuário root.

1 - editar o arquivo /etc/default/keyboard
vi /etc/default/keyboard

2 - Após deixar os textos do arquivo idem abaixo.

XKBMODEL="abnt2"XKBLAYOUT="br"XKBVARIANT="abnt2"XKBOPTIONS=""

3 - O proximo passo é você acessar o arquivo /etc/xdg/lxsession/LXDE/autostart
vi&nbsp; /etc/xdg/lxsession/LXDE/autostart

4 - Após deixar os textos do arquivo idem abaixo.
&nbsp;&nbsp; &nbsp;setxkbmap -layout "br"
5 - O próximo passo é fazer um backup de seus arquivos km-0409.ini e km-0416.ini localizados na pasta /etc/xrdp
cd&nbsp; /etc/xrdp
cp&nbsp; km-0409.ini km-0409.in.original&nbsp;
echo " " &gt; km-0409.ini
cp&nbsp; km-0416.ini km-0416.in.original 

echo " " &gt; km-0416.ini

obs: caso vc não tenha o arquivo km-0416.in.original faça a criação do mesmo com o comando abaixo.

touch km-0416.ini

6 -Copie o conteúdo abaixo e cole dentro dos arquivos km-0409.ini e km-0416.ini.

#inicio da copia
[noshift]Key8=0:0Key9=65307:27Key10=49:49Key11=50:50Key12=51:51Key13=52:52Key14=53:53Key15=54:54Key16=55:55Key17=56:56Key18=57:57Key19=48:48Key20=45:45Key21=61:61Key22=65288:8Key23=65289:9Key24=113:113Key25=119:119Key26=101:101Key27=114:114Key28=116:116Key29=121:121Key30=117:117Key31=105:105Key32=111:111Key33=112:112Key34=65105:180Key35=91:91Key36=65293:13Key37=65507:0Key38=97:97Key39=115:115Key40=100:100Key41=102:102Key42=103:103Key43=104:104Key44=106:106Key45=107:107Key46=108:108Key47=231:231Key48=65107:126Key49=39:39Key50=65505:0Key51=93:93Key52=122:122Key53=120:120Key54=99:99Key55=118:118Key56=98:98Key57=110:110Key58=109:109Key59=44:44Key60=46:46Key61=59:59Key62=65506:0Key63=65450:42Key64=65513:0Key65=32:32Key66=65509:0Key67=65470:0Key68=65471:0Key69=65472:0Key70=65473:0Key71=65474:0Key72=65475:0Key73=65476:0Key74=65477:0Key75=65478:0Key76=65479:0Key77=65407:0Key78=65300:0Key79=65429:0Key80=65431:0Key81=65434:0Key82=65453:45Key83=65430:0Key84=65437:0Key85=65432:0Key86=65451:43Key87=65436:0Key88=65433:0Key89=65435:0Key90=65438:0Key91=65439:0Key92=0:0Key93=65406:0Key94=92:92Key95=65480:0Key96=65481:0Key97=65360:0Key98=65362:0Key99=65365:0Key100=65361:0Key101=0:0Key102=65363:0Key103=65367:0Key104=65364:0Key105=65366:0Key106=65379:0Key107=65535:127Key108=65421:13Key109=65508:0Key110=65299:0Key111=65377:0Key112=65455:47Key113=65027:0Key114=0:0Key115=65515:0Key116=65516:0Key117=65383:0Key118=0:0Key119=0:0Key120=0:0Key121=0:0Key122=0:0Key123=47:47Key124=65027:0Key125=0:0Key126=65469:61Key127=0:0Key128=0:0Key129=0:0Key130=0:0Key131=0:0Key132=0:0Key133=0:0Key134=65454:46Key135=0:0Key136=0:0Key137=0:0[shift]Key8=0:0Key9=65307:27Key10=33:33Key11=64:64Key12=35:35Key13=36:36Key14=37:37Key15=65111:168Key16=38:38Key17=42:42Key18=40:40Key19=41:41Key20=95:95Key21=43:43Key22=65288:8Key23=65056:0Key24=81:81Key25=87:87Key26=69:69Key27=82:82Key28=84:84Key29=89:89Key30=85:85Key31=73:73Key32=79:79Key33=80:80Key34=65104:96Key35=123:123Key36=65293:13Key37=65507:0Key38=65:65Key39=83:83Key40=68:68Key41=70:70Key42=71:71Key43=72:72Key44=74:74Key45=75:75Key46=76:76Key47=199:199Key48=65106:94Key49=34:34Key50=65505:0Key51=125:125Key52=90:90Key53=88:88Key54=67:67Key55=86:86Key56=66:66Key57=78:78Key58=77:77Key59=60:60Key60=62:62Key61=58:58Key62=65506:0Key63=65450:42Key64=65511:0Key65=32:32Key66=65509:0Key67=65470:0Key68=65471:0Key69=65472:0Key70=65473:0Key71=65474:0Key72=65475:0Key73=65476:0Key74=65477:0Key75=65478:0Key76=65479:0Key77=65273:0Key78=65300:0Key79=65463:55Key80=65464:56Key81=65465:57Key82=65453:45Key83=65460:52Key84=65461:53Key85=65462:54Key86=65451:43Key87=65457:49Key88=65458:50Key89=65459:51Key90=65456:48Key91=65452:44Key92=0:0Key93=65406:0Key94=124:124Key95=65480:0Key96=65481:0Key97=65360:0Key98=65362:0Key99=65365:0Key100=65361:0Key101=0:0Key102=65363:0Key103=65367:0Key104=65364:0Key105=65366:0Key106=65379:0Key107=65535:127Key108=65421:13Key109=65508:0Key110=65299:0Key111=65377:0Key112=65455:47Key113=65027:0Key114=0:0Key115=65515:0Key116=65516:0Key117=65383:0Key118=0:0Key119=0:0Key120=0:0Key121=0:0Key122=0:0Key123=63:63Key124=65027:0Key125=65513:0Key126=65469:61Key127=65515:0Key128=65517:0Key129=0:0Key130=0:0Key131=0:0Key132=0:0Key133=0:0Key134=65454:46Key135=0:0Key136=0:0Key137=0:0[altgr]Key8=0:0Key9=65307:27Key10=185:185Key11=178:178Key12=179:179Key13=163:163Key14=162:162Key15=172:172Key16=123:123Key17=91:91Key18=93:93Key19=125:125Key20=92:92Key21=167:167Key22=65288:8Key23=65289:9Key24=47:47Key25=63:63Key26=8364:8364Key27=174:174Key28=956:359Key29=2299:8592Key30=2302:8595Key31=2301:8594Key32=248:248Key33=254:254Key34=180:180Key35=170:170Key36=65293:13Key37=65507:0Key38=230:230Key39=223:223Key40=240:240Key41=496:273Key42=959:331Key43=689:295Key44=106:106Key45=930:312Key46=435:322Key47=65105:180Key48=126:126Key49=172:172Key50=65505:0Key51=186:186Key52=171:171Key53=187:187Key54=169:169Key55=2770:8220Key56=2771:8221Key57=110:110Key58=181:181Key59=2211:0Key60=183:183Key61=65120:0Key62=65506:0Key63=65450:42Key64=65513:0Key65=32:32Key66=65509:0Key67=65470:0Key68=65471:0Key69=65472:0Key70=65473:0Key71=65474:0Key72=65475:0Key73=65476:0Key74=65477:0Key75=65478:0Key76=65479:0Key77=65407:0Key78=65300:0Key79=65429:0Key80=65431:0Key81=65434:0Key82=65453:45Key83=65430:0Key84=65437:0Key85=65432:0Key86=65451:43Key87=65436:0Key88=65433:0Key89=65435:0Key90=65438:0Key91=65439:0Key92=0:0Key93=65406:0Key94=186:186Key95=65480:0Key96=65481:0Key97=65360:0Key98=65362:0Key99=65365:0Key100=65361:0Key101=0:0Key102=65363:0Key103=65367:0Key104=65364:0Key105=65366:0Key106=65379:0Key107=65535:127Key108=65421:13Key109=65508:0Key110=65299:0Key111=0:0Key112=65455:47Key113=65027:0Key114=0:0Key115=65515:0Key116=65516:0Key117=65383:0Key118=0:0Key119=0:0Key120=0:0Key121=0:0Key122=0:0Key123=176:176Key124=65027:0Key125=0:0Key126=65469:61Key127=0:0Key128=0:0Key129=0:0Key130=0:0Key131=0:0Key132=0:0Key133=0:0Key134=65454:46Key135=0:0Key136=0:0Key137=0:0[capslock]Key8=0:0Key9=65307:27Key10=49:49Key11=50:50Key12=51:51Key13=52:52Key14=53:53Key15=54:54Key16=55:55Key17=56:56Key18=57:57Key19=48:48Key20=45:45Key21=61:61Key22=65288:8Key23=65289:9Key24=81:81Key25=87:87Key26=69:69Key27=82:82Key28=84:84Key29=89:89Key30=85:85Key31=73:73Key32=79:79Key33=80:80Key34=65105:180Key35=91:91Key36=65293:13Key37=65507:0Key38=65:65Key39=83:83Key40=68:68Key41=70:70Key42=71:71Key43=72:72Key44=74:74Key45=75:75Key46=76:76Key47=199:199Key48=65107:126Key49=39:39Key50=65505:0Key51=93:93Key52=90:90Key53=88:88Key54=67:67Key55=86:86Key56=66:66Key57=78:78Key58=77:77Key59=44:44Key60=46:46Key61=59:59Key62=65506:0Key63=65450:42Key64=65513:0Key65=32:32Key66=65509:0Key67=65470:0Key68=65471:0Key69=65472:0Key70=65473:0Key71=65474:0Key72=65475:0Key73=65476:0Key74=65477:0Key75=65478:0Key76=65479:0Key77=65407:0Key78=65300:0Key79=65429:0Key80=65431:0Key81=65434:0Key82=65453:45Key83=65430:0Key84=65437:0Key85=65432:0Key86=65451:43Key87=65436:0Key88=65433:0Key89=65435:0Key90=65438:0Key91=65439:0Key92=0:0Key93=65406:0Key94=92:92Key95=65480:0Key96=65481:0Key97=65360:0Key98=65362:0Key99=65365:0Key100=65361:0Key101=0:0Key102=65363:0Key103=65367:0Key104=65364:0Key105=65366:0Key106=65379:0Key107=65535:127Key108=65421:13Key109=65508:0Key110=65299:0Key111=65377:0Key112=65455:47Key113=65027:0Key114=0:0Key115=65515:0Key116=65516:0Key117=65383:0Key118=0:0Key119=0:0Key120=0:0Key121=0:0Key122=0:0Key123=47:47Key124=65027:0Key125=0:0Key126=65469:61Key127=0:0Key128=0:0Key129=0:0Key130=0:0Key131=0:0Key132=0:0Key133=0:0Key134=65454:46Key135=0:0Key136=0:0Key137=0:0[shiftcapslock]Key8=0:0Key9=65307:27Key10=33:33Key11=64:64Key12=35:35Key13=36:36Key14=37:37Key15=65111:168Key16=38:38Key17=42:42Key18=40:40Key19=41:41Key20=95:95Key21=43:43Key22=65288:8Key23=65056:0Key24=113:113Key25=119:119Key26=101:101Key27=114:114Key28=116:116Key29=121:121Key30=117:117Key31=105:105Key32=111:111Key33=112:112Key34=65104:96Key35=123:123Key36=65293:13Key37=65507:0Key38=97:97Key39=115:115Key40=100:100Key41=102:102Key42=103:103Key43=104:104Key44=106:106Key45=107:107Key46=108:108Key47=231:231Key48=65106:94Key49=34:34Key50=65505:0Key51=125:125Key52=122:122Key53=120:120Key54=99:99Key55=118:118Key56=98:98Key57=110:110Key58=109:109Key59=60:60Key60=62:62Key61=58:58Key62=65506:0Key63=65450:42Key64=65511:0Key65=32:32Key66=65509:0Key67=65470:0Key68=65471:0Key69=65472:0Key70=65473:0Key71=65474:0Key72=65475:0Key73=65476:0Key74=65477:0Key75=65478:0Key76=65479:0Key77=65273:0Key78=65300:0Key79=65463:55Key80=65464:56Key81=65465:57Key82=65453:45Key83=65460:52Key84=65461:53Key85=65462:54Key86=65451:43Key87=65457:49Key88=65458:50Key89=65459:51Key90=65456:48Key91=65452:44Key92=0:0Key93=65406:0Key94=124:124Key95=65480:0Key96=65481:0Key97=65360:0Key98=65362:0Key99=65365:0Key100=65361:0Key101=0:0Key102=65363:0Key103=65367:0Key104=65364:0Key105=65366:0Key106=65379:0Key107=65535:127Key108=65421:13Key109=65508:0Key110=65299:0Key111=65377:0Key112=65455:47Key113=65027:0Key114=0:0Key115=65515:0Key116=65516:0Key117=65383:0Key118=0:0Key119=0:0Key120=0:0Key121=0:0Key122=0:0Key123=63:63Key124=65027:0Key125=65513:0Key126=65469:61Key127=65515:0Key128=65517:0Key129=0:0Key130=0:0Key131=0:0Key132=0:0Key133=0:0Key134=65454:46Key135=0:0Key136=0:0Key137=0:0
#Fim da copia

7 - faça o restart e VOILÁ.