/srv/irclogs.ubuntu.com/2010/11/23/#ubuntu-beginners.txt

=== JoeSett is now known as JoeMaverickSett
=== yofel_ is now known as yofel
Brandon__hello13:13
Brandon__Hello anybody13:15
=== zz_slidinghorn is now known as slidinghorn
* Mohan_chml greets bgs100 with a sword14:06
* bgs100 greets Mohan_chml with a wave.14:07
Mohan_chml(:14:08
=== nhandler_ is now known as nhandler
=== pleia2_ is now known as pleia2
harrisonkhello17:34
harrisonkHow do I add a directory to my PATH? like /bin/ is one and /usr/bin is another17:34
nlsthznedit .bashrc in your ~ directory AFAIK...17:39
nlsthznthere is a path variable in there if memory serves17:39
tronyxtest17:43
nlsthzntronyx: test successful17:43
tronyxthanks :)17:44
Mohan_chmlhey tronyx =]17:44
tronyxhowdy Mohan_chml.  how goes?17:44
Mohan_chmltronyx, Its great :) how are you?17:44
tronyxdoing well thank you.  about to go grab some lunch.  i am thinking today is a good day for indian food17:44
tronyxhopefully my coworkers agree =]17:45
Mohan_chmlI am about to sleep :P 23:15 here17:46
tronyxrest well :) gonna grab some lunch17:47
tronyxtake care Mohan_chml!17:47
Mohan_chmlcya soon tronyx =]17:48
harrisonkHow do I add a directory to my PATH? like /bin/ is one and /usr/bin is another18:42
bioterrorit's easy18:45
bioterrornano ̃~/.bashrc18:45
bioterrorand add: export PATH=$PATH:/path/to/my/directory18:46
bioterror;/path/to/another/directory18:46
bioterroror you can add that to /etc/bash.bashrc18:47
harrisonkthanks18:49
yofelharrisonk: 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 used18:58
harrisonk?18:59
yofelharrisonk: just saying that it matters if you add your directory at the beginning or end of PATH19:01
fatharrahmanhi19:03
fatharrahmanmy 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 this19:05
fatharrahmanany help please?19:08
bioterrorsudo apt-get install gnome-power-manager19:09
fatharrahmanwhere to right it it stick in the user password place19:10
fatharrahmanno other screen19:10
aveilleuxfatharrahman: Uh, what?19:11
aveilleuxfatharrahman: Can you rephrase that?19:11
fatharrahmanwhen  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 in19:13
aveilleuxfatharrahman: Then... log in and run the command?19:16
fatharrahmanThe message says the configuration default for GNOME  power manager have not been installed correctly please contact your19:18
fatharrahmanand the log in screen stays stick hanged up19:18
fatharrahmanso is not loggin in19:18
fatharrahmanwhat to do please19:22
yofelfatharrahman: 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 command19:24
fatharrahmanit gave me ubuntu login: | what should I write please19:26
yofelyour username; press enter; your password; press enter19:26
fatharrahmanthank you very much the command appeared  should I write sudo apt-get install gnome-power-manager now ?19:29
yofelyes, 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 installed19:30
yofel(if you are using Ubuntu Desktop)19:31
fatharrahmanyes 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 scholars19:39
yofelouch, 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
yofelah, you fixed it already, good :)19:41
=== karthick87 is now known as karthick87_awy
fatharrahmanthank you yofel19:51
yofelyou're welcome19:51
=== karthick87_awy is now known as karthick87
=== karthick87 is now known as karthick87_awy
=== karthick87_awy is now known as karthick87
fatharrahmanwhat is root ? in terminal for example21:06
hobgoblin#21:07
fatharrahman?21:07
hobgoblinfatharrahman: what exactly are you after knowing - are you trying to do something?21:08
hobgoblinyou'd use sudo to run a command as root21:08
fatharrahmansee this I  think as if am lost21:08
fatharrahmanroot [1] -help21:09
fatharrahmanError: Symbol help is not defined in current scope  (tmpfile):1:21:09
fatharrahman(const int)021:09
fatharrahman*** Interpreter error recovered ***21:09
fatharrahmanroot [2] exit21:09
fatharrahman(const void*)0x1b36e021:09
fatharrahmanroot [3]21:09
fatharrahmanroot [3] q21:09
fatharrahmanError: Symbol q is not defined in current scope  (tmpfile):1:21:09
fatharrahman*** Interpreter error recovered ***21:09
fatharrahmanroot [4] close21:09
aveilleux!paste | fatharrahman21:09
ubot2fatharrahman: 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
fatharrahmanError: Symbol close is not defined in current scope  (tmpfile):1:21:09
fatharrahman*** Interpreter error recovered ***21:09
hobgoblinoh my word :(21:09
fatharrahmanroot [5] exit21:09
fatharrahman(const void*)0x1b36e021:09
fatharrahmanroot [6] q21:09
fatharrahmanError: Symbol q is not defined in current scope  (tmpfile):1:21:09
fatharrahman*** Interpreter error recovered ***21:09
fatharrahmanroot [7]21:09
fatharrahmansorry21:09
fatharrahmansorry ubot221:10
hobgoblinlol - don't do that again please :)21:10
fatharrahmanok I promise21:10
fatharrahmanwhat is root?21:10
hobgoblinroot is the user name or account that by default has access to all commands and files on a Linux or other Unix-like operating system21:11
hobgoblinhttp://www.linfo.org/root.html21:11
hobgoblinin ubuntu we use sudo instead of su unless we've fiddled about21:11
fatharrahmanhow to change it21:12
hobgoblinwhat do you mean - change it?21:12
fatharrahmanterminal was beginning  with my name now it begin with root21:13
hobgoblinaah21:13
hobgoblintry exit21:13
fatharrahmanI tried did you saw my above annoyed paste :)21:14
hobgoblinnot really I was all a bit facepalm lol21:15
hobgoblinso what were you doing to get a root prompt21:15
fatharrahmanI am learning from https://help.ubuntu.com/community/UsingTheTerminal21:16
fatharrahmanthen became root21:16
fatharrahmanI don't know how21:16
fatharrahmanhello hobgoblin21:18
fatharrahmansir21:18
fatharrahmanhttp://paste.ubuntu.com/535659/21:21
jledbetterDidn'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
jledbetterOh a paste. Reading.21:21
hobgoblinsorry was afk21:22
hobgoblinfatharrahman: no idea what that is :)21:23
jledbetter"exit" didn't work?21:23
fatharrahmani yes21:23
hobgoblinsomething to do with C is it?21:24
fatharrahmansee my paste21:24
fatharrahmanhttp://paste.ubuntu.com/535659/21:24
hobgoblinI have21:24
jledbetter   .q21:24
jledbetterWith the dot. Reminds me of vi21:25
hobgoblinlooks like an interpreter of some sort - I'd just close the terminal if it's not actually doing abything21:25
fatharrahmanyeeeeees21:25
jledbetterhobgoblin, It is.21:25
fatharrahmanit worked21:25
jledbetterOk, my work here s done. Back to idling (coding elsewindow) I go ;)21:25
hobgoblinjledbetter: I only ever used vi once and killed sudoers21:25
jledbetterVi is neat. But I prefer gedit and Eclipse now.21:26
fatharrahmanthank you guys you are amazing then back to reading21:26
jledbetterYou're welcome, fatharrahman. Keep exploring and poke us if you run into more blocks :)21:27
fatharrahmanok my teacher21:27
fatharrahmanplease accept my respect21:28
hobgoblinjledbetter: nano is more than sufficient for me - programming is something you used to do with a video21:29
jledbetterHard core, man.21:30
* yofel uses vim and is happy21:32
* hobgoblin shudders 21:32
yofeldoes take some getting used to :D21:33
hobgoblinif I was a programmer I guess I would use the like - but I fix boats :)21:34
fatharrahmanhobgoblin could I ask you few stupid qs21:42
hobgoblinfatharrahman: there are no stupid questions - I will do my best to answer them for you21:43
fatharrahmanthank you am really grateful21:43
hobgoblin:)21:43
fatharrahmanI read about terminal just wonder why use sudo first and some time use cat first ?21:45
hobgoblink - sudo gives you temporary rights as root - cat does all sorts of things - I only ever use it though to read a file in terminal21:46
hobgoblinI am not a programmer at all - no real idea of bash and stuff21:47
drubinhobgoblin: You know more then most.21:47
aveilleuxhobgoblin: cat reads out a file.21:47
hobgoblinther you go :)21:48
drubinconcatenate files and print on the standard output21:48
hobgoblinfatharrahman: anyway sudo is about doing things as root21:48
fatharrahmanok this is enough to me21:48
=== karthick87 is now known as karthick87_awy
drubinwhy would they call their command root ;/ sooo confusing21:50
hobgoblindrubin: I got confused :)21:50
drubinhobgoblin: and so you should have it is confusing21:50
yofeleveryone would..21:50
fatharrahmanwhere can I find a webbook or documentation  about detailed commands I mean21:51
fatharrahmanI mean21:51
fatharrahmanpeople give you a complete command21:51
yofelfatharrahman: you can read the documentation of a command with 'man <command>'21:51
yofelalso see 'man man'21:51
yofelmost commands also have a short documentaition if you run them with --help21:52
aveilleuxfatharrahman: I write down some commands when I encounter them https://wiki.ubuntu.com/aveilleux/CommandsToRemember21:52
* yofel looks..21:52
hobgoblinhttp://ss64.com/bash/    is quite nice21:52
fatharrahmanit is nice bit21:53
fatharrahmanbut not detailed21:54
yofeloh nice21:54
fatharrahmanI mean detaied command21:54
yofelfatharrahman: see the manpage for details as I said21:54
fatharrahmanok21:54
aveilleuxfatharrahman: yeah, manpages. man <command>.21:54
hobgoblinanyway - fatharrahman - good luck - I am off now - anyone in here will help you21:54
yofellike 'man apt-get' will tell you all you need about it21:54
fatharrahmanI mean how to collect them or to instruct them correctly as you are building a phrase from a dictionary21:56
aveilleuxfatharrahman: Can you rephrase that?21:57
fatharrahmanit 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 output21:59
aveilleuxfatharrahman: You mean... you don't know how to structure the command? As in, you don't know its syntax.21:59
aveilleuxfatharrahman: Yes, so, in that case the manpages is exactly what you want.22:00
fatharrahmanyes yes22:00
fatharrahmanis there any other source than mapages because I like to type in terminal while i read about it so as ro fix it in mind22:03
aveilleuxfatharrahman: You can just open another Terminal window.22:03
fatharrahmanyofel22:03
fatharrahmanoh I never recognize that thank you aveilleux22:04
aveilleuxfatharrahman: otherwise, Ubuntu publishes the manpages online. http://manpages.ubuntu.com/22:04
fatharrahmanthat is exactly what I need22:05
fatharrahmanthank you verry much aveilleux22:05
fatharrahmanthank you again22:05
yofelwell, 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
yofels/tabe/tab/22:06
yofelby default tab will complete file and directory names22:06
yofelcommand names are also completed, and if you have multiple completions, pressing tab a second time will give you a list of possibilities - *very* useful22:08
yofel(that's for all completions, not just command names)22:08
fatharrahmanI 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 yofel22:10
fatharrahmanwhat is bash22:11
yofelnp, we all took a while to learn how to use the terminal, but it's really handy22:11
yofelfatharrahman: the default shell, meaing the command line you're currently using is bash, there are other command line interpreters beside it22:11
fatharrahmansome times I type a command and a bash answer22:11
yofelfatharrahman: right, that's usually the shell (here: bash) telling you you did something wrong22:12
fatharrahmanyes22:12
fatharrahmanas if am talking to the computer22:13
yofelthere 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 distributions22:13
fatharrahmanis the bash  an answering machine of my system ?22:14
fatharrahmansorry22:15
fatharrahmanvery stupid Qs22:15
yofelwell, not really, it's the applications that's executing the commands you're entering, a bit tricky to explain..22:15
yofel*application22:15
fatharrahmanaha!22:15
fatharrahmanok I got it now22:15
yofelit 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 think22:16
fatharrahmanthank you thank you thank you22:17
yofelfatharrahman: maybe to understand, run 'sh' in your terminal now, then you'll see the terminal starts behaving differently in some cases22:17
fatharrahmanyou are very helpful22:18
yofelsince you're now using dash and not bash anymore22:18
fatharrahmanrun it ?22:18
yofelfatharrahman: type 'sh' and press enter ;)22:18
fatharrahmanok22:18
yofelwithout the quotes22:18
yofelnow 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 can22:19
yofelto exit just type 'exit' or press ctrl+d22:19
fatharrahmanhello22:20
fatharrahmanwhat is wrong with this22:20
yofelwhat happened?22:21
fatharrahmanI don't know22:21
fatharrahmanis it a virus?22:21
yofelprobably not, but what happened...? did you close the chat window or what?22:21
fatharrahmanDisconnected ().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 screen22:22
fatharrahmanthen  purple long typed thing22:23
yofelerm, did you type /exit in your chat client? I meant in your terminal..22:23
fatharrahmanoh yes in terminal22:23
fatharrahmanI tried to close manpage22:23
fatharrahmanbut it doesn't close22:24
yofelfor the manpage, just press 'q'22:24
fatharrahmanok22:24
fatharrahmanI typed sh guess what? there is $22:25
fatharrahmanwhat that mean?22:25
yofelright, 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
fatharrahmanaha!!22:26
fatharrahmanwhat a knowledg22:27
yofelyou'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
yofelmaybe 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 use22:27
fatharrahmanwhy you nice people don't write these basic informations ? in your books and blogs or pastes??/ ;)22:28
yofelto exit dash, run 'exit' or press ctrl+d22:28
yofelhard to say, I suck at writing wiki pages, and others probably didn't bother about it22:28
yofelafter 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 shell22:30
fatharrahmanoh22:30
fatharrahmancoplicated22:31
fatharrahmancomplicated22:31
yofelnot really, you don't usually do that unless you want to use a different shell22:31
fatharrahmanmay you please rephrase the difference between dash and bash? please22:32
yofeland bash really covers most things you'll want to do (*anything* a beginner would want to do)22:32
fatharrahmanaha22:32
fatharrahmandash?22:32
yofelfatharrahman: 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
yofeler... same thing in different ways22:33
fatharrahmanoh22:34
fatharrahmannice22:34
yofela bit advanced excurse: if you run 'ls -l /bin/sh' you'll see that it's symbolik link that points to dash22:34
fatharrahmanI understood you see I need to dig your mind to get this golden information22:35
yofelit's a symbolic link22:35
yofelI'm getting tired..22:35
fatharrahmansorry22:35
yofelnp, It's a bit tricky to understand, took me a while too22:35
fatharrahmanI'll get back to read22:36
yofelyou can also see 'man sh' and 'man bash'. They're quite technical though22:36
fatharrahmanok take rest I will go back to read22:37
fatharrahmanthank you very much my teacher22:37
yofelfor now you'll need to learn bash, just remember that sh is usually used by the system scripts22:37
fatharrahmanoh realy22:37
fatharrahmanI just run sudo apt-get update under sh22:38
yofelif you open a script in an editor, you'll see what interpreter is used in line 1, the 'shebang' line #!/bin/sh for example22:38
fatharrahmanis it save?22:38
yofelthat'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 line22:39
fatharrahmanhahaha you don't know me22:39
fatharrahmanI don't know any thing about computer22:40
fatharrahmanso22:40
yofelwell, then again, sudo is the most dangerous command a beginner can use, remember that ;)22:40
fatharrahmanplease what is script?22:40
fatharrahmanok22:41
yofelfatharrahman: erm... in short: a text file that has command line commands in it and that you can execute22:41
fatharrahmanuse sudo carefully ok22:41
fatharrahmanI don't really wanna gt you more tired22:42
yofelfatharrahman: you might also want to read http://ubuntuforums.org/announcement.php?f=394 about malicious commands - DO NOT USE THEM22:42
fatharrahmanI read about them in ubuntu forums but I can not recite them22:43
fatharrahmancould command destroy my hardwares or only endanger the softwares??22:44
fatharrahmansorryyyyy22:45
fatharrahmanI took a lot of your time please go rest sir22:45
yofelI think there might be command that could, maybe under some cases affect hardware if used in /sys or /proc, but usually no22:45
yofelnp, happy reading! and come back if you have any questions (I'll be still here for at least an hour)22:46
fatharrahmanthank you I'll stop here  I don't want you to get bore with me22:46
fatharrahmanok22:46
fatharrahmanteacher22:46
fatharrahmanyou are very kind22:47
yofelI'm not, I really like using the terminal (and getting others to use it too :P)22:47
fatharrahmanI'll coppy this conversation for my revision22:47
fatharrahmani love terminal22:48
fatharrahmanthank you again am out now to reading22:48
fatharrahmanhi yofel are you around I have only one Q23:08
yofelsure23:08
fatharrahmanI 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:10
fatharrahmanit  hang up some times i thought maybe due to law RAM23:11
yofelwell, 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 managers23:13
fatharrahmando you mean sudo apt-get install lubuntu-desktop?23:14
yofelfatharrahman: yes23:17
fatharrahmando you also believe his slow Ubuntu will be faster if I installed lubuntu or do you have other suggestion23:18
fatharrahmanI adviced him to buy additional RAMs instead then I asked why don't try lubuntu23:19
fatharrahmanI'll see that latter back again to amuse terminal reading23:21
fatharrahmanI added you for terminal consultation  sir23:26
yofelhard 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 vague23:32
yofelit's a bit too late for me to do a in-depth analyzation of that right now23:33
fatharrahmanthank you23:37

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!