[13:13] <Brandon__> hello
[13:15] <Brandon__> Hello anybody
[14:06]  * Mohan_chml greets bgs100 with a sword
[14:07]  * bgs100 greets Mohan_chml with a wave.
[14:08] <Mohan_chml> (:
[17:34] <harrisonk> hello
[17:34] <harrisonk> How do I add a directory to my PATH? like /bin/ is one and /usr/bin is another
[17:39] <nlsthzn> edit .bashrc in your ~ directory AFAIK...
[17:39] <nlsthzn> there is a path variable in there if memory serves
[17:43] <tronyx> test
[17:43] <nlsthzn> tronyx: test successful
[17:44] <tronyx> thanks :)
[17:44] <Mohan_chml> hey tronyx =]
[17:44] <tronyx> howdy Mohan_chml.  how goes?
[17:44] <Mohan_chml> tronyx, Its great :) how are you?
[17:44] <tronyx> doing well thank you.  about to go grab some lunch.  i am thinking today is a good day for indian food
[17:45] <tronyx> hopefully my coworkers agree =]
[17:46] <Mohan_chml> I am about to sleep :P 23:15 here
[17:47] <tronyx> rest well :) gonna grab some lunch
[17:47] <tronyx> take care Mohan_chml!
[17:48] <Mohan_chml> cya soon tronyx =]
[18:42] <harrisonk> How do I add a directory to my PATH? like /bin/ is one and /usr/bin is another
[18:45] <bioterror> it's easy
[18:45] <bioterror> nano ̃~/.bashrc
[18:46] <bioterror> and add: export PATH=$PATH:/path/to/my/directory
[18:46] <bioterror> ;/path/to/another/directory
[18:47] <bioterror> or you can add that to /etc/bash.bashrc
[18:49] <harrisonk> thanks
[18:58] <yofel> harrisonk: note though that the first file that is found is used, so if you have /bin/ls and /usr/bin/ls and PATH=/bin:/usr/bin /bin/ls will be used, if you have PATH=/usr/bin:/bin /usr/bin/ls will be used
[18:59] <harrisonk> ?
[19:01] <yofel> harrisonk: just saying that it matters if you add your directory at the beginning or end of PATH
[19:03] <fatharrahman> hi
[19:05] <fatharrahman> my computer at boot after choose user is not launching in  but give an error message say power manager configuration is not installed how to fix this
[19:08] <fatharrahman> any help please?
[19:09] <bioterror> sudo apt-get install gnome-power-manager
[19:10] <fatharrahman> where to right it it stick in the user password place
[19:10] <fatharrahman> no other screen
[19:11] <aveilleux> fatharrahman: Uh, what?
[19:11] <aveilleux> fatharrahman: Can you rephrase that?
[19:13] <fatharrahman> when  try to log on and choose user the screen  stay at the log on screen no place to wright any command it just give you the message above I can not log in
[19:16] <aveilleux> fatharrahman: Then... log in and run the command?
[19:18] <fatharrahman> The message says the configuration default for GNOME  power manager have not been installed correctly please contact your
[19:18] <fatharrahman> and the log in screen stays stick hanged up
[19:18] <fatharrahman> so is not loggin in
[19:22] <fatharrahman> what to do please
[19:24] <yofel> fatharrahman: press ctrl+alt+f2, that should give you a text login prompt, login, get a wired network connection (wireless is a bit tricky but not impossible) and run the command
[19:26] <fatharrahman> it gave me ubuntu login: | what should I write please
[19:26] <yofel> your username; press enter; your password; press enter
[19:29] <fatharrahman> thank you very much the command appeared  should I write sudo apt-get install gnome-power-manager now ?
[19:30] <yofel> yes, if that doesn't help, run 'sudo apt-get remove ubuntu-desktop; sudo apt-get install ubuntu-desktop' to make sure all packages that should be there are installed
[19:31] <yofel> (if you are using Ubuntu Desktop)
[19:39] <fatharrahman> yes I use  Ubuntu desktop but the command I wrote brought me the following answer : E: dpkg was interrupted you must manually run sudo dpkg --conconfigure -a to correct the problem, I wrote it and then rewrite the command now I logged in thank you very much Ubuntu scholars
[19:41] <yofel> ouch, then you probably had a failed update, please run 'sudo dpkg --configure -a' and then 'sudo apt-get update; sudo apt-get dist-upgrade'
[19:41] <yofel> ah, you fixed it already, good :)
[19:51] <fatharrahman> thank you yofel
[19:51] <yofel> you're welcome
[21:06] <fatharrahman> what is root ? in terminal for example
[21:07] <hobgoblin> #
[21:07] <fatharrahman> ?
[21:08] <hobgoblin> fatharrahman: what exactly are you after knowing - are you trying to do something?
[21:08] <hobgoblin> you'd use sudo to run a command as root
[21:08] <fatharrahman> see this I  think as if am lost
[21:09] <fatharrahman> root [1] -help
[21:09] <fatharrahman> Error: Symbol help is not defined in current scope  (tmpfile):1:
[21:09] <fatharrahman> (const int)0
[21:09] <fatharrahman> *** Interpreter error recovered ***
[21:09] <fatharrahman> root [2] exit
[21:09] <fatharrahman> (const void*)0x1b36e0
[21:09] <fatharrahman> root [3]
[21:09] <fatharrahman> root [3] q
[21:09] <fatharrahman> Error: Symbol q is not defined in current scope  (tmpfile):1:
[21:09] <fatharrahman> *** Interpreter error recovered ***
[21:09] <fatharrahman> root [4] close
[21:09] <aveilleux> !paste | fatharrahman
[21:09] <ubot2> fatharrahman: For posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://tinyurl.com/imagebin | !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.
[21:09] <fatharrahman> Error: Symbol close is not defined in current scope  (tmpfile):1:
[21:09] <fatharrahman> *** Interpreter error recovered ***
[21:09] <hobgoblin> oh my word :(
[21:09] <fatharrahman> root [5] exit
[21:09] <fatharrahman> (const void*)0x1b36e0
[21:09] <fatharrahman> root [6] q
[21:09] <fatharrahman> Error: Symbol q is not defined in current scope  (tmpfile):1:
[21:09] <fatharrahman> *** Interpreter error recovered ***
[21:09] <fatharrahman> root [7]
[21:09] <fatharrahman> sorry
[21:10] <fatharrahman> sorry ubot2
[21:10] <hobgoblin> lol - don't do that again please :)
[21:10] <fatharrahman> ok I promise
[21:10] <fatharrahman> what is root?
[21:11] <hobgoblin> root is the user name or account that by default has access to all commands and files on a Linux or other Unix-like operating system
[21:11] <hobgoblin> http://www.linfo.org/root.html
[21:11] <hobgoblin> in ubuntu we use sudo instead of su unless we've fiddled about
[21:12] <fatharrahman> how to change it
[21:12] <hobgoblin> what do you mean - change it?
[21:13] <fatharrahman> terminal was beginning  with my name now it begin with root
[21:13] <hobgoblin> aah
[21:13] <hobgoblin> try exit
[21:14] <fatharrahman> I tried did you saw my above annoyed paste :)
[21:15] <hobgoblin> not really I was all a bit facepalm lol
[21:15] <hobgoblin> so what were you doing to get a root prompt
[21:16] <fatharrahman> I am learning from https://help.ubuntu.com/community/UsingTheTerminal
[21:16] <fatharrahman> then became root
[21:16] <fatharrahman> I don't know how
[21:18] <fatharrahman> hello hobgoblin
[21:18] <fatharrahman> sir
[21:21] <fatharrahman> http://paste.ubuntu.com/535659/
[21:21] <jledbetter> Didn't scroll up too much so might be a bit behind, fatharrahman. You sudo'd a command? Something like sudo gedit file.txt ? And now have    "root"   as your prompt?
[21:21] <jledbetter> Oh a paste. Reading.
[21:22] <hobgoblin> sorry was afk
[21:23] <hobgoblin> fatharrahman: no idea what that is :)
[21:23] <jledbetter> "exit" didn't work?
[21:23] <fatharrahman> i yes
[21:24] <hobgoblin> something to do with C is it?
[21:24] <fatharrahman> see my paste
[21:24] <fatharrahman> http://paste.ubuntu.com/535659/
[21:24] <hobgoblin> I have
[21:24] <jledbetter>    .q
[21:25] <jledbetter> With the dot. Reminds me of vi
[21:25] <hobgoblin> looks like an interpreter of some sort - I'd just close the terminal if it's not actually doing abything
[21:25] <fatharrahman> yeeeeees
[21:25] <jledbetter> hobgoblin, It is.
[21:25] <fatharrahman> it worked
[21:25] <jledbetter> Ok, my work here s done. Back to idling (coding elsewindow) I go ;)
[21:25] <hobgoblin> jledbetter: I only ever used vi once and killed sudoers
[21:26] <jledbetter> Vi is neat. But I prefer gedit and Eclipse now.
[21:26] <fatharrahman> thank you guys you are amazing then back to reading
[21:27] <jledbetter> You're welcome, fatharrahman. Keep exploring and poke us if you run into more blocks :)
[21:27] <fatharrahman> ok my teacher
[21:28] <fatharrahman> please accept my respect
[21:29] <hobgoblin> jledbetter: nano is more than sufficient for me - programming is something you used to do with a video
[21:30] <jledbetter> Hard core, man.
[21:32]  * yofel uses vim and is happy
[21:32]  * hobgoblin shudders 
[21:33] <yofel> does take some getting used to :D
[21:34] <hobgoblin> if I was a programmer I guess I would use the like - but I fix boats :)
[21:42] <fatharrahman> hobgoblin could I ask you few stupid qs
[21:43] <hobgoblin> fatharrahman: there are no stupid questions - I will do my best to answer them for you
[21:43] <fatharrahman> thank you am really grateful
[21:43] <hobgoblin> :)
[21:45] <fatharrahman> I read about terminal just wonder why use sudo first and some time use cat first ?
[21:46] <hobgoblin> k - sudo gives you temporary rights as root - cat does all sorts of things - I only ever use it though to read a file in terminal
[21:47] <hobgoblin> I am not a programmer at all - no real idea of bash and stuff
[21:47] <drubin> hobgoblin: You know more then most.
[21:47] <aveilleux> hobgoblin: cat reads out a file.
[21:48] <hobgoblin> ther you go :)
[21:48] <drubin> concatenate files and print on the standard output
[21:48] <hobgoblin> fatharrahman: anyway sudo is about doing things as root
[21:48] <fatharrahman> ok this is enough to me
[21:50] <drubin> why would they call their command root ;/ sooo confusing
[21:50] <hobgoblin> drubin: I got confused :)
[21:50] <drubin> hobgoblin: and so you should have it is confusing
[21:50] <yofel> everyone would..
[21:51] <fatharrahman> where can I find a webbook or documentation  about detailed commands I mean
[21:51] <fatharrahman> I mean
[21:51] <fatharrahman> people give you a complete command
[21:51] <yofel> fatharrahman: you can read the documentation of a command with 'man <command>'
[21:51] <yofel> also see 'man man'
[21:52] <yofel> most commands also have a short documentaition if you run them with --help
[21:52] <aveilleux> fatharrahman: I write down some commands when I encounter them https://wiki.ubuntu.com/aveilleux/CommandsToRemember
[21:52]  * yofel looks..
[21:52] <hobgoblin> http://ss64.com/bash/    is quite nice
[21:53] <fatharrahman> it is nice bit
[21:54] <fatharrahman> but not detailed
[21:54] <yofel> oh nice
[21:54] <fatharrahman> I mean detaied command
[21:54] <yofel> fatharrahman: see the manpage for details as I said
[21:54] <fatharrahman> ok
[21:54] <aveilleux> fatharrahman: yeah, manpages. man <command>.
[21:54] <hobgoblin> anyway - fatharrahman - good luck - I am off now - anyone in here will help you
[21:54] <yofel> like 'man apt-get' will tell you all you need about it
[21:56] <fatharrahman> I mean how to collect them or to instruct them correctly as you are building a phrase from a dictionary
[21:57] <aveilleux> fatharrahman: Can you rephrase that?
[21:59] <fatharrahman> it is very helpful  yofel  i'll tell you why ok aveillex when I read books or web sites I understand what  commands mean but I can not build them to an input with intended output
[21:59] <aveilleux> fatharrahman: You mean... you don't know how to structure the command? As in, you don't know its syntax.
[22:00] <aveilleux> fatharrahman: Yes, so, in that case the manpages is exactly what you want.
[22:00] <fatharrahman> yes yes
[22:03] <fatharrahman> is there any other source than mapages because I like to type in terminal while i read about it so as ro fix it in mind
[22:03] <aveilleux> fatharrahman: You can just open another Terminal window.
[22:03] <fatharrahman> yofel
[22:04] <fatharrahman> oh I never recognize that thank you aveilleux
[22:04] <aveilleux> fatharrahman: otherwise, Ubuntu publishes the manpages online. http://manpages.ubuntu.com/
[22:05] <fatharrahman> that is exactly what I need
[22:05] <fatharrahman> thank you verry much aveilleux
[22:05] <fatharrahman> thank you again
[22:06] <yofel> well, as aveilleux said, use another terminal window, and also use bash tabe auto-completion, those commands that have their own completion written for them will only complete what makes sense for them, like 'sudo apt-get di<tab>' will get you 'sudo apt-get dist-upgrade'
[22:06] <yofel> s/tabe/tab/
[22:06] <yofel> by default tab will complete file and directory names
[22:08] <yofel> command names are also completed, and if you have multiple completions, pressing tab a second time will give you a list of possibilities - *very* useful
[22:08] <yofel> (that's for all completions, not just command names)
[22:10] <fatharrahman> I appreciate that yofel thank you I will read your paste it is very helpful as a beginner it sound exact and collective and abbreviated ok I think I need many years to master terminal but am ready thank you again yofel
[22:11] <fatharrahman> what is bash
[22:11] <yofel> np, we all took a while to learn how to use the terminal, but it's really handy
[22:11] <yofel> fatharrahman: the default shell, meaing the command line you're currently using is bash, there are other command line interpreters beside it
[22:11] <fatharrahman> some times I type a command and a bash answer
[22:12] <yofel> fatharrahman: right, that's usually the shell (here: bash) telling you you did something wrong
[22:12] <fatharrahman> yes
[22:13] <fatharrahman> as if am talking to the computer
[22:13] <yofel> there are other shells like 'sh' (the default, minimal system shell, used by system scripts usually), zsh, csh and many more, bash is the most commonly used shell today and the default user shell in most linux distributions
[22:14] <fatharrahman> is the bash  an answering machine of my system ?
[22:15] <fatharrahman> sorry
[22:15] <fatharrahman> very stupid Qs
[22:15] <yofel> well, not really, it's the applications that's executing the commands you're entering, a bit tricky to explain..
[22:15] <yofel> *application
[22:15] <fatharrahman> aha!
[22:15] <fatharrahman> ok I got it now
[22:16] <yofel> it executes the command you're entering, and has some commands like 'help, exec, export, ...' builtin, and is a small programming language by itself if you write scripts for it, but now I'm getting too high I think
[22:17] <fatharrahman> thank you thank you thank you
[22:17] <yofel> fatharrahman: maybe to understand, run 'sh' in your terminal now, then you'll see the terminal starts behaving differently in some cases
[22:18] <fatharrahman> you are very helpful
[22:18] <yofel> since you're now using dash and not bash anymore
[22:18] <fatharrahman> run it ?
[22:18] <yofel> fatharrahman: type 'sh' and press enter ;)
[22:18] <fatharrahman> ok
[22:18] <yofel> without the quotes
[22:19] <yofel> now try things like using tab completion or using the last typed command by pressing the up arrow, it won't work as dash can't do that, but bash can
[22:19] <yofel> to exit just type 'exit' or press ctrl+d
[22:20] <fatharrahman> hello
[22:20] <fatharrahman> what is wrong with this
[22:21] <yofel> what happened?
[22:21] <fatharrahman> I don't know
[22:21] <fatharrahman> is it a virus?
[22:21] <yofel> probably not, but what happened...? did you close the chat window or what?
[22:22] <fatharrahman> Disconnected ().
[22:22] <fatharrahman>  No channel joined. Try /join #<channel>
[22:22] <fatharrahman>  No channel joined. Try /join #<channel>
[22:22] <fatharrahman>  I found this in screen
[22:23] <fatharrahman> then  purple long typed thing
[22:23] <yofel> erm, did you type /exit in your chat client? I meant in your terminal..
[22:23] <fatharrahman> oh yes in terminal
[22:23] <fatharrahman> I tried to close manpage
[22:24] <fatharrahman> but it doesn't close
[22:24] <yofel> for the manpage, just press 'q'
[22:24] <fatharrahman> ok
[22:25] <fatharrahman> I typed sh guess what? there is $
[22:25] <fatharrahman> what that mean?
[22:26] <yofel> right, now you're running dash which is a different command line interpreter ($ usually marks the beginning of the command line if you're not root, root uses #)
[22:26] <fatharrahman> aha!!
[22:27] <fatharrahman> what a knowledg
[22:27] <yofel> you'll notice it behaves differently from bash in some cases (like using tab completion doesn't work, using last command with up arrow doesn't work...)
[22:27] <yofel> maybe that makes it easier to understand what bash is, a command line interpreter that executes commands and has some features that makes it easier to use
[22:28] <fatharrahman> why you nice people don't write these basic informations ? in your books and blogs or pastes??/ ;)
[22:28] <yofel> to exit dash, run 'exit' or press ctrl+d
[22:28] <yofel> hard to say, I suck at writing wiki pages, and others probably didn't bother about it
[22:30] <yofel> after exiting dash you'll be back to your bash session, think of it like the shells of an onion 'linux kernel -> shell -> shell -> shell...' since you now learned that you can run other shells in a shell
[22:30] <fatharrahman> oh
[22:31] <fatharrahman> coplicated
[22:31] <fatharrahman> complicated
[22:31] <yofel> not really, you don't usually do that unless you want to use a different shell
[22:32] <fatharrahman> may you please rephrase the difference between dash and bash? please
[22:32] <yofel> and bash really covers most things you'll want to do (*anything* a beginner would want to do)
[22:32] <fatharrahman> aha
[22:32] <fatharrahman> dash?
[22:33] <yofel> fatharrahman: they're two different applications that you can use for your command line, they do the same way in different ways (dash is a minimal shell that's used for 'sh' - 'sh' is supposed to work exactly the same on all linux systems)
[22:33] <yofel> er... same thing in different ways
[22:34] <fatharrahman> oh
[22:34] <fatharrahman> nice
[22:34] <yofel> a bit advanced excurse: if you run 'ls -l /bin/sh' you'll see that it's symbolik link that points to dash
[22:35] <fatharrahman> I understood you see I need to dig your mind to get this golden information
[22:35] <yofel> it's a symbolic link
[22:35] <yofel> I'm getting tired..
[22:35] <fatharrahman> sorry
[22:35] <yofel> np, It's a bit tricky to understand, took me a while too
[22:36] <fatharrahman> I'll get back to read
[22:36] <yofel> you can also see 'man sh' and 'man bash'. They're quite technical though
[22:37] <fatharrahman> ok take rest I will go back to read
[22:37] <fatharrahman> thank you very much my teacher
[22:37] <yofel> for now you'll need to learn bash, just remember that sh is usually used by the system scripts
[22:37] <fatharrahman> oh realy
[22:38] <fatharrahman> I just run sudo apt-get update under sh
[22:38] <yofel> if you open a script in an editor, you'll see what interpreter is used in line 1, the 'shebang' line #!/bin/sh for example
[22:38] <fatharrahman> is it save?
[22:39] <yofel> that's perfectly safe and will to the same thing as in bash, as to the shell, you're just executing 'sudo', and that command takes care of the rest of the line
[22:39] <fatharrahman> hahaha you don't know me
[22:40] <fatharrahman> I don't know any thing about computer
[22:40] <fatharrahman> so
[22:40] <yofel> well, then again, sudo is the most dangerous command a beginner can use, remember that ;)
[22:40] <fatharrahman> please what is script?
[22:41] <fatharrahman> ok
[22:41] <yofel> fatharrahman: erm... in short: a text file that has command line commands in it and that you can execute
[22:41] <fatharrahman> use sudo carefully ok
[22:42] <fatharrahman> I don't really wanna gt you more tired
[22:42] <yofel> fatharrahman: you might also want to read http://ubuntuforums.org/announcement.php?f=394 about malicious commands - DO NOT USE THEM
[22:43] <fatharrahman> I read about them in ubuntu forums but I can not recite them
[22:44] <fatharrahman> could command destroy my hardwares or only endanger the softwares??
[22:45] <fatharrahman> sorryyyyy
[22:45] <fatharrahman> I took a lot of your time please go rest sir
[22:45] <yofel> I think there might be command that could, maybe under some cases affect hardware if used in /sys or /proc, but usually no
[22:46] <yofel> np, happy reading! and come back if you have any questions (I'll be still here for at least an hour)
[22:46] <fatharrahman> thank you I'll stop here  I don't want you to get bore with me
[22:46] <fatharrahman> ok
[22:46] <fatharrahman> teacher
[22:47] <fatharrahman> you are very kind
[22:47] <yofel> I'm not, I really like using the terminal (and getting others to use it too :P)
[22:47] <fatharrahman> I'll coppy this conversation for my revision
[22:48] <fatharrahman> i love terminal
[22:48] <fatharrahman> thank you again am out now to reading
[23:08] <fatharrahman> hi yofel are you around I have only one Q
[23:08] <yofel> sure
[23:10] <fatharrahman> I installed Ubuntu desktop to my friend in his computer wich is dell inspiron 6000 it is old 512 Ram  could i change it into lubuntu using terminal??
[23:11] <fatharrahman> it  hang up some times i thought maybe due to law RAM
[23:13] <yofel> well, easiest way is by installing 'lubuntu-desktop', that will install all lubuntu packages, after that just choose LXDE in the login screen after entering your name (I'm not sure if that will cause gdm or lxdm to be used as login managers) someone else might know more (or ask in #lubuntu)
[23:13] <yofel> *login manager, not managers
[23:14] <fatharrahman> do you mean sudo apt-get install lubuntu-desktop?
[23:17] <yofel> fatharrahman: yes
[23:18] <fatharrahman> do you also believe his slow Ubuntu will be faster if I installed lubuntu or do you have other suggestion
[23:19] <fatharrahman> I adviced him to buy additional RAMs instead then I asked why don't try lubuntu
[23:21] <fatharrahman> I'll see that latter back again to amuse terminal reading
[23:26] <fatharrahman> I added you for terminal consultation  sir
[23:32] <yofel> hard to say, it could be because of missing RAM, but gnome is be able to run reasonably with >512MiB and can run with less, so it might be the cpu or graphics card/driver or compiz or... whatever. 'Slow' is pretty vague
[23:33] <yofel> it's a bit too late for me to do a in-depth analyzation of that right now
[23:37] <fatharrahman> thank you