Linux mint домашний сервер

Linux Mint Forums

Forum rules
There are no such things as «stupid» questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

Mint as home server [solved]

Post by mn1247 » Sun Mar 22, 2015 11:59 am

I have a «bare-bones» PC running Linux Mint and I’m trying to set this up as a file and media server for my home. In addition to the system drive, I have a second 1TB harddrive installed (ext4, single partition) that I want to use for shared media/files.

How do I set this up so that other LAN devices (macintosh computers and a smart TV) can access it? I’d like it to be available on the LAN, but blocked from being accessed over the internet. I’ve given the PC a static LAN IP.

Any advice? I’m totally new to Linux (but good with OSX and Windows).

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Re: Mint as home server

Post by kwisher » Mon Mar 23, 2015 7:53 am

I published a podcast on a simple Samba server you might find useful. This setup has worked for me for years.
http://linuxlugcast.com/?p=278

Re: Mint as home server

Post by altair4 » Mon Mar 23, 2015 10:23 am

I don’t know if Samba is the best vehicle for a media server. Streaming content and large file transfers isn’t something it does very well since it’s traditionally used as a File and Print server. You can try it of course and decide for yourself. I can’t recommend a Media server but I would suspect others will in this topic.

Side note on your network components:

Don’t know about the smart TV but something close to magic happens in an all Linux or a Linux / OSX network since you can now free yourself of all the Microsoft Windows components of Samba should you decide to use it..

From the mac you should be able to connect to the Mint system right now: Finder > Go > Connect to Server:

Where «hostname» is the the actual host name of your Mint system — and don’t forget the «.local» part at the end. To find that name just run the following command in Mint:

You can will a little more effort ( creating one text file ) set this up in such a way that the Mint machine will automatically show up under «Shared» in Finder:
Linux Only ( with OSX ) Samba Browsing: http://forums.linuxmint.com/viewtopic.p . 10#p960482

Читайте также:  Linux сделать iso флешки

Linux and OSX can use mDNS ( Bonjour in OSX and Avahi in Linux ) so you don’t need to concern yourself with netbios names, master browsers, nmbd services, name resolve orders and all the other burdens of Windows.

Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

Re: Mint as home server

Post by mn1247 » Mon Mar 23, 2015 11:40 am

Thanks so much for all the info. As a noob, I have much to digest

Re: Mint as home server [solved]

Post by altair4 » Mon Mar 23, 2015 12:17 pm

You never stated which Mint version you are using.

If you use Mint Cinnamon you can easily create a samba share through Nemo — the file manager. For example to share your Public Folder:

Open Nemo
Right click your Public folder
Select «Sharing Options»
Check all the boxes

You just created a guest accessible samba share of your Public folder.

Note : If you followed kwisher’s instruction you will notice that the last box ( guest access ) is grayed out. His HowTo actually disables guest access 3 different ways so if you want this to work you will have to undo all that. There’s a few other things from his smb.conf that are missing so you might consider just restoring the backup of the original smb.conf that he has you make.

Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

Re: Mint as home server [solved]

Post by kwisher » Mon Mar 23, 2015 2:42 pm

Besides the Guest access being disabled, which if you bothered to listen to my How-to is the way I want it to behave in my setup, everything works as is with Windows, Linux and Mac.

Re: Mint as home server [solved]

Post by altair4 » Mon Mar 23, 2015 3:46 pm

It doesn’t matter how you want it to «behave in my setup».

There’s a difference between an «I choose to create shares that are not guest accessible» ( There’s nothing wrong with that ) and what you did which was a «I’m going to make sure that you never will either»

You’ve limited what a given user can accomplish under different conditions and also disabled the full functioning of a whole other component of a file manager.

Everything you want to accomplish can be accomplished with minor changes to the default smb.conf so that both can be used.

In any event I was simply stating a fact. If I were to use your smb.conf and went into Nautilus or Nemo and tried to share a folder I would get this:

Читайте также:  Linux sed удалить пробелы

The «Guest access» option is disabled. The OP may not be aware of the consequences of using your smb.conf.

Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

MtnDewManiac Level 6
Posts: 1491 Joined: Fri Feb 22, 2013 5:18 pm Location: United States

Re: Mint as home server [solved]

Post by MtnDewManiac » Tue Mar 24, 2015 12:53 am

The main one being that if someone with even minor skills (or scripts) parks on the street and spends two minutes hacking kwisher’s wireless, he still won’t be able to raid the media files, I assume. But what are the other (if any) consequences?

BtW, since this thread has been marked [SOLVED] by the OP:

Is it as easy to set up sharing among computers connected to the same wireless router when using Xfce as the DE?

What about if the client computer is an Android 2.7 smartphone, lol? I know of the simpleHTTPserver command (or whatever its called; I just hit the up-arrow in the terminal until it appears, then press Enter ) that a person can run after opening a terminal in a specific directory in order to be able to use a web browser on the phone to download items (from that directory). But not how to access multiple files or how to use either the Motorola Music+ music player (it can play «over the Internet» because it does those streaming «radio» things) for audio or MX Player to play video. And, since there is pretty much zero RAM available for installing new files on the phone, I’d really like to.

This one might be a toughie: Mom doesn’t have cable service, but I pay for Internet at her house and split a Netflix account with her. What if I want to be able to access the data from my computer (which is at my house) from my phone at her house (or from another computer, at least?).

Last one (and, possibly, the toughest of all): If I only have my phone when I’m at Mom’s, but her 74-year old eyes don’t want to view a little 3.7″ screen, but I have my charging cable, can I connect the phone to her 32″ Vizio «smart television» (I think it’s a model M320 or M something 32 something) so that she can play a video file or listen to an audio file via her television? If it helps at all, between MX Player, MediaSer, and MediaSee(?), one or the other one allowed me to play a video file on her television last Summer via a direct connection (phone’s whatchamacallit port to television’s USB port). So the television understands the video format.

Mint 18 Xfce 4.12.

If guns kill people, then pencils misspell words, cars make people drive drunk, and spoons made Rosie O’Donnell fat.

Читайте также:  Linux devices and drivers

Re: Mint as home server [solved]

Post by altair4 » Tue Mar 24, 2015 7:12 am

I have a «bare-bones» PC running Linux Mint and I’m trying to set this up as a file and media server for my home.
.
How do I set this up so that other LAN devices (macintosh computers and a smart TV) can access it?

A «file server» and a «media server» are two different things.

Samba is one option for the «file server». My recommendation is to leave the default smb.conf in place and not to cripple it. With the default if you want to go to one extreme and create only private shares that require user names and passwords to access you can do that. And with that same default if you want to go to the other extreme and only create public read only shares that anyone can access you can do that as well.

As for the «media server» I still don’t think samba is the best vehicle for this type of thing. I was hoping someone would have suggested the usual suspects discussing the pros and cons and ease of setup for both or suggest something different:

Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

Источник

Linux mint домашний сервер

На сайте имеется дистрибутив программы для Ubuntu 18.04 и 20.04

Домашний медиа-сервер (UPnP, DLNA, HTTP) — программа, предоставляющая медиа-ресурсы (фотографии, аудио и видео файлы) Вашего компьютера другим UPnP (DLNA) устройствам в домашней сети, например, телевизорам Philips, Sony, Samsung, LG, Toshiba, игровым приставкам Sony Playstation 3 (4), XBOX 360, медиа-плеерам WD TV Live, Popcorn Hour, Dune, Boxee Box, IconBit, ASUS O!Play, iPad/iPhone/iPod, Apple TV (AirPlay), Chromecast (Google Cast), мобильным и PDA устройствам.

В состав программы включены различные транскодеры аудио и видео-файлов, позволяющие преобразовать медиа-ресурсы в формат, поддерживаемый устройством воспроизведения. Также возможно преобразование формата кадра видео-файлов к формату экрана устройства воспроизведения (цвет дополнения задается пользователем), выбор аудио-дорожки, субтитров. Вы можете выбрать транскодирование с любой минуты.

Программа поддерживает специальные папки видео Музыка (Визуализация) и Фото (Слайд-шоу).

Программа поддерживает внешние и внутренние субтитры. Если устройство не поддерживает субтитры, то программа может включить субтитры (2D и 3D) в видео-поток при транскодировании.

Программа поддерживает управление DMR (Digital Media Renderer) устройствами, Вы можете использовать функцию Воспроизвести на для отдельного устройства и группы устройств.

Программа поддерживает Web-навигацию с HTML5-плеером для устройств без DLNA (UPnP) поддержки.

Программа поддерживает Digital Media Renderer (DMR) эмуляцию для Airplay и Google Cast устройств.

В состав программы включены профили транскодирования для VLC Media Player, Вы можете перенаправить потоки Интернет-радио, Интернет-телевидения с компьютера на Ваши медиа-устройства.

Программа поддерживает Цифровое телевидение (C, S, T), Вы можете перенаправить потоки цифрового телевидения с компьютера на Ваши медиа-устройства.

Изображение

Официальный форум Linux Mint Russian — https://forums.linuxmint.com/viewforum.php?f=75
Linux Mint 19.1 XFCE 64bit (Kernel 4.18.0-16)
Пингвин птица гордая — не полетит, пока не пнёшь.

Источник

Оцените статью
Adblock
detector