![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
I Ubuntu, Therefore, I Am
![]() Join Date: Dec 2006
Beans: 3,329
Ubuntu 9.10 Karmic Koala
|
[Howto] Setup the commandline newsreader slrn
============
Introduction ============ This 'Howto' page demonstrates how to setup the great console newsreader slrn under Ubuntu Linux and deals with the 'release' version slrn 0.9.9. Setting up slrn requires a little preparation as it deals with not just slrn but a few 'companion' programs as well. But first some preparation work: ==================== Set a FQDN ==================== For the best setup you should have an unique Fully Qualified Domain Name (FQDN) set to your system. Check this with the following command: Code:
$ hostname --fqdn Code:
127.0.0.1 localhost 127.0.1.1 desktop Code:
127.0.0.1 localhost 127.0.1.1 desktop.your.domain desktop
A word of warning: an incorrect or false FQDN might expose you to merciless flaming so spend a little time getting this set correctly. Next we set up the text editor vim and the then Mail Transport Agent (MTA) msmtp: ======================== Getting Acquainted with vim ======================== slrn does not come with a built-in editor and the best editor to use with slrn is vim, although many will argue this point. A version of vim comes as part of the default Ubuntu installation but before launching into this reasonably complex program I would advise you to run through vim's tutorial program which can be launched with the following command: Code:
$ vimtutor ================= Setting up an MTA ================= To reply by email to a news posting sendmail or a substitute is required and in this 'Howto' msmtp will be used. To reply by email rather than post directly to the newsgroup is not often appropriate but it has its uses. The following command downloads and installs msmtp + a certs pack: Code:
$ sudo apt-get install msmtp ca-certificates Code:
$ touch $HOME/.msmtprc $ touch $HOME/.msmtp.log $ chmod 0600 $HOME/.msmtprc Code:
account default host smtp.gmail.com port 587 from full.gmail.address@gmail.com tls on tls_starttls on tls_trust_file /etc/ssl/certs/ca-certificates.crt auth on user gmail.username password mypassword logfile ~/.msmtp.log ========================== Download slrn ========================== Times have changed with the new release of slrn and finally users of Jaunty Jackalope can get a perfectly usable version direct from the Ubuntu repository: Code:
$ sudo apt-get install slrn Gutsy Gibbon: Code:
deb http://www.foory.de/thw/slrn/ gutsy/ Code:
deb http://www.foory.de/thw/slrn/ hardy/ Code:
deb http://www.foory.de/thw/slrn/ intrepid/ But now to setup the file ~/.slrnrc: =============== Setup ~/.slrnrc =============== slrn requires the creation of a personal configuration file: ~/.slrnrc. The following commands transfer a sample file from the slrn website to its correct location and opens it for editing: Code:
$ wget http://slrn.sourceforge.net/downloads/slrn.rc -O $HOME/.slrnrc $ vim $HOME/.slrnrc =========================== Some Suggested ~./slrnrc Settings =========================== There are 11 sections, not all of which need to be altered simply to get slrn successfully online. You can see that this file uses the figure % to create a comment, simply remove the % to allow slrn to see and perform the command. Section 1: Tell slrn about your identity. These following fields will usually need to be un-commented and set: Code:
% Basic identification information which creates: % From: Skywalker <luke@deathstar.invalid> set username "luke" set hostname "deathstar.invalid" set realname "Skywalker" % Also create a real email address that is less likely % to be spammed, use gmail anyway to be sure: set replyto "luke.skywalker@gmail.com" % Set the location of your signature: set signature ".signature" Code:
$ vim ~/.signature Section 3: Which external programs do you want to use? It is in this section that we will set vim as the default editor with the following line: Code:
% Sets vim to edit with 72 character width. set editor_command "vim '+set tw=72' +%d '%s' Code:
% Sets Firefox as default browser. set Xbrowser "firefox '%s' &" Next for the appropriate lines to tell slrn to use our MTA msmtp: Code:
% Sets msmtp rather than sendmail. set sendmail_command "/usr/bin/msmtp -t" Section 8: Some preferences for the article pager. Since you have gone to some trouble to set up a decent news reader it is nice to see newsreader other people are using. Un-comment the following line and add in User-Agent: Code:
% Sets the default headers you see above messages. visible_headers "From:,Subject:,Newsgroups:,Followup-To:,Reply-To:,User-Agent:" Section 9: Display / color settings. Don't alter these settings yet until you have had a look at the default slrn colours but come back later and alter the colours in the section marked: Code:
% These settings are used for color terminals: Code:
%--- normal --------- bold --------- % 0 black 8 gray % 1 red 9 brightred % 2 green 10 brightgreen % 3 brown 11 yellow % 4 blue 12 brightblue % 5 magenta 13 brightmagenta % 6 cyan 14 brightcyan % 7 lightgray 15 white ============================== Setting the NNTP Environment Variable ============================== slrn needs to know where your news server is. To do this you will need to set set the environment variable "NNTPSERVER" to the hostname of your preferred newsserver. Open the file ~/.bashrc as follows: Code:
$ vim ~/.bashrc Code:
# Sets the News Server Environment as required by slrn NNTPSERVER='my.news.server' && export NNTPSERVER ================== Running the program ================== slrn needs to download a list of newsgroups from your news server, setup the file ~/.jnewsrc and optionally download a list of newsgroup descriptions. Open a Terminal window and type the following: Code:
$ slrn --create $ slrn -d ================ And in conclusion =============== Be prepared for a steep learning curve but when you have mastered the basics of the program I predict you will never return to a GUI newsreader. If you get tangled up a little: close the program down, have a cup of tea, and read the slrn manual online. Perhaps you would like to use the NNTP proxy server Leafnode-2 with slrn as I do? Try another guide I have written on these forums: [Howto] Setup and use Leafnode-2 with the newsreader slrn. April 13th, 2009 Andrew Strong Last edited by andrew.46; April 15th, 2009 at 07:43 AM.. Reason: Added Thomas's Intrepid repository |
|
|
|
|
|
#2 |
|
Just Give Me the Beans!
![]() |
Re: HOWTO: Setup slrn
Thanks Andrew, the default slrn found in the repositories for Ubuntu 7.10 works just fine with your walkthrough.
__________________
It's all good! |
|
|
|
|
|
#3 | |
|
I Ubuntu, Therefore, I Am
![]() Join Date: Dec 2006
Beans: 3,329
Ubuntu 9.10 Karmic Koala
|
Re: HOWTO: Setup slrn
Hi,
Thanks for your message: Quote:
http://www.foory.de/thw/slrn/ All the very best, Andrew
__________________
Do you think that's air you're breathing? Last edited by andrew.46; January 29th, 2008 at 05:32 AM.. Reason: Altered link for Thomas' site |
|
|
|
|
|
|
#4 |
|
I Ubuntu, Therefore, I Am
![]() Join Date: Dec 2006
Beans: 3,329
Ubuntu 9.10 Karmic Koala
|
Re: HOWTO: Setup slrn
Hi,
Although this page has not been hugely popular I have rewritten it and added information to allow access the the svn repository. Hopefully I can add information soon to download the release version slrn 0.9.9. I no longer use Ubuntu Linux but I have decided to maintain this walkthrough because Ubuntu was so good to me and because I would like to continue to raise the slrn flag wherever I can All the best, Andrew Strong
__________________
Do you think that's air you're breathing? |
|
|
|
|
|
#5 | |
|
First Cup of Ubuntu
![]() Join Date: Dec 2006
Beans: 6
Ubuntu Karmic Koala (testing)
|
Re: HOWTO: Setup slrn
Quote:
One thing that would help would be a leafnode, slrnpull "HOWTO:" The reason I ask is I'm struggling like anything getting either going. Keep up the good work BTW. Take Care Moog. |
|
|
|
|
|
|
#6 | |
|
I Ubuntu, Therefore, I Am
![]() Join Date: Dec 2006
Beans: 3,329
Ubuntu 9.10 Karmic Koala
|
Re: HOWTO: Setup slrn
Hi Moog!
Quote:
I still look after a couple of 'Howto's on this forum: this slrn one and an svn mplayer one but it has been a little while since I have been regularly using Ubuntu linux. So further development, such as leafnode or slrnpull may be a while coming on this particular page. I will admit that leafnode has crossed my mind a few times as I have seen discussion on it in various places. I saved a link for future reference that might help a little: http://homepage.ntlworld.com/garrykn.../leafnode.html All the very best, Andrew PS Just thoroughly read through that Leafnode page. Looks like a long afternoon's work to get that all setup
__________________
Do you think that's air you're breathing? Last edited by andrew.46; January 7th, 2008 at 05:44 PM.. Reason: Added PS |
|
|
|
|
|
|
#7 | |
|
First Cup of Ubuntu
![]() Join Date: Dec 2006
Beans: 6
Ubuntu Karmic Koala (testing)
|
Re: HOWTO: Setup slrn
Quote:
Yes. It's the very same one. And you're right. It's quite a strange experience conversing with you on here. That page looks just like what I need. I'll plod through it on Sunday and use it has an excuse to get away from the kids. Take care. Moog |
|
|
|
|
|
|
#8 | |
|
I Ubuntu, Therefore, I Am
![]() Join Date: Dec 2006
Beans: 3,329
Ubuntu 9.10 Karmic Koala
|
Re: HOWTO: Setup slrn
Hi again Moog:
Quote:
I have now also setup Leafnode 2 up on my Slackware 12 partition and I will admit to a little bit of hard going for a while. Server settings had to be done by hand, config file was untouched and crontabs for fetchnews and texpire needed to be manually added. Also settings for host.allow / deny + ~/.bashrc / NNTPhost setting by hand as well. Ubuntu makes it very easy in this case I suspect that I will need to pick up a few months of usage and experience with Leafnode before I dare to write a walkthrough with any degree of expertise. Andrew
__________________
Do you think that's air you're breathing? Last edited by andrew.46; January 22nd, 2008 at 06:59 AM.. Reason: Added ramble on Leafnode 2. Now running it !!! |
|
|
|
|
|
|
#9 |
|
Way Too Much Ubuntu
![]() Join Date: May 2007
Location: Western New York
Beans: 267
Ubuntu 8.04 Hardy Heron
|
Re: HOWTO: Setup slrn
I've been looking, but obviously not very well: Are there any good slrn scorefile tutorials available?
And thanks for the great directions.
__________________
Ubuntu User #19733/Linux User #449481 |
|
|
|
|
|
#10 | |
|
I Ubuntu, Therefore, I Am
![]() Join Date: Dec 2006
Beans: 3,329
Ubuntu 9.10 Karmic Koala
|
Re: HOWTO: Setup slrn
Hi Zack:
Quote:
http://www.andrews-corner.org/slrn.html that has a small section entitled: 'Scoring in slrn' which should definitely get you started at least. There are links on this page to the 2 best source documents about scoring which I will repeat here: http://www.slrn.org/docs/score.txt http://slrn.sourceforge.net/manual/slrn-FAQ-4.html Hope this gets you started until somebody eventually writes a more detailed page Andrew
__________________
Do you think that's air you're breathing? Last edited by andrew.46; January 30th, 2008 at 01:53 AM.. |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|