Compare commits

...

20 Commits

Author SHA1 Message Date
c048ea6e08 Release 2025.08.03 2025-08-03 17:51:19 +02:00
2f796fa934 os-makereport: fix reporting description provided by user 2025-08-03 17:48:38 +02:00
af9bdff2fc Release 2025.04.01 2025-04-01 01:46:07 +02:00
5c81c929a4 etc/profile.d/libreoffice.sh: remove setting SAL_USE_VCLPLUGIN=qt6 workaround since adding kf6 support 2025-04-01 01:44:45 +02:00
679c6a2ac5 Release 2024.12.05 2024-12-06 00:03:29 +01:00
d06062131a Makefile: remove installation of etc/prelink.d files 2024-12-05 23:56:08 +01:00
27d5a031ff sb-setup: add check that script is run as root 2024-12-05 23:54:55 +01:00
a72d7dcd9c etc/prelink.conf.d/skype.conf: remove 2024-12-05 23:52:57 +01:00
fddaa4d469 usr/: provide modprobe.d and sysctl.d files from obsolescent initscript package 2024-12-05 23:51:01 +01:00
0f6a865614 Release 2024.11.01 2024-11-01 20:23:04 +01:00
d57c8817b1 sb-setup: add script for secure boot setup 2024-11-01 20:22:28 +01:00
f708397560 Release 2024.04.05 2024-04-05 19:47:44 +02:00
1d0efc78c7 etc/profile.d/libreoffice.sh: set environment to use qt6 VCL plugin for libreoffice 2024-04-05 19:47:14 +02:00
9b66e45efa Release 2024.01.25 2024-01-25 16:59:19 +01:00
dcc8a965b4 os-makereport: added systemd coredumps information 2024-01-25 16:58:55 +01:00
6985ede105 os-makereport: fix reporting user journalctl when called by mambareport with pkexec instead of sudo 2024-01-25 16:52:22 +01:00
8b33dd6459 Release 2023.09.01 2023-09-01 16:40:52 +02:00
a5fa491aa4 openmamba-update: it.po: add missing header required by recent msgfmt 2023-09-01 16:38:31 +02:00
34e046f150 Release 2023.01.24 2023-01-24 11:25:18 +01:00
a331089bff sudoers.d/dnf: rename and update obsolete yum file 2023-01-24 11:24:42 +01:00
13 changed files with 228 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
# Makefile for desktop-base-openmamba package
# Copyright (C) 2004-2022 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (C) 2004-2024 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (C) 2005-2007 by Davide Madrisan <davide.madrisan@gmail.com>
include VERSION
@@ -21,7 +21,6 @@ DESTDIR =
prefix = /usr
exec_prefix = ${prefix}
sysconfdir = /etc
sbindir = ${exec_prefix}/sbin
bindir = ${exec_prefix}/bin
datadir = ${prefix}/share
ifeq ($(ARCH), x86_64)
@@ -33,7 +32,6 @@ initrddir = ${sysconfdir}/rc.d/init.d
mandir = ${prefix}/usr/share/man
sysconfigdir= ${sysconfdir}/sysconfig
profiledir = ${sysconfdir}/profile.d
mambaimagesdir = ${datadir}/openmamba/images
iconsdir = ${datadir}/icons/hicolor
localesdir = ${datadir}/locale
pck_desktop = $(wildcard desktop/*.bz2)
@@ -103,22 +101,23 @@ install-locales: locales
$(INSTALL_DATA) $${f/.po/.mo} $$dir/openmamba-update.mo;\
done
install-kde-distro-addons: dist-update
install-system-files: dist-update
@$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)
@$(INSTALL_DIR) $(DESTDIR)$(bindir)
@$(INSTALL_DIR) $(DESTDIR)$(datadir)
@$(INSTALL_DIR) $(DESTDIR)$(sbindir)
@$(INSTALL_DIR) $(DESTDIR)$(distrobindir)
@$(INSTALL_DIR) $(DESTDIR)$(mambaimagesdir)
cp -r etc/polkit-1 $(DESTDIR)$(sysconfdir)/
cp -r etc/prelink.conf.d $(DESTDIR)$(sysconfdir)/
cp -r etc/profile.d $(DESTDIR)$(sysconfdir)/
cp -r etc/sudoers.d $(DESTDIR)$(sysconfdir)/
cp -r etc/sysconfig $(DESTDIR)$(sysconfdir)/
cp -r usr $(DESTDIR)/
install-os-makereport:
$(INSTALL_SCRIPT) os-makereport/os-makereport $(DESTDIR)$(bindir)
install-sb-setup:
$(INSTALL_SCRIPT) sb-setup/sb-setup $(DESTDIR)$(bindir)
install-desktop:
@$(INSTALL_DIR) $(DESTDIR)$(distrodesktopdir)
$(INSTALL_DATA) $(pck_desktop) $(DESTDIR)$(distrodesktopdir)
@@ -129,10 +128,11 @@ install-openmamba-update:
$(INSTALL_SCRIPT) openmamba-update/openmamba-update $(DESTDIR)$(bindir)
install: $(pck_infiles:.in=) \
install-kde-distro-addons \
install-system-files \
install-desktop \
install-openmamba-update \
install-os-makereport \
install-sb-setup \
install-locales
dist: clean

View File

@@ -1 +1 @@
VERSION = 2022.07.28
VERSION = 2025.08.03

View File

@@ -1 +0,0 @@
-b /usr/bin/skype

5
etc/sudoers.d/dnf Normal file
View File

@@ -0,0 +1,5 @@
# DNF install/update without password for sysadmin or packager groups
Cmnd_Alias DNF_CMD = /usr/bin/dnf update, /usr/bin/dnf install *
%packager ALL = NOPASSWD: DNF_CMD
%sysadmin ALL = NOPASSWD: DNF_CMD

View File

@@ -1,5 +0,0 @@
# Yum install/update without password for sysadmin or packager groups
Cmnd_Alias YUM_CMD = /usr/bin/yum update, /usr/bin/yum install *
%packager ALL = NOPASSWD: YUM_CMD
%sysadmin ALL = NOPASSWD: YUM_CMD

View File

@@ -1,3 +1,21 @@
# openmamba update translations.
# Copyright (C) 2011-2023 openmamba
# Silvan Calarco <silvan.calarco@mambasoft.it>, 2011-2023
#
msgid ""
msgstr ""
"Project-Id-Version: 1.90\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-06-19 12:53+0200\n"
"PO-Revision-Date: 2011-04-26 18:37+CEST\n"
"Last-Translator: Silvan Calarco <silvan.calarco@mambasoft.it>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n"
#: openmamba-netsrpms:21
msgid "Error: invalid option $1; aborting."
msgstr "Errore: opzione $1 non valida; uscita."

View File

@@ -2,15 +2,20 @@
#
# GNU/Linux O.S. report generation tool
#
# Copyright (c) 2008-2022 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (c) 2008-2025 by Silvan Calarco <silvan.calarco@mambasoft.it>
#
MAKEREPORT_VERSION=20220728
MAKEREPORT_VERSION=20250803
TEMPFILE=`mktemp`
. ${ROOT}/etc/sysconfig/machine
. ${ROOT}/etc/os-release
if [ "${SUDO_USER}" == "" ]; then
# mambareport uses pkexec instead of sudo
SUDO_USER="\#${PKEXEC_UID}"
fi
[ ! "$SYSTEM_MANUFACTURER" -o "$SYSTEM_MANUFACTURER" = "System manufacturer" ] && {
SYSTEM_MANUFACTURER=unknown
}
@@ -120,7 +125,8 @@ _EOF
}
echo "${NAME} report generation tool ${MAKEREPORT_VERSION}"
echo "Copyright (c) 2008-2022 by Silvan Calarco <silvan.calarco@mambasoft.it>"
echo "Copyright (c) 2008-2024 by Silvan Calarco <silvan@openmamba.org>"
echo "Released under the terms of the GNU GPL v3 license"
echo
[ $UID = 0 ] || {
@@ -130,7 +136,6 @@ echo
echo "Gathering information..."
cat > $TEMPFILE << _EOF
****************************************************************************
* ${NAME} diagnostic information ${MAKEREPORT_VERSION} for host $HOSTNAME (`date`)
@@ -141,7 +146,7 @@ if [ "$NOTE" ]; then
echo "
REPORTED PROBLEM:
=================" >> $TEMPFILE
cat "$NOTE" >> $TEMPFILE
echo "$NOTE" >> $TEMPFILE
echo >> $TEMPFILE
fi
@@ -210,6 +215,9 @@ catfile /var/log/Xorg.5.log "Xorg installation test log"
# Other details
catcommand "/usr/bin/lspci -vv" "PCI hardware information (verbose)"
# Systemd coredumps
catcommand "/usr/bin/coredumpctl info -q -r" "Systemd coredumps (more recent first)"
cp $TEMPFILE $REPORTNAME || exit 1
chmod +r $REPORTNAME
rm -f $TEMPFILE

86
sb-setup/sb-setup Executable file
View File

@@ -0,0 +1,86 @@
#!/bin/bash
#
# openmamba secure boot setup script
#
# Copyright (c) 2024 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Released under the terms of the GNU GPL License v3
# Requires: sbsigntools shim-signed efibootmgr
# Sample chroot mount:
# sudo mount -o bind /dev /mnt/sda2/dev
# sudo mount -o bind /sys /mnt/sda2/sys
# sudo mount -o bind /proc /mnt/sda2/proc
# sudo mount -o bind /run /mnt/sda2/run
# sudo mount -o bind /mnt/sda1 /mnt/sda2/boot/efi
# sudo mount -o bind /sys/firmware/efi/efivars /mnt/sda2/sys/firmware/efi/efivars/
SECUREBOOT_ENABLED=`xxd -p -l4 -s1 /sys/firmware/efi/efivars/SecureBoot-* 2>/dev/null`
QUIET=
[ "$1" = "-q" ] && QUIET=1
[ "$QUIET" ] || echo "Secure boot setup script for openmamba"
[ $UID -eq 0 ] || {
echo "This script must be run as root; exiting."
exit 1
}
[ "$SECUREBOOT_ENABLED" == "00000001" ] || {
[ "$QUIET" ] || echo "Secure Boot is not enabled; exiting."
exit 0
}
EFIDIR=/boot/efi/
EFILABEL="openmamba"
CERTDIR="/var/lib/sb-setup/mok"
BOOTDEV=`findmnt -fno SOURCE /boot/efi`
# Setup MAchine Owner Key folder
[ -e ${CERTDIR} ] || mkdir -p ${CERTDIR}
# Sign EFI image for secure boot
[ -e ${CERTDIR}/MOK.cer ] || {
[ "$QUIET" ] || echo "Creating Machine Owner Key and certificates"
openssl req -newkey rsa:2048 -nodes -keyout ${CERTDIR}/MOK.key -new -x509 -sha256 \
-days 3650 -subj "/CN=${EFILABEL} Machine Owner Key/" -out ${CERTDIR}/MOK.crt
openssl x509 -outform DER -in ${CERTDIR}/MOK.crt -out ${CERTDIR}/MOK.cer
}
#grub-mkimage -o ${EFIDIR}/grubx64.efi -O x86_64-efi -p /boot/grub \
[ "$QUIET" ] || echo "Create EFI grub image"
grub-install --target=x86_64-efi --efi-directory=${EFIDIR} --bootloader-id="${EFILABEL}" \
--sbat /usr/share/grub/sbat.csv --recheck \
--modules="all_video bli boot chain configfile cpuid echo efifwsetup efi_gop efi_uga efinet ext2 \
fat font gettext gfxmenu gfxterm gfxterm gfxterm_background gzio halt help hfsplus \
iso9660 jpeg keystatus linux loadenv loopback ls lsefi lsefimmap lsefisystab lssal \
memdisk minicmd normal ntfs ntfscomp part_apple part_gpt part_msdos password_pbkdf2 \
play png probe reboot regexp search search_fs_file search_fs_uuid search_label sleep \
smbios squash4 test tpm true video video_bochs video_cirrus xfs zfs zfscrypt zfsinfo"
[ "$QUIET" ] || echo "Signing EFI grub image for Secure Boot"
sbsign --key ${CERTDIR}/MOK.key --cert ${CERTDIR}/MOK.crt --output ${EFIDIR}/EFI/${EFILABEL}/grubx64.efi ${EFIDIR}//EFI/${EFILABEL}/grubx64.efi
for k in /boot/vmlinuz-*; do
echo "Signing $k for Secure Boot"
# Remove a previous signature if present
sbattach --remove ${k} 2>/dev/null
sbsign --key ${CERTDIR}/MOK.key --cert ${CERTDIR}/MOK.crt --output ${k} ${k}
done
[ "$QUIET" ] || echo "Copying MOK.cer into ${EFIDIR}/EFI/${EFILABEL}/"
cp ${CERTDIR}/MOK.cer ${EFIDIR}/EFI/${EFILABEL}/
# Install shim-signed
[ "$QUIET" ] || echo "Installing shim images on ${EFIDIR}/EFI/${EFILABEL}"
cp /usr/share/shim-signed/shimx64.efi ${EFIDIR}/EFI/${EFILABEL}/
cp /usr/share/shim-signed/mmx64.efi ${EFIDIR}/EFI/${EFILABEL}/
# Create EFI bootmanager entry for shimx64
[ "$QUIET" ] || echo "Configuring /EFI/${EFILABEL}/shimx64.efi for boot"
efibootmgr -q -c -d ${BOOTDEV} -L "${EFILABEL}" -l "/EFI/${EFILABEL}/shimx64.efi"
[ "$QUIET" ] || echo "Done."

45
usr/bin/service Executable file
View File

@@ -0,0 +1,45 @@
#!/bin/sh
#
# Simple service execution tool
USAGE=$"Usage: ""$0 [service_name [start|stop|restart|..]]"
VERSION="${0##*/} ver. 0.61"
INITDDIR="/etc/init.d"
SERVICE=
OPTIONS=
if [ $# -eq 0 ]; then
echo "${USAGE}" >&2
exit 1
fi
while [ $# -gt 0 ]; do
case "$1" in
--help | -h)
echo "${USAGE}" >&2
exit 0
;;
--version | -V)
echo "${VERSION}" >&2
exit 0
;;
*)
if [ -z "${SERVICE}" ]; then
SERVICE="${1}"
else
OPTIONS="${OPTIONS} ${1}"
fi
shift
;;
esac
done
if [ -d /run/systemd ]; then
systemctl ${OPTIONS} ${SERVICE}.service
elif [ -x "${INITDDIR}/${SERVICE}" ]; then
env -i PATH="$PATH" TERM="$TERM" "${INITDDIR}/${SERVICE}" ${OPTIONS}
else
echo "${SERVICE}: "$"unrecognized service" >&2
exit 1
fi

View File

@@ -0,0 +1,5 @@
# Disable obscure network protocols
blacklist ax25
blacklist netrom
blacklist x25
blacklist rose

View File

@@ -0,0 +1 @@
install parport_pc /sbin/modprobe -i parport_pc; /sbin/modprobe lp

View File

@@ -0,0 +1 @@
options rtl8192ce ips=0 fwlps=0

View File

@@ -0,0 +1,45 @@
#
# Kernel sysctl configuration file
#
# /etc/sysctl.conf - Configuration file for setting system variables
# See sysctl(8) and sysctl.conf (5) for more details.
# Enable IP packet forwarding between interfaces (act as a firewall, or router)
#net.ipv4.ip_forward = 1
# Disable ICMP redirect messages
net.ipv4.conf.all.accept_redirects = 0
# Do not accept source routing
net.ipv4.conf.all.accept_source_route = 0
# Log packages that have source addresses with no known route ("martians")
net.ipv4.conf.all.log_martians = 1
# Controls source route verification
net.ipv4.conf.all.rp_filter = 1
# Enable ECN (Explicit Congestion Notification) in TCP connections
net.ipv4.tcp_ecn = 2
# Enable syncookies to hosts when the kernels syn backlog queue is overflowed
net.ipv4.tcp_syncookies = 1
# Ignore ICMP messages sent to broadcast or multicast addresses
net.ipv4.icmp_echo_ignore_broadcasts = 1
# Do not log bogus responses to broadcast frames send by hosts that ignore RFC 1122
#net.ipv4.icmp_ignore_bogus_error_responses = 1
# Ensure TCP window scaling is enabled
net.ipv4.tcp_window_scaling = 1
# Controls the System Request debugging functionality of the kernel
# kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
# Increment default user inotify watches limit
fs.inotify.max_user_watches=524288