AudioPhile Linux
  • Email
  • Google+
  • Linkedin
  • Twitter
Follow us on Twitter @AudiophileLinux
  • Home
  • News
  • Documentation
  • Screenshots
  • Download
  • Articles
  • About
  • FAQ
Navigation
Search the site...

Playing music without monitor and mice with VLC

May 27, 2013 / Marko / Documentation
12

Last time we introduce you to mpd – Music Player Daemon, a flexible and powerful server-side application for music playback. But as it was for some users to difficult to install and configure, and also very buggy, we decided to use some better application to play music remotely. We will explain to you how to configure vlc for remote use.

Pre requirements:

– Wireless network in your home
– Smartphone or tablet
– vlc player and vlc-plugin-jack installed (default in V.2.0)

Enable automated login

Go to Cinnamon or Gnome desktop environment and enable auto login.
Go to Menu – Administration – Login Window – Security Tab
tick “Enable Automatic Login” and select your username. Open qjackctl program and go to setup and select Misc tab. Tick “Start JACK audio server on application startup” Click OK. Try to start jack to see if everything is OK. When you are satisfied with your jack configuration close qjackctl.

Automated login setup

Login-window-preferences

Enable jack plugin in vlc preferences

Open vlc, go to Tools, Preferences, select Audio and select JACK audio output in Output module settings. Save your configuration and close vlc player.

vlc-preferences

Find your IP address.

IP address is simply address of your computer. If you want to access your computer from remote location, you need to know his IP address. IP address is automatically assigned to your PC on boot. Login to Fluxbox. On the right side of the screen, under NETWORK maybe you can see your IP address. If this is not the case, don’t worry. You can find what is your IP address with this command: /sbin/ifconfig. Open terminal (shells->Eterm1) and type

/sbin/ifconfig

ifconfig

In this example my IP address is 192.168.1.174. That address you have to write down and remember.

Edit startup configuration files

Now we have to edit some files, open terminal (shells – Eterm1) and type:

gedit .fluxbox/startup

after conky line add this
qjackctl&
vlc -I http –http-host 192.168.1.174&

Replace 192.168.1.174 with your IP address and save this file.

gedit-startup-flux

Now every time when you login to Fluxbox session qjackctl and vlc will be automatically started. Close gedit editor and type this in terminal:

sudo gedit /usr/share/vlc/lua/http/.hosts

This .hosts file contains configuration which hosts (you, your wife, your neighbour) can play music from their mobile phones or tablets. Uncomment the line for your network. In our case is 192.168.0.0/16. If you have address 10.0.0.x or something similar you have to uncomment the 10.0.0.0/8 line. Save the file and reboot your PC.

gedit-lua-hosts

Install software on your device.

vlc-ios1

The final step is to install vlc remote application on your iPhone/Android or tablet and point it to your IP address. There are many apps for Android. We recommend VLC HDR  or Remote for VLC . And that’s it. Happy listening.

Checklist For Buying a New Mattress

12 comments on “Playing music without monitor and mice with VLC”

  1. Mike Cox says:
    July 29, 2013 at 14:48

    I have tried this setup and when it works it does seem rather nice using an IPad to remote control VLC. There are a number of problems for my setup, the first is Jack does not always start up correctly but when I clear the error Jack will start when I click on the start button. I also see that sometimes my external USB drive with all the music on does not mount. Finally and most annoyingly when playing music there is a very annoying clicking noise. If I use Deadbeef the music plays fine only when playing music via VLC is there a problem. Any Suggestions? Mike

    Reply
    • mlerota says:
      August 7, 2013 at 09:27

      USB sometimes does not mount if it’s connected to some ports that are on the front of the computer case. See on what ports it always mount and leave it there. Before using Jack and VLC for remote operation you need to setup correct values in Jack for your PC. If you save wrong values Jack will always fail or play bad. For annoying clicking noise maybe your Jack settings for VLC and Deadbeef are different.

      Reply
    • cmh714-apl says:
      May 27, 2014 at 02:53

      I had this too. Add sleep 10 before jack starts up….works for me.

      Reply
    • William Main says:
      April 7, 2015 at 13:04

      Perhaps start vlc with nice – 9 vlc to give it higher cpu cycles?

      Reply
  2. Rahul says:
    August 5, 2013 at 20:36

    Is it necessary to install cinnamon and gnome? I planto remove them when I try this distro.
    Can the machine be administered with only fluxbox?

    –R

    Reply
    • mlerota says:
      August 6, 2013 at 21:53

      It can be administered with only Fluxbox but you have to be an expert to do this. Don’t remove Cinnnamon and Gnome because they are not running when you use Fluxbox, so they don’t interfere with music playback.

      Reply
  3. iskndr says:
    September 1, 2013 at 16:26

    Do you know why playback is gliching in vlc every 3 seconds, but not in deadbeef?

    Reply
    • mlerota says:
      September 2, 2013 at 09:52

      I don’t know. It doesn’t glitch at our config.

      Reply
  4. Pavel says:
    November 11, 2013 at 18:45

    How I can play music from NAS?

    Reply
    • mlerota says:
      November 11, 2013 at 19:37

      In many ways 🙂 You just have to read documentation on the Internet about samba or NFS. It depends on what you use for NAS.

      Reply
  5. Pattorix says:
    November 18, 2013 at 23:09

    Hello

    I’m going to build an Atom based mini pc just for playing music, and I have a question.

    According to “Enable jack plugin in vlc preferences”, can I choose SPDIF output instead of JACK?

    Reply
    • mlerota says:
      November 19, 2013 at 16:46

      You can use jack and spdif

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • AP Linux v5 install instructions

    December 20, 2019
  • How to add new disk in AP-Linux

    April 20, 2017
  • AP-Linux-V4 available

    April 16, 2017

Recent Comments

  • Roy on AP Linux v5 install instructions
  • Nitin on AP Linux v5 install instructions
  • Marko on AP Linux v5 install instructions
  • friendly guy on COMPUTER AUDIO – The truth and nothing but…
  • Pietro on AP Linux v5 install instructions

Get in Touch

  • +353 85 7630 316
  • info@ap-linux.com
  • Contact Us
    • Twitter

Made on GNU/Linux

Audiophile Linux is based on Arch Linux distribution. Old versions are based on Linux Mint. It’s absolutely free. Linux operating system and it’s kernel are distributed under GPL license.

Links

RuneAudio Rasp Pi/CuBox
Native DSD Music Store
24bit96.com web site.
GPL License
Fluxbox Window manager

Latest tweets

401 Unauthorized: Authentication credentials were missing or incorrect.

(c) 2013 Audiophile Linux Distribution - Marko Lerota