Help how to Edit hosts file in Apple TV1??
#1
Hi,

I am sorry, I did look around how to edit hosts file in Apple TV1 (1st Generation)?

I have tried using WinSCP and found hosts file it /etc/ folder and highlight and select edit but cannot due to restriction or permission problem. I did entered password when I was SSH Userid: frontrow Pass: frontrow.

If anyone know how to edit then please post.

Thanks,
JR
Reply
#2
ssh in and edit it directly, /etc/hosts is owned by root so you have to sudo it.


sudo nano /etc/hosts
Reply
#3
davilla Wrote:ssh in and edit it directly, /etc/hosts is owned by root so you have to sudo it.


sudo nano /etc/hosts

I am sorry buddy, I don't know how to...
All I want to edit following line into my aTV1 hosts file?

I do have PuTTy and WinSCP.

I know Apple TV2 following commands and update hosts file but cannot do it in Apple TV1.

echo "127.0.0.1 appldnld.apple.com" >> /etc/hosts
echo "127.0.0.1 mesu.apple.com" >> /etc/hosts
echo "127.0.0.1 appldnld.apple.com.edgesuite.net" >> /etc/hosts
echo "" >> /etc/hosts

Thanks for your fast reply,
JR
Reply
#4
type putty [email protected] to SSH into your device.

once there, use nano to edit the file. mind to use sudo as /etc/hosts is owned by root.
Reply
#5
davilla Wrote:type putty [email protected] to SSH into your device.

once there, use nano to edit the file. mind to use sudo as /etc/hosts is owned by root.

I can SSH but should I type at PuTTy following command?

echo "127.0.0.1 appldnld.apple.com" >> sudo/etc/hosts
echo "127.0.0.1 mesu.apple.com" >> sudo/etc/hosts
echo "127.0.0.1 appldnld.apple.com.edgesuite.net" >> sudo/etc/hosts
echo "" >> sudo/etc/hosts

Any details FAQ out there for more step by step how to??

Thanks,
JR
Reply
#6
Hi Davilla,

Please let me know when I do PuTTy on $ should I execute following sudo/etc/hosts command?

echo "127.0.0.1 appldnld.apple.com" >> /sudo/etc/hosts

or sudo echo "127.0.0.1 appldnld.apple.com" >> /etc/hosts

I am confuse what should I enter.

Thanks,
JR
Reply
#7
Please check attached file, I am getting permission denied.

https://skydrive.live.com/redir.aspx?cid...4s-p615jo0

Thanks,
JR
Reply
#8
How do I attached .JPG to this post?
Reply
#9
Pay attention... If you could do a 'sudo echo', I would have mentioned it...

repeat after me,

sudo nano /etc/hosts

one more time,

sudo nano /etc/hosts

again since you are not paying attention,

sudo nano /etc/hosts
Reply
#10
davilla Wrote:Pay attention... If you could do a 'sudo echo', I would have mentioned it...

repeat after me,

sudo nano /etc/hosts

one more time,

sudo nano /etc/hosts

again since you are not paying attention,

sudo nano /etc/hosts

I am sorry Master, I am newbie and still learning so please forgive me Master...

sudo nano echo "127.0.0.1 appldnld.apple.com" >> /etc/hosts

Is this right?

Thanks Master,
JR
Reply
#11
I'm sorry, I cannot help you anymore. I can only do so much. Someone else can try.

http://www.sudo.ws/sudo/sudo.man.html

http://www.nano-editor.org/dist/v2.0/nano.1.html

http://unixhelp.ed.ac.uk/CGI/man-cgi?hosts
Reply
#12
davilla Wrote:I'm sorry, I cannot help you anymore. I can only do so much. Someone else can try.

http://www.sudo.ws/sudo/sudo.man.html

http://www.nano-editor.org/dist/v2.0/nano.1.html

http://unixhelp.ed.ac.uk/CGI/man-cgi?hosts

I got it and I wrote down following lines and its saved.

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost

127.0.0.1 appldnld.apple.com
127.0.0.1 mesu.apple.com
127.0.0.1 appldnld.apple.com.edgesuite.net

Did I missed any lines or command?

Thanks,
JR
Reply

Logout Mark Read Team Forum Stats Members Help
Help how to Edit hosts file in Apple TV1??0