Results 1 to 3 of 3

Thread: installing xp-pen device driver from shell script

  1. #1
    Join Date
    Sep 2015
    Location
    Northwest UK
    Beans
    152
    Distro
    Lubuntu 20.04 Focal Fossa

    installing xp-pen device driver from shell script

    I have an xp-pen artist 12 drawing tablet which claims compatibility with ubuntu The manufacturer provides three linux drivers for the device two of which list ubuntu: Ubuntu、Centos、Fedora、Red Hat、Manjaro、Arch、Debian、OpenSUSE、elementary OS、Mint、ezgo Linux、Pop!_OS、Mageia XP-PEN-pentablet-3.2.0.210824-1.x86_64.tar.gz Ubuntu、Debian、elementary OS、Mint、ezgo Linux、Pop!_OS XP-PEN-pentablet-3.2.0.210824-1.x86_64.deb Centos、Fedora、Red Hat、OpenSUSE、Mageia XP-PEN-pentablet-3.2.0.210824-1.x86_64.rpm I downloaded XP-PEN-pentablet-3.2.0.210824-1.x86_64.tar.gz When I open it with ark, it contains 3 items: directory 'App' install.sh uninstall.sh I tried to run install.sh and got;
    Code:
     me@me-pc:~/Desktop/xp-pen-pentablet-3.2.0.210824-1.x86_64$ chmod +x install.sh me@me-pc:~/Desktop/xp-pen-pentablet-3.2.0.210824-1.x86_64$ ./install.sh /home/me/Desktop/xp-pen-pentablet-3.2.0.210824-1.x86_64/. cp: cannot create regular file '/lib/udev/rules.d/10-xp-pen.rules': Permission denied cp: cannot create directory '/usr/lib/pentablet': Permission denied can not find start script
    Now I'm lost. Can anyone give me any pointers? This is the full install script: [code] #! /bin/bash # cd to current path dirname=`dirname $0` tmp="${dirname#?}" if [ "${dirname%$tmp}" != "/" ]; then dirname=$PWD/$dirname fi echo $dirname cd "$dirname" # close driver if it running AppName=pentablet AppDir=pentablet pid=`ps -e|grep $AppName` appScript=$AppName".sh" if [ -n "$pid" ]; then echo $pid arr=() while read -r line; do arr+=("$line") done
    I like the dollar uptime thing

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,597
    Distro
    Ubuntu

    Re: installing xp-pen device driver from shell script

    Preface it with sudo
    Code:
    me@me-pc:~/Desktop/xp-pen-pentablet-3.2.0.210824-1.x86_64$ sudo ./install.sh
    Or run as root.
    You need to use sudo or be root in order to do the write to the directories listed.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    Sep 2015
    Location
    Northwest UK
    Beans
    152
    Distro
    Lubuntu 20.04 Focal Fossa

    Re: installing xp-pen device driver from shell script

    Thanks I'll try. edit.. thanks, it worked a treat. I feel stupid
    Last edited by nginmu; October 18th, 2021 at 08:41 PM.
    I like the dollar uptime thing

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •