Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 01 Aug 2015, 22:23
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
pmirc - CLI irc client
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [20 Posts]   Goto page: 1, 2 Next
Author Message
goingnuts

Joined: 07 Dec 2008
Posts: 811

PostPosted: Sun 31 Jul 2011, 15:03    Post subject:  pmirc - CLI irc client  

I wanted to make an irc client with some initial user choices (server, nickname), some formating of output and working with busybox applets only...still some fine tuning of the formating could be done...
Creates a log in /root/.pmlirc directory
# main irc function from:
# http://lists.canonical.org/pipermail/kragen-hacks/2008-February/000480.html
# other bits from:
# http://www.murga-linux.com/puppy/viewtopic.php?p=486385#486385
# https://github.com/pabloPXL/irc.sh
# https://github.com/halhen/shic
# works with telnet and nc (netcat) - change 1 line down in script

Use the normal irc commands after start ex.: "/join #puppylinux", "/quit"
pmirc310711.tar.gz
Description  pmirc is a CLI irc client
gz

 Download 
Filename  pmirc310711.tar.gz 
Filesize  2.35 KB 
Downloaded  263 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 8012
Location: qld

PostPosted: Mon 01 Aug 2011, 00:52    Post subject:  

What a little gem!

Here's part of my log just to confirm it works.
Quote:
:pupngo_user_915 MODE pupngo_user_915 :+i

:pupngo_user_915!~pmirc@115-64-206-145.tpgi.com.au JOIN :#puppylinux

:adams.freenode.net 332 pupngo_user_915 #puppylinux :Puppy Linux support chat | Latest official Puppy: Lucid 5.2.5 http://alturl.com/idc4q | Wary 5.1.2 http://alturl.com/hewq8 | PLEASE ask your question and wait PATIENTLY for a response. | Or search for an answer at http://tinyurl.com/34f4lq

:adams.freenode.net 333 pupngo_user_915 #puppylinux J_Rey!~J_Rey@JRey-1-pt.tunnel.tserv13.ash1.ipv6.he.net 1306341663

:adams.freenode.net 353 pupngo_user_915 = #puppylinux :pupngo_user_915 FrogLeader puppeee-user jayne J_Rey genera kidkat dejan555 Mirpupdesktop RoxFox64 azstew robsbots_lappy PupUser94bb33 P4R4N01D Tapionp autr sickgut sta19 mama21mama chum_bucket Rupp Roin gnz11 JStoker dTal waabimiigwan ikonia tomaw Salamander ron_o Fudge Mitzi helen kloeri @ChanServ tty234 dropdrive PuppyLinux Mir FreeBSOD Drakevr

:adams.freenode.net 366 pupngo_user_915 #puppylinux :End of /NAMES list.

:ChanServ!ChanServ@services. NOTICE pupngo_user_915 :[#puppylinux] Welcome to #puppylinux. Read our rules & info about this chat at: http://puppylinux.org/wikka/IRC | Main Sites: puppylinux.com & puppylinux.org | Forum @ http://bit.ly/PupForum

:FrogLeader!~FrogLeade@c-98-232-200-70.hsd1.or.comcast.net PRIVMSG #puppylinux :Fan Problems on Acer 7720. Anyone want to take a shot?

:Tukeke!~Tukeke@unaffiliated/tukeke JOIN :#puppylinux

:chum_bucket!~Administr@host81-141-39-118.wlms-broadband.com PRIVMSG #puppylinux :its working

:FrogLeader!~FrogLeade@c-98-232-200-70.hsd1.or.comcast.net PRIVMSG #puppylinux :Any Dev's online here today?

:pupngo_user_915!~pmirc@115-64-206-145.tpgi.com.au QUIT :Client Quit

ERROR :Closing Link: 115-64-206-145.tpgi.com.au (Client Quit)

Connection closed by foreign host


My status aren't recorded it seems.

Note I used the telnet method and got the error at the bottom of the log, not quiting cleanly?
nc method seems the same. Let me know if you want the full logs.

One other little bug, I get mkdir error, directory exists at start (referring to the ~/.pmirc) ... seems "-d" instead of "-p" is needed? [line 159]

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2395
Location: UK

PostPosted: Mon 01 Aug 2011, 09:01    Post subject:  

I dont use IRC very much at all, but I tested this anyway...
Another little gem from goinguts, as Micko says! Smile

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 811

PostPosted: Mon 01 Aug 2011, 13:32    Post subject:  

01micko & sc0ttman: Thanks for testing!
01micko: Setting your status just type: "/away im busy" and to remove again type "/away" - if thats what you mean. If it is status in the log I haven't looked at that...
The ERROR at quiting I do not know how to remove...thought that its was a normal message from server when quiting. Anyone knows about this?

Other commands works the same way: try "/admin" or "/PRIVMSG nick message" to send a private "message" to user "nick".
A good reference for commands to try (not all recognized by all servers).
Back to top
View user's profile Send private message Visit poster's website 
banger0250


Joined: 12 Aug 2010
Posts: 44
Location: Rothwell,Brisbane,Qld,AU

PostPosted: Tue 30 Aug 2011, 20:02    Post subject:  

Yes i get the client has quit msg on abjects server with x-chat
_________________
Taking pup for a walk
Back to top
View user's profile Send private message MSN Messenger 
johnywhy


Joined: 20 Aug 2011
Posts: 682

PostPosted: Wed 06 May 2015, 15:56    Post subject:  

hi,

anybody know if pmirc supports SASL? When i try to connect to freenode, i get "identify via SASL" error.

when i try to connect to irc.ircnet.com, i get "telnet: bad address 'irc.ircnet.com'"

(on xSlacko)

thx!

_________________
Now: PupTarhNOP
Tops: Vlina-R2 LxPrecise Racy xSlacko
Used: Puppeee Precise Lucid Wary Tahrpup Quirky Slacko MacPup Saluki Puppy Studio LxPupTarh Lina-Lite Lina
Watching: Quirky-April Zagreb RapidPup
i ♥ Puppy
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 811

PostPosted: Thu 07 May 2015, 00:02    Post subject:  

Just tested that it still works in P412(freenode)...
irc.ircnet.com doesent work.

Have you tried the nc-way? (remove comment line 193 and comment out line 194).
I have attached a version of netcat (=nc) that works here. Download, rename to netcat, place it /bin and change "nc" to "netcat" in line 193.
netcat.gz
Description  fake .gz extention
gz

 Download 
Filename  netcat.gz 
Filesize  65.72 KB 
Downloaded  31 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
tlchost

Joined: 05 Aug 2007
Posts: 1818
Location: Baltimore, Maryland USA

PostPosted: Thu 07 May 2015, 07:06    Post subject:  

Nice script....would you consider adding

If one selects use a specific nick, have option to enter password ?

thanks
Back to top
View user's profile Send private message Visit poster's website 
goingnuts

Joined: 07 Dec 2008
Posts: 811

PostPosted: Thu 07 May 2015, 10:50    Post subject:  

tlchost: Attached version might work - please test and give feedback.
pmirc20150507.tar.gz
Description  updated with password and bugfix
gz

 Download 
Filename  pmirc20150507.tar.gz 
Filesize  2.46 KB 
Downloaded  32 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
johnywhy


Joined: 20 Aug 2011
Posts: 682

PostPosted: Thu 07 May 2015, 13:03    Post subject:  

goingnuts wrote:
Have you tried the nc-way? (remove comment line 193 and comment out line 194).
tried your original pmirc again, and got:
Code:
mkdir: can't create directory '/root/.pmirc': File exists
- *** Looking up your hostname...
- *** Checking Ident
- *** Couldn't look up your hostname
- *** No Ident response
- Welcome to the freenode Internet Relay Chat Network johnywhy
- Your host is wolfe.freenode.net[91.217.189.44/6667], running version ircd-seven-1.1.3

seems to have connected. Don't know why i did not get the "identify via SASL" error this time. Only difference is, i installed via ppm when i got "identify via SASL" error. This time, just executed pmirc from my downloads folder.

then tried your edit of lines 193, 194, got same result (connected).

As experiment, i deleted /root/.pmirc. Your original pmirc again gave same result as above (it connected). Then deleted /root/.pmirc. then tried your edit of lines 193, 194, got same result (connected).

not getting "identify via SASL" error with either version now.

goingnuts wrote:
I have attached a version of netcat (=nc) that works here. Download, rename to netcat, place it /bin and change "nc" to "netcat" in line 193.

tried, but this file does not seem to contain any editable text.

_________________
Now: PupTarhNOP
Tops: Vlina-R2 LxPrecise Racy xSlacko
Used: Puppeee Precise Lucid Wary Tahrpup Quirky Slacko MacPup Saluki Puppy Studio LxPupTarh Lina-Lite Lina
Watching: Quirky-April Zagreb RapidPup
i ♥ Puppy
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 811

PostPosted: Thu 07 May 2015, 13:57    Post subject:  

johnywhy: Thx for testing - nice it works now. The netcat is not a script - its a replacement for nc. So you put the netcat in /bin and modify pmirc script to use that by replacing "nc" with "netcat". I uploaded it to be sure that a working netcat was used - but seems not needed as you connect fine now. Various telnet and nc (busybox-based or others) might give different results.
The "mkdir: can't create directory '/root/.pmirc': File exists " should be fixed in the newer pmirfc script - if it works with password when setting nickname I will replace the original pmirc with the new one.
Back to top
View user's profile Send private message Visit poster's website 
johnywhy


Joined: 20 Aug 2011
Posts: 682

PostPosted: Thu 07 May 2015, 14:50    Post subject:  

goingnuts wrote:
The netcat is not a script - its a replacement for nc. So you put the netcat in /bin and modify pmirc script to use that by replacing "nc" with "netcat".

i get it. but i think you're saying no longer necessary?

fyi, i'm seeing:
Quote:
- *** Couldn't look up your hostname
- *** No Ident response
- Welcome to the freenode Internet Relay Chat Network

which is no worry, right?
goingnuts wrote:
f it works with password when setting nickname I will replace the original pmirc with the new one.

i'm seeing:
Quote:
- +i
- This nickname is registered. Please choose a different nickname, or identify via /msg NickServ identify <password>.

i guess i used that nick before-- not sure of my password. Getting:
Quote:
msg NickServ identify password
- No text to send
/msg NickServ REAUTH
- Unknown command
msg NickServ REAUTH
- No text to send


thx!

_________________
Now: PupTarhNOP
Tops: Vlina-R2 LxPrecise Racy xSlacko
Used: Puppeee Precise Lucid Wary Tahrpup Quirky Slacko MacPup Saluki Puppy Studio LxPupTarh Lina-Lite Lina
Watching: Quirky-April Zagreb RapidPup
i ♥ Puppy
Back to top
View user's profile Send private message 
tlchost

Joined: 05 Aug 2007
Posts: 1818
Location: Baltimore, Maryland USA

PostPosted: Fri 08 May 2015, 04:30    Post subject:  

goingnuts wrote:
tlchost: Attached version might work - please test and give feedback.


It did not ask me for a password when I elected to enter my own nick
Back to top
View user's profile Send private message Visit poster's website 
goingnuts

Joined: 07 Dec 2008
Posts: 811

PostPosted: Fri 08 May 2015, 12:20    Post subject:  

tlchost: Maybe try attached fake .gz file instead - should be impossible to avoid giving a password when user nick is chosen. If password not needed just type something. The point is to evaluate if it works when password is needed....
pmirc.gz
Description  fake .gz - rename to pmirc
gz

 Download 
Filename  pmirc.gz 
Filesize  5.89 KB 
Downloaded  29 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
johnywhy


Joined: 20 Aug 2011
Posts: 682

PostPosted: Fri 08 May 2015, 12:36    Post subject:  

using your latest pmirc and netcat files:
Quote:
- *** Looking up your hostname...
- *** Checking Ident
- *** Found your hostname
- *** No Ident response
- *** Notice -- You need to identify via SASL to use this server
Closing Link: m842036d0.tmodns.net (SASL access only)


note, on VLina, also necessary to mark files "executable" during install, or get permissions error.

thx!

_________________
Now: PupTarhNOP
Tops: Vlina-R2 LxPrecise Racy xSlacko
Used: Puppeee Precise Lucid Wary Tahrpup Quirky Slacko MacPup Saluki Puppy Studio LxPupTarh Lina-Lite Lina
Watching: Quirky-April Zagreb RapidPup
i ♥ Puppy
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [20 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1755s ][ Queries: 12 (0.0386s) ][ GZIP on ]