how to add small console application to debian linux distribution?
Hi, I have developed small console application to configure debian screen resolution running in HyperV. I would like to add it to debian linux distribution or i can give it to you, to add it to debian linux distribution as a absolutely free code. I don't need to be an administrator of this piece of code. Can you tell me please, what are the next steps to add this functionality to debian linux distribution? console app functionality: There is a way to change screen resolution in all debian linux clones this way ... 1) Open Terminal 2) Type: sudo nano /etc/default/grub 3) Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT, and add video=hyperv_fb:[the resolution you want]. So my line ends up looking like this: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1366x768" 4) Write the changes and quit nano 5) Run: sudo update-grub 6) Reboot the virtual machine run: sudo reboot ... and i have developed console application which do it this way ... sudo hypervscrres --set grub 1366x768 update reboot yes ... and all application variants of use looks like this ... sudo hypervscrres --help sudo hypervscrres --get grub sudo hypervscrres --set grub 1366x768 sudo hypervscrres --set grub 1366x768 update sudo hypervscrres --set grub 1366x768 update reboot sudo hypervscrres --set grub 1366x768 update reboot yes yes | sudo hypervscrres --set grub 1366x768 update reboot tell me please if you have any interest thank you pe pi
how to add small console application to debian linux distribution?
Hi, I have developed small console application to configure debian screen resolution running in HyperV. I would like to add it to debian linux distribution as a absolutely free code. I don't need to be an administrator of this piece of code. Can you tell me please, what are the steps to add this functionality to debian? console app functionality: There is a way to change screen resolution in all debian linux clones this way ... 1) Open Terminal 2) Type: sudo nano /etc/default/grub 3) Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT, and add video=hyperv_fb:[the resolution you want]. So my line ends up looking like this: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1366x768" 4) Write the changes and quit nano 5) Run: sudo update-grub 6) Reboot the virtual machine run: sudo reboot ... and i have developed console application which do it this way ... sudo hypervscrres --set grub 1366x768 update reboot yes ... and all application variants of use looks like this ... sudo hypervscrres --help sudo hypervscrres --get grub sudo hypervscrres --set grub 1366x768 sudo hypervscrres --set grub 1366x768 update sudo hypervscrres --set grub 1366x768 update reboot sudo hypervscrres --set grub 1366x768 update reboot yes yes | sudo hypervscrres --set grub 1366x768 update reboot thank you pe pi
Re: how to add small console application to debian linux distribution?
Hello, im not sure if you install one linux machine, maybe this tool will be unnecessary. but if you will install for example 10 linux machines it will be usefull. i think better solution will be if tools like this be a part of linux main install. pe pi On 12. 10. 2020 13:41, Gard Spreemann wrote: pe pi writes: 1) Open Terminal 2) Type: sudo nano /etc/default/grub 3) Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT, and add video=hyperv_fb:[the resolution you want]. So my line ends up looking like this: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1366x768" 4) Write the changes and quit nano 5) Run: sudo update-grub 6) Reboot the virtual machine run: sudo reboot ... and i have developed console application which do it this way ... sudo hypervscrres --set grub 1366x768 update reboot yes ... and all application variants of use looks like this ... sudo hypervscrres --help sudo hypervscrres --get grub sudo hypervscrres --set grub 1366x768 sudo hypervscrres --set grub 1366x768 update sudo hypervscrres --set grub 1366x768 update reboot sudo hypervscrres --set grub 1366x768 update reboot yes yes | sudo hypervscrres --set grub 1366x768 update reboot Hello, Are you sure that potential users of your program will find it easier to install your program and run it than it is to perform the original task that your program is meant to replace? -- Gard
Re: how to add small console application to debian linux distribution?
hello yes, but standard screen resolution and hyperv screen resolution is not the same setting pe pi On 12. 10. 2020 14:21, John Williams wrote: Personally I would find it much simpler to do
Re: how to add small console application to debian linux distribution?
its ok pe pi On 12. 10. 2020 21:59, John Williams wrote: Ah my mistake, sorry for that. John On Tue., 13 Oct. 2020, 00:10 pe pi, mailto:pe...@mail.com>> wrote: hello yes, but standard screen resolution and hyperv screen resolution is not the same setting pe pi On 12. 10. 2020 14:21, John Williams wrote: > Personally I would find it much simpler to do
Re: how to add small console application to debian linux distribution?
Hi, it doesnt matter if it is written in c language or perl script or in something else main goal is to make it that simple, how can it be and as a part of linux main install, not as an optional package available in every variants of shell pe pi On 13. 10. 2020 9:54, Alex Mestiashvili wrote: Hi, it's nice that you want to make the software available for others, but this task is simply way to simple to have a special package for it. The whole thing can be done with a few shell commands, so there is no need for a tool in my opinion. For example a perl oneliner doing the line substitution: export myopt='bla'; perl -i -pe 's/^(GRUB_CMDLINE_LINUX_DEFAULT=)\"(.*)\"/$1\"$2 $ENV{myopt}\"/' /tmp/grub However nobody prevents you for creating a debian package even for a small application or a script, a good starting place probably is the New Maintainer's Guide: https://www.debian.org/doc/manuals/maint-guide/ Best, Alex On 10/12/20 2:11 PM, pe pi wrote: Hello, im not sure if you install one linux machine, maybe this tool will be unnecessary. but if you will install for example 10 linux machines it will be usefull. i think better solution will be if tools like this be a part of linux main install. pe pi On 12. 10. 2020 13:41, Gard Spreemann wrote: pe pi writes: 1) Open Terminal 2) Type: sudo nano /etc/default/grub 3) Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT, and add video=hyperv_fb:[the resolution you want]. So my line ends up looking like this: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1366x768" 4) Write the changes and quit nano 5) Run: sudo update-grub 6) Reboot the virtual machine run: sudo reboot ... and i have developed console application which do it this way ... sudo hypervscrres --set grub 1366x768 update reboot yes ... and all application variants of use looks like this ... sudo hypervscrres --help sudo hypervscrres --get grub sudo hypervscrres --set grub 1366x768 sudo hypervscrres --set grub 1366x768 update sudo hypervscrres --set grub 1366x768 update reboot sudo hypervscrres --set grub 1366x768 update reboot yes yes | sudo hypervscrres --set grub 1366x768 update reboot Hello, Are you sure that potential users of your program will find it easier to install your program and run it than it is to perform the original task that your program is meant to replace? -- Gard