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

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
cheikhbouchihda
Forum Commoner
Posts: 51
Joined: Thu Mar 02, 2006 2:08 pm
Location: France.

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

Post 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.
Last edited by cheikhbouchihda on Fri Jun 16, 2006 12:07 am, edited 1 time in total.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Are you sure you are in 'edit' mode when you start typing text? I really can't reproduce the problem...
cheikhbouchihda
Forum Commoner
Posts: 51
Joined: Thu Mar 02, 2006 2:08 pm
Location: France.

Post 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.
bdlang
Forum Contributor
Posts: 395
Joined: Tue May 16, 2006 8:46 pm
Location: Ventura, CA US

Post 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.
cheikhbouchihda
Forum Commoner
Posts: 51
Joined: Thu Mar 02, 2006 2:08 pm
Location: France.

Post 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!
bdlang
Forum Contributor
Posts: 395
Joined: Tue May 16, 2006 8:46 pm
Location: Ventura, CA US

Post by bdlang »

Aha. Ok very good, something simple. ;)
Post Reply