Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Samba package #272

Closed
wants to merge 1 commit into from
Closed

Conversation

dimitry-ishenko
Copy link
Collaborator

This is a draft PR to make sure I am on the right track.

@igorpecovnik in #242 you have enable, disable and config options. What did you have in mind exactly?

Also, couple of issues I've noticed so far:

  1. I've had issues with debconf-apt-progress not being able to uninstall samba with the following error:
Removing samba (2:4.19.5+dfsg-4ubuntu9) ...
Setting up samba-common (2:4.19.5+dfsg-4ubuntu9) ...
Can't locate object method "new" via package "Text::Iconv" (perhaps you forgot to load "Text::Iconv"?) at /usr/share/perl5/Debconf/Encoding.pm line 65, <GEN2> line 2.
dpkg: error processing package samba-common (--configure):
 installed samba-common package post-installation script subprocess returned error exit status 255
dpkg: dependency problems prevent configuration of samba-common-bin:
 samba-common-bin depends on samba-common (= 2:4.19.5+dfsg-4ubuntu9); however:
  Package samba-common is not configured yet.

dpkg: error processing package samba-common-bin (--configure):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.12.0-4build2) ...
Errors were encountered while processing:
 samba-common
 samba-common-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)

Installing libtext-iconv-perl handled the error...

  1. I've noticed that noticed that most (all?) packages use apt-get purge to uninstall themselves. The problem with this is that it does not uninstall dependencies. I've used apt-get autopurge instead, which add --autoremove option to remove all dangling dependent packages.

@github-actions github-actions bot added the size/small PR with less then 50 lines label Nov 27, 2024
@Tearran
Copy link
Member

Tearran commented Nov 28, 2024

Good start. The commands should be in a module.
https://github.com/armbian/configng/blob/main/tools/template/module_software_template.sh

function module_samba() {

}

@igorpecovnik
Copy link
Member

igorpecovnik commented Nov 28, 2024

What did you have in mind exactly?

I didn't use correct wording. II meant install / uninstall and configuration - choosing common folder as a parameter / input. We need to insert some default config. People usually export some common data folder as read only accessible without password. App download section is using /armbian/ as a common download folder. IMO that should be available by default upon enabling (installing) samba. Anything else?

About issues.

  1. I haven't used Samba in years, but I assume this part should be easy to resolve. We could be looking at different install commands at Debian and Ubuntu based rootfs. I hope not, but this kind of exceptions can be handled easily when a dedicated module for this feature is made. As proposed by @Tearran too. Even we are looking at simple apt commands, we should make a module.
  2. Agree. Here I wasn't sure what is best practice, so I opened another ticket [Task]: Collections of small future improvements #266 where task is to unify those procedures. I have added this there.

@igorpecovnik igorpecovnik added 02 Milestone: First quarter release Work in progress Unfinished / work in progress labels Nov 28, 2024
@dimitry-ishenko dimitry-ishenko closed this by deleting the head repository Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
02 Milestone: First quarter release size/small PR with less then 50 lines Work in progress Unfinished / work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants