spacewalk-repo-sync, CentOS 7

Thursday, September 29, 2016

I have create a huge collection of CentOS 7 child channels:

CentOS 7 Base x86_64
centos-7-updates-x86_64
spacewalk-client-2-5-rhel-7-x86_64
epel-7-x86_64
spacewalk-2-5-rhel-7-x86_64
nux-dextop-el7-x86_64
trinity-r14-el7-x86_64
jpackage-5-generic-free

This is how I sync it:
cat > /root/sync-repo.sh << EOF
spacewalk-repo-sync -c centos-7-base-x86_64 --sync-kickstart
spacewalk-repo-sync -c centos-7-updates-x86_64
spacewalk-repo-sync -c spacewalk-client-2-5-rhel-7-x86_64
spacewalk-repo-sync -c epel-7-x86_64
spacewalk-repo-sync -c spacewalk-2-5-rhel-7-x86_64
spacewalk-repo-sync -c nux-dextop-el7-x86_64
spacewalk-repo-sync -c trinity-r14-el7-x86_64
spacewalk-repo-sync -c jpackage-5-generic-free
EOF
chmod +x /root/sync-repo.sh
cd /root
./sync-repo.sh

Create static DNS record, RouterOS 6

Wednesday, September 28, 2016

Go for IP -> DNS. Write down router gateway IP address as first DNS server.
Open static record configuration:

Create new record:

Make sure you create a record with dot (.) inside. In this example router will not work but spacewalk.pro will work instantly :)

Set CentOS 7 hostname via kickstart, Spacewalk

Scripting Language:
/bin/sh
Script Name:
set-hostname
Script Contents:
hostnamectl set-hostname newhostnamegoeshere
Script Execution Time:
Pre Script

Install Deluge on CentOS 7

Thursday, September 22, 2016

Install EPEL repository:
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
Install nux repository:
wget http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
rpm -ivh nux-dextop-release-0-5.el7.nux.noarch.rpm
Install deluge daemon and web interface which will be accessible through port 8112.
yum -y install deluge-web
Start service:
systemctl start deluge-web
Add firewall exception:
firewall-cmd --permanent --zone=public --add-port=8112/tcp
firewall-cmd --reload
#systemctl stop firewalld
Go to web interface http://x.y.z.w:8112/. Use password deluge.

Visio 2013 silent install, uninstall, detection, xml

Tuesday, September 20, 2016

setup.xml:
<Configuration Product="VISSTD">
<Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
<Setting Id="SETUP_REBOOT" Value="Never" />
<PIDKEY Value="AAAAABBBBBCCCCCDDDDDEEEEE" />
</Configuration>

silent-install.cmd
start /wait "" "%~dp0setup.exe" /config "%~dp0setup.xml"

silent-uninstall.cmd
start /wait %~dp0setup.exe /uninstall VISSTD /config %~dp0setup.xml

silent-install-with-detection.cmd
@echo off
setlocal EnableDelayedExpansion
set sw=HKLM\SOFTWARE
set u=Microsoft\Windows\CurrentVersion\Uninstall
set k=Office15.VISSTD
if not "%ProgramFiles(x86)%"=="" set x=Wow6432Node\
reg query "%sw%\%x%%u%\%k%" > nul 2>&1
if not !errorlevel!==0 (
start /wait "" "%~dp0setup.exe" /config "%~dp0setup.xml"
) else echo Visio 2013 already installed!
endlocal

silent-uninstall-with-detection.cmd
@echo off
setlocal EnableDelayedExpansion
set sw=HKLM\SOFTWARE
set u=Microsoft\Windows\CurrentVersion\Uninstall
set k=Office15.VISSTD
if not "%ProgramFiles(x86)%"=="" set x=Wow6432Node\
reg query "%sw%\%x%%u%\%k%" > nul 2>&1
if !errorlevel!==0 (
start /wait %~dp0setup.exe /uninstall VISSTD /config %~dp0setup.xml
) else echo no Visio 2013 found!
endlocal

Archive