Skip to content

Commit

Permalink
Merge pull request #120 from tcet-opensource/117-add-script-which-hel…
Browse files Browse the repository at this point in the history
…ps-to-building-iso

117 add script which helps to building iso
beans9926 authored Oct 20, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 62286e1 + b3aafc3 commit 476c5c9
Showing 5 changed files with 128 additions and 11 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/iso-build.yml
Original file line number Diff line number Diff line change
@@ -16,13 +16,13 @@ jobs:
options: --privileged

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set current date as environment variable
run: echo "DATE=`date +'%Y.%m.%d'`" >>$GITHUB_ENV

- name: Synchronise package repositories and install archiso
run: pacman -Syu --noconfirm archiso git archlinux-keyring reflector wget
run: pacman -Syu --noconfirm archiso git archlinux-keyring reflector --needed

- name: Running Reflector
run: |
@@ -33,20 +33,41 @@ jobs:
--latest 5 \
--save /etc/pacman.d/mirrorlist
pacman -Syu
- name: Setting Up Keyring
run: |
pacman-key --init
pacman-key --keyserver keyserver.ubuntu.com -r 280178FA27665D44
pacman-key --lsign-key 280178FA27665D44
pacman-key --keyserver keyserver.ubuntu.com -r 421FFABA41F36DA5
pacman-key --lsign-key 421FFABA41F36DA5
pacman-key --keyserver keyserver.ubuntu.com -r 02F660CD5FA77EBB
pacman-key --lsign-key 02F660CD5FA77EBB
pacman-key --keyserver keyserver.ubuntu.com -r BF4E1E687DD0A534
pacman-key --lsign-key BF4E1E687DD0A534
- name: Building TCET Linux ISO
run: |
ls -al
pacman -Syu
wget https://raw.githubusercontent.com/tcet-opensource/tcet-linux/main/pacman.conf -O /etc/pacman.conf
mkarchiso -v -w ./work -o ./out ./
echo "ISO Built in ./out folder!"
ls -al
- name: Generating Checksum
run: |
ls -al
cd out/
touch checksum
sha256sum *.iso > checksum
ls -al
- name: Release ISO File
uses: ncipollo/release-action@v1
with:
artifacts: "out/*.iso"
artifacts: "out/*.iso,out/checksum"
body: "v2.0.0"
generateReleaseNotes: false
name: "TCET-Linux"
tag: ${{ env.DATE }}

57 changes: 52 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TCET Linux

![TCET LINUX](https://github.com/tcet-opensource/tcet-linux-assets/blob/main/tcet-linux.png)
![TCET LINUX](https://raw.githubusercontent.com/tcet-opensource/artwork/main/tcet-linux/tcet-linux.png)

## What is TCET Linux?
**[TCET Linux](https://linux.tcetmumbai.in/)** is an **open-source operating system** providing basic services, and various software packages that make up the user-space applications, utilities and it is highly customized. Our goal in creating this operating system is to provide a platform that combines **robust functionality** with a **user-friendly experience**. Built from the ground up, TCET Linux boasts **efficient performance**, **customization options**, and a range of features tailored to meet the needs of both casual users and enthusiasts.
@@ -14,7 +14,7 @@
* Atleast 8GB HDD/SSD storage.
* Basic WPA/WPA2 compatible wifi card or ethernet supported motherboard.

![installer](https://github.com/tcet-opensource/tcet-linux-assets/blob/main/installer.png)
![installer](https://raw.githubusercontent.com/tcet-opensource/artwork/main/tcet-linux/installer.png)

The complete process for the installation is given in details on the website of **[TCET Linux](https://linux.tcetmumbai.in/)**.

@@ -23,7 +23,7 @@ The complete process for the installation is given in details on the website of
## Welcome App
The welcome app provides the user with the important links and shortcuts to some features and the installer.

![Welcomeapp](https://github.com/tcet-opensource/tcet-linux-assets/blob/main/welcome-app.png)
![Welcomeapp](https://raw.githubusercontent.com/tcet-opensource/artwork/main/tcet-linux/welcome-app.png)

It includes the following options:
* **Install TCET Linux**: This starts the TCET Linux Installer
@@ -96,13 +96,60 @@ Packages in TCET Linux is managed by package manager.
<br />
## Glimpses of TCET Linux
# Glimpses of TCET Linux
![tcet-linux-desktop](https://github.com/tcet-opensource/tcet-linux-assets/blob/main/tcet-linux_desktop1.png)
![tcet-linux-desktop](https://raw.githubusercontent.com/tcet-opensource/artwork/main/tcet-linux/tcet-linux-desktop1.png)
<br />
# How to build ISO
## Install required package
```bash
sudo pacman -S archiso
```

## Clone repository
```bash
git clone https://github.com/tcet-opensource/tcet-linux.git
```

## Build ( Using Script )
```bash
cd tcet-linux
./buildiso
```
OR
## Build ( Manually )
### Setup Keys
```bash
# Akash6222
sudo pacman-key --keyserver keyserver.ubuntu.com -r 280178FA27665D44
sudo pacman-key --lsign-key 280178FA27665D44

# Rishabh672003
sudo pacman-key --keyserver keyserver.ubuntu.com -r 421FFABA41F36DA5
sudo pacman-key --lsign-key 421FFABA41F36DA5

# 0xAtharv
sudo pacman-key --keyserver keyserver.ubuntu.com -r 02F660CD5FA77EBB
sudo pacman-key --lsign-key 02F660CD5FA77EBB

# harshau007
sudo pacman-key --keyserver keyserver.ubuntu.com -r BF4E1E687DD0A534
sudo pacman-key --lsign-key BF4E1E687DD0A534

```
### Build ISO
```bash
cd tcet-linux
sudo mkarchiso -v .
```

## ISO will appear in `work/out/` directory
<br />

## Important Links:

- [TCET Linux Website](https://linux.tcetmumbai.in/)
2 changes: 1 addition & 1 deletion airootfs/root/.config/starship.toml
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ $time\
style = "fg:#180024 bg:#7E6B9C "
format = "[ $path ]($style)"
truncation_length = 3
truncation_symbol = "/"
truncation_symbol = "../"

[directory.substitutions]
"Documents" = ""
49 changes: 49 additions & 0 deletions buildiso
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/bin/bash

echo "Installing archsio"
sudo pacman -S archiso --needed

echo "Setting up Keyring"
# Akash6222
sudo pacman-key --keyserver keyserver.ubuntu.com -r 280178FA27665D44
sudo pacman-key --lsign-key 280178FA27665D44

# Rishabh672003
sudo pacman-key --keyserver keyserver.ubuntu.com -r 421FFABA41F36DA5
sudo pacman-key --lsign-key 421FFABA41F36DA5

# 0xAtharv
sudo pacman-key --keyserver keyserver.ubuntu.com -r 02F660CD5FA77EBB
sudo pacman-key --lsign-key 02F660CD5FA77EBB

# harshau007
sudo pacman-key --keyserver keyserver.ubuntu.com -r BF4E1E687DD0A534
sudo pacman-key --lsign-key BF4E1E687DD0A534

echo "Building Iso"
echo "Warning don't press ctrl+c or ctrl+z when iso is building"
sudo mkarchiso -v -w ./work -o ./out ./

echo "Do you want to remove tcet-linux-keyring from your system [y/n]"
read answer

if [ "$answer" == "y" ] || [ "$answer" == "yes" ]; then
echo "Removing tcet-linux-keyring."
# Akash6222
sudo pacman-key --delete 280178FA27665D44

# Rishabh672003
sudo pacman-key --delete 421FFABA41F36DA5

# 0xAtharv
sudo pacman-key --delete 02F660CD5FA77EBB

# harshau007
sudo pacman-key --delete BF4E1E687DD0A534
elif [ "$answer" == "n" ] || [ "$answer" == "no" ]; then
echo "tcet-linux-keyring present in your system."
exit 0
else
echo "Invalid input. Please enter 'y' or 'n'."
exit 1
fi
2 changes: 1 addition & 1 deletion cleanup.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sudo rm -rvf work/ out/
sudo rm -rvf work/ out/ tcet-linux-keyring*

0 comments on commit 476c5c9

Please sign in to comment.