Tiny Core Linux
		Tiny Core Extensions => TCE Q&A Forum => Topic started by: Neo on October 05, 2010, 07:53:50 PM
		
			
			- 
				Hi All,
I have TC 3.1 and have an odd issue with VLC.
I like to listen to sky.fm the best of the 80s.
Now in all of the other distro's that I have on my machine (8 or so), with VLC I simply go to Streaming > Network and enter "http://www.sky.fm/mps/the80s.pls" and it works.
Now when I do this in TC, not only does VLC not play music, it freezes and I have to use XKill to close it.
Any suggestions here?
As always I greatly appreciate whatever help you may provide.
I also should add that I tried TC 2.5 but it didn't work for me, however TC 3.1 is much, much better.
			 
			
			- 
				url appears to return 404. Check it?
			
 
			
			- 
				in a terminal run
vlc -vvv
then media->open network stream-> enter url->play
failed to open url error, below is the debugging output
no freezing for me
[0x909a4ec] main playlist debug: adding item `http://www.sky.fm/mps/the80s.pls' ( http://www.sky.fm/mps/the80s.pls )
[0x8f66ebc] qt4 interface debug: Adding a new MRL to recent ones: http://www.sky.fm/mps/the80s.pls
[0x909a4ec] main playlist debug: rebuilding array of current - root Playlist
[0x909a4ec] main playlist debug: rebuild done - 1 items, index -1
[0x909a4ec] main playlist debug: processing request item http://www.sky.fm/mps/the80s.pls node null skip 0
[0x909a4ec] main playlist debug: resyncing on http://www.sky.fm/mps/the80s.pls
[0x909a4ec] main playlist debug: http://www.sky.fm/mps/the80s.pls is at 0
[0x909a4ec] main playlist debug: starting new item
[0x909a4ec] main playlist debug: creating new input thread
[0x91289a4] main input debug: Creating an input for 'http://www.sky.fm/mps/the80s.pls'
[0x91289a4] main input debug: thread (input) created at priority 10 (input/input.c:214)
[0x8f66ebc] qt4 interface debug: IM: Setting an input
[0x91289a4] main input debug: thread started
[0x91289a4] main input debug: using timeshift granularity of 50 MiB
[0x91289a4] main input debug: using timeshift path '/tmp'
[0x91289a4] main input debug: `http://www.sky.fm/mps/the80s.pls' gives access `http' demux `' path `www.sky.fm/mps/the80s.pls'
[0x91289a4] main input debug: creating demux: access='http' demux='' path='www.sky.fm/mps/the80s.pls'
[0x90e24bc] main demux debug: looking for access_demux module: 0 candidates
[0x90e24bc] main demux debug: no access_demux module matched "http"
[0x90e24bc] main demux debug: TIMER module_need() : 0.303 ms - Total 0.303 ms / 1 intvls (Avg 0.303 ms)
[0x91289a4] main input debug: creating access 'http' path='www.sky.fm/mps/the80s.pls'
[0x90e24bc] main access debug: looking for access module: 2 candidates
Blocked: call to setenv("_PX_CONFIG_ORDER", "", 1)
[0x90e24bc] access_http access debug: asking libproxy about url 'http://www.sky.fm/mps/the80s.pls'
[0x90e24bc] access_http access debug: libproxy suggest to use 'direct://'
[0x90e24bc] access_http access debug: http: server='www.sky.fm' port=80 file='/mps/the80s.pls'
[0x90e24bc] main access debug: net: connecting to www.sky.fm port 80
[0x90e24bc] main access debug: connection succeeded (socket = 10)
[0x90e24bc] access_http access debug: protocol 'HTTP' answer code 404
[0x90e24bc] access_http access error: error: HTTP/1.1 404 Not Found
[0x90e24bc] access_http access debug: switching to HTTP version 1.0
[0x90e24bc] main access debug: net: connecting to www.sky.fm port 80
[0x90e24bc] main access debug: connection succeeded (socket = 10)
[0x90e24bc] access_http access debug: protocol 'HTTP' answer code 404
[0x90e24bc] access_http access error: error: HTTP/1.1 404 Not Found
[0x90e24bc] main access debug: net: connecting to www.sky.fm port 80
[0x90e24bc] main access debug: connection succeeded (socket = 10)
[0x90e24bc] access_mms access error: error: HTTP/1.1 404 Not Found
[0x90e24bc] main access debug: no access module matching "http" could be loaded
[0x90e24bc] main access debug: TIMER module_need() : 1562.405 ms - Total 1562.405 ms / 1 intvls (Avg 1562.405 ms)
[0x90e24bc] main access debug: waitpipe: object killed
[0x91289a4] main input error: open of `http://www.sky.fm/mps/the80s.pls' failed: (null)
[0x91289a4] main input debug: thread ended
[0x909a4ec] main playlist debug: dead input
[0x909a4ec] main playlist debug: changing item without a request (current 0/1)
[0x909a4ec] main playlist debug: nothing to play
[0x8f66ebc] qt4 interface debug: IM: Deleting the input
[0x91289a4] main input debug: TIMER input launching for 'http://www.sky.fm/mps/the80s.pls' : 1589.838 ms - Total 1589.838 ms / 1 intvls (Avg 1589.838 ms)
			 
			
			- 
				
url appears to return 404. Check it?
Sorry it should be:
"http://www.sky.fm/mp3/the80s.pls" 
Now I am experiencing a problem with Alsa.
It seems every time I reboot the settings are lost and I have to reconfigure if I want any sound at all.
			 
			
			- 
				Did you follow instructions in .info of alsa?
			
 
			
			- 
				to store changes and for changes to be persistent do following
sudo alsactl store
echo "etc/asound.state" >> /opt/.filetool.lst
echo "sudo alsactl restore" >> /opt/bootlocal.sh
			 
			
			- 
				no sudo for command in bootlocal.sh since it is executed by root
			
 
			
			- 
				hi
ignoring your vlc issue.....are you able to play any sound once you have sorted out your alsa configs thru the browser?
I use the Adobe plugin .....closed source.....plugin is saved to /usr/local/lib/mozilla/plugins and the standard TC firefox
Hopefully after looking at the domain you can navigate to the 80 by clicking on listen now and get this image?
			 
			
			- 
				2 different KISS (Keep It, Simple Stupid) approaches:
wget http://www.sky.fm/mp3/the80s.pls && mplayer -playlist the80s.plsFor the first time playing a playlist, from then on:
mplayer -v -playlist the80s.plsActs also sort of like a bookmark, having the playlist locally available.
or
mplayer -v -playlist http://www.sky.fm/mp3/the80s.pls
Works like a charm with Mplayer-nodeps.   ;D
(I'd guess could work in a similar way with other players, e.g. vlc)
			 
			
			- 
				hi
yep good stuff try mplayer
if it fails can you advise what codec packages you have installed pls?
I am thinking if you play mp3 quality you are likely to need the lame package
http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz/lame.tcz.info
			 
			
			- 
				
if it fails can you advise what codec packages you have installed pls?
I am thinking if you play mp3 quality you are likely to need the lame package
http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz/lame.tcz.info
Tried booting with 'base' and only installing wireless tools, wireless driver, alsa and Mplayer-nodeps, works fine.   ;)
			 
			
			- 
				hi
and in similar test of TC with alsa and vlc.....clicking in vlc at Tools then plugins
search term http
initially nothing shows up for me, YMMV if go back into plugins only 2 plugin show up.
On my other distro ...Debian sid...there are 3.....so maybe you will have to stay with mplayer
YMMV
			 
			
			- 
				
to store changes and for changes to be persistent do following
sudo alsactl store
echo "/etc/asound.state" >> /opt/.filetool.lst
echo "sudo alsactl restore" >> /opt/bootlocal.sh
I opened a terminal and typed in your code verbatim.
Now I can't reboot my computer.
TC gives me an error in /tmp/backup_status
Now what?
How do I fix this???
			 
			
			- 
				
2 different KISS (Keep It, Simple Stupid) approaches:
wget http://www.sky.fm/mp3/the80s.pls && mplayer -playlist the80s.plsFor the first time playing a playlist, from then on:
mplayer -v -playlist the80s.plsActs also sort of like a bookmark, having the playlist locally available.
or
mplayer -v -playlist http://www.sky.fm/mp3/the80s.pls
Works like a charm with Mplayer-nodeps.   ;D
(I'd guess could work in a similar way with other players, e.g. vlc)
Oh I can listen to it through the browser, but I really want to use VLC instead.
			 
			
			- 
				
to store changes and for changes to be persistent do following
sudo alsactl store
echo "/etc/asound.state" >> /opt/.filetool.lst
echo "sudo alsactl restore" >> /opt/bootlocal.sh
I opened a terminal and typed in your code verbatim.
Now I can't reboot my computer.
TC gives me an error in /tmp/backup_status
Now what?
How do I fix this???
corrected line
echo "etc/asound.state" >> /opt/.filetool.lst
			 
			
			- 
				
to store changes and for changes to be persistent do following
sudo alsactl store
echo "/etc/asound.state" >> /opt/.filetool.lst
echo "sudo alsactl restore" >> /opt/bootlocal.sh
I opened a terminal and typed in your code verbatim.
Now I can't reboot my computer.
TC gives me an error in /tmp/backup_status
Now what?
How do I fix this???
corrected line
echo "etc/asound.state" >> /opt/.filetool.lst
Hi Arslan,
I don't see a difference between your corrected line and the one above.
The same problem persists.
Any ideas?
			 
			
			- 
				
echo "/usr/local/etc/init.d/alsasound start &" >> /opt/bootlocal.sh
			 
			
			- 
				
Oh I can listen to it through the browser, but I really want to use VLC instead.
You just gotta find the equivalent syntax for VLC then.
If you listen "through the browser" that would probably mean your browser just passes a command to a player.
			 
			
			- 
				
Oh I can listen to it through the browser, but I really want to use VLC instead.
You just gotta find the equivalent syntax for VLC then.
If you listen "through the browser" that would probably mean your browser just passes a command to a player.
Hi Tinypoodle,
I am using the same url that works in my other Linus OS's, it just that when I use it in TC, VLC freezes without playing any music.
			 
			
			- 
				
echo "/usr/local/etc/init.d/alsasound start &" >> /opt/bootlocal.sh
Sorry to have to ask, but my Linux command line skills are not as great as yours.
Does this new line of code replace a line from above or do I use it in addition to them?
 
			 
			
			- 
				
Oh I can listen to it through the browser, but I really want to use VLC instead.
You just gotta find the equivalent syntax for VLC then.
If you listen "through the browser" that would probably mean your browser just passes a command to a player.
Hi Tinypoodle,
I am using the same url that works in my other Linus OS's, it just that when I use it in TC, VLC freezes without playing any music.
What I had in mind was using vlc from command line (possibly avoiding GUI bugginess)
			 
			
			- 
				
echo "/usr/local/etc/init.d/alsasound start &" >> /opt/bootlocal.sh
Sorry to have to ask, but my Linux command line skills are not as great as yours.
Does this new line of code replace a line from above or do I use it in addition to them?
 
Adds a line, and you obviously haven't read the .info of alsa.tcz, neither did you ever respond to post #4
Did you follow instructions in .info of alsa?
			 
			
			- 
				
echo "/usr/local/etc/init.d/alsasound start &" >> /opt/bootlocal.sh
Sorry to have to ask, but my Linux command line skills are not as great as yours.
Does this new line of code replace a line from above or do I use it in addition to them?
 
Adds a line, and you obviously haven't read the .info of alsa.tcz, neither did you ever respond to post #4
Did you follow instructions in .info of alsa?
You're half right - I didn't repsond to that earlier post.
However I did read the file and attempted to follow those instructions.
Like I said my skills are not that great, and I find it a little more challenging in TC than say Mepis.
That's in part due to my familarity with Mepis and the tools available to me (I can't even cut & paste code from the web into the terminal in TC).
That's not a critisim of TC, just my own experience.
Because of this I sometimes get caught by some things which by all rights should be pretty simple and straight forward (and would be if I were to do the same/similar action in Mepis).
That is why I sometimes ask some stupid questions, but I always truly appreciate any and all help that I receive on this forum.
			 
			
			- 
				hi
if you are copying from web browser to aterm.....
paste using ....double click of left and right buttons
or I find it easer to install lxterminal.....and use the pull down menus
and there is a wiki for alsa as well.
			 
			
			- 
				Thanks Aus9, I really, really appreciate your help.
lxterminal is much better.
Now here is an update.
I cut and pasted all four lines of code and still get an error whenever I try to shut down or reboot.
The error message says "Errors occurred during backup!   See: /tmp/backup_status."
On the bright side the sound now works whenever I boot up TC.
VLC no longer freezes.  It now gives me an error message saying it can't open the MRL (yup that's not a typo, MRL not URL).
So can anyone please help me to fix TC so that I can properly shut down or reboot?
Any idea why VLC is giving me that error?
			 
			
			- 
				Edit /opt/.filetool.lst and remove the leading '/' from the line as discussed above.
/etc/asound.state
should be
etc/asound.state
			 
			
			- 
				tinypoodle has already suggested you will find mplayer will work ...out of the box....and so what you are asking is some expert on vlc to maybe find your error.
I am not an expert so not sure if you knew that...heh heh...but I can tell you the TC edition is slightly different as I see different number of plugins
if you have time...try building vlc from debian sources that I know will work, you will need the dpkg -deb package to "install" the debian unstable edition of vlc 
OR compile from the sources showing in my download folder link as the version number is higher?
http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz/vlc.tcz.info versus
http://mirror.internode.on.net/pub/debian/pool/main/v/vlc/vlc_1.1.4-1.debian.tar.gz
it would mean...amongst other things doing md5sums and or using the strings command from binutils package
For me, I am not interested in spending that much time.
If you are keen here is the download folder but I assume you need 32 bit debs so that are below
http://mirror.internode.on.net/pub/debian/pool/main/v/vlc/
you will need, if that interested, the following for a  vlc 
http://mirror.internode.on.net/pub/debian/pool/main/v/vlc/libvlc5_1.1.4-1_i386.deb
http://mirror.internode.on.net/pub/debian/pool/main/v/vlc/libvlccore4_1.1.4-1_i386.deb
http://mirror.internode.on.net/pub/debian/pool/main/v/vlc/mozilla-plugin-vlc_1.1.4-1_i386.deb
http://mirror.internode.on.net/pub/debian/pool/main/v/vlc/vlc-data_1.1.4-1_all.deb
http://mirror.internode.on.net/pub/debian/pool/main/v/vlc/vlc_1.1.4-1_i386.deb
2) You can then use the dpkg to unpack the debs and create the structure, the Debian way.....it can not be uploaded to the repository as there is already maintainer of vlc for TC.
You can use the wikis to create your personal tcz of that unpacked structure.
3) or use the other link above to compile as per the wiki and then you can still create your own tcz....but the tcz will conform with the TC /usr/local/bin structure........you still can't upload it but use it personally.
I gather lots of people have their own tczs but I don't have any.
good luck as I have not investigated which dependencies you might need.....if you get errors you will probably see what package you need?
			 
			
			- 
				
Edit /opt/.filetool.lst and remove the leading '/' from the line as discussed above.
/etc/asound.state
should be
etc/asound.state
Thank you very much Gerald.
I tried this but no luck:
tc@box:~$ Edit /opt/.filetool.lst
/bin/sh: Edit: not found
tc@box:~$ 
I tried many things:
/opt/.filetool.lst
opt/.filetool.lst
su /opt/.filetool.lst
but no joy.
I then tried su all by itself and it asked me for a password, despite the fact that I have never set up a root account or user account in TC.
I thought I read somewhere that the su password was * but that didn't work either.
Could you please provide me with a little more detail - I would certainly appreciate it.
This is getting a little frustrating for me as I am used to being able to do so much more in Linux.
			 
			
			- 
				
tinypoodle has already suggested you will find mplayer will work ...out of the box....and so what you are asking is some expert on vlc to maybe find your error.
I am not an expert so not sure if you knew that...heh heh...but I can tell you the TC edition is slightly different as I see different number of plugins
if you have time...try building vlc from debian sources that I know will work, you will need the dpkg -deb package to "install" the debian unstable edition of vlc 
OR compile from the sources showing in my download folder link as the version number is higher?
http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz/vlc.tcz.info versus
http://mirror.internode.on.net/pub/debian/pool/main/v/vlc/vlc_1.1.4-1.debian.tar.gz
it would mean...amongst other things doing md5sums and or using the strings command from binutils package
For me, I am not interested in spending that much time.
If you are keen here is the download folder but I assume you need 32 bit debs so that are below
http://mirror.internode.on.net/pub/debian/pool/main/v/vlc/
you will need, if that interested, the following for a  vlc 
http://mirror.internode.on.net/pub/debian/pool/main/v/vlc/libvlc5_1.1.4-1_i386.deb
http://mirror.internode.on.net/pub/debian/pool/main/v/vlc/libvlccore4_1.1.4-1_i386.deb
http://mirror.internode.on.net/pub/debian/pool/main/v/vlc/mozilla-plugin-vlc_1.1.4-1_i386.deb
http://mirror.internode.on.net/pub/debian/pool/main/v/vlc/vlc-data_1.1.4-1_all.deb
http://mirror.internode.on.net/pub/debian/pool/main/v/vlc/vlc_1.1.4-1_i386.deb
2) You can then use the dpkg to unpack the debs and create the structure, the Debian way.....it can not be uploaded to the repository as there is already maintainer of vlc for TC.
You can use the wikis to create your personal tcz of that unpacked structure.
3) or use the other link above to compile as per the wiki and then you can still create your own tcz....but the tcz will conform with the TC /usr/local/bin structure........you still can't upload it but use it personally.
I gather lots of people have their own tczs but I don't have any.
good luck as I have not investigated which dependencies you might need.....if you get errors you will probably see what package you need?
And I just got lxterminal working... LOL  ::) 
			 
			
			- 
				
paste using ....double click of left and right buttons
Umm no. It's single middle click. Only when middle click button is missing it can be emulated to be substituted by clicking left and right button at once, not double click.
And by the way, I do not have the slightest idea what kind of distro mepis is, but copying and pasting to a terminal has worked in the same way in every Linux distro i have ever tried, even when using gpm on a VT very similar; so I really wonder if the claim of copying and pasting being distro dependent could be uphold.
			 
			
			- 
				
I tried this but no luck:
tc@box:~$ Edit /opt/.filetool.lst
/bin/sh: Edit: not found
tc@box:~$ 
edit = edit with any editor
			 
			
			- 
				By 'Edit' I mean 'use an editor to modify'.
The default editor is vi.
If you have trouble using vi, I suggest you install 'mc' ( Midnight Commander ) and use its editor.
			 
			
			- 
				
paste using ....double click of left and right buttons
Umm no. It's single middle click. Only when middle click button is missing it can be emulated to be substituted by clicking left and right button at once, not double click.
And by the way, I do not have the slightest idea what kind of distro mepis is, but copying and pasting to a terminal has worked in the same way in every Linux di stro i have ever tried, even when using gpm on a VT very similar; so I really wonder if the claim of copying and pasting being distro dependent could be uphold.
Wonder no more Tinypoodle.
I can tell you for a fact that whatever terminal comes standard with TC 3.1 does not let you cut and paste anything into it.  Not with the mouse, no matter which buttons you click or how many times you click them, nor with the keyboard, CTRL- V & CTRL-P.
I am currently booting eight distro's and have been using Linux exclusively for several years.
I've run literally dozens of distros over the years, currently:  Mepis (Debian based), PCLinuxOS (Mandriva based), Vector (Slackware based), Fedora (Red Hat based), openSUSE (Novell based), Sabayon (Gentoo based), Tiny Core and I even keep a version of XP for those rare occasions when I simply must use Windows.
So you see TC is but one of the many Linux distros that I use and tinker with.
As a matter of fact this is the only time I have not been able to cut and paste into a terminal.
Having now installed lxterminal I can cut and paste all I want.
			 
			
			- 
				
By 'Edit' I mean 'use an editor to modify'.
The default editor is vi.
If you have trouble using vi, I suggest you install 'mc' ( Midnight Commander ) and use its editor.
Thank you Gerald, I thought as much at first, but since I could find one in TC (not preloaded anyway) I thought it may have been a command built into the terminal.
I'll give MC a try.
So what is the SU password anyway?
			 
			
			- 
				
By 'Edit' I mean 'use an editor to modify'.
The default editor is vi.
If you have trouble using vi, I suggest you install 'mc' ( Midnight Commander ) and use its editor.
Thank you Gerald, I thought as much at first, but since I could find one in TC (not preloaded anyway) I thought it may have been a command built into the terminal.
I'll give MC a try.
So what is the SU password anyway?
Now I'm in a Catch-22 situation.
I need MC to modify the file so that I can reboot/shut down with a backup.
However even after installing MC and adding it to On Boot, it still does not appear and I need to reboot with Backup in order for it to appear.
But I can't shut down or reboot with Backup.
Catch-22.
At this point I am thinking it would be a whole lot easier to just wipe TC from my hard drive and reinstall it.
			 
			
			- 
				Shutdown without a backup. You can edit .filetool.lst after you reboot.
			
 
			
			- 
				
Shutdown without a backup. You can edit .filetool.lst after you reboot.
I just wiped and reinstalled TC.
Instead of Alsa I used OSS and it seems to work fine and without issue.
I also installed Mplayer and MC, put on the On Boot list, however even after rebooting twice they do not appear.
How do I make them appear?
VLC simply tells me it cannot open the MRL.
FF no longer crashes on full screen video, instead it give me an error message saying Flash has crashed.
			 
			
			- 
				Okay I now have Mplayer working and it does work just fine.
MC still does not appear though.
			 
			
			- 
				Try mc from a terminal.  You may have to load ncurses.
			
 
			
			- 
				
Try mc from a terminal.  You may have to load ncurses.
If you mean midnight-commander it doesn't depend on ncurses.
			 
			
			- 
				
I just wiped and reinstalled TC.
Does pasting into aterm now work as expected or not?
			 
			
			- 
				
I just wiped and reinstalled TC.
Does pasting into aterm now work as expected or not?
It still won't let you cut and paste, however now that lxterminal is installed it's a moot point.
			 
			
			- 
				Actually does anyone know how to remove Aterminal from the panel (On Demand bar)?
I have LXTerminal on the panel and don't see a need for Aterminal on there.
			 
			
			- 
				
Try mc from a terminal.  You may have to load ncurses.
I tried that and it's not very usable.  A lot of junk appears on the screen and it wasn't possible to navigate to all of the files.
Is there some way to get MC to launch without using the terminal?
Or is there some other file manager program that you could recommend?
I didn't see Dolphin on the list of programs.
			 
			
			- 
				Don't run mc under lxterminal.
It runs just fine under aterm.
			 
			
			- 
				
I just wiped and reinstalled TC.
Does pasting into aterm now work as expected or not?
It still won't let you cut and paste, however now that lxterminal is installed it's a moot point.
I do not think it's a moot point at all, as this concerns a most basic operation of TC base.
However, it is totally off the topic off this thread.
I'd suggest a forum admin could move post #32 to a new thread in TCB Bugs forum, and then we could take it up from there.
			 
			
			- 
				
Try mc from a terminal.  You may have to load ncurses.
I tried that and it's not very usable.  A lot of junk appears on the screen and it wasn't possible to navigate to all of the files.
Is there some way to get MC to launch without using the terminal?
Yes, from a Virtual Terminal (console).
Or is there some other file manager program that you could recommend?
My personal preference would be rox-filer, though that has quite some dependencies (gtk2 et al).
emelfm would be more simple.
			 
			
			- 
				
Try mc from a terminal.  You may have to load ncurses.
I tried that and it's not very usable.  A lot of junk appears on the screen and it wasn't possible to navigate to all of the files.
Is there some way to get MC to launch without using the terminal?
Yes, from a Virtual Terminal (console).
Or is there some other file manager program that you could recommend?
My personal preference would be rox-filer, though that has quite some dependencies (gtk2 et al).
emelfm would be more simple.
Thanks for the recommendations Tinypoodle, I tried emelfm2 and like it.
I have now also installed Abiword so I can edit some files when the need arises.
			 
			
			- 
				gerald_clark 
+1
I think lxterminal has set a different font set to aterm which is why we see junk