WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: noob! Install OK, but how to save edited files  (Read 5802 times)

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
noob! Install OK, but how to save edited files
« on: March 04, 2012, 04:09:25 AM »
Hi
My first post here.

I installed Tinycore on a Siemens Futro S400 small client (Geode CPU) 500 MB CF-card and 512 MB RMA. It is running very good.

I have a few questions/problems.
I installed SAMBA using the AppBrowser, set it to be used "OnBoot" The install went fine and I can see the service in the "Services "Browser"" - however it is not active. If I click on it, it briefly turn green, but the again the green disappears.
I can start it by sudo /usr/local/etc/init.d/samba start  BUT still it isn't green in the "Services". but it is running which I checked by: sudo /usr/local/etc/init.d/samba status
Another issue if I try to edit the samba config file located in /usr/local/etc/samba/smb.conf using the editor in Tinycore I can't save the file, I get the error message: Error writing to file "/usr/local/etc/samba/smb.conf": Read only file system.

SO:
    How do I make SAMBA start every time I boot
    How do I save the changed conf file

I have a similar issue with SSH which I would like to start when I boot

Regards
Steen
 

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14823
Re: noob! Install OK, but how to save edited files
« Reply #1 on: March 04, 2012, 04:55:50 AM »
To start samba on boot, add /usr/local/etc/init.d/samba start to /opt/bootlocal.sh

The smb.conf file should be writeable as root. If it is not, you can copy it over from /tmp/tcloop/samba3, edit it and add to your backup

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11641
Re: noob! Install OK, but how to save edited files
« Reply #2 on: March 04, 2012, 03:03:20 PM »
Hi sbp
Code: [Select]
sudo cp /tmp/tcloop/samba3/usr/local/share/samba3/files/smb.conf /usr/local/etc/samba/smb.conf
sudo editor /usr/local/etc/samba/smb.conf
Add  usr/local/etc/samba/smb.conf  to  /opt/.filetool.lst

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: noob! Install OK, but how to save edited files
« Reply #3 on: March 06, 2012, 12:42:15 AM »
Thanks Rich.

Your command line was spot on, and now I have samba running.
I think the command: "sudo editor “ was the important command as it allowed me to save the edited file.
Previously I just used the editor icon in the bottom of the screen, and here I was not allowed to save the file.

Thanks Steen




« Last Edit: March 07, 2012, 12:29:04 PM by sbp »