Difference between revisions of "CentOS 8.x Configure barjatiyarklp after OS installation overwriting existing root partition"
From Notes_Wiki
m |
m |
||
Line 45: | Line 45: | ||
yum -y install freerdp #For xfreerdp to Windows machines | yum -y install freerdp #For xfreerdp to Windows machines | ||
yum -y install texlive #For latex | yum -y install texlive #For latex | ||
yum -y install brasero #For burning CD/DVD | |||
yum -y install livecd-tools #For creating live USB | |||
</pre> | </pre> | ||
Revision as of 14:49, 20 March 2020
<yambe:breadcrumb self="Configure barjatiyarklp after OS installation overwriting existing root partition">CentOS_8.x_New_machine_configuration|New machine configuration</yambe:breadcrumb>
Assuming older OS is reinstalled on / and that other partitions such as /mnt/data1/ are kept intact.
OS installation
- 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.
- First boot and accept license agreement
- Go through welcome wizard and disable use of "Location services" under privacy
- Configure wifi or wired LAN connectivity
- Open "Privacy" and disable screen lock. Validate that location services are also off.
Initial configuration
In terminal
- sudo su -
- visudo (Enable sudo access without password for wheel group)
- Disable SELinux (setenforce 0, /etc/sysconfig/selinux SELINUX=disabled)
- Edit /etc/hosts and add appropriate entries:
- 192.168.1.3 rekallcm1
- Various backup.* entries
- Configure history retention Storing date / time with history command
- Edit /etc/yum.conf and configure keepcache=1
- Full update system using 'yum -y update --skip-broken'
- yum -y install epel-release
- yum -y install byobu
Install and configure required packages
Yum based packages
yum -y remove bind-chroot yum -y install htop #Colorful command-line top yum -y install gimp #Advanced image editor useful for editing pdf as images yum -y install fdupes #Duplicate file detection yum -y install p7zip #Support for 7zip yum -y install expect #For shell automation. Includes mkpasswd utility yum -y install bind bind-utils #For DNS related tasks yum -y install erlang #Programming yum -y install git #Version control yum -y install wireshark #Packet capturing yum -y install libreoffice-writer libreoffice-calc libreoffice-impress #Libreoffice yum -y install telnet nc #For TCP connection checking yum -y install freerdp #For xfreerdp to Windows machines yum -y install texlive #For latex yum -y install brasero #For burning CD/DVD yum -y install livecd-tools #For creating live USB
Install and configure emacs
- yum -y install emacs
- 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
- Configure nautilus to open .org file via emacs by default
Install vlc
- yum -y install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
- yum -y install vlc
Refer:
Configure nautlius
- Open nautilus
- Create bookmarks for (Open folder and press Ctrl+D)
- /mnt/data1/workspace/gbb/owncloud/saurabh
- /mnt/data1
- /mnt/data1/plain_folders/documents/Desktop/rekall
- Configure nautilus to open .org file via emacs by default, if not done already
- vim ~/.config/user-dirs.dirs #As saurabh user
- Comment all except Desktop and Downloads
- vim /etc/xdg/user-dirs.default #As root user
- Comment all except Desktop and Downloads
- Logoff and login again
- Open nautilus and remove bookmarks for Documents, Music, Videos and Pictures
Refer:
Configure firefox
- Ensure that /home/saurabh/.mozilla is symlink to application-data folder
- Starting firefox and see that various profiles are appearing properly.
- Validate history and stored passwords are working as expected
Install and configure thunderbird
- yum -y install thunderbird
- Create symbolic link
- ln -s /mnt/data1/workspace/application-data/thunderbird/ .thunderbird
- Run thunderbird and validate email accounts are accessible
Install Anydesk
- Go to https://anydesk.com/en/downloads/linux and Download Cent OS 8 (64-bit) anydesk rpm
- yum -y install redhat-lsb-core
- yum -y localinstall <downloaded-rpm>
- Set unattended password for anydesk
- Open anydesk as normal user (Saurabh)
- Unlock security settings by entering root password
- Ensure interactive access is set to "Allow always"
- Now try to set password for unattended access
- 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
- Symbolic link ssh from /mnt/data1
- ln -s /mnt/data1/workspace/application-data/ssh .ssh
- ssh root@rekallcm1
- Enter passphrase (4cs..) and enable automatic unlock during login
Install Google chrome
- Refer CentOS 7.x Installing Google chrome
- Start chrome
- Do not make chrome default browser and Disable submitting of usage information
- 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"
Configure git
- Configure various git parameters:
- git config --global user.name "Saurabh Barjatiya"
- git config --global user.email "saurabh@sbarjatiya.com"
- git config --global color.ui true
- git config --global color.status auto
- git config --global color.branch auto
- git config --global core.editor vim
- 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
- Configure postfix gmail relay using Sending email via Gmail relay through postfix
- Edit /etc/aliases and add barjatiya.saurabh [at] gmail.com as alias for root.
- newaliases
- Install and configure logwatch
- systemctl restart postfix
- systemctl enable postfix
Install ntfs-3g and mount drives
- yum -y install ntfs-3g
- blkid
- mkdir -p /mnt/{cdrive,ddrive}
- Add /etc/fstab entries similar to
- UUID="E0722C3A722C17B4" /mnt/cdrive ntfs defaults 0 0
- UUID="8AE21E5EE21E4F37" /mnt/ddrive ntfs defaults 0 0
- mount -a
- df -h
Add Windows boot option
- CentOS 7.x Add Windows 7 boot option to grub2
- Reboot into Windows and check it is working
Install VMWare Remote Console (VMRC)
- Download latest VMWare Remote console from VMWare website
- chmod +x *.bundle
- ./<name>.bundle #as root user
Install Owncloud Desktop client
Install and configure fail2ban
Pending
- Re-add various older VMs
- Unable to find below on CentOS 8
yum -y install kile #Latex editor 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 bzr kdiff3 #For versioning and comparing files yum -y install unetbootin liveusb-creator livecd-tools #For creating live bootable USB from iso files
- Unable to install and configure lxc
<yambe:breadcrumb self="Configure barjatiyarklp after OS installation overwriting existing root partition">CentOS_8.x_New_machine_configuration|New machine configuration</yambe:breadcrumb>