/r/ubuntuserver

Photograph via snooOG

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:

homelab

sysadmin

linux4noobs

HomeNetworking

homeautomation

linuxadmin

/r/ubuntuserver

3,526 Subscribers

2

Tell us about your experiences with Ubuntu Server and this sub

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.

0 Comments
2024/05/01
10:01 UTC

2

Tell us about your experiences with Ubuntu Server and this sub

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.

0 Comments
2024/04/01
10:02 UTC

1

Tell us about your experiences with Ubuntu Server and this sub

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.

0 Comments
2024/03/01
11:01 UTC

2

Tell us about your experiences with Ubuntu Server and this sub

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.

1 Comment
2024/02/01
11:01 UTC

1

My server has only 100 gb

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

8 Comments
2024/01/24
05:03 UTC

1

Help understanding my servers activity

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?

7 Comments
2024/01/23
02:37 UTC

0

Help with linux

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?

3 Comments
2024/01/21
22:54 UTC

1

Hyper-V 2022 and Server 22.04.3 VM installation crashes

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.

0 Comments
2024/01/21
22:10 UTC

1

Need help with remote access (vino/ubuntu one)

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!

2 Comments
2024/01/21
17:33 UTC

0

Cannot ssh into my server

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

7 Comments
2024/01/21
17:24 UTC

1

Ubuntu 20.04 not starting NIC on boot

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

0 Comments
2024/01/21
04:16 UTC

3

Beginner trying to reach jellyfin setup on browser

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

13 Comments
2024/01/20
22:52 UTC

1

ZFS issue

Has the openzfs issue been resolved in Ubuntu server?

1 Comment
2024/01/20
20:45 UTC

2

Can ubuntu 23 take advantage of 2 cpus?

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.

5 Comments
2024/01/19
22:20 UTC

1

Three servers with failover, High Availability and "backup" - running af VM environment

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.

3 Comments
2024/01/19
08:16 UTC

0

Had beautiful portainer/docker setup but ruined it by being careless

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?

5 Comments
2024/01/19
04:58 UTC

2

New to serving, need help.

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

7 Comments
2024/01/17
14:17 UTC

1

BeeLink Mini S Wi-Fi not working on Server Ubuntu

I recently Bought a Beelink Mini S (N5095) and windows 11 was working fine but after i installed the latest version of server ubuntu on it (22.04.03LTS) and while the ethernet is working the wifi isn't. i tried connecting through nmtui and nmcli as well as just when installing but both failed.

when running

nmcli dev status 

i get 

DEVICE  TYPE      STATE        CONNECTION  
wlp2s0  wifi      unavailable  --          
enp1s0  ethernet  unmanaged    --          
lo      loopback  unmanaged    --

and when trying to set it to managed through the command

sudo nmcli dev set wlp2s0 managed yes

it just changes it to unavailable

but when running

nmcli 

it returns

enp1s0: unmanaged
        "Realtek RTL8111/8168/8411"
        ethernet (r8169), aa:aa:aa:aa:aa:aa, hw, mtu 1500

lo: unmanaged
        "lo"
        loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536

wlp2s0: unmanaged
        "Intel 7265"
        wifi (iwlwifi), aa:aa:aa:aa:aa:aa, hw, mtu 1500

(i changed all the mac adressese to all a's)

so it does detect the wifi card.

when running

nmtui

it wont show wifi networks around nor will it connect

i've tried more things (none of which helped, i forgot what i did though) including reinstalling the os a few times,

any ideas?

0 Comments
2024/01/17
05:59 UTC

1

mdadm - not able to assemble array with all disks

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>

3 Comments
2024/01/16
01:02 UTC

1

Reading Package lists…

1 Comment
2024/01/14
12:43 UTC

2

Web Server

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

6 Comments
2024/01/14
04:10 UTC

0

Can only join dedicated game server if my ubuntu shell is open.

3 Comments
2024/01/12
14:28 UTC

1

Ubuntu LTS 22.04 and ZFS

Hi,

some time ago a corruption bug was found on ZFS. Reading bug track page for zfs-linux is reported that for jammy (22.04) it is confirmed but not fixed and in the comment there is a note that a new version of zfs (2.1.14) will be shipped with the new HWE kernel.

How I can find that this kernel is released?

Thank you in advance

0 Comments
2024/01/10
18:24 UTC

1

Remote connection

Fresh install of Ubuntu 23. I cannot connect to it remotely from my Mac. First question what’s the best software to use? Yes, remote connection is enabled in Ubuntu. Thanks

3 Comments
2024/01/10
14:35 UTC

7

Personal server infected with crypto miner, hopefully nothing worse

I'm relatively new to this, so please bear with me. I took a Unix introductory course at my university last year, so I decided to apply some of what I learned and get some more exposure by building my own server. I only use it to host a Minecraft server for my close friends. About 6 months ago, I noticed all my SSH keys disappeared and I had to start logging in using the password. I didn't think anything of it- maybe I didn't configure them correctly or they automatically reset as a security precaution? Then, I started to notice high CPU usage at idle. It basically turned into a space heater. At this point, I got busy so I didn't really use it. It remained off for a while. Today, I started investigating and found that "kswapd0" was using all my memory. After some fiddling and installing various hardware monitoring software, I noticed a folder appear on my root directory. Inside, there were files named "miner" and alike. I immediately removed the files, shut down the server, and unplugged from my network. I'm hoping they weren't after any information and just wanted my resources for crypto mining. I'm trying to figure out where access to my system was obtained. Maybe a brute force attack due to my lazy and easy to guess login credentials? Part of one of the programs I installed? Where do I go from here? What precautions do I need to take? I plan on wiping the drive and starting from scratch, but would an attacker have any access to other devices on my network in this instance?

7 Comments
2024/01/10
05:28 UTC

1

Software RAID1 via mdadm. No files but using 1% of space.

Hello,

Question from a newbie. I just created a RAID1 for the first time in my life. It is built with two 18TB drives in an xfs file system. Is it normal that as soon as I start creating the RAID, the empty disks are about 1% occupied? That's almost 180GB of data that I'd rather use for files. Why is this happening? Can this be eliminated?

Thank you!

2 Comments
2024/01/08
19:39 UTC

0

Help needed at login

Greetings all. I have been struggling for the last few days to ssh into a remote server across town. Finally got out there today to login at the physical machine. Only to discover the shell is exactly the same. After a reboot I get full access again for about 45min then again nothing.

Even just trying to run a sudo command takes forever. Sometimes it asks for the password and sometimes it doesnt even get to that point.

Anybody got any ideas where I can start looking or what my first step should be?

22.04.3 Kernel 5.15

Thanks

6 Comments
2024/01/08
18:00 UTC

Back To Top