9 changed files with 1717 additions and 54 deletions
@ -0,0 +1,70 @@ |
|||
# Google Chrome RPM Installation Guide |
|||
|
|||
This guide provides step-by-step instructions for downloading and rebuilding the Google Chrome RPM package on a RPM-based Linux distribution. |
|||
|
|||
## Prerequisites |
|||
|
|||
Before you proceed, ensure that you have the following prerequisites installed on your system: |
|||
|
|||
- `rpmrebuild`: A tool for rebuilding RPM packages. |
|||
- `rpmbuild`: The RPM Package Manager build tool. |
|||
|
|||
## Installation Steps |
|||
|
|||
1. **Download Google RPM** |
|||
|
|||
```bash |
|||
# Replace <URL> with the actual download URL |
|||
wget <URL>/google-chrome-stable-119.0.6045.199-1.x86_64.rpm |
|||
``` |
|||
|
|||
2. **Rebuild the RPM Package** |
|||
|
|||
```bash |
|||
rpmrebuild -s google-chrome-stable.spec -p google-chrome-stable-119.0.6045.199-1.x86_64.rpm |
|||
``` |
|||
|
|||
3. **Extract the Contents** |
|||
|
|||
```bash |
|||
rpm2cpio google-chrome-stable-119.0.6045.199-1.x86_64.rpm | cpio -idmv |
|||
``` |
|||
|
|||
4. **Move Google Chrome to the Desired Location** |
|||
|
|||
```bash |
|||
mv opt/google usr/bin/ |
|||
``` |
|||
|
|||
5. **Create Symbolic Links** |
|||
|
|||
```bash |
|||
cd usr/bin/ |
|||
rm -f google-chrome-stable |
|||
ln -s google/chrome/google-chrome google-chrome-stable |
|||
ln -s google/chrome/google-chrome chrome |
|||
cd ../.. |
|||
``` |
|||
|
|||
6. **Create RPM Build Directory** |
|||
|
|||
```bash |
|||
mkdir -p $HOME/rpmbuild/BUILDROOT/google-chrome-stable-119.0.6045.199-1.x86_64 |
|||
``` |
|||
|
|||
7. **Copy Files to RPM Build Directory** |
|||
|
|||
```bash |
|||
for i in etc usr; do cp -r $i $HOME/rpmbuild/BUILDROOT/google-chrome-stable-119.0.6045.199-1.x86_64/; done |
|||
``` |
|||
|
|||
8. **Build the RPM Package** |
|||
|
|||
```bash |
|||
rpmbuild -bb google-chrome-stable.spec |
|||
``` |
|||
|
|||
After completing these steps, you should have successfully downloaded, rebuilt, and repackaged the Google Chrome RPM for your system. The resulting RPM package will be available in the RPM build directory (`$HOME/rpmbuild/RPMS/x86_64/`). |
|||
|
|||
Note: Ensure that you replace `<URL>` with the actual download URL of the Google Chrome RPM. |
|||
|
|||
File diff suppressed because it is too large
@ -0,0 +1,69 @@ |
|||
name = "kiosk" |
|||
description = "Example Kiosk" |
|||
version = "0.0.8" |
|||
modules = [] |
|||
groups = [] |
|||
|
|||
[[packages]] |
|||
name = "gdm" |
|||
version = "*" |
|||
|
|||
[[packages]] |
|||
name = "gnome-kiosk" |
|||
version = "*" |
|||
|
|||
[[packages]] |
|||
name = "gnome-kiosk-script-session" |
|||
version = "*" |
|||
|
|||
[[packages]] |
|||
name = "firefox" |
|||
version = "*" |
|||
|
|||
[[packages]] |
|||
name = "google-chrome-stable-119.0.6045.199-1" |
|||
version = "*" |
|||
|
|||
[[packages]] |
|||
name = "cockpit" |
|||
|
|||
[[packages]] |
|||
name = "microshift" |
|||
version = "*" |
|||
|
|||
[[packages]] |
|||
name = "cockpit-system" |
|||
|
|||
|
|||
[customizations] |
|||
hostname = "kiosk.local" |
|||
|
|||
[customizations.services] |
|||
enabled = ["cockpit.socket", "sshd", "microshift"] |
|||
#disabled = ["postfix", "telnetd"] |
|||
|
|||
[customizations.timezone] |
|||
timezone = "Europe/Paris" |
|||
ntpservers = ["0.fr.pool.ntp.org", "1.fr.pool.ntp.org"] |
|||
|
|||
[customizations.locale] |
|||
languages = ["fr_FR.UTF-8"] |
|||
keyboard = "fr" |
|||
|
|||
#22 ssh / 9090 cockpit / 6443 microshift |
|||
[customizations.firewall] |
|||
ports = ["22:tcp", "30000:tcp", "9090:tcp", "6443:tcp"] |
|||
|
|||
[[customizations.user]] |
|||
name = "kiosk" |
|||
description = "kiosk" |
|||
password = '<password hash obatained with: python3 -c 'import crypt,getpass;pw=getpass.getpass();print(crypt.crypt(pw) if (pw==getpass.getpass("Confirm: ")) else exit())' >' |
|||
|
|||
[[customizations.user]] |
|||
name = "admin" |
|||
description = "admin" |
|||
password = '<password hash obatained with: python3 -c 'import crypt,getpass;pw=getpass.getpass();print(crypt.crypt(pw) if (pw==getpass.getpass("Confirm: ")) else exit())' >' |
|||
key = "<ssh public key>" |
|||
home = "/home/admin/" |
|||
shell = "/usr/bin/bash" |
|||
groups = ["users", "wheel"] |
|||
@ -1,46 +0,0 @@ |
|||
name = "kiosk" |
|||
description = "Kiosk blueprint" |
|||
version = "0.0.3" |
|||
modules = [] |
|||
groups = [] |
|||
|
|||
[[packages]] |
|||
name = "gdm" |
|||
version = "*" |
|||
|
|||
[[packages]] |
|||
name = "gnome-kiosk" |
|||
version = "*" |
|||
|
|||
[[packages]] |
|||
name = "gnome-kiosk-script-session" |
|||
version = "*" |
|||
|
|||
[[packages]] |
|||
name = "firefox" |
|||
version = "*" |
|||
|
|||
|
|||
[[packages]] |
|||
name = "cockpit-system" |
|||
|
|||
|
|||
[customizations] |
|||
|
|||
[customizations.services] |
|||
enabled = ["cockpit.socket"] |
|||
hostname = "kiosk" |
|||
|
|||
|
|||
[customizations.firewall] |
|||
ports = ["22:tcp", "80:tcp", "443:tcp", "9090:tcp"] |
|||
|
|||
[[customizations.user]] |
|||
name = "kiosk" |
|||
description = "kiosk" |
|||
#password hash obtained with: |
|||
# python3 -c 'import crypt,getpass;pw=getpass.getpass();print(crypt.crypt(pw) if (pw==getpass.getpass("Confirm: ")) else exit())' |
|||
password = "" |
|||
key = "<ssh public key>" |
|||
home = "/home/admin/" |
|||
shell = "/usr/bin/bash" |
|||
Loading…
Reference in new issue