LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-28-2010, 08:28 PM   #16
GJQ
Member
 
Registered: Jun 2009
Location: Malaysia
Distribution: Ubuntu 11.04
Posts: 93

Original Poster
Rep: Reputation: 17

Hi unSpawn,
Updated output of gnump3d as below

oem-desktop ~ # grep -v ^# /etc/gnump3d/gnump3d.conf|grep .
port = 8888
hostname = 10.1.1.4
root = /home/oem/Music
logfile = /var/log/gnump3d/access.log
log_format = $connected_address - $user [$date] "GET $REQUEST" $HTTP_CODE $SERVED_SIZE "-" "$USER_AGENT"
errorlog = /var/log/gnump3d/error.log
user = nobody
allowed_clients = all
always_stream = 1
advanced_playlists = 1
theme = Tabular
theme_directory = /usr/share/gnump3d/
directory_format = <tr><td width="10%">&nbsp;</td><td><a href="$LINK">$DIR_NAME</a> $NEW</td><td>$SONG_COUNT</td><td>$DIR_COUNT</td><td>[$RECURSE]</td></tr></a>
new_format = <font color="red"><b>New</b></font>
new_days = 7
file_format = <tr><td width="10%">&nbsp;</td><td><a href="$LINK">$SONG_FORMAT</a></td><td align="right">[<a href="/info$PLAINLINK">Info</a>] [<a href="$PLAINLINK">Download</a>]</td></tr>
song_format = $TRACK - $ARTIST - $ALBUM - $SONGNAME [ $GENRE - $LENGTH / $SIZE ] $NEW
sort_order = $TRACK
plugin_directory = /usr/share/perl5/gnump3d/plugins
mime_file = /etc/gnump3d/mime.types
file_types = /etc/gnump3d/file.types
now_playing_path = /var/cache/gnump3d/serving
tag_cache = /var/cache/gnump3d/song.tags
shoutcast_streaming = 1
use_client_host = 1

I do not understand on the inside and outside port.Is inside meaning Lan Port and outside means Wan Port? In my modem,I can see only Lan Port Begin and End, Wan Port begin and End, Server IP.Assuming my understanding is correct,below is what I put in my Port Forwarding config

Port Forwarding Config
Wan Port Begin:8888
Wan Port End:8888
Lan Port Begin:8000
Lan Port End:8000
Server IP:10.1.1.4(Internal IP of the pc hosting the file)

Please see if it is correct and advise.

Thanks
 
Old 11-28-2010, 08:48 PM   #17
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
Quote:
Originally Posted by GJQ View Post
I do not understand on the inside and outside port.Is inside meaning Lan Port and outside means Wan Port?
Yes.


Quote:
Originally Posted by GJQ View Post
Assuming my understanding is correct
Assuming isn't necessary if your router comes with a manual or help file or the vendor provides instructions on its website. And why not just make keep ports the same? Make it read Wan Port Begin:8888, Wan Port End:8888, Lan Port Begin:8888, Lan Port End:8888 and be done with it?
 
Old 11-28-2010, 09:30 PM   #18
GJQ
Member
 
Registered: Jun 2009
Location: Malaysia
Distribution: Ubuntu 11.04
Posts: 93

Original Poster
Rep: Reputation: 17
Hi unSpawn,
Updated Port Forwarding Config

Port Forwarding Config
Wan Port Begin:8888
Wan Port End:8888
Lan Port Begin:8888
Lan Port End:8888
Server IP:10.1.1.4(Internal IP of the pc hosting the file).

I have put everything as 8888 but my friend still cannot access the server from his side using http://10.1.1.4:8888/.I do not know what is still wrong.

The modem is a customise one provided to me by my ISP that have modem and router function therefore I do not have any manual to refer.

Pls check if the port forwarding config is correct

Thanks
 
Old 11-28-2010, 10:14 PM   #19
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
Ports look OK but your friend should use the external IP address. The one you're known by on the 'net right now. Try http://www.whatismyip.org/ if you need to check.
 
Old 11-28-2010, 10:25 PM   #20
GJQ
Member
 
Registered: Jun 2009
Location: Malaysia
Distribution: Ubuntu 11.04
Posts: 93

Original Poster
Rep: Reputation: 17
So my friend when logging from the internet. The IP address will have to be http://180.73.12.12:8888/ is that correct?

Do I have to change IP address in gnump3d config to 180.73.12.12 or still remain on 10.1.1.4(Hosting PC)?

Will router port forward the request from internet to my hosting pc ip which is 10.1.1.4?

Thanks
 
Old 11-28-2010, 10:32 PM   #21
GJQ
Member
 
Registered: Jun 2009
Location: Malaysia
Distribution: Ubuntu 11.04
Posts: 93

Original Poster
Rep: Reputation: 17
Dear unSpawn,
Big thank you.Gnump3d is up and running and my friend is able to listen by accessing using the IP 180.73.12.12:8888. Next up,how do i restrict access?

Thank you
 
Old 11-29-2010, 05:32 PM   #22
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
Use your firewall and set up iptables rules to allow traffic to 10.1.1.4:8888 only from your friends IP address. If you need a (graphical) front-end you could try say GUFW or Firestarter or any other UI your distribution provides. If you'd like to try your hand at manual configuration please post the output of running 'iptables-save'.
 
Old 06-07-2011, 04:36 AM   #23
GJQ
Member
 
Registered: Jun 2009
Location: Malaysia
Distribution: Ubuntu 11.04
Posts: 93

Original Poster
Rep: Reputation: 17
Hi unSpawn,
I am sorry as need your help again. I have reinstall my system so reinstall Gnump3d also. After installation,I have the below error.Can you assist to help me correct the below problem so that Gnump3d is able to run like before.

Error details:
oem@oem-desktop ~ $ gnump3d --fast
The directory '/var/log/gnump3d' within which should create our logfile isn't writable by you.Exitting.
oem@oem-desktop ~ $

Thanks you
Appreciate your immediate reply
 
Old 06-07-2011, 05:15 AM   #24
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
The user name is configured at `grep ^user /etc/gnump3d/gnump3d.conf`?
 
Old 06-07-2011, 06:12 AM   #25
GJQ
Member
 
Registered: Jun 2009
Location: Malaysia
Distribution: Ubuntu 11.04
Posts: 93

Original Poster
Rep: Reputation: 17
Hi unSpawn,
Please see below. User is still "nobody". I don't understand what you mean.Can you tell me which one that need to be change






# SECURITY OPTIONS.
####

#
# If there is a user value setup below then the server will become that
# user, after creating the listening socket and after opening the logfiles
# for writing.
#
# If you want to run this server via init.d, (which has the effect of
# starting the daemon as root), you should make sure you have this set
# to an appropriate value.
# Otherwise you will have the server running as root, which is clearly
# not a good idea - even in the unlikely event that this application is
# 100% bug free.
#
# You may comment the line out if you are running the daemon from your home
# directory, and you are the only user with read access to the server root.
# Although this is not recommended way of running the server.
#
# For the benefit of fellow computer users is recommended that you run the
# server as a user such as 'nobody', and allow people read-only access to
# your audio files.
#
user = nobody


Thank you
 
Old 07-02-2011, 01:00 PM   #26
GJQ
Member
 
Registered: Jun 2009
Location: Malaysia
Distribution: Ubuntu 11.04
Posts: 93

Original Poster
Rep: Reputation: 17
Hi all,
I like to know if I can install squid onto my system that is already running gnump3d(Music Server) on it meaning 1 pc with 2 purpose (Music Server) and (Acting as Proxy Server for my home network using squid)

Thanks for all the advise
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Create your own MP3/media streaming server with GNUMP3d LXer Syndicated Linux News 0 10-07-2009 11:50 AM
VLC, GNUMP3d, streaming from remote cli server properganda Linux - Newbie 1 02-07-2008 10:38 AM
Problems with media server using GNUMP3d! lipuki Linux - Software 0 12-19-2007 10:39 AM
LXer: GNUMP3d: A small, portable, MP3/OGG streaming server LXer Syndicated Linux News 0 04-06-2007 02:31 PM
trying to host streaming mp3 using gnump3d and apache2 bernied Linux - Software 0 03-30-2006 06:02 PM


All times are GMT -5. The time now is 12:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration