/srv/irclogs.ubuntu.com/2021/02/08/#ubuntu-server.txt

DrecondiusI'm trying to install the 20.04 server on a lenovo edge 2. Is it possible to use an oem installation from one of the desktop versions to install server on it so I have wifi?02:45
Drecondiusit's not detecting the wifi adapter and I don't know how to pull the info up without loading a desktop version02:46
=== de-facto_ is now known as de-facto
Chr15P_1968Good day. Im struggling to password protect Grub menus only on 20.04. All attempts so far require you to enter the grub password when rebooting, I just need the menus to be password protected. Can someone point me to a guide that can help achieve this please.06:53
HamidrezaHi guys, I was using ubuntu 16 and now I'm using ubuntu 20 , on ubuntu 16 I have some kernel tuning parameters in sysctl.conf, How can I check them and correct them for ubuntu20 and new kernel version?06:55
monacoChr15P_1968: https://vineetcic.medium.com/how-to-set-grub-password-in-ubuntu-18-03-password-protect-boot-loader-ecb5db18405406:55
Chr15P_1968Awesome, thanx @monaco. Will give it a bash.06:57
HamidrezaI would appreciate if someone help me: https://paste.ubuntu.com/p/cjdT5RNzN5/07:23
Hamidrezais there anybody to help me?07:48
Chr15P_196820.04 doesnt have the file /boot/grub/menu.lst. Looks like the guide in the link will also require you to enter your password when you boot the VM. I just need to protect the grub menu entries, ie when you want to edit the menu entry a password will be required.07:50
utkarsh2102Hamidreza: wdym? you can't find the parameters in /etc/sysctl.conf?07:52
utkarsh2102or just that file? :)07:52
Hamidrezautkarsh2102, Is there any refrence for this file?07:55
utkarsh2102Hamidreza: there's a man page07:56
Hamidrezautkarsh2102, it doesnt have all parameters07:56
Hamidrezaex: I want to know this parameter "vm.zone_reclaim_mode" works on ubuntu 20 r not?07:57
Hamidrezaand which varibale I can set for new kernel version07:57
utkarsh2102hm, try using -a/--all flag?07:59
utkarsh2102-a/--all: Display all values currently available.08:00
Hamidrezautkarsh2102, Yes08:28
Hamidrezabut it doesnt show all08:29
utkarsh2102huh, weird. OK, I'll TAL once I'm on system again.08:51
utkarsh2102well, I'll mostly google up, which I'm guessing you'd have done?08:52
Chr15P_1968Hamidreza  sudo cat /proc/sys/vm/zone_reclaim_mode10:58
Chr15P_1968mine is set to 0 after a fresh install10:58
swcdxHello, I will be organizing files and folders in ubuntu server. Is there a terminal program for windows or ubuntu desktop that let’s me use GUI interface to move/copy/paste files around? I am trying to save myself the amounts of typing I will have to do in the CLI. Any other suggestions or programs is appreciated. TIA15:28
SkyriderIs it possible that systemd can "read" part of the console logs and restart when it detects a specific part of text?15:29
rbasakswcdx: mc?15:29
swcdxrbasak: I don't understand your reply15:30
rbasakswcdx: sorry. Try the package called "mc"15:30
rbasakhttp://www.midnight-commander.org15:30
tewardSkyrider: I don't think SystemD has the functionality to actively parse logs and restart on a specific text item15:30
SkyriderAny idea what might have that function?15:31
rbasakI think most people would write a script to achieve that. It seems like a really ugly hack though.15:31
rbasakhttps://xyproblem.info/15:31
SkyriderYa, I know..  but if a discord bot is shutting down because of "Shard ID 0 heartbeat blocked for more than", its refusing to restart as it's still online15:32
swcdxthanks rbasak, I will check it out.15:37
rbasakSkyrider: so adjust the bot to either crash on that message, or add a watchdog function and use systemd's watchdog facility?15:40
tewardSkyrider: either write a management script for it, or alter the code of the bot and such15:42
tewardrbasak: systemd watchdog might not work, because bots are still 'online' from a process perspective15:42
tewardbut dead to Discord15:42
tewardhad the same issue testing a few Discord bot frameworks15:42
tewardSkyrider: both options are "Bad", unless the bot can trigger its own restart mechanism on such disconnects you're pretty out of options there unless you manually restart the bot as you seem to be doing15:43
tewardthe *GOOD* discord bots and frameworks will attempt to autoreconnect, or just die after failing to connect a certain number of times15:44
swcdxrbasak: Thank you, you are saving me a lot of typing my friend. WiSh ther was somehting easier but better than typing. I will work with it to figure it out.16:12
leftyfbSkyrider: you could probably accomplish that with fail2ban17:12
Skyriderleftyfb... fail2ban? how O_o17:41
leftyfbSkyrider: create a filter to read the log and look for the string you want, then create an action to restart whatever you want17:42
leftyfbI know fail2ban isn't meant to do this, but it's basically just a service to read a log, look for a thing and do a thing when you find a pattern in said log17:43
SkyriderThat's pretty smart :o17:44
leftyfbthere's also something as simple as https://unix.stackexchange.com/a/1207717:45
leftyfbalso https://unix.stackexchange.com/a/1213717:46
Skyriderleftyfb: Thanks for the suggestion. I ended up using a sh script with regex.19:53
SkyriderMonitors the systemctl logs and acts on a specific textl ine.19:54

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!