Community Forum

Resolved
0 votes
Update: The Guide in this particular append has been left here as a education of the types of changes that are necessary to run Gnome. Read all the appends in this thread, and if you decide this is for you, use Bob's Script which he details below after my ramblings - it is far superior. As with all major changes to your system, make sure you have a viable tested backup before proceeding...


This is a Guide to Installing Gnome to run on A ClearOS system. It is not a full How-To and assumes a reasonable familiarity with Linux. It will not
provide line by line micro steps... It is not recommended for production
systems, as a system like this will be difficult to maintain. There are other ways to achieve this, this is just my first attempt. Follow any of this at your own risk! Be warned, it's a hack...

Starting with a fresh ClearOS 5.1 SP1 system fully up to date... (run "yum check-update" and install updates if necessary until there are none...)

Ensure the cups rpm is installed

Add the standard Centos 5 repository file and associated mirrorlist files. A
CentOS 5 system is handy here. These are...
/etc/yum.repos.d/CentOS-Base.repo
/var/cache/yum/base/mirrorlist.txt
/var/cache/yum/updates/mirrorlist.txt
use chattr to set the immutable bit on the mirrorlist.txt files so they are not erased... Make sure each section of /etc/yum.repos.d/CentOS-Base.repo has the line "enabled=0" (base, updates etc) - You need to add it to the first several sections.
Alternatively devise your own method of adding the CentOS 5 repositories...

Edit /etc/inittab and comment out the last line to disable xdm at runlevel
5. Also edit the tty1 line so that tty1 line reads "1:2345:respawn:/sbin/mingetty tty1"

Run "yum check-update" and ensure there are no updates - this will ensure you have modified the CentOS repository file correctly... fix if necessary

Install all the xorg files from ClearOS, except for one rpm...
"yum install xorg* --exclude=xorg-x11-apps"
On my system this was 102 packages

Reboot and go to the ClearOS console screen. You should have a simple screen with just the standard test logon prompt..
Logon as root and run "Xorg -configure"
then run "cp /root/xorg.conf.new /etc/X11/xorg.conf"
logoff from root and logon as a user (this assumes you have enabled the user to have a shell logon...)
type "startx" - you should get a solid colour screen with just the 'X' cursor
get out (ctrl-alt-F12 then alt-F2 for another screen)

Disable all ClearOS repositories as you did for the CentOS one. Again you will need add "enabled=0" to some ClearOS sections...
Edit the CentOS repository file and enable the base and updates sections
only

Next we need to install redhat-logs...
type "yum install redhat-logos" This will download and attempt to install,
then exit with an error about a conflict with a previously installed file
save the conflicting file "mv /boot/grub/splash.xpm.gz /boot/grub/splash.xpm.gz.clearos"
force the install "rpm -i --force /var/cache/yum/base/packages/redhat-logos"
then restore the ClearOS file "cp /boot/grub/splash.xpm.gz.clearos
/boot/grub/splash.xpm.gz"

Next we need to install redhat-artwork...
First install a prereq "yum install gtk2-engines"
then download the rpm... (the version below as of 23rd May 2010)
"wget http://mirror.centos.org/centos/5.4/os/i386/CentOS/redhat-artwork-5.1.0-28.el5.centos.i386.rpm";
then force install it...
"rpm -i --force --nodeps redhat-artwork-5.1.0-28.el5.centos.i386.rpm"

we can now install the base gnome... "yum install gnome-session"

follow this with more gnome stuff...
yum install gnome* --exclude=libsmbclient,nfs-utils-lib,nfs-utils,gnome-vfs2-smb,libvirt,libvert-python,gnome-applet-vm"

disable the CentOS repository sections and enable CentOS repositories as they were before you started. A "yum check-update" should then only add one or two updates at the most...

reboot, login as your user (not root) and type "startx" - you should then be presented with the full Gnome GUI - configure and add more Gnome applications as required...
Sunday, May 23 2010, 07:58 AM
Share this post:
Responses (116)
  • Accepted Answer

    Friday, February 08 2013, 05:13 PM - #Permalink
    Resolved
    0 votes
    Ok, so It's been a while, but I just went through documenting how to get Gnome on ClearOS 6. I don't have a script yet, but here's my notes:


    Do NOT upgrade the yum package from the CentOS repos, it WILL not work on the ClearOS system for reasons I have yet to determine.

    install epel repo RPM

    http://mirrors.servercentral.net/fedora/epel/6/i386/repoview/epel-release.html

    yum install yumex dkms gnome-desktop gnome-panel

    copy over CentOS-Base.repo from a CentOS system

    # CentOS-Base.repo
    #
    # The mirror system uses the connecting IP address of the client and the
    # update status of each mirror to pick mirrors that are updated to and
    # geographically close to the client. You should use this for CentOS updates
    # unless you are manually picking other mirrors.
    #
    # If the mirrorlist= does not work for you, as a fall back you can try the
    # remarked out baseurl= line instead.
    #
    #

    [base]
    name=CentOS-$releasever - Base
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
    #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

    #released updates
    [updates]
    name=CentOS-$releasever - Updates
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
    #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
    #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-$releasever - Plus
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
    #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

    #contrib - packages by Centos Users
    [contrib]
    name=CentOS-$releasever - Contrib
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
    #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

    copy over /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 from a CentOS system

    -----BEGIN PGP PUBLIC KEY BLOCK-----
    Version: GnuPG v1.4.5 (GNU/Linux)

    mQINBE4P06MBEACqn48FZgYkG2QrtUAVDV58H6LpDYEcTcv4CIFSkgs6dJ9TavCW
    NyPBZRpM2R+Rg5eVqlborp7TmktBP/sSsxc8eJ+3P2aQWSWc5ol74Y0OznJUCrBr
    bIdypJllsD9Fe+h7gLBXTh3vdBEWr2lR+xA+Oou8UlO2gFbVFQqMafUgU1s0vqaE
    /hHH0TzwD0/tJ6eqIbHwVR/Bu6kHFK4PwePovhfvyYD9Y+C0vOYd5Ict2vbLHz1f
    QBDZObv4M6KN3j7nzme47hKtdMd+LwFqxM5cXfM6b5doDulWPmuGV78VoX6OR7el
    x1tlfpuiFeuXYnImm5nTawArcQ1UkXUSYcTUKShJebRDLR3BycxR39Q9jtbOQ29R
    FumHginovEhdUcinRr22eRXgcmzpR00zFIWoFCwHh/OCtG14nFhefuZ8Z80qbVhW
    2J9+/O4tksv9HtQBmQNOK5S8C4HNF2M8AfOWNTr8esFSDc0YA5/cxzdfOOtWam/w
    lBpNcUUSSgddRsBwijPuWhVA3NmA/uQlJtAo4Ji5vo8cj5MTPG3+U+rfNqRxu1Yc
    ioXRo4LzggPscaTZX6V24n0fzw0J2k7TT4sX007k+7YXwEMqmHpcMYbDNzdCzUer
    Zilh5hihJwvGfdi234W3GofttoO+jaAZjic7a3p6cO1ICMgfVqrbZCUQVQARAQAB
    tEZDZW50T1MtNiBLZXkgKENlbnRPUyA2IE9mZmljaWFsIFNpZ25pbmcgS2V5KSA8
    Y2VudG9zLTYta2V5QGNlbnRvcy5vcmc+iQI8BBMBAgAmBQJOD9OjAhsDBQkSzAMA
    BgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCUb8osEFud6ajRAAnb6d+w6Y/v/d
    MSy7UEy4rNquArix8xhqBwwjoGXpa37OqTvvcJrftZ1XgtzmTbkqXc+9EFch0C+w
    ST10f+H0SPTUGuPwqLkg27snUkDAv1B8laub+l2L9erzCaRriH8MnFyxt5v1rqWA
    mVlRymzgXK+EQDr+XOgMm1CvxVY3OwdjdoHNox4TdVQWlZl83xdLXBxkd5IRciNm
    sg5fJAzAMeg8YsoDee3m4khg9gEm+/Rj5io8Gfk0nhQpgGGeS1HEXl5jzTb44zQW
    qudkfcLEdUMOECbu7IC5Z1wrcj559qcp9C94IwQQO+LxLwg4kHffvZjCaOXDRiya
    h8KGsEDuiqwjU9HgGq9fa0Ceo3OyUazUi+WnOxBLVIQ8cUZJJ2Ia5PDnEsz59kCp
    JmBZaYPxUEteMtG3yDTa8c8jUnJtMPpkwpSkeMBeNr/rEH4YcBoxuFjppHzQpJ7G
    hZRbOfY8w97TgJbfDElwTX0/xX9ypsmBezgGoOvOkzP9iCy9YUBc9q/SNnflRWPO
    sMVrjec0vc6ffthu2xBdigBXhL7x2bphWzTXf2T067k+JOdoh5EGney6LhQzcp8m
    YCTENStCR+L/5XwrvNgRBnoXe4e0ZHet1CcCuBCBvSmsPHp5ml21ahsephnHx+rl
    JNGtzulnNP07RyfzQcpCNFH7W4lXzqM=
    =jrWY
    -----END PGP PUBLIC KEY BLOCK-----

    yum install nx freenx
    cat /etc/nxserver/client.id_dsa.key and save it
    setup freenx as specified in the CentOS Wiki - http://wiki.centos.org/HowTos/FreeNX#head-fdcc21f2bc71f39f6567ea4833c29d44836bd2d4
    - freenx works at this point!
    yum install gnome-applets
    yum install gnome-screensaver gnome-system-monitor
    yum install nautilus-open-terminal
    yum install gnome-backgrounds gnome-common gnome-disk-utility gnome-system-log gnome-utils nautilus-actions
    yum install system-config-date system-config-services
    move /etc/yum.repos.d/CentOS-Base.repo out of /etc/yum.repos.d
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, October 27 2012, 11:04 PM - #Permalink
    Resolved
    0 votes
    Tim - you asked "What are you missing?"
    Answer - not much because I wasted a lot of my time, too much, adding what was missing - Reports, as you are well aware, just to mention an obvious candidate, one of many...
    However, with MultiWan failing - it's the last straw - I have given up on 6.3. I'll give it 6 to 9 months and come back and see if 6.4, or whatever it is called then, is finished and functions properly and go from there.
    In the meantime au revoir - see you in the middle of next year...
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 26 2012, 05:51 PM - #Permalink
    Resolved
    0 votes
    I wish too we had a USB install. :dry:

    What I did for installing all the extra packages is install a basic system and get the default packages by

    rpm -qa >> basicpackages.txt


    Then install all the packages I need for a standard install and run:

    rpm -qa >> allpackges.txt
    diff basicpackages.txt allpackages.txt

    And there are all the packages your standard install requires. Pop yum -y install <packages from diff output> into a shell script and drink coffee.

    That's many times faster than navigating the wizard. But I still wish we had a USB key.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 26 2012, 02:42 PM - #Permalink
    Resolved
    0 votes
    fdisk does complain at the boundaries. I'm in no rush to realign the file system but I do need to shut down the server sometime because I must have disturbed the SATA cable when I plumbed in an extra drive to take a disk image and I'm getting heaps of errors in /var/log/messages.

    Originally it was stated that the x86_64 bit version was going to be a DVD or USB installation because of its size. I wish it had been. Downloading all the apps afterwards is a PITA compared with a 5.2 installation. It is hard to find what is missing until you need it ...... At least they have added back pciutils and usbutils.

    Personally I did a USB installation following a post on this site and that part of the installation went like a charm. I wish Clear would give you the USB option. Much more convenient that a CD option. Aren't CD's pretty much history these days?

    [edit]
    This is miles off topic. We should really take this discussion elsewhere.
    [/edit]
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 26 2012, 01:10 PM - #Permalink
    Resolved
    0 votes
    still too much functionality missing

    What are you missing?
    Its a fine balance...remove enough tools to make the ISO small enough to fit on CD...or provide the kitchen sink for a DVD install? I know some definitely prefer being able to install everything from the installation media, not downloading via yum, as it's much quicker for deployment.

    I like to use the command line so there are a lot of tools to add, but for out of the box installation they are surplus to requirements... Perhaps if you list the extras you think should be on the ISO Pete can include them? I think he has added others in the past.

    The system has changed from 5.x, more so under the hood. For example the practice of aligning partitions with cylinder boundaries is an old one for addressing drives via CHS. Newer distros align them with 1MB increments and drives use LBA...tools like fdisk have not been updated with current practice and so still give a warning. Try viewing by sectors:-
    sfdisk -uS -l /dev/sdX


    Fetchmail still needs work!
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 26 2012, 08:27 AM - #Permalink
    Resolved
    0 votes
    I "upgraded" yesterday and lost hours on the non-Zarafa mail system. imap needed restarting a couple of times before it would accept connections even though it was running. This took a while to diagnose. Fetchmail suffers without a GUI and the configuration of /etc/fetchmail.conf or the mail system seems to have changed slightly so your local domain is not automatically appended to the mail user-name after fetchmail.conf is read. I lost hours on this one until I bumped into a post of Tim's. I kept seeing mail-nick@localhost not found in the logs and could not work out how to get the localhost bit to read my local domain until I changed fetchmail.conf (which I had copied over from 5.2)

    I am also disappointed about the 6.x chain and I don't think it is ready for the big time but it should be just about OK for what I need. Now I need to adjust all my partitions because partitioning manually did not put the partition boundaries at the cylinder boundaries. :( I also now have an ATA error (not a ClearOS fault) so I'll have to open up the server again and fiddle around.

    I'll probably post in a separate thread about my upgrade.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, October 25 2012, 10:09 PM - #Permalink
    Resolved
    0 votes
    True Nick - par for the course for 6.3 - I was at about 100 (not counting those for Gnome in this) extra rpms when I abandoned 6.3 and have returned to running 5.2 for now... still too much functionality missing - and the bugs in 6.3, including MultiWan, which is essential to me...
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, October 25 2012, 03:21 PM - #Permalink
    Resolved
    0 votes
    Tony Ellis wrote:
    I find "ntsysv" very useful to control and view what services start automatically...
    .... which is not installed by default in 6.3. Another yum job.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, October 21 2012, 10:17 PM - #Permalink
    Resolved
    0 votes
    I find "ntsysv" very useful to control and view what services start automatically...
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, October 21 2012, 04:11 PM - #Permalink
    Resolved
    0 votes
    I haven't played with Gnome on ClearOS 6 yet but I have many CentOS 6 boxes where I've disabled NetworkManager on all of the interfaces and in the system.

    To do this you have to do 2 things as root on your system:

    1) Edit all of your /etc/sysconfig/network-scripts/ifcfg-eth* files and add the following statement:

    NM_CONTROLLED=no


    2) Disable the NetworkManager daemon:

    /sbin/chkconfig NetworkManager off


    You should be able to verify that the chkconfig command worked as follows:

    /sbin/chkconfig --list NetworkManager


    With the following being the expected output of the command:

    NetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off


    You'll probably need to restart the network service:

    /etc/init.d/network restart


    and maybe reboot the system (can't remember) for it to take effect.

    Hope this helps.
    The reply is currently minimized Show
Your Reply