From feb3efa538ef3225a967cd97f1f86dd1746da0cd Mon Sep 17 00:00:00 2001 From: Ward Date: Thu, 23 Feb 2023 22:04:14 +0200 Subject: [PATCH] first commit --- pika-baseos/debian/changelog | 64 ++++ pika-baseos/debian/control | 334 ++++++++++++++++++ pika-baseos/debian/files | 1 + pika-baseos/debian/pika-baseos.install | 1 + pika-baseos/debian/rules | 3 + pika-baseos/debian/source/format | 1 + .../etc/modprobe.d/nvidia-pika-config.conf | 4 + .../etc/profile.d/99-gnome_templates.sh | 6 + .../etc/profile.d/99-pipewire_alsa-fix.sh | 2 + pika-baseos/etc/profile.d/99-resolve_hack.sh | 5 + 10 files changed, 421 insertions(+) create mode 100644 pika-baseos/debian/changelog create mode 100644 pika-baseos/debian/control create mode 100644 pika-baseos/debian/files create mode 100644 pika-baseos/debian/pika-baseos.install create mode 100755 pika-baseos/debian/rules create mode 100644 pika-baseos/debian/source/format create mode 100644 pika-baseos/etc/modprobe.d/nvidia-pika-config.conf create mode 100755 pika-baseos/etc/profile.d/99-gnome_templates.sh create mode 100755 pika-baseos/etc/profile.d/99-pipewire_alsa-fix.sh create mode 100755 pika-baseos/etc/profile.d/99-resolve_hack.sh diff --git a/pika-baseos/debian/changelog b/pika-baseos/debian/changelog new file mode 100644 index 0000000..b3d6ef4 --- /dev/null +++ b/pika-baseos/debian/changelog @@ -0,0 +1,64 @@ +pika-baseos (2.0.1) kinetic; urgency=medium + + * We forgot to make this package essential + + -- Ward Nakchbandi Thu, 12 Jan 2023 16:48:00 +0300 + +pika-baseos (2.0.0) kinetic; urgency=medium + + * Add all meta desktop dependencies to suggest to prevent them from autoremoval + + -- Ward Nakchbandi Thu, 12 Jan 2023 16:48:00 +0300 + + +pika-baseos (1.0.9) kinetic; urgency=medium + + * Add davinci resolve depends + + -- Ward Nakchbandi Thu, 12 Jan 2023 16:48:00 +0300 + + +pika-baseos (1.0.8) kinetic; urgency=medium + + * Add custom-device-pollrates to recommends + + -- Ward Nakchbandi Thu, 12 Jan 2023 16:48:00 +0300 + + +pika-baseos (1.0.6) kinetic; urgency=medium + + * remove auto-cpufreq + + -- Ward Nakchbandi Thu, 12 Jan 2023 16:48:00 +0300 + +pika-baseos (1.0.5) kinetic; urgency=medium + + * remove supergfxctl-gex-reset + + -- Ward Nakchbandi Thu, 12 Jan 2023 16:48:00 +0300 + + +pika-baseos (1.0.3) kinetic; urgency=medium + + * fix supergfxctl profile.d script + + -- Ward Nakchbandi Thu, 12 Jan 2023 16:48:00 +0300 + +pika-baseos (1.0.2) kinetic; urgency=medium + + * Add supergfxctl profile.d script + + -- Ward Nakchbandi Thu, 12 Jan 2023 16:48:00 +0300 + + +pika-baseos (1.0.1) kinetic; urgency=medium + + * Add profile.d scripts + + -- Ward Nakchbandi Thu, 12 Jan 2023 16:48:00 +0300 + +pika-baseos (1.0) kinetic; urgency=medium + + * Initial Release + + -- Ward Nakchbandi Thu, 12 Jan 2023 16:48:00 +0300 diff --git a/pika-baseos/debian/control b/pika-baseos/debian/control new file mode 100644 index 0000000..284f02b --- /dev/null +++ b/pika-baseos/debian/control @@ -0,0 +1,334 @@ +Source: pika-baseos +Section: metapackages +Priority: optional +Maintainer: Ward Nakchbandi +Standards-Version: 4.6.1 +Build-Depends: debhelper-compat (= 13) +Rules-Requires-Root: no + +Package: pika-baseos +Architecture: all +Essential: yes +Depends: ${misc:Depends}, +# Base +## General + ubuntu-minimal, + libglib2.0-bin, + pika-package-manager, + apt-transport-https, + software-properties-common, + avahi-autoipd, + avahi-daemon, + dbus-user-session, + pika-sources, + openssh-server, + ppa-purge, + nano, + bash-completion, + wget, + curl, + git, + dbus-broker, + flatpak, + ca-certificates, + libapr1, + libaprutil1, + libxcb-cursor0, +## gvfs backends + gvfs-backends, + gvfs-fuse, + ibus-table, +## XDG + policykit-desktop-privileges, + xdg-desktop-portal-gnome, + xdg-user-dirs-gtk, + xdg-utils, + xdg-terminal, +## Filesystems + libblockdev-crypto2, + libblockdev-mdraid2, + lvm2, + ecryptfs-utils, + ntfs-3g, + nfs-common, + apfsprogs, + btrfs-progs, + e2fsprogs, + exfatprogs, + hfsprogs, + xfsprogs, +# Hardware + fwupd, + fwupdate, + pcmciautils, + ubuntu-drivers-common, + mousetweaks, +## Display and Graphics + libegl-mesa0, + libvdpau-va-gl1, + mesa-vulkan-drivers, + pika-amdgpu-core, + xorg, + libd3dadapter9-mesa, + libegl-mesa0, + libegl1-mesa, + libgl1-mesa-dri, + libgl1-mesa-glx, + libglapi-mesa, + libgles2-mesa, + libglu1-mesa, + libglw1-mesa, + libwayland-egl1-mesa, + mesa-utils, + wayland-protocols, + xwayland, + hidpi-daemon, +## Power saving and laptops + laptop-detect, + supergfxctl, + acpi, + acpi-call-dkms, +## Printing + cups-bsd, + cups, + openprinting-ppds, + printer-driver-brlaser, + printer-driver-c2esp, + printer-driver-foo2zjs, + printer-driver-gutenprint, + printer-driver-m2300w, + printer-driver-min12xxw, + printer-driver-ptouch, + printer-driver-pxljr, + printer-driver-sag-gdi, + printer-driver-splix, + cups-client, + cups-filters, + cups-pk-helper, +## Networking and Bluetooth + bluez, + bluez-cups, + ifupdown, + network-manager, + resolvconf, + libnss-mdns, + net-tools, + libproxy1-plugin-gsettings, + libproxy1-plugin-networkmanager, + network-manager-wireguard-plugin, + wireless-tools, + rfkill, + gstreamer1.0-plugins-base-apps, + alsa-base, + glib-networking, + nfs-common, + samba-common-bin, + wpasupplicant, +## Audio and codecs + libasound2-plugins, + libldacbt-abr2, + libldacbt-enc2, + libfreeaptx0, + libspa-0.2-bluetooth, + libspa-0.2-jack, + pipewire, + pipewire-alsa, + pipewire-jack, + pipewire-pulse, + pulseaudio-utils, + wireplumber, + gstreamer1.0-alsa, +Recommends: power-profiles-daemon +Conflicts: pulseaudio, pipewire-media-session +Description: The backbone of PikaOS +Suggests: +## Make pika-gnome-desktop-minimal deps not go to autoremove +# BaseOS + pika-baseos, +# Basic Session + pika-session, + pika-settings, + gdm3, + gnome-shell, +# Gnome VRR Session + gnome-shell-vrr, + mutter-vrr, +# Fonts + fonts-cantarell, + fonts-dejavu-core, + fonts-freefont-ttf, + fonts-liberation, +# Theming + gnome-themes-standard, + gnome-themes-extra, + adwaita-icon-theme-full, + adw-gtk3-theme, + papirus-icon-theme, + sound-theme-freedesktop, +# Plugins + chrome-gnome-shell, + ghostscript-x, + gnome-bluetooth, + gnome-online-miners, + gnome-menus, + gnome-video-effects, + inputattach, + libatk-adaptor, + libcanberra-gtk-module, + libpam-gnome-keyring, + network-manager-pptp-gnome, + network-manager-openvpn-gnome, + appmenu-gtk2-module, + appmenu-gtk3-module, + brltty, + language-selector-gnome, + gnome-remote-desktop, + gnome-shell-extension-legacy-gtk3-theme-scheme-auto-switcher, + gnome-shell-extension-supergfxctl-gex, + nautilus-share, +# Applications + gnome-control-center, + gnome-disk-utility, + gnome-system-monitor, + gnome-terminal | kgx, + nautilus, + fonts-noto-color-emoji, + gnome-shell-extension-manager, + gnome-tweaks, + baobab, + eog, + firmware-manager, + geary, + gnome-text-editor, + gnome-calculator, + gnome-calendar, + gnome-contacts, + gnome-font-viewer, + gnome-power-manager, + gnome-weather, + gnome-photos, + gnome-sushi, + gucharmap, + ibus-table-emoji, + pika-welcome, + seahorse, + simple-scan, + yelp, + pavucontrol, +## Last to replace mime information + file-roller, +## Make pika-kde-desktop-minimal deps not go to autoremove +# BaseOS + pika-baseos, +# Basic Session + kde-plasma-desktop, + kamera, + kgamma5, + svgpart, + plasma-pa, + plasma-nm, + pika-kde-settings, + plasma-workspace-wayland, + kwin-x11, + sddm, +# Fonts + fonts-cantarell, + fonts-dejavu-core, + fonts-freefont-ttf, + fonts-liberation, + fonts-indic, + fonts-kacst-one, + fonts-khmeros-core, + fonts-lao, + fonts-liberation, + fonts-lklug-sinhala, + fonts-noto-cjk, + fonts-noto-color-emoji, + fonts-sil-abyssinica, + fonts-sil-padauk, + fonts-thai-tlwg, + fonts-tibetan-machine, + fonts-ubuntu, +# Theming + breeze, + breeze-icon-theme, + breeze-gtk-theme, + sddm-theme-breeze, + papirus-icon-theme, + sound-theme-freedesktop, +# Plugins + ghostscript-x, + inputattach, + libatk-adaptor, + libcanberra-gtk-module, + appmenu-gtk2-module, + appmenu-gtk3-module, + kdenetwork-filesharing, + kde-zeroconf, + dolphin-plugins, + kdegraphics-mobipocket, + kdegraphics-thumbnailers, + kdeconnect, + kde-cli-tools, + baloo-kf5, + frameworkintegration, + inputattach, + khelpcenter, + khotkeys, + kinfocenter, + kio, + kio-extras, + kmenuedit, + kwrited, + language-selector-common, + bluedevil, + powerdevil, + desktop-file-utils, + kde-config-gtk-style, + kde-config-gtk-style-preview, + kde-config-sddm, + xdg-desktop-portal-kde, + kde-config-tablet, + polkit-kde-agent-1, + go-mtpfs, + kdialog, + kimageformat-plugins, + kio-audiocd, + krdc, + kscreen, + kdialog, + kio-fuse, + kaccounts-integration, + plasma-supergfxctl, + plasma-browser-integration, + plasma-calendar-addons, + plasma-dataengines-addons, + dbus-x11, +# Applications + kwalletmanager, + print-manager, + fonts-noto-color-emoji, + firmware-manager, + gucharmap, + ibus-table-emoji, + pika-welcome, + pavucontrol-qt, + filelight, + kgpg, + gwenview, + kde-spectacle, + okular, + mpv, + kcalc, + dolphin, + kate, + konsole, + plasma-disks, + plasma-firewall, + plasma-systemmonitor, + plasma-vault, + ksystemlog, + partitionmanager, + gwenview, +## Last to replace mime information + ark, diff --git a/pika-baseos/debian/files b/pika-baseos/debian/files new file mode 100644 index 0000000..54ad8ee --- /dev/null +++ b/pika-baseos/debian/files @@ -0,0 +1 @@ +pika-baseos_2.0.0_source.buildinfo metapackages optional diff --git a/pika-baseos/debian/pika-baseos.install b/pika-baseos/debian/pika-baseos.install new file mode 100644 index 0000000..ee19d5d --- /dev/null +++ b/pika-baseos/debian/pika-baseos.install @@ -0,0 +1 @@ +etc diff --git a/pika-baseos/debian/rules b/pika-baseos/debian/rules new file mode 100755 index 0000000..78c7615 --- /dev/null +++ b/pika-baseos/debian/rules @@ -0,0 +1,3 @@ +#! /usr/bin/make -f +%: + dh $@ diff --git a/pika-baseos/debian/source/format b/pika-baseos/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/pika-baseos/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/pika-baseos/etc/modprobe.d/nvidia-pika-config.conf b/pika-baseos/etc/modprobe.d/nvidia-pika-config.conf new file mode 100644 index 0000000..93f3ba4 --- /dev/null +++ b/pika-baseos/etc/modprobe.d/nvidia-pika-config.conf @@ -0,0 +1,4 @@ +options nvidia-drm modeset=1 +options nvidia NVreg_UsePageAttributeTable=1 +options nvidia NVreg_RegistryDwords="OverrideMaxPerf=0x1" +options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp diff --git a/pika-baseos/etc/profile.d/99-gnome_templates.sh b/pika-baseos/etc/profile.d/99-gnome_templates.sh new file mode 100755 index 0000000..65b28f5 --- /dev/null +++ b/pika-baseos/etc/profile.d/99-gnome_templates.sh @@ -0,0 +1,6 @@ +# fix gnome missing 'New file' option +if [ ! -f /home/$USER/Templates/"Text file" ] +then + mkdir -p /home/$USER/Templates + touch /home/$USER/Templates/"Text file" +fi diff --git a/pika-baseos/etc/profile.d/99-pipewire_alsa-fix.sh b/pika-baseos/etc/profile.d/99-pipewire_alsa-fix.sh new file mode 100755 index 0000000..16eba43 --- /dev/null +++ b/pika-baseos/etc/profile.d/99-pipewire_alsa-fix.sh @@ -0,0 +1,2 @@ +# Fix alsa for programs like davinci resolve, this fixes the Davinci Resolve audio delay +export PIPEWIRE_ALSA='{ alsa.buffer-bytes=20480 }' diff --git a/pika-baseos/etc/profile.d/99-resolve_hack.sh b/pika-baseos/etc/profile.d/99-resolve_hack.sh new file mode 100755 index 0000000..40e3be5 --- /dev/null +++ b/pika-baseos/etc/profile.d/99-resolve_hack.sh @@ -0,0 +1,5 @@ +# this is a hack to bypass the Davinci Resolve new install Welcome/Onboarding screen since it does not render properly and is not required. +if [ ! -f /home/$USER/.local/share/DaVinciResolve/configs/.version ];then + mkdir -p /home/$USER/.local/share/DaVinciResolve/configs/ + echo "Onboarding.Version=10" > /home/$USER/.local/share/DaVinciResolve/configs/.version +fi