Nieuws:

Ubuntu-NL weer online!

Na een periode van technische problemen en een overbelaste server zijn we eindelijk weer bereikbaar.
Samen met Hobbynet, onze sponsor en hostingpartner, hebben we een oplossing gevonden zodat alles weer soepel draait.

Bedankt voor jullie geduld en begrip. We hopen nu weer verder te gaan waar we gebleven waren.

Het team van Ubuntu-NL

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: computernaam  (gelezen 2191 keer)

Offline jmartijn

  • Lid
computernaam
« Gepost op: 2010/04/03, 15:16:07 »
Beste mensen, wie kan mij, beginner, uitleggen hoe ik bij de computernaam kom om die te veranderen. Om Filezilla te kunnen gebruiken moet de computernaam namelijk dezelfde zijn als die op de Windows (sorry) schijf. Dank voor de aandacht.
Martijn

Re: computernaam
« Reactie #1 Gepost op: 2010/04/03, 15:20:27 »
Citaat
Om Filezilla te kunnen gebruiken moet de computernaam namelijk dezelfde zijn als die op de Windows (sorry) schijf

Welkom op dit forum.

Ik dacht anders dat Filezilla bruikbaar was rechtstreeks in Linux, of zie ik het verkeerd?
Laptop MSI U123 (160 GB) 1 GB ramMint Cinnamon 18 LTS
Laptop Toshiba Tecra  (80GB) 2 GB ram Fedora 24
Dell Latitude D600 Pentium M 1400MHz 512MB ram
Bouwjaar 2003 met Debian 8 (Jessie)

Offline jan11000

  • Lid
Re: computernaam
« Reactie #2 Gepost op: 2010/04/03, 15:59:54 »
    (07:24:34 PM) R0b0t1: Is there a way to change the computers’ name? EG, the name that appears in the terminal.

So, your computer’s name, or hostname, isn’t what you want any longer. Possibly, you misspelled it during the installation process (trust me, I’ve done it). Whatever reason you have for changing it, it’s easier than you might think.
Do It The GUI way

You have two possible options. The first is through the network-admin desktop application. On 8.04 Hardy Heron, it’s installed by default. However, on 8.10 Intrepid Ibex, it is not. Use Synaptic to install gnome-network-admin or use sudo apt-get install gnome-network-admin at a command prompt.

To run the application, choose System > Administration > Network. On the following Network Settings window, click on the General tab.

screenshot-network_settings

There you’ll see the Host Settings. Click the Unlock button and enter your passphrase to authenticate yourself to change the Host name. To finish, click Close and you’ll see a warning about having to login again. Click on Change Host name, and click Close again. Once you’re done, give your machine a restart and you’re set to go.
No GUI? Do It On The CLI

Your second option is from a command line. There are two files that need to be changed: /etc/hostname and /etc/hosts . Use your favorite text editor (I use nano for these edits) and open each one. You’ll need to use sudo since you’re changing system files.

First we change the /etc/hosts file.
sudo nano /etc/hosts

This is what my server’s hosts file looks like.

    adam@oracle:~$ cat /etc/hosts
    127.0.0.1    localhost
    127.0.1.1    oracle

    # The following lines are desirable for IPv6 capable hosts
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts

You can see my server’s name next to 127.0.1.1 as oracle. You should see your computer’s name at that same IP. Just replace it with your new choice. Save and close that file and open your /etc/hostname file.
sudo nano /etc/hostname

This one is very simple. All that should be there is your computer’s current name. Replace it with your new choice, save and close. Now, all that’s left is to reboot the machine.

For a temporary fix, you can use the hostname command.
sudo hostname your_new_hostname

I’ve also read elsewhere that you don’t need to reboot after changing the hostname as much as you just need to re-login. I feel it’s best to be safe and just reboot. You can choose whichever is best for you.

Offline jmartijn

  • Lid
Re: computernaam
« Reactie #3 Gepost op: 2010/04/03, 17:50:59 »
Citaat
Om Filezilla te kunnen gebruiken moet de computernaam namelijk dezelfde zijn als die op de Windows (sorry) schijf

Welkom op dit forum.

Ik dacht anders dat Filezilla bruikbaar was rechtstreeks in Linux, of zie ik het verkeerd?

Het gaat om de Netgear router, waarin de pc naam dezelfde moet zijn als die van mijn Windows schijf. Daarom moet de pc naam van de Linux schijf dezelfde zijn als de Windows schijf.

Re: computernaam
« Reactie #4 Gepost op: 2010/04/03, 23:22:58 »
Start het terminalvenster op: (Toepassingen-->Hulpmiddelen-->Terminalvenster)
Typ dan het volgende in:
gksudo gedit /etc/hosts /etc/hostname
Dan verander je in allebei de bestanden de huidige computernaam in wat het moet zijn.
(Hier gevonden: http://ubuntuforums.org/showthread.php?t=224722 (3e post))
PC: Processor - AMD Athlon II X4 640 (quad core, 3.0GHz), 4GB DDR2 RAM 800MHz, Videokaart: ATI Sapphire HD4850 met 512MB geheugen, 500gb 7200RPM HDD, Ubuntu 12.04 LTS

Wat doe je als je vraag is opgelost?

Offline jmartijn

  • Lid
Re: computernaam
« Reactie #5 Gepost op: 2010/04/04, 11:31:32 »
Beste mensen,
Bedankt voor de hulp. Ik ga ermee aan de slag! Groeten,
Martijn.