zmenit hostname
uz som to tu riesil raz ... ale dopadlo to zle, v tedy som zadal:
i@ubuntu:~$ sudo su
[sudo] password for i:
root@ubuntu:/home/i# hostname blackee
... a odpojilo ma to z wifi ... a potom sa uz riesil iba problem ako rzobehat wifi ....
moze mi sem niekto napisat 100% navod ako to zmenim, bez toho aby mi to rozhodilo siet? Ja sa do toho nevyznam, ale su tam nejake viazane sluzby na hostname ci co ...
ta predosla diskusia
dik
Pre pridávanie komentárov sa musíte prihlásiť.
http://www.ducea.com/2006/08/07/how-to-change-the-hostname-of-a-linux-system/
/etc/hosts
podla prislusneho hostnamu.potom staci restartnut siet a malo by to slapat bez problemov
na vyber je :
/etc/hstname
/etc/conf.d/hostname
find /etc -name hostname\*
iwconfig wlan0 nickname BLABLABLA, alebo sa môžem mýliť....
pochopil som, ze teda cez ziadne okno to v Ubuntu nespravim, jedine cez terminal?
cize tam mam napisat toto ?
@ubuntu:~$ sudo su
[sudo] password for i:
root@ubuntu:/home/i# hostname blackee
potom ma akoze asi odpoji od siete ale to si nemam vsimat a dalej do terminalu pisat:
/etc/hstname ... a tam co daco mi vypise a mam restarotovat comp a vsetko by malo ist, internet sa pripoji tak jak pred tym a vsetci ostatni v sieti ma budu vidiet ako Blackee ???
i@ubuntu:~$ sudo iwconfig
[sudo] password for i:
lo no wireless extensions.
eth0 no wireless extensions.
eth1 IEEE 802.11abg ESSID:"" Nickname:""
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Bit Rate:54 Mb/s Tx-Power:32 dBm
Retry min limit:7 RTS thr:off Fragment thr:off
Power Managementmode:All packets received
Link Quality=5/5 Signal level=-57 dBm Noise level=-94 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
pan0 no wireless extensions.
i@ubuntu:~$ iwconfig eth1 nickname blackee
Error for wireless request "Set Nickname" (8B1C) :
SET failed on device eth1 ; Operation not permitted.
i@ubuntu:~$
i@ubuntu:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1f:29:8c:2d:80
inet addr:146.102.252.32 Bcast:146.102.253.255 Mask:255.255.254.0
inet6 addr: fec0::8:21f:29ff:fe8c:2d80/64 Scope:Site
inet6 addr: 2002:9266:fc3c:8:21f:29ff:fe8c:2d80/64 Scope:Global
inet6 addr: fe80::21f:29ff:fe8c:2d80/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26663903 errors:0 dropped:0 overruns:0 frame:0
TX packets:1353129 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:32835507625 (32.8 GB) TX bytes:457922070 (457.9 MB)
Memory:e4600000-e4620000
eth1 Link encap:Ethernet HWaddr 00:21:00:14:75:0d
inet6 addr: fe80::221:ff:fe14:750d/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:419
TX packets:8 errors:114 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:2254 (2.2 KB)
Interrupt:17
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:64970 errors:0 dropped:0 overruns:0 frame:0
TX packets:64970 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1980787 (1.9 MB) TX bytes:1980787 (1.9 MB)
i@ubuntu:~$