/r/ubuntuserver
Like the name suggests, this community is based on the Linux operating system (unofficial) Ubuntu Server.
We share ideas and resources, provide support and maybe have a little fun along the way. Please post/send suggestions for new topics to the mods. Have a great day!
Ubuntu Server is a very powerful Operating System for businesses as well as private servers.
We want to provide support and news around the OS and maybe have a little fun on the side.
Please feel free to message the mods if you find errors, have questions or feel like something would benefit this sub.
We are happy to have you and wish you a great day.
Your mod team
Visit our related communities:
/r/ubuntuserver
As a growing sub, we'd like to hear your opinion on the operating system in question and this sub in general. What would you suggest we add? This post is going to be recurring every month so you can give regular feedback on the past month.
Please feel free to send mod mail to make private suggestions if that is more your style.
Thank you very much!
Your mod team.
As a growing sub, we'd like to hear your opinion on the operating system in question and this sub in general. What would you suggest we add? This post is going to be recurring every month so you can give regular feedback on the past month.
Please feel free to send mod mail to make private suggestions if that is more your style.
Thank you very much!
Your mod team.
As a growing sub, we'd like to hear your opinion on the operating system in question and this sub in general. What would you suggest we add? This post is going to be recurring every month so you can give regular feedback on the past month.
Please feel free to send mod mail to make private suggestions if that is more your style.
Thank you very much!
Your mod team.
As a growing sub, we'd like to hear your opinion on the operating system in question and this sub in general. What would you suggest we add? This post is going to be recurring every month so you can give regular feedback on the past month.
Please feel free to send mod mail to make private suggestions if that is more your style.
Thank you very much!
Your mod team.
As a growing sub, we'd like to hear your opinion on the operating system in question and this sub in general. What would you suggest we add? This post is going to be recurring every month so you can give regular feedback on the past month.
Please feel free to send mod mail to make private suggestions if that is more your style.
Thank you very much!
Your mod team.
As a growing sub, we'd like to hear your opinion on the operating system in question and this sub in general. What would you suggest we add? This post is going to be recurring every month so you can give regular feedback on the past month.
Please feel free to send mod mail to make private suggestions if that is more your style.
Thank you very much!
Your mod team.
As a growing sub, we'd like to hear your opinion on the operating system in question and this sub in general. What would you suggest we add? This post is going to be recurring every month so you can give regular feedback on the past month.
Please feel free to send mod mail to make private suggestions if that is more your style.
Thank you very much!
Your mod team.
As a growing sub, we'd like to hear your opinion on the operating system in question and this sub in general. What would you suggest we add? This post is going to be recurring every month so you can give regular feedback on the past month.
Please feel free to send mod mail to make private suggestions if that is more your style.
Thank you very much!
Your mod team.
As a growing sub, we'd like to hear your opinion on the operating system in question and this sub in general. What would you suggest we add? This post is going to be recurring every month so you can give regular feedback on the past month.
Please feel free to send mod mail to make private suggestions if that is more your style.
Thank you very much!
Your mod team.
As a growing sub, we'd like to hear your opinion on the operating system in question and this sub in general. What would you suggest we add? This post is going to be recurring every month so you can give regular feedback on the past month.
Please feel free to send mod mail to make private suggestions if that is more your style.
Thank you very much!
Your mod team.
Hello I am looking at my ubuntu home server right now and in the / directory it says I only have 100 gb but it’s a 500 gb Hard drive. Is there any way to fix this issue? Thanks in advance
Sorry if this sounds stupid.
I have 3 old laptops that I am using as Ubuntu servers 1 running Jellyfin through Nginx, another running Nextcloud and Immich through Apache2 and the third running ShinobiCCTV and no proxy. I got curious and with chatgpt's help I ran a few commands like
" netstat -tn | awk '{print $5}' | cut -d: -f1 | sort | uniq"
to see what ip addresses have contacted my servers and there's a few I don't recognize but given that I use a few programs like opensubtitles and others that is reasonable right?
Then I ran the following two commands:
"journalctl _COMM=sshd | grep -E 'Accepted|Failed' "
" sudo cat /var/log/auth.log | grep 'sshd' "
to see what ip address have successfully logged into my servers and so far they are all ip addresses I recognize. This should mean none of my servers have been compromised yet right?
What can I do to continue being protected?
Hello im trying to download ubuntu server on ahard drive connected straight to the pc sata and powerthen transfer that drive into a small pc but i have no usb or usb flash drive how can i do this?
Hi
has anybody succesfully installed Server 22.04.3 under Hyper-V 2022 VM? I tried on two different computers and the installiation crashes. I was able to send the log to Canonical.
Gen2 VM, secure boot disabled, 1x vcpu and 1gb RAM - i tried changing this, but it did not have effect.
VHDX 50GB.
I installed Ubuntu on a new server I built. Eventually it’ll run Home Assistant, Plex, stuff like that.
But for now I need help with remote access. I have a rpi4 that I access just fine on my iPad through Termius if I need a terminal and RealVNC if I need a desktop. I’m not attached to these apps, but that’s what I’m using right now.
Ubuntu touts that it is super easy to do both of these things with Ubuntu One and Vino, respectively. I’ve got both of those set up on the server end, but I don’t know what I’m doing wrong on the IPad.
With Termius, I’ve got the IP address correct, I’ve got the login info, the key from Ubuntu One, but it still says:
😨 Connection failed: connection refused. No more addresses to try.
I’ve tried every port that appears to be listening, but I’m just throwing stuff to see what sticks at this point.
I get a similar message with RVNC:
“The port on which the computer is listening for a connection could not be contacted.”
I’ve gone into settings and enabled remote connections and media sharing. I don’t know what else to try. It feels like I’m just missing something simple, but I don’t know what I don’t know. Are there other apps that work better with Ubuntu?
Any help would be greatly appreciated. Thanks for your time!
Hello so I installed Ubuntu server on a dell optiplex and got jellyfin installed with the help of others. And I was able to ssh into my server in terminal but now I try to ssh again and tells me “ssh: connect to host [ip addr] port 22: connection timed out. What is the issue ? Thanks in advance
I moved a VM from VirtualBox to Proxmox and the VM will not start the NIC on Proxmox. The NIC did change names from enp0s3 to ens18. I have searched and tried most things. Of the 3 VMs I have moved, one worked with no problem, the other 2 have the NIC problem.
sudo ifconfig ens18 up && sudo dchclient ens18 will bring the NIC online and grab an address.
/etc/network/interfaces was empty, I added: (also empty on the working one)
auto ens18
iface ens18 inet dhcp
I am not sure what else to try.
Edit: Solved. Further digging led me to: man systemd.link
From there I added a .link file and renamed the interface to the original name and now it works.
/lib/systemd/network/10-enp0s3.link
[Match]
MACAddress=08:00:27:75:53:aa
[Link]
Name=enp0s3
Hello I installed Ubuntu server on a dell optiplex and also installed jellyfin on it. But whenever I try to put http://localhost:8096, my browser says this site can’t be reached. How can I be able to reach the setup page? Thank u in advance
Has the openzfs issue been resolved in Ubuntu server?
Hello, I have an old hp proliant dl380 with a dual xeon, and i recently installed ubuntu 23 on it. This thing uses a lot of electricity. If ubuntu dont uses the other cpu, I will teke it out, but i dont know if it can uses both.
Hello
Hope someone can guide me.
I have access to three servers "CPUs are 2 x Intel(R) Xeon(R) Silver 4110" where plan A was to install Windows Datacenter, to run a local VM environment via Hyper-V, as well as failover, High Availability and "backup"....
This was supposed to be built on 48 cores distributed over the three servers, but when I got the annual price, it became a NO GO, as the price was/is $15K per year.
That's why I'm writing here now, I've played with Ubuntu with several people and am wondering if I would be able to run the desired environment via Ubuntu.
So my question is, what does it take in terms of packages and installation, to have failover, High Availability and "backup" between the three servers. As well as setting up a VM environment locally, where I could give e.g. 30 different people access to each of their parts, so that they could play with VM Guests and not see each other's unless they are admins on the environment.
I made the mistake of installing a service on the server instead of through docker and after uninstalling, I removed a bunch of dependencies and now can't even access the network from this machine.
I've plugged in a monitor to this normally headless server since I can't ssh to it anymore and my files are all intact but since I can't connect to the network, would plugging in the Ubuntu server ISO on a flash card be at all helpful in "fixing" the dependencies I inadvertently removed or am I SOL?
I have a broken laptop I am planning to use as a file server and maybe hosting server for my website. I can only add 2 drives(long story) the system is an 17-6500m, with 16GB DDR3, and a gt940. I have 2 MX500 SSDs and I was wondering what I need to how much partition I need for ubuntu, how to mdadm raid1 considering one of the drives will have the OS on it. I plan on using samba share to serve my network with pictures, music, video.... The biggest thing I need help with is how much do I partition for the OS? Do I need to partition the second disk to match the available size for raid1? any help would be awesome. TIA
Hi Folks,
Having an issue with trying to assemble an array on a server. I had three disks in an old server that were assembled as a raid5 array, but after putting them in to a new server and trying to assemble them again, the first disk (sdc1) is not being recognised for some reason and the array comes up in a degraded state.
Any advise appreciated. Details below:
shady@ubun100:~$ sudo mdadm --assemble --uuid=69da6cdd-405f-9a6c-c8d8-b47829541875 /dev/md0
mdadm: /dev/md0 has been started with 2 drives (out of 3).
shady@ubun100:~$
shady@ubun100:~$ sudo mdadm --detail /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Sat Nov 17 22:57:44 2018
Raid Level : raid5
Array Size : 5860265984 (5.46 TiB 6.00 TB)
Used Dev Size : 2930132992 (2.73 TiB 3.00 TB)
Raid Devices : 3
Total Devices : 2
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Tue Jan 16 00:33:16 2024
State : clean, degraded
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 512K
Consistency Policy : bitmap
Name : shadyserv2:0
UUID : 69da6cdd:405f9a6c:c8d8b478:29541875
Events : 28319
Number Major Minor RaidDevice State
- 0 0 0 removed
4 8 49 1 active sync /dev/sdd1
3 8 65 2 active sync /dev/sde1
shady@ubun100:~$
shady@ubun100:~$
shady@ubun100:~$
shady@ubun100:~$
shady@ubun100:~$ cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10]
md0 : active raid5 sdd1[4] sde1[3]
5860265984 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/2] [_UU]
bitmap: 1/22 pages [4KB], 65536KB chunk
unused devices: <none>
shady@ubun100:~$
shady@ubun100:~$
shady@ubun100:~$ sudo mdadm --examine /dev/sdc1
/dev/sdc1:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 69da6cdd:405f9a6c:c8d8b478:29541875
Name : shadyserv2:0
Creation Time : Sat Nov 17 22:57:44 2018
Raid Level : raid5
Raid Devices : 3
Avail Dev Size : 5860266895 sectors (2.73 TiB 3.00 TB)
Array Size : 5860265984 KiB (5.46 TiB 6.00 TB)
Used Dev Size : 5860265984 sectors (2.73 TiB 3.00 TB)
Data Offset : 264192 sectors
Super Offset : 8 sectors
Unused Space : before=264112 sectors, after=911 sectors
State : clean
Device UUID : cf019ddf:ccd9b333:b609a1f3:4ce3cd54
Internal Bitmap : 8 sectors from superblock
Update Time : Mon Jan 15 23:58:16 2024
Bad Block Log : 512 entries available at offset 24 sectors
Checksum : 5edb767f - correct
Events : 28310
Layout : left-symmetric
Chunk Size : 512K
Device Role : Active device 0
Array State : AAA ('A' == active, '.' == missing, 'R' == replacing)
shady@ubun100:~$
shady@ubun100:~$
shady@ubun100:~$
shady@ubun100:~$
shady@ubun100:~$
shady@ubun100:~$ sudo mdadm --examine /dev/sdd1
/dev/sdd1:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 69da6cdd:405f9a6c:c8d8b478:29541875
Name : shadyserv2:0
Creation Time : Sat Nov 17 22:57:44 2018
Raid Level : raid5
Raid Devices : 3
Avail Dev Size : 5860266895 sectors (2.73 TiB 3.00 TB)
Array Size : 5860265984 KiB (5.46 TiB 6.00 TB)
Used Dev Size : 5860265984 sectors (2.73 TiB 3.00 TB)
Data Offset : 264192 sectors
Super Offset : 8 sectors
Unused Space : before=264112 sectors, after=911 sectors
State : clean
Device UUID : 7560824b:abe0e799:a92fb9b9:9a478eb1
Internal Bitmap : 8 sectors from superblock
Update Time : Tue Jan 16 00:33:16 2024
Bad Block Log : 512 entries available at offset 24 sectors
Checksum : 53ce6e85 - correct
Events : 28319
Layout : left-symmetric
Chunk Size : 512K
Device Role : Active device 1
Array State : .AA ('A' == active, '.' == missing, 'R' == replacing)
shady@ubun100:~$
shady@ubun100:~$
shady@ubun100:~$ sudo mdadm --examine /dev/sde1
/dev/sde1:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 69da6cdd:405f9a6c:c8d8b478:29541875
Name : shadyserv2:0
Creation Time : Sat Nov 17 22:57:44 2018
Raid Level : raid5
Raid Devices : 3
Avail Dev Size : 5860268032 sectors (2.73 TiB 3.00 TB)
Array Size : 5860265984 KiB (5.46 TiB 6.00 TB)
Used Dev Size : 5860265984 sectors (2.73 TiB 3.00 TB)
Data Offset : 264192 sectors
Super Offset : 8 sectors
Unused Space : before=264112 sectors, after=2048 sectors
State : clean
Device UUID : ab35d4e4:e19a79c0:996124b9:9b9bd01f
Internal Bitmap : 8 sectors from superblock
Update Time : Tue Jan 16 00:33:16 2024
Bad Block Log : 512 entries available at offset 24 sectors
Checksum : 815f8852 - correct
Events : 28319
Layout : left-symmetric
Chunk Size : 512K
Device Role : Active device 2
Array State : .AA ('A' == active, '.' == missing, 'R' == replacing)
shady@ubun100:~$
shady@ubun100:~$ cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10]
md0 : active raid5 sdd1[4] sde1[3]
5860265984 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/2] [_UU]
bitmap: 1/22 pages [4KB], 65536KB chunk
unused devices: <none>
I want to create a website with lemp, I have already installed everything I need like nginx, mariadb PHP and all the functions I need, now I want to open it to the public and add a domain which I already have in my possession, so here come the questions:
1- Sould I create the DNS myself like for example with bind9 or should just redirect the domain to my public IP?
2- Should I put the server in the DMZ? In my case it is running on an Intel NUC.
3- With these two actions I would have everything ready? Or what could I do to improve the security?
4- Could I leave mariaDB in local without it being accessible from internet being in the same server?
Thanks to all answers