Centos
Centos is a redhat flavor linux,
mate desktop
Of course you are forced to use the unusable desktops by default but let's just revert that right now.
- Do not use use any of the 'classic' sessions they are equally horrible
- use MATE Desktop always.
| install mate | |
|---|---|
You will probably still not have the correct desktop after this, but it's set in the file /var/lib/AccountsService/users/kees
| /var/lib/AccountsService/users/kees | |
|---|---|
It will not exist until you log in at least once. Sometimes you get a little gear icon next to the login button where you can set mate as well, otherwise edit this file and log in again.
yum repositories
The main base is /etc/yum* for instance :
| config | |
|---|---|
Is for the main settings
| repository files | |
|---|---|
Is a directory for additional repositories, for instance see "install chrome" later in this page. To solve problems with messages like :
| error | |
|---|---|
You can run this command to list all repositories :
| list repositories | |
|---|---|
A useful setting for yum.conf, because yum will retry 10 times 30 seconds when it cannot reach repositories, you could tune that down :
Note that the first time counts as a 'try' so this will try 3 times, fill in retries=0 for 1 time only.
However this did not help me in this case, which was with the [rinis] repository so the second tool is simply:
| ls | |
|---|---|
Which gave :
Clearly, RINIS.net.rep AND RINIS.nl.rep was a bit too much.
vbox guest additions
I did not get the resolution up to par the first couple of times, this guide helped a lot :
Welcome to the CentOS forums. Reading FAQ & Readme First is recommended for new users.
Not sure where you may be going wrong as the instructions you cite seem pretty clear, but the first couple of steps below may be missing. It goes like this.
- Read Installing Software and Repositories, and note the warnings and advice about installing and configuring the yum priorities plugin.
- Become root.
- Configure the RPMforge repo (or EPEL).
- "yum install dkms" - should pull in required dependencies if not installed.
- Pick "Install Guest Additions..." from the VirtualBox "Devices" menu.
- Mount /dev/cdrom on a convenient mount point, if it does not automount in a GUI environment.
- "cd /mount/point" - wherever it is mounted.
- "sh ./VBoxLinuxAdditions-x86.run" or "sh ./VBoxLinuxAdditions-amd64.run" for i386 or x86_64 installations respectively.
- Reboot.
Additional, make sure you match the kernel and the kernel sources because the vbox installer uses uname to get the exact kernel version.
centos 6
6.5 is the last version in the 6 series, if you install this under virtualbox, save yourself some trouble and update virtualbox to the latest from the oracle site. The guest additions will install directly from version 4.3 , not from the version that debian provides (4.1)
install chrome :
Again it does not install out of the box, create a file called :
| chrome | |
|---|---|
With these contents :
| /etc/yum.repos.d/google-chrome.repo | |
|---|---|
Then install it with :
| install | |
|---|---|
network
The network scripts are located in /etc/sysconfig/network-scripts If you want to set a default gateway, you can put that in :
| /etc/sysconfig/network-scripts | |
|---|---|
But if you remove this line, it will take the gateway from your first interface (mostly what you want).
Desktop environment
Minimal installs do not come with a graphical desktop interface, but if you want to, MATE seems to be the one closest to debian. You use groupinstalls for that.
| groupinstall | |
|---|---|
Watch the output for errors, because they may be called slightly different between versions. After installation run :
| start | |
|---|---|
centos 6.6 for rinis
I chose for the DVD, and managed quite well without ever having to mount dvd2.
- Choose NAT, because bridged networking is probably forbidden by MAC address.
- I have set the proxy for VirtualBox networking to thew rinis proxy, not sure if it's needed.
- Install Workstation
- set proxy=http://10.10.1.13:3128 in /etc/yum/.conf
- set auto detect proxy settings in your browser
- set ONBOOT=yes in /etc/sysconfig/network-scripts/ifcfg-eth0
- After bootup, install guest additions, it will probably fail but give you the exact kernel to install
- yum install kernel-devel-
- yum install gcc make
- run VBoxLinuxAdditions.run again.
- reboot
- yum install epel-release.noarch
This will get you a reasonable startup system.
Myself i would want chrome, but that is explained just above this chapter.
centos 7
I would not advise to do a netinstall, you have to type the mirror sites in by hand and try to guess which exact directory they need. It will say it fails, but no single clue about why, i bailed out after 10 tries : use the live version, it has an install to disk option !
i386 does not have a live version.. so you have to use netinst
Or dvd or something, but with netinst, before find a suitable mirror and then fill in the path upto the architecture part. So here is a working example in nl (see visit)
Hit done, and if Installation source says "Downloading metadata .." you are good, else find a typo or another mirror. Note that most 'normal' mirrors provide only x86_64 and you specifically have to go to altarch, and also not that only the last one of the major versions has data inside. If you really want centos 7.3 you will have to find an archive !!
enable network interface
Yes it starts with the network off, and you will have to enabled it after every startup. So of course you don't want that : edit the file
/etc/sysconfig/network-scripts/ifcfg-enp0s3
Any way that was what it was called in my installation, but some tabbing will show you how yours is called. It contains a number of options you might want to review. But the one we need to change is :
ONBOOT=no
Now i will list some equivalent commands in centos from debian. Most of it comes from this site
dev == devel
In naming packages, the source is mostly called xxxx-devel instead of xxxx-dev (debian)
apt-get == yum
There is no real substitute for aptitude, but apt-get and yum are very similar. You can install an rpm package with yum, where you would use dpkg in debian.
| yum | |
|---|---|
If you use aptitude mainly to search for packages, you can use the list command with yum :
| search | |
|---|---|
Or just :
| exact match | |
|---|---|
But then an exact match should exist, so yum list http would not match.
dpkg == rpm
Same difference, it is the package manager for centos, also very similar.
update-rc.d == chkconfig
And apache == httpd :
| start apache | |
|---|---|
Centos version :
| start apache | |
|---|---|
/etc/init.d/apache2 restart == service httpd restart
BUT, this command also works on debian (albeit "service apache2 restart" of course). So better learn to start/stop services with the service command on debian as well.
install problems
Error: failure: "repodata/eb9495df6079e8f12f9988768f4ad64ce484b7213d4659cfbc7586da8d1224c5-filelists.sqlite.bz2" from updates: [Errno 256] No more mirrors to try.
This will probably help :
redhat package manager
As it says, but of course it is also usable for CentOS.
signing
This was needed for the problem with dellomsa downloads. The method dell uses is a cgi script bootstrap.cgi
which in turn runs on the server and downloads a shell script :
| script | |
|---|---|
Which is altered slightly to contain the server and directory to download from. The script however should also run on the local repository but it has some bugs we like to point out.
problem
The problem we encounter is this error when executing the downloaded script /tmp/bootstrap.cgi : (ansible error) :
The problem is indeed in the fact that the downloaded keys are skipped, and the package can't be installed because of the missing key(s).
cause
When you login to the server, you can run the script by hand to get almost the same error. Now try to list the keys that rpm uses :
| list keys | |
|---|---|
This will list something like :
| output | |
|---|---|
So .. only one key, and we tested two and they are said to be installed both so there must be something wrong. The script first tests the email address of dell to later check that as a identifier against the keys, with this line :
| inside script | |
|---|---|
This would give this result with gpg installed, it list some details from the GPG key downloaded in /tmp and extracts the email address :
| address | |
|---|---|
But as you guessed , gpg was not installed, and then it yields : Nothing.
Now in the script we loop through all installed rpm keys with :
| rpm keys | |
|---|---|
lvm
Centos out of the box will be installed with lvm active, but last time it just only partitioned half of my disk. Also there is no gui to handle the LVM setup. To get one install this :
But that is still cli, if you really want a gui :
| install | |
|---|---|
This one will appear in the control center under Administration.
stop screensaver for demo portal
This script maybe ?!?! (I leave this here since it might work on other systems)
NOPE !! Not working
Next attempt : Working on centos !
| gsettings | |
|---|---|
This seems to get us somewhere but we have mate desktop so :
| gsettings | |
|---|---|
Actually you can see it happen : open System->preferences->look and feel->screensaver
Then do :
| gsettings | |
|---|---|
You will see this setting change : "Lock screen when screensaver is active".