-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.

3
  • You do not need root to get raw socket privilege, you can use capabilities. see unix.stackexchange.com/questions/101263/… Jul 24, 2015 at 14:53
  • Can I set capabilities if I am not root? Jul 28, 2015 at 7: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. Jul 28, 2015 at 12:06

2 Answers 2

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.

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.

3
  • 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. Jul 25, 2015 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, 2015 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. Jul 26, 2015 at 14:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .