View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 13 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Dec 03, 2006 1:11 pm 
Offline
Joined: Fri Dec 01, 2006 9:21 pm
Posts: 6
I'm completely new to linux... Just installed R5D1 with a PVR-350 and I'm trying to edit my '/etc/init.d/gdm' file as per <http://mysettopbox.tv/phpBB2/viewtopic.php?t=11311> but I don't know how to do this. I foolishly tried using the old DOS command "edit" but it didn't work :( could someone please help me before I a) lose my hair or b) install R5C7!

Thanks,

jp


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 03, 2006 1:32 pm 
Offline
Joined: Mon Oct 16, 2006 6:07 pm
Posts: 23
type "nano" followed by the full path of the file you want to edit.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 03, 2006 1:59 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
See this page for more. http://www.knoppmythwiki.org/index.php?page=LinuxTips

Remember that you need to login as the appropriate user to edit certain files.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 03, 2006 5:04 pm 
Offline
Joined: Tue Jan 24, 2006 1:29 am
Posts: 157
Location: Brisbane, Australia
vim is my editor of choice. man is your frend when your new..

man vim

man nano


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 04, 2006 7:56 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,
I kind of like gedit but you have to apt-get install gedit first.
Mike


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 4:55 am 
Offline
Joined: Wed Oct 12, 2005 7:54 am
Posts: 88
Here is what I do. And since you are new to Linux it would be good for you to look into the two programs even if you don't use them for this topic.

If you haven't already download PuTTy, do so. It is a SSH (secure shell) client that will allow you to connect to your mythbox remotely. With PuTTy you can run all your command line stuff remotely.

Also, look into WinSCP. This will allow you to connect to your mythbox and manage files from a "windows" program.

Most the time when I need to edit a file on my mythbox I connect with WinSCP which allows me to navigate the file system with a GUI almost like Windows Explorer (although it looks more like a GUI FTP program). And then I can either edit the file by copying it to my Windows box by just drag and dropping it where I want it or most times I can just double click it and it will automatically open the file in the appropriate program and then when I am done it will save it right back to the mythbox.

I am assuming you mostly use Windows. Just google PuTTy and WinSCP and you will find them and how to use them.

I do agree that you need to learn at least VI and Nano as they, at some point, will be needed. You never know when you won't be able to connect to your mythbox and will have to edit files locally.

Good luck :)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 7:00 am 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi
johnboy68 has some good guidence except the part for vi. nano is quit friendly and the user guide is at the bottom of the window. It will also work for user root or mythtv as it is text display. To edit a file with nano simply at the $ nano -w <your-file-name> (use the -w allways).

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 1:44 pm 
Offline
Joined: Tue Nov 14, 2006 2:55 pm
Posts: 245
Location: South Jersey
If you care to learn "vi" or "vim" you can read thru these docs...

http://www.arizonaed.com/unix/vimfaq.html
http://www.arizonaed.com/unix/vi-cheatsheet.html

Fyi,

-Abs


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 10:15 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
johnboy68 wrote:
Here is what I do. ... either edit the file by copying it to my Windows box by just drag and dropping it where I want it or most times I can just double click it and it will automatically open the file in the appropriate program and then when I am done it will save it right back to the mythbox.

A couple words of caution here, MS-Windows can leave artifacts in your files many Linux/Unix programs are not happy about, like CR/LFs instead of just LFs, VTs, files without a final LF at the end, ... You are generally better off opening an ssh session and editing the files with some kind of native editor on the Linux side. We regularly have to troiubleshoot problems for folks who've gotten bad/missing invisible characters in their config files this way.


Top
 Profile  
 
 Post subject: winvi32
PostPosted: Tue Dec 05, 2006 10:35 pm 
Offline
Joined: Wed Apr 12, 2006 11:28 am
Posts: 82
Location: Beverly Hills, Michigan
There is also a VI editor for windows that will not leave artifacts in the code. It is called WinVI32.exe, you can find it using this link or searching using Google.

http://www.winvi.de/en/download.html

I often drag a unix file into it and save it back to my windows server, then move it back over a samba share.

Paul

_________________
Backend/Frontend
ASUS M4A78-EM w/8400GS 4G RAM pcHDTV 3000 + PVR500 (1045), 1TB, 250 & 320. Iguana IR USB (running R6)
Frontend_1
Asus M2NPV-VM - 1GB RAM - 40 GB Hard Disk - StreamZap
Frontend_2
Dragon 1.0 w/ 2G RAM - 40 GB Hard Disk StreamZap


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 10:39 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
MS-Windows versions of freeware editors like jed or vim will also do the right thing. Notepad, however, "does not play well with others". ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 11:11 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

I have used wordpad without problems but that is usually a very rare thing for me to edit linux scripts on a M$ machine. You could boot with ubuntu live and then ssh into your myth box or as mentioned previous, PuTTY on windows works very well, almost like being there :) PuTTY I use a lot.

http://www.chiark.greenend.org.uk/~sgtatham/putty/

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 06, 2006 7:13 pm 
Offline
Joined: Mon Nov 28, 2005 10:44 am
Posts: 137
Location: Austin, TX
To edit linux files from Windows, I use this:
http://www.linspect.com/product/ledit

I find it easier than using putty to ssh into my myth box and running nano )or whatever).


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu