Skip to main content
Topic: Adding Canon Pixma TS-8100 series printer (Read 1844 times) previous topic - next topic
0 Members and 4 Guests are viewing this topic.

Adding Canon Pixma TS-8100 series printer

Hi, I've found the package on AUR and tried to use Paru following the tutorial here:

https://youtu.be/URCDBY3LaXc?t=251

but after I enter

Code: [Select]
makepkg -si PKGBUILD

I get:

Code: [Select]
=> ERROR: You do not have write permission for the directory $BUILDDIR (/home/swarfendor437/paru).
    Aborting...

As I thought it was a permissions error I tried using sudo and get this:

Code: [Select]
==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.

Any help appreciated to install 'canon-pixma-ts5055-complete'.
Asus X470 Prime, AMD Ryzen 7 1700X, 16 Gb Corsair RAM, 2 x GT1030 GPU

Re: Adding Canon Pixma TS-8100 series printer

Reply #1
I would check the permission on "/home/swarfendor437/paru" and set them correctly (if the path is correct).

Re: Adding Canon Pixma TS-8100 series printer

Reply #2
I would check the permission on "/home/swarfendor437/paru" and set them correctly (if the path is correct).

Thanks. Permissions are
User: root
Group: root

Everything else is greyed out.

I've tried to remain as remote from 'root' as possible so as not to screw the install.
Asus X470 Prime, AMD Ryzen 7 1700X, 16 Gb Corsair RAM, 2 x GT1030 GPU

Re: Adding Canon Pixma TS-8100 series printer

Reply #3
Now you see the problem.

The permissions are set for root, and when program running under your used tries to write something there it will fail.
So my guess is to change owner (permissions?) of that directory to your user.

In normal cases I would try to avoid running AUR helpers fully as root.
Try and see how it goes.



Re: Adding Canon Pixma TS-8100 series printer

Reply #6
Thanks for the input guys - unable to remove paru usinig either:

Code: [Select]
paru -R paru
or

Code: [Select]
sudo pacman -R paru

Reports Target not found!

Would you suggest I start with a fresh install?
Asus X470 Prime, AMD Ryzen 7 1700X, 16 Gb Corsair RAM, 2 x GT1030 GPU

Re: Adding Canon Pixma TS-8100 series printer

Reply #7
Hello,

Personally, I use trizen in "non-root" mode:
Code: [Select]
sudo pacman -Sy trizen
Code: [Select]
trizen package_name

Glad to report that trizen worked - has to use Generic IPP - Printer is showing but when attempting to send test page to print nothing happens but the onscreen print queue says job complete.
Asus X470 Prime, AMD Ryzen 7 1700X, 16 Gb Corsair RAM, 2 x GT1030 GPU

Re: Adding Canon Pixma TS-8100 series printer

Reply #8
Probably you did something like "sudo git clone"  instead of just "git clone" to get the paru PKGBUILD, so the dir was owned by root, you can check .bash_history for a record of the commands you actually used. You'll need to use root permissions to delete that directory and start again, it's not an error with the YouTube guide afaict. Paru was never built or the actual source code for it downloaded, let alone installed, which is why you can't uninstall it. All you did was download the instructions to build it, but as root. No big problem.  :D

Re: Adding Canon Pixma TS-8100 series printer

Reply #9
You'll need to use root permissions to delete that directory and start again,
No need to delete, if root ownership is the problem one could do
Code: [Select]
$ cd cloned_repo_dir && sudo chown -R username:username .
where username is the actual user's name on the system.

Re: Adding Canon Pixma TS-8100 series printer

Reply #10
Although often you can get root owned files if you do a git clone I have noticed, so deleting and re-running will keep things as original:
Code: [Select]
$ git clone https://aur.archlinux.org/paru.git
$ rm -r paru
rm: remove write-protected regular file 'paru/.git/objects/pack/pack-757b45c26cde075159c7f0e96e302f9725930c05.idx'? n
rm: remove write-protected regular file 'paru/.git/objects/pack/pack-757b45c26cde075159c7f0e96e302f9725930c05.pack'? n
rm: cannot remove 'paru/.git/objects/pack': Directory not empty
This is being pedantic and probably won't make any difference in this case.  ;D  Actually I've never investigated why these hidden git files are root owned anyway?

Re: Adding Canon Pixma TS-8100 series printer

Reply #11
Something I forgot to mention when running 'Printers' in KDE (not CUPS) I get a red box with the following warning:

Failed to group devices: 'The name org.fedoraprojcet.Config.Printing was not provided by any .service files'

Could this be the issue why not printing?
Asus X470 Prime, AMD Ryzen 7 1700X, 16 Gb Corsair RAM, 2 x GT1030 GPU

Re: Adding Canon Pixma TS-8100 series printer

Reply #12
Glad to report that trizen worked - has to use Generic IPP - Printer is showing but when attempting to send test page to print nothing happens but the onscreen print queue says job complete.

Hello,

I have an old Canon IP3000 which works fine on Artix.

I installed this package:
Code: [Select]
sudo pacman -Sy cups-openrc

For Gimp, I added gutenprint.

I don't know if I installed a specific package for my printer (foomatic-db-ppds etc.).
Alaso try:
Code: [Select]
trizen canon

Then if you have openrc:
Code: [Select]
sudo rc-update add cupsd
sudo rc-service cupsd start

I add the user to wheel group:
Code: [Select]
sudo usermod -a -G wheel user
reboot

Re: Adding Canon Pixma TS-8100 series printer

Reply #13
Hi tintin,
Thanks for your help. I stopped after the first  command as it reports:

Code: [Select]
: : cups-openrc and cups-runit are in conflict (init-cups). Remove cups-runit? [y/N]

I don't want to break the system but I do think I need to be part of 'wheel' so will look at that first.

Thanks again for your time.

[UPDATE]

Code: [Select]
usermod: user 'user' does not exist

If I try:

Code: [Select]
 sudo usermod swarfendor437 -a -G wheel user
it returns with:

Code: [Select]
Usage: usermod [options] LOGIN

Options:
  -b, --badnames                allow bad names
  -c, --comment COMMENT         new value of the GECOS field
  -d, --home HOME_DIR           new home directory for the user account
  -e, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE
  -f, --inactive INACTIVE       set password inactive after expiration
                                to INACTIVE
  -g, --gid GROUP               force use GROUP as new primary group
  -G, --groups GROUPS           new list of supplementary GROUPS
  -a, --append                  append the user to the supplemental GROUPS
                                mentioned by the -G option without removing
                                the user from other groups
  -h, --help                    display this help message and exit
  -l, --login NEW_LOGIN         new value of the login name
  -L, --lock                    lock the user account
  -m, --move-home               move contents of the home directory to the
                                new location (use only with -d)
  -o, --non-unique              allow using duplicate (non-unique) UID
  -p, --password PASSWORD       use encrypted password for the new password
  -R, --root CHROOT_DIR         directory to chroot into
  -P, --prefix PREFIX_DIR       prefix directory where are located the /etc/* files
  -s, --shell SHELL             new login shell for the user account
  -u, --uid UID                 new UID for the user account
  -U, --unlock                  unlock the user account
  -v, --add-subuids FIRST-LAST  add range of subordinate uids
  -V, --del-subuids FIRST-LAST  remove range of subordinate uids
  -w, --add-subgids FIRST-LAST  add range of subordinate gids
  -W, --del-subgids FIRST-LAST  remove range of subordinate gids
Asus X470 Prime, AMD Ryzen 7 1700X, 16 Gb Corsair RAM, 2 x GT1030 GPU

Re: Adding Canon Pixma TS-8100 series printer

Reply #14

Code: [Select]
: : cups-openrc and cups-runit are in conflict (init-cups). Remove cups-runit? [y/N]
Hello,

If you have installed the artix-runit version then you only need cups-runit.


Quote
Code: [Select]
usermod: user 'user' does not exist
No, you replace user with swarfendor437:
Code: [Select]
sudo usermod -a -G wheel swarfendor437

To list the groups you belong to:
Code: [Select]
groups