CubeCoders / AMP

Issue tracking and documentation for AMP
https://cubecoders.com/AMP
201 stars 38 forks source link

Obtain CPU Frequency from ARM CPU for steamcmd's CPU_MHZ variable. #1104

Open okoklets opened 1 month ago

okoklets commented 1 month ago

Obtain CPU Frequency from ARM CPU for steamcmd's CPU_MHZ variable or allow way to manually set variable.

FWIW, I am using qemu binfmt to emulate i386.

I confirm:

okoklets commented 1 month ago

i hardcoded steamcmd.sh with an environment variable and that works for now

okoklets commented 1 month ago

update: each time steamcmd starts it does an update and wipes steamcmd.sh so it never proceeds to launch the game. it's stuck in a loop.

okoklets commented 1 month ago

i have set the variable in /etc/environment and rebooting now.

okoklets commented 1 month ago

that didn't work either probably because amp doesn't login with pam.

okoklets commented 1 month ago

i made a /etc/profile.d/steamcmd.sh and set it there. that worked but now i'm having other errors. i'm creating a new instance now and will see what happens.

PhonicUK commented 3 weeks ago

You should be using AMPs CPx2 which handles this by itself.

okoklets commented 3 weeks ago
  I did a hack install on arch as there was no official support. 

  Please tell me more, how do I use CPx2? 

   Regards, 

    Michael Vale. 

   On Wednesday, Jun 05, 2024 at 4:26 AM, PhonicUK ***@***.***> wrote: 

  You should be using AMPs CPx2 which handles this by itself. 
  —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***> 
  ***@***.***": ***@***.***": "EmailMessage","potentialAction": ***@***.***": "ViewAction","target": "https://github.com/CubeCoders/AMP/issues/1104#issuecomment-2148147063","url": "https://github.com/CubeCoders/AMP/issues/1104#issuecomment-2148147063","name": "View Issue"},"description": "View this Issue on GitHub","publisher": ***@***.***": "Organization","name": "GitHub","url": "https://github.com"}}]
PhonicUK commented 3 weeks ago

If you're using an unsupported distro for aarch64 then you're on your own I'm afraid. We only support this kind of setup on Ubuntu and Debian.

okoklets commented 3 weeks ago
  Thanks.  I'm trying it with debian and once I installed box86, steamcmd started working. 

  Downloading CS2 server now. 

   Regards, 

    Michael Vale. 

   On Wednesday, Jun 05, 2024 at 4:55 AM, PhonicUK ***@***.***> wrote: 

  If you're using an unsupported distro for aarch64 then you're on your own I'm afraid. We only support this kind of setup on Ubuntu and Debian. 
  —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***> 
  ***@***.***": ***@***.***": "EmailMessage","potentialAction": ***@***.***": "ViewAction","target": "https://github.com/CubeCoders/AMP/issues/1104#issuecomment-2148197832","url": "https://github.com/CubeCoders/AMP/issues/1104#issuecomment-2148197832","name": "View Issue"},"description": "View this Issue on GitHub","publisher": ***@***.***": "Organization","name": "GitHub","url": "https://github.com"}}]