Tiny Core Linux

Tiny Core Base => Micro Core => Topic started by: monday66 on December 06, 2013, 08:10:53 AM

Title: [SOLVED] Microcore Doesn't See Directories with Characters from Other Languages!
Post by: monday66 on December 06, 2013, 08:10:53 AM
Hello there, my problem is simple.
I have some directories on my computer that are named with Greek characters,
i want to just navigate there but microcore doesn't see them!

How can i make something like
Code: (bash) [Select]
cd Αρχείο
and get there?

Thanks for your attention guys!!
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: monday66 on December 07, 2013, 09:32:14 AM
Is it so hard for everyone to answer such a simple question?
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: Juanito on December 07, 2013, 10:00:05 AM
does the font you're using support greek characters?
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: monday66 on December 07, 2013, 10:04:34 AM
I'm using the default font and No, it doesn't.
Unfortunately as i said the directories with Greek characters are invisible to microcore.

Also, I tried to use the getlocale.tcz that produces the appropriate mylocale.tcz for the language i want,
i found many languages that i could select but Greek was missing. So dead end again.
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: Juanito on December 07, 2013, 10:08:12 AM
You could try searching the forums on "utf-8"?
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: monday66 on December 07, 2013, 10:14:34 AM
Ok, i will search a little more, i will post again tomorrow to let you know if i could fix it.
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: Juanito on December 07, 2013, 10:24:53 AM
I'm guessing you'll need a bitmap font that supports greek characters if you're working from the console or terminal window, but I never tried myself.
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: monday66 on December 07, 2013, 06:34:15 PM
Yeah, i'm working from console, what a bitmap font is? i have never heard of them..
And how can i install one?
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: Juanito on December 07, 2013, 10:53:27 PM
There's something pretty cryptic here:

http://wiki.tinycorelinux.net/wiki:fonts_cn?s[]=utf&s[]=8

google should be able to help with how to install greek bitmap fonts
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: monday66 on December 08, 2013, 06:20:55 AM
So, yesterday i followed the instructions i found in this thread http://forum.tinycorelinux.net/index.php?topic=3632.0
from "Michael Wells". I installed the dejavu-fonts-ttf-tcz package but i came up with nothing again.

I will search on how to install bitmap fonts this time.
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: Juanito on December 08, 2013, 06:49:32 AM
Maybe if you took something like Greek-Fixed13.psf.gz from:

http://packages.debian.org/sid/console-setup-linux

and then: "sudo loadfont < /path/to/Greek-Fixed13.psf" things might work?
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: tinypoodle on December 08, 2013, 08:27:40 AM
I'd doubt any font would change anything when files are invisible, if a lack of font would be the only issue, then whichever char is not available would likely be replaced by a placeholder.

What can play a role are filesystem specific mount options, but you have so far not specified the filesystem in question.
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: monday66 on December 08, 2013, 03:33:12 PM
Filesystem specific mount options? What do you mean?
do you know how can i fix it?
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: tinypoodle on December 08, 2013, 10:56:07 PM
http://linux.die.net/man/8/mount
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: tinypoodle on December 08, 2013, 11:50:09 PM
Maybe if you took something like Greek-Fixed13.psf.gz from:

http://packages.debian.org/sid/console-setup-linux

and then: "sudo loadfont < /path/to/Greek-Fixed13.psf" things might work?

Following that works for me as expected to display otherwise gibberish fonts correctly.

(http://upurs.us/image/54324.png)

Now if I only knew how to get my initial consolefont back after that...  :-[

Edit: Above procedure broke gpm, pointer no longer moving to bottom area of console - restarting the gpm daemon fixed that.
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: monday66 on December 09, 2013, 01:45:28 PM
Thank you very much for your effort guys!!!
I can't test this right now because i'm away for vacations, i will test it in 4 days and post feedback.
Thanks again!!
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: monday66 on December 14, 2013, 07:13:26 AM
Sadly, i encountered this:

The "???????????????" is a directory with Greek Characters.

(http://)

I got the font from a debian distro (/usr/share/consolefonts directory)

@tinypoodle where did you get your psf font?
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: tinypoodle on December 14, 2013, 08:42:58 AM
Sadly, i encountered this:

The "???????????????" is a directory with Greek Characters.
I'd reckon then you might likely be able to cd to that dir ;)
Quote
I got the font from a debian distro (/usr/share/consolefonts directory)

@tinypoodle where did you get your psf font?
See Reply #10 & #14...
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: monday66 on December 14, 2013, 09:11:41 AM
Yeah i saw the link that leads to http://packages.debian.org/sid/console-setup-linux
I didn't know how to download the psf font from there, so i got it from a distro that i have installed, ( it's the same font, isn't it? ).
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: tinypoodle on December 14, 2013, 09:48:05 AM
tc@box:~$ md5sum /tmp/Greek-Fixed13.psf
b4d5aa18206416a4d3e114e285b1504d  /tmp/Greek-Fixed13.psf
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: monday66 on December 14, 2013, 07:33:01 PM
As i thought, it's the same.
root@nexus:~/Desktop# md5sum Greek-Fixed13.psf
b4d5aa18206416a4d3e114e285b1504d  Greek-Fixed13.psf

EDIT: By the way, did you reboot after you loaded the font?
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: tinypoodle on December 15, 2013, 06:02:51 AM
Uhm, not sure why exactly you would ask this.
Code: [Select]
tc@box:~$ last
tc       tty1                          Mon Dec  9 06:44   still logged in
root     tty1                          Sun Nov 10 23:56 - 06:44 (28+06:48)

wtmp begins Sun Nov 10 23:56:03 2013

Rather to the contrary I logged out and in again on tty1 in the hope of getting rid of the loaded font, i.e. getting my usual consolefont back, but no such luck... =/
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: monday66 on December 15, 2013, 07:35:36 AM
I'm asking this because i boot microcore from a USB which is not a persistent installation.
after reboot everything is gone.

I can only some files persistent by remastering microcore.
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: tinypoodle on December 15, 2013, 07:49:57 AM
Persistence is not a requirement to execute 'loadfont'.
Of course you need access to a font in order to load it, but as my earlier post implies, that works with using /tmp.
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: monday66 on December 15, 2013, 08:16:51 AM
Ok, i will test it again under /tmp
Also how did you change keyboard's language to write the dir "Αρχείο"?
Shift+Alt doesn't seem to work there.
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: Juanito on December 15, 2013, 08:36:43 AM
I'm asking this because i boot microcore from a USB which is not a persistent installation.
after reboot everything is gone.

I can only some files persistent by remastering microcore.

Assuming you're booting from a usb stick, you can the backup function to restore files on reboot
Title: Re: Microcore Doesn't See Directories with Characters from Other Languages!
Post by: tinypoodle on December 15, 2013, 10:17:17 AM
Also how did you change keyboard's language to write the dir "Arxei'o"?

I never claimed having done so, what I did was I copied the word from your post and pasted it to Rox Filer's function "New -> Directory" to create the dir.
In order to cd to the dir I tested with both shell tab complete - which might be less easy if there were any other entries present within the same parent dir - and copy and paste output from 'ls'.
Title: Re: [SOLVED] Microcore Doesn't See Directories with Characters from Other Languages!
Post by: monday66 on December 17, 2013, 05:47:57 AM
I tried again and got it working properly, thanks!!
I can now mark the thread as Solved.
Title: Re: [SOLVED] Microcore Doesn't See Directories with Characters from Other Languages!
Post by: Rich on December 17, 2013, 11:11:07 AM
Hi monday66
Maybe you could give a step by step summary of what you had to do in case someone else runs into this
problem.
Title: Re: [SOLVED] Microcore Doesn't See Directories with Characters from Other Languages!
Post by: monday66 on December 19, 2013, 12:07:29 PM
Yeah, you are right Rich.   :-)
I didn't do anything special, i just followed the steps TinyPoodle and Juanito showed me.
But i had a hard time using Greek-Fixed13.psf font,
so just downloaded more fonts like Greek-Fixed16.psf and one of them worked, that's all.