=== JoeSett is now known as JoeMaverickSett === yofel_ is now known as yofel [13:13] hello [13:15] Hello anybody === zz_slidinghorn is now known as slidinghorn [14:06] * Mohan_chml greets bgs100 with a sword [14:07] * bgs100 greets Mohan_chml with a wave. [14:08] (: === nhandler_ is now known as nhandler === pleia2_ is now known as pleia2 [17:34] hello [17:34] How do I add a directory to my PATH? like /bin/ is one and /usr/bin is another [17:39] edit .bashrc in your ~ directory AFAIK... [17:39] there is a path variable in there if memory serves [17:43] test [17:43] tronyx: test successful [17:44] thanks :) [17:44] hey tronyx =] [17:44] howdy Mohan_chml. how goes? [17:44] tronyx, Its great :) how are you? [17:44] doing well thank you. about to go grab some lunch. i am thinking today is a good day for indian food [17:45] hopefully my coworkers agree =] [17:46] I am about to sleep :P 23:15 here [17:47] rest well :) gonna grab some lunch [17:47] take care Mohan_chml! [17:48] cya soon tronyx =] [18:42] How do I add a directory to my PATH? like /bin/ is one and /usr/bin is another [18:45] it's easy [18:45] nano ̃~/.bashrc [18:46] and add: export PATH=$PATH:/path/to/my/directory [18:46] ;/path/to/another/directory [18:47] or you can add that to /etc/bash.bashrc [18:49] thanks [18:58] 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] ? [19:01] harrisonk: just saying that it matters if you add your directory at the beginning or end of PATH [19:03] hi [19:05] 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] any help please? [19:09] sudo apt-get install gnome-power-manager [19:10] where to right it it stick in the user password place [19:10] no other screen [19:11] fatharrahman: Uh, what? [19:11] fatharrahman: Can you rephrase that? [19:13] 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] fatharrahman: Then... log in and run the command? [19:18] The message says the configuration default for GNOME power manager have not been installed correctly please contact your [19:18] and the log in screen stays stick hanged up [19:18] so is not loggin in [19:22] what to do please [19:24] 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] it gave me ubuntu login: | what should I write please [19:26] your username; press enter; your password; press enter [19:29] thank you very much the command appeared should I write sudo apt-get install gnome-power-manager now ? [19:30] 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] (if you are using Ubuntu Desktop) [19:39] 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] 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] ah, you fixed it already, good :) === karthick87 is now known as karthick87_awy [19:51] thank you yofel [19:51] you're welcome === karthick87_awy is now known as karthick87 === karthick87 is now known as karthick87_awy === karthick87_awy is now known as karthick87 [21:06] what is root ? in terminal for example [21:07] # [21:07] ? [21:08] fatharrahman: what exactly are you after knowing - are you trying to do something? [21:08] you'd use sudo to run a command as root [21:08] see this I think as if am lost [21:09] root [1] -help [21:09] Error: Symbol help is not defined in current scope (tmpfile):1: [21:09] (const int)0 [21:09] *** Interpreter error recovered *** [21:09] root [2] exit [21:09] (const void*)0x1b36e0 [21:09] root [3] [21:09] root [3] q [21:09] Error: Symbol q is not defined in current scope (tmpfile):1: [21:09] *** Interpreter error recovered *** [21:09] root [4] close [21:09] !paste | fatharrahman [21:09] 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] Error: Symbol close is not defined in current scope (tmpfile):1: [21:09] *** Interpreter error recovered *** [21:09] oh my word :( [21:09] root [5] exit [21:09] (const void*)0x1b36e0 [21:09] root [6] q [21:09] Error: Symbol q is not defined in current scope (tmpfile):1: [21:09] *** Interpreter error recovered *** [21:09] root [7] [21:09] sorry [21:10] sorry ubot2 [21:10] lol - don't do that again please :) [21:10] ok I promise [21:10] what is root? [21:11] 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] http://www.linfo.org/root.html [21:11] in ubuntu we use sudo instead of su unless we've fiddled about [21:12] how to change it [21:12] what do you mean - change it? [21:13] terminal was beginning with my name now it begin with root [21:13] aah [21:13] try exit [21:14] I tried did you saw my above annoyed paste :) [21:15] not really I was all a bit facepalm lol [21:15] so what were you doing to get a root prompt [21:16] I am learning from https://help.ubuntu.com/community/UsingTheTerminal [21:16] then became root [21:16] I don't know how [21:18] hello hobgoblin [21:18] sir [21:21] http://paste.ubuntu.com/535659/ [21:21] 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] Oh a paste. Reading. [21:22] sorry was afk [21:23] fatharrahman: no idea what that is :) [21:23] "exit" didn't work? [21:23] i yes [21:24] something to do with C is it? [21:24] see my paste [21:24] http://paste.ubuntu.com/535659/ [21:24] I have [21:24] .q [21:25] With the dot. Reminds me of vi [21:25] looks like an interpreter of some sort - I'd just close the terminal if it's not actually doing abything [21:25] yeeeeees [21:25] hobgoblin, It is. [21:25] it worked [21:25] Ok, my work here s done. Back to idling (coding elsewindow) I go ;) [21:25] jledbetter: I only ever used vi once and killed sudoers [21:26] Vi is neat. But I prefer gedit and Eclipse now. [21:26] thank you guys you are amazing then back to reading [21:27] You're welcome, fatharrahman. Keep exploring and poke us if you run into more blocks :) [21:27] ok my teacher [21:28] please accept my respect [21:29] jledbetter: nano is more than sufficient for me - programming is something you used to do with a video [21:30] Hard core, man. [21:32] * yofel uses vim and is happy [21:32] * hobgoblin shudders [21:33] does take some getting used to :D [21:34] if I was a programmer I guess I would use the like - but I fix boats :) [21:42] hobgoblin could I ask you few stupid qs [21:43] fatharrahman: there are no stupid questions - I will do my best to answer them for you [21:43] thank you am really grateful [21:43] :) [21:45] I read about terminal just wonder why use sudo first and some time use cat first ? [21:46] 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] I am not a programmer at all - no real idea of bash and stuff [21:47] hobgoblin: You know more then most. [21:47] hobgoblin: cat reads out a file. [21:48] ther you go :) [21:48] concatenate files and print on the standard output [21:48] fatharrahman: anyway sudo is about doing things as root [21:48] ok this is enough to me === karthick87 is now known as karthick87_awy [21:50] why would they call their command root ;/ sooo confusing [21:50] drubin: I got confused :) [21:50] hobgoblin: and so you should have it is confusing [21:50] everyone would.. [21:51] where can I find a webbook or documentation about detailed commands I mean [21:51] I mean [21:51] people give you a complete command [21:51] fatharrahman: you can read the documentation of a command with 'man ' [21:51] also see 'man man' [21:52] most commands also have a short documentaition if you run them with --help [21:52] fatharrahman: I write down some commands when I encounter them https://wiki.ubuntu.com/aveilleux/CommandsToRemember [21:52] * yofel looks.. [21:52] http://ss64.com/bash/ is quite nice [21:53] it is nice bit [21:54] but not detailed [21:54] oh nice [21:54] I mean detaied command [21:54] fatharrahman: see the manpage for details as I said [21:54] ok [21:54] fatharrahman: yeah, manpages. man . [21:54] anyway - fatharrahman - good luck - I am off now - anyone in here will help you [21:54] like 'man apt-get' will tell you all you need about it [21:56] I mean how to collect them or to instruct them correctly as you are building a phrase from a dictionary [21:57] fatharrahman: Can you rephrase that? [21:59] 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] fatharrahman: You mean... you don't know how to structure the command? As in, you don't know its syntax. [22:00] fatharrahman: Yes, so, in that case the manpages is exactly what you want. [22:00] yes yes [22:03] 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] fatharrahman: You can just open another Terminal window. [22:03] yofel [22:04] oh I never recognize that thank you aveilleux [22:04] fatharrahman: otherwise, Ubuntu publishes the manpages online. http://manpages.ubuntu.com/ [22:05] that is exactly what I need [22:05] thank you verry much aveilleux [22:05] thank you again [22:06] 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' will get you 'sudo apt-get dist-upgrade' [22:06] s/tabe/tab/ [22:06] by default tab will complete file and directory names [22:08] 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] (that's for all completions, not just command names) [22:10] 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] what is bash [22:11] np, we all took a while to learn how to use the terminal, but it's really handy [22:11] fatharrahman: the default shell, meaing the command line you're currently using is bash, there are other command line interpreters beside it [22:11] some times I type a command and a bash answer [22:12] fatharrahman: right, that's usually the shell (here: bash) telling you you did something wrong [22:12] yes [22:13] as if am talking to the computer [22:13] 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] is the bash an answering machine of my system ? [22:15] sorry [22:15] very stupid Qs [22:15] well, not really, it's the applications that's executing the commands you're entering, a bit tricky to explain.. [22:15] *application [22:15] aha! [22:15] ok I got it now [22:16] 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] thank you thank you thank you [22:17] fatharrahman: maybe to understand, run 'sh' in your terminal now, then you'll see the terminal starts behaving differently in some cases [22:18] you are very helpful [22:18] since you're now using dash and not bash anymore [22:18] run it ? [22:18] fatharrahman: type 'sh' and press enter ;) [22:18] ok [22:18] without the quotes [22:19] 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] to exit just type 'exit' or press ctrl+d [22:20] hello [22:20] what is wrong with this [22:21] what happened? [22:21] I don't know [22:21] is it a virus? [22:21] probably not, but what happened...? did you close the chat window or what? [22:22] Disconnected (). [22:22] No channel joined. Try /join # [22:22] No channel joined. Try /join # [22:22] I found this in screen [22:23] then purple long typed thing [22:23] erm, did you type /exit in your chat client? I meant in your terminal.. [22:23] oh yes in terminal [22:23] I tried to close manpage [22:24] but it doesn't close [22:24] for the manpage, just press 'q' [22:24] ok [22:25] I typed sh guess what? there is $ [22:25] what that mean? [22:26] 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] aha!! [22:27] what a knowledg [22:27] 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] 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] why you nice people don't write these basic informations ? in your books and blogs or pastes??/ ;) [22:28] to exit dash, run 'exit' or press ctrl+d [22:28] hard to say, I suck at writing wiki pages, and others probably didn't bother about it [22:30] 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] oh [22:31] coplicated [22:31] complicated [22:31] not really, you don't usually do that unless you want to use a different shell [22:32] may you please rephrase the difference between dash and bash? please [22:32] and bash really covers most things you'll want to do (*anything* a beginner would want to do) [22:32] aha [22:32] dash? [22:33] 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] er... same thing in different ways [22:34] oh [22:34] nice [22:34] 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] I understood you see I need to dig your mind to get this golden information [22:35] it's a symbolic link [22:35] I'm getting tired.. [22:35] sorry [22:35] np, It's a bit tricky to understand, took me a while too [22:36] I'll get back to read [22:36] you can also see 'man sh' and 'man bash'. They're quite technical though [22:37] ok take rest I will go back to read [22:37] thank you very much my teacher [22:37] for now you'll need to learn bash, just remember that sh is usually used by the system scripts [22:37] oh realy [22:38] I just run sudo apt-get update under sh [22:38] 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] is it save? [22:39] 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] hahaha you don't know me [22:40] I don't know any thing about computer [22:40] so [22:40] well, then again, sudo is the most dangerous command a beginner can use, remember that ;) [22:40] please what is script? [22:41] ok [22:41] fatharrahman: erm... in short: a text file that has command line commands in it and that you can execute [22:41] use sudo carefully ok [22:42] I don't really wanna gt you more tired [22:42] fatharrahman: you might also want to read http://ubuntuforums.org/announcement.php?f=394 about malicious commands - DO NOT USE THEM [22:43] I read about them in ubuntu forums but I can not recite them [22:44] could command destroy my hardwares or only endanger the softwares?? [22:45] sorryyyyy [22:45] I took a lot of your time please go rest sir [22:45] 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] np, happy reading! and come back if you have any questions (I'll be still here for at least an hour) [22:46] thank you I'll stop here I don't want you to get bore with me [22:46] ok [22:46] teacher [22:47] you are very kind [22:47] I'm not, I really like using the terminal (and getting others to use it too :P) [22:47] I'll coppy this conversation for my revision [22:48] i love terminal [22:48] thank you again am out now to reading [23:08] hi yofel are you around I have only one Q [23:08] sure [23:10] 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] it hang up some times i thought maybe due to law RAM [23:13] 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] *login manager, not managers [23:14] do you mean sudo apt-get install lubuntu-desktop? [23:17] fatharrahman: yes [23:18] do you also believe his slow Ubuntu will be faster if I installed lubuntu or do you have other suggestion [23:19] I adviced him to buy additional RAMs instead then I asked why don't try lubuntu [23:21] I'll see that latter back again to amuse terminal reading [23:26] I added you for terminal consultation sir [23:32] 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] it's a bit too late for me to do a in-depth analyzation of that right now [23:37] thank you