Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: bibo01 on August 05, 2013, 08:33:05 PM

Title: TCL with Deadbeef for a newbie
Post by: bibo01 on August 05, 2013, 08:33:05 PM
Hi everybody,

This is my first message and I am asking your patience because I am Linux newbie.
I would like to make a dedicated system with TCL and Deadbeef music player connected to my Asus Essence One Muses through USB, which is supported by ALSA.
Ideally I would like to prepare a USB stick with all the goodies on it, so afterwards a general installation would not require internet connection. But let's go one step at a time and assess the system.

On my first and only attempt (for now) I managed to go all the way through up to listening to some music.
I installed TinyCore on a bootable USB pendrive with Rufus and booted on a laptop - no problem.
I setup network for downloading applications.
Browsing for ALSA, many ALSA options appeared - plugins, utilities, TinyCore 64bit.... Which is the correct ALSA application? On my 1st attempt, I downloaded and loaded "alsa.tcz".

Then, I did the same for Deadbeef. Here too there were two options. Which is the correct one? I downloaded "deadbeef.tcz".
I managed to hear some music from my local HD - great! I had problems with upsampling through SRC, but I keep that question for another time.

My third question is how do I save the applications (alsa + deadbeef) locally on the USB pendrive?
In your Quick & Easy Overview you supply the following indications:

"When the desktop appears you will see the window bar on the bottom of the screen. Single click on the icon that looks like a file cabinet; that will open the file manager program.
 
In the left pane you will see the directory tree. Look for the directory called "mnt/" and if it is not already expanded, click on the + sign just left of it. This will show you the drives connected to your computer.
 
Your memory stick should be listed as "sda1". Click on sda1 and make sure the the known filename appears in the panel to the right. If it doesn't, then try the other drives listed under "/mnt" (but not fd0) until your filename appears.
 
In the left panel right click on the drive that your stick is listed as and select "Create directory" from the pop up menu; a box will pop up prompting you for a directory name. Type in "tce/" and hit the enter key. You have just created the directory where TinyCore will save any applications, desktop settings, and files you create. The next time you start your computer TinyCore will automatically find this directory and all your applications will be available to run."

It seems pretty clear. However, booting from a USB pendrive, I cannot see any "file cabinet icon" or any kind of file manager, so I cannot follow the procedure. Any help?!

This is it for now...I do not want to exagerate  :D
I thank you in advance for your help and patience.
Title: Re: TCL with Deadbeef for a newbie
Post by: Juanito on August 06, 2013, 02:51:14 AM
Which is the correct ALSA application? On my 1st attempt, I downloaded and loaded "alsa.tcz".
alsa is the correct extension

Quote
Which is the correct one? I downloaded "deadbeef.tcz".
If it worked then I'd stay with this choice

Quote
I cannot see any "file cabinet icon" or any kind of file manager, so I cannot follow the procedure. Any help?!
There used to be a file manager included in the base tinycore (fluff) - you can use the apps gui to download and load the fluff extension or  one of the other file managers like emelfm or you can enter the commands to create a tce folder manually from a terminal window:
Code: [Select]
$ sudo mkdir /mnt/sda1/tce
$ sudo chown tc:staff /mnt/sda1/tce
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on August 06, 2013, 05:14:14 AM
- Sorry the system for the moment does NOT allow me to quote -

Thanks for your reply.

Your commands:
$ sudo mkdir /mnt/sda1/tce
$ sudo chown tc:staff /mnt/sda1/tce


BTW, from the above I did not type "$" because it was already part of terminal prompt. Did I make a mistake?
I have implemented your seggestion using terminal window, but how do I make the setting stick till next power up of the pendrive?
I suppose your answer will apply to all settings I am trying to implement.

Is it possible to save network configuration (my IP) till next power up without re-entering each time?

How do I see/mount my NAS (192.168.0.98) where I keep my music files?

How do I choose an Italian keyboard?

Hopefully with your help I will be able to save ALSA and Deadbeef locally on my pendrive.
Is it possible to have them loading automatically at startup? Do I need a script?
I would like to have Deadbeef among the icons at the bottom, is it possible?

The following questions regard ALSA/Deadbeef:
Can Deadbeef change sample rate on the fly, i.e. if I put a 44.1kHz track and a 96kHz track in the playlist?
Does it depend from ALSA?

If I apply SRC as DSP in the output chain, playback works at the new sample rate. However, it only works on the second selection. The first song I select it plays at the old frequency and it sounds distorted (wrong speed). Is it common? Can it be avoided?

Thanks for your help   
Title: Re: TCL with Deadbeef for a newbie
Post by: curaga on August 06, 2013, 05:34:02 AM
I see you used a third-party installer - using a supported one would have made the tce directory for you (core2usb for Windows users), saving you some time.
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on August 06, 2013, 05:42:42 AM
I see you used a third-party installer - using a supported one would have made the tce directory for you (core2usb for Windows users), saving you some time.
I can always try  ;)
Thanks for the suggestion
I still need to have the settings to "stick" though...  :-[
Title: Re: TCL with Deadbeef for a newbie
Post by: Juanito on August 06, 2013, 05:49:38 AM
I have implemented your seggestion using terminal window, but how do I make the setting stick till next power up of the pendrive?
Assuming sda1 is your usb stick then /mnt/sda1/tce will be permanent and the next time you reboot, tinycore will use this folder automatically to store extensions you download.

Quote
Is it possible to save network configuration (my IP) till next power up without re-entering each time?
Yes - you need to initiate a backup using the gui cpanel applet (and read the wiki sections on getting started and backup/persistance)

Quote
How do I see/mount my NAS (192.168.0.98) where I keep my music files?
What sort of nas filesystem does it use - nfs, cifs or?

Quote
How do I choose an Italian keyboard?
Have a look at the wiki and search the forum for the answer

Quote
Is it possible to have them loading automatically at startup? Do I need a script?
No need for a script - use the apps gui to set the extensions "onboot" or "ondemand"
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on August 06, 2013, 06:12:01 AM
How do I see/mount my NAS (192.168.0.98) where I keep my music files?
What sort of nas filesystem does it use - nfs, cifs or?

I have a Synology DS110j

Thanks, I will start studying the wiki  8)
Title: Re: TCL with Deadbeef for a newbie
Post by: Juanito on August 06, 2013, 06:51:28 AM
I have a Synology DS110j

As per the data sheet, this supports both cifs (samba extension) and nfs (nfs extension) - it will also work as dlna and iTunes server, so you don't need to mount the drive to play music files, you just need a daap or dlna client
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on August 06, 2013, 09:15:02 AM
I have a Synology DS110j

As per the data sheet, this supports both cifs (samba extension) and nfs (nfs extension) - it will also work as dlna and iTunes server, so you don't need to mount the drive to play music files, you just need a daap or dlna client
I do not want daap or dlna client. I would like to be able to see and open my files on the NAS from Deadbeef.
Title: Re: TCL with Deadbeef for a newbie
Post by: Juanito on August 06, 2013, 09:32:56 AM
OK, so are your music files on an nfs or cifs partition on your nas?
Title: Re: TCL with Deadbeef for a newbie
Post by: Rich on August 06, 2013, 10:42:21 AM
Hi bibo01
OK, so are your music files on an nfs or cifs partition on your nas?
If you don't know, install  findshares.tcz. Then enter  findshares  in a terminal and hopefully that will tell you.
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on August 06, 2013, 10:49:45 AM
OK, so are your music files on an nfs or cifs partition on your nas?
Good question!  :-\

Looking in NAS System Information I can see that nfs service is not enabled. Windows File and Mac File Services are enabled.
I dare saying it's cifs  ::)

I read that for my needs I need to implement the following bootcodes:
opt=sda1
home=sda1
kmap=qwerty/it

How do I implement bootcodes?

...thanks for your patience
Title: Re: TCL with Deadbeef for a newbie
Post by: Juanito on August 06, 2013, 11:10:08 AM
Looking in NAS System Information I can see that nfs service is not enabled. Windows File and Mac File Services are enabled.
You could try this:
Code: [Select]
$ sudo mkdir /mnt/music
$ sudo mount -t cifs //192.168.0.98 /mnt/music -o user=username,pass=password

You might need to load the filesystems-KERNEL and cifs-utils extensions

Quote
I read that for my needs I need to implement the following bootcodes:
opt=sda1
home=sda1
kmap=qwerty/it

How do I implement bootcodes?
I would not use opt=sda1 or home=sda1 at this stage, but suggest you initiate a backup using the gui cpanel applet

For bootcodes see the relevant wiki section
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on August 07, 2013, 12:09:31 AM
Baby steps...

You could try this:
Code: [Select]
$ sudo mkdir /mnt/music
$ sudo mount -t cifs //192.168.0.98 /mnt/music -o user=username,pass=password

You might need to load the filesystems-KERNEL and cifs-utils extensions
I tried the above but the 2nd line gives me the following error message:
mounting //192.168.0.98 on /mnt/music failed.

I checked address and user/pw, they are the same I use to access NAS with IE, so they are correct.
Do I have to access NAS at root level? Because eventually user/pw is different
The directory on my NAS that I want to acces is /volume1/public and now it can be accessed through NFS too.
I tried to substitute "nfs" in place of "cifs" - error
I tried to use "//192.168.0.98:/volume1/public" - error

Quote
I would not use opt=sda1 or home=sda1 at this stage, but suggest you initiate a backup using the gui cpanel applet

For bootcodes see the relevant wiki section
I am doing my homework but - I assure you - it is not easy...lots of info, terminology, EN is not my main language, etc.

By pressing TAB at boot time I can add "kmap=qwerty/it" and it works fine. However, is there any way to make the change permanent?

I need some help with ALSA, please.
If I use no DSP in Deadbeef (no ALSA mixer either), ALSA should take charge during playing back with automatic frequency detection of the file. Instead, the sample rate is always totally random and wrong.
Title: Re: TCL with Deadbeef for a newbie
Post by: Juanito on August 07, 2013, 03:06:25 AM
I tried to use "//192.168.0.98:/volume1/public" - error
That would be:
Code: [Select]
$ sudo mount -t cifs //192.168.0.98/volume1/public /mnt/music -o user=username,pass=password..without the ":"

Quote
By pressing TAB at boot time I can add "kmap=qwerty/it" and it works fine. However, is there any way to make the change permanent
What boot loader are you using? For example with syslinux on a usb stick you pass boot codes like this:
Code: [Select]
label rootfs
kernel /boot/vmlinuz
initrd /boot/rootfs.gz,/boot/modules.gz
append quiet noswap tce=UUID=18ab07fe-cf1d-4fab-8f96-ed80e00b67cb waitusb=10:UUID=18ab07fe-cf1d-4fab-8f96-ed80e00b67cb host=boxdell text blacklist=bcma,b43,ssb

Quote
I need some help with ALSA, please.
If I use no DSP in Deadbeef (no ALSA mixer either), ALSA should take charge during playing back with automatic frequency detection of the file. Instead, the sample rate is always totally random and wrong.
Sorry, but I've no clue about that...
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on August 07, 2013, 04:27:28 AM
That would be:
Code: [Select]
$ sudo mount -t cifs //192.168.0.98/volume1/public /mnt/music -o user=username,pass=password..without the ":"

With the above I get: mounting //192.168.0.98/volume1/public on /mnt/music failed: no such device
If I substitute cifs with nfs, I get: .....failed: Invalid argument
Obviously, I insert my own username/pw

Quote
What boot loader are you using? For example with syslinux on a usb stick you pass boot codes like this:
Code: [Select]
label rootfs
kernel /boot/vmlinuz
initrd /boot/rootfs.gz,/boot/modules.gz
append quiet noswap tce=UUID=18ab07fe-cf1d-4fab-8f96-ed80e00b67cb waitusb=10:UUID=18ab07fe-cf1d-4fab-8f96-ed80e00b67cb host=boxdell text blacklist=bcma,b43,ssb

I am using core2usb as suggested before.
I just need a way to make "kmap=qwerty/it" stick  ;)

Quote
Quote
I need some help with ALSA, please.
If I use no DSP in Deadbeef (no ALSA mixer either), ALSA should take charge during playing back with automatic frequency detection of the file. Instead, the sample rate is always totally random and wrong.
Sorry, but I've no clue about that...
Well, I tried...perhaps somebody else may help... :)
Title: Re: TCL with Deadbeef for a newbie
Post by: tinypoodle on August 07, 2013, 06:07:28 AM
I need some help with ALSA, please.
If I use no DSP in Deadbeef (no ALSA mixer either), ALSA should take charge during playing back with automatic frequency detection of the file. Instead, the sample rate is always totally random and wrong.

What kind of format(s)?

Have you tried with different players (e.g. Mplayer-nodeps)?
Title: Re: TCL with Deadbeef for a newbie
Post by: Juanito on August 07, 2013, 06:41:14 AM
With the above I get: mounting //192.168.0.98/volume1/public on /mnt/music failed: no such device
If I substitute cifs with nfs, I get: .....failed: Invalid argument
Did you load the filesystems-KERNEL, cifs-utils and nfs-utils extensions?

Quote
I am using core2usb as suggested before.
I just need a way to make "kmap=qwerty/it" stick  ;)
I seem to remember that this uses syslinux - you should have a file /mnt/sda1/boot/extlinux/extlinux.conf (or similar) where you can add the boot codes
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on August 07, 2013, 09:41:35 PM
I need some help with ALSA, please.
If I use no DSP in Deadbeef (no ALSA mixer either), ALSA should take charge during playing back with automatic frequency detection of the file. Instead, the sample rate is always totally random and wrong.

What kind of format(s)?

Have you tried with different players (e.g. Mplayer-nodeps)?
I loaded Mplayer-nodeps, clicked on it but nothing happens. I mean, does it have an interface? ...I told you I was a newbie  :-[
If you give me some indications, I can try again  :)

I realized that, by ticking on ALSA resampling in its configuration menu within Deafbeef, I can playback bit-perfect files. However, if I place in the playlist 2 files at different sample rates (ie 16/44.1 and 24/96), there are a few problems.
- If I cycle without stopping from one to the other, the first file is played fine but, as I move onto the 2nd one, it tries to play it at the previous sample rate. If I go back to the 1st one, it tries to play it at the sample rate of the 2nd one.
- If I start playing at a certain frequency, I have to start/stop/restart to be allowed playing at a different frequency.
Is this normal with ALSA? I would like to know if in general ALSA can automatically adjust sample rate between files.
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on August 07, 2013, 11:25:16 PM
With the above I get: mounting //192.168.0.98/volume1/public on /mnt/music failed: no such device
If I substitute cifs with nfs, I get: .....failed: Invalid argument
Did you load the filesystems-KERNEL, cifs-utils and nfs-utils extensions?
Almost there...
After loading your extensions, using //192.168.0.98/public did the trick.
How do I make it to stick so I do not need to do it everytime?
I tried to backup but it does not work because "mnt" is excluded. Should I try to add "mnt" to filetool.lst (obviously excluding it from xfiletool.lst)?   

Quote
Quote
I am using core2usb as suggested before.
I just need a way to make "kmap=qwerty/it" stick  ;)
I seem to remember that this uses syslinux - you should have a file /mnt/sda1/boot/extlinux/extlinux.conf (or similar) where you can add the boot codes
Yes, it uses syslinux.
I opened /boot/syslinux/syslinux.cfg with Win Notepad and added "kmap..." to the APPEND line  :D 8)

If I connect a HD through USB or eSATA to my notebook, will I be able to see it automatically booting through USB pendrive? Or do I need to mount it too?

In order to build the M2Tech Audio driver, what is the procedure for TCL?
https://github.com/panicking/snd-usb-asyncaudio/wiki
Has anyboy already build it?

Always thanks
Title: Re: TCL with Deadbeef for a newbie
Post by: Rich on August 08, 2013, 12:06:58 AM
Hi bibo01
Quote
I opened /boot/syslinux/syslinux.cfg with Win Notepad and added "kmap..." to the APPEND line
Editing Linux files in a Windows environment may be hazardous to your Linux system. Use Editor, vi, or some
other Linux editor.
Title: Re: TCL with Deadbeef for a newbie
Post by: coreplayer2 on August 08, 2013, 01:13:51 AM
I use notepad++ if I absolutely have to edit a linux file in windows   ;)
Title: Re: TCL with Deadbeef for a newbie
Post by: Juanito on August 08, 2013, 03:16:32 AM
After loading your extensions, using //192.168.0.98/public did the trick.
How do I make it to stick so I do not need to do it everytime?
I tried to backup but it does not work because "mnt" is excluded. Should I try to add "mnt" to filetool.lst (obviously excluding it from xfiletool.lst)?
No, the backup software would try to back-up everything under /mnt if you did that - you could make a small script to mount the drive on boot, add this script to your back-up and run it from bootlocal.sh

Quote
If I connect a HD through USB or eSATA to my notebook, will I be able to see it automatically booting through USB pendrive? Or do I need to mount it too?
You would need to mount it too (you can use the gui mount applet) - this is the linux way.

Quote
In order to build the M2Tech Audio driver, what is the procedure for TCL?
Load the compiletc, linux-headers, bash, ncurses-dev and perl5 extensions and compile it
Title: Re: TCL with Deadbeef for a newbie
Post by: tinypoodle on August 08, 2013, 05:42:17 AM
I loaded Mplayer-nodeps, clicked on it but nothing happens. I mean, does it have an interface? ...I told you I was a newbie  :-[
If you give me some indications, I can try again  :)

Simply
Code: [Select]
mplayer somefile.mp3
or you could also play all files in same dir with
Code: [Select]
mplayer *.mp3
There are several GUI frontends, e.g. SMplayer.
Title: Re: TCL with Deadbeef for a newbie
Post by: Ipoci on August 16, 2013, 05:17:18 AM
Did a quick test with my USB-SPDIF key made by ART ...

I got sound by Deadbeef using .flac files but any tentative to play a .WAV file induced a "crash" of Deadbeef app, or to be honest no crash evidence but player quit immediately as soon a .WAV file is selected to playout ... files are normal 16/44 CD files, no special HD or fancy coding.

Any idea ?

Kindly regards, Massimiliano
Title: Re: TCL with Deadbeef for a newbie
Post by: tinypoodle on August 16, 2013, 07:34:17 AM
For playing wav files you could as well use the player shipped with sound system (aplay/ossplay).
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on August 17, 2013, 09:14:46 PM
For playing wav files you could as well use the player shipped with sound system (aplay/ossplay).
that is not much help if one wants to use Deadbeef as player  :)

Hi ipoci, you are not the only one with this problem. I hope that my friend hfavandepas was able to solve this matter and a few other things here and there...I should hear from him soon  :D

I have been trying to modprobe my usb alsa driver, but it seems that TCL does not have modprobe at all.
Is that the case? Is there any way around it?
Title: Re: TCL with Deadbeef for a newbie
Post by: Rich on August 17, 2013, 11:00:40 PM
Hi bibo01
Quote
... but it seems that TCL does not have modprobe at all.
Modprobe is included. You either need to run it as root or using sudo.
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on August 18, 2013, 02:28:26 AM
Hi bibo01
Quote
... but it seems that TCL does not have modprobe at all.
Modprobe is included. You either need to run it as root or using sudo.
Great!
Can you please give some examples for both?
Title: Re: TCL with Deadbeef for a newbie
Post by: Juanito on August 18, 2013, 03:20:52 AM
Code: [Select]
$ sudo modprobe b43
Code: [Select]
$ sudo su
# modprobe b43
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on August 18, 2013, 04:39:09 AM
I would like to issue a command in order to interrogate my usb audio driver and then possibly change some settings.
From what I read I thought that "modprobe snd-usb-audio" would do, but even if I insert "sudo" as you suggested nothing happens.
Have any idea?

If I write "sudo modprobe  snd-usb-audio  nrpacks=20" after unplugging usb, it accepts it.
If I want to load the snd-usb-audio module with the parameter "nrpacks=20" or 1, how do I include it into the boot script?
Shall I add into boolocal.sh:
/sbin/modprobe  snd-usb-audio  nrpacks=20
(I got the hint from here: http://forum.tinycorelinux.net/index.php/topic,7330.5/wap2.html)
How?
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on August 18, 2013, 09:28:22 AM
...
If I write "sudo modprobe  snd-usb-audio  nrpacks=20" after unplugging usb, it accepts it.
If I want to load the snd-usb-audio module with the parameter "nrpacks=20" or 1, how do I include it into the boot script?
Shall I add into boolocal.sh:
/sbin/modprobe  snd-usb-audio  nrpacks=20
(I got the hint from here: http://forum.tinycorelinux.net/index.php/topic,7330.5/wap2.html)
How?
I think I can do it with Editor going back to root till I find opt/bootlocal.sh.
Am I right?
Title: Re: TCL with Deadbeef for a newbie
Post by: curaga on August 18, 2013, 10:44:07 AM
Yes, your syntax is correct, and yes, the file is /opt/bootlocal.sh.
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on August 29, 2013, 10:08:41 AM
Can you please suggest me a VNC client (like UltraVNC) in the TCL repository?
Title: Re: TCL with Deadbeef for a newbie
Post by: Rich on August 29, 2013, 11:45:10 AM
Hi bibo01
I can't recommend a specific package, but here is a list of available packages containing  vnc  in the package name:
Code: [Select]
gtk-vnc-dev.tcz
gtk-vnc-locale.tcz
gtk-vnc-python.tcz
gtk-vnc.tcz
libvncserver-dev.tcz
libvncserver.tcz
realvnc.tcz
tigervnc-viewer-doc.tcz
tigervnc-viewer-locale.tcz
tigervnc-viewer.tcz
tightvnc.tcz
vncrec.tcz
x0vncserver.tcz
x11vnc.tcz
Also in the repo are  vino  and  vinagre. There may be others.
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on August 29, 2013, 08:08:45 PM
Thanks.
I DL and Load Realvnc as I knew it already.
Its dependecies are perl5, xlibs_support (I DL xlibs) and x0vncserver, so I DL those as well.
Realvnc icon does not appear on desktop.
What do I have to do to use it?
Title: Re: TCL with Deadbeef for a newbie
Post by: Rich on August 29, 2013, 08:19:43 PM
Hi bibo01
There is no  .desktop  file for  realvnc  and therefore no icon. Start it from the command line using a terminal. The extension
contains four executables:
Code: [Select]
usr/local/bin/Xvnc4
usr/local/bin/vnc4config
usr/local/bin/vnc4server
usr/local/bin/xvnc4viewer
One of these is what you are looking for.
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on September 01, 2013, 01:49:39 AM
Thanks for your continuous help.

I would like your help to write a little shell script.
Through Jack a Win PC is going to send audio data over the network to a small jack enabled TCL system acting as buffer and playing through Alsa.
For this purpose I have written an exutable "start_jack" to run jack with certain settings.

Now I would like a shell script that:
- waits for say 10 seconds (to make sure the DAC is running and seen by TCL)
- then runs start_jack
- then waits another 5 seconds
- then runs "jack_load netmanager".

Where do I have to write it? In bootlocal.sh, .xsession, ...?
Title: Re: TCL with Deadbeef for a newbie
Post by: Rich on September 01, 2013, 02:40:05 AM
Hi bibo01
You could add the commands to bootlocal.sh, or you could create the script in  /home/tc/local/bin  and call it from
bootlocal.sh. If you wish to delay execution until after the GUI is up, you can place the commands in a file under
/home/tc/.X.d.
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on September 01, 2013, 06:12:44 AM
Thanks.
Can you please tell me what to write in the script? I don't know  :-\ ???
Title: Re: TCL with Deadbeef for a newbie
Post by: Rich on September 01, 2013, 12:47:35 PM
Hi bibo01
Code: [Select]
#!/bin/sh
sleep 10
start_jack
sleep 5
jack_load netmanager
I'm not familiar with the use of  jack  and assume if you execute those commands from the command line they work.
If your  start_jack  script is written so it does not return to a command promt, you'll need to background it like this:
Code: [Select]
start_jack &
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on September 02, 2013, 02:19:06 AM
Hi bibo01
Code: [Select]
#!/bin/sh
sleep 10
start_jack
sleep 5
jack_load netmanager
I'm not familiar with the use of  jack  and assume if you execute those commands from the command line they work.
If your  start_jack  script is written so it does not return to a command promt, you'll need to background it like this:
Code: [Select]
start_jack &
Yes, those commands almost work.
There is just a little hicup...
From command line I run start_jack with: ./start_jack
However, because of an error which does not stop jack from starting, I do not go back to prompt.
If I write "start_jack &", I go back to prompt only after pressing Enter.
Can you please tell me what I require to go back to prompt during a script?

PS: I told you I was a newbie  :-[
Title: Re: TCL with Deadbeef for a newbie
Post by: gerald_clark on September 02, 2013, 09:21:35 AM
Pressing Enter just causes an additional prompt to be displayed.
The first prompt was overwritten by output from the backgrounded "start_jack".
The Enter was unnecessary. I just caused the shell to produce a prompt on a new line.
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on September 03, 2013, 01:18:16 AM
Code: [Select]
#!/bin/sh
sleep 10
start_jack
sleep 5
jack_load netmanager
I have tried to insert the above into bootlocal.sh, but it does not seem to work.
I have also tried ./start_jack - same result.
If I use "./start_jack" and "jack_load netmanger" from command line, it works.
What can I change in the above script to make it work?

Furthermore, is there an easy way to check if Jack is running?
I have been loading qjackctl to do it...
Title: Re: TCL with Deadbeef for a newbie
Post by: gerald_clark on September 03, 2013, 08:48:36 AM
You need to use the full path to start_jack.  The current directory when running bootlocal.sh is surely not what you are assuming.
Title: Re: TCL with Deadbeef for a newbie
Post by: bibo01 on September 03, 2013, 11:53:56 PM
I am on usb pendrive.
start_jack 's full path is /home/tc/
I tried adding:

/home/tc/start_jack
or
/home/tc/ start_jack

but it doesn't work.

What exactly do I have to add?
Title: Re: TCL with Deadbeef for a newbie
Post by: Pampan on October 10, 2013, 03:07:41 PM
" Then, I did the same for Deadbeef. Here too there were two options. Which is the correct one? I downloaded "deadbeef.tcz". "

I am not that lucky : I can  find alsa.tcz in the appsbrowser, but not deadbeef.tcz.

 Any idea how to get it though ?

Laurent
Title: Re: TCL with Deadbeef for a newbie
Post by: jls on October 10, 2013, 04:37:34 PM
there is no deadbeef in tc 5.x, u can try the one in tc 4.x if it works in tc 5.x or rebuild the extension: https://code.google.com/p/tc-ext-tools/source/browse/packages/deadbeef (https://code.google.com/p/tc-ext-tools/source/browse/packages/deadbeef)
Title: Re: TCL with Deadbeef for a newbie
Post by: tinypoodle on October 10, 2013, 09:57:45 PM
Or simply download the statically compiled binary as provided by upstream.