Tiny Core Linux
Tiny Core Extensions => TCE Talk => Topic started 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.
-
Which is the correct ALSA application? On my 1st attempt, I downloaded and loaded "alsa.tcz".
alsa is the correct extension
Which is the correct one? I downloaded "deadbeef.tcz".
If it worked then I'd stay with this choice
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: $ sudo mkdir /mnt/sda1/tce
$ sudo chown tc:staff /mnt/sda1/tce
-
- 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
-
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 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... :-[
-
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.
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)
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?
How do I choose an Italian keyboard?
Have a look at the wiki and search the forum for the answer
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"
-
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)
-
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 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.
-
OK, so are your music files on an nfs or cifs partition on your nas?
-
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.
-
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
-
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: $ 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 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
-
Baby steps...
You could try this: $ 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
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.
-
I tried to use "//192.168.0.98:/volume1/public" - error
That would be: $ sudo mount -t cifs //192.168.0.98/volume1/public /mnt/music -o user=username,pass=password..without the ":"
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: 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 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...
-
That would be: $ 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
What boot loader are you using? For example with syslinux on a usb stick you pass boot codes like this: 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 ;)
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... :)
-
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)?
-
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?
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
-
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.
-
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)?
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
-
Hi bibo01
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.
-
I use notepad++ if I absolutely have to edit a linux file in windows ;)
-
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
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.
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
-
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
mplayer somefile.mp3
or you could also play all files in same dir with
mplayer *.mp3
There are several GUI frontends, e.g. SMplayer.
-
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
-
For playing wav files you could as well use the player shipped with sound system (aplay/ossplay).
-
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?
-
Hi bibo01
... 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.
-
Hi bibo01
... 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?
-
$ sudo modprobe b43
$ sudo su
# modprobe b43
-
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?
-
...
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?
-
Yes, your syntax is correct, and yes, the file is /opt/bootlocal.sh.
-
Can you please suggest me a VNC client (like UltraVNC) in the TCL repository?
-
Hi bibo01
I can't recommend a specific package, but here is a list of available packages containing vnc in the package name:
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.tczAlso in the repo are vino and vinagre. There may be others.
-
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?
-
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:
usr/local/bin/Xvnc4
usr/local/bin/vnc4config
usr/local/bin/vnc4server
usr/local/bin/xvnc4viewerOne of these is what you are looking for.
-
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, ...?
-
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.
-
Thanks.
Can you please tell me what to write in the script? I don't know :-\ ???
-
Hi bibo01
#!/bin/sh
sleep 10
start_jack
sleep 5
jack_load netmanagerI'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:
start_jack &
-
Hi bibo01
#!/bin/sh
sleep 10
start_jack
sleep 5
jack_load netmanagerI'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:
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 :-[
-
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.
-
#!/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...
-
You need to use the full path to start_jack. The current directory when running bootlocal.sh is surely not what you are assuming.
-
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?
-
" 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
-
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)
-
Or simply download the statically compiled binary as provided by upstream.