DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 9th June 2020
jonsec jonsec is offline
Fdisk Soldier
 
Join Date: Jul 2019
Posts: 71
Default [OpenBSD] secure text editor

using vi , mg and etc ... is difficult when your environment is desktop.

what is your suggestion package? (like notepad or notepad++)
Reply With Quote
  #2   (View Single Post)  
Old 9th June 2020
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 465
Default

Quote:
Originally Posted by jonsec View Post
using vi , mg and etc ... is difficult when your environment is desktop.
Why do you consider it difficult?

Doesn't seem like much effort to open a terminal emulator window and run vi(1), or create a file at ~/.local/share/applications/vi-edit.desktop that will do that for you when you click on the menu entry or use the "open with" option in a graphical file manager:
Code:
[Desktop Entry]
Version=1.0
Name=vi
Comment=Run vi(1)
Type=Application
Exec=xterm -e vi %F
Categories=Utility;TextEditor;
But if you really need a graphical editor then x11/xfce4/mousepad is nice. Or x11/gnome/gedit for editing system files with the x11/gnome/gvfs admin:// backend:
Code:
gedit admin:///full/path/to/file
I've not actually tested the admin:// feature in OpenBSD though so I'm not sure if that will work.

EDIT: no, the admin:// backend does not appear to be available under OpenBSD.
__________________
Are you infected with Wetiko?

Last edited by Head_on_a_Stick; 10th June 2020 at 03:41 PM.
Reply With Quote
  #3   (View Single Post)  
Old 9th June 2020
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 472
Default

I like joe, also some times, and for non root edits, leafpad
__________________
My best friends are parrots

Last edited by PapaParrot; 10th June 2020 at 07:23 AM.
Reply With Quote
  #4   (View Single Post)  
Old 10th June 2020
jonsec jonsec is offline
Fdisk Soldier
 
Join Date: Jul 2019
Posts: 71
Thumbs up

thanks to Head_on_a_Stick and PapaParrot

mousepad is good choose.
Reply With Quote
  #5   (View Single Post)  
Old 10th June 2020
bsdun bsdun is offline
Real Name: Steve
Fdisk Soldier
 
Join Date: Feb 2020
Posts: 48
Default

There is nothing better than vim. It takes some time to learn, but then it saves tremendous amount of time every day; and time is money. It has non-terminal graphical counterpart gvim. Install vim + gvim:
Code:
pkg_add vim-8.2.534-gtk3.tgz
Reply With Quote
  #6   (View Single Post)  
Old 10th June 2020
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default

I use vim's clone neovim in terminal emulator on Gnu/Linux (there is a OpenBSD port for that), but if I had to use GUI-based editor I would use Geany.
I don't know about security of these editors.
__________________
Signature: Furthermore, I consider that systemd must be destroyed.
Based on Latin oratorical phrase
Reply With Quote
  #7   (View Single Post)  
Old 10th June 2020
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 472
Default

@Head_on_a_Stick
Mouspad is ok, I have used it but not much, can it be run as root though ?
__________________
My best friends are parrots
Reply With Quote
  #8   (View Single Post)  
Old 10th June 2020
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

I've been a vi user since the early 1980's. I use gvim (noted by bsdun above) when editing unicode text files (ebook content, typically).
Reply With Quote
  #9   (View Single Post)  
Old 10th June 2020
hitest's Avatar
hitest hitest is offline
Real Name: George Nielsen
VPN Cryptographer
 
Join Date: Sep 2008
Location: B.C., Canada
Posts: 374
Default

Vi has really grown on me; it's my editor of choice. In addition to mousepad there's leafpad.

Code:
puffy$ sudo pkg_add leafpad
quirks-3.325 signed on 2020-06-09T15:08:04Z
leafpad-0.8.18.1p7: ok
__________________
hitest
Reply With Quote
Old 10th June 2020
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 465
Default

Quote:
Originally Posted by PapaParrot View Post
Mouspad is ok, I have used it but not much, can it be run as root though ?
Yes, it can. You will need to specify keepenv in /etc/doas.conf though so that the DISPLAY parameter is preserved.
__________________
Are you infected with Wetiko?
Reply With Quote
Old 10th June 2020
bsdun bsdun is offline
Real Name: Steve
Fdisk Soldier
 
Join Date: Feb 2020
Posts: 48
Default

EDIT: this information is no longer valid.

Last edited by bsdun; 31st October 2020 at 09:59 PM.
Reply With Quote
Old 10th June 2020
bsdun bsdun is offline
Real Name: Steve
Fdisk Soldier
 
Join Date: Feb 2020
Posts: 48
Default

neovim is an experimental clone of vim. All of it's best new features are ported back into vim. For example the ability to open terminal emulator inside vim
Code:
:terminal
I won't go into more details, but I'll say that I've studied both vim and neovim, and have chosen vim as my main text editor.
Reply With Quote
Reply

Tags
editor, notepad


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Secure Boot and OpenBSD Head_on_a_Stick Guides 0 12th December 2015 10:25 PM
OpenBSD 5.4 Nvidia Driver Issue and KDE Desktop disappearing text. stan98765 OpenBSD Installation and Upgrading 35 21st June 2015 04:52 PM
vi editor jjstorm OpenBSD Packages and Ports 20 1st December 2014 04:37 PM
Is OpenBSD secure by default from ssh users? steamrent OpenBSD Security 2 19th December 2011 09:21 PM
Cisco Secure ACS 4.1 syslog OpenBSD 3.9 cyberpaisalegionair OpenBSD General 1 24th July 2008 06:42 PM


All times are GMT. The time now is 09:41 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick