-1

I'm working on a Linux C program that needs root privileges (raw socket). I would like to run it on a host located in the US (I am in EU) to compare results. Is there any free (or cheap) shell available online to do it?

P.S. Any correction about my (first) post will be welcome.

  • You do not need root to get raw socket privilege, you can use capabilities. see http://unix.stackexchange.com/questions/101263/what-are-the-different-ways-to-set-file-permissions-etc-on-gnu-linux – ctrl-alt-delor Jul 24 '15 at 14:53
  • Can I set capabilities if I am not root? – the structure Jul 28 '15 at 07:01
  • You need the set-capabilities-on-files capability. It is not safe to give this away without other restrictions. So you probably will need root to initially set it. – ctrl-alt-delor Jul 28 '15 at 12:06

2 Answers2

6

Google Compute Engine allows you to provision a Linux VM in your chosen region which you can then ssh into with root privileges. It's cheap and you can get $300 worth of usage as a free trial.

Ben
  • 161
1

A free account at SageMath Cloud may fit your purpose. My account allows me to upload/download programs and compile/run them on a Ubuntu box located in the USA. The purpose of SageMath.org is to provide free, open source math software. The website is based on Python, but Python is not the only programming language available. In particular, an interactive shell and a C compiler are available, but I don't know what libraries are available.

LouisB
  • 291
  • I'm trying this, it seems like what I was looking for, but can't find root password. Some pages suggest "sage" as password, but it doesn't work. I'm using web terminal. – the structure Jul 25 '15 at 13:46
  • I now notice on my SageMath Cloud settings and configuration page, external network access is unavailable (to me). I don't know how to get access, which I think you will need. Can't help with root password either. Sorry about that. – LouisB Jul 25 '15 at 19:42
  • At SMC, you can get unrestricted network access by buying a membership subscription. Still, it wouldn't help you with the socket, since it is behind a firewall. You also do not need to be root to open up a port above 1024. – Harald Schilly Jul 26 '15 at 14:38