Page 1 of 1
Network commands
Posted: Mon Dec 25, 2023 11:44 am
by nirav
Merry Christmas,
I can't seem to find correct networking commands compatible with MX running systemvint, I tried to run resolvectl but it states command not found and need systemd-resolved installed which will not work, this is just one example I'm sure there are lot more commands which I will not be able to use. Is there different commands compatible with systemvint which I can utilize? I have tried searching but can't seem to find it.
Any chance of going with systemd in next release?
Thanks
Re: Network commands
Posted: Mon Dec 25, 2023 11:54 am
by CharlesV
You should be able to run systemd just by selecting Advanced on grub and then choosing the systemd choice.
What you are probably looking for is systemd-resolve for sysvint?
Re: Network commands
Posted: Mon Dec 25, 2023 12:22 pm
by nirav
CharlesV wrote: Mon Dec 25, 2023 11:54 am
You should be able to run systemd just by selecting Advanced on grub and then choosing the systemd choice.
What you are probably looking for is systemd-resolve for sysvint?
Yes, I can run systemd from advance options but I don't want it to cause issues since default OS uses systemvint, if you recommend it is okay to run then I don't mind trying. Will it cause any issues with all software and configuration already installed?
Is there a systemd-resolve for sysvint?
Re: Network commands
Posted: Mon Dec 25, 2023 12:58 pm
by Charlie Brown
nirav wrote: Mon Dec 25, 2023 12:22 pm... but I don't want it to cause issues since default OS uses systemvint, if you recommend it is okay to run then I don't mind trying. Will it cause any issues with all software and configuration already installed?..
Nope, otherwise MX developers wouldn't (never ever) provide such an option, and many MX users use that, no matter for they like it or just for they need it for some software ...
You can even make it the default boot option with "MX Boot Options" - "Boot to" .. select from drop-down, Apply.
"Don't worry, Be happy" :)
(Just , there won't be systemd on live session even if you create snapshots when on systemd , and that's not a bug/harm etc..)
Re: Network commands
Posted: Mon Dec 25, 2023 5:46 pm
by CharlesV
And exactly what networking things are you trying to do?
I run systemd very rarely and it always works fine. But I have not found anything that I cannot get done in sysvint either.
Re: Network commands
Posted: Mon Dec 25, 2023 7:17 pm
by nirav
If I want to flush/renew DNS records how can I do that? and can you recommend any site where there are network commands cheat sheet which will work with syvint.
Re: Network commands
Posted: Mon Dec 25, 2023 8:22 pm
by Gabriel_M
Code: Select all
Linux commands Olds News
TASK IFCONFIG/ROUTE IP
Show all NICs ifconfig ip addr show
Show specific NIC ifconfig eth0 ip addr show eth0
Disable NIC ifconfig eth0 down ip link set eth0 down
Enable NIC ifconfig eth0 up ip link set eth0 up
Assign IP ifconfig eth0 [IP] netmask [NM] ip addr [IP]/[CIDR] dev eth0
Show routing table route / netstat -r ip route
Set standard route route add default gw [IP] eth0 ip route add default via [IP
TASK NSLOOKUP DIG
Forward lookup nslookup google.de dig google.de / dig +short google.de
Reverse lookup nslookup [IP] dig -x [IP] / dig +short -x [IP]
Use specific DNS server nslookup google.de [DNS] dig @[DNS] google.de / dig @[DNS] +short google.de
Ask for MX records nslookup -query=mx google.de dig google.de MX / dig +short google.de MX
Specific timeout nslookup -timeout=42 google.de dig google.de +time=42 / dig +short google.de +time=42
Re: Network commands [Solved]
Posted: Tue Dec 26, 2023 5:59 am
by l0dr3
nirav wrote: Mon Dec 25, 2023 7:17 pm
If I want to flush/renew DNS records how can I do that?
from my archived debian linux general notes ...
Debian: DNS resolver(s) and cache(s)
https://unix.stackexchange.com/question ... y-on-linux
Plain Vanilla Debian (and all MX) comes with NO DEFAULT DNS-RESOLVER and NO DEFAULT DNS-CACHE !!
https://www.debian.org/releases/bookwor ... d-resolved
"MQ: Installing this package will automatically give systemd-resolved control of /etc/resolv.conf.
Note that systemd-resolved was not, and still is not, the default DNS resolver in Debian."
https://www.freedesktop.org/software/sy ... rvice.html
Options for custom local DNS services are:
apt policy systemd-resolved
systemd-resolved:
Installed: (none)
Candidate: 1:252.6-1mx23+1
apt policy bind9
bind9:
Installed: (none)
Candidate: 1:9.18.19-1~deb12u1
apt policy dnscache
dnscache:
Installed: (none)
Candidate: 1:1.05-15+b2
apt policy dnsmasq
dnsmasq:
Installed: (none)
Candidate: 2.89-1
apt policy unbound
unbound:
Installed: (none)
Candidate: 1.17.1-2+deb12u1
apt policy resolvconf
resolvconf:
Installed: (none)
Candidate: 1.91+nmu1
apt policy openresolv
openresolv:
Installed: (none)
Candidate: 3.12.0-3
ff references and procedures ..
https://unix.stackexchange.com/question ... -debian-11
https://serverfault.com/questions/11453 ... -debian-12
https://www.howtoforge.com/how-to-set-u ... on-debian/
https://www.howtoforge.com/how-to-set-u ... debian-12/
https://www.linuxbabe.com/debian/dns-re ... ster-bind9
https://vitux.com/two-ways-to-flush-the ... on-debian/
HTH l0dr3
Re: Network commands
Posted: Tue Dec 26, 2023 2:14 pm
by nirav
Thank you l0dr3 for comprehensive guide greatly appreciated.
Re: Network commands
Posted: Wed Dec 27, 2023 7:55 am
by l0dr3
nirav wrote: Tue Dec 26, 2023 2:14 pm
Thank you l0dr3 for comprehensive guide greatly appreciated.
Glad to be of help
ATM i'm in the middle of a transition from an ancient (but still in use!) Windows HomeServer (2011) to an All-in-One Debian/MX based HomeLabServer, that features all the classic services: ICS, NAS, VM/VDI, HTPC and of course: DNS/DHCP services.
I decided to go a slightly modified 'Pi-Hole-Way', but this time, using 'unbound' instead of 'dnsmasq' for DNS. Maybe of interest for you, here are some links to Tutorials, HowTos and WiKis, i 'borrowed' my ideas from ...
https://docs.pi-hole.net/guides/dns/unb ... s-solution
https://wiki.archlinux.org/title/unbound
https://www.howtoforge.com/how-to-set-u ... on-debian/
https://www.ricmedia.com/tutorials/set- ... esolv-conf
greetz l0dr3
Re: Network commands
Posted: Wed Dec 27, 2023 11:30 am
by CharlesV
@l0dr3 One more thing you and I have in common! I started moving my Win2008 server to an MX server December 3. I am now approx 80% done, with only some last ASP hold out web drama left to do :-)
Re: Network commands
Posted: Wed Dec 27, 2023 2:21 pm
by l0dr3
@CharlesV 
I'm on ~75% now .. 75% ATM, bcof the HTPC part (record-store-and-stream AV stuff from various sources on the box and stream into the homelab, so AV clients can play this content w#standard clients, such as VLC, MPC or DVBV as IP-client

)
For this purpose, over the last 15y, i had two highly up-armed - but now 'ancient' and now 'no longer supported'

- windows servers, i paid licence fees for:
- a 2K11 HomeServer, in a setup w#modifications to act as a 'PseudoAD/LDAP' server with full support for centralized DHCP/DNS services

- a 2K8R2 Web-Server, on which i had a MultiMedia setup for DVBViewer (and: WinSTB, oc

) for DVB-S2 cards, by 'upgrading' this box w#some 'unofficial' DirectX components
BUT: as as 'XMas gift',
@timkb4cq /THX/
viewtopic.php?p=756982#p756982 
released the MX Version of Myth-TV! - I am on testing since this morning .. looks very promisingly, seems that i've found a (more than equivalent!) successor/competitor for my future 'linux-only' HTPC environments
I made my peace w#Samba/NAS special setup on MX, transformed my former win-only VirtualBox-Workflows 1:1 to MX, and ATM, i'm pretty sure, that i can integrate my ZFS-Workflows (which rely on a separate TrueNAS/BSD box thus far) into Debian/MX - latest fixes for ZFS-DKMS just arrived today on SID

)
Merry Christmas .. and a HAPPY new year

to all MXers and forum users
greetz l0dr3
Re: Network commands
Posted: Wed Dec 27, 2023 2:25 pm
by CharlesV
l0dr3 wrote: Wed Dec 27, 2023 2:21 pm
@CharlesV

I'm on ~75% now .. 75% ATM, bcof the HTPC part (record-store-and-stream AV stuff from various sources on the box and stream into the homelab, so AV clients can play this content w#standard clients, such as VLC, MPC or DVBV as IP-client

)
For this purpose, over the last 15y, i had two highly up-armed - but now 'ancient' and now 'no longer supported'

- windows servers, i paid licence fees for:
Ya, I get this one... I bailed out of my MS Dev Licenses approx 6 years ago and maintained my two windows servers and five workstations, phasing them all out over the last 5 years - except for the LAST server and 1 real workstation. (All leaving this year :-) FINALLY !!
Re: Network commands
Posted: Wed Dec 27, 2023 2:37 pm
by l0dr3
CharlesV wrote: Wed Dec 27, 2023 2:25 pm
... FINALLY !!
YEP - as
:the SATAN sayed: ...
Windows10 will be the last windows ever
At least for me - it was my last Windows /PERIOD/
My roadmap so far has always been: at the end of 2023, i'll be windows-free

Re: Network commands
Posted: Wed Dec 27, 2023 2:39 pm
by CharlesV
l0dr3 wrote: Wed Dec 27, 2023 2:37 pm
CharlesV wrote: Wed Dec 27, 2023 2:25 pm
... FINALLY !!
YEP - as
:the SATAN sayed: ...
Windows10 will be the last windows ever
At least for me - it was my last Windows /PERIOD/
My roadmap so far has always been: at the end of 2023, i'll be windows-free
Nice... Ya.. my last hold out is the MS Sqlserver... once I have all that archived and moved I can kill Server - and yes! Win10 IS the last one I will run, and at this point only two VM's left - Win Server and Win10 to go :-)
Congrats one being done with MS too btw! I am shortly behind ya :-)
Re: Network commands
Posted: Wed Jan 24, 2024 7:37 am
by nirav
Hi I0dr3, Sorry why people don't use names, lol
Anyway, thank you for the information. I'm already running PiHole on a Pi3 and Unbound on OPNsense, few months back I had Pihole and Unbound running on Pi. Works really well, in future I might move the PiHole config to a VM running on Proxmox. Save me few $$ and one less thing to maintain.