installation issue gnome desktop

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,719
Messages: 39,309

A lot of commands have so-called manual pages. You can access them by entering $ man <command>, learning to use the man(1) command is fairly essential, nobody is going to remember all those strange options and arguments for every command in existence. Manual pages provide a clean and easily accessible way to lookup that information. In this case just enter $ man ee to see what ee(1) is.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,719
Messages: 39,309

$ visudo but in came back in the terminal " the command does not exist" any help on this.
Judging by the $ prompt you're trying to run this as a user, it needs to be run by root. Only root can modify the sudoers file (which is what you're doing with the visudo(8) command). Also note that visudo(8) will run the editor that's set with the EDITOR variable, which is vi(1) by default.
 

grahamperrin

Son of Beastie

Reaction score: 824
Messages: 2,650

Batmanxx hint, after installing sudo:
  1. whilst working as the root user
  2. csh
  3. setenv SUDO_EDITOR nano
  4. visudo
  5. Control-V to page down, etc.
 

grahamperrin

Son of Beastie

Reaction score: 824
Messages: 2,650

visudo(8) will run the editor that's set with the EDITOR variable, …

I found it necessary to set the VISUAL variable.

Code:
root@mowa219-gjp4-8570p-freebsd:~ # setenv EDITOR ee
root@mowa219-gjp4-8570p-freebsd:~ # visudo
visudo: /usr/local/etc/sudoers.tmp unchanged
root@mowa219-gjp4-8570p-freebsd:~ # echo $EDITOR
ee
root@mowa219-gjp4-8570p-freebsd:~ # visudo
visudo: /usr/local/etc/sudoers.tmp unchanged
root@mowa219-gjp4-8570p-freebsd:~ # echo $SHELL
/bin/csh
root@mowa219-gjp4-8570p-freebsd:~ # grep nano ~/.cshrc
setenv  EDITOR  /usr/local/bin/nano
setenv  VISUAL  /usr/local/bin/nano
root@mowa219-gjp4-8570p-freebsd:~ # setenv VISUAL ee
root@mowa219-gjp4-8570p-freebsd:~ # visudo

visudo: /usr/local/etc/sudoers.tmp unchanged
root@mowa219-gjp4-8570p-freebsd:~ #

(When $EDITOR was ee, visudo used nano.)

<https://www.freebsd.org/cgi/man.cgi...th=FreeBSD+13.0-RELEASE+and+Ports#ENVIRONMENT>
 

grahamperrin

Son of Beastie

Reaction score: 824
Messages: 2,650

OP
B

Batmanxx

Member


Messages: 22

Hi i was able to get in visudo and also we vieditor and create giuseppe ALL ALL but how in you save the page ? and get out ?
 

grahamperrin

Son of Beastie

Reaction score: 824
Messages: 2,650

how in you save the page ? and get out ?

If visudo got you lost in vi, then use the following keys frankly, vi is one of the things that originally stopped me from using FreeBSD.
  1. Escape
  2. :
  3. q
  4. !
  5. Return or Enter
 

eternal_noob

Aspiring Daemon

Reaction score: 718
Messages: 986

I appreciate your help but i am a fan of "learning by doing". I think op should learn how to wipe his *ss on his own.
 

grahamperrin

Son of Beastie

Reaction score: 824
Messages: 2,650

This would not save but only exit without saving.

Rocking. With. Laughter. This. Is. Why. I. Don't. Use. Vi.

Seriously. Laughs aside. This: <https://forums.FreeBSD.org/threads/8877/post-519987>, and when I tested before posting the UX was so alien to me, with things disappearing unexpectedly and so on, I couldn't tell the difference between before and after.

… learn how to wipe his *ss …

Being shat on by vi is exceptional.
 
OP
B

Batmanxx

Member


Messages: 22

so first escape then type iwq! and then type zz in visudo and this will also exit and save the file created ?
 
OP
B

Batmanxx

Member


Messages: 22

so first press escape then type :wq! and then type zz next to :wq! and this will exit and save all the changes made?
 

Geezer

Aspiring Daemon

Reaction score: 449
Messages: 769

The PR was abruptly killed off by hardcore vi-kings. But someone did suggest an FCP (acronyms abound).

Dear OP, I understand your difficulty.

I do intend to pursue an FCP, when, when ... whenever.
 

eternal_noob

Aspiring Daemon

Reaction score: 718
Messages: 986

See comment #37 how to save in vi.

First press ESC, to exit insert mode.
Then press ':', 'w', 'q', '!' and 'ENTER'. Easy, isn't it?

I can't stress it enough: vi(1) is the default text editor of FreeBSD and you should learn how to use it.
Read tutorials and practice!
 
Top