Can't connect to server via DNS name; russian locale missing

CbIP
Posts: 3
Joined: Sat Jul 24, 2010 12:44 pm

Can't connect to server via DNS name; russian locale missing

Postby CbIP » Sat Jul 24, 2010 1:06 pm

Hi all! I've installed Amahi for the first time. The installation was OK, but after it I got 2 problems:
  • The big one. I cannot connect to the server via its home DNS name: CbIP.lan. In fact, I can not connect any way except using the server's IP address - it redirects me to the settings page and I can't use shares, apps, etc.
    My netwoks consists in: Router - D-link DI-624S (with Local Domain Name "lan", IP 192.168.0.1); printer Samsung 3175fn (IP 192.168.0.102), 2 PCs (IP .100 and .101, running Ubuntu 10.04 and Windows 7), various mobile devices (IPs are assigned using DHCP) and my Amahi server (IP 192.168.0.2)
  • The small one. It seems the russian translation is corrupted and contains a lot of errors: e.g. "translation missing: ru, settings" Also "Debug" means "Отладка", but "Удалить жуков" (current translation) means "Delete beetles" I was going to translate Amahi by miself, but I couldn't understand the translation rules at http://wiki.amahi.org/index.php/Translate_Amahi and was uable to find lang. files.

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Can't connect to server via DNS name; russian locale mis

Postby gboudreau » Sat Jul 24, 2010 3:33 pm

If you try to

Code: Select all

nslookup 192.168.0.2
from a client computer (Windows, Mac or Linux), it should reply with the hostname you should use to connect to the HDA.

Example:

Code: Select all

macbook:~ gb$ nslookup 192.168.155.88 Server: 192.168.155.88 Address: 192.168.155.88#53 88.155.168.192.in-addr.arpa name = hda.home.com.
Means I need to use http://hda.home.com to connect to the HDA dashboard.
I can also use http://hda, since my client computer has the same domain name (home.com) (yours should too, if they got their IP address from the HDA, i.e. if you turned off your old DHCP server, and renewed your client's IP addresses).

If this fails, try this:
Interactive Network Troubleshooter: http://wiki.amahi.org/index.php/Network_troubleshooting

It should tell you what is wrong, and either how to fix it, or the info we need to help you further.
- Guillaume Boudreau

CbIP
Posts: 3
Joined: Sat Jul 24, 2010 12:44 pm

Re: Can't connect to server via DNS name; russian locale mis

Postby CbIP » Sun Jul 25, 2010 12:52 am

Sorry - it was my fault. I disabled the DHCP server on my router, but somehow it continued to lease IPs. After rebooting everything works fine, except russian translation. How to fix it?

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Can't connect to server via DNS name; russian locale mis

Postby gboudreau » Sun Jul 25, 2010 4:28 am

The language file can be found here, on your HDA:
/var/hda/platform/html/config/locales/ru.yml

The file is UTF-8 encoded (see the last string in it), but also contains encoded versions of the strings. Things like:
"\xD0\x9F\xD1\x80\xD0\xBE\xD0\xB3\xD1\x80\xD0\xB0\xD0\xBC\xD0\xBC\xD0\xBD\xD1\x8B\xD0\xB5 \xD0\x94\xD0\xBD\xD0\xB5\xD0\xB2\xD0\xBD\xD0\xB8\xD0\xBA\xD0\xB8"
Those look like UTF-8 encoded strings, but I don't know how to convert them. cpg would know.

Whenever you change that file, I think you'll need to "service httpd restart" to see the difference in the dashboard.
- Guillaume Boudreau

CbIP
Posts: 3
Joined: Sat Jul 24, 2010 12:44 pm

Re: Can't connect to server via DNS name; russian locale mis

Postby CbIP » Sun Jul 25, 2010 9:12 am

These codes looks like UTF-8 encoded as CP1251.
Thank you, I'll ask cpg.

Who is online

Users browsing this forum: No registered users and 30 guests