Home arrow BrainDump arrow Page 4 - Maintaining a Linux Wireless Access Point

4.14 Changing the Pyramid Routerís Hostname - BrainDump

In this fourth part of a five-part series on building a Linux wireless access point, you'll learn about firewalling, routing, and more. This article is excerpted from chapter four of the Linux Networking Cookbook, written by Carla Schroder (O'Reilly; ISBN: 0596102488). Copyright © 2008 O'Reilly Media, Inc. All rights reserved. Used with permission from the publisher. Available from booksellers or direct from O'Reilly Media.

TABLE OF CONTENTS:
  1. Maintaining a Linux Wireless Access Point
  2. 4.12 Using Routing Instead of Bridging
  3. 4.13 Probing Your Wireless Interface Card
  4. 4.14 Changing the Pyramid Routerís Hostname
By: O'Reilly Media
Rating: starstarstarstarstar / 1
February 08, 2010

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
 

Problem

Pyramid is a nice name, but you really want to change it to something else. You tried editing /etc/hostname, but the name reset to Pyramid after reboot. Arg! How do you make it what you want?

Solution

The files listed in /etc/rw/ are mounted in a temporary writeable filesystem, and are copied from /etc/ro at boot. /etc/hostname is symlinked to /rw/etc/hostname:

  pyramid:~# ls -l /etc/hostname
  lrwxrwxrwx  1 root root 18 Oct 30 2006 /etc/hostname -> ../rw/etc/hostname

So, you can make /etc/hostname immutable (remove the symlink to /rw/etc/hostname), or edit /ro/etc/hostname.

Discussion

The filesystem is set up this way to reduce writes, because Compact Flash supports a limited number of writes.

You can use find to see which files in /etc are symlinks:

  pyramid:~# find /etc -maxdepth 1 -type l -ls

6051 0 lrwxrwxrwx 1 root

root

14 Oct 4

2006 /etc/mtab -> ../proc/

mounts

 

 

 

6052 0 lrwxrwxrwx 1 root

root

21 Oct 4

2006 /etc/resolv.conf -> ../

rw/etc/resolv.conf

 

 

 

6079 0 lrwxrwxrwx 1 root

root

30 Dec 31

2006 /etc/localtime -> /usr/

share/zoneinfo/US/Pacific

 

 

 

6081 0 lrwxrwxrwx 1 root

root

18 Oct 4

2006 /etc/hostname -> ../rw/

etc/hostname

 

 

 

6156 0 lrwxrwxrwx 1 root

root

15 Oct 4

2006 /etc/issue -> ../rw/

etc/issue

 

 

 

6195 0 lrwxrwxrwx 1 root

root

17 Oct 4

2006 /etc/zebra -> ../usr/

local/etc/

 

 

 

6227 0 lrwxrwxrwx 1 root

root

16 Oct 4

2006 /etc/resolv -> ../rw/

etc/resolv

 

 

 

6426 0 lrwxrwxrwx 1 root

root

19 Oct 4

2006 /etc/issue.net -> ../

rw/etc/issue.net

 

 

 

6427 0 lrwxrwxrwx 1 root

root

17 Oct 4

2006 /etc/adjtime -> ../rw/

etc/adjtime

 

 

 

See Also

  1. man 1 find
  2. man 1 ls

Please check back for the conclusion to this series.



 
 
>>> More BrainDump Articles          >>> More By O'Reilly Media
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

BRAINDUMP ARTICLES

- Apple Founder Steve Jobs Dies
- Steve Jobs` Era at Apple Ends
- Google's Chrome Developer Tool Updated
- Google's Chrome 6 Browser Brings Speed to th...
- New Open Source Update Fedora 13 is Released...
- Install Linux with Knoppix
- iPad Developers Flock To SDK 3.2
- Managing a Linux Wireless Access Point
- Maintaining a Linux Wireless Access Point
- Securing a Linux Wireless Access Point
- Configuring a Linux Wireless Access Point
- Building a Linux Wireless Access Point
- Migrating Oracle to PostgreSQL with Enterpri...
- Demystifying SELinux on Kernel 2.6
- Yahoo and Microsoft Create Ad Partnership

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: