=== zenrox [n=zenrox@pool-71-120-239-162.spknwa.dsl-w.verizon.net] has joined #ubuntu-server === ag[1] [n=ag@71.194.133.215] has joined #ubuntu-server [06:01] hi [06:01] can i get help? [06:02] i'm trying to make hostname and hostname -f to be the same, so i edit /etc/hosts (line 1) 127.0.0.1 localhost.localdomain localhost (line 2) 192.168.2.110 ahazg.pc but it doesnt work when i type hostname i get ahazg and for hostname -f i get ahazg.pc i want both to be ahazg.pc [06:06] You don't want that. [06:06] hostname is MEANT to be only the first part of the FQDN. [06:06] (base)adconrad@cthulhu:~$ hostname [06:06] cthulhu [06:06] (base)adconrad@cthulhu:~$ hostname -f [06:06] cthulhu.0c3.net [06:11] ok thanks === ag[1] [n=ag@71.194.133.215] has joined #ubuntu-server [06:13] infinity, y wouldnt it be good [06:14] ag[1] : Let me reverse the question -- Why do you want it to violate spec and the expectation of every piece of UNIX software ever written? [06:15] sorry, i am kind of new to the world of unix [06:16] Anyhow, if you're insistent on breaking it, you can set a FQDN in /etc/hostname, which will set your hostname on boot to be what you want. [06:16] But I highly recommend looking at WHY you want it to do that, and figuring out how to avoid it. :) [06:17] im basically following this guide [06:17] http://www.howtoforge.com/perfect_setup_ubuntu_6.06_p3 [06:17] Now run [06:17] hostname [06:17] hostname -f [06:17] Both should show server1.example.com. [06:17] thats from the site [06:18] Right, whoever wrote that shouldn't have. :) [06:18] They shouldn't have written most of it, to be honest. [06:18] Encouraging people to enable to root account isn't helpful either. [06:19] Or encouraging them to install random software they don't need. [06:19] This HOWTO's just filled with uselessness. [06:19] then how would you be able to perform commands like apt-get without root [06:19] It's more like this guy's notes on how HE likes to setup HIS machine, but it seems useless to post it publically for others to follow. [06:20] "sudo apt-get install foo" [06:20] Or if you want to become root for an extended period "sudo su -" [06:20] i just use "su" [06:20] is that the same thing [06:21] Yes, I know. I read the HOWTO. :P [06:21] ok [06:21] Using "su" means that you've set a root password. [06:21] i shouldn't have done that? [06:21] Which means you now get to deal with making sure daemons don't allow root authentication and other such, making it easier for people to brute-force root. [06:22] It also means that you're far more likely to keep open a root shell and do silly things with it. [06:22] While doing "sudo random-command" every time you want to run something is a subtle reminder that you might be breaking the world. [06:23] any way to undo what i did [06:23] But, *shrug*... It's up to you. We don't stop you from enabling root. I just wish 3rd party documentation wouldn't TELL people to enable it as if you absolutely must do it. Certainly not without first discussing the pros/cons. [06:24] i c ur point, its a security threat [06:24] "sudo passwd -d root" would delete root's password again. [06:24] Though that doesn't seem to return the shadow record to factory fresh. [06:25] Seems to do the trick anyway. [06:25] so r u implying that it would be better to do a reinstall of unbuntu server [06:26] Nah. Though, if you're just learning and breaking things anyway, you'll probably end up taking some notes, and reinstalling again in a day or two to make sure you understand what you've learned. :) [06:26] I don't think there's a single OS I've ever installed "just once" the first time I did it. [06:27] that was what i was going to do [06:28] Also, word of advice. If you don't want to drive people on technical IRC channels completely insane, try to avoid AOL/TXTisms like "i c ur point" and "r u implying"... [06:28] It doesn't take much longer to type the whole word out, and we will be less likely to want to gouge our eyes out. [06:30] ok [06:32] ok now instead of using su i would use sudo [command] right [06:32] Right. [06:33] https://help.ubuntu.com/community/RootSudo <-- Might be a good read. [06:35] Sudo is no different than gksu, right? [06:35] gksudo, even. :) [06:35] (gksu and gksudo are in the same package, mind you, but one behaves like su -- asking for the root password -- the other behaves like sudo, asking for your password and obeying /etc/sudoers) [06:38] I always use "gksu apt-get [command] " in Debain [06:41] linux is very hard === ag[1] [n=ag@71.194.133.215] has left #ubuntu-server [] === lbm [n=lbm@82.192.173.92] has joined #ubuntu-server === Baltazar^2 [n=WhyBothe@BSN-61-78-153.dsl.siol.net] has joined #ubuntu-server === Baltazar^2 [n=WhyBothe@BSN-61-78-153.dsl.siol.net] has left #ubuntu-server [] === ivoks [n=ivoks@ubuntu/member/ivoks] has joined #ubuntu-server === Ries [n=Ries@200.63.220.5] has joined #ubuntu-server === tmarble [n=tmarble@user-0cdvpct.cable.mindspring.com] has joined #ubuntu-server === Ries [n=Ries@200.63.220.5] has joined #ubuntu-server === zenrox [n=zenrox@pool-71-120-239-162.spknwa.dsl-w.verizon.net] has joined #ubuntu-server === allee [n=ach@dialin-212-144-132-079.pools.arcor-ip.net] has joined #ubuntu-server === Valery [n=valery@217.196.165.225] has joined #ubuntu-server === Ries [n=Ries@200.63.220.5] has left #ubuntu-server [] === Ries [n=Ries@200.63.220.5] has joined #ubuntu-server