LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't change wallpaper w/ openbox / how to change mousespeed (https://www.linuxquestions.org/questions/linux-newbie-8/cant-change-wallpaper-w-openbox-how-to-change-mousespeed-728230/)

johnnyxxxcakes 05-24-2009 04:14 PM

Can't change wallpaper w/ openbox / how to change mousespeed
 
I had two questions. I don't know if I should've split these topics into two different threads, but my first problem is:

I'm using openbox, and when I try to add wallpapers to the default folder where nitrogen (image viewer) reads the files from, it gives me permission denied. I'm sure I have access to that folder because it's in my home directory. The directory is "/home/john/images/wallpapers/shared/backgrounds". When I try to make a new folder and put all my wallpapers into that, nitrogen won't read that. So could I just change the direction folder where nitrogen reads from, or is there a fix to this?

I also wanted to know how to change the mouse cursor speed in openbox.

jamescondron 05-24-2009 04:18 PM

I can't help with the second problem, but the first; what are the permissions on the directory? And is the directory in use at the moment? Try
Code:

# lsof|grep /home/john/images/wallpapers/shared/backgrounds
To tell whether it is in use or not

johnnyxxxcakes 05-24-2009 04:21 PM

Quote:

Originally Posted by jamescondron (Post 3551380)
I can't help with the second problem, but the first; what are the permissions on the directory? And is the directory in use at the moment? Try
Code:

# lsof|grep /home/john/images/wallpapers/shared/backgrounds
To tell whether it is in use or not

I tried that and it returned nothing.

jamescondron 05-24-2009 04:25 PM

Well, its not in use then, but what are the permissions on it? I know it is in your home directory, but it wouldn't be the first time something counter-intuitive has been done in a home directory

johnnyxxxcakes 05-24-2009 04:28 PM

Quote:

Originally Posted by jamescondron (Post 3551388)
Well, its not in use then, but what are the permissions on it? I know it is in your home directory, but it wouldn't be the first time something counter-intuitive has been done in a home directory

I'll take a screenshot and show you the permissions. I believe these would be the permissions:

http://i40.tinypic.com/2r7ueit.png

jamescondron 05-24-2009 04:30 PM

Odd, okay, so walk me through this- how exactly are tyou copying the images, at what point does the error come up, what exactly does the error say? Have you tried different ways to copy it?


EDIT:
Just a thought, you didn't put that # on the front of the command I gave, did you?

johnnyxxxcakes 05-24-2009 04:35 PM

Quote:

Originally Posted by jamescondron (Post 3551398)
Odd, okay, so walk me through this- how exactly are tyou copying the images, at what point does the error come up, what exactly does the error say? Have you tried different ways to copy it?

Okay, one method I tried was just highlighting all the files from the directory that had all of my wallpapers (flash drive), and had the folder that I wanted the files coppied to open, so I tried to drag them over, but I get a little message box saying "Permission denied." So I'm thinking, "I can't just use sudo in the terminal and try to copy them over, right?" So I tried that, and it did copy them over. But when I try to open nitrogen to view the image previews, they are blank thumbnails. I'll take another screenshot.

http://i42.tinypic.com/sw7b7q.png

And when I try to click on them and hit "Apply" to change the wallpaper, nothing happens. I can't put all of the files in the folder one level up than the "backgrounds" folder. And the "backgrounds" folder is the folder nitrogen reads from. So I'm thinking if I can change the reading folder of nitrogen, I could get around this, couldn't I?

EDIT: I tried both with and without the # sign. And it still returned nothing.

jamescondron 05-24-2009 04:37 PM

You could, but thats solving the symtoms, not the problem. After you did a sudo copy, did you change the ownership back to you? Or are they still owned by root?

johnnyxxxcakes 05-24-2009 04:42 PM

Quote:

Originally Posted by jamescondron (Post 3551404)
You could, but thats solving the symtoms, not the problem. After you did a sudo copy, did you change the ownership back to you? Or are they still owned by root?

I have no clue. When I tried doing the copying from the terminal, I used just these commands:

Quote:

cp /media/disk/Wallpapers/*.* /home/john/images/wallpapers/shared/backgrounds
And then I just closed the terminal, and now here I am.

jamescondron 05-24-2009 04:43 PM

Okay, go for
Code:

# chown john:john /home/john/images/wallpapers/shared/backgrounds/*
Incidentally, did you put the hash in last time?

johnnyxxxcakes 05-24-2009 04:45 PM

Quote:

Originally Posted by jamescondron (Post 3551406)
Okay, go for
Code:

# chown john:john /home/john/images/wallpapers/shared/backgrounds/*
Incidentally, did you put the hash in last time?

Okay, I will try that. And yes, the first time I tried without the hash, and the second time I tried with it.

johnnyxxxcakes 05-24-2009 04:48 PM

Success! That fixed my issue perfectly. Thank you!

jamescondron 05-24-2009 05:52 PM

Perfect, glad I could help- yeah, if you see a hash at the start of a command it means to run as root, a dollar is as normal user. (Or a comment ;) )

johnnyxxxcakes 05-24-2009 07:03 PM

Quote:

Originally Posted by jamescondron (Post 3551445)
Perfect, glad I could help- yeah, if you see a hash at the start of a command it means to run as root, a dollar is as normal user. (Or a comment ;) )

So that's what that means haha. Well I'll remember that, and I'll mark this thread as solved. Now for the mouse speed issue. :D

jamescondron 05-24-2009 07:11 PM

Mouse, I don't know if there is a specific openbox solution, for me I'd use xset; see the man page under 'mouse' and give it a go from there


All times are GMT -5. The time now is 08:55 PM.