TurnKey Linux Virtual Appliance Library

Appliance lacking samba

I start by saying I enjoyed the lamp appliance until I started to using it. I downloaded the "lamp" (mysql/apache/php combination) then I needed to work with some files from my Winbox. So I looked for smb.conf file. Surprise!! No Samba!! I thought that I could do some old school installation so I downloaded the samba.tar.gz . When I autogen.sh it tells me autoconf is missing. I went an downloaded autoconf. When ./configure it tells me GNU M4 is missing... By this time my frustration reached the roof. Is there any way I can share a folder on that appliance so I can access it from my Winbox??? Thanks.

Jeremy's picture

No need for Samba

TKL appliances have SFTP enabled by default and I find that the best way to interact with the appliance filesystem. I personally prefer Filezilla but there are others (have a look at this post for some links).

If that doesn't suit you and you really want Samba then it can be installed very easily:

apt-get update && apt-get install samba webmin-samba

If you want to configure it manually, then you can leave the 'webmin-samba' off the end (that is the Webmin module for configuring Samba - highly recommended unless you really know your way around Samba).

It worked

That command worked like a charm.

All I needed was to be able to use my Windows editor to directly modify some .php files without having to upload them (ftp) every time.

Thank you JedMeister.

Jeremy's picture

No worries :)

For the record Filezilla (and probably other SFTP clients) allow editing of files locally and automatic reuploading when the changes are saved. Which achieves the same ends, still if you prefer Samba each to their own :)

No samba... but them what is the point in getting

No samba here....
But in my IMNSHO what is the point of doing turnkey packages if I want to get into the guts of the device and almost hard code it again.

Reality of life is that we actually have to concurrent situations:

1- I actually WANT samba to work in my TKL virtual box.

2- There are people out there that want's it too.

3- There is no point in doing TKL if I will hardcode the configuration file. I can actually deploy a linux box and do samba easier both in terms of man-hous and in terms of pride.

The end of the story:

I will do a TKL that actually allows Windows to access the files, because that is pretty much what I need. Regardless of Filezilla.

If anyone have a TKL box that already does it, please send us a link so that we do not redo the work.

Whenever my box if running, I will send a link and we all shall have a TKL that does samba.

Thanks,

Ed.

Jeremy's picture

One line of code is hardly "getting into the guts"

Nor is it even close to 'almost hard code it again'! Although in fairness to you, you do still need to configure it...

1. No worries - install it as above (will take you less than 2 mins...), then you can configure it via Webmin (more time consuming and IMO a PITA but shouldn't take more that 20 mins). The other option is to use the Fileserver appliance and add whatever other software you want (e.g. Apache, PHP, etc).

2. Cool. They can follow above! Or like you suggest you can customise an appliance just how you want and share it around! :)

3. I don't understand what you mean about 'hard coding' the config file?? I'd be interested to hear how you can deploy and 'do samba' easier in terms of man hours than a TKL LAMP install (all you have to do with TKL is install Samba! - Everything else is done!). But I do get the joy of working stuff out yourself and manually doing things...

I think it's great if you want to develop your own TKL appliance that sets it up exactly how you want it. And it sounds like you know others that want it also, so that's awesome that you are willing to fulfill that gap, helping yourself and others in the process.

To be clear, it would only be a relatively small subset of TKL users that would be in your situation. This is for a couple of reasons:

  • Many are happy to use alternate ways to access their TKL filesystem (and IMO they are more consitent and reliable - but perhaps that's just my experience).
  • Not all TKL users use Windows. A significant proportion of them use Linux and Mac as their main OS. Both OSes offer integration between remote Linux filesystems and local FS out of the box (so Samba integration not required).
  • A significant amount of TKL users host their appliances in the cloud (primarily via the TKL Hub - i.e. AWS) and in that context Samba would be a serious security risk (SMB/CIFS should only ever be used within a LAN or via a VPN - never over the plain internet - it is just not secure enough).

If you document the proces of adding and configuring Samba then you could share that as a script (I suggest that you start a new thread). Or you could relatively easily create a ISO (using TKLPatch) or use TKLDev. If you make an ISO I'd also be quite happy to add it to the (unofficial) TKL Community SourceForge page if you want! 

Personally I find Samba a PITA to configure and maintain, and find it unpredictable and unreliable at times... Especially Samba3 with Win Vista and later. But like I said each to their own... Perhaps Samba4 may make this situation better...?

IMO a few (better) alternatives are below: (generally these are for your Win OS - with the exception of the last).

  • Like I've already said I use (and like) Filezilla and it works fine for me... WinSCP apparently offers a few Win integration options so may be an even better alternative (although I've never used it)
  • Win-SSHFS is another option (that I have used). It is in beta and appears to be abandonware (i.e. the devs are no longer developing it and it is unmaintained). Regardless, I use this regularly (when I am runnign Win) and it works pretty well for me, with the only bug I have come across is that on my laptop win-sshfs will crash when it wakes up (if a remote FS was mounted when it went to sleep).
  • Swish is another way to integrate SFTP into Windows. I've never used it and it does report that it's in alpha but many blog posts suggest that it is stable to use..
  • And last (but not least) if you are using your TKL appliance as a VM under VirtualBox then you can install VBox Guest Addons and use VBox shared folders.

There are probably many more alternatives to acheive your desire (of accessing a remote Linux filesystem as if it were a local one). And the beauty of TKL being open source, is that if any of them (like installing Samba) can be added to TKL then you can do that! :)

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)