Lab setup data from the Pluralsight course on:
Linux System Maintenance and Troubleshooting
The Complete Obsolete Guide to Generative AI (from Manning) is a lighthearted look at programming with AI, as well as a rock-solid resource for getting the most out of these insanely powerful services. Let it be your guide to analyzing massive data sources, summarize pages and pages of text, and scour the live internet.
Building Debian packages
mycode.cc (c++ program for Debian):
#include <iostream>
int main() {
using namespace std;
cout << "Welcome to Pluralsight\n";
}
mycodeplace/DEBIAN/control file (for Debian):
Package: mycode
Version: 1.0
Section: custom
Priority: optional
Architecture: all
Essential: no
Installed-Size: 1024
Maintainer: bootstrap-it.com
Description: Proof of concept
Buiding RPM packages
$ echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
$ mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
helloworld-1.0/main.c:
#include <stdio.h>
int main (int argc, char *argv[]) {
printf("Welcome to Pluralsight\n");
return 0;
}
helloworld-1.0/Makefile
DESTDIR ?=
PREFIX ?= /usr/local
helloworld:
gcc main.c -o helloworld
install: helloworld
install -m 0755 -d $(DESTDIR)$(PREFIX)/bin
install -m 0755 helloworld $(DESTDIR)$(PREFIX)/bin
helloworld.spec:
Name: helloworld
Version: 1.0
Release: 1%{?dist}
Summary: A hello world RPM program
License: GPLv3+
URL: https://bootstrap-it.com
Source0: helloworld-1.0.tar.gz
Requires(post): info
Requires(preun): info
%description
helloworld from Pluralsight
%global debug_package %{nil}
%prep
%setup
%build
make PREFIX=/usr %{?_smp_mflags}
%install
make PREFIX=/usr DESTDIR=%{?buildroot} install
%clean
rm -rf %{buildroot}
%files
%{_bindir}/helloworld
Building AppImage packages
$ wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage $ chmod +x appimagetool-x86_64.AppImage $ ARCH=x86_64 ./appimagetool-x86_64.AppImage hello-world-appimage


