Changes

Jump to navigation Jump to search
Line 1: Line 1:  
My talk page (whatever that means)
 
My talk page (whatever that means)
 +
 +
 +
==RPM building==
 +
RPM building
 +
https://www.redhat.com/sysadmin/create-rpm-package
 +
 +
dnf install git rpmdevtools rpmlint
 +
 +
rpmlint is handy!
 +
 +
db yum_repositories setprop Rocky-Devel MirrorList "https://mirrors.rockylinux.org/mirrorlist?arch=\$basearch&repo=Devel-\$releasever" Name "Rocky Linux \$releasever - Devel" EnableGroups yes GPGCheck no Visible yes status disabled
 +
 +
Set up the RPM tree
 +
rpmdev-setuptree
 +
 +
 +
==Other stuff==
 +
 +
phatch - not supported for years but still excellent
 +
http://photobatch.wikidot.com/
 +
Not so easy on Windows. Doddle on Linux.
 +
 +
Some alternatives.
 +
http://www.highmotionsoftware.com/products/imbatch
 +
https://www.faststone.org/FSResizerDetail.htm
 +
https://www.saashub.com/compare-image-resizer-for-windows-vs-multiple-image-resizer-net
 +
 +
Grep without comments
 +
 +
https://unix.stackexchange.com/questions/60994/how-to-grep-lines-which-does-not-begin-with-or
 +
 +
<nowiki>grep '^[[:blank:]]*[^[:blank:]#;]' smb.conf
 +
  grep -vxE '[[:blank:]]*([#;].*)?' smb.conf
 +
  awk '$1 ~ /^[^;#]/' smb.conf
 +
  cat /etc/samba/smb.conf | grep ^[^#\;]
 +
  grep -v "^\s*[#\;]\|^\s*$" smb.conf
 +
  grep -v "^\s*[#;]" any.conf | grep -v "^\s*$"
 +
  </nowiki>
 +
 +
 +
    
==systemd notes==
 
==systemd notes==
Line 23: Line 64:  
== TFTP Notes ==
 
== TFTP Notes ==
   −
=== Menu system ===
+
===Menu system===
    
This uses syslinux available from here  
 
This uses syslinux available from here  
Line 107: Line 148:       −
# If you install the smeserver-nfs contrib and export a mount you can use something like the following :
+
#If you install the smeserver-nfs contrib and export a mount you can use something like the following :
    
  label Bitdefender 2
 
  label Bitdefender 2
Line 124: Line 165:  
   append nfsdir=192.168.0.1:/home/e-smith/files/ibays/computer/files/fsecure_311 initrd=images/fsecure_311/minirt.gz nodhcp lang=gb ramdisk_size=1000000
 
   append nfsdir=192.168.0.1:/home/e-smith/files/ibays/computer/files/fsecure_311 initrd=images/fsecure_311/minirt.gz nodhcp lang=gb ramdisk_size=1000000
   −
== smeserver-openswan notes ==
+
==smeserver-openswan notes ==
    
smeserver-openswan-0.6
 
smeserver-openswan-0.6
Line 199: Line 240:  
keyingtries| Default Empty | 0 is default - 'forever'
 
keyingtries| Default Empty | 0 is default - 'forever'
   −
# Future
+
#Future
# certname: Default Empty | Your certificate name
+
#certname: Default Empty | Your certificate name
# leftcert
+
#leftcert
 
# rightca: Default %same
 
# rightca: Default %same
      −
*** For a basic connection you need this as a bare minimum ***
+
***For a basic connection you need this as a bare minimum ***
    
config setprop ipsec status enabled access public
 
config setprop ipsec status enabled access public
Line 236: Line 277:       −
*** For a rsasig connection ***
+
***For a rsasig connection ***
    
Please see the section on generating rsa Signatures.
 
Please see the section on generating rsa Signatures.
Line 268: Line 309:       −
*** For a rsasig connection with dynamic IP ***
+
***For a rsasig connection with dynamic IP ***
    
This will set your local 'left' rsasig
 
This will set your local 'left' rsasig
Line 298: Line 339:  
db ipsec_connections set MyWest ipsec status enabled iptype dyntostat auto start leftsourceip 10.0.0.1 leftsubnet 10.0.0.0/24 right 5.6.7.8 rightsubnet 192.168.20.0/24 security rsasig leftid West rightid East leftrsasig SomeLongPassFromWest rightrsasig SomeLongEastPasswordFromEast
 
db ipsec_connections set MyWest ipsec status enabled iptype dyntostat auto start leftsourceip 10.0.0.1 leftsubnet 10.0.0.0/24 right 5.6.7.8 rightsubnet 192.168.20.0/24 security rsasig leftid West rightid East leftrsasig SomeLongPassFromWest rightrsasig SomeLongEastPasswordFromEast
   −
== smeserver-libreswan notes ==
+
==smeserver-libreswan notes==
    
smeserver-libreswan-0.5
 
smeserver-libreswan-0.5
Line 373: Line 414:  
keyingtries| Default Empty | 0 is default - 'forever'
 
keyingtries| Default Empty | 0 is default - 'forever'
   −
# Future
+
#Future
# certname: Default Empty | Your certificate name
+
#certname: Default Empty | Your certificate name
# leftcert
+
#leftcert
# rightca: Default %same
+
#rightca: Default %same
      −
*** For a basic connection you need this as a bare minimum ***
+
***For a basic connection you need this as a bare minimum ***
    
config setprop ipsec status enabled access public
 
config setprop ipsec status enabled access public
Line 410: Line 451:       −
*** For a rsasig connection ***
+
***For a rsasig connection ***
    
Please see the section on generating rsa Signatures.
 
Please see the section on generating rsa Signatures.
Line 442: Line 483:       −
*** For a rsasig connection with dynamic IP ***
+
***For a rsasig connection with dynamic IP ***
    
This will set your local 'left' rsasig
 
This will set your local 'left' rsasig
Line 471: Line 512:  
Remote MyWest - WAN IP %variable Local IP 10.0.0.1 Subnet 10.0.0.0/24
 
Remote MyWest - WAN IP %variable Local IP 10.0.0.1 Subnet 10.0.0.0/24
 
db ipsec_connections set MyWest ipsec status enabled iptype dyntostat auto start leftsourceip 10.0.0.1 leftsubnet 10.0.0.0/24 right 5.6.7.8 rightsubnet 192.168.20.0/24 security rsasig leftid West rightid East leftrsasig SomeLongPassFromWest rightrsasig SomeLongEastPasswordFromEast
 
db ipsec_connections set MyWest ipsec status enabled iptype dyntostat auto start leftsourceip 10.0.0.1 leftsubnet 10.0.0.0/24 right 5.6.7.8 rightsubnet 192.168.20.0/24 security rsasig leftid West rightid East leftrsasig SomeLongPassFromWest rightrsasig SomeLongEastPasswordFromEast
 +
 +
== Package modification with Git ==
 +
 +
==Server Setup==
 +
 +
Packages:
 +
 +
To pull and read
 +
mock,git, git-lfs
 +
 +
To commit
 +
koji
 +
 +
==For anonymous access and test building locally==
 +
 +
===Setup Mock===
 +
 +
Install /etc/mock/smeserver-11-x86_64-base.cfg
 +
 +
Set up the mock files:
 +
 +
mock -r smeserver-11-x86_64-base --init
 +
 +
===Clone your repo===
 +
 +
mkdir git; cd git
 +
git clone https://src.koozali.org/smeserver/ulogd.git
 +
cd ulogd
 +
git clone https://src.koozali.org/smeserver/common.git common
 +
 +
Do some stuff.
 +
 +
Update the spec file
 +
Bump the version
 +
Add your changelog entry
 +
 +
===Test build===
 +
This will overwrite your changes and build the EXISTING version.
 +
How do we build with the fixes?
 +
 +
make clean;prep;make mockbuild
 +
 +
You should now have a rpm that you can install
 +
 +
 +
==For user access, test building locally and committing==
 +
 +
===Setup Koji===
 +
 +
Drop the supplied Koji files into ~/.koji
 +
 +
===Setup Mock===
 +
 +
Install /etc/mock/smeserver-11-x86_64-base.cfg
 +
 +
Set up the mock files:
 +
 +
mock -r smeserver-11-x86_64-base --init
 +
 +
===Clone your repo===
 +
 +
mkdir git; cd git
 +
git clone ssh://src.koozali.org/smeserver/ulogd.git
 +
cd ulogd
 +
git clone ssh://src.koozali.org/smeserver/common.git common
 +
 +
Do some stuff.
 +
 +
Hack files
 +
Update the spec file, bump the version, add your changelog entry
 +
 +
===Test build===
 +
This will overwrite your changes and build the EXISTING version.
 +
How do we build with the fixes?
 +
 +
make clean;make prep;make mockbuild
 +
 +
You should now have a rpm that you can install
 +
 +
===Committing===
 +
 +
See what has changed
 +
git status
 +
 +
Only add the required files. Beware of adding common. Should we have a .gitignore for that?
 +
 +
git add your.modifiedfiles
 +
make commit && make tag && make build
 +
 +
Note.
 +
If you have made a mistake make sure the builder has completed the build before starting a new one.
 +
You cannot rebuild the existing tag.
 +
You will need to bump the version and commit/tag/build again.

Navigation menu