WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Couple of issues with Corepure64  (Read 234 times)

Offline TomT

  • Newbie
  • *
  • Posts: 3
Couple of issues with Corepure64
« on: December 31, 2024, 07:26:47 AM »
Hi.
I've installed TinyCore15 32bit into Virtualbox, installed bftpd and openssh.
/opt, /home and /tce where setup with the following boot options 'opt=sda1 home=sda1 tce=sda1' and all seems to be working well.

I've now decided to try Corepure64 in Hyper-V, I've used the same boot options and installed openssh.
I've edited my /opt/.filetool.lst to include the following.

Code: [Select]
opt
home
usr/local/etc/ssh
usr/local/etc/init.d
etc/passwd
etc/shadow
etc/group

Following a reboot everything appears to be working except openssh.

When I run:
Code: [Select]
sudo /usr/local/etc/init.d/openssh start
I get
Code: [Select]
sudo: /usr/local/etc/init.d/openssh: command not found.
I've checked and /usr/local/etc/ssh & /usr/local/etc/init.d are there, but the openssh symbolic link is broken.
It is pointing to /tmp/tcloop/openssh/usr/local/etc/init.d/openssh which doesn't exist.

If I reinstall openSSH, then it will work until I reboot.  I don't have this issue on the 32bit version.
Can someone advise how to resolve this.

I've also noticed bftpd doesn't exist on the 64Bit version.
I know there is lftpd, proftpd and pure-ftpd could someone advise which is the better option. I need to allow a specific username/password to a folder and subfolders for read access only. That is it.

Thanks
Happy New year to all.

    [Edit]: Added code tags.  Rich
« Last Edit: December 31, 2024, 11:49:04 AM by Rich »

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 726
Re: Couple of issues with Corepure64
« Reply #1 on: December 31, 2024, 07:31:37 AM »
if sudo not found maybe your path to sudo is wrong.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14853
Re: Couple of issues with Corepure64
« Reply #2 on: December 31, 2024, 08:10:21 AM »
Is the problem caused by having usr/local/etc/init.d in your backup?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11721
Re: Couple of issues with Corepure64
« Reply #3 on: December 31, 2024, 11:57:06 AM »
Hi TomT
Please use  Code Tags  when posting commands and responses seen in a terminal. To use  Code Tags  click on the  #  icon
above the reply box and paste your text between the  Code Tags  as shown in this example:

Quote
[code][   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517[/code]

It will appear like this in your post:
Code: [Select]
[   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517

Code Tags  serve as visual markers between what you are trying to say and the information you are posting. They also preserve
spacing so column aligned data displays properly. Code tags also automatically add horizontal and or vertical scrollbars
to accommodate long lines and listings.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11721
Re: Couple of issues with Corepure64
« Reply #4 on: December 31, 2024, 11:57:18 AM »
Hi TomT
... I've checked and /usr/local/etc/ssh & /usr/local/etc/init.d are there, but the openssh symbolic link is broken.
It is pointing to /tmp/tcloop/openssh/usr/local/etc/init.d/openssh which doesn't exist.

If I reinstall openSSH, then it will work until I reboot.
...
It sounds like openssh.tcz is not being loaded when you boot.
Try adding  openssh.tcz  to your  tce/onboot.lst  file.

Offline TomT

  • Newbie
  • *
  • Posts: 3
Re: Couple of issues with Corepure64
« Reply #5 on: December 31, 2024, 12:12:37 PM »
Hi,
Sorry for not using code tags.

I've removed
Code: [Select]
usr/local/etc/init.d, /opt and /home from /opt/.filetool.lst then saved my settings.
Following a reboot SSH is now working. Thanks

Any idea on the FTP server ?
On the 32bit build I'm using bftpd, which is working as I want.

All I need is to serve one folder including subfolders, with the user specifying a specific username and password to connect.
Ideally it should be read only, we no delete or rename option.

Thanks

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11721
Re: Couple of issues with Corepure64
« Reply #6 on: December 31, 2024, 12:57:59 PM »
Hi TomT
Maybe  ftpd  from  inetutils-servers.tcz  would work for you?

... Ideally it should be read only, we no delete or rename option.
Wouldn't that be controlled by file permissions and which user/group
the ftp server was running under?

So if the directory was 644 root:root then only root could modify its contents.
If the ftp server were run by  tc:staff , shouldn't it then appear to be read only?

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 302
Re: Couple of issues with Corepure64
« Reply #7 on: December 31, 2024, 09:04:00 PM »
Any idea on the FTP server ?
On the 32bit build I'm using bftpd, which is working as I want.

All I need is to serve one folder including subfolders, with the user specifying a specific username and password to connect.
Ideally it should be read only, we no delete or rename option.

I haven't used bftpd, but I agree with Rich that ftpd in inetutils-servers.tcz sounds good for that. Note that it is installed to /usr/local/lib/inetutils/ftpd so you need to use that full path to run the server program. Use the "-D" option to run it directly, or it can be run by the inetd super-server with this line in /opt/inetd.conf, when that is started with "inetd /opt/inetd.conf":
Code: [Select]
ftp stream tcp nowait root /usr/local/lib/inetutils/ftpd ftpd -l

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11721

Offline TomT

  • Newbie
  • *
  • Posts: 3
Re: Couple of issues with Corepure64
« Reply #9 on: January 02, 2025, 05:21:59 AM »
Thanks for the replies.
Before I'd seen them I'd installed proftpd and seem to have got that working as I need.

Thanks