{"id":1015,"date":"2012-04-18T21:37:21","date_gmt":"2012-04-18T19:37:21","guid":{"rendered":"http:\/\/blog.kodono.info\/wordpress\/?p=1015"},"modified":"2012-04-18T21:37:52","modified_gmt":"2012-04-18T19:37:52","slug":"a-console-program-for-newsgroup-post-linux","status":"publish","type":"post","link":"https:\/\/blog.kodono.info\/wordpress\/2012\/04\/18\/a-console-program-for-newsgroup-post-linux\/","title":{"rendered":"A console program for Newsgroup post [linux]"},"content":{"rendered":"<p>I spent a long time to find how to post on newsgroup with Linux in console mode only.<br \/>\nHere is the solution !<\/p>\n<h2>Download and compile newspost<\/h2>\n<p><a href=\"http:\/\/newspost.unixcab.org\/\">Newspost<\/a> is a program to post on the newsgroup. I&#8217;m on Debian but this package doesn&#8217;t exist anymore. However you can download the source and compile them&#8230; except there are few errors with the original sources (at least on my box). The issue is the source uses a function called &#8220;getfile&#8221;, however this function name is already used in something else and it causes a conflict.<br \/>\nSo I&#8217;ve renamed the function and it now works.<\/p>\n<p><a href='http:\/\/blog.kodono.info\/wordpress\/wp-content\/uploads\/2012\/04\/newspost-2.1.1.orig_.tar.gz'>Download newspost-2.1.1.orig.tar.gz<\/a><\/p>\n<p>Extract the files, then use <code>make &#038;& make install<\/code><\/p>\n<h2>Install par2 and rar<\/h2>\n<p>On a Debian you&#8217;ll do <code>apt-get install par2 rar<\/code><\/p>\n<h2>Let&#8217;s go<\/h2>\n<p>The first step is to split your file into small ones with rar extension :<br \/>\n<code>rar a \"name of rar file\" -v20m -m0 \"\/home\/example\/your file\"<\/code><\/p>\n<p>Here are some explanations regarding this command :<\/p>\n<ul>\n<li><b>name of rar file<\/b> : This is the name of the rar-files you&#8217;re going to create (&#8220;.rar&#8221; will automatic be added)<\/li>\n<li><b>-v20m<\/b> : Split the file into 20MB chunks<\/li>\n<li><b>-m0<\/b> : Set compression level (0-store&#8230;3-default&#8230;5-best)<\/li>\n<li><b>&#8220;\/home\/example\/your file&#8221;<\/b> : The file you want to rar<\/li>\n<\/ul>\n<p>Now we can create the .par files :<br \/>\n<code>par2create -r10 -n7 \"name of .par files\" \"\/home\/example\/the .rar files*\"<\/code><\/p>\n<p>Some explanations :<\/p>\n<ul>\n<li><b>-r15<\/b> : Percent par-files you want to create<\/li>\n<li><b>-n7<\/b> : Number of par-files you want to create\n<li><b>\/home\/example\/the .rar files*&#8221;<\/b> : The just created .rar files<\/li>\n<\/ul>\n<p>Now it&#8217;s time to upload your files :<br \/>\n<code>newspost -i SERVER.NEWSGROUP.COM -u USERNAME -p PASSWORD -f EMAIL@EXAMPLE.COM -n ALT.BINARIES.YOUR.GROUP -y -s \"SUBJECT\" \"\/home\/example\/*par*\"<\/code><\/p>\n<p>So replace the uppercase words with your own values.<\/p>\n<p>Thanks to this <a href=\"http:\/\/ubuntuforums.org\/archive\/index.php\/t-691892.html\">old post<\/a> !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I spent a long time to find how to post on newsgroup with Linux in console mode only. Here is the solution ! Download and compile newspost Newspost is a program to post on the newsgroup. I&#8217;m on Debian but this package doesn&#8217;t exist anymore. However you can download the source and compile them&#8230; except [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","hide_page_title":"","footnotes":""},"categories":[7,53,13,56],"tags":[123,161,135,152],"class_list":["post-1015","post","type-post","status-publish","format-standard","hentry","category-application","category-linux","category-niveau-intermediaire","category-partage","tag-english","tag-linux","tag-newsgroup","tag-niveau-intermediaire"],"_links":{"self":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/1015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/comments?post=1015"}],"version-history":[{"count":3,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/1015\/revisions"}],"predecessor-version":[{"id":1021,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/1015\/revisions\/1021"}],"wp:attachment":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/media?parent=1015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/categories?post=1015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/tags?post=1015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}