SOLVED:nemesis: adding mouse control in tty or command line

Arch based Porteus community project
Post Reply
User avatar
francois
Contributor
Contributor
Posts: 5225
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus artix
Location: C'est l'hiver: la neige soudainement est là à Montréal.

SOLVED:nemesis: adding mouse control in tty or command line

Post#1 by francois » 15 Dec 2016, 03:28

Adding mouse control in tty or command line in systemd is done in the following way:

gpm:
adding mouse control to tty (getty) or text terminal outside of xorg as an aid to use mc.
gpm is provided on nemesis in addition to mc (midnight commander) base module. You have to set your mouse though.

Code: Select all

guest ~ $ sudo pacman -S hwinfo
guest ~ $ hwinfo --mouse 
...
Driver Info #0:
    XFree86 Protocol: explorerps/2
    GPM Protocol: [b]exps2[/b]

guest ~ $ GPM_ARGS="-m /dev/input/mice -t exps2"
guest ~ $ sudo systemctl enable gpm
guest ~ $ sudo reboot
Which will set the mouse in tty mode.

How can I achieve that under openrc? Or what is the equivalent of systemctl enable gpm under openrc?
Carpe diem.

Jack
Contributor
Contributor
Posts: 1357
Joined: 09 Aug 2013, 14:25
Distribution: Porteus 3.2.rc5 Mate 64 bit
Location: Marysville, OHIO USA

Re: nemesis: adding mouse control in tty or command line

Post#2 by Jack » 15 Dec 2016, 04:24

francois now I can add a mouse that will be a great help.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

jssouza
DEV Team
DEV Team
Posts: 413
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm
Location: Liechtenstein

Re: nemesis: adding mouse control in tty or command line

Post#3 by jssouza » 15 Dec 2016, 10:23

Hi François,
Maybe
pman -S gpm-openrc
?

User avatar
francois
Contributor
Contributor
Posts: 5225
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus artix
Location: C'est l'hiver: la neige soudainement est là à Montréal.

Re: nemesis: adding mouse control in tty or command line

Post#4 by francois » 15 Dec 2016, 10:30

Hi jssouza. :)
It is already installed on the system.
Carpe diem.

jssouza
DEV Team
DEV Team
Posts: 413
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm
Location: Liechtenstein

Re: nemesis: adding mouse control in tty or command line

Post#5 by jssouza » 15 Dec 2016, 10:47

Oh then have you already tried rc-update?

Code: Select all

/etc/init.d/gpm start
rc-update add gpm default

User avatar
francois
Contributor
Contributor
Posts: 5225
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus artix
Location: C'est l'hiver: la neige soudainement est là à Montréal.

Re: nemesis: adding mouse control in tty or command line

Post#6 by francois » 16 Dec 2016, 02:49

This is it. :D

Code: Select all

 # /etc/init.d/gpm start
 # GPM_ARGS="-m /dev/input/mice -t exps2"
 # rc-update add gpm default
Thanks so much.

Thus with mc (midnight commander) in console mode the mouse is available outside of X environment. :)
Carpe diem.

Post Reply