libera/#devuan/ Saturday, 2020-05-30

frabbitwhat do i have to do to make the output of "lynis audit system" that i write into a file looks liek the output i get when it is displayed on the terminal?00:09
frabbiti mean i catn see the colors when i open that file with lynx for example00:10
frabbit*cant00:11
frabbitinstead i have these (bash?) color codes there00:12
gnarfacethey're ANSI color codes. emacs and bash support them. (off by default in emacs) ... not sure what else.  i know lynx won't.  web browsers won't.00:17
gnarfacevim might, but i'd assume if so it's off by default there too00:18
gnarfacei've only used them in emacs in the built-in shell, but this looks like info for enabling it everywhere: https://stackoverflow.com/questions/23378271/how-do-i-display-ansi-color-codes-in-emacs-for-any-mode00:19
frabbitzeah in vim neither sorry forgot to mention00:20
frabbit*yeah00:20
frabbitoh i have no emacs00:21
frabbiti think i use screen then again00:21
gnarfacethere's a link on there for how to enable it in shell-mode, which is much easier00:21
gnarfaceoh, screen might hose emacs00:21
frabbitshell-mode?00:21
gnarfaceyes, there's a built-in terminal emulator in emacs00:22
gnarfaceM-x shell00:22
frabbitoh i see00:22
frabbitive heard emacs is an os? =D00:23
gnarfacethere have been simpler ones00:23
frabbitok =)00:23
gnarfaceyou might want to also make some edits to your ~/.bashrc if you want to make use of those fancy ANSI colors in the emacs shell00:24
gnarfacemine is from a pretty old copy, but you can probably still figure out what section i changed to this, it's not a big file: http://paste.debian.net/1149650/00:25
frabbitgnarface: but i dont want emacs xD00:25
frabbiti just found that colors in lynis audit usefull to quick check important notes00:25
gnarfaceoh, well this ~/.bashrc edit will let you see them in your regular shell too when you use ls00:25
frabbityeah i know00:26
frabbitbut i wnated to see the colors in a file <(00:26
frabbit*;)00:26
gnarfaceyea, but here's a thing about me.  the argument "waaa, nothing but emacs will do this so i'm just going to pout" isn't going to gain any traction with me00:27
frabbitnever mind i will read it like before, on the tty with screen and 1 billion lines to scroll back to xD00:27
gnarfacei have to assume there's certainly a simpler solution i just don't know what it is.  emacs was one of the first linux programs i was exposed to and i shamelessly use it for all kinds of things nothing else can do00:28
frabbitgnarface: what? xD i cant translate that00:29
frabbitok00:29
gnarfaceif you're ever in a situation where you've got to open a text file that's too big, and every text editor chokes on it.... try emacs :)00:30
frabbithm.. wipe syncs after it finishes, but that stocks because dd is working on that hdd...00:31
frabbitctrl+c doesnt help...00:31
frabbitgnarface: ok =D00:31
gnarfacesometimes you have to also add patience00:31
gnarfaceyou can jam your I/O up good00:32
frabbitgnarface: zeah.. but io wait for ten minutes now... =(00:32
gnarfacei advise avoid doing that00:32
gnarfacei know what you're talking about, i've done it here accidentally too once or twice.  it can take like 20 minutes to unfreeze i think.  depending on how you called it you might just have to wait for it to finish00:33
frabbiti had that problem once and i killed the wipe proces but then the tty was dead and i got stock there when i changed to that tty...00:33
gnarfaceyea, i don't know a way out of that one.  don't do that00:33
frabbitok00:33
frabbitit must have been finished already00:34
frabbitwas just a text file with 200 lines00:34
frabbitprobably i have to wait for dd to finish00:34
frabbitit at 17 GB now... from 160 GB...00:35
frabbitxD00:35
frabbit*of00:35
frabbitsince ive installed ssh ive 2 new ports open here. can i close them when im nt using ssh adn open them again when i want to use it, or will that break something?01:04
gnarfacefrabbit: you can just stop sshd, though if you have 2 ports open then you have more than just ssh running; ssh only uses one port01:08
gnarfacefrabbit: (no, that won't break anything)01:08
frabbitoh!01:08
frabbitso what does that mean that i have two ports open here? =(01:08
gnarfaceit means you need to stop TWO things, not just one01:09
gnarfacei can only guess what the other thing is.  mabye it's portmap?01:09
gnarfacemaybe it's your mail server01:09
frabbitxD yeah but u said ssh only uses one port so were did that other ssh port came from?01:10
frabbiti didnt opened them...01:10
frabbitwait01:10
frabbit1. tcp protocol and program name is sshd 2. is tcp6 protocol and program name is sshd01:11
frabbitboth are LISTEN01:11
gnarfaceoh01:11
frabbitis that bad?01:11
gnarfaceno it's just sshd listening on ipv6 and ipv4 both.  i'm always disabling ipv6 here still so i forgot it would do that.01:12
frabbitphew...01:12
* frabbit resists a heart attack...01:12
frabbitgnarface: how did u disable ipv6?01:13
frabbiti have only wrote ipv4 addresses in interfaces...01:14
frabbitor is that in the router?01:14
gnarfacewell, it's both really01:14
* frabbit looks at his stupid isp roter that has its own will...01:14
frabbitgnarface: ok so router ionly here... =(01:15
frabbit*only01:15
gnarfacewell, the trick is if your virtual servers don't support ipv6 then nothing inside them will either01:16
gnarfacebut most services should be able to be set to listen onlyl on a specific ip01:17
gnarfaceonly*01:17
gnarfacethe sshd_config defaults to listening on all, but it's simple to change01:17
frabbithmm.. in the router is no ipv6 address...01:18
frabbitit sazs i have only i ipv4 one01:18
frabbit*says01:18
gnarfaceif your router and your ISP won't pass ipv6 traffic then it's only relevant on your LAN anyway01:18
frabbitoh wait there is one!01:19
frabbitLAN IPv6 Address01:19
gnarfacei can't imagine a single advantage to having IPV6 that's LAN-side-only on a LAN with only 1 machine01:20
frabbitIT SEEMS THAT I CANT DISABLE IT... O_001:21
frabbitoh sorry01:21
frabbitcaps lock01:21
frabbitthe menu where that addres can be found says that it is possible that i cannot connect to my router anymore when i change something there...01:21
frabbitULA, MTU... i dont have a clue whats this...01:22
gnarfaceMTU should be 1500 don't change it01:23
gnarfacei don't know what ULA is01:23
frabbitgnarface: probably german translation... wait...01:24
frabbitUnique Local Address?01:24
gnarfacemaybe the same as the gateway IP?01:25
gnarfaceor the public IP?01:25
gnarfacei don't know01:25
gnarfacemaybe it's the MAC address01:25
gnarfaceor just the ipv6 one01:25
frabbiten.wikipedia.org/wiki/Unique_local_address01:26
MinceRUncommitted Logical Array01:26
frabbitMinceR: thats what ive found too, but that doesnt make sence in that context ;)01:27
MinceR:)01:28
frabbitlike the Underground Literally Alliance01:28
frabbit=)01:28
fsmithredUnfair License Agreement01:28
frabbitlol01:29
frabbitgnarface: ive stopped ssh with "service ssh stop"01:29
fsmithredports gone now?01:30
frabbityes =)01:30
frabbitcan i prevet ssh startin automaticallz while booting the computer? i just want to start it manually if i need ssh01:31
frabbit*prevent01:31
frabbitoh these typos makes me crazy....01:31
gnarfaceyou can override daemon startups by manipulating the symlinks in the /etc/rc?.d/ directories01:32
gnarfacethere's a utility to change them in groups called update-rc.d (check the man page)01:32
gnarfacebut you can just change them by hand too01:32
frabbitah ok cool. thx =>01:32
frabbitupdate-rc.d ssh disable01:37
frabbitwill that work?01:37
gnarfaceuh, i think so, or something similar anyway01:37
frabbitbut i cant break anything with that?01:38
gnarfaceyou can but in this case you probably won't because you shouldn't have anything else on the system named ssh01:38
frabbitgnarface: how could u know? =o01:39
frabbit=)01:39
gnarfacewell i know there's only one debian package that provides /etc/init.d/ssh so if you have another one then your problem is self-inflicted01:39
frabbitok =)01:40
frabbitdone01:40
frabbitoutput is: insserv: warning: current start runlevel(s) (empty) of script `ssh' overrides LSB defaults (2 3 4 5).01:40
frabbitand: insserv: warning: current stop runlevel(s) (2 3 4 5) of script `ssh' overrides LSB defaults (empty).01:41
gnarfaceyea it'll probably complain about that at every boot now but it will also not start it anymore01:41
frabbitis that.. fine?01:41
gnarfaceyes, that's fine01:41
frabbitcool! =D01:41
frabbitty again =D01:41
gnarfaceit's reporting the expected warning about what you told it to do01:41
frabbitand whe i want to start ssh i just run the service command01:42
gnarfaceyes, these commands should be basically equivalent:  "service ssh start"   and    "/etc/init.d/ssh start"01:42
frabbitah i see01:42
frabbitive rent a virtual server and that thing has several ports open01:43
frabbitsome ports must be open so i can connect but probably not all of them...01:44
gnarfaceif it's devuan then all the other services should be able to be started and stopped in the same way01:44
frabbitits debian (didnt figured out yet hoe to install devuan there)01:44
frabbit*how01:44
frabbitfirst thing i learned was how to log in there and then how to copy files there01:45
frabbitwith ssh and scp01:45
frabbitits my first server01:46
gnarfaceoh, congrats01:47
frabbitbtw debian was installed by default i didnt choose debian there, but the alternatives are ubuntu and... mint i think?01:47
gnarfacessh and scp are super useful01:47
frabbitgnarface: thank you! =D01:47
frabbitgnarface: yeah that was pretty cool to get my stuff there01:47
frabbitah.. im ot again... =/01:48
gnarfaceyou might be able to upgrade the VPS in place to devuan, i've succeeded at that before for some of them, but you might not want to risk it.  even if you succeed i can't speak personally for how the hosting provider will feel about that (some may not care, some do)01:50
* frabbit $scp off-topic.lines frabbit@debianfork:/home/debianfork01:51
fonkyhi all08:53
fonkywhat is the alternative to the command systemd-resolve --status ?08:53
fonkyim trying out stubby08:53
fonkyand only found some info online that deals with systemd sadly08:54
fonkydo i need a resolver like bind9?08:54
fonkysorry dns server if i install stubby08:54
fonkyor souch, if anyone willing to shed some light on the matter would be nice, ty in advance08:55
fonkydo i only run /etc/init.d/netoworking restart?08:56
fonkyoh, and one more, the commands dig and nslookup09:05
fonkywhat package?09:05
fonkyif anyone willing, ty in advance09:06
zatumilbind-dnsutils, generally you can apt-file search or use https://www.debian.org/distrib/packages#search_contents for debian packages09:13
fonkynevermind ty09:18
fonky09:32
ukinedoes "web server" in tasksel grab apache or nginx on stable, anybody know?12:47
zatumilapache2, https://pkginfo.devuan.org/stage/ascii/ascii/task-web-server_3.39+devuan1.9.html12:53
ukinety zatumil13:01
ukinei was highly suspicious it was the tried and true apache2 but wasn't sure :]13:02
ukinelike that option has been forever already13:02
ukineforever to me ;]13:02
beagleboniushelp14:57
beagleboniuswhich package contains the command "startx" ?? is there a way to look that up?14:58
DNiedbeaglebonius: apt-file search startx14:59
beagleboniusthank you14:59
beagleboniusapt-file is not available on my system...15:00
DNiedbeaglebonius: so install it... apt install apt-file15:00
beagleboniusthank you15:01
fsmithredand then apt-file update15:23
HumHow about naming the G release after 9965 GNU? Devuan GNU, a GNU/Linux Distribution?! ;)21:09
MinceR:)21:10
MinceRsounds good to me21:10
golinux_Maybe in another 10 years. If the internet still exists by then21:13
golinux_(Nothing like being in the present)21:13
MinceR:>21:14
HumIn 10 years? What will happen to Debian, that they release more then 26 releases in such a short time?21:16
Hum;)21:16
golinux_Hum: GNU would be 4 releases after Beowulf.  At the rate we can get devuan out the door, it could take that long before we get there.22:17
Humgolinux_: Oh yes, you are right.22:19
golinux_:)22:19
sauron-hi, how do i disable hibernate and suspend from terminal?23:57

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!