You are an unregistered user, you can register here
Navigation

Information

Site

Donations
If you wish to make a donation you can by clicking the image below.


 
Go Back   The Unreal Admins Page > Forums > Unreal Admins > Unreal Tournament > UT Server - Linux Specific

Reply
Thread Tools Display Modes
  #1  
Unread 13th May, 2013, 05:16 PM
Zasz Zasz is offline
Forum Newcomer
 
Join Date: Jul 2012
Posts: 10
Default UT99 Linux Compress Script

Hi all,

I have translated the code from compress2uz, an utility to compress an UT Server on Windows, for Linux.

But I have a little problem, while it begins to compress, a system signal interrupt the process.

This is the code from my Script :
Code:
echo "Compressor-script for UT Linux Server"
echo "Step 1 : Creating Compressed Folder"
mkdir Compressed
echo "Step 2 : Copying Files"
echo "Copying Maps Folder"
cp ./Maps/*.unr ./Compressed
echo "Copying Music Folder"
cp ./Music/*.umx ./Compressed
echo "Copying Sounds Folder"
cp ./Sounds/*.uax ./Compressed
echo "Copying Textures Folder"
cp ./Textures/*.utx ./Compressed
echo "Copying System Folder"
cp ./System/*.u ./Compressed
echo "Copying Files Finished"
echo
echo "Step 3 : Compressing"
cd System
./ucc-bin compress ./Compressed/*
echo "Step 4 : Cleaning ..."
cd ..
rm ./Compressed/*.unr
rm ./Compressed/*.utx
rm ./Compressed/*.uax
rm ./Compressed/*.umx
rm ./Compressed/*.u
echo "Cleaning Finished !"
echo "Step 5 : Moving Files to Redirect Folder"
mv ./Compressed/*.uz /var/www/uz
rmdir Compressed
echo "Compress Finished"
Result :
Code:
Signal: SIGSEGV [segmentation fault]
Aborting.
Any ideas ?
Reply With Quote
  #2  
Unread 13th May, 2013, 10:08 PM
SoNY_scarface SoNY_scarface is offline
Holy Shit!!
 
Join Date: Mar 2007
Posts: 1,726
Default

On Linux there's not much you can do about seg fault. Rather annoying. Why not just run compress a lot or ucc via wine ?
__________________




Reply With Quote
  #3  
Unread 13th May, 2013, 10:43 PM
Zasz Zasz is offline
Forum Newcomer
 
Join Date: Jul 2012
Posts: 10
Default

Because i haven't GUI on a Debian Dedicated Server.

I have only Text Mode, I use PuTTY to set it up
Reply With Quote
  #4  
Unread 14th May, 2013, 06:38 AM
SoNY_scarface SoNY_scarface is offline
Holy Shit!!
 
Join Date: Mar 2007
Posts: 1,726
Default

Ucc doesn't require gui and it might be more simple to do it that way. In fact I can't remember if the Linux server install has it already....I might have something from when I hosted Linux I'll cheat this evening
__________________




Reply With Quote
  #5  
Unread 14th May, 2013, 10:30 AM
AnthraX's Avatar
AnthraX AnthraX is offline
Administrator
 
Join Date: Jun 2004
Location: Ghent (Belgium)
Posts: 1,380
Default

for i in `ls -1 ./Compressed/*`; do ./ucc-bin compress $i; done
Reply With Quote
  #6  
Unread 14th May, 2013, 03:15 PM
Zasz Zasz is offline
Forum Newcomer
 
Join Date: Jul 2012
Posts: 10
Default

Quote:
Originally Posted by AnthraX View Post
for i in `ls -1 ./Compressed/*`; do ./ucc-bin compress $i; done
I have tried and it does that
Code:
Compressing /home/utserver/ut-server/Compressed/2k4Combos.u (777090 bytes)
Could not create /home/utserver/ut-server/Compressed/2k4Combos.u.uz

History: UCompressCommandlet::Main

Exiting due to error
Compressed Folder has '766' rights.
Reply With Quote
  #7  
Unread 14th May, 2013, 03:37 PM
AnthraX's Avatar
AnthraX AnthraX is offline
Administrator
 
Join Date: Jun 2004
Location: Ghent (Belgium)
Posts: 1,380
Default

perhaps you should chmod it to 777 then
Reply With Quote
  #8  
Unread 14th May, 2013, 06:11 PM
Zasz Zasz is offline
Forum Newcomer
 
Join Date: Jul 2012
Posts: 10
Default

Same error with 777
Reply With Quote
  #9  
Unread 15th May, 2013, 08:18 AM
back4more's Avatar
back4more back4more is offline
Holy Shit!!
 
Join Date: Oct 2008
Location: NextDoor
Posts: 1,908
Default

isn't there a script somewhere for linux written by rork perhaps , that compresses and uploads to redirect like RSC for windows?

@Zasz there is also a nifty little program from memory called WinSCP which does other useful things from Windows to linux servers , iirc from when
I used to run Linux servers.
Reply With Quote
  #10  
Unread 15th May, 2013, 04:30 PM
SoNY_scarface SoNY_scarface is offline
Holy Shit!!
 
Join Date: Mar 2007
Posts: 1,726
Default

Check the permissions for ucc
__________________




Reply With Quote
  #11  
Unread 21st May, 2013, 03:33 PM
~V~ ~V~ is offline
Holy Shit!!
 
Join Date: Sep 2004
Posts: 866
Default

Also please run:

ls -ld /home/utserver/ut-server/Compressed/

And paste here the result
__________________
http://www.unrealize.co.uk for XConsole, ServerLog, StealthAdmin and other Unreal Tournament mods.

-= F R A G G A L O N I A... R E S U R R E C T I O N! O L D... S K O O L... S N I P E R =- unreal://82.40.94.2

Old skool sniping. Just you, your weapon, and gravity.
Reply With Quote
  #12  
Unread 21st May, 2013, 03:51 PM
~V~ ~V~ is offline
Holy Shit!!
 
Join Date: Sep 2004
Posts: 866
Default

Right. ucc-bin refuses to compress for me for files not in the same folder.

Edit*: I'll think of something.. I haven't yet made a compress script but I will...
__________________
http://www.unrealize.co.uk for XConsole, ServerLog, StealthAdmin and other Unreal Tournament mods.

-= F R A G G A L O N I A... R E S U R R E C T I O N! O L D... S K O O L... S N I P E R =- unreal://82.40.94.2

Old skool sniping. Just you, your weapon, and gravity.

Last edited by ~V~ : 21st May, 2013 at 04:45 PM.
Reply With Quote
  #13  
Unread 21st May, 2013, 04:05 PM
~V~ ~V~ is offline
Holy Shit!!
 
Join Date: Sep 2004
Posts: 866
Default

By the way, your original script contains an error:

./ucc-bin compress ./Compressed/*

should be

./ucc-bin compress ../Compressed/*

Note the two .
__________________
http://www.unrealize.co.uk for XConsole, ServerLog, StealthAdmin and other Unreal Tournament mods.

-= F R A G G A L O N I A... R E S U R R E C T I O N! O L D... S K O O L... S N I P E R =- unreal://82.40.94.2

Old skool sniping. Just you, your weapon, and gravity.
Reply With Quote
  #14  
Unread 21st May, 2013, 06:15 PM
~V~ ~V~ is offline
Holy Shit!!
 
Join Date: Sep 2004
Posts: 866
Default

Try this. There are a few vars to set at the start. But I set those as your posts suggest they ought to be.

http://www.unrealize.co.uk/files/ut99-compress-all
__________________
http://www.unrealize.co.uk for XConsole, ServerLog, StealthAdmin and other Unreal Tournament mods.

-= F R A G G A L O N I A... R E S U R R E C T I O N! O L D... S K O O L... S N I P E R =- unreal://82.40.94.2

Old skool sniping. Just you, your weapon, and gravity.
Reply With Quote
  #15  
Unread 21st May, 2013, 11:06 PM
Zasz Zasz is offline
Forum Newcomer
 
Join Date: Jul 2012
Posts: 10
Default

Thanks to you, it works perfectly !
Reply With Quote
  #16  
Unread 22nd May, 2013, 04:51 PM
~V~ ~V~ is offline
Holy Shit!!
 
Join Date: Sep 2004
Posts: 866
Default

Just found a small bug and uploaded again

and no problem
__________________
http://www.unrealize.co.uk for XConsole, ServerLog, StealthAdmin and other Unreal Tournament mods.

-= F R A G G A L O N I A... R E S U R R E C T I O N! O L D... S K O O L... S N I P E R =- unreal://82.40.94.2

Old skool sniping. Just you, your weapon, and gravity.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:32 PM.


 

All pages are copyright The Unreal Admins Page.
You may not copy any pages without our express permission.