You are not logged in.

#1 2015-06-21 02:33:03

deadhead
Member
Registered: 2015-06-14
Posts: 3

arch-wiki - A much simpler way to search the wiki

- Hey'all folks, I'm here to bring the important news about the life-changing technology you all will meet here today.

Do you use Arch? Or maybe you use Debian? No? Fedora? I can't hear you over there!

Gentoo? Ubuntu? Okay, the point is - it doesn't matter. With every Linux distro you will definitely stumble upon a thing that is beyound all of your expectations about how complicated just using a Linux distro can be. You'll not be afraid, however. You'll just launch your favourite browser, type in the address bar the URL of your preferred search engine and describe the problem, being a seasoned search engine user you are...

Now I bet the first link would be Arch Wiki. So how do we make your problem solving faster and thus your Linux experience more flawless?

We direct you to Arch wiki instantly, not even needing a GUI! Our latest software package allows you to search ever-so-helpful Arch Wiki right from your console. You don't have to switch to GUI, you don't have to launch your text-mode browser yourself, nor do you need to type in the long and bothersome URL of it!

Like, seriously, was it wiki.arch.org? Or arch.wikipedia.org? Or maybe org.wiki.arch? With our solution, aimed on both veteran and 'newbie' users, you don't need to know anymore!

For example, you. Yes, you. I know you want to see that new additions in SSH article. We all know how we should change our default OpenSSL settings and upgrade it to a new version since so-infamous LulzAnonSec group made a research on the library, finding out more than 30 critical bugs, 356 non-critical bugs, 560 features unknown before and a body of dead rat.

Hey, that guy's doing it right now. Look at him, he's launching a browser. A Webkit-based browser. It's gonna use 64% of its CPU just to render a Flash-based advertisement that unsurprisingly came from all the extensions he might not even know of. That took him about 30 seconds. 36.5201, to be exact. Now what'd we do, having the power of our command-line interface text-mode search framework under our fingertips?

arch-wiki openssl

arch-wiki. It's that simple.

I've created a very simple bash script that allows you to search the arch wiki from the command line. Its only dependencies are lynx, OR elinks, OR links. It takes whatever search argument you pass and pulls up the page on the arch wiki right in your terminal. It's no longer necessary to take your hands off the keyboard, move the mouse over to an icon, wait for the web browser then type your search into the search engine. Now finding what you're looking for right in the terminal has never been easier.

Check it out on my github repo:
https://github.com/deadhead420/archlinu … aster/wiki

For a quick and easy way to install arch-wiki-cli regardless of distro I've created a simple install script, have even tested on mac OSX. Asuming you already have wget installed simply run the following command to install arch-wiki-cli this is a short link to installer.sh on my github which simply installs arch-wiki to $PATH, then makes it executable. As sudo user, or root:

    wget -O - https://goo.gl/gsAO4J | sh


    Useage:

    arch-wiki "search args here"

    Options:

    arch-wiki --help (displays help info)

    arch-wiki --language "langhere" "search args here" (displays the wiki in "langhere")

    arch-wiki --update (grabs a new script from git repo)

P.S.
  -  if you find anyone asking really stupid questions that can without a doubt be found in the beginners guide just direct them to my program.
     arch-wiki beginners guide

Offline

#2 2015-06-21 03:18:43

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: arch-wiki - A much simpler way to search the wiki

Nice concept. Personally, I use http://surfraw.alioth.debian.org/


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-06-21 04:58:09

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: arch-wiki - A much simpler way to search the wiki

That text is so amusing smile

All this for a 49 line script, whose actual functionality only consists of 6 lines. fun smile


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#4 2015-06-21 09:26:59

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,418
Website

Re: arch-wiki - A much simpler way to search the wiki

http://curlpipesh.tumblr.com/

Not sure why you'd need an update mechanism anyway, as the archwiki links are unlikely to change.


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#5 2015-06-21 14:43:22

router
Banned
Registered: 2015-06-01
Posts: 9

Re: arch-wiki - A much simpler way to search the wiki

Hi deadhead,

I admire your first programming attempts. Don't get discouraged, but read books and try to complete the exercises after each chapter, unplug your ethernet cable or whatever connection you are using.

Write the most important information in a notebook and refresh the learn information with some online exercises. Fork existing project and try to improve it, doing it will expand your knowledge way much faster, as you will have to deal a lot new issues that you will meet for very first time.

Read, exercise, repeat the learned information.

Cheers

Offline

#6 2015-06-21 23:12:19

deadhead
Member
Registered: 2015-06-14
Posts: 3

Re: arch-wiki - A much simpler way to search the wiki

Thanks for the support router! Just started programming and using Linux at the beginning of this year, been learning something new everyday. any books you would recommend?

Alad, you're totally right, not sure exactly why I added it haha. Removed it, down to 39 lines now wink lol

Rasi, someone else wrote all the text. I posted my script on the Arch Linux facebook page, they saw my github and decided to type up a README.md for me lol

Offline

#7 2015-06-21 23:37:34

thiagowfx
Member
Registered: 2013-07-09
Posts: 586

Re: arch-wiki - A much simpler way to search the wiki

Hahaha this marketing text is fantastic, it makes me wanna try out your script smile
I guess people on/r/archlinux would like it too

Offline

Board footer

Powered by FluxBB