Page 1 of 3 123 LastLast
Results 1 to 20 of 53

Thread: Mandriva Linux question

  1. #1
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Mandriva Linux question

    Hi. When I tried to run Mandriva 2008 form live-cd, I've 'met' a bug. It's description and solution is described in it's errata:
    Few users told us about black screen appearance while loading desktop using ATI Radeon.Solution: Erase following lines from /etc/X11/xorg.conf:

    # TV fullscreen mode or DVD fullscreen output.
    # 768x576 @ 79 Hz, 50 kHz hsync
    ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630

    # 768x576 @ 100 Hz, 61.6 kHz hsync
    ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616
    And the question is, how to do it? I mean, how to find this file. It couldn't be done by exploring cd from windows.
    Regards
    13 of September - Programmer Day

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Linux question

    You have to boot in runlevel 3 or 1 (refer to your bootloader's manual on what options you have to pass to it), and edit /etc/X11/xorg.conf. After that either reboot or run startx.

    EDIT: or try switching to a terminal after the screen goes blank (ctrl + alt + f2, for example), or even try pressing ctrl-alt-backspace, maybe X will terminate and return you to a terminal.
    Last edited by marcel; 15th November 2007 at 21:52.

  3. #3
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Linux question

    Quote Originally Posted by marcel View Post
    You have to boot in runlevel 3 or 1 (refer to your bootloader's manual on what options you have to pass to it), and edit /etc/X11/xorg.conf. After that either reboot or run startx.
    Sorry, but I don't understand a word of it

    Quote Originally Posted by marcel View Post
    EDIT: or try switching to a terminal after the screen goes blank (ctrl + alt + f2, for example), or even try pressing ctrl-alt-backspace, maybe X will terminate and return you to a terminal.
    I tried, no result
    Regards
    13 of September - Programmer Day

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Linux question

    It might not be possible to alter the file when running from live cd. You might try overriding the ati driver with the vesa driver by passing some option to the boot sequence. When you boot the cd, it probably contains some info how to access help which should contain the list of switches you may pass (F1, F2 or F3 are likely candidates for accessing the help).

  5. #5
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Linux question

    Yes, it contains some help and boot settings, but they're kind of magic for me.
    Regards
    P.S - When they write in errata to change this file, it is possible to do it, I think
    P.P.S
    Here's what I found somewhere:
    You can alter your .conf file by typing "su (root password)press enter then type:
    "vi /etc/X11/xorg.conf" (vi is a text editor)
    Last edited by Salazaar; 16th November 2007 at 23:28.
    13 of September - Programmer Day

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Linux question

    Quote Originally Posted by Salazaar View Post
    P.S - When they write in errata to change this file, it is possible to do it, I think
    Yes, you can always change the file and rebuild the live cd
    Here's what I found somewhere:
    Unfortunately you must be already booted to do that. You need to boot into runlevel 3 (one of the boot options certainly does that) and then change the file and start X.

  7. #7
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Linux question

    When running a live cd, doesn't it create a RAM disk containing at least the main config files, which is not read only? As far as I know it will contain at least /etc, /dev, /usr.

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Linux question

    But you have to boot the system for the disk to be created. And if it boots into X, the driver will lock it, preventing access to the console. Thus the system needs to be booted into runlevel 3.

  9. #9
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Linux question

    Ok, guys, the theory But what about the practice? What are the steps that I need to do? I mean, how to edit this file? Is it able to edit it from Windows/Ubuntu (which I have installed)? How? I'd be thankful
    Regards
    Last edited by Salazaar; 17th November 2007 at 21:22.
    13 of September - Programmer Day

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Linux question

    Boot into runlevel 3. I'm sure the CD supports it.

  11. #11
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Linux question

    But how? When I run live-cd, it's 'welcome screen' and it starts booting
    13 of September - Programmer Day

  12. #12
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Linux question

    Use F1 or F3 as earlier advised. The live cd should first let you choose some things before booting the system. Even the install disk does that, so I'm sure live cd has such capabilities as well.

  13. #13
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Linux question

    Ok, I've solved the problem in other way.
    13 of September - Programmer Day

  14. #14
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Linux question

    But I've got another question. When I try to compile program with make (install) i get that there's no such command. When I launch add/remove programs I've got gcc preprocesor and library selected. What's up??? Why I can compile?
    Regards
    13 of September - Programmer Day

  15. #15
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Linux question

    Preprocessor is not a compiler. You need to have other packages installed as well. Like gcc-g++, make, binutils, libstdc++-devel, glibc-devel and probably others as well.

  16. #16
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Linux question

    And I've got gcc gnu libs installed either. And does somebody know is there simplier way to install gcc on Mandriva 2008 than this
    http://www-users.mat.uni.torun.pl/~j.../gcc-comp.html
    Regards
    13 of September - Programmer Day

  17. #17
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Linux question

    What happens when you try to run g++? Do you have make installed?

  18. #18
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Linux question

    Run? What do you mean? I don't know, I've got (or not) gcc tgat was basically installed with Mandriva. I don't know whether I've got it or no, if not it means that it is not installed
    13 of September - Programmer Day

  19. #19
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Linux question

    Mandriva live-cd was not meant for development. Either install it on your disk and use rpmdrake to install the remaining required software or use a live-cd meant for development - it will have the tools already installed.

    As for gcc C++ development, you need at least those packages installed (and of course their dependencies):
    • libgcc1
    • gcc
    • gcc-cpp
    • gcc-c++


    Running "urpmi gcc-c++ glibc-devel libstdc++-devel" should install all the required software, provided that urpmi is configured properly.

  20. #20
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Linux question

    And don't forget about installing make.

Similar Threads

  1. Re: Linux question
    By Salazaar in forum General Discussion
    Replies: 9
    Last Post: 24th November 2007, 19:27

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.