X SKINS are now cPanel's default

bert

Well-Known Member
Aug 21, 2001
593
0
316
Geez, I guess you guys have lots of questions. Nick should pay me for this :D

I just want to make sure that the new X Skin 2 will use the same directory structure and file names for email operations as X Skin 1.7
The directory structure remains the same, however as you can see, the cPanel X SKINS is no longer on a directory called "Xskin", it is now on directories called x, x2 and xmail. So, if you are using the x skin, your path instead of being /frontend/Xskin/mail/dodelpop.html, it will be /frontend/x/mail/dodelpop.html

All I need to do is run /scripts/upcp when set to edge and cpanel automatically d/ls xskins and installs it as default?
Just login to your server via SSH, edit /etc/cpupdate.conf and make sure you have "edge" showing after CPANEL (CPANEL=edge). You can also do this from within WHM -> Update Preferences. Then just update cPanel by typing /scripts/upcp

Is there a way to change EVERY clients skin they use to x2?
Try editing your packages from within WHM, I remember that in the beginning, modifying a package via WHM used to modify all accounts bound to that package, I don't know if that is still the case.

You can use vi to modify all your accounts or accounts based on certain criteria all at once. The command below will search all your /var/cpanel/users/* files and replace certain themes to x or x2. The example below will find all users that are using the theme "default" and will change them to the theme "x":

find /var/cpanel/users -type f -print | xargs file | grep -i text | cut -f1 -d: | while read file; do
vi $file >/dev/null 2>&1 <<!
:%s,RS=default,RS=x,g
:wq
!
done

cPanel.net Support Ticket Number:
 

abusedreality

Well-Known Member
Apr 15, 2003
53
0
156
Cheers bert

Only thing is lol

Our servers have at least 15 packages on each

I think I may just pico the old /Xskin folder and replace index and get it to redriect to /x

cPanel.net Support Ticket Number:
 

bert

Well-Known Member
Aug 21, 2001
593
0
316
Just do this:

find /var/cpanel/users -type f -print | xargs file | grep -i text | cut -f1 -d: | while read file; do
vi $file >/dev/null 2>&1 <<!
:%s,RS=default,RS=x,g
:wq
!
done


Just hit enter after each line. On line three, substitute RS=default for whatever the theme you are currently using. If you are using Xskin now and want to start using x2, just change then line number 3 to:

:%s,RS=Xskin,RS=x2,g
 

abusedreality

Well-Known Member
Apr 15, 2003
53
0
156
This is what I got


[email protected] [~]# find /var/cpanel/users -type f -print | xargs file | grep -i text | cut -f1 -d: | while read file; do
> vi $file >/dev/null 2>&1 <<!
> :%s,RS=default,RS=x,g
> :wq
> !
> done

cPanel.net Support Ticket Number:
 

ciphervendor

Well-Known Member
Aug 26, 2002
1,050
0
166
You have to sit there and wait. Once the command has completed, it will drop you back to a shell prompt. It may take upwards of 10 minutes depending on the number of users you have on a machine.

If you read the command given, you will notice that it opens each cpanel users file, scans for a string, replaces that string, saves and closes.

If you wanted something more efficient, you could use something like:
Code:
find /var/cpanel/users -type f -exec perl -pi -e "s/RS=default\RS=x/g" {} \;
Edited for spelling.
 
Last edited:

goodmove

Well-Known Member
May 12, 2003
643
4
168
In addition to those explained, a quick way to set the Cpanel skin from "default" to "x" (or any other skin - just change the names as needed):
Code:
perl -pi -e "s/RS=default/RS=x/g" /var/cpanel/users/*
This one will do the same job and let you know how many files have been converted:
Code:
cd /var/cpanel/users/
replace RS=default RS=x -- *
I would back up the files before modifying them using an automated command or script:
Code:
cp -a  /var/cpanel/users/  /var/cpanel/users-bu/
 
Last edited:

abusedreality

Well-Known Member
Apr 15, 2003
53
0
156
Quick Question

I notice that there are many differnt xskin 2 that get installed, I have changed to x, But I think I prefer x2.

When a new feature is added do they get added to all the X2's or just a paticular one

Which do you recommend I change to, or is there no difference apart from looks ;)

cPanel.net Support Ticket Number:
 
Last edited:

Spokuz

Well-Known Member
PartnerNOC
Apr 24, 2003
119
0
166
Lisbon - Portugal
cPanel Access Level
Root Administrator
Twitter
i see that now x and x2 are using tha variables of cpanel...so, to translate i have to traduce directly from WHM, right? but, when i go to "Edit a Language File", the english doesn't appear...if i traduce a portuguese language file (in WHM), how can i put x and x2 picking the variables of the portuguese language file?

cPanel.net Support Ticket Number:
 

jmc67

Well-Known Member
Mar 10, 2002
104
0
316
What are the differences between x, x2 and xmail?

cPanel.net Support Ticket Number:
 

Chase

Well-Known Member
Mar 19, 2003
93
0
166
cp -a /var/cpanel/users/ /var/cpanel/users-bu/

cd /var/cpanel/users/

replace RS=Xskin RS=x2 -- *


this will do the job!

cPanel.net Support Ticket Number: