Sysadmin Mega Thread

Found this comment:

Rsync is a very powerful tool, perfectly capable of doing what you are asking. Simply use the following options: -aAX --numeric-ids , where:

  • -a means “archive”, and it implies several other options;
  • -A means “Access Lists”, and it is needed to backup the NTFS security descriptors;
  • -X means “Extended Attributes”, and it copy any additional meta-stream attached to the file;
  • --numeric-ids means to not mangle the UID/GID attached to the files. NOTE: if you Windows and Linux machines have persistent UID/GID (eg: by being joined to a AD/LDAP domain), you can safely skip this option.

I suggest you to directly install CygWin/Rsync on the Windows machine, bypassing the Linux mount entirely. Moreover, please consider using rsync via rsnapshot: it is a very good utility with incremental backup feature.

The SAMBA server is a linux machine with about 10 clients. Only one client is Windows.

Does anyone have any experience with this?

Does anyone use Spiceworks?

Came across Uyuni which is SUSE’s fork of Spacewalk. Setting up a test system to see how it performs, seems pretty robust from what I can tell at an initial glance. Only downside so far is that there isn’t a lot of 3rd party info out there about it so the documentation is probably your best friend.

1 Like

Finally got all the parts hooked up to use a Netapp DS4243 to my TrueNAS 2U server.

Twas a long journey.

1 Like

I did not realise there was a ZFS - module for Cockpit yet… still in testing, but seems pretty sweet

1 Like

Wonder if 45drives people helping with that

1 Like

I saw it on the recent Lawrence systems video, and pretty sure Tom mentioned that.

1 Like

anyone setup lancache? i can’t tell if ubuntu server is blocking the ports or snapd is doing something weird with docker. but, dns doesn’t seem to work when i point dns to lancache dns

yes… i made a how-to
with podman…

how long ago?

i disabled ufw and disabled systemd listening on port 53 as per lancahce common TSing. when ever i disabled DNS masq in dd-wrt and set to my ubuntu vm running docker as per my specified in my .env file and yet dns BREAKS, my machines can’t resolve hgtv.com or espn.com etc etc.

said machines can ping ubuntu vm, i do not see any ip conflicts

…what gives…? what am i not seeing and missing.

are there commands i can run to see if my lancache containers can do dnslookups to it’s dns server (8.8.8.8)? is my lancahce dns server starving for dns data?

I wont be much help with ubuntu, sorry.

You can try to exec into the container to run commands.

This is my compose file:

services:
  dns:
    image: lancachenet/lancache-dns:latest
    env_file: .env
    restart: unless-stopped
    ports:
      - ${DNS_BIND_IP}:53:53/udp
  sniproxy:
    image: lancachenet/sniproxy:latest
    env_file: .env
    restart: unless-stopped
    ports:
      - 443:443/tcp
  monolithic:
    image: lancachenet/monolithic:latest
    env_file: .env
    restart: unless-stopped
    ports:
      - 80:80/tcp
    volumes:
      - ${CACHE_ROOT}/cache:/data/cache
      - ${CACHE_ROOT}/logs:/data/logs

And my .env

LANCACHE_IP=10.20.1.34
DNS_BIND_IP=10.20.1.34
UPSTREAM_DNS=10.20.1.35
CACHE_ROOT=/cache
CACHE_DISK_SIZE=10000000m
CACHE_MEM_SIZE=500m
CACHE_MAX_AGE=3650d

I have systemd-resolved set to listen on 127.0.0.53 which I believe is the default. Not sure if you knew but not specifying an IP in the port mapping makes it bind to all IPs. I specifically binded to 10.20.1.34 so that it doesn’t interfere with the DNS resolution of systemd-resolved.

Also the commands docker events and docker logs <container name> are super handy for troubleshooting.

1 Like

Does anyone have any docs for creating an SMTP system such as the one below:

Basically, There are mulitple applications which need to relay to a single FQDN. Say smtp.example.com. That relay needs to then be able to forward the message to the correct endpoint on the right. The rules are applications connect to the relay using SMTP. To the right of the relay the same endpoint is used — smtp.3rdpartysmtprelay.com.

I’ve done this once already, using postfix and some interesting dns stuff, but I’d like to know if anyone has any alternative suggestions.

IP KVMs what ones have you used/liked? Looking to update one at work wanted to know if anyone had any opinions on them.

very interested, they are all a few $k USD last i looked, all i can afford is old java windows xp based stuff. it’s almost cheaper to buy an asrock PAUL for each machine.

1 Like

If you only need to control a small number of a systems, PiKVM is an option. Perhaps combine it with a (non-IP) KVM with either keyboard based, RS232 or other type of remote control option.

For more systems, some old gear is cheap and still works well…
You can get a 2161DS-2 for under $90. Then the SIP/POD for each computer for $12/ea. If you want to connect more than 16 systems, 0FG697 Expansion modules are fairly cheap as well.

Yeah, to get a web based console on those, you need to use Internet Explorer or something else old that supports java plugins, BUT you can download the stand-alone utility, which still works well on modern versions of Windows and Linux.

BEWARE of other IP-KVMs on eBay like Avocent. You’ll find some selling for $20 but they won’t do anything until you pay for a license which you must renew forever.

1 Like

i just disabled the system d thingies as per common issue on lancache site. idk what the system d dns even is needed for?

So the local system, in this case your Lancache system, can resolve DNS. If you want Lancache to listen on 0.0.0.0, so all IP addresses on the system, you have to disable resolved. I don’t have to do that because I have mine specifically set to one IP address.

I have mine set that way because I have a couple Windows DNS servers in front of my Lancache for local records. Mine is like Client–>AD DNS–>Lancache–>AdGuard Home. AdGuard forwards to Quad9 over HTTPS. Looking at the documentation for Lancache, apparently you can set your own local records so I might do that instead of the AD DNS as it is kind of overkill lol