LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-27-2020, 09:48 PM   #1
asprinkem90
LQ Newbie
 
Registered: Oct 2020
Posts: 2

Rep: Reputation: Disabled
Want to setup a Linux server


I wanted to setup a remote Linux server to run python code. Something I can keep at home and access when I go to college via the internet, with something universal like SSH.

I have a Ryzen system, with a B350 Motherboard and 16GB of memory. Is it possible to use this hardware to make an always on server? Or can I use something like Wake on LAN to switch it on remotely?
 
Old 10-27-2020, 10:12 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
There's nothing special about a server. It's just a computer that makes data available to other computers.

The key here is the access. Since you mention that you are going to college, I'm guessing that this computer will be at your home. A web search for "public access home server" will turn up a number of useful links.

Since you are contemplating using ssh, the creation of publicly-accessible file shares is not an issue; the main issue is access. The key question here, it seems to me, is making sure that the appropriate ports are available for public access and are forwarded properly to the machine in question by the router.

You may also need to research your ISP's terms of service. In the U. S., many ISPs frown on public-facing servers from home accounts; this stems primarily from a desire to prevent spam. For example, many U. S. ISPs block port 80 for home accounts. (My current ISP does; my previous did not,at least now back when I lived in that other location.)

I started with Linux because I wanted to host my website from my home (something I no longer do); I did so for several years with the help of noip.com.

I don't think you need to waste your time on "wake on LAN," but that's just me. My webserver was always on and that worked just fine.

Just a few late-night thought.
 
Old 10-27-2020, 10:18 PM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,307
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Welcome.

It is almost certainly usable, though some specifications there might be overkill for the task you describe. The best way to find out it to give it a try. See Ubuntu Server Edition, Devuan, or Debian for good choices in servers. A choice, which you don't have to make now, is whether you will try to run the same system all the way through your time at college or whether you'd try to change it all around every term.

As for the Wake-on-LAN, that would be a matter of the router you have or some other always-on system with access to the same LAN your server would be on. Then, if you have WOL capabilities there, you would also have to have WOL support on the server's Ethernet card.

For the SSH access, you'd also have to set up port forwarding on your router from some external port (such as 22) to the SSH port on your server. Often that can only be tested from outside your LAN because some routers cannot do NAT loopback (aka NAT hairpinnng). However, before you turn on port forwarding, not only make sure that SSH works over you LAN but also establish the use of SSH keys or SSH certificates for authentication and disable password authentication. If your router gets its address via DHCP, then the IP address may change and you should sign up for a dynamic DNS service. Some registrars provide that as part of their service or otherwise you can sign up for No-IP or similar service.

Of course all that is predicated on being able to reach your router from the outside. Some ISPs allow that some block that. If your ISP is in the latter group, you might be able to pay (more) for access, or switch ISPs, or set up a reverse tunnel to an external VPS, or do some means of NAT punching.

If you plan your system for light python scripts and SSH access, you might get by with a Raspberry Pi 3A+ or 3B+ instead. Or adding one might be necessary for Wake-on-LAN if the router does not support it.
 
Old 10-29-2020, 03:00 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Some servers have a slightly better wol way through special network card. You have to be careful on how you configure wol over network. May be able set up your modem/router to allow passthrough to server as better than trying direct.

Some routers have built in support for DDNS to get access to your home. Otherwise a static ip is kind of expensive. That ddns will have to have some small program to tell service when ip changes.

Also some very few ISP's may block some ports. May be wise anyway to re-configure ports.


There are a few remote access ways too. Some get pretty secure.
 
Old 11-15-2020, 12:49 PM   #5
asprinkem90
LQ Newbie
 
Registered: Oct 2020
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by asprinkem90 View Post
I wanted to setup a remote Linux server to run python code. Something I can keep at home and access when I go to college via the internet, with something universal like SSH.

I have a Ryzen system, with a B350 Motherboard and 16GB of memory. Is it possible to use this hardware to make an always on server? Or can I use something like Wake on LAN to switch it on remotely?


issue got solved

Last edited by michaelk; 11-15-2020 at 05:27 PM.
 
Old 11-15-2020, 12:51 PM   #6
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,307
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
How was it solved? Was it solved on purpose?
 
Old 11-16-2020, 01:33 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by asprinkem90 View Post
issue got solved
Why did a mod edit this?

Anyhow, dear OP, it would be nice if you could clarify how you solved your original question.
Others will benefit, and we do not have to repeat the same statements over and over.
 
Old 11-16-2020, 02:49 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Sorry, the OP had inserted spam links into the quote in post #5 that I had removed. The integrity of the entire thread is in question.
 
1 members found this post helpful.
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setup for official Laptop. (Admin setup in server and user account setup in lap) vignesh4sh Linux - Server 3 11-26-2012 07:03 AM
How to setup a SMS server using Linux, also want to know the appropriate Linux distri karthik18121986 Linux - Newbie 2 10-22-2010 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration