View Full Version : How to copy a theme?
Coffee
07-17-2010, 04:09 AM
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
07-17-2010, 04:33 AM
What didn't work? How didn't it work? What did you expect?
Coffee
07-17-2010, 04:38 AM
Made the directory though wouldn't copy anything.
Came up saying something like omitting directory.
AlMehdi
07-17-2010, 04:44 AM
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
07-17-2010, 05:04 AM
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
07-17-2010, 05:09 AM
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
07-17-2010, 05:16 AM
No worries ;)
TNiga
07-17-2010, 05:28 AM
This should also work
cp -r /usr/share/themes/THEME/* /home/user/MyDocs/THEME/
Coffee
07-17-2010, 06:15 AM
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
07-17-2010, 06:20 AM
This should also work
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
07-17-2010, 06:31 AM
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
07-17-2010, 07:06 AM
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
07-17-2010, 07:21 AM
thanks Tniga, will give that a go.
Coffee
07-17-2010, 07:41 AM
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
07-17-2010, 07:49 AM
You must have typed something wrong, it really should be a valid command.
AlMehdi
07-17-2010, 07:52 AM
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
07-17-2010, 07:57 AM
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
07-17-2010, 08:00 AM
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
07-17-2010, 08:00 AM
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
07-17-2010, 08:49 AM
You also need to be sure the theme you're copying isn't actually in use.
This can cause the symlink errors too
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.