=== 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 | ||
ag[1] | hi | 06:01 |
---|---|---|
ag[1] | can i get help? | 06:01 |
ag[1] | 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:02 |
infinity | You don't want that. | 06:06 |
infinity | hostname is MEANT to be only the first part of the FQDN. | 06:06 |
infinity | (base)adconrad@cthulhu:~$ hostname | 06:06 |
infinity | cthulhu | 06:06 |
infinity | (base)adconrad@cthulhu:~$ hostname -f | 06:06 |
infinity | cthulhu.0c3.net | 06:06 |
ag[1] | ok thanks | 06:11 |
=== ag[1] [n=ag@71.194.133.215] has joined #ubuntu-server | ||
ag[1] | infinity, y wouldnt it be good | 06:13 |
infinity | 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:14 |
ag[1] | sorry, i am kind of new to the world of unix | 06:15 |
infinity | 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 |
infinity | But I highly recommend looking at WHY you want it to do that, and figuring out how to avoid it. :) | 06:16 |
ag[1] | im basically following this guide | 06:17 |
ag[1] | http://www.howtoforge.com/perfect_setup_ubuntu_6.06_p3 | 06:17 |
ag[1] | Now run | 06:17 |
ag[1] | hostname | 06:17 |
ag[1] | hostname -f | 06:17 |
ag[1] | Both should show server1.example.com. | 06:17 |
ag[1] | thats from the site | 06:17 |
infinity | Right, whoever wrote that shouldn't have. :) | 06:18 |
infinity | They shouldn't have written most of it, to be honest. | 06:18 |
infinity | Encouraging people to enable to root account isn't helpful either. | 06:18 |
infinity | Or encouraging them to install random software they don't need. | 06:19 |
infinity | This HOWTO's just filled with uselessness. | 06:19 |
ag[1] | then how would you be able to perform commands like apt-get without root | 06:19 |
infinity | 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:19 |
infinity | "sudo apt-get install foo" | 06:20 |
infinity | Or if you want to become root for an extended period "sudo su -" | 06:20 |
ag[1] | i just use "su" | 06:20 |
ag[1] | is that the same thing | 06:20 |
infinity | Yes, I know. I read the HOWTO. :P | 06:21 |
ag[1] | ok | 06:21 |
infinity | Using "su" means that you've set a root password. | 06:21 |
ag[1] | i shouldn't have done that? | 06:21 |
infinity | 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:21 |
infinity | It also means that you're far more likely to keep open a root shell and do silly things with it. | 06:22 |
infinity | While doing "sudo random-command" every time you want to run something is a subtle reminder that you might be breaking the world. | 06:22 |
ag[1] | any way to undo what i did | 06:23 |
infinity | 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:23 |
ag[1] | i c ur point, its a security threat | 06:24 |
infinity | "sudo passwd -d root" would delete root's password again. | 06:24 |
infinity | Though that doesn't seem to return the shadow record to factory fresh. | 06:24 |
infinity | Seems to do the trick anyway. | 06:25 |
ag[1] | so r u implying that it would be better to do a reinstall of unbuntu server | 06:25 |
infinity | 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 |
infinity | I don't think there's a single OS I've ever installed "just once" the first time I did it. | 06:26 |
ag[1] | that was what i was going to do | 06:27 |
infinity | 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 |
infinity | 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:28 |
ag[1] | ok | 06:30 |
ag[1] | ok now instead of using su i would use sudo [command] right | 06:32 |
infinity | Right. | 06:32 |
infinity | https://help.ubuntu.com/community/RootSudo <-- Might be a good read. | 06:33 |
ag[1] | Sudo is no different than gksu, right? | 06:35 |
infinity | gksudo, even. :) | 06:35 |
infinity | (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:35 |
ag[1] | I always use "gksu apt-get [command] " in Debain | 06:38 |
ag[1] | linux is very hard | 06:41 |
=== 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 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!