Page 1 of 1

[solved][Debian sarge]:problem with command ligne.

Posted: Thu Jun 15, 2006 12:23 am
by cheikhbouchihda
Hello,
In command ligne(consol), when I write a text, for example this one:
Debian@cheikhbouchihda~$vi hello.cpp
#include <ctime>
#include <iostream>

using namespace std;

int main()
{
time_t maintenant;
time(&maintenant);
cout << "Hello world en C++ : " << ctime(&maintenant) << endl;
return 0;
}
I obtain this text:
ebian@cheikhbouchihda~$vi hello.cpp
include <ctime>
include <iostream>

sing namespace std;

nt main()
{
time_t maintenant;
time(&maintenant);
out << "Hello world en C++ : " << ctime(&maintenant) << endl;
eturn 0;
I meam that, I can not have the first letters of the sentences.
My question is : what must I do to have a normal text.
Thants in advance for the help.

Posted: Thu Jun 15, 2006 8:06 am
by timvw
Are you sure you are in 'edit' mode when you start typing text? I really can't reproduce the problem...

Posted: Thu Jun 15, 2006 11:10 pm
by cheikhbouchihda
Hello,
In fact, at the boot of debian(before logging), I obtain the folowing message(consol mode):
***Your 855resolutions hasn't been configured !**
please read /usr/share/doc/855resolutions/README.Debian and define MODE, XRESO, and YRESO
So, I do:

Code: Select all

#vi /usr/share/doc/855resolutions/README.Debian
and I get:
855resolution for Debian
------------------------

855resolution changes the resolution of an available vbios mode.

1. First, you need to check available modes by:

# 855resolution -l

2. You will get a mode list such as:

855resolution version 0.3, by Alain Poirier

Chipset: 855GM
VBIOS type: 2
VBIOS Version: 3360

Mode 30 : 640x480, 8 bits/pixel
Mode 32 : 800x600, 8 bits/pixel
Mode 34 : 1024x768, 8 bits/pixel
Mode 38 : 1280x1024, 8 bits/pixel
Mode 3a : 1600x1200, 8 bits/pixel
Mode 3c : 1400x1050, 8 bits/pixel
Mode 41 : 640x480, 16 bits/pixel
Mode 43 : 800x600, 16 bits/pixel
Mode 45 : 1024x768, 16 bits/pixel
Mode 49 : 1280x1024, 16 bits/pixel
Mode 4b : 1600x1200, 16 bits/pixel
Mode 4d : 1400x1050, 16 bits/pixel
Mode 50 : 640x480, 32 bits/pixel
Mode 52 : 800x600, 32 bits/pixel
Mode 54 : 1024x768, 32 bits/pixel
Mode 58 : 1280x1024, 32 bits/pixel
Mode 5a : 1600x1200, 32 bits/pixel
Mode 5c : 1400x1050, 32 bits/pixel

3. Write the mode number and resolution which you want to use to
/etc/default/855resolution. For example:

MODE=3c
XRESO=1400
YRESO=1050

4. Reboot or run "/etc/init.d/855resolution start" by hand.

5. To use specified resolution, you need to modify your X configuration
46,1 74%
3. Write the mode number and resolution which you want to use to
/etc/default/855resolution. For example:

MODE=3c
XRESO=1400
YRESO=1050

4. Reboot or run "/etc/init.d/855resolution start" by hand.

5. To use specified resolution, you need to modify your X configuration
file (If you use XFree86, it's /etc/X11/XF86Config-4)

SubSection "Display"
Depth 24
Modes "1400x1050" "1024x768" "800x600" "640x480"
EndSubSection

-- Kenshi Muto <kmuto@debian.org>, Sun, 14 Nov 2004 04:59:16 +0900
I've tryed to solve the problem by myselfe but I could'nt.What I must I do in this case.
Once again, thanks for the help.

Posted: Thu Jun 15, 2006 11:15 pm
by bdlang
Does everything else on the command line look normal? Or just when you use VI? Obviously there is something pointing to screen resolution....does your display have a 'reset mode' function? Is there a button on your display to allow you to move the display to the right? I know occasionally when switching between OS, as on a multi-boot system, the screen resolution can get shifted to the right or left.

Posted: Thu Jun 15, 2006 11:55 pm
by cheikhbouchihda
bdlang wrote:does your display have a 'reset mode' function? Is there a button on your display to allow you to move the display to the right? I know occasionally when switching between OS, as on a multi-boot system, the screen resolution can get shifted to the right or left.
YES!!! I've moved the screen to the right by using the "menu" button of the computer and now it works!!!
Thank you very much!

Posted: Fri Jun 16, 2006 12:33 am
by bdlang
Aha. Ok very good, something simple. ;)