LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-01-2010, 01:26 PM   #16
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
GUI access to Linux from Windows is also an option


littlebigman -

One other option worth considering is using vncserver (or equivalent) to allow remote GUI logon to your Linux host.

This is actually pretty straightforward. It can work even if your Linux server is otherwise command-line only (even if it doesn't HAVE a desktop by default!), it can work over your ssh port (if that's all you have open across the firewall), and it can even work over a cell phone client.

It's not difficult - and it can be very effective.

Just a thought .. PSM
 
Old 08-01-2010, 02:22 PM   #17
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by littlebigman View Post
Update: After logging on directly to the Linux host, I notice that the Home/End and PageUp/Down do work.

So the issue is getting those to work over a terminal application from Windows.
What terminal application are you using? I notice none of these issues with putty. However putty I find does cause some issues with copy and pasting tabs/indentation, it copies a tab as the equivalent space in spaces, else wise I have no issues myself with putty, there are many GUI text editors as mentioned previously as well.
 
Old 08-01-2010, 04:59 PM   #18
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Original Poster
Rep: Reputation: 35
Thanks for the suggestion about VNC.

I did notice that Putty is generally a better terminal emulator, so Iguess I'll end up using this instead.

Out of curiosity, if someone knows of a good summary to explain where all those problems come from (wrong keys, bad copy/paste, etc.), I'm intestered.
 
Old 08-01-2010, 04:59 PM   #19
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Original Poster
Rep: Reputation: 35
Quote:
Originally Posted by jlinkels View Post
That seems to be a terminal emulation issue again or, in any case, this pasting is not handled correctly by joe. The problem is that joe doesn't know anything about pasting like this. You paste in a terminal, and the terminal sends the characters to joe. It is simply not well interfaced.
I'll see if I can find more information. Otherwise, Joe is pretty much what I was looking for. Thanks all.
 
Old 08-03-2010, 07:16 PM   #20
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Quote:
Originally Posted by littlebigman View Post
Correction: nano does support the arrow keys, but just like Joe, doesn't support the other important keys (Home/End, etc.)
Which version are you using? Mine (2.0.6-4) supports Home, End, Page Up, and Page Down, whether with a terminal emulator or virtual terminal.
 
Old 08-04-2010, 03:51 AM   #21
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Original Poster
Rep: Reputation: 35
Quote:
Originally Posted by DavidMcCann View Post
Which version are you using? Mine (2.0.6-4) supports Home, End, Page Up, and Page Down, whether with a terminal emulator or virtual terminal.
It was the terminal emulator that didn't handle those keys properly. I didn't think of trying with Putty to see if that made a difference.

I find Joe much better than vi and pretty what I was looking for. If I need something more 2010ish, I'll just grab files with Samba or WinSCP and update files with a Windows editor.

Out of curiosity, why would I choose Nano over Joe?

Thanks.
 
Old 08-04-2010, 07:23 AM   #22
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
What does "2010ish" mean?
 
Old 08-05-2010, 03:38 AM   #23
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Original Poster
Rep: Reputation: 35
Quote:
Originally Posted by MTK358 View Post
What does "2010ish" mean?
I won't get into the argument. I'll just say that vi was invented in 1976, and just like everything else in computers, we made a bit of progress in 35 years. There's no valid reason why newbies should only be told about this arcane tool when they just need to perform some simple editing.

Joe/nano are fine for local editing, and when I need to use Windows tools to edit files, I'll just use Samba/WinSCP.

Thank you all.
 
Old 08-05-2010, 04:16 AM   #24
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
Quote:
There's no valid reason why newbies should only be told about this arcane tool when they just need to perform some simple editing.
So not to enter the argument either, but this statement depends on your definition of a 'newbie' as someone who has never used a computer or editor
before would actually pick up vi(m) quicker than almost any other editor as the commands make sense (unless of course you can explain what ctrl-v has to
do with the concept of pasting????).
 
Old 08-05-2010, 04:48 AM   #25
genogebot
Member
 
Registered: Jun 2010
Location: Brisbane, Australia
Distribution: Xubuntu 16.04.1 / Linux Mint 18 XFCE / Linux Mint 18 Mate / Ubuntu Server 16.04.1 / Lubuntu 16.04.1
Posts: 146

Rep: Reputation: 20
I was pleasantly surprised when I tried the text editor (mcedit) that comes with the 'midnight commander' file manager. It's a terminal application, and it has menus rather than relying on memorising a vast array of key combinations. If you're using it in a terminal window in a gui desktop you can also use the mouse on the menus.

I don't know if it's what you need, but it's in the repos (as "mc") and it's a small download, so it won't hurt to give it a try.
 
Old 08-05-2010, 07:00 AM   #26
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by littlebigman View Post
I won't get into the argument. I'll just say that vi was invented in 1976, and just like everything else in computers, we made a bit of progress in 35 years. There's no valid reason why newbies should only be told about this arcane tool when they just need to perform some simple editing.

Joe/nano are fine for local editing, and when I need to use Windows tools to edit files, I'll just use Samba/WinSCP.
Of course I'd never recommend vi(m) to a newbie. But I don't see what's so bad about it, in fact I sometimes use Vim because to a degree it makes some things easier!

Yes, it has two modes, but the advantage of this is that it frees up all the letters as commands, instead of having to have a few difficult-to-use commands with modifier keys.

For example, in a normal text editor, how would you copy a line and paste it elsewhere?

You'd either use the mouse, or go to the beginning of the line, hold Shift, go to the end of the line using the arrow keys, hit Ctrl+C, move to the end of the line above where you want to paste, press Enter, and press Ctrl+V.

In vi, press "yy", move to the line above where you want to paste, and press "p".

Last edited by MTK358; 08-05-2010 at 07:04 AM.
 
Old 08-05-2010, 07:06 AM   #27
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
vi has been part of the std install on all versions of *nix (eg Linux/Solaris/HP-UX/AIX/*BSD) for many years. Most commercial servers don't have a gui and you wouldn't be allowed to add your own personal editor unless you're the sysadmin: sometimes not even then.
It's definitely worth knowing the basics.
 
Old 08-06-2010, 07:13 AM   #28
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Original Poster
Rep: Reputation: 35
Quote:
Originally Posted by genogebot View Post
I was pleasantly surprised when I tried the text editor (mcedit) that comes with the 'midnight commander' file manager
Thanks for the idea. For some reason, ncurses-based applications (I assume "mc" is written in ncurses) rarely work correctly over the network:

http://img227.imageshack.us/img227/7...ybadoutput.jpg
 
Old 08-06-2010, 06:36 PM   #29
genogebot
Member
 
Registered: Jun 2010
Location: Brisbane, Australia
Distribution: Xubuntu 16.04.1 / Linux Mint 18 XFCE / Linux Mint 18 Mate / Ubuntu Server 16.04.1 / Lubuntu 16.04.1
Posts: 146

Rep: Reputation: 20
Quote:
Originally Posted by littlebigman View Post
Thanks for the idea. For some reason, ncurses-based applications (I assume "mc" is written in ncurses) rarely work correctly over the network:

http://img227.imageshack.us/img227/7...ybadoutput.jpg
That's odd - I have no problem viewing file names on remote computers on my network, either in a terminal window or booting into a console. Could it be a character set encoding issue? Each pane in midnight commander can be set to a particular codepage with the 'Encoding' menu item - maybe you've got the wrong codepage set.

http://yfrog.com/jx35369025j

Edit: I just noticed that you're running mc inside putty - maybe that's the problem. I run it in a console or a terminal window and ssh to my remote computer inside midnight commander with the 'Shell link' command.

Last edited by genogebot; 08-06-2010 at 07:14 PM. Reason: added a bit
 
Old 08-07-2010, 04:13 AM   #30
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by chrism01 View Post
vi has been part of the std install on all versions of *nix (eg Linux/Solaris/HP-UX/AIX/*BSD) for many years. Most commercial servers don't have a gui and you wouldn't be allowed to add your own personal editor unless you're the sysadmin: sometimes not even then.
It's definitely worth knowing the basics.
I would point out that some functions of vi have lead to some interesting problems with server security before too. I have heard of people being able to create root shells if they are given sudo to vi. I am not aware of anything like that with nano. If you example you wanted people to be able to edit say a certain root file and set-up a sudo entry, Nano suits this use security wise much better then vi which as I have mentioned can be used to create root shells. Vi in my opinion is an arcanic tool too. There should be little need to use control for anything in a text editor thus using it for things like saving, finding, exiting I believe is a superior method all round.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
text editor vs notepad linux_sj Linux - Newbie 13 03-24-2010 10:48 AM
notepad compatible text editor manuleka Linux - Newbie 5 03-30-2009 02:55 PM
using Windows Notepad in Linux newbiesforever Linux - Software 9 08-07-2008 12:52 PM
How can we copy the program code wriiten in notepad to linux vi editor? mayank027 Linux - General 2 10-25-2005 06:14 AM
Notepad in linux wh33t Linux - Software 10 05-24-2004 10:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration