![]() You can leave a response, or trackback from your own site. You can follow any responses to this entry through the RSS 2.0 feed. ![]() This entry was posted on Monday, August 3rd, 2009 at 12:10 pm and is filed under code. Tags: bash, http authentication, mpg123, mplayer, password, security, stty Note: I’ve noticed that a lot of programs use this format ( -user username -passwd password) so I don’t think it would be much of a stretch to convert this code into a generalized authorization wrapper. Here’s a quick bash script solution I saved in a file called authmplayer.sh:Īdapt and add your favorite mplayer options as necessary. Mplayer of these display my password in plain text in my terminal. Mplayer -user username -passwd password or On the command line in a terminal this looks like: But if the file I’m streaming is in a secure folder that uses http authentication, then I have to include my username and password in my execution. And a useful config file.I love to use mplayer and occasionally mpg123 to stream audio and video from my web server or else where online. What is Linux? An in-depth description.Install mplayer command line (via Brew, Macports, or APT) 2. Some miscellaneous commands that you might find useful. GitHub Gist: instantly share code, notes, and snippets. Sample commands and tips for using Linux like a pro. Going this route means you bypass all of the fancy UI elements in favor of simplicity. Useful links and information for budding Gentoo Linux users. On Linux, a great way to play video files with the terminal.Many useful Linux and BSD E-Books available. ![]() Useful information for setting up your free desktop OS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |