Arch based Porteus community project
Moderator: M. Eerie
-
francois
- Contributor
- Posts: 6435
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
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?
Prendre son temps, profiter de celui qui passe.
francois
-
Jack
- Contributor
- Posts: 1857
- Joined: 09 Aug 2013, 14:25
- Distribution: Porteus and Nemesis
- Location: USA
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.
Jack
-
jssouza
- Legendary
- Posts: 1165
- Joined: 09 Jul 2015, 14:17
- Distribution: Porteus x86 arm
Post#3
by jssouza » 15 Dec 2016, 10:23
Hi François,
Maybe
pman -S gpm-openrc
?
jssouza
-
francois
- Contributor
- Posts: 6435
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Post#4
by francois » 15 Dec 2016, 10:30
Hi jssouza.
It is already installed on the system.
Prendre son temps, profiter de celui qui passe.
francois
-
jssouza
- Legendary
- Posts: 1165
- Joined: 09 Jul 2015, 14:17
- Distribution: Porteus x86 arm
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
jssouza
-
francois
- Contributor
- Posts: 6435
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Post#6
by francois » 16 Dec 2016, 02:49
This is it.
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.
Prendre son temps, profiter de celui qui passe.
francois