Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?
On Sat, Apr 01, 2023 at 09:07:30AM +0530, Susmita/Rajib wrote: [...] > The above limitations directs me to suggest to Debian Teams across all > Mailing Lists and the Board to have GPT4 added to extend > functionalities of GNU-Linux systems [...] GPT is not free software, so it can't be included in Debian. Besides, it's being used in very free-software unfriendly ways, but this is a whole different story. Cheers -- t signature.asc Description: PGP signature
Re: Hoe een Android device beter te mounten
Richard Lucassen writes: > On Fri, 31 Mar 2023 09:47:31 +0200 > Cecil Westerhof wrote: > >> Als ik een Android via USB koppel, dan is deze via de command line >> bereikbaar via: >> /run/user/1000/gvfs/mtp:host=LENOVO_Lenovo_TB-8705F_HA141AZC/Internal\ >> shared\ storage >> >> Als ik dan een mv probeer van mijn computer naar de Android, dan krijg >> ik: >> mv: preserving times for './file2move': Operation not supported >> mv: preserving permissions for ‘./file2move’: Operation not >> supported >> >> $? bevat 0 en het bestand staat er ook, maar met de verkeerde tijd en >> eventueel verkeerde permissies. >> >> Is er een manier om een Android zo te mounten dat de reguliere bestand >> operaties wel zijn toegestaan? > > # apt install jmtpfs > > Dat werkte vroeger bij mij. Via USB aansluiten en dan: > > $ mkdir -p ~/phone > $ jmtpfs ~/phone/ > > Alweer tijden niet meer gebruikt, geen idee of het nog actueel is. Het > ging destijds nog wel eens mis, dan zat je met een gemount fs dat er > niet meer was. Dat geeft: Device 0 (VID=17ef and PID=7c35) is UNKNOWN in libmtp v1.1.17. Please report this VID/PID and the device model to the libmtp development team error returned by libusb_claim_interface() = -6LIBMTP PANIC: Unable to initialize device terminate called after throwing an instance of 'MtpErrorCantOpenDevice' what(): Can't open device Aborted Moet ik even contact opnemen. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof
Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?
My illustrious team leaders and senior debian-user list-members, Thank you for replying to my email and for your help. I had posted another, a second message on the issue and clarified my requirements. But between this time, a couple of emails were received from Mr. Davidson, and also from Mr. Stefan Monnier, Mr. Van Snyder and Mr. Greg Wooledge. I thank Mr. Davidson and Mr. Greg Wooledge for their advice. I fondly remember Mr. Wooledge and his support earlier too. Since my earlier 2nd post on this very subject at Sat, 1 Apr 2023 09:07:30 +0530 with message-Id: caeg4czus4dyt02pvm5byvrpxtxvdeybthfgwhrhi80upoy9...@mail.gmail.com makes my need clear, I would like to avoid diff. My reason has been posted in that earlier 2nd post. Dear Mr. Stefan Monnier and Mr. Van Snyder: Unfortunately, I once tried to learn emacs but it is complex. So it is difficult for me to use diff from within emacs. I am sorry that I am not a worthy student. I would refer to my earlier post but like to repeat the last paragraphs of that post: [quote] Bottom line is: icdiff is wonderful, but from a terminal it becomes limited. Can;t a good programmer have icdiff ported to GUI? It would be the best solution available for me, and for people like me. The above limitations directs me to suggest to Debian Teams across all Mailing Lists and the Board to have GPT4 added to extend functionalities of GNU-Linux systems, for example, in this present case, have icdiff extended to a GUI, and then have gifted and humane programmers work in tandem with GPT4 to plug in the insecurities accompanying a new program. Thank you for your suggestions. Shall be expecting better solutions with my having explained my needs clearer this time. [/quote] Best wishes, Rajib B Etc.
Re: Software usage.
In-reply-to: References: From: David Wright Date: Sat, 21 Jan 2023 21:48:14 -0600 Yes, perhaps suggest this change to the editors: "Alternatively, you can send an email to one of the following addresses: "Web pages editors package: www.debian.org debian-...@lists.debian.org" Sent a message February 18. No acknowledgement. No evidence of the suggested change. ... P.
Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?
My illustrious team leaders and senior debian-user list-members, Thank you for replying to my email and for your help. The situation is complex. The alteration can't be straightaway applied by plain replacing. I will try to illustrate the situation with a clear example: Suppose I wrote a book book1.txt. I then send it to an editor who corrects the initial mistakes, altering some lines while doing so, renaming to another file book2.txt. When I receive the editor's correction, I don't accept them straightaway, but based on his suggestions I change my book1 and edit and alter it further. Diff helps in comparing the two draft editions. This one cycle could again be repeated. Dear Mr. l0f4r0: that pointer, https://unix.stackexchange.com/questions/537418/how-to-make-text-wrap-with-diff-y; indeed helped and led me to icdiff which is wonderful. Unfortunately, for two very large text files, the terminal truncates the beginning and just highlights the end sections of the files. Icdiff didn't work with " | less". But it sure worked with " | more". Similarly, with diff -y <(fold -s -w72 file1) <(fold -s -w72 file2) -W 200, the beginning is truncated and only the end is displayed. And yes, it works with " | more". But it is bland. Without colours differences can't be spotted so easily. Of course, I could use icdiff part by part also. Though tedious, might help. But presently, I am thinking of sticking to icdiff with " | more". Dear Mr. Kramer: Thank you. I fondly remember my interactions with you on several occasions. I checked wdiff and also dwdiff. But they are very bland and very complicated to handle as dwdiff uses a lot of braces with + and - signs, but doesn't present the two files side by side for intuitive/visual comparison. And regarding your "... A person who writes a sig this long probably has issues and disrespects (and offends) a large number of readers. ;-) ...", yes it is generally true. For me, the post below your solution did confuse me, but I am generally adept at skimming and skipping paras. Dear Mr. DdB: I fondly remember my interaction with you some time during May 2022. Perhaps you have overlooked that I needed text wrapping for diff. I have checked the synaptic screenshot for meld, have installed and tried it. But it too suffers from the lack of text wrapping function. For huge text files it is thus problematic. Is a text wrap option available? Am I missing something? Dear Mr. local10: I can't try kompare though meld appears to be monocrome. Since my Desktop Environment is lxde, installing kompare, accompanied by a huge download of kde packages, is impossible unless I use knoppix, which I do. Dear Mr. Davidson: I have already mentioned about diff above. So won't repeat it. But thank you very much for the line. Bottom line is: icdiff is wonderful, but from a terminal it becomes limited. Can;t a good programmer have icdiff ported to GUI? It would be the best solution available for me, and for people like me. The above limitations directs me to suggest to Debian Teams across all Mailing Lists and the Board to have GPT4 added to extend functionalities of GNU-Linux systems, for example, in this present case, have icdiff extended to a GUI, and then have gifted and humane programmers work in tandem with GPT4 to plug in the insecurities accompanying a new program. Thank you for your suggestions. Shall be expecting better solutions with my having explained my needs clearer this time. Best wishes, Rajib B Etc.
Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?
On Sat, Apr 01, 2023 at 01:41:22AM +, davidson wrote: > On Sat, 1 Apr 2023 davidson wrote: > > Start here instead: > > > > $ diff file1 file2 > > > > It displays the differences, and your terminal will wrap lines (and > > break words) to fit the window for you. > > > > Does it do what you want? > > A concise explanation of diff's default output format (which is a > little cryptic but quite simple) can be viewed in the info browser > with > > $ info -n "Detailed Normal" diffutils # type 'q' to quit > > or written to a text file with > > $ info -o diff_format_explained.txt -n "Detailed Normal" diffutils Most people prefer diff -u format. Here's a quick sample of the three formats: unicorn:~$ diff <(seq 1 3) <(printf '1\n4\n3\n') 2c2 < 2 --- > 4 unicorn:~$ diff -c <(seq 1 3) <(printf '1\n4\n3\n') *** /dev/fd/63 Fri Mar 31 21:53:34 2023 --- /dev/fd/62 Fri Mar 31 21:53:34 2023 *** *** 1,3 1 ! 2 3 --- 1,3 1 ! 4 3 unicorn:~$ diff -u <(seq 1 3) <(printf '1\n4\n3\n') --- /dev/fd/63 2023-03-31 21:53:37.023781025 -0400 +++ /dev/fd/62 2023-03-31 21:53:37.023781025 -0400 @@ -1,3 +1,3 @@ 1 -2 +4 3 The first one (default) gives no context lines. It simply says "replace line 2, which is "2", with "4". This works fine for some inputs, but it doesn't allow for applying a code patch to a function that has moved a few lines down in the file since the patch was written. So, the second format, "context", was introduced. It shows the lines before and after the change. This allows the patch applier to look around in the file and find the appropriate place to apply the patch, if the content has moved around. The third format, "unified", is just a more compact version of "context". It shows the lines before and after the change, but only once instead of twice. In some ways, the "context" format can be easier to read, because you see the actual new content exactly as it should appear, without the old lines interwoven. On the other hand, the "unified" format shows you the before and after lines right next to each other. In some cases, that can be easier to use. Especially once you get used to it.
Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?
On Sat, 1 Apr 2023 davidson wrote: Start here instead: $ diff file1 file2 It displays the differences, and your terminal will wrap lines (and break words) to fit the window for you. Does it do what you want? A concise explanation of diff's default output format (which is a little cryptic but quite simple) can be viewed in the info browser with $ info -n "Detailed Normal" diffutils # type 'q' to quit or written to a text file with $ info -o diff_format_explained.txt -n "Detailed Normal" diffutils -- We've been looking for the enemy for some time now. We've finally found him. We're surrounded. That simplifies things. -- Chesty Puller
Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?
On Fri, 31 Mar 2023 davidson wrote: Some elaboration on my first take. On Fri, 31 Mar 2023 Susmita/Rajib wrote: My dear illustrious leaders and senior debian-user list-members, I neglected to notice the proper subset of readers on whom you intended to inflict your request. I tried diffuse, I see that diffuse has quite a number of features: diffuse - graphical tool for merging and comparing text files Diffuse is a graphical tool for merging and comparing text files. Diffuse is able to compare an arbitrary number of files side-by-side and gives users the ability to manually adjust line-matching and directly edit files. Diffuse can also retrieve revisions of files from bazaar, CVS, darcs, git, mercurial, monotone, Subversion and GNU Revision Control System (RCS) repositories for comparison and merging. Which of these features do you *require*? but it appears to me that it suffers from a limitation so far as my need is concerned. It compares files by lines and line numbers, so I can't use word-wrap By "word-wrap", do you mean you need to break *lines* into smaller lines (so that your screen can accomodate their content)? Or do you mean instead that you are dealing with words so long that some words won't fit within a single line on your screen until you turn them into smaller words by inserting newlines. to have the differences between two files within the program window without venturing out to the right within the two file windows. I see (from its package description above) that diffuse can display files' content side-by-side. Is this a requirement of yours? Because if it is not, you can double your effective screen width by simply discarding the side-by-side feature. $ diff <(fmt file1) <(fmt file2) fmt has a -w option to adjust the max line width. The default is 75. If I may say so myself, this is almost certainly not a helpful solution. How embarrassing. Start here instead: $ diff file1 file2 It displays the differences, and your terminal will wrap lines (and break words) to fit the window for you. Does it do what you want? Is there a way to Word Wrap? Am I making a mistake here? Which program would be the best suited for my work for comparing text files? It depends on your precise requirements, which we cannot know until you tell us what they are. (Sometimes one does not know oneself. This is also okay.) I don't believe you have specified any of your requirements that the solution above does not provide. -- Hackers are free people. They are like artists. If they are in a good mood, they get up in the morning and begin painting their pictures. -- Vladimir Putin
Nettoyage du spam : mars 2023
Bonjour, Comme nous sommes en avril, il est désormais possible de traiter les archives du mois de mars 2023 des listes francophones. N'oubliez bien sûr pas d'ajouter votre nom à la liste des relecteurs pour que nous sachions où nous en sommes. Détails du processus de nettoyage du spam sur : https://wiki.debian.org/I18n/FrenchSpamClean Jean-Pierre Giraud
Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?
On Fri, 31 Mar 2023 Susmita/Rajib wrote: My dear illustrious leaders and senior debian-user list-members, I tried diffuse, but it appears to me that it suffers from a limitation so far as my need is concerned. It compares files by lines and line numbers, so I can't use word-wrap to have the differences between two files within the program window without venturing out to the right within the two file windows. $ diff <(fmt file1) <(fmt file2) fmt has a -w option to adjust the max line width. The default is 75. Is there a way to Word Wrap? Am I making a mistake here? Which program would be the best suited for my work for comparing text files? It depends on your precise requirements, which we cannot know until you tell us what they are. (Sometimes one does not know oneself. This is also okay.) I don't believe you have specified any of your requirements that the solution above does not provide. -- Hackers are free people. They are like artists. If they are in a good mood, they get up in the morning and begin painting their pictures. -- Vladimir Putin
singularity-container in bookworm?
Hello folks, I'm writing to ask if there is anything more recent in the works for https://tracker.debian.org/pkg/singularity-container than https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029669 and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=917867 It seems the issue is one of the more structural issues that come up when upsteam's maintenance policy does not match Debian's more stable development cycle. Is this a viable candidate for inclusion in https://fasttrack.debian.net/ for Bookworm? Thanks, and cheers! -- Boyan Penkov
Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?
On Fri, 2023-03-31 at 22:50 +0200, local10 wrote: > Mar 31, 2023, 16:30 by bkpsusmi...@gmail.com: > > I tried diffuse, but it appears to me that it suffers from > > alimitation so far as my need is concerned. It compares files by > > linesand line numbers, so I can't use word-wrap to have the > > differencesbetween two files within the program window without > > venturing out tothe right within the two file windows. > > Is there a way to Word Wrap? Am I making a mistake here? Which > > programwould be the best suited for my work for comparing text > > files? > > Try Kompare. I tried several diff tools but I liked Kompare the most: > clean, intuitive interface, easy to use, lots of features. emacs includes a nice side-by-side compare and merge feature. > Regards,
Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?
Mar 31, 2023, 16:30 by bkpsusmi...@gmail.com: > I tried diffuse, but it appears to me that it suffers from a > limitation so far as my need is concerned. It compares files by lines > and line numbers, so I can't use word-wrap to have the differences > between two files within the program window without venturing out to > the right within the two file windows. > > Is there a way to Word Wrap? Am I making a mistake here? Which program > would be the best suited for my work for comparing text files? > Try Kompare. I tried several diff tools but I liked Kompare the most: clean, intuitive interface, easy to use, lots of features. Regards,
Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?
Am 31.03.2023 um 18:13 schrieb Susmita/Rajib: > My dear illustrious leaders and senior debian-user list-members, > > I tried diffuse, but it appears to me that it suffers from a > limitation so far as my need is concerned. It compares files by lines > and line numbers, so I can't use word-wrap to have the differences > between two files within the program window without venturing out to > the right within the two file windows. > > Is there a way to Word Wrap? Am I making a mistake here? Which program > would be the best suited for my work for comparing text files? > > There is a package called diffoscope but it has to install a long list > of dependent packages in my present Debian system installed from > "Official Debian GNU/Linux Live 11.6.0 lxde 2022-12-17T11:46" > > Eagerly awaiting your advice. > > Best wishes, > Rajib B > Etc. > > I may be misunderstanding your needs: In many cases, i replace diff with meld, an interactive diff UI
Re: Hoe een Android device beter te mounten
On Fri, 31 Mar 2023 09:47:31 +0200 Cecil Westerhof wrote: > Als ik een Android via USB koppel, dan is deze via de command line > bereikbaar via: > /run/user/1000/gvfs/mtp:host=LENOVO_Lenovo_TB-8705F_HA141AZC/Internal\ > shared\ storage > > Als ik dan een mv probeer van mijn computer naar de Android, dan krijg > ik: > mv: preserving times for './file2move': Operation not supported > mv: preserving permissions for ‘./file2move’: Operation not > supported > > $? bevat 0 en het bestand staat er ook, maar met de verkeerde tijd en > eventueel verkeerde permissies. > > Is er een manier om een Android zo te mounten dat de reguliere bestand > operaties wel zijn toegestaan? # apt install jmtpfs Dat werkte vroeger bij mij. Via USB aansluiten en dan: $ mkdir -p ~/phone $ jmtpfs ~/phone/ Alweer tijden niet meer gebruikt, geen idee of het nog actueel is. Het ging destijds nog wel eens mis, dan zat je met een gemount fs dat er niet meer was. R. -- richard lucassen http://contact.xaq.nl/
MiniDebConf Brasília 2023 - 25 a 27 de maio
MiniDebConf Brasília 2023 Nesse ano a MiniDebConf Brasil está de volta! A comunidade brasileira de usuários e desenvolvedores Debian convida a todos a participarem da *MiniDebConf Brasília 2023*que acontecerá durante 3 dias na capital federal. Nos dias 25 e 26 de maio estaremos no Complexo Avançado da Câmara dos Deputados - LabHacker/CEFOR, promovendo palestras, oficinas e outras atividades. E,no dia 27 de maio (sábado),estaremos em um coworking (local a definir) para colocar a mão na massa hackeando software e contribuindo para o Projeto Debian. A MiniDebConf Brasília 2023 [1] é um evento aberto a todos, independente do seu nível de conhecimento sobre Debian. O mais importante será reunir a comunidade para celebrar o maior projeto de Software Livre do mundo, por isso queremos receber desde usuários inexperientes que estão iniciando o seu contato com o Debian até Desenvolvedores oficiais do projeto. A programação da MiniDebConf Brasília 2023 será composta de palestras de nível básico e intermediário para aqueles participantes que estão tendo o primeiro contato com o Debian ou querem conhecer mais sobre determinados assuntos, e workshops/oficinas de nível intermediário e avançado para usuários do Debian que querem colocar a mão-na-massa durante o evento. No último dia do evento,teremos um Hacking Day em um espaço de coworking para que todos possam interagir e de fato fazerem contribuições para o projeto. A inscrição na MiniDebConf Brasília 2023 é totalmente gratuita e poderá ser feita no formulário disponível no site do evento[2]. É mandatória a inscrição prévia para que todos possam acessar a Câmara dos Deputados-devido a questões de segurança da casa. Além de auxiliar a organização no dimensionamento do evento. O evento é organizado de forma voluntária, e toda ajuda é bem-vinda. Portanto, se você gostaria de contribuir para a realização do evento, preencha o formulário para inscriçãode voluntários[3]. Os formulários para inscrição (na MiniDebConf e para ajudar na organização) e submissão de atividades [4]serão abertos no dia 1º de abril (não tem nenhuma pegadinha, se inicia nesse dia mesmo :). Contato = Para entrar em contato com o time local,a lista de emails debian-br-eventos [5], o canal IRC #debian-bsb no OFTC e o grupo no telegram DebianBrasília [6] podem ser utilizados. Além do endereço de email: brasil.m...@debconf.org. [1] https://brasilia.mini.debconf.org/ [2] https://brasilia.mini.debconf.org/inscricao [3] https://brasilia.mini.debconf.org/voluntarios [4] https://brasilia.mini.debconf.org/submissao-de-atividades [5] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-br-eventos [6] https://t.me/debianbrasilia Nos vemos em Brasília! -- Lucas Kanashiro
Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?
On Friday, March 31, 2023 12:13:33 PM Susmita/Rajib wrote: > There is a package called diffoscope but it has to install a long list > of dependent packages in my present Debian system installed from > "Official Debian GNU/Linux Live 11.6.0 lxde 2022-12-17T11:46" It's been quite a while since I actually used diff, but I always preferred a word diff (to a line based diff). Two options are wdiff and wdiff2 (aka mdiff -w) -- rhk (sig revised 20230312 -- modified first paragraph, some other irrelevant wordsmithing) | No entity has permission to use this email to train an AI. If you reply: snip, snip, and snip again; leave attributions; avoid HTML; avoid top posting; and keep it "on list". (Oxford comma (and semi-colon) included at no charge.) If you revise the topic, change the Subject: line. If you change the topic, start a new thread. Writing is often meant for others to read and understand (legal documents excepted?) -- make it easier for your reader by various means, including liberal use of whitespace (short paragraphs, separated by whitespace / blank lines) and minimal use of (obscure?) jargon, abbreviations, acronyms, and references. If someone has already responded to a question, decide whether any response you add will be helpful or not ... A picture is worth a thousand words. A video (or "audio"): not so much -- divide by 10 for each minute of video (or audio) or create a transcript and edit it to 10% of the original. A speaker who uses ahhs, ums, or such may have a real physical or mental disability, or may be showing disrespect for his listeners by not properly preparing in advance and thinking before speaking. (That speaker might have been "trained" to do this by being interrupted often if he pauses.) (Remember Cicero who did not have enough time to write a short missive.) A radio (or TV) station which broadcasts speakers with high pitched voices (or very low pitched / gravelly voices) (which older people might not be able to hear properly) disrespects its listeners. Likewise if it broadcasts extraneous or disturbing sounds (like gunfire or crying), or broadcasts speakers using their native language (with or without an overdubbed translation). A person who writes a sig this long probably has issues and disrespects (and offends) a large number of readers. ;-) '
Re: Hoe een Android device beter te mounten
Geert Stappers writes: > On Fri, Mar 31, 2023 at 09:47:31AM +0200, Cecil Westerhof wrote: >> Als ik een Android via USB koppel, dan is deze via de command line >> bereikbaar via: >> /run/user/1000/gvfs/mtp:host=LENOVO_Lenovo_TB-8705F_HA141AZC/Internal\ >> shared\ storage >> >> Als ik dan een mv probeer van mijn computer naar de Android, dan krijg >> ik: >> mv: preserving times for './file2move': Operation not supported >> mv: preserving permissions for ‘./file2move’: Operation not supported >> >> $? bevat 0 en het bestand staat er ook, maar met de verkeerde tijd en >> eventueel verkeerde permissies. >> >> Is er een manier om een Android zo te mounten dat de reguliere bestand >> operaties wel zijn toegestaan? > > Het zou kunnen dat daar hl veel gevraagd wordt, maar ik kan het mis > hebben. Vandaar dat ik graag de output van > > mount | grep VERDER_FILTER > > zou zien. "VERDER_FILTER" is dan iets dat alleen de android is. Het enige dat ik zie is: gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000) Wat ik vreemd vind, want de Android 'schijven' zijn: drwx-- 1 cecil cecil 0 Jan 1 1970 Internal shared storage drwx-- 1 cecil cecil 0 Jan 1 1970 SD card -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof
Re: Crear lanzadores con permisos de superusuario.
El vie, 31-03-2023 a las 13:24 +0200, Ramses escribió: > El 30 de marzo de 2023 21:33:51 CEST, "José María" > escribió: > > El mié, 29-03-2023 a las 22:00 +0200, Ramses escribió: > > > Hola a tod@s, > > > > > > Tengo estos dos lanzadores en mi Escritorio: > > > > > > [Desktop Entry] > > > Name=Zenmap > > > GenericName=GUI Port Scanner > > > TryExec=zenmap > > > Exec=zenmap %F > > > Terminal=false > > > Icon=/usr/local/share/zenmap/pixmaps/zenmap.png > > > Type=Application > > > Categories=Application;Network;Security; > > > Comment=A cross-platform GUI for the Nmap Security Scanner. > > > Keywords=network;scan;scanner;IP;security; > > > > > > > > > [Desktop Entry] > > > Name=Zenmap (as root) > > > GenericName=GUI Port Scanner > > > TryExec=/usr/local/share/zenmap/su-to-zenmap.sh > > > Exec=/usr/local/share/zenmap/su-to-zenmap.sh %F > > > Terminal=false > > > Icon=/usr/local/share/zenmap/pixmaps/zenmap.png > > > Type=Application > > > Categories=Application;Network;Security; > > > Comment=A cross-platform GUI for the Nmap Security Scanner. > > > Keywords=network;scan;scanner;IP;security; > > > > > > Si ejecuto el primero "Name=Zenmap", me dice que se está > > > intentando > > > ejecutar el programa con un usuario que no tiene permisos, y a > > > continuación me lo abre. > > > > > > Si ejecuto el segundo "Name=Zenmap (as root)", no hace nada. > > > > > > Si en un terminal ejecuto esta línea "/usr/local/share/zenmap/su- > > > to- > > > zenmap.sh" del segundo, no hace nada, pero si en el terminal le > > > antepongo el "sudo" a esa línea "sudo /usr/local/share/zenmap/su- > > > to- > > > zenmap.sh", se abre sin problemas. > > > > > > He probado a ponerles "sudo" al principio de las lineas en los > > > comandos de los lanzadores, pero me da error. > > > > > > ¿Alguna ayuda de cómo modificar loas lanzadores para que me los > > > ejecute como root? > > > > > > > > > Saludos y gracias > > > > > > > Hola, > > > > Se me ocurre una forma algo "sucia"... Pruébalo antes en una > > máquina > > virtual. No me hago responsable. > > > > Primero añade a tu usuario y al ejecutable de zenmap a sudo. > > Ejecuta: > > > > sudo visudo > > > > > > Añade la siguiente línea al archivo. Si tu usuario fuese "jose" > > > > joseALL=NOPASSWD: /usr/local/share/zenmap/su-to-zenmap.sh %F > > > > Con esto se supone que no te pide la contraseña al ejecutar la > > aplicación con sudo > > > > > > Ahora tendrás que editar el lanzador y ponerle sudo al ejecutable, > > o > > sea, busca la siguiente línea y déjala así > > > > Exec=sudo /usr/local/share/zenmap/su-to-zenmap.sh %F > > > > > > Si no funciona, déjalo todo como estaba > > > > No hace falta que te diga que esto no es lo correcto... pero puede > > ser > > una solución mientras buscas algo mas ortodoxo > > > > Un saludo, > > Jose > > > > > > > > > > > > Hola José María, > > Así, sí va fino... > > ¿Problemas? > > > Saludos y gracias > ¿Problemas dices?... En teoría no, solo comprueba si ejecutando otra aplicación con "sudo" te pide la contraseña, por ejemplo actualiza el sistema con: sudo apt update Si todo va bien lo puedes dejar así, solo debes tener en cuenta que para zenmap nunca te va a pedir la contraseña... ¿Te quieres complicar la vida? Deshaz todo y te cuento... Ya he leído que usas Ubuntu, pero no dices el entorno de escritorio que usas... eso también influye, tanto la distribución como el entorno de escritorio. Me explico, si usas un gestor de ventanas como Openbox, JWM etc o usas Cinnamon, XFCE, Unity o GNOME2, tendrías que instalar el paquete "policykit-1-gnome" ¡¡¡OJO!!! esto es sólo en Debian, así que tendrías que mirar el paquete que corresponde a Ubuntu El entorno de escritorio de Mate, aunque sea un fork de GNOME2 tiene su propio policykit, al igual que LXDE, LXQT o GNOME3 Si usas este último, tendrías que crear una acción ya que usa pkexec para que cuando ejecutes la aplicación se te abra un dialogo que te pregunte por la contraseña. Te dejo un link con lo que tendrías que hacer porque es un poco largo de explicar https://geekland.eu/crear-accion-de-policykit-abrir-aplicacion-root/ Hay que echarle tiempo, paciencia y usar el método de prueba y error... Hasta aquí te puedo ayudar Un saludo
Re: Unable to open Thunderbird as default calendar app
On 2023-03-29 23:18, Max Nikulin wrote: Thank you for the insights Max. Updating the default mime type for webcal resolved my problem. -- Regards, John Boxall
Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?
>> Is there a way to Word Wrap? Am I making a mistake here? >> Which program would be the best suited for my work for comparing >> text files? I'd expect most text editors to do that for you. E.g. when I ask Emacs to give me a diff for "files with long lines", the long lines are wrapped and the diff is colored to show the specific words that are changed within each line. Stefan
Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?
Hi, 31 mars 2023, 18:30 de bkpsusmi...@gmail.com: > Is there a way to Word Wrap? Am I making a mistake here? Which program > would be the best suited for my work for comparing text files? > Does that pointer help you? https://unix.stackexchange.com/questions/537418/how-to-make-text-wrap-with-diff-y l0f4r0
Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?
My dear illustrious leaders and senior debian-user list-members, I tried diffuse, but it appears to me that it suffers from a limitation so far as my need is concerned. It compares files by lines and line numbers, so I can't use word-wrap to have the differences between two files within the program window without venturing out to the right within the two file windows. Is there a way to Word Wrap? Am I making a mistake here? Which program would be the best suited for my work for comparing text files? There is a package called diffoscope but it has to install a long list of dependent packages in my present Debian system installed from "Official Debian GNU/Linux Live 11.6.0 lxde 2022-12-17T11:46" Eagerly awaiting your advice. Best wishes, Rajib B Etc.
Re: Hoe een Android device beter te mounten
On Fri, Mar 31, 2023 at 09:47:31AM +0200, Cecil Westerhof wrote: > Als ik een Android via USB koppel, dan is deze via de command line > bereikbaar via: > /run/user/1000/gvfs/mtp:host=LENOVO_Lenovo_TB-8705F_HA141AZC/Internal\ > shared\ storage > > Als ik dan een mv probeer van mijn computer naar de Android, dan krijg > ik: > mv: preserving times for './file2move': Operation not supported > mv: preserving permissions for ‘./file2move’: Operation not supported > > $? bevat 0 en het bestand staat er ook, maar met de verkeerde tijd en > eventueel verkeerde permissies. > > Is er een manier om een Android zo te mounten dat de reguliere bestand > operaties wel zijn toegestaan? Het zou kunnen dat daar hl veel gevraagd wordt, maar ik kan het mis hebben. Vandaar dat ik graag de output van mount | grep VERDER_FILTER zou zien. "VERDER_FILTER" is dan iets dat alleen de android is. Groeten Geert Stappers -- Silence is hard to parse
[RESOLU] Augmenter le disque d'une VM libvirt construite à partir d'une Debian Cloud Image
Je confirme que la procédure d'Hugues marche parfaitement (ajouter un e2fsck -f /dev/nbd0p1 avant le resize2fs) ! Encore merci ! Le ven. 31 mars 2023 à 00:50, Hugues Larrive a écrit : > > Bonjour, > > --- Original Message --- > Le jeudi 30 mars 2023 à 15:16, Olivier a écrit : > > > > > > > > > > Je viens à l'instant de trouver le lien ci-après. Il décrit > > parfaitement mon cas de figure. > > Il propose l'utilisation de virt-rescue pour ré-installer grub sur le > > disque élargi. > > Dans cet exemple, virt-rescue est utilisé de façon interactive. > > Pour ma part, j'ai besoin d'une solution non-interactive. > > > > Effectivement virt-rescue ne semble pas permettre une utilisation > non-interactive. > Dans l'exemple il est utilisé pour réinstaller grub car les partitions sont > réorganisées pour que la partition à étendre soit la dernière. En réalité ce > n'est > pas nécessaire car la numérotation ne correspond pas à l'ordre physique des > partitions sur le disque et c'est déjà la dernière, donc voilà une méthode > pour > la redimensionner à 8G sans casser grub : > > wget -O debian-11-generic-amd64.qcow2 > https://cloud.debian.org/images/cloud/bullseye/20220911-1135/debian-11-generic-amd64-20220911-1135.qcow2 > > qemu-img resize debian-11-generic-amd64.qcow2 8G# augmente la taille > virtuelle à 8Go > modprobe nbd# charge le module nbd > (networck block device) > qemu-nbd -c /dev/nbd0 debian-11-generic-amd64.qcow2 # connecte l'image à > /dev/nbd0 > printf "p\nd\n1\nn\n\n\n\npwq" | fdisk /dev/nbd0# Supprime la partition 1 > et la recrée avec les valeurs par défaut (tout l'espace disponible) > resize2fs /dev/nbd0p1 # redimensionne les > système de fichier à la taille de la partition > qemu-nbd -d /dev/nbd0 # déconnecte l'image de > /dev/nbd0 > sleep 1 # attend 1 seconde > rmmod nbd # décharge le module nbd > > Un test rapide pour voir si ça boot : > kvm -m 1G -drive cache=writeback,file=debian-11-generic-amd64.qcow2 -serial > stdio > Booting `Debian GNU/Linux' > > Loading Linux 5.10.0-21-amd64 ... > Loading initial ramdisk ...^C > kvm: terminating on signal 2 > > C'est bon ! > > @+ > Hugues > > > https://blog.dachary.org/2020/12/23/virt-resize-applied-to-debian-gnu-linux-cloud-images/ > > > > > Le jeu. 30 mars 2023 à 15:05, Olivier oza.4...@gmail.com a écrit : > > > > > > Le jeu. 30 mars 2023 à 14:58, NoSpam no-s...@tootai.net a écrit : > > > > > > > > . installer Debian > > > > Puis-je justement installer Debian en utilisant ce fichier .qcow2 > > > > originel ? > > > > Même s'il n'est pas parfait (clavier Qwerty, ...) on intérêt est de > > > > m'éviter l'utilisation de l'installeur Debian. > > > > J'aimerai si possible, continuer à ne pas utiliser ce dernier.
Re: should CLI have a nice UI today?
On 2023-03-25 06:35, to...@tuxteam.de wrote: After a detour around whiptail I ended up full-circle with Tcl/Tk. It is still the nicest, smallest self-contained graphical toolkit enabling one to wrap some GUI around CLI programs. The whole pack is one or two orders of magnitude smaller than some web browser monstrosity and much easier to extend, handle and embed. +1 mick
Re: Crear lanzadores con permisos de superusuario.
El 2023-03-31 a las 12:48 +0200, Ramses escribió: > El 30 de marzo de 2023 12:50:51 CEST, "Camaleón" > escribió: (...) > >> >> > >> >> ¿Alguna otra idea, incluir "zenmap" en"sudo" de alguna forma para que > >> >> al ejecutar el lanzador automáticamente se ejecute con otro usuario, es > >> >> decir, como "root"? > >> > > >> >¿Has probado lo que recomiendan en el enlace? > >> > > >> >Comprueba que tienes todos los paquetes necesarios instalados. > >> > > >> >How to Install Zenmap on Ubuntu 22.04 > >> >https://blog.eldernode.com/install-zenmap-on-ubuntu-22-04/ > >> > > >> >Y revisa los comentarios donde dicen que NO funciona con Python3. > >> > > >> >Saludos, > >> > > >> > >> Camaleón, ese enlace ya lo había revisado, y me daba problemas de > >> dependencias al instalar la librería que proponen en el proceso, el tema > >> de la instalación de GTK, creo recordar. > > > >No me refiero a ESE enlace, sino al primero que te he puesto :-) > > > >> Finalmente di con este enlace, que coge el código fuente, hace una > >> modificación de "path" en los ficheros y se hace la compilación e > >> instalación. > >> > >> Sí ejecuto "sudo zenmap" desde un terminal, "zenmap" arranca en entorno > >> gráfico sin problemas. La historia está en crear un lanzador en el Entorno > >> Gráfico, que no consigo crear el lanzador para que me ejecute "sudo > >> zenmap". También he probado con "pkexec zenmap", pero me da error el > >> lanzador, pero si ejecuto esa orden desde un terminal, funciona > >> perfectamente. > >> > >> No sé si me explico... > > > >Entiendo lo que te pasa, pero no sé si el error se debe a que no has > >instalado las dependencias que necesita el paquete para iniciarse o se > >trata de un problema con el lanzador del escritorio que necesita > >conferir los permisos de súperusaurio de la manera adecuada a tu > >entorno. > > > >Unas preguntas sencillas: > > > >1. ¿Qué versión de Debian y qué entorno gráfico tienes instalado? > >2. ¿Qué sucede cuando ejecutas zenmap desde una consola como root? ¿Se > >inicia? ¿Saca algún error? ¿Qué te dice? > > > > Camaleón, buenos días. > > Tengo UBUNTU 22.04 Vale, entonces es una versión moderna que NO admite de manera nativa Zenmap. > Desde la Consola: (...) > - Con mi Usuario ejecuto "sudo /usr/local/share/zenmap/su-to-zenmap.sh", se > abre "zenmap". > > - Con root (entrando con "su root" y password) ejecuto "zenmap" y se abre > "zenmap". > > - Con root (entrando con "su root" y password) ejecuto > "/usr/local/share/zenmap/su-to-zenmap.sh" y se abre "zenmap". Bien, entonces el problema que tienes es únicamente con el lanzador, proque ya has resuelto la instalación de Python2 que necesita la aplicación, de otra forma no podría ejecutarse ni iniciarse Zenmap. (...) > Vamos, que si lo tiro desde la Consola, funciona "zenmap", pero no consigo > que funcione desde un lanzador para root, porque cuando ejecuto el lanzador > para Usuario, se comporta igual que cuando tiro el "zenmap" desde Consola > como Usuario, pero cuando ejecuto el lanzador para "root", se comporta como > cuando ejecuto "/usr/local/share/zenmap/su-to-zenmap.sh" desde la Consola > como Usuario, que no hace nada. El guión que utiliza el apquete Zenmap no está pensando para sistemas actuales que se basan el Policykit/pxexec, como ya te dije. Lo que tienes que hacer es adapatar el sistema de autentificación en entorno gráfico como root para que funcione, y poner esa orden en el archivo .desktop de Zenmap, para lo cual podrías basarte en el lanzador de alguna aplicación similar, como «ettercap-graphical», que usa la siguiente orden en el guión al que llama el lanzador: pkexec --disable-internal-agent "ethercap" "@" O Synapctic, que usa un guión ubicado «/usr/bin/synaptic-pkexec»: pkexec "/usr/sbin/synaptic" "$@" Pero además necesitarás alguna regla o política definida en Policykit para que te funcione, entiendo que sólo con el lanzador no será suficiente. Revisa lo que están haciendo otras distribuciones para adaptar ese paquete a los nuevos entornos, p. ej. en Archlinux, pro si te da alguna idea: https://aur.archlinux.org/packages/zenmap Saludos, -- Camaleón
Re: Crear lanzadores con permisos de superusuario.
El 30 de marzo de 2023 21:33:51 CEST, "José María" escribió: >El mié, 29-03-2023 a las 22:00 +0200, Ramses escribió: >> Hola a tod@s, >> >> Tengo estos dos lanzadores en mi Escritorio: >> >> [Desktop Entry] >> Name=Zenmap >> GenericName=GUI Port Scanner >> TryExec=zenmap >> Exec=zenmap %F >> Terminal=false >> Icon=/usr/local/share/zenmap/pixmaps/zenmap.png >> Type=Application >> Categories=Application;Network;Security; >> Comment=A cross-platform GUI for the Nmap Security Scanner. >> Keywords=network;scan;scanner;IP;security; >> >> >> [Desktop Entry] >> Name=Zenmap (as root) >> GenericName=GUI Port Scanner >> TryExec=/usr/local/share/zenmap/su-to-zenmap.sh >> Exec=/usr/local/share/zenmap/su-to-zenmap.sh %F >> Terminal=false >> Icon=/usr/local/share/zenmap/pixmaps/zenmap.png >> Type=Application >> Categories=Application;Network;Security; >> Comment=A cross-platform GUI for the Nmap Security Scanner. >> Keywords=network;scan;scanner;IP;security; >> >> Si ejecuto el primero "Name=Zenmap", me dice que se está intentando >> ejecutar el programa con un usuario que no tiene permisos, y a >> continuación me lo abre. >> >> Si ejecuto el segundo "Name=Zenmap (as root)", no hace nada. >> >> Si en un terminal ejecuto esta línea "/usr/local/share/zenmap/su-to- >> zenmap.sh" del segundo, no hace nada, pero si en el terminal le >> antepongo el "sudo" a esa línea "sudo /usr/local/share/zenmap/su-to- >> zenmap.sh", se abre sin problemas. >> >> He probado a ponerles "sudo" al principio de las lineas en los >> comandos de los lanzadores, pero me da error. >> >> ¿Alguna ayuda de cómo modificar loas lanzadores para que me los >> ejecute como root? >> >> >> Saludos y gracias >> > >Hola, > >Se me ocurre una forma algo "sucia"... Pruébalo antes en una máquina >virtual. No me hago responsable. > >Primero añade a tu usuario y al ejecutable de zenmap a sudo. Ejecuta: > >sudo visudo > > >Añade la siguiente línea al archivo. Si tu usuario fuese "jose" > >jose ALL=NOPASSWD: /usr/local/share/zenmap/su-to-zenmap.sh %F > >Con esto se supone que no te pide la contraseña al ejecutar la >aplicación con sudo > > >Ahora tendrás que editar el lanzador y ponerle sudo al ejecutable, o >sea, busca la siguiente línea y déjala así > >Exec=sudo /usr/local/share/zenmap/su-to-zenmap.sh %F > > >Si no funciona, déjalo todo como estaba > >No hace falta que te diga que esto no es lo correcto... pero puede ser >una solución mientras buscas algo mas ortodoxo > >Un saludo, >Jose > > > > > Hola José María, Así, sí va fino... ¿Problemas? Saludos y gracias
Re: Crear lanzadores con permisos de superusuario.
El 31/3/23 a les 12:53, Ramses ha escrit: El 30 de marzo de 2023 18:50:50 CEST, Pitu Odena escribió: Prueba con kdesu ( o gnomesu, o xdg-su,... ) en lugar de sudo. Esas opciones he leído que están obsoletas, ¿no?. Saludos No se si estan obsoletas. Solo se que si quiero ejecutar algun programa como root desde el lanzador de aplicaciones (Alt+F2) con sudo no funciona pero si con kdesu (uso KDE). Supongo (no estoy seguro) que en *.desktop pasa lo mismo. Se trataria de poner : kdesu Exec=/usr/local/share/zenmap/su-to-zenmap.sh %F Por probar no se pierde nada.
Re: Crear lanzadores con permisos de superusuario.
El 30 de marzo de 2023 21:22:12 CEST, Carlos Villiere escribió: >El mié, 29-03-2023 a las 22:00 +0200, Ramses escribió: >> Hola a tod@s, >> >> Tengo estos dos lanzadores en mi Escritorio: >> >> [Desktop Entry] >> Name=Zenmap >> GenericName=GUI Port Scanner >> TryExec=zenmap >> Exec=zenmap %F >> Terminal=false >> Icon=/usr/local/share/zenmap/pixmaps/zenmap.png >> Type=Application >> Categories=Application;Network;Security; >> Comment=A cross-platform GUI for the Nmap Security Scanner. >> Keywords=network;scan;scanner;IP;security; >> >> >> [Desktop Entry] >> Name=Zenmap (as root) >> GenericName=GUI Port Scanner >> TryExec=/usr/local/share/zenmap/su-to-zenmap.sh >> Exec=/usr/local/share/zenmap/su-to-zenmap.sh %F >> Terminal=false >> Icon=/usr/local/share/zenmap/pixmaps/zenmap.png >> Type=Application >> Categories=Application;Network;Security; >> Comment=A cross-platform GUI for the Nmap Security Scanner. >> Keywords=network;scan;scanner;IP;security; >> >> Si ejecuto el primero "Name=Zenmap", me dice que se está intentando >> ejecutar el programa con un usuario que no tiene permisos, y a >> continuación me lo abre. >> >> Si ejecuto el segundo "Name=Zenmap (as root)", no hace nada. >> >> Si en un terminal ejecuto esta línea "/usr/local/share/zenmap/su-to- >> zenmap.sh" del segundo, no hace nada, pero si en el terminal le >> antepongo el "sudo" a esa línea "sudo /usr/local/share/zenmap/su-to- >> zenmap.sh", se abre sin problemas. >> >> He probado a ponerles "sudo" al principio de las lineas en los >> comandos de los lanzadores, pero me da error. >> >> ¿Alguna ayuda de cómo modificar loas lanzadores para que me los >> ejecute como root? >> >> >> Saludos y gracias >> > >Hola Ramses > >Probaste de cambiar los permisos a "su-to-zenmap.sh" > >Saludos > Hola la Carlos, No he probado, tiene 755 root:root Los he cambiado para mí Usuario, y nada. Saludos
Re: Crear lanzadores con permisos de superusuario.
El 30 de marzo de 2023 18:50:50 CEST, Pitu Odena escribió: >Prueba con kdesu ( o gnomesu, o xdg-su,... ) en lugar de sudo. > Esas opciones he leído que están obsoletas, ¿no?. Saludos
Re: Crear lanzadores con permisos de superusuario.
El 30 de marzo de 2023 21:19:01 CEST, Carlos Villiere escribió: >El jue, 30-03-2023 a las 08:21 +0200, Camaleón escribió: >> su-to-zenmap.sh >Probaste de cambiar los permisos de "su-to-zenmap.sh" > No, tiene permisos 755 root:root Saludos
Re: Crear lanzadores con permisos de superusuario.
El 30 de marzo de 2023 12:50:51 CEST, "Camaleón" escribió: >El 2023-03-30 a las 12:32 +0200, Ramses escribió: > >> El 30 de marzo de 2023 11:53:03 CEST, "Camaleón" >> escribió: >> >El 2023-03-30 a las 11:33 +0200, Ramses escribió: >> >> El 30 de marzo de 2023 8:21:40 CEST, "Camaleón" >> >> escribió: >> >> >El 2023-03-29 a las 22:00 +0200, Ramses escribió: >> >> > >> >> >> Tengo estos dos lanzadores en mi Escritorio: >> >> > >> >> >(...) >> >> > >> >> >> [Desktop Entry] >> >> >(...) >> >> >> Exec=zenmap %F >> >> > >> >> >> [Desktop Entry] >> >> >(...) >> >> >> Exec=/usr/local/share/zenmap/su-to-zenmap.sh %F >> >> >> >> >> >> Si ejecuto el primero "Name=Zenmap", me dice que se está intentando >> >> >> ejecutar el programa con un usuario que no tiene permisos, y a >> >> >> continuación me lo abre. >> >> >> >> >> >> Si ejecuto el segundo "Name=Zenmap (as root)", no hace nada. >> >> >> >> >> >> Si en un terminal ejecuto esta línea >> >> >> "/usr/local/share/zenmap/su-to-zenmap.sh" del segundo, no hace nada, >> >> >> pero si en el terminal le antepongo el "sudo" a esa línea "sudo >> >> >> /usr/local/share/zenmap/su-to-zenmap.sh", se abre sin problemas. >> >> >> >> >> >> He probado a ponerles "sudo" al principio de las lineas en los >> >> >> comandos de los lanzadores, pero me da error. >> >> > >> >> >Se trata de un bug conocido del paquete que además ya no lo veo >> >> >disponible en las nuevas versiones de Debian: >> >> > >> >> >https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=zenmap;dist=unstable >> >> > >> >> >> ¿Alguna ayuda de cómo modificar loas lanzadores para que me los >> >> >> ejecute como root? >> >> > >> >> >Leyendo en contenido del guión que ejecuta zenmap como root, veo que >> >> >necesita gksu/kdesu/xterm (?), mira a ver tienes alguna de las 3 >> >> >aplicaciones pero ya te adelanto que son MUY antiguas, en las versiones >> >> >actuales de Debian ya no se usan (están policykit, pkexec y demás >> >> >moderneces). >> >> > >> >> >En cualquier caso, siempre podrás create un nuevo lanzador que se >> >> >ajuste a lo que tengas instalado, según la versión de Debian que >> >> >tengas. >> >> > >> >> >Mira a ver si te sirve lo que indican por aquí: >> >> > >> >> >Zenmap (as root) not working on Manjaro >> >> >https://github.com/nmap/nmap/issues/1874#issuecomment-770532361 >> >> > >> >> Buenos días, >> >> >> >> Ya había probado a anteponer el comando "pkexec" a la línea del comando >> >> editando el fichero del lanzador, pero me pone el lanzador con error, >> >> como no ejecutable. >> >> >> >> ¿Alguna otra idea, incluir "zenmap" en"sudo" de alguna forma para que al >> >> ejecutar el lanzador automáticamente se ejecute con otro usuario, es >> >> decir, como "root"? >> > >> >¿Has probado lo que recomiendan en el enlace? >> > >> >Comprueba que tienes todos los paquetes necesarios instalados. >> > >> >How to Install Zenmap on Ubuntu 22.04 >> >https://blog.eldernode.com/install-zenmap-on-ubuntu-22-04/ >> > >> >Y revisa los comentarios donde dicen que NO funciona con Python3. >> > >> >Saludos, >> > >> >> Camaleón, ese enlace ya lo había revisado, y me daba problemas de >> dependencias al instalar la librería que proponen en el proceso, el tema de >> la instalación de GTK, creo recordar. > >No me refiero a ESE enlace, sino al primero que te he puesto :-) > >> Finalmente di con este enlace, que coge el código fuente, hace una >> modificación de "path" en los ficheros y se hace la compilación e >> instalación. >> >> Sí ejecuto "sudo zenmap" desde un terminal, "zenmap" arranca en entorno >> gráfico sin problemas. La historia está en crear un lanzador en el Entorno >> Gráfico, que no consigo crear el lanzador para que me ejecute "sudo zenmap". >> También he probado con "pkexec zenmap", pero me da error el lanzador, pero >> si ejecuto esa orden desde un terminal, funciona perfectamente. >> >> No sé si me explico... > >Entiendo lo que te pasa, pero no sé si el error se debe a que no has >instalado las dependencias que necesita el paquete para iniciarse o se >trata de un problema con el lanzador del escritorio que necesita >conferir los permisos de súperusaurio de la manera adecuada a tu >entorno. > >Unas preguntas sencillas: > >1. ¿Qué versión de Debian y qué entorno gráfico tienes instalado? >2. ¿Qué sucede cuando ejecutas zenmap desde una consola como root? ¿Se >inicia? ¿Saca algún error? ¿Qué te dice? > >Saludos, > Camaleón, buenos días. Tengo UBUNTU 22.04 Desde la Consola: - Con mi Usuario ejecuto "zenmap" y me dice, en una ventana gráfica, que estoy intentando ejecutar "zenmap" con un usuario sin privilegios y que algunas funciones requieren permisos "root" para ejecutarse. Al Aceptar en esa ventana, se abre "zenmap". - Con mi Usuario ejecuto "sudo zenmap" y me pide password y se abre "zenmap". - Con mi Usuario ejecuto "/usr/local/share/zenmap/su-to-zenmap.sh" y no hace nada, ni mensajes ni nada. - Con mi Usuario ejecuto "sudo
mount a remote object storage
Hello list, I have the object storage service from the big providers (google cloud storage, Amazon S3). Now I want to mount them in Debian Linux as a block device. Though I know there is s3fs: sudo apt-get install s3fs But i have no experience on it. Do you have any suggestion on using remote object storage as local device? Thanks Corey H.
Re: Strange locally-originating spam messages from sport.qc.ca
Hi Greg, On Thu, Mar 30, 2023 at 07:18:15AM -0400, Greg Wooledge wrote: > On Thu, Mar 30, 2023 at 12:00:01PM +0300, Reco wrote: > > On Thu, Mar 30, 2023 at 09:30:49AM +0100, Julian Gilbey wrote: > > > I wonder if anyone has any idea about how to track this down? > > > > I'd check /var/log/exim4/mainlog first, obviously. > > In addition to that, open one of the spam messages in a competent MUA > and examine the full headers. You should see one or more "Received:" > headers. Every time the message is handed off to a new MTA, a new > Received: header is prepended to the top of the message, so to read > them in chronological order, you have to start at the bottom and work > your way upward. > [...] Thanks - this was useful, and eventually helped me to pin-point the source of the spam. Best wishes, Julian
Re: Strange locally-originating spam messages from sport.qc.ca
Hi Reco, On Thu, Mar 30, 2023 at 02:34:29PM +0300, Reco wrote: > Hi. > > On Thu, Mar 30, 2023 at 12:19:24PM +0100, Julian Gilbey wrote: > > The log seems quite unhelpful here, though I may be missing > > something. Here is an example: > > I disagree. There's nothing to miss here, thus you're correct. > [...] Thanks for your detailed analysis and advice! Though I've solved the problem in this case (it was fetchmail running in daemon mode, pulling in emails from another mail server, though I didn't realise that this was happening), your suggestions are excellent and I will bear them in mind in the future if anything similar happens. Best wishes, Julian
Hoe een Android device beter te mounten
Als ik een Android via USB koppel, dan is deze via de command line bereikbaar via: /run/user/1000/gvfs/mtp:host=LENOVO_Lenovo_TB-8705F_HA141AZC/Internal\ shared\ storage Als ik dan een mv probeer van mijn computer naar de Android, dan krijg ik: mv: preserving times for './file2move': Operation not supported mv: preserving permissions for ‘./file2move’: Operation not supported $? bevat 0 en het bestand staat er ook, maar met de verkeerde tijd en eventueel verkeerde permissies. Is er een manier om een Android zo te mounten dat de reguliere bestand operaties wel zijn toegestaan? -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof
Re: Re : Re: Augmenter le disque d'une VM libvirt construite à partir d'une Debian Cloud Image
Génial ! Je vais tester cette dernière méthode dès que possible. @didier Ici mon objectif est d'améliorer un script Ansible avec lequel je crée des VM libvirt/QEMU personnalisées. Mon script fonctionne parfaitement à partir d'image Debian Cloud Image. Le seul problème est que ces images ont une taille disque par défaut de 2Go que l'on sature très rapidement. D'où mon souhait de pouvoir contrôler cette taille. Elle utilise nbd que je découvre pour la toute première fois. Je me suis toujours demandé s'il était possible, sous conditions, de manipuler le partitionnement d'un disque par le réseau (ie d'une machine à une autre). nbd semble être un outil pour ce genre de chose. À explorer. Une autre piste est que l'image d'origine est de type cloud-init et supporterait cloud-init-growroot. Je ne connais ni cloud-init ni cloud-init-growroot, mais il semble que ce dernier soit automatiquement exécuté au premier boot et que son rôle serait justement d'étendre l'unique partition root. Il se pourrait (pas testé du tout) qu'il suffise d'exécuter un virt-resize avant le premier boot pour que ça fonctionne. Autre piste pas explorée du tout: comme les images supportent cloud-init , il existe peut-être des outils dans cette mouvance qui permettent de les instancier facilement. Le ven. 31 mars 2023 à 00:50, Hugues Larrive a écrit : > > Bonjour, > > --- Original Message --- > Le jeudi 30 mars 2023 à 15:16, Olivier a écrit : > > > > > > > > > > Je viens à l'instant de trouver le lien ci-après. Il décrit > > parfaitement mon cas de figure. > > Il propose l'utilisation de virt-rescue pour ré-installer grub sur le > > disque élargi. > > Dans cet exemple, virt-rescue est utilisé de façon interactive. > > Pour ma part, j'ai besoin d'une solution non-interactive. > > > > Effectivement virt-rescue ne semble pas permettre une utilisation > non-interactive. > Dans l'exemple il est utilisé pour réinstaller grub car les partitions sont > réorganisées pour que la partition à étendre soit la dernière. En réalité ce > n'est > pas nécessaire car la numérotation ne correspond pas à l'ordre physique des > partitions sur le disque et c'est déjà la dernière, donc voilà une méthode > pour > la redimensionner à 8G sans casser grub : > > wget -O debian-11-generic-amd64.qcow2 > https://cloud.debian.org/images/cloud/bullseye/20220911-1135/debian-11-generic-amd64-20220911-1135.qcow2 > > qemu-img resize debian-11-generic-amd64.qcow2 8G# augmente la taille > virtuelle à 8Go > modprobe nbd# charge le module nbd > (networck block device) > qemu-nbd -c /dev/nbd0 debian-11-generic-amd64.qcow2 # connecte l'image à > /dev/nbd0 > printf "p\nd\n1\nn\n\n\n\npwq" | fdisk /dev/nbd0# Supprime la partition 1 > et la recrée avec les valeurs par défaut (tout l'espace disponible) > resize2fs /dev/nbd0p1 # redimensionne les > système de fichier à la taille de la partition > qemu-nbd -d /dev/nbd0 # déconnecte l'image de > /dev/nbd0 > sleep 1 # attend 1 seconde > rmmod nbd # décharge le module nbd > > Un test rapide pour voir si ça boot : > kvm -m 1G -drive cache=writeback,file=debian-11-generic-amd64.qcow2 -serial > stdio > Booting `Debian GNU/Linux' > > Loading Linux 5.10.0-21-amd64 ... > Loading initial ramdisk ...^C > kvm: terminating on signal 2 > > C'est bon ! > > @+ > Hugues > > > https://blog.dachary.org/2020/12/23/virt-resize-applied-to-debian-gnu-linux-cloud-images/ > > > > > Le jeu. 30 mars 2023 à 15:05, Olivier oza.4...@gmail.com a écrit : > > > > > > Le jeu. 30 mars 2023 à 14:58, NoSpam no-s...@tootai.net a écrit : > > > > > > > > . installer Debian > > > > Puis-je justement installer Debian en utilisant ce fichier .qcow2 > > > > originel ? > > > > Même s'il n'est pas parfait (clavier Qwerty, ...) on intérêt est de > > > > m'éviter l'utilisation de l'installeur Debian. > > > > J'aimerai si possible, continuer à ne pas utiliser ce dernier.