Commit e56fa248 authored by disrupttheflow's avatar disrupttheflow

Added offtopic tg group and fixed Greek tg group

parent e7e6601c
......@@ -51,7 +51,8 @@ Or join #parrotsec on irc.freenode.net
Our community lives in several places, here are some links to stay in touch with us
<a href="https://t.me/parrotsecgroup" target="_blank" class="btn btn-primary">Telegram International Group</a> <a href="https://www.facebook.com/groups/parrotsec/" target="_blank" class="btn btn-primary">Facebook International group</a>
<a href="https://t.me/parrotsecgroup" target="_blank" class="btn btn-primary">Telegram International Group</a>
<a href="https://t.me/ParrotSecofftopic" target="_blank" class="btnbtn-primary">Telegram International Offtopic group</a> <a href="https://www.facebook.com/groups/parrotsec/" target="_blank" class="btn btn-primary">Facebook International group</a>
&nbsp;
......@@ -82,7 +83,7 @@ Our community lives in several places, here are some links to stay in touch with
----
<a href="https://community.parrotsec.org/c/community/gr" class="btn btn-default btn-primary"><strong>Greek Community</strong></a> <a href="https://t.me/joinchat/EbgW4A2wfkmP8whsTvZ8TQ" class="btn btn-default">Telegram</a>
<a href="https://community.parrotsec.org/c/community/gr" class="btn btn-default btn-primary"><strong>Greek Community</strong></a> <a href="https://t.me/parrotsecgr" class="btn btn-default">Telegram</a>
----
......
# VERIFY!
# Fix links
Compile a custom kernel "the Debian way"
Install build dependencies
To work with the linux debianized kernel, you need to have some development packages, install them with the following command
sudo apt build-dep linux
Download the kernel source code
You can get the source code of the parrot kernel from different places
APT INSTALL
run sudo apt update to refresh the sources list
launch sudo apt install linux-source to download the kernel source code in /usr/src
APT SOURCE
edit /etc/apt/sources.list.d/parrot.list and make sure that the deb-src directive is not commented (remove the # character if present)
run sudo apt update to refresh the sources list
launch apt source linux to download the source code of the linux kernel from our repository
GIT
make sure you have git installed with sudo apt install git
launch git clone https://github.com/parrotsec/linux-parrot.git to download the parrot kernel source in the current folder
Configure the source code
Open a terminal window and enter the kernel source, then run
# Recompile the ParrotsSec kernel
## Why compile the kernel
Why would someone need to recompile the ParrotSec kernel.Maybe someones wants the kernel to handle special hardware,maybe optimize the boot time by removing useless drivers,maybe to create a monolithic kernel instead of a modularized one,maybe to run a newer or in development kernel,maybe to add new patches,drivers or kernel features that are not included in the stock ParrotSec kernel.Or maybe just to learn more about Linux kernels.Whatever is the case the follwing guide will show you how to do it.
## Notes/Warnings
By recompiling the ParrotSec kernel you may decrease the security provided by the stock ParrotSec kernel and may lose some functionality.If this procedure harms your computer in any way we are not responsible.
## Prerequisities
Install the following packages:
```bash
sudo apt install build-essential libncurses5-dev fakeroot unxz
```
Next install the source code of the ParrotSec kernel with the following command:
```bash
sudo apt install linux-source-4.19
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
linux-config-4.19
Suggested packages:
libqt4-dev
The following NEW packages will be installed:
linux-config-4.19 linux-source-4.19
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 107 MB of archives.
After this operation, 107 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
```
The above steps focuses on the 4.9 version of the Linux kernel.If the version changes so do the nubmers.
After you finish donwloading the source run the following command:
```bash
ls /usr/src/
linux-config-4.19 linux-patch-4.19-rt.patch.xz linux-source-4.19.tar.xz
```
Notice that the package contains /usr/src/linux-source-4.9.tar.xz, a compressed archive of the kernel sources. You must extract these files in a new directory (not directly under /usr/src/, since there is no need for special permissions to compile a Linux kernel). Instead, ~/kernel/ is more appropriate.
```bash
mkdir ~/kernel; cd ~/kernel/
tar -xaf /usr/src/linux-source-4.19.tar.xz
```
## Configure the kernel
When recompiling a more recent version of the kernel (possibly with an additional patch), the configuration will most likely be kept as close as possible to that proposed by ParrotSec. In this case, and rather than reconfiguring everything from scratch, it is sufficient to copy the /boot/config-version file (the version is that of the kernel currently used, which can be found with the uname -r command) into a .config file in the directory containing the kernel sources.
```bash
cp /boot/config-4.19.0(press tab 3 time to autocomplete)
```
If you want toi make changess or cofigure everything from scratych you must use the commanbd:
```bash
make menuconfig
```
This command will open the kernel configuration editor where you can take a look at the modules available, select or deselect them, decide if to include them as hard-coded in the base image or as a dynamically loadable module, and you can change the settings of most of them.
Install hardware-info
By running sudo apt install hwinfo so that you can safely remove support for hardware you're not going to use on your machine. This will make your kernel lighter and faster.
Once it is done you can save the configuration and proceed with the next step.
Compile the deb packages
Compile the kernel with the following commands
## BUilding the kernel
Once the kernel configuration is ready, a simple make deb-pkg will generate up to 5 Debian packages: linux-image-version that contains the kernel image and the associated modules, linux-headers-version, which contains the header files required to build external modules, linux-firmware-image-version, which contains the firmware files needed by some drivers (this package might be missing when you build from the kernel sources provided by Debian or ParrotSec), linux-image-version-dbg, which contains the debugging symbols for the kernel image and its modules, and linux-libc-dev, which contains headers relevant to some user-space libraries like GNU glibc. The Linux kernel image is a big build, expect it to take a while to complete.Runt the following commands to start building the kernel:
```bash
make clean
make deb-pkg
Install the new kernel packages
Once it's done, install the resulting packages with the following command
sudo dpkg -i ../linux-{image,headers}-*.deb
make deb-pkg LOCALVERSION=-custom KDEB_PKGVERSION=
(makekernelversion)-1
```
## Installation of the kernel
When the build has successfully completed, you can go ahead and install the new custom kernel and reboot your system. Please note that the specific kernel version numbers will vary — in our example, done on a ParrotSec 4.5.1 system, it was 4.19.20. Depending on the current kernel version you’re building, you will need to adjust your commands accordingly.
```bash
dpkg -i ../linux-image-4-19.0(and press tab 3 times to autocomplete)
reboot
```
Once your system has rebooted, your new kernel should be running. If things go wrong and your kernel fails to boot successfully, you can still use the Grub menu to boot from the original ParrotSec kernel and fix your issues.
&nbsp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment