Someone developed a script for ubuntu to get the magic mouse 2 gestures to work:
https://github.com/biggreenogre/mm2
I've tried to figure out what needs to be changed in order to do what's needed but I'm at a loss. Can anyone with more experience chime in and explain what needs to be changed.
Here's the output in the terminal after running the script:
Code: Select all
root@debianMachine29:/home/rsherry/Downloads/mm2-master/mm2# ./magicmouse2_build.sh
Reading package lists... Done
NOTICE: 'linux' packaging is maintained in the 'Git' version control system at:
https://anonscm.debian.org/git/kernel/linux.git
Please use:
git clone https://anonscm.debian.org/git/kernel/linux.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 97.0 MB of source archives.
Get:1 http://ftp.us.debian.org/debian stretch/main linux 4.9.51-1 (dsc) [123 kB]
Get:2 http://ftp.us.debian.org/debian stretch/main linux 4.9.51-1 (tar) [94.5 MB]
Get:3 http://ftp.us.debian.org/debian stretch/main linux 4.9.51-1 (diff) [2,402 kB]
Fetched 97.0 MB in 52s (1,846 kB/s)
sh: 1: dpkg-source: not found
W: Download is performed unsandboxed as root as file 'linux_4.9.51-1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Unpack command 'dpkg-source --no-check -x linux_4.9.51-1.dsc' failed.
N: Check if the 'dpkg-dev' package is installed.
cp: cannot stat 'dist_src/linux-4.9.0/drivers/hid': No such file or directory
./magicmouse2_build.sh: line 25: cd: hid: No such file or directory
./magicmouse2_build.sh: line 28: ../hid-ids.diff: No such file or directory
./magicmouse2_build.sh: line 29: ../hid-core.diff: No such file or directory
./magicmouse2_build.sh: line 30: ../hid-magicmouse.diff: No such file or directory
./magicmouse2_build.sh: line 33: make: command not found
sudo: make: command not found
cp: cannot stat '/lib/modules/4.9.0-4-amd64/extra/*': No such file or directory
modprobe: ERROR: ../libkmod/libkmod-module.c:192 kmod_module_parse_depline() ctx=0x55d70267d010 path=/lib/modules/4.9.0-4-amd64/kernel/drivers/hid/hid.ko error=No such file or directory
modprobe: ERROR: ../libkmod/libkmod-module.c:192 kmod_module_parse_depline() ctx=0x55d70267d010 path=/lib/modules/4.9.0-4-amd64/kernel/drivers/hid/hid.ko error=No such file or directory
modprobe: ERROR: could not insert 'hid_magicmouse': Unknown symbol in module, or unknown parameter (see dmesg)
Magicmouse module failed to load. Time to debug?
sudo: lsinput: command not found
Magicmouse module loaded but no MM2 input device detected. Check udev hwdb for MM2 exists in /etc/udev/hwdb.d/
root@debianMachine29:/home/rsherry/Downloads/mm2-master/mm2# lsinput
bash: lsinput: command not found