söndag 27 juni 2010

PC-BSD och allmän översyn av CentOS

Ett lite innehållslöst inlägg, något av en anteckning.

Idag testar jag att installera PC-BSD i VirtualBox. Jag har för mig att jag lyckats med det tidigare, eller så gav jag upp och nöjde mig med en freeBSD CLI-variant...

Det är nämligen lite halvklurigt i v-boxen, eftersom man måste typ "minst" ha 512 ram, 20 gig hårddisk eller nåt sånt... för annars installerar den bara "i luften" och sen funkar inget alls.

Dessutom verkar det vara lite problem med bootloadern, men det kanske är jag som gjort fel.

Hursomhelst så verkar PC-BSD grymt, och jag skulle gärna ha en extra "burk" med detta system igång... Om jag hade pengar...dadada..

Det leder mig till min CentOS-laptop - eftersom jag funderar på att blåsa den och "börja om", kanske med Ubuntu i grunden, splitta den i 2-3 delar och köra en "lättare" CentOS-lamp som andra boot, och då möjligen en freeBSD eller tillomed PC-BSD som tredje boot.
Det kunde nog vara coolt att ha tre sorters "lampor" att dra igång.
Dock vill jag försöka dokumentera min CentOS lite innan jag raderar den, eftersom det var lite meckigt att få PHP att funka - det verkar som man är tvungen att ha en "speciell" php från redhat eller nåt. Jag minns inte hur jag löste det, men det är iaf nån speciellt install man måste ha... Höll på i timmar och försökte ta ner "rätt version" men det spelar ingen roll om versionsnumret är rätt eller "högre", den klagar ändå på att man har fel php...

Nu har jag ju dock fått upp både php, phpmyadmin, mysql och joomla och cact på den...
Så det går ju att lösa om man bara minns hur. Jag får nog återkomma med en liten uppdatering senare.

Uppdatering 1:
Lyckades installera PC-BSD 8 i VirtualBox - med 512 ram och 20 gig hårddisk (dynamisk).
Ska försöka installera gästtillägg för freeBSD också.

Uppdatering 2:
Fick till upplösningen utan gästtillägg genom att byta xorg.conf som i den här kommentaren från ett forum ungefär (fast ändrade bara upplösningen på första delen till 1024x768 egentligen)

Oatworm skriver:

http://forums.pcbsd.org/showthread.php?t=12664

Good news: It works! Most of you probably already knew that, though.
Mixed news: Xorg requires some serious tweaking before it's really usable. Here's what I've been able to figure out so far - let me know if this jives with what the rest of you are experiencing:

Unfortunately, Guest Additions for VirtualBox 3 don't work on BSD systems - they simply don't have a version available. Worse yet, when you run the Display Wizard, no matter what option, screen resolution, or driver you pick, it always ends up falling back to 800x600 in VESA mode.

Blech.

Interestingly, however, I noticed that the screen resolution for the Display Wizard was much higher - how could that be? With a bit of effort, I figured out that it's because the Display Wizard uses a slightly different xorg.conf file than the one that it generates for VirtualBox. So, just for kicks, I decided to back up my old xorg.conf file (note that you need to be root to do this - su from an existing terminal window or kdesu konsole helps)...

Code:
mv /etc/X11/xorg.conf xorg.conf.bak2
(Note that, if you've configured X before, there already is a .bak file, so you might not want to write over that.)

After I did that, I then copied over the one from the Display Wizard:

Code:
cp /usr/PCBSD/xorg-gui/conf/xorg.conf.basic /etc/X11/xorg.conf
Then I rebooted - lo an behold, I had 1024x768! Score! So, what's the difference between the two? After a bit of trial and error, I figured it out: the xorg.conf file that's generated by the Display Wizard does not give a sync or refresh rate for the "monitor", so X automatically dumps the resolution down. The solution is to manually feed it some info. My "Monitor" section now looks like this:

Code:
Section "Monitor"

Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 30.0 - 80.0
VertRefresh 50.0 - 80.0
EndSection
If you want a resolution higher than 1024x768, you can accomplish that by editing the "Display" subsection of your "Screen" section and adding some resolutions thusly:


Code:
Section "Screen"
SubSection "Display"
Depth 24
Modes "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
It'll default to the highest that you have listed, while the rest will be available to choose from in System Settings->Display.

Anybody have anything they'd care to add here? Since I just sort of figured this out, I wasn't sure if I wanted to put it in the Tips & Tricks section right away - figured it wouldn't be a bad idea to have the rest of the community chew it over a bit first.

Inga kommentarer:

Skicka en kommentar