Re: [CentOS] Automated XFCE install from kickstart and epel-release issue

2019-03-05 Thread freebsd

Hello,

I will give it a shot in the future. What I found that kickstart does 
not like yum installs at all in the %post% section.
It will execute commands like add user, create files, create directories 
but not yum installs such as:



yum update -y
yum install epel-release -y
yum groupinstall "Server with GUI" -y
yum groupinstall "Xfce" -y


Also the other reply is completely irrelevant since the point here is 
fully automating the install with kickstart.


Unfortunately if you use the GUI you will need to push FINISH once 
during the setup:


eula --agreed

doesn't help on that either.


On 2019-02-15 17:42, James Szinger wrote:

On Fri, Feb 15, 2019 at 3:01 AM  wrote:

I am working on a kickstart automated Centos 7 GUI vm deployment.

Defining gnome desktop in kickstart works.
@gnome-desktop - A GNOME desktop

However Centos and anything from the epel-release such as xrdp does 
not

work.

I have tried it on different ways.


repo --name=epel-release
%packages
#epel-release # DOES NOT WORK
@ Core  #@core
@ Base  #@base
@ X Window System   #@x11
#@ XFCE # DOES NOT WORK
@xfce-desktop# DOES NOT WORK
#@Server with GUI  # DOES NOT WORK
#Xfce# DOES NOT WORK
#xrdp  # DOES NOT WORK

I would also like to do a full system upgrade automatically.



You need to tell anaconda where to find the repo:

repo --name=EPEL 
--baseurl=http://download.fedoraproject.org/pub/epel/7/x86_64/


You can then use EPEL packages in the %packages section.  It's better
to point to a local or nearby mirror if you do this often.  Add
another line for the updates repo to get those installed.  My typical
kickstart file has lines like:

url --url=https://.../centos/7/os/x86_64/

repo --name=base--baseurl=https://.../centos/7/os/x86_64/
repo --name=updates --baseurl=https:/.../centos/7/updates/x86_64/
repo --name=EPEL --baseurl=https://.../fedora-epel/7/x86_64/

I have successfully installed MATE and XFCE this way.

Jim
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Automated XFCE install from kickstart and epel-release issue

2019-02-15 Thread James Szinger
On Fri, Feb 15, 2019 at 3:01 AM  wrote:
> I am working on a kickstart automated Centos 7 GUI vm deployment.
>
> Defining gnome desktop in kickstart works.
> @gnome-desktop - A GNOME desktop
>
> However Centos and anything from the epel-release such as xrdp does not
> work.
>
> I have tried it on different ways.
>
>
> repo --name=epel-release
> %packages
> #epel-release # DOES NOT WORK
> @ Core  #@core
> @ Base  #@base
> @ X Window System   #@x11
> #@ XFCE # DOES NOT WORK
> @xfce-desktop# DOES NOT WORK
> #@Server with GUI  # DOES NOT WORK
> #Xfce# DOES NOT WORK
> #xrdp  # DOES NOT WORK
>
> I would also like to do a full system upgrade automatically.


You need to tell anaconda where to find the repo:

repo --name=EPEL --baseurl=http://download.fedoraproject.org/pub/epel/7/x86_64/

You can then use EPEL packages in the %packages section.  It's better
to point to a local or nearby mirror if you do this often.  Add
another line for the updates repo to get those installed.  My typical
kickstart file has lines like:

url --url=https://.../centos/7/os/x86_64/

repo --name=base--baseurl=https://.../centos/7/os/x86_64/
repo --name=updates --baseurl=https:/.../centos/7/updates/x86_64/
repo --name=EPEL --baseurl=https://.../fedora-epel/7/x86_64/

I have successfully installed MATE and XFCE this way.

Jim
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Automated XFCE install from kickstart and epel-release issue

2019-02-15 Thread Ralf Prengel



Von meinem iPad gesendet

> Am 15.02.2019 um 11:00 schrieb free...@tango.lu:
> 
> Hello,
> 
> I am working on a kickstart automated Centos 7 GUI vm deployment.
> 
> Defining gnome desktop in kickstart works.
> @gnome-desktop - A GNOME desktop
> 
> However Centos and anything from the epel-release such as xrdp does not work.
> 
> I have tried it on different ways.
> 
> 


Hallo,
https://www.rootusers.com/how-to-install-xfce-gui-in-centos-7-linux/
works for me
!!!but !!!
I m using a setup-script started via @reboot in /etc/crotab after first boot.
So install a small centos without anything and install configure everything 
after the first boot.

Ralf
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Automated XFCE install from kickstart and epel-release issue

2019-02-15 Thread freebsd

Hello,

I am working on a kickstart automated Centos 7 GUI vm deployment.

Defining gnome desktop in kickstart works.
@gnome-desktop - A GNOME desktop

However Centos and anything from the epel-release such as xrdp does not 
work.


I have tried it on different ways.


repo --name=epel-release
%packages
#epel-release # DOES NOT WORK
@ Core  #@core
@ Base  #@base
@ X Window System   #@x11
#@ XFCE # DOES NOT WORK
@xfce-desktop# DOES NOT WORK
#@Server with GUI  # DOES NOT WORK
#Xfce# DOES NOT WORK
#xrdp  # DOES NOT WORK


I have followed the recommendations in this discussion:

https://unix.stackexchange.com/questions/81354/import-epel-gpg-key-in-kickstart-post-installation

None of them worked. In the %post% section yum -y commands seems to be 
ignored.


I would also like to do a full system upgrade automatically.

Any ideas?

Thanks
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos