*.gif&jpeg for the desktop?

endruschat100

Member
Joined
Jul 24, 2021
Messages
119
Reaction score
9
Credits
881
hello, i hope nobody has asked that here yet.i am in pclinuxOs & apparently have no rights-certain image files(*.jpg,*.gif)-to use as desktop background.in the file manager i cannot determine the rights.i want it for the normal user account not for the administrator account! thanks
 


dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,449
Reaction score
1,055
Credits
8,957
1647788565276.png


The files with little arrow above them are soft-links. The files with a little "x" above them, you don't have permission to do anything with.
 

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,449
Reaction score
1,055
Credits
8,957
If you have sudo or roor privileges, you can copy the file to your directory and "chown" or "chmod"
the file so you have permissions to use it.
 

forester

Active Member
Joined
Mar 5, 2022
Messages
324
Reaction score
180
Credits
2,350
@dos2unix got you going, @endruschat100, off to a good start. How to become root and add to the wallpaper directory? I'll take you part way, filling in some blanks that may exist along the way..


Below is where OP wants his wallpapers to reside --
Code:
$ pwd
/usr/share/wallpapers/PCLinuxOS-2019/contents

These are the permissions on files there --

Code:
$ ls -al


drwxr-xr-x 2 root root   4096 Nov 10  2019 ./
drwxr-xr-x 3 root root   4096 Nov 10  2019 ../
-rw-r--r-- 1 root root 116540 Oct  3  2020 1024x768.jpg
-rw-r--r-- 1 root root 142714 Oct  3  2020 1280x800.jpg
-rw-r--r-- 1 root root 176936 Oct  3  2020 1440x900.jpg
-rw-r--r-- 1 root root 235502 Oct  3  2020 1680x1050.jpg
-rw-r--r-- 1 root root 304583 Oct  3  2020 1920x1200.jpg
-rw-r--r-- 1 root root  81318 Oct  3  2020 800x600.jpg

Obviously, one has to have root privileges to access and manipulate the files

(there is another solution, but sudo is not where I'll go)

So, become root.

(there are several methods of achieving this lofty goal. I'll list two faves)

1) Use a Puppy Linux LiveUSB -- and always be root, running only in RAM

2) edit boot login on kernel line in GRUB boot up

This is part of what is seen upon highlighting Kernel to boot in BRUB Menu and entering "e" --

Code:
menuentry 'PCLinuxOS (5.16.16-pclos1) 2022'  --class pclinuxos --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.16.16-pclos1-advanced-37898c80-bc10-494d-9512-02cba10369e3' {
    savedefault
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  37898c80-bc10-494d-9512-02cba10369e3
    else
      search --no-floppy --fs-uuid --set=root 37898c80-bc10-494d-9512-02cba10369e3
    fi
    linux    /boot/vmlinuz-5.16.16-pclos1 root=UUID=37898c80-bc10-494d-9512-02cba10369e3  splash quiet noiswmd resume=UUID=1e8538ed-0bb2-48c2-a308-4c1280ad8e13 audit=0


LOOK FOR THE KERNEL LINE THAT BEGINS, "linux"

Code:
linux    /boot/vmlinuz-5.16.16-pclos1 root=UUID=37898c80-bc10-494d-9512-02cba10369e3  splash quiet noiswmd resume=UUID=1e8538ed-0bb2-48c2-a308-4c1280ad8e13 audit=0


PLACE CURSON AT BEGINNING OF LINE, push the "End" button to go eol, enter the word "single" without the quotation marks AT END OF LINE

Code:
linux    /boot/vmlinuz-5.16.16-pclos1 root=UUID=37898c80-bc10-494d-9512-02cba10369e3  splash quiet noiswmd resume=UUID=1e8538ed-0bb2-48c2-a308-4c1280ad8e13 audit=0 single

and hit F10 to BOOT

Then do as @dos2unix suggests

Code:
chmod -- help

Code:
chown -- help
 
OP
endruschat100

endruschat100

Member
Joined
Jul 24, 2021
Messages
119
Reaction score
9
Credits
881
If you have sudo or roor privileges, you can copy the file to your directory and "chown" or "chmod"
the file so you have permissions to use it.
Your tip was enough, I got it, but of course I can still try the tips below
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top