Difference between revisions of "CentOS 8.x Configure barjatiyarklp after OS installation overwriting existing root partition"

From Notes_Wiki
m
m
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
<yambe:breadcrumb self="Configure barjatiyarklp after OS installation overwriting existing root partition">CentOS_8.x_New_machine_configuration|New machine configuration</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 8.x]] > [[CentOS 8.x System Administration|System Administration]] > [[CentOS 8.x New machine configuration|New machine configuration]] > [[CentOS 8.x Configure barjatiyarklp after OS installation overwriting existing root partition]]


'''Assuming older OS is reinstalled on / and that other partitions such as /mnt/data1/ are kept intact.'''  
'''Assuming older OS is reinstalled on / and that other partitions such as /mnt/data1/ are kept intact.'''  
Line 19: Line 19:
# Edit /etc/hosts and add appropriate entries:
# Edit /etc/hosts and add appropriate entries:
#* 192.168.1.3 rekallcm1
#* 192.168.1.3 rekallcm1
#* Various backup.* entries
#* Other relevant /etc/hosts entries from other machines
# Configure history retention [[Storing date / time with history command]]
# Configure history retention [[Storing date / time along with commands in history]]
# Configure alias for checking battery status [[CentOS 7.x check laptop battery information]]
# Edit /etc/yum.conf and configure keepcache=1
# Edit /etc/yum.conf and configure keepcache=1
# Full update system using 'yum -y update --skip-broken'
# Full update system using 'dnf -y update --skip-broken --nobest'
# yum -y install epel-release
# dnf -y install epel-release
# yum -y install byobu
# dnf -y install byobu




=Install and configure required packages=
=Install and configure required packages=


==Yum based packages==
==dnf based packages==
<pre>
<pre>
     yum -y remove bind-chroot
     dnf -y remove bind-chroot
     yum -y install htop  #Colorful command-line top
     dnf -y install htop  #Colorful command-line top
     yum -y install gimp  #Advanced image editor useful for editing pdf as images
     dnf -y install gimp  #Advanced image editor useful for editing pdf as images
     yum -y install fdupes      #Duplicate file detection
     dnf -y install fdupes      #Duplicate file detection
     yum -y install p7zip      #Support for 7zip
     dnf -y install p7zip      #Support for 7zip
     yum -y install expect      #For shell automation.  Includes mkpasswd utility
     dnf -y install expect      #For shell automation.  Includes mkpasswd utility
     yum -y install bind bind-utils  #For DNS related tasks
     dnf -y install bind bind-utils  #For DNS related tasks
     yum -y install erlang      #Programming
     dnf -y install erlang      #Programming
     yum -y install git        #Version control
     dnf -y install git        #Version control
     yum -y install wireshark  #Packet capturing
     dnf -y install wireshark  #Packet capturing
     yum -y install libreoffice-writer libreoffice-calc libreoffice-impress  #Libreoffice
     dnf -y install libreoffice-writer libreoffice-calc libreoffice-impress  #Libreoffice
     yum -y install telnet nc  #For TCP connection checking
     dnf -y install telnet nc  #For TCP connection checking
     yum -y install freerdp    #For xfreerdp to Windows machines
     dnf -y install freerdp    #For xfreerdp to Windows machines
    dnf -y install texlive    #For latex
    dnf -y install brasero    #For burning CD/DVD
    dnf -y install livecd-tools #For creating live USB
    dnf -y install minicom    #For working with serial ports
    dnf -y install iw      #For wireless iw command
    dnf -y install libguestfs-tools  #For virt-sysprep
    dnf -y install ImageMagick  #For image editing
    dnf -y install dia      #For diagrams
    dnf -y install xsane    #For scanning
    dnf -y install texlive-wrapfig texlive-capt-of texlive-ulem texlive-translator #For org-latex exports
    dnf -y install texlive-translator  #For compiling beamer presentations using latex
    dnf -y install gparted  #For partition management
</pre>
</pre>
Install a few games:
<pre>
dnf -y install blinken bomber bovo kanagram kapman katomic kblackbox kblocks kbounce kdiamond kfourinline kgoldrunner khangman kigo killbots kiriki kjumpingcube klines kmahjongg kmines knetwalk kolf kollision konquest kreversi kshisen ksirk ksnakeduel kspaceduel ktuberling kubrick lskat nethack picmi trader xrick zork
</pre>
Not found packages to be searched later:
<pre>
    dnf -y install pandoc  #For documentation generation
    dnf -y install encfs    #For fuse encrypted filesystem
</pre>
==Install brave browser==
<pre>
sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
sudo dnf -y install dnf-utils
sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/x86_64/
sudo dnf install brave-browser -y
</pre>




==Install and configure emacs==
==Install and configure emacs==
# yum -y install emacs
# dnf -y install emacs
# Ensure /home/saurabh/.emacs and /home/saurabh/.emacs.d are symlink to appropriate folders of application-data
# Ensure /home/saurabh/.emacs and /home/saurabh/.emacs.d are symlink to appropriate folders of application-data
# Validate things are working by opening to-do.org file
# Validate things are working by opening to-do.org file
Line 54: Line 88:




==Install vlc===
==Install vlc==
# yum -y install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
# yum -y install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
# yum -y install vlc
# yum -y install vlc
Line 60: Line 94:
Refer:  
Refer:  
* https://www.tecmint.com/install-vlc-media-player-in-rhel-centos-fedora/
* https://www.tecmint.com/install-vlc-media-player-in-rhel-centos-fedora/
==Install broadcom-wl==
# dnf -y install https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm
# dnf -y install broadcom-wl
==Install I217 Intel ethernet drivers==
Wired ethernet driver for Linux for "Intel Corporation Ethernet Connection I217-LM (rev 04)" need to be installed on CentOS 8 stream for its proper functioning.  See https://www.intel.com/content/www/us/en/support/articles/000005480/ethernet-products.html
# Install packages 
#:<pre>
#::  yum install gcc make
#:: yum install kernel kernel-devel
#:</pre>
# Download driver from https://sourceforge.net/projects/e1000/
# tar xzf downloaded file
# cd <folder>/src
# make; sudo make install
==Install skype==
# Download skype rpm from https://www.skype.com/en/get-skype/download-skype-for-desktop/
# Install the rpm using:
#:<pre>
#:: dnf -y localinstall <rpm-name>
#:</pre>




==Configure nautlius==
==Configure nautlius==
# Open nautilus
# Open nautilus
# Create bookmarks for
# Create bookmarks for (Open folder and press Ctrl+D)
#* /mnt/data1/workspace/gbb/owncloud/saurabh
#* /mnt/data1/workspace/gbb/owncloud/saurabh
#* /mnt/data1
#* /mnt/data1
Line 91: Line 152:
#:  ln -s /mnt/data1/workspace/application-data/thunderbird/ .thunderbird
#:  ln -s /mnt/data1/workspace/application-data/thunderbird/ .thunderbird
# Run thunderbird and validate email accounts are accessible
# Run thunderbird and validate email accounts are accessible
# Set date-format display using [[OpenSuse Leap 15 Change date-format displayed in Thunderbird]]
# Optionally set correct calendar response email ID using [[CentOS 8.x Thunderbird calendar invitation response email address]]




==Install Anydesk==
==Install Anydesk==
# Go to https://anydesk.com/en/downloads/linux and Download Cent OS 8 (64-bit) anydesk rpm
# Refer [[CentOS 8.x Install anydesk]]
# yum -y localinstall <downloaded-rpm>
# Restore backup of anydesk configuration:
 
#:<pre>
'''Unable to set unattended anydesk even with root graphical desktop login'''
#:: cd ~/.anydesk
#:: mv user.conf user-old.conf
#:: ln -s /mnt/data1/workspace/application-data/anydesk/anydesk-saurabh-user.conf user.conf
#:</pre>




Line 105: Line 171:
# ssh root@rekallcm1
# ssh root@rekallcm1
#:  Enter passphrase (4cs..) and enable automatic unlock during login
#:  Enter passphrase (4cs..) and enable automatic unlock during login
==Install nomachine==
*[[CentOS 8.x Install nomachine]]




==Install Google chrome==
==Install Google chrome==
# [[Refer CentOS 7.x Installing Google chrome]]
# Refer [[CentOS 7.x Installing Google chrome]]
# Start chrome
# Start chrome
# Do not make chrome default browser and Disable submitting of usage information
# Do not make chrome default browser and Disable submitting of usage information
# Test by opening www.google.com
# Test by opening www.google.com


==Install flash-plugin==
# Open https://get.adobe.com/flashplayer/
# Choose download of "Yum for Linux"
# Install downloaded rpm file
#:  yum -y localinstall adobe-release-x86_64-1.0-1.noarch.rpm
# Close all browsers (Esp. firefox)
# yum -y install flash-plugin
# Start firefox and check "about:plugins"




Line 128: Line 191:
#:<pre>
#:<pre>
#::            git config --global user.name "Saurabh Barjatiya"
#::            git config --global user.name "Saurabh Barjatiya"
#::            git config --global user.email "saurabh@sbarjatiya.com"
#::            git config --global user.email "saurabh [at] sbarjatiya.com" #Correct email address
#::            git config --global color.ui true
#::            git config --global color.ui true
#::            git config --global color.status auto
#::            git config --global color.status auto
Line 146: Line 209:
# newaliases
# newaliases
# Install and configure logwatch
# Install and configure logwatch
# systemctl restart postfix
# systemctl enable postfix




Line 170: Line 235:
# chmod +x *.bundle
# chmod +x *.bundle
# ./<name>.bundle  #as root user
# ./<name>.bundle  #as root user
==Install Owncloud Desktop client==
*[[CentOS 8.x Owncloud linux desktop client]]
==Install and configure fail2ban==
*[[CentOS 7.x fail2ban]]
==Configure lxc==
*[[CentOS 8.x install lxc]]
==Configure ntp client==
*[[CentOS 8.x chronyc ntp client configuration]]
==Re-add various older VMs==
Refer [[CentOS_8.x_Configure_rekallcm1_(high-end_desktop)_with_software_raid,_lxc,_kvm_and_other_utilities#Re-add_various_older_VMs]]




==Pending==
==Pending==
* Re-add various older VMs
* Unable to find below on CentOS 8
* Unable to find below on CentOS 8
<pre>
<pre>
     yum -y install kile  #Latex editor
     yum -y install kile  #Latex editor
     yum -y install yaws        #Erlang web server
     yum -y install yaws        #Erlang web server
    yum -y install dia        #Diagram such as flowcharts or network design editor
     yum -y install kolourpaint #Basic image editor
     yum -y install kolourpaint #Basic image editor
     yum -y install bzr kdiff3  #For versioning and comparing files
     yum -y install bzr kdiff3  #For versioning and comparing files
     yum -y install unetbootin liveusb-creator livecd-tools #For creating live bootable USB from iso files
     yum -y install unetbootin liveusb-creator livecd-tools #For creating live bootable USB from iso files
</pre>
</pre>
* Unable to install and configure lxc
* Unattended anydesk installation
* Unable to install owncloud desktop client








<yambe:breadcrumb self="Configure barjatiyarklp after OS installation overwriting existing root partition">CentOS_8.x_New_machine_configuration|New machine configuration</yambe:breadcrumb>
 
[[Main Page|Home]] > [[CentOS]] > [[CentOS 8.x]] > [[CentOS 8.x System Administration|System Administration]] > [[CentOS 8.x New machine configuration|New machine configuration]] > [[CentOS 8.x Configure barjatiyarklp after OS installation overwriting existing root partition]]

Latest revision as of 06:30, 20 June 2022

Home > CentOS > CentOS 8.x > System Administration > New machine configuration > CentOS 8.x Configure barjatiyarklp after OS installation overwriting existing root partition

Assuming older OS is reinstalled on / and that other partitions such as /mnt/data1/ are kept intact.

OS installation

  1. Install CentOS 8 server with GUI with required packages (Except Smart card tools, Infiband support, Legacy application support, etc.)
    During installation Select Asia/Kolkata timezone even if time is reported wrong. After installation correct time is automatically shown.
  2. First boot and accept license agreement
  3. Go through welcome wizard and disable use of "Location services" under privacy
  4. Configure wifi or wired LAN connectivity
  5. Open "Privacy" and disable screen lock. Validate that location services are also off.


Initial configuration

In terminal

  1. sudo su -
  2. visudo (Enable sudo access without password for wheel group)
  3. Disable SELinux (setenforce 0, /etc/sysconfig/selinux SELINUX=disabled)
  4. Edit /etc/hosts and add appropriate entries:
    • 192.168.1.3 rekallcm1
    • Other relevant /etc/hosts entries from other machines
  5. Configure history retention Storing date / time along with commands in history
  6. Configure alias for checking battery status CentOS 7.x check laptop battery information
  7. Edit /etc/yum.conf and configure keepcache=1
  8. Full update system using 'dnf -y update --skip-broken --nobest'
  9. dnf -y install epel-release
  10. dnf -y install byobu


Install and configure required packages

dnf based packages

    dnf -y remove bind-chroot
    dnf -y install htop   #Colorful command-line top
    dnf -y install gimp   #Advanced image editor useful for editing pdf as images
    dnf -y install fdupes      #Duplicate file detection
    dnf -y install p7zip       #Support for 7zip
    dnf -y install expect      #For shell automation.  Includes mkpasswd utility
    dnf -y install bind bind-utils   #For DNS related tasks
    dnf -y install erlang      #Programming
    dnf -y install git         #Version control
    dnf -y install wireshark   #Packet capturing
    dnf -y install libreoffice-writer libreoffice-calc libreoffice-impress  #Libreoffice
    dnf -y install telnet nc   #For TCP connection checking
    dnf -y install freerdp     #For xfreerdp to Windows machines
    dnf -y install texlive     #For latex
    dnf -y install brasero     #For burning CD/DVD
    dnf -y install livecd-tools #For creating live USB
    dnf -y install minicom     #For working with serial ports
    dnf -y install iw       #For wireless iw command
    dnf -y install libguestfs-tools  #For virt-sysprep
    dnf -y install ImageMagick  #For image editing
    dnf -y install dia      #For diagrams
    dnf -y install xsane    #For scanning
    dnf -y install texlive-wrapfig texlive-capt-of texlive-ulem texlive-translator #For org-latex exports
    dnf -y install texlive-translator  #For compiling beamer presentations using latex
    dnf -y install gparted   #For partition management

Install a few games:

dnf -y install blinken bomber bovo kanagram kapman katomic kblackbox kblocks kbounce kdiamond kfourinline kgoldrunner khangman kigo killbots kiriki kjumpingcube klines kmahjongg kmines knetwalk kolf kollision konquest kreversi kshisen ksirk ksnakeduel kspaceduel ktuberling kubrick lskat nethack picmi trader xrick zork

Not found packages to be searched later:

    dnf -y install pandoc   #For documentation generation
    dnf -y install encfs    #For fuse encrypted filesystem


Install brave browser

sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
sudo dnf -y install dnf-utils
sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/x86_64/
sudo dnf install brave-browser -y


Install and configure emacs

  1. dnf -y install emacs
  2. Ensure /home/saurabh/.emacs and /home/saurabh/.emacs.d are symlink to appropriate folders of application-data
  3. Validate things are working by opening to-do.org file
  4. Configure nautilus to open .org file via emacs by default


Install vlc

  1. yum -y install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
  2. yum -y install vlc

Refer:


Install broadcom-wl

  1. dnf -y install https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm
  2. dnf -y install broadcom-wl


Install I217 Intel ethernet drivers

Wired ethernet driver for Linux for "Intel Corporation Ethernet Connection I217-LM (rev 04)" need to be installed on CentOS 8 stream for its proper functioning. See https://www.intel.com/content/www/us/en/support/articles/000005480/ethernet-products.html

  1. Install packages
    yum install gcc make
    yum install kernel kernel-devel
  2. Download driver from https://sourceforge.net/projects/e1000/
  3. tar xzf downloaded file
  4. cd <folder>/src
  5. make; sudo make install


Install skype

  1. Download skype rpm from https://www.skype.com/en/get-skype/download-skype-for-desktop/
  2. Install the rpm using:
    dnf -y localinstall <rpm-name>


Configure nautlius

  1. Open nautilus
  2. Create bookmarks for (Open folder and press Ctrl+D)
    • /mnt/data1/workspace/gbb/owncloud/saurabh
    • /mnt/data1
    • /mnt/data1/plain_folders/documents/Desktop/rekall
  3. Configure nautilus to open .org file via emacs by default, if not done already
  4. vim ~/.config/user-dirs.dirs #As saurabh user
    Comment all except Desktop and Downloads
  5. vim /etc/xdg/user-dirs.default #As root user
    Comment all except Desktop and Downloads
  6. Logoff and login again
  7. Open nautilus and remove bookmarks for Documents, Music, Videos and Pictures

Refer:


Configure firefox

  1. Ensure that /home/saurabh/.mozilla is symlink to application-data folder
  2. Starting firefox and see that various profiles are appearing properly.
  3. Validate history and stored passwords are working as expected


Install and configure thunderbird

  1. yum -y install thunderbird
  2. Create symbolic link
    ln -s /mnt/data1/workspace/application-data/thunderbird/ .thunderbird
  3. Run thunderbird and validate email accounts are accessible
  4. Set date-format display using OpenSuse Leap 15 Change date-format displayed in Thunderbird
  5. Optionally set correct calendar response email ID using CentOS 8.x Thunderbird calendar invitation response email address


Install Anydesk

  1. Refer CentOS 8.x Install anydesk
  2. Restore backup of anydesk configuration:
    cd ~/.anydesk
    mv user.conf user-old.conf
    ln -s /mnt/data1/workspace/application-data/anydesk/anydesk-saurabh-user.conf user.conf


Configure SSH

  1. Symbolic link ssh from /mnt/data1
    ln -s /mnt/data1/workspace/application-data/ssh .ssh
  2. ssh root@rekallcm1
    Enter passphrase (4cs..) and enable automatic unlock during login


Install nomachine


Install Google chrome

  1. Refer CentOS 7.x Installing Google chrome
  2. Start chrome
  3. Do not make chrome default browser and Disable submitting of usage information
  4. Test by opening www.google.com


Configure git

  1. Configure various git parameters:
    git config --global user.name "Saurabh Barjatiya"
    git config --global user.email "saurabh [at] sbarjatiya.com" #Correct email address
    git config --global color.ui true
    git config --global color.status auto
    git config --global color.branch auto
    git config --global core.editor vim
  2. Configure to use simple push by default
    git config --global push.default simple
    Refer https://stackoverflow.com/questions/21839651/git-what-is-the-difference-between-push-default-matching-and-simple


Postfix and logwatch

  1. Configure postfix gmail relay using Sending email via Gmail relay through postfix
  2. Edit /etc/aliases and add barjatiya.saurabh [at] gmail.com as alias for root.
  3. newaliases
  4. Install and configure logwatch
  5. systemctl restart postfix
  6. systemctl enable postfix


Install ntfs-3g and mount drives

  1. yum -y install ntfs-3g
  2. blkid
  3. mkdir -p /mnt/{cdrive,ddrive}
  4. Add /etc/fstab entries similar to
    UUID="E0722C3A722C17B4" /mnt/cdrive ntfs defaults 0 0
    UUID="8AE21E5EE21E4F37" /mnt/ddrive ntfs defaults 0 0
  5. mount -a
  6. df -h


Add Windows boot option

  1. CentOS 7.x Add Windows 7 boot option to grub2
  2. Reboot into Windows and check it is working


Install VMWare Remote Console (VMRC)

  1. Download latest VMWare Remote console from VMWare website
  2. chmod +x *.bundle
  3. ./<name>.bundle #as root user


Install Owncloud Desktop client


Install and configure fail2ban


Configure lxc


Configure ntp client


Re-add various older VMs

Refer CentOS_8.x_Configure_rekallcm1_(high-end_desktop)_with_software_raid,_lxc,_kvm_and_other_utilities#Re-add_various_older_VMs


Pending

  • Unable to find below on CentOS 8
    yum -y install kile  #Latex editor
    yum -y install yaws        #Erlang web server
    yum -y install kolourpaint #Basic image editor
    yum -y install bzr kdiff3  #For versioning and comparing files
    yum -y install unetbootin liveusb-creator livecd-tools #For creating live bootable USB from iso files



Home > CentOS > CentOS 8.x > System Administration > New machine configuration > CentOS 8.x Configure barjatiyarklp after OS installation overwriting existing root partition