6
6
Run the following command in a terminal:
7
7
8
8
``` shell
9
- python3 -m pip install --local git+https://github.com/eeriemyxi/mechvibes-lite
9
+ user: ~ $ python3 -m pip install --local git+https://github.com/eeriemyxi/mechvibes-lite
10
10
```
11
11
12
12
Now you should be able to do ` mvibes --version ` from your terminal. If not then
@@ -24,7 +24,7 @@ processes running from your user account. First you need to add your user to the
24
24
` input ` group:
25
25
26
26
``` shell
27
- sudo usermod -aG input username
27
+ user: ~ $ sudo usermod -aG input username
28
28
```
29
29
Replace ` username ` with your account's username.
30
30
@@ -53,10 +53,10 @@ receive input events from.
53
53
54
54
!!! note
55
55
The instructions below are for Ubuntu. Please adapt them for your system yourself.
56
-
56
+
57
57
Create a new user:
58
58
```
59
- sudo adduser second-user
59
+ usual-user:~$ sudo adduser second-user
60
60
```
61
61
62
62
` second-user ` is the username of the second account. Please follow the
@@ -65,16 +65,20 @@ instructions given to you by this command.
65
65
Add the new user to ` input ` group:
66
66
67
67
``` shell
68
- sudo usermod -aG input second-user
68
+ usual-user: ~ $ sudo usermod -aG input second-user
69
69
```
70
70
71
71
Log out and log back in. Now make sure your new account can read input events by
72
72
reading [ this] ( #testing-access-for-input-event ) . However instead of running
73
- ` evtest ` do ` sudo -u second-user evtest ` .
73
+ ` evtest ` do:
74
+
75
+ ``` shell
76
+ usual-user:~ $ sudo -u second-user evtest
77
+ ```
74
78
75
79
Create a system-wide configuration directory for Mechvibes Lite:
76
80
``` shell
77
- sudo cp -r ~ /.config/mechvibes-lite/ /etc/mechvibes-lite
81
+ usual-user: ~ $ sudo cp -r ~ /.config/mechvibes-lite/ /etc/mechvibes-lite
78
82
```
79
83
80
84
The command above will copy your local configuration file directory to ` /etc `
@@ -84,20 +88,18 @@ to not have issues with file permissions.
84
88
Install Mechvibes Lite on the new user account:
85
89
86
90
``` shell
87
- sudo apt install python3-venv
88
- sudo -u second-user bash
89
- cd /home/second-user # or just cd
90
- /usr/bin/python3 -m venv mvibes-venv
91
- cd mvibes-venv
92
- source ./bin/activate
93
- pip install git+https://github.com/eeriemyxi/mechvibes-lite
94
- exit
91
+ usual-user:~ $ sudo apt install python3-venv
92
+ usual-user:~ $ sudo -iu second-user
93
+ second-user:~ $ python3 -m venv mvibes-venv
94
+ second-user:~ $ source mvibes-venv/bin/activate
95
+ second-user:~ $ pip install git+https://github.com/eeriemyxi/mechvibes-lite
96
+ second-user:~ $ deactivate && exit
95
97
```
96
98
97
99
Now do this from the usual account to start the ` wskey ` server:
98
100
99
101
``` shell
100
- sudo -u second-user /home/second-user/ mvibes-venv/bin/mvibes- wskey daemon
102
+ usual-user: ~ $ sudo -iu second-user mvibes-venv/bin/mvibes wskey daemon
101
103
```
102
104
103
105
### Method III
@@ -112,12 +114,12 @@ no desire to make instructions for this. Contributions welcome.
112
114
Install ` evtest ` package:
113
115
114
116
```
115
- sudo apt install evtest
117
+ user:~$ sudo apt install evtest
116
118
```
117
119
118
120
Run ` evtest ` then select a device from the list:
119
121
```
120
- ❯ evtest
122
+ user:~$ evtest
121
123
No device specified, trying to scan all of /dev/input/event*
122
124
Not running as root, no devices may be available.
123
125
Available devices:
0 commit comments