maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Themes (https://talk.maemo.org/forumdisplay.php?f=49)
-   -   How to copy a theme? (https://talk.maemo.org/showthread.php?t=58623)

Coffee 2010-07-17 08:09

How to copy a theme?
 
Guys,
This probably seems such a stupid question though I just can't get it correct, could someone please assist me.

I have installed a few themes and want to copy the themes to MyDocs so I can pick bits and pieces I like to make my own bastardised theme.

Example of what I was doing though didn't work.
sudo gainroot
mkdir MyDocs/THEME/ (THIS WORKED FINE)
cp /usr/share/themes/THEME/* MyDocs/THEME/

Then to paste back
cp MyDocs/THEME/* /usr/share/themes/THEME/

I am sorry I don't understand coding side at all, obvious i am sure, lol.

Stephen

Joorin 2010-07-17 08:33

Re: How to copy a theme?
 
What didn't work? How didn't it work? What did you expect?

Coffee 2010-07-17 08:38

Re: How to copy a theme?
 
Made the directory though wouldn't copy anything.
Came up saying something like omitting directory.

AlMehdi 2010-07-17 08:44

Re: How to copy a theme?
 
Quote:

Originally Posted by Coffee (Post 754678)
Guys,
This probably seems such a stupid question though I just can't get it correct, could someone please assist me.

I have installed a few themes and want to copy the themes to MyDocs so I can pick bits and pieces I like to make my own bastardised theme.

Example of what I was doing though didn't work.
sudo gainroot
mkdir MyDocs/THEME/ (THIS WORKED FINE)
cp /usr/share/themes/THEME/* MyDocs/THEME/

Then to paste back
cp MyDocs/THEME/* /usr/share/themes/THEME/

I am sorry I don't understand coding side at all, obvious i am sure, lol.

Stephen

Are the "THEME" the theme name?

Do like this

sudo cp /usr/share/themes/ /home/user/MyDocs/THEME

and

sudo cp /home/user/MyDocs/THEME /usr/share/themes/THEME

Coffee 2010-07-17 09:04

Re: How to copy a theme?
 
AlMedhi,
Yes mate the THEME was to represent the theme name.
I am trying to copy the complete theme and all it's sub folders to MyDocs with a direct replication of sub folders.

trying to follow your post, I created a folder in MyDocs/theme and did the following:
sudo cp /usr/share/themes/ /home/user/MyDocs/theme
looked as though worked as it returned the typical : /home/user/ #
When I looked, nothing.

Sorry to be a pain

Coffee 2010-07-17 09:09

Re: How to copy a theme?
 
AlMedhi,
All good. It worked, I thought you were copying all themes to a folder called theme in mydocs. Hence why i created a folder called theme.
When I did exactly as you did and replaced the theme with the theme name it worked perfectly, sorry.

Thanks, much appreciated.

Stephen

AlMehdi 2010-07-17 09:16

Re: How to copy a theme?
 
No worries ;)

TNiga 2010-07-17 09:28

Re: How to copy a theme?
 
This should also work
Code:

cp -r /usr/share/themes/THEME/* /home/user/MyDocs/THEME/

Coffee 2010-07-17 10:15

Re: How to copy a theme?
 
AlMedhi,
Mate, I am dumb founded. I got it to work once and not again since, could you please check I am doing it correctly for me.

sudo cp /usr/share/themes/ /home/user/MyDocs/dthemenight-themedir
"dthemenight-themedir" being the theme name under /usr/share/themes/.
Do I need to create the folder first under MyDocs:
mkdir MyDocs/dthemenight-themedir ?

Coffee 2010-07-17 10:20

Re: How to copy a theme?
 
Quote:

Originally Posted by TNiga (Post 754725)
This should also work
Code:

cp -r /usr/share/themes/THEME/* /home/user/MyDocs/THEME/

Tniga,
Thanks for the reply mate. I tried your suggestion also and didn't work. went through all the folders and replied back Operation not permitted & cannot create symlink. I am real sorry to be a pain guys and very appreciative of your help, I am seriously out of my depths here and no idea.

Stephen

Coffee 2010-07-17 10:31

Re: How to copy a theme?
 
What am I missing, not sure if looking to hard and simply not seeing it.

Posted by AlMedhi:
sudo cp /usr/share/themes/ /home/user/MyDocs/THEME

What I am typing in X-Term:
(I have made the folder: /home/user/MyDocs/dthemenight-themedir)
sudo cp /usr/share/themes/ /home/user/MyDocs/dthemenight-themedir

Simply not copying anything though worked once, am very lost.

TNiga 2010-07-17 11:06

Re: How to copy a theme?
 
Quote:

Originally Posted by Coffee (Post 754791)
What am I missing, not sure if looking to hard and simply not seeing it.

Posted by AlMedhi:
sudo cp /usr/share/themes/ /home/user/MyDocs/THEME

What I am typing in X-Term:
(I have made the folder: /home/user/MyDocs/dthemenight-themedir)
sudo cp /usr/share/themes/ /home/user/MyDocs/dthemenight-themedir

Simply not copying anything though worked once, am very lost.

Try using "cp -r /opt/usr/share/themes/THEME/* /home/user/MyDocs/THEME/". That worked fine for me. Probably the symbolic links in /usr/share/themes causes the problem.

Coffee 2010-07-17 11:21

Re: How to copy a theme?
 
thanks Tniga, will give that a go.

Coffee 2010-07-17 11:41

Re: How to copy a theme?
 
Quote:

Originally Posted by TNiga (Post 754817)
Try using "cp -r /opt/usr/share/themes/THEME/* /home/user/MyDocs/THEME/". That worked fine for me. Probably the symbolic links in /usr/share/themes causes the problem.

Tniga,
Mate I put in:
cp -r/opt/usr/share/themes/dthemenight-themedir/* /home/user/MyDocs/dthemenight-themedir/

I also tried:
cp -r /opt/usr/share/themes/dthemenight-themedir/* /home/user/MyDocs/dthemenight-themedir/

Both returned the following:
cp: invalid option - - /
BusyBox v1.10.2 (Debian 3:1.10.2. legal - 1osso30+0m5) multi - call binary

Usage: cp [OPTION]. . . SOURCE DEST

/home/user #


Not sure why it works for you and not me?

TNiga 2010-07-17 11:49

Re: How to copy a theme?
 
You must have typed something wrong, it really should be a valid command.

AlMehdi 2010-07-17 11:52

Re: How to copy a theme?
 
Quote:

Originally Posted by Coffee (Post 754769)
AlMedhi,
Mate, I am dumb founded. I got it to work once and not again since, could you please check I am doing it correctly for me.

sudo cp /usr/share/themes/ /home/user/MyDocs/dthemenight-themedir
"dthemenight-themedir" being the theme name under /usr/share/themes/.
Do I need to create the folder first under MyDocs:
mkdir MyDocs/dthemenight-themedir ?

If you just want to move "dthemenight-themedir" from /usr/share/themes/ then you need to..

Yes, make the directory with

mkdir /home/user/MyDocs/dthemenight-themedir

then

sudo cp -r /usr/share/themes/dthemenight-themedir/ /home/user/MyDocs/

If sudo not working.. try

1. root
2. cp -r /usr/share/themes/dthemenight-themedir/ /home/user/MyDocs/

TNiga 2010-07-17 11:57

Re: How to copy a theme?
 
Quote:

Originally Posted by AlMehdi (Post 754856)
If you just want to move "dthemenight-themedir" from /usr/share/themes/ then you need to..

Yes, make the directory with

mkdir /home/user/MyDocs/dthemenight-themedir

then

sudo cp /usr/share/themes/ /home/user/MyDocs/dthemenight-themedir/

Should that work? I tried similar cp thing on my desktop linux and doesn't work.

EDIT: You must have confused to mv because with it that works, but here the point is to copy and not to move.

AlMehdi 2010-07-17 12:00

Re: How to copy a theme?
 
Quote:

Originally Posted by TNiga (Post 754861)
Should that work? I tried similar cp thing on my desktop linux and doesn't work.

EDIT: You must have confused to mv because with it that works, but here the point is to copy and not to move.

hmm.. no. Forgot the "-r" to do it recursively ;)

You are right.. was probably thinking of "mv"

Coffee 2010-07-17 12:00

Re: How to copy a theme?
 
AlMehdi,
Did that and worked. Real sorry for the headache, not sure what I was doing wrong before. I did it once and worked and then I don't know, must have been doing something wrong and couldn't see it.
You have been a great help to me tonight in both threads, much appreciated.

Stephen

hazmat 2010-07-17 12:49

Re: How to copy a theme?
 
You also need to be sure the theme you're copying isn't actually in use.
This can cause the symlink errors too


All times are GMT. The time now is 01:03.

vBulletin® Version 3.8.8