SERVER CJ: Lots and lots of servers!Talk about servers here. Home servers, work servers, custom build servers, OEM pre built servers, networking, file systems, containers, virtualization, and all the cool stuff you are doing with your computers for work and play. Servers you love, servers you hate, servers you want to build, servers you want to try out, if its a computer and you do stuff with it, talk about it here! OLD SERVERS!NEW SERVERS!BIG SERVERS!SMALL SERVERS!WEIRD SERVERS!SERVERS FROM AROUND THE WORLD!Cloud ServerDont want a physical server living in your house? Consider using the cloud! You can spin up a virtual private server (VPS) easily with providers such as AWS and Digital Ocean, among others. Cloud is a great option for applications that need high-availability.
Home Media ServerWant to build a home media server but dont know where to start? Do you love Linux? Well maybe the “Perfect Media Server” will be a good choice for you!
More resources:
Building a Plex Server
tl;dr: get a 7th gen or later Intel CPU if possible in order to utilize Quick Sync (used for transcoding e.g. down-converting media to play on mobile devices, etc.). You can use older CPU’s just fine but they will not have as advanced Quick Sync capabilities. If you do not transcode and only play the source media directly as-is, then you should be fine with even less.
Networking
Data Storage
resources:
Building a NAS ServerThe best guide around for general purpose building of a basic NAS (network attached storage) server Object StorageAn alternative to traditional filesystems, object storage can be run at home (or in the cloud) using services such as:
Data SharingSMB ShareSo you have your storage on one server (or PC, etc.), and you want to access it from another server (or PC, etc.), on the same network. How do you do that? You can do this with an SMB share. Resources
Create SMB ShareDifferent operating systems will have different methods for creating a SMB share. For example, on macOS you can use the System Preferences > Sharing > File Sharing menu options to create and configure a SMB share (you can also do it from the command line; link). Note that you may or may not also want to set up guest access to the share, and or create a share user just for sharing. Create SMB Share on Linux
Connect to SMB ShareDifferent operating systems will have different methods for accessing a SMB share. On Ubuntu 22.04, you first need to install some extra tools
You can check if a SMB share is available on the network with a command like
Where the IP is the address of the computer on your network hosting the share, and “guest” is used as the user assuming you enabled guest access to the share from the share host. If it works, you should see a list of available share points. You can manually mount a SMB share with a command like this
In this command;
we are using both the
If it does not work, you may need to check the system logs with
If it does work, you should not see any error messages, and you should be able to see the contents of the SMB share at the specified local path with Once you get it working, you can unmount the share (
If you have issues, troubleshoot based on error messages from Note also that you may need to allow SMB access through your firewall, if you have it enabled, with a command such as
This requires that you have installed the
Resources
ContainersLighter than a virtual machine, heavier than a virtual environment, containers are a popular way to manage applications in an isolated manner that keeps apps’ software installations from colliding with each other, and with the host operating system. This allows for greater portablity, reproducibility, and orchestration of applications on your system. Many types of containers can be shared freely on remote container repositories such as Docker Hub and Quay.io, and containers can usually be created in a scripted manner using a recipe file which lists all the commands needed to install and configure desired packages on top of a base operating system image. DockerDocker is the de facto standard for portable containers. Note that the term “Docker” can refer both to the container format, and to the engine which runs the containers; some other non-Docker container engines are compatible with Docker containers. Many containers are freely available on Docker Hub, and Docker containers can be (re)built using the Dockerfile recipe format. Multiple independent containers can be orchestrated at the same time with the Docker Compose plugin. Resources
How to install Docker
Official docs here; https://docs.docker.com/engine/install/ubuntu/
If you are having trouble getting Docker to run, you can do a couple things to investigate;
If Docker does not start automatically on system boot, you can also configure that like this;
DOCKER COMPOSE
Networking
How to set a static IP address for a device on your local network
How to set up port forwarding
How to get your current IP address on your internal local network (Linux, macOS)
will show the details for all network devices, amongst them should be some devices with names like Windows: https://www.howtogeek.com/858334/how-to-find-your-ip-address-from-cmd-command-prompt/ How to get your public internet IP address
How to get IP address(es) of website
How to check that a server (local or remote) can be reached
How to check what local process is running on a port
How to check which local ports are in use
How to check if a port is open on a server
PiracyArrrrr see the usenet thread here COMING SOON LinuxLinux thread here COMING SOON ❧ Edited by hey at 2024-01-04 04:43:26Jan 4 04:43 |
|
Docker Compose for *arr appsDocker Compose is a plugin for Docker that lets you use a YAML file to define the config for multiple containers, and start and stop them all at once (or individually) as needed. resources:
Make sure you installed
Each of the Wiki pages for the -*arr apps includes an example Docker Compose YAML. You can use a single YAML file with all of the services listed for easier management. See the link there for the guide’s example YAML configuration. in this example, the contents of a file named
Start the containers with the command
This starts all containers and runs them in a detached state in the background. Check on which containers are running with
(you can also use Stop all the containers with
You can also start / stop / restart containers individually
Once the containers are running, you can navigate to your web browser to access them. Navigate to a URL that looks like See the guides at LinuxServerIO and Servarr Wiki and TRaSH Guides and the official docs for each service for further setup instructions for each service. |
|
Interacting with FTP ServerlftpYou can use the command line tool
To install Check the man pages for lftp to see the full details of commands, settings, and more.
You can connect to an FTP server with a URL in a format like this:
where The full command should look like this
and if it works you should be presented with an interactive prompt
Importantly, unlike a normal shell,
Upload FileYou can upload a single file with the
This will upload the file
Upload DirectoryThe easiest way to upload an entire directory is with the By default the source is remote and the target is a local directory. When using
will upload the entire local directory “The Big O” to the remote pwd, with the name “The Big O” If you instead ran the command
it would attempt to download the entire remote directory “The Big O” to your local pwd a command like
would download the contents of It can be a little confusing to remember which direction the mirror will run, so you can preview the transfer without running it by including the Non-InteractiveYou can run A command like this
will log into the server, run the You can use
This will start a session on the server with SSL verification disabled, print your remote Resources
|
|
Creating a SMB (Samba) Share on Linux (Ubuntu)Resources:
Creating and configuring a SMB share in Ubuntu is one of the more involved tasks I have done yet. Its not hard, its just a number of steps that need to be completed and are easy to miss or mix up. The overall process goes like this;
phew that was a lot… lets see if I can recount all the steps correctly to achieve this; I have them in my bash history but the history is a little out of order after messing up and having to repeat a few steps Make sure you have Samba installed
Creation of sharing user
Update Samba SMB Config
Add a section to the file that looks like this
where “Media” is the name of your share, and Once you have edited the file, you must test it to make sure there are no errors
Configure the filesystem for the share
Add sharing user to SambaThe sharing user needs to also be added Samba, and enabled, and supplied with a password.
Connect to your SMB Share from another Linux system
Add an entry like this to your fstab
Try to mount the new fstab
Finally, you should verify that it works;
NotesIf you start having permissions issues, you need to verify that the permissions are set correctly for all dirs and subdirs and files
Make sure to propagate the SMB client UID and GID into your Docker containers correctly in the Docker compose file. Make sure to mount the volume into your Docker containers with To verify that your docker containers have correct permissions, you can enter them and test it out;
|
|
|
|
|
|