News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Dap-P

#1
Users / VPN (Need a place for my notes)
January 29, 2014, 03:52:50 PM
Hi all,
I am trying to make VPN work, and i just need a place to put my notes, and perhaps sometimes some help/advice/testers
I dont have a lot of time, and my head is filled with a lot of things lately, so thats why i dump this here

This is what i know for now:

VPN is working if the Core has a public addressable IP, ie not 192.168.x.x, 10.x.x.x, 172.16.x.x
It is working with and without NAT, (protocol 50 or udp port 4500)

What you need to make it work:

In firewall, allow udp 500, udp 4500, and ip 50 (protocol 50)

And you need to accept 1701 out of the IPSEC tunnel:
iptables -A INPUT -m policy --dir in --pol ipsec -p udp --dport 1701 -j ACCEPT


There needs to be a ppp-up script that allows the remote end in iptables. Next time i work on VPN, i'll try to make it.
could be that just ifup ppp0 is enough -> need to test

It's possible that for devices to use 'internet' over VPN masquerading is needed:
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.80.0/24 -j MASQUERADE


Conclusions:
- If VPN is working internally, it is working with a public outside ip
- Is setup with a private outside ip, 1701 traffic doesn't want to go through the ipsec tunnel, and thus failing
  This could be because i have only tested this with android clients, i need to try with windows, or mac (or linux)
- It's easiest to setup with firewall disabled.
- There is still some work that need to be done on scripting and automatic adding of firewall rules.


Anton
#2
Hi all,

I found this nice site that had indexed a whole lot of internet radio stations.
Here you also can find 'Local' radio stations, based on your geolocation (IP based)

so i made a command that downloads the needed information, as this would seem to me like a handy function to have while installing LMCE, or available from the Webadmin

Command:
curl --silent http://opml.radiotime.com/Browse.ashx?c=local | grep audio | grep station|  gawk -F'"' '{ print "Station : " $4}{system("curl --silent "$6" |  head -n1")}'

Output:
Station : #Station Name# (#Genre#)
#URL#


Now i need some help with putting this info in LinuxMCE
Is there a commandline script i can call, to add media to the LMCE database?
Or should this be done via Mysql?

Anton
#3
After a big crash of the harddisk my server running xendesktop, all my virtual servers are completly screwed...

This week i reinstalled the server, now running ESXi, and made a new VM for LinuxMCE.
Installed LMCE 10.04 core only, and all my hardware is getting detected. and all but my 2 squeezeboxes work.

The squeezeboxes are getting detected, and the server is installed on my core. but when i want to play music from the orbiter, nothing happens. If i select music in the squeezeserver then the media gets played. I deleted all the squeezeboxes, and slim server streamer device. and let it all reinstall. but to no avail.

Anyone that know whats going on?
#4
I've been looking into this, and personally i would like to see the idle timer used for the screensaver also user to turn off my MD's.

In my opinion, this has base setting (maybe 1 hour) and adjustable from the webadmin (like the screensaver)

I am willing to research and try to implement this myself, just need some pointers where to start from the LMCE Gods, and some free time.

Anton
#5
Users / File share not mounted on MD (SOLVED)
October 09, 2013, 10:22:30 AM
Hi all,

This week i installed a 2nd NAS, a freenas server, with a bunch of old harddisks.
LMCE didn't dectect it automaticly, so i created the file server device, and file share device manually.

I ran the scripts for creating LMCE file structure and such. The media that i placed on this share now gets index by the core, but i cannot play it on the MD because the smb share doesn't get mounted.

Anyone that can point in the the right direction?

Anton
#6
Hi all

I've tried LinuxMCE before in a test enviroment, then i had some install issues, but in the end i got it installed.

Now i want to install it on my new box.
I downloaded the latest snapshot, burned it onto a DVD
Followed this : wiki.linuxmce.org/index.php/Installing_0810 guide

Kubuntu installed good. then i do the apt-get update andn the apt-get dist-upgrade
After these all seems well, i run the LinuxMCE installer from the Kubuntu desktop, i receive the error "kdesudo command not found", but i completely ignore it as per guide.
i see a few error coming from the sources.list, but it still continues.

After installing, i get prompted for a reboot.

Reboot, machine boots, and X starts, only grey background and X mousecursor

Whatever i do from here, post-install script, full-install script nothing will finish the installation, it always boots in this grey screen.

After a few apt-get updates, messing with the sources.list and doing pre-install, mce-install and post-install i rebooted, now it finally seems to go and install LinuxMCE.

I still see the Gray X screen, But now in with overlay some status messages, with Installing :

Am i finally there? Did i do something wrong with the install? Is the latest snapshot broken?
From what i remember from test enviroment, i dwnloaded the snapshot, burn on dvd, install, wait wait wait wait wait and wait again, then i had a functioning LinuxMCE.

Any advise is highly appriciated, the box is still installing, but i wanted to write this.

Regards,
Anton