Koozali.org: home of the SME Server

easier way to edit that vi

iscydonia

easier way to edit that vi
« on: May 07, 2004, 10:34:25 PM »
Hi,

I'm a newb so excuse me if i've overlooked something fundamental.

Basically, the only way i am able to edit .conf & other files at the moment is through "vi".

I'm not quite comfortable with vi yet and if an easier option exists, would prefer to use that.


How else can i edit files on my server through a remote login (ssh).


Thanks.

Offline Boris

  • *
  • 783
  • +0/-0
easier way to edit that vi
« Reply #1 on: May 07, 2004, 11:32:54 PM »
Remember Norton Commander?
There is clone of it called Midnight Commander for basic  operations.
run mc and enjoy or just use mcedit (builtin editor) as your basic editor. You can call it mcedit filename
...

Anonymous

easier way to edit that vi
« Reply #2 on: May 07, 2004, 11:50:25 PM »
Quote from: "Boris"
Remember Norton Commander?
There is clone of it called Midnight Commander for basic  operations.
run mc and enjoy or just use mcedit (builtin editor) as your basic editor. You can call it mcedit filename



i certainly do:).  cool.


ahh. just checked it out then to edit samba.conf.  perfect!

Also, while i was stumped with this, i tried copying files/directories to a user or shared ibay.  My idea was that i could edit it there in windows (over samba), then copy it back to where it belongs from ssh.  i know, making it hard but hey, i almost got there:).

Only problem was permissions, which i'm researching now since i dont know how to change.  Problem was, it would never let me save the changes to any of the files.

Offline wyron

  • *
  • 275
  • +0/-0
    • http://www.ideast.dk
easier way to edit that vi
« Reply #3 on: May 08, 2004, 12:15:41 AM »
To get a view of permissions and ownership of files in a directory just enter ls -l
For permissions changing read about chmod, and for ownership changing read about chown (man chmod or man chown).
For editing outside of MC try the inbuilt editor Pico. Its somewhat easier to handle than vi.
Have a good time configuring your SME server - the best there is !
Greetings
wyron
...

Anonymous

easier way to edit that vi
« Reply #4 on: May 08, 2004, 12:33:34 AM »
Quote from: "wyron"
To get a view of permissions and ownership of files in a directory just enter ls -l
For permissions changing read about chmod, and for ownership changing read about chown (man chmod or man chown).
For editing outside of MC try the inbuilt editor Pico. Its somewhat easier to handle than vi.
Have a good time configuring your SME server - the best there is !


I agree 100% :D


Thanks for that... just ran it in the area that i was unable to edit from and got this:

drwxrwsr-x    4 root     www          4096 May  8 06:26 awol
drwxrwsr-x    4 root     www          4096 May  8 06:27 httpd
drwxrwsr-x    2 root     www          4096 May  8 06:32 samba



thanks.  as you can see (unless i'm mistaken), it wasn't due to chmod.  but to groups.  That particular ibay had limited options for non-group users.  I just had to add myself to the group with full priveledges(or just allow access to all).  and now it works:)



I cant believe how straight forward this is:D.  No other distro i've tried has been like this.... about 8 that i've tried...

cydonia

easier way to edit that vi
« Reply #5 on: May 08, 2004, 12:41:20 AM »
damn... i keep forgetting to login... :P

bobk

easier way to edit that vi
« Reply #6 on: May 08, 2004, 02:29:42 AM »
You should give WinSCP a try. It will copy/move file and while maintaining the original permissions. The built it editor is very easy to use.

Offline Boris

  • *
  • 783
  • +0/-0
easier way to edit that vi
« Reply #7 on: May 08, 2004, 03:27:25 AM »
Quote from: "Anonymous"
Only problem was permissions, which i'm researching now since i dont know how to change.  Problem was, it would never let me save the changes to any of the files.

just like it was in good old time:
inside mc use insert to select, then F9, F, A
...

Offline arnoldob

  • *
  • 183
  • +0/-0
easier way to edit that vi
« Reply #8 on: May 08, 2004, 05:01:45 PM »
I like psftp and pscp that came with the putty package at:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Login as root and you can put stuff wherever you want.

Ah yes, the serenity of the ftp command line.  Reminds me of my first shell account :-)
Tampa, FL USA