What's new

[DIY] - SmallNetworks - Learning by Doing

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Sorry, that was just my way of trying to be funny. :)

Honestly - it wasn't taken that way - and I've not seen many contributions that go this far... you might have exceptions with the delivery, but keep the cheap shots to yourself, please - this has been more that a 2 minute post and reply..

If anything - please review and positively contribute - others have - and I always appreciate your experience and insight.
 
Honestly - it wasn't taken that way - and I've not seen many contributions that go this far... you might have exceptions with the delivery, but keep the cheap shots to yourself, please - this has been more that a 2 minute post and reply..

If anything - please review and positively contribute - others have - and I always appreciate your experience and insight.


I have read and re-read the last few posts (my own included) and I can't understand how it can be taken any other way.

No problem. I guess three 'big grins' and an 'lol' is not enough to signify humor.


Let's start again then:
sfx2000, thanks for these detailed posts. Although many of the topics you write about are over my head, I have at least learned what a LAMP setup is. Carry on!

Tim, it is posters like sfx2000 that make this site so great, in addition to what you provide us too.
 
Tim, it is posters like sfx2000 that make this site so great, in addition to what you provide us too.

It's contributions that you provide that also make this a great place to be...

This thread was always "loose notes" - never intended to be the end-all/be-all of how to get things done.
 
We should let sfx rant on, who knows we may have a 100 page post within a month that could help put normal people to sleep.

No, I think sfx2000 is raising the bar for others to step up and give some of their experiences here too.

I'll try my best to 'put people to sleep' as time permits too (while hopefully giving valuable info and hints at the same time). ;)
 
No, I think sfx2000 is raising the bar for others to step up and give some of their experiences here too.

I'll try my best to 'put people to sleep' as time permits too (while hopefully giving valuable info and hints at the same time).

That's exactly the intent - sometimes the board gets into a rut where we get lots of tips on configuring OVPN and IPTables, and less on interesting things and information share...

We have a great community here - enthusiasts, designers, developers, etc... and a wealth of knowledge...

Present company included - for some, this thread is ''sleepy' as it's info that might already be known, but for others, it's something new - and walking thru/spoon feeding, helps them know more about the "stuff" inside the various boxes inside their network.

all good - thanks for the comments...
 
I was joking. What i mean is that we should let sfx continue to contribute. Normal people just dont understand what people talk about on this forum so who knows maybe it could cure insomnia in normal people too.

So if you had insomnia and have read this thread and can now sleep let us know.
 
Last edited:
I've taken a bit more time to edit/write better on this one...

===== Simple NAS Server =====

EDIT - fixed some issues, and reposted...

Thanks to folks for pointing out a couple of misses
 
Last edited:
I've taken a bit more time to edit/write better on this one...

===== Simple NAS Server =====
Thank you very much for this excellent tutorial on how to setup a Samba fileserver!

I just recently installed Ubuntu 16.04 in VirtualBox on my MacBook Pro with the purpose of learning some Linux/Unix. I´ve also downloaded the free "The Linux Command Line" book by William E. Shotts and am trying my best to learn the basic CLI commands using Terminal in Ubuntu.

I followed your steps and Samba seems to be up and running. I´ve created a SMBPASSWD for user ole in Ubuntu. The next step is to setup the share on my MacBook Pro. I´ve never done this before, so any tips/guidance on how to do this would be highly appreciated.

Ole
Samba running in Ubuntu.png
 
I followed your steps and Samba seems to be up and running. I´ve created a SMBPASSWD for user ole in Ubuntu. The next step is to setup the share on my MacBook Pro. I´ve never done this before, so any tips/guidance on how to do this would be highly appreciated.

On MacOS - to mount a share from another machine - from the finder/desktop - do a CMD-K, this will bring up a connect to server dialog box.. type in smb://<ip address of your samba host>, and you should be able to connect.
 
On MacOS - to mount a share from another machine - from the finder/desktop - do a CMD-K, this will bring up a connect to server dialog box.. type in smb://<ip address of your samba host>, and you should be able to connect.
Thanks a lot, Sfx. Works like a charm. :)
 
edit/change the following:

LogLevel VERBOSE
LoginGraceTime 30
PermitRootLogin no
MaxAuthTries 3
AllowUsers <name for primary account>
XForwarding no
MaxStartups 2:30:10

Save changes - restart ssh keep current session open

sudo service ssh restart

Try to login to the ssh server again - should work, if not, check your edits...
I get an "Failed to start OpenBSD Secure Shell" error caused by the "XForwarding no" line. When commented out, the ssh service restarts and I´m able to login to the ssh server.

Edit:
Changing "XForwarding no" to "X11Forwarding no" fixed it. Is this the correct command?

Ole
 
Last edited:
I get an "Failed to start OpenBSD Secure Shell" error caused by the "XForwarding no" line. When commented out, the ssh service restarts and I´m able to login to the ssh server.

Edit:
Changing "XForwarding no" to "X11Forwarding no" fixed it. Is this the correct command?

That line shouldn't break anything, but also assuming that when you ssh into the test host, you're doing username@hostip, not just ssh hostip

Might also be a vbox setting - it's a bit odd sometimes compared with other VM's...
 
Sfx,

I´m learning a lot by studying your excellent tutorials/examples in this thread. Now that I´ve set up Samba and SSH-Server on my Ubuntu Desktop, I would like to start these services automatically when Ubuntu starts, pretty much like the autostart functionality in Windows. At the moment I execute the following commands in Terminal every time I start Ubuntu:

sudo /etc/init.d/samba restart
sudo service ssh restart

By googling, I found the $User/.config directory which includes the $User/.config/upstart directory, but I´m not sure how I actually do this. It would be really great if you have an example of how to do it.

Ole
 
Sfx,

I´m learning a lot by studying your excellent tutorials/examples in this thread. Now that I´ve set up Samba and SSH-Server on my Ubuntu Desktop, I would like to start these services automatically when Ubuntu starts, pretty much like the autostart functionality in Windows. At the moment I execute the following commands in Terminal every time I start Ubuntu:

sudo /etc/init.d/samba restart
sudo service ssh restart

By googling, I found the $User/.config directory which includes the $User/.config/upstart directory, but I´m not sure how I actually do this. It would be really great if you have an example of how to do it.

Ole

when the packages are installed, they normally will install a stub into init, so when the system is brought up, the daemons will start automatically

if you're running a version of Ubuntu with systemd (15.04 or later)...

sudo systemctl enable <servicename>

for example

sudo systemctl enable ssh
sudo systemctl enable samba

don't worry about upstart stuff, that's going away as canonical has finally decided to go down the systemd path - the old school sysv init stuff will be around for a long time as some daemon scripts still need it...
 
Microsoft Way was/is simply the wrong way on lots of things. Thanks mother there is Linux/FreeBSD!

I fought Linux for a while, but when I realized that pretty much everyone but Microsoft actually likes to work together toward a common goal of a standard that is widely accepted and supported.


Microsoft always just did whatever they pleased... (though, avoiding painful beauracracy and just putting a device on the market is sometimes the better choice. :))
 
The fun thing about linux is that it can do anything - the hard part is that it can do everything, and everyone has a different way of doing it :D

For everything that I've posted so far on this thread - there's at least one other way to do the same thing - the agenda, if one could call it that, is to show a easily maintained common set of methods to get it up and running.
 
The problem with Linux is time. When I was younger, I was able to do a deep dive into it and found it lacking, to say the least, when compared to what Windows offered.

Today, I do not have that luxury of time to even waste on getting it to do something I need (when easier ways are available), let alone do it just for fun. Even superficially, let alone the luxury of a 'deep dive' into it.

sfx2000, thanks again for providing these posts and short tutorials to us and the world. I'll be sure to remember they are here if I'm in need of them for my customers.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top