update
This commit is contained in:
4
linux/distros/centos.md
Normal file
4
linux/distros/centos.md
Normal file
@ -0,0 +1,4 @@
|
||||
# CentOS
|
||||
|
||||
CentOS, from Community Enterprise Operating System; also known as CentOS Linux) is a Linux distribution that provides a free and open-source community-supported computing platform, functionally compatible with its upstream source, Red Hat Enterprise Linux (RHEL). CentOS announced the official joining with Red Hat while staying independent from RHEL, under a new CentOS governing board.
|
||||
|
3
linux/distros/debian.md
Normal file
3
linux/distros/debian.md
Normal file
@ -0,0 +1,3 @@
|
||||
# Debian
|
||||
|
||||
Debian also known as Debian GNU/Linux, is a [Linux](../linux.md) distribution composed of free and open-source software, developed by the community-supported Debian Project. The Debian Stable branch is the most popular edition for personal computers and servers. Debian is also the basis for many other distributions, most notably [Ubuntu](ubuntu.md).
|
107
linux/distros/fedora.md
Normal file
107
linux/distros/fedora.md
Normal file
@ -0,0 +1,107 @@
|
||||
# Fedora
|
||||
|
||||
Fedora Linux is a Linux distribution developed by the Fedora Project. Fedora contains software distributed under various free and open-source licenses and aims to be on the leading edge of open-source technologies. Fedora is the upstream source for Red Hat Enterprise Linux.
|
||||
|
||||
Since the release of Fedora 35, six different editions are made available tailored to personal computer, server, cloud computing, container and Internet of Things installations. A new version of Fedora Linux is released every six months.
|
||||
|
||||
Project Homepage: [Home - Fedora](https://getfedora.org/en/)
|
||||
Documentation: [Fedora Documentation](https://docs.fedoraproject.org/en-US/docs/)
|
||||
|
||||
---
|
||||
## Post Install Steps
|
||||
|
||||
### 1- Enable Caching in dnf Package Manager
|
||||
Caching is Enabled to increase dnf speed
|
||||
|
||||
Edit dnf configuration:
|
||||
```shell
|
||||
sudo nano /etc/dnf/dnf.conf
|
||||
```
|
||||
Add this lines add the end:
|
||||
```shell
|
||||
# Added for speed:
|
||||
fastestmirror=True
|
||||
#change to 10 if you have fast internet speed
|
||||
max_parallel_downloads=5
|
||||
#when click enter the default is yes
|
||||
defaultyes=True
|
||||
#Keeps downloaded packages in the cache
|
||||
keepcache=True
|
||||
```
|
||||
To clean dnf cache periodically:
|
||||
```shell
|
||||
sudo dnf clean dbcache
|
||||
#or
|
||||
sudo dnf clean all
|
||||
```
|
||||
for more configuration options: [DNF Configuration Reference](https://dnf.readthedocs.io/en/latest/conf_ref.html)
|
||||
|
||||
### 2- System Update
|
||||
|
||||
Run the following command:
|
||||
```shell
|
||||
sudo dnf update
|
||||
```
|
||||
|
||||
## 3- Enable RPM Fusion
|
||||
|
||||
RPM Fusion **provides software that the Fedora Project or Red Hat doesn't want to ship**. That software is provided as precompiled RPMs for all current Fedora versions and current Red Hat Enterprise Linux or clones versions; you can use the RPM Fusion repositories with tools like yum and PackageKit.
|
||||
|
||||
Installing both free and non-free RPM Fusion:
|
||||
```shell
|
||||
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
||||
```
|
||||
|
||||
### AppStream metadata
|
||||
to enable users to install packages using Gnome Software/KDE Discover. Please note that these are a subset of all packages since the metadata are only generated for GUI packages.
|
||||
|
||||
The following command will install the required packages:
|
||||
```shell
|
||||
sudo dnf groupupdate core
|
||||
```
|
||||
|
||||
## 4- Adding Flatpak
|
||||
|
||||
Flatpak, formerly known as xdg-app, is a utility for software deployment and package management for Linux. It is advertised as offering a sandbox environment in which users can run application software in isolation from the rest of the system.
|
||||
|
||||
Flatpak is installed by default on Fedora Workstation, Fedora Silverblue, and Fedora Kinoite. To get started, all you need to do is enable **Flathub**, which is the best way to get Flatpak apps. Just download and install the [Flathub repository file](https://flathub.org/repo/flathub.flatpakrepo)
|
||||
|
||||
The above links should work on the default GNOME and KDE Fedora installations, but if they fail for some reason you can manually add the Flathub remote by running:
|
||||
```shell
|
||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
```
|
||||
|
||||
## 5- Change Hostname
|
||||
|
||||
Run the following command:
|
||||
```shell
|
||||
sudo hostnamectl set-hostname #your-name
|
||||
```
|
||||
|
||||
## 6- Add Multimedia Codecs
|
||||
|
||||
Run the following commands:
|
||||
```shell
|
||||
sudo dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin
|
||||
|
||||
sudo dnf groupupdate sound-and-video
|
||||
```
|
||||
|
||||
## 7- Make it More Customizable
|
||||
|
||||
Open GNOME software installer and install the following:
|
||||
- GNOME Tweaks
|
||||
- Extensions
|
||||
|
||||
Consider the following GNOME Extensions:
|
||||
- Vitals
|
||||
- ArcMenu
|
||||
- Custom Hot Corners - Extended
|
||||
- Dash to Panel
|
||||
- Sound input & ouput Device Chooser
|
||||
- OpenWeather
|
||||
- Impatience
|
||||
- Screenshot Tool
|
||||
- Tiling Assistant
|
||||
- Extension List
|
||||
- Clipboard Indicator
|
32
linux/distros/ubuntu.md
Normal file
32
linux/distros/ubuntu.md
Normal file
@ -0,0 +1,32 @@
|
||||
# Ubuntu
|
||||
|
||||
Ubuntu is a Linux distribution based on Debian and composed mostly of free and open-source software.Ubuntu is officially released in three editions: Desktop, Server, and Core for Internet of things devices and robots. Ubuntu is a popular operating system for cloud computing, with support for OpenStack.
|
||||
|
||||
## How to enable sudo without a password for a user
|
||||
|
||||
Open a Terminal window and type:
|
||||
|
||||
```
|
||||
sudo visudo
|
||||
```
|
||||
|
||||
In the bottom of the file, add the following line:
|
||||
|
||||
```
|
||||
$USER ALL=(ALL) NOPASSWD: ALL
|
||||
```
|
||||
|
||||
Where `$USER` is your username on your system. Save and close the sudoers file (if you haven't changed your default terminal editor (you'll know if you have), press Ctl + x to exit `nano` and it'll prompt you to save).
|
||||
|
||||
---
|
||||
## Networking
|
||||
|
||||
In Ubuntu, networking can be managed using various tools and utilities, including the following:
|
||||
|
||||
1. **NetworkManager**: NetworkManager is a system service that manages network connections and devices. It provides a graphical user interface (GUI) for configuring network settings, as well as a command-line interface (CLI) for advanced configuration. NetworkManager is the default network management tool in Ubuntu.
|
||||
|
||||
2. **Netplan**: [Netplan](../netplan) is a command-line utility for configuring network interfaces in modern versions of Ubuntu. It uses YAML configuration files to describe network interfaces, IP addresses, routes, and other network-related parameters. [Netplan](../netplan) generates the corresponding configuration files for the underlying network configuration subsystem, such as systemd-networkd or NetworkManager.
|
||||
|
||||
3. **ifupdown**: ifupdown is a traditional command-line tool for managing network interfaces in Ubuntu. It uses configuration files located in the /etc/network/ directory to configure network interfaces, IP addresses, routes, and other network-related parameters.
|
||||
|
||||
To manage networking in **Ubuntu**, you can use one or more of these tools depending on your needs and preferences. For example, you can use the NetworkManager GUI to configure basic network settings and use [Netplan](../netplan) or ifupdown for advanced configuration. You can also use the command-line tools to automate network configuration tasks or to configure networking on headless servers.
|
Reference in New Issue
Block a user