CLI Love - What can you do with it - Examples


S

StreaK

Guest
I'll be adding here examples of creative usage of CLI Love Package:


Development apps/games [C/C++/QT] on Pandora using CLI Love:




Setting up [type in window:]:



Code:
setdev



and you're ready do start dev a games / programs on openpandora using many programmers editors like:

jed / rho / ece / nano / ne / joe / sandy



compiling prepared *.cpp / *.c file is easy:





Code:
gcc -o helloworld helloworld.c




Development apps/games [C for 8bit computers / consoles cross tool] on Pandora using CLI Love:

What kind of computers / consoles you can develop for:



Supported systems:



Commodore C64 / GEOS operating system for the Commodore C64 / Commodore C128 / Commodore C16, C116 and Plus/4 / Commodore P500 / Commodore 600/700 family of computers / Apple ][ / Atari 8bit machines / Oric Atmos / Nintendo Entertainment System (NES) / Supervision Game Console / Atari Lynx Console

Code:
setdevcc65





and you're ready do start dev a games / programs on openpandora for 8bit computers / consoles using many programmers editors like:

jed / rho / ece / nano / ne / joe / sandy



sample code:

;)

puts("Hello Atari!");

return 0;

}

Code:
#include < stdio.h >


int main(void)

{

for(;



compiling prepared *.cpp / *.c file is easy:





Code:
cl65 -t atari main.c -o hello.xex








Downloading YouTube videos / Downloading YouTube in batch / Downloading YouTube in Batch [whole channel]

Download single video

Code:
youtube-dl http://www.youtube.com/watch?v=ST86JM1RPl0



Download single file and convert it to AVI



Code:
youtube-dl-conv http://www.youtube.com/watch?v=ST86JM1RPl0



Down all files in batch



Code:
youtube-dl-all-conv /home/videos-list-to-download.txt"





Download all files in batch and convert to AVI



Code:
youtube-dl-all /home/videos-list-to-download.txt"



Download whole channel [all videos from channel]



Code:
download-youtube-channel http://www.youtube.com/user/TearsForFearsVEVO








Importing ical [google calendar] to calcurse

Import straight from Google Calendar to calcurse



Download ical straight from your ical link: howto: [
http://support.googl...en&answer=37111]





Code:
calcurse-import-ical -u https://www.google.com/calendar/ical/johndoe%40gmail.com/private/basic.ics


and then


calcurse



Import ical from file to calcurse





Code:
calcurse-import-ical -i basic.ics


and then


calcurse





more info





Code:
helpme calcurse-import-ical








If you forget about particular command , but you know that command has a name with 'youtube' inside.

How to find such an command / app?


Code:
fd-sh youtube


or [other example]

fd-sh rar


or [other example]

fd-sh zip








Monitoring Wi-Fi signal with nice advanced app



Code:
wavemon



Quick Upload a file to filehosting



:) :) [without loging in..]


Code:
upload-ompldr /home/sample.jpg


Getting a description of a particular cli love app.


Code:
helpme jed


or


helpme nano


or


helpme [app]






Play Music [MP3 / OGG / FLAC] or Modules

Play MP3 / OGG / FLAC

Code:
cmus


or


lmp3


or


mpg123


or


musikq





Play Modules



Code:
mikmod


or


modplugline








Play videos [AVI / MPG / RMVB] fullspeed


Code:
mplayerx /home/filename.rmvb








Internet Surfing
Code:
w3m www.boards.openpandora.org


or


lynx www.boards.openpandora.org


or


links www.boards.openpandora.org


or [graphics]


linksx www.boards.openpandora.org


Chatting using every known protocol like ICQ / Jabber / GadyGadu / AIM / MSN .. and more


Code:
centerim






IRC chatting..


Code:
weechat


and then

  /connect freenode

  /join #openpandora


or use


irssi






Check repo for new apps and install apps/games from repo


Code:
repo-news


and then


milky [app]




Receiving/Viewing emails [without downloading emails to SD card] / sending emails via MUTT

create and edit file: sample.mutt

Code:
set editor="nano"


### POP3 setup for incoming mail

set spoolfile = "pops://your_login@your_email_host.com"


### SMTP setup for outgoing mail

set smtp_url = "smtps://your_login@your_email_host.com"

set from = "your_login@your_email_host.com"

set realname = "John Doe"

set smtp_pass = "yourpassword"



and run:







Code:
mutt -F sample.mutt








Listening Online Radio via CMUS in CLI Love

Prepare file radio.pls with similar content:

Code:
[playlist]


File1=http://unfy.org:8080/necta64.ogg.m3u

Title1=Nectarine Online Radio [OGG / 64 / CA]

Length1=-1


File2=http://demovibes.de/necta48.aac.m3u

Title2=Nectarine Online Radio [AAC / 48 / DE]

Length2=-1


File3=http://demovibes.de/necta128.ogg.m3u

Title3=Nectarine Online Radio [OGG / 128 / DE]

Length3=-1


File4=http://anka.org:8080/fresh.ogg.m3u

Title4=Radio Kohina [Sweden]

Length4=-1


File5=http://199.16.186.38:8356

Title5=Radio KonteStacja 2

Length5=-1


File6=http://stream.nute.net:8000/kohina/fresh.ogg.m3u

Title6=radio Kohina [France]

Length6=-1


File7=http://www.di.fm/aacplus/chillout.pls

Title7=Radio Chillout [AAC/48]

Length7=-1


File8=http://www.di.fm/mp3/chillout.pls

Title8=Radio Chillout [MP3/96]

Length8=-1


File9=http://195.24.224.77:8086/bitjam.mp3.m3u

Title9=Radio BitJam

Length9=-1


NumberOfEntries=9


Version=2



then start cmus





Code:
cmus



and press '6' on keyboard and navigate to directory with your 'radio.pls' file

and press enter on it , then choose desired stream. easy










Compressing ISO/BIN files to CBIN [Compressed ISO] to use with PCSX ReArmed


Code:
cbin -9 tekken.iso


or


cbin-all *.iso

(compressing all iso files in directory)








Check whats new on the board.openpandora.org
Code:
board-news






Loading and reading and updating RSS [RSS & ATOM] feeds.


Code:
newsbeuter


or


man newsbeuter

(how to config)



and a screen:



newsbeuter-feedlist.png




btw . There are more RSS feed reades in CLI Love, like:





Code:
snownews


or


wnews



but newsbeuter is just THE BEST [better than LifeRea - and resource friendly]. I just loaded 500 feeds OPML and newsbeuter eats about 20 % cpu time, while Liferea eats 100%








Anonymous surfing / IRC chatting / Downloading files using TOR





Code:
type: torhelp

to get info step-by-step


or


type: settor


then


type:setprivoxy


then


type:setproxy


and finally

type [for example]: lynx-tor

or

type [for example]: irssi








Mount FTP as a local file system easily [easily browsable using all apps from cli love]


Code:
sudo curlftp -o allow_other ftp://user:pass@ftp.example.com [mountpoint]


[mountpoint] -> can be any directory like:  /[SDCARD]/SomeDir or /media/somedir








View Your s Google Calendar agenda


Code:
gcalcli -u johndoe -p johndoe agenda
 
Last edited:

peelie

Member
Joined
Apr 6, 2007
Messages
887
is this with last CLI love available? i tried and for setdev saying command not found, i assume it is for the version you are going to release with freamon c/c++ dev tools?


cheers
 

peelie

Member
Joined
Apr 6, 2007
Messages
887
hi


using setdev


can't seem to compile the hellow.c in _mysrc folder, gives me this error:


--


/usr/bin/ld:cannot open output file hellow: operation not permitted


collect2: ld returned 1 exit status


---


i tried to use both make and gcc
 
Last edited by a moderator:
S

StreaK

Guest
try to copy hellow.c to HOME dir [/mnt/utmp/cli-love-app] and then compile it.
 

dreamer

Active Member
Joined
May 29, 2007
Messages
569
This topic would be way more effective as a wiki-page.


(*hint*hint*)
 

TrashyMG

Sarcasm Dispenser
Staff member
Joined
Jan 18, 2010
Messages
11,137
Well can't seem to format it correctly.. but is Cowsay on the CLI love? It is an epic application..


Sorry My Pandora is currently with Mr. EvilDragon.
 
Last edited by a moderator:

ZXDunny

Deep avatar
Joined
Oct 12, 2010
Messages
2,584
Development apps/games [C for 8bit computers / consoles cross tool] on Pandora using CLI Love:



What kind of computers / consoles you can develop for:


Supported systems:


Commodore C64 / GEOS operating system for the Commodore C64 / Commodore C128 / Commodore C16, C116 and Plus/4 / Commodore P500 / Commodore 600/700 family of computers / Apple ][ / Atari 8bit machines / Oric Atmos / Nintendo Entertainment System (NES) / Supervision Game Console / Atari Lynx Console



Code:
setdevcc65





and you're ready do start dev a games / programs on openpandora for 8bit computers / consoles using many programmers editors like:

jed / rho / ece / nano / ne / joe / sandy



sample code:



Code:
#include < stdio.h >


int main(void)

{

for(;

puts("Hello Atari!");

return 0;

}




compiling prepared *.cpp / *.c file is easy:



[/CODE]
Code:
cl65 -t atari main.c -o hello.xex

[/QUOTE]

No Sinclair Spectrum? No BBC Micro? This is all very well for the minority that used commodore/atari 8bits - what about the rest of us?


D.
 
S

StreaK

Guest
No Sinclair Spectrum? No BBC Micro? This is all very well for the minority that used commodore/atari 8bits - what about the rest of us?


D.

Nope, sorry. CC65 is not supporting ZX or BBC Micro.
 

Cloudef

Member
Joined
Dec 30, 2009
Messages
460
Location
Gensokyo
StreaK, does this still contain milkyhelper with the "path modification"? Or properly included share folder inside PND and XDG_DATA_DIRS environment variable set accordingly?


It might cause some problems otherwise.
 
S

StreaK

Guest
+ Added [in first post]:


Receiving/Viewing emails [without downloading emails to SD card] / sending emails via MUTT
 
Last edited:

ZXDunny

Deep avatar
Joined
Oct 12, 2010
Messages
2,584
No Sinclair Spectrum? No BBC Micro? This is all very well for the minority that used commodore/atari 8bits - what about the rest of us?


D.

Minority that used commodore 8bits? You mean like the Commodore 64? The best-selling single personal computer model of all time?


http://en.wikipedia....ki/Commodore_64

You mean best-selling in the USA? Certainly not in europe or the soviet union of the time.


D.
 

moxie

The voice of reason, sense and exasperation
Staff member
Joined
Aug 15, 2006
Messages
2,707
Age
49
Location
South of Sweden
Best-selling in the world, ever, if I remember correctly. That doesn't mean that it wasn't a minority - If a field has four contenders with 18% of the market and one with 28%, that still means that each single contender represents a minority.


It won, eventually, even in Europe, mainly by continuing to sell long past the rest of the field - It kept being manufactured right up until the fall of commodore itself in -94.


But, well, if you want a crosscompiler for z80-based micros, I guess you should go with something like http://www.z88dk.org/wiki/doku.php. That'll do for Sinclair and MSX machines, at least. A hint for StreaK? :)
 

ZXDunny

Deep avatar
Joined
Oct 12, 2010
Messages
2,584
Best-selling in the world, ever, if I remember correctly. That doesn't mean that it wasn't a minority - If a field has four contenders with 18% of the market and one with 28%, that still means that each single contender represents a minority.


It won, eventually, even in Europe, mainly by continuing to sell long past the rest of the field - It kept being manufactured right up until the fall of commodore itself in -94.


But, well, if you want a crosscompiler for z80-based micros, I guess you should go with something like http://www.z88dk.org/wiki/doku.php. That'll do for Sinclair and MSX machines, at least. A hint for StreaK? :)

That would be an excellent addition :)


And yes, worldwide it was certainly a success - but given the sheer volume of russian Spectrums alone, the z80 pretty much ruled the 8bit world :)


D.
 
S

StreaK

Guest
Best-selling in the world, ever, if I remember correctly. That doesn't mean that it wasn't a minority - If a field has four contenders with 18% of the market and one with 28%, that still means that each single contender represents a minority.


It won, eventually, even in Europe, mainly by continuing to sell long past the rest of the field - It kept being manufactured right up until the fall of commodore itself in -94.


But, well, if you want a crosscompiler for z80-based micros, I guess you should go with something like http://www.z88dk.org/wiki/doku.php. That'll do for Sinclair and MSX machines, at least. A hint for StreaK? :)

That would be an excellent addition :)

Im on a "vacation" from porting stuff for OP, but if you have a time , You could port it up and i'll add it into CLI Love package when ready. OK?
 
S

StreaK

Guest
+Added [in first post]


Listening Online Radio via CMUS in CLI Love
 
S

StreaK

Guest
+Added:


Compressing ISO/BIN files to CBIN [Compressed ISO] to use with PCSX ReArmed
 
Top