^ ^
 =   =
Kedi GNU/Linux

Kedi GNU/Linux WikiKedi GNU/Linux Belgeleri

Welcome to the Kedi GNU/Linux wiki. Here you will find how to install Kedi, and how to use its package manager and init system. Pick an article from the contents on the side.

Kedi GNU/Linux belgelerine hoş geldiniz. Burada Kedi'nin nasıl kurulacağını, paket yöneticisinin ve init sisteminin nasıl kullanılacağını bulabilirsiniz. Yandaki içindekiler listesinden bir makale seçin.

If there is an issue or something missing, please open an issue or pull request on GitHub.

Hata ya da eksik varsa, GitHub'da bir issue ya da pull request açın.

InstallationKurulum

The LXQt graphical installation is straightforward and does not require its own wiki section. This section explains how to install Kedi GNU/Linux from the base iso. Please report any issues on GitHub.

LXQt kurulumu kolaydır, bu yüzden viki bölümüne gerek yok. Bu bölüm, Kedi'nin base ISO'dan nasıl kurulduğunu anlatıyor. Sorun varsa lütfen GitHub'da bildirin.

For a Turkish Q keyboard:

Türkçe Q klavye için:

# loadkeys trq

The installation itself doesn't need internet. Ethernet connects by itself. For Wi-Fi, in the live system and after installing, use iwctl:

Kurulumun kendisi internet gerektirmez. Ethernet kendiliğinden bağlanır. Wi-Fi için, canlı sistemde ve kurulumdan sonra iwctl kullanın:

# iwctl station wlan0 scan
# iwctl station wlan0 get-networks
# iwctl station wlan0 connect <network>

If your card isn't called wlan0, iwctl device list shows its name.

Kartınızın adı wlan0 değilse, iwctl device list adını gösterir.

1. Partitioning1. Bölümlendirme

UEFI needs a GPT disk with a 512M EFI System partition and a root partition. BIOS uses a dos disk with one bootable root partition. If you dual boot, reuse your existing EFI partition and skip mkfs.vfat.

UEFI için 512M'lık bir EFI System bölümü ve bir kök bölümü olan GPT bir disk gerekir. BIOS'ta önyüklenebilir tek bir kök bölümü olan dos bir disk kullanılır. Çift önyükleme yapıyorsanız mevcut EFI bölümünüzü kullanın ve mkfs.vfat adımını atlayın.

# cfdisk /dev/sda

2. Formatting and mounting2. Biçimlendirme ve bağlama

UEFI

# mkfs.vfat -F 32 /dev/sda1
# mkfs.ext4 -L kedi /dev/sda2
# mount /dev/sda2 /mnt

BIOS

# mkfs.ext4 -L kedi /dev/sda1
# mount /dev/sda1 /mnt

3. Copying the system3. Sistemi kopyalama

This takes a few minutes, and doesn't print anything while it runs.

Bu birkaç dakika sürer ve çalışırken hiçbir şey yazmaz.

# cp -ax /run/pisilive/sfs/. /mnt/

UEFI

# mkdir -p /mnt/boot/efi
# mount /dev/sda1 /mnt/boot/efi

4. Chroot4. Chroot

# for d in dev proc sys run; do mount --rbind /$d /mnt/$d; done
# chroot /mnt /bin/bash

5. Removing the live parts5. Canlı sisteme ait parçaları silme

These handle the autologin and booting from the ISO.

Bunlar otomatik oturum açmayı ve ISO'dan açılışı sağlar.

# rm -f /etc/conf.d/agetty.tty1
# userdel -r kedi
# rm -f /etc/mkinitcpio-live.conf /boot/initrd.live /usr/lib/initcpio/install/pisilive /usr/lib/initcpio/hooks/pisilive

6. Configuration6. Yapılandırma

UEFI

# echo "UUID=$(blkid -s UUID -o value /dev/sda2)  /          ext4  defaults    0 1" >> /etc/fstab
# echo "UUID=$(blkid -s UUID -o value /dev/sda1)  /boot/efi  vfat  umask=0077  0 2" >> /etc/fstab

BIOS

# echo "UUID=$(blkid -s UUID -o value /dev/sda1)  /  ext4  defaults  0 1" >> /etc/fstab

Change the time zone to yours, and replace user with your own user name.

Saat dilimini kendinize göre değiştirin ve user yerine kendi kullanıcı adınızı yazın.

# echo kedi > /etc/hostname
# ln -sf /usr/share/zoneinfo/Europe/Istanbul /etc/localtime
# passwd
# useradd -m -G wheel,users,audio,video -s /bin/bash user
# passwd user

For a Turkish Q keyboard:

Türkçe Q klavye için:

# sed -i 's/^keymap=.*/keymap="trq"/' /etc/conf.d/keymaps

If you are dual-booting with windows, switch osclock to hwclock, in order to set local time. This may result in slower boot times.

Windows ile birlikte kullanıyorsanız, osclock'u hwclock'a değiştirin, saati yerel saat olarak okumak için. Bu, önyükleme süresini biraz uzatabilir.

7. Bootloader7. Önyükleyici

# mkinitcpio -P

UEFI

# grub2-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Kedi
# grub2-install --target=x86_64-efi --efi-directory=/boot/efi --removable

The --removable copy still boots if the firmware loses the Kedi entry.

--removable kopyası, ürün yazılımı Kedi girişini kaybetse bile açılır.

BIOS

# grub2-install --target=i386-pc /dev/sda

Then:

Sonra:

# grub2-mkconfig -o /boot/grub2/grub.cfg

8. Rebooting8. Yeniden başlatma

# exit
# umount -R /mnt
# poweroff

Pull the USB stick out after it powers off, not before, since the live system runs from it. Then boot into Kedi and log in as your user.

USB belleği bilgisayar kapandıktan sonra çıkarın, önce değil, çünkü canlı sistem ondan çalışır. Sonra Kedi'yi başlatıp kendi kullanıcınızla giriş yapın.

Package managementPaket yönetimi

Kedi GNU/Linux uses the default PISI Package Manager found on Pisi GNU/Linux or Pardus before 2013, which is written in Python. Package management is relatively simple, relying on 3 main commands which are similar to other Linux distributions. These are:

Kedi GNU/Linux, Pisi GNU/Linux'ta veya 2013'ten önceki Pardus'ta bulunan, Python ile yazılmış varsayılan PISI paket yöneticisini kullanmaktadır. Paket yönetimi oldukça basittir, diğer Linux dağıtımlarındakilere benzeyen 3 ana komuta dayanır. Bunlar:

  • pisi install <package> (or pisi it) - Installs a package. This does not sync repositories, so you must run pisi ur on a fresh installation. Add -c to install a whole component, e.g. pisi it -c system.devel.
  • pisi upgrade (or pisi up) - Syncs repository indexes and starts a full system upgrade
  • pisi upgrade <package> (or pisi up <package>) - Upgrades a specific package
  • pisi remove <package> (or pisi rm) - Removes a package
  • pisi install <paket> (veya pisi it) - Bir paket kurar. Bu, depoları eşitlemez, bu yüzden yeni bir kurulumda pisi ur çalıştırmanız gerekir. Bir bileşenin tamamını kurmak için -c ekleyin, örneğin pisi it -c system.devel.
  • pisi upgrade (veya pisi up) - Depo indekslerini eşitler ve tam bir sistem güncellemesi başlatır
  • pisi upgrade <paket> (veya pisi up <paket>) - Belirli bir paketi günceller
  • pisi remove <paket> (veya pisi rm) - Bir paketi kaldırır

These commands must be run as root.

Bu komutlar root olarak çalıştırılmalıdır.

Warning: don't run pisi it -c system.base, since it would bring back mudur and sysvinit.

Uyarı: pisi it -c system.base çalıştırmayın, çünkü mudur ve sysvinit paketlerini geri getirir.

On a fresh installation, repositories are not updated automatically. To set up repositories, here are some commands:

Yeni bir kurulumda depolar otomatik olarak güncellenmez. Depoları ayarlamak için bazı komutlar şunlardır:

  • pisi update-repo (or pisi ur) - Syncs repository index files with what's in the repo
  • pisi list-repo (or pisi lr) - Lists active repositories
  • pisi update-repo (veya pisi ur) - Depo indeks dosyalarını depodakilerle eşitler
  • pisi list-repo (veya pisi lr) - Etkin depoları listeler

Run cat /etc/pisi/blacklist to see which packages pisi up will never install or upgrade. On a regular Kedi GNU/Linux installation, these are sysvinit and mudur.

pisi up komutunun hiçbir zaman kurmayacağı veya güncellemeyeceği paketleri görmek için cat /etc/pisi/blacklist çalıştırın. Normal bir Kedi GNU/Linux kurulumunda bunlar sysvinit ve mudur paketleridir.

For finding packages, here are some commands:

Paket bulmak için bazı komutlar şunlardır:

  • pisi search <string> (or pisi sr) - Searches package names and descriptions
  • pisi info <package> - Displays information about a specific package
  • pisi search-file </path/to/file> (or pisi sf) - Displays which package owns a specific file
  • pisi list-installed (or pisi li) - Lists all installed packages
  • pisi list-available (or pisi la) - Lists all available packages, in all repositories
  • pisi list-components (or pisi lc) - Lists the components, which are groups of packages, like system.devel or desktop.xfce
  • pisi list-upgrades (or pisi lu) - Lists packages that can be upgraded
  • pisi search <metin> (veya pisi sr) - Paket adlarında ve açıklamalarında arama yapar
  • pisi info <paket> - Belirli bir paket hakkında bilgi gösterir
  • pisi search-file </dosya/yolu> (veya pisi sf) - Belirli bir dosyanın hangi pakete ait olduğunu gösterir
  • pisi list-installed (veya pisi li) - Kurulu tüm paketleri listeler
  • pisi list-available (veya pisi la) - Tüm depolardaki mevcut tüm paketleri listeler
  • pisi list-components (veya pisi lc) - system.devel veya desktop.xfce gibi paket grupları olan bileşenleri listeler
  • pisi list-upgrades (veya pisi lu) - Güncellenebilecek paketleri listeler

For cleaning up packages, here are some commands:

Paketleri temizlemek için bazı komutlar şunlardır:

  • pisi list-orphaned (or pisi lo) - Lists dependency packages that aren't used by any package anymore
  • pisi remove-orphaned (or pisi ro) - Cleans up orphaned packages
  • pisi delete-cache (or pisi dc) - Cleans up download cache, downloaded .pisi files
  • pisi list-pending (or pisi lp) - Lists packages which haven't finished configuration
  • pisi configure-pending (or pisi cp) - Configures them
  • pisi list-orphaned (veya pisi lo) - Artık hiçbir paket tarafından kullanılmayan bağımlılık paketlerini listeler
  • pisi remove-orphaned (veya pisi ro) - Sahipsiz (orphaned) paketleri temizler
  • pisi delete-cache (veya pisi dc) - İndirme önbelleğini, yani indirilmiş .pisi dosyalarını temizler
  • pisi list-pending (veya pisi lp) - Yapılandırması tamamlanmamış paketleri listeler
  • pisi configure-pending (veya pisi cp) - Bunları yapılandırır

Services (OpenRC)Servisler (OpenRC)

OpenRC services in Kedi Linux are rather simple and do not differ from other OpenRC Linux distributions. In OpenRC, services are grouped into three main runlevels:

Kedi Linux'taki OpenRC servisleri oldukça basittir ve diğer OpenRC Linux dağıtımlarından farklı değildir. OpenRC'de servisler üç ana çalışma seviyesine (runlevel) ayrılır:

  • sysinit (Starts basic kernel virtual filesystems and system services such as udev or dmesg)
  • boot (Prepares the system, loads essential services like filesystems, logging, keymaps)
  • default (Everything else: login managers, system bus, cron, services you actually use)
  • sysinit (Çekirdeğin temel sanal dosya sistemlerini ve udev ya da dmesg gibi sistem servislerini başlatır)
  • boot (Sistemi hazırlar, dosya sistemleri, günlük kaydı, klavye düzenleri gibi temel servisleri yükler)
  • default (Geri kalan her şey: giriş yöneticileri, sistem veri yolu, cron, gerçekten kullandığınız servisler)

On boot, OpenRC starts sysinit before everything else; it will then start boot after and default last.

Açılışta OpenRC her şeyden önce sysinit'i başlatır; ardından boot'u, en son da default'u başlatır.

Here are some useful commands to view services distinguished by their runlevels:

Servisleri runlevel'larına göre görmek için bazı kullanışlı komutlar şunlardır:

  • rc-update show -v - Displays every service and its runlevel
  • rc-status <runlevel> - Displays all services in a specific runlevel, e.g. rc-status boot
  • rc-update show -v - Her servisi ve runlevel'ını gösterir
  • rc-status <runlevel> - Belirli bir runlevel'daki tüm servisleri gösterir, örneğin rc-status boot

In order to add services to a runlevel, you can use the rc-update command. (You can install init service scripts for packages that require them with pisi it <package>-openrc. Here, I will use lightdm as an example.) Run as root:

Bir runlevel'a servis eklemek için rc-update komutunu kullanabilirsiniz. (İhtiyacı olan paketler için init servis betiklerini pisi it <paket>-openrc ile kurabilirsiniz. Burada örnek olarak lightdm'i kullanacağım.) root olarak çalıştırın:

# rc-update add lightdm default

This adds the lightdm display manager to the default runlevel. After a reboot, check:

Bu, lightdm görüntü yöneticisini default runlevel'ına ekler. Yeniden başlattıktan sonra kontrol edin:

# rc-service lightdm status

It should print something like:

Şuna benzer bir çıktı vermelidir:

 * status: started

If you want to steer clear of anything affiliated with Canonical at all, you can remove it from the runlevel with rc-update the same way:

Canonical ile bağlantılı hiçbir şeye bulaşmak istemiyorsanız, onu rc-update ile aynı şekilde runlevel'dan kaldırabilirsiniz:

# rc-update del lightdm default

In order to start a service whose init script is already in /etc/init.d, use the rc-service command:

Init betiği zaten /etc/init.d içinde olan bir servisi başlatmak için rc-service komutunu kullanın:

# rc-service <service> start

You can stop it the same way:

Aynı şekilde durdurabilirsiniz:

# rc-service <service> stop

Then, check again with:

Sonra tekrar şununla kontrol edin:

# rc-service <service> status

You can restart services the same way:

Servisleri aynı şekilde yeniden başlatabilirsiniz:

# rc-service <service> restart

Building packagesPaket derleme

Packaging in Kedi GNU/Linux is almost the exact same process as in Pisi Linux (go to developer.pisilinux.org for very, very helpful information, it's where you will find how to actually package.)

Kedi GNU/Linux'ta paketleme, Pisi Linux'takiyle neredeyse tamamen aynı süreçtir (çok, çok faydalı bilgiler için developer.pisilinux.org adresine gidin, gerçekte nasıl paketleme yapılacağını orada bulabilirsiniz.)

Package recipes contain pspec.xml, actions.py, and optionally a files/ folder for additional files, and/or a comar/ folder that contains package.py and/or pakhandler.py for install/remove hooks and package handling (and also service.py for starting, stopping and supervising services at boot, but that's what OpenRC is for.)

Paket tarifleri pspec.xml, actions.py ve isteğe bağlı olarak ek dosyalar için bir files/ klasörü ve/veya kurma/kaldırma kancaları ve paket işleme için package.py ve/veya pakhandler.py içeren bir comar/ klasörü içerir (ayrıca açılışta servisleri başlatmak, durdurmak ve denetlemek için service.py de vardır, ama bu OpenRC'nin işidir.)

For Kedi Linux, package recipes like this can be found on GitHub (https://github.com/kedilinux/kedilinux, open pull requests there). The packages that are required differ slightly on an OpenRC system.

Kedi Linux için bu şekildeki paket tarifleri GitHub'da bulunabilir (https://github.com/kedilinux/kedilinux, pull request'leri orada açın). OpenRC kullanan bir sistemde gereken paketler biraz farklıdır.

This is because, instead of a service.py, OpenRC uses init scripts located in /etc/init.d, so every package that needs a service, such as lightdm, will need a -openrc equivalent. (If you are opening pull requests for new service packages, remember the package name always has to be the name of the service it starts with -openrc at the end, e.g. lightdm-openrc.)

Bunun sebebi, OpenRC'nin service.py yerine /etc/init.d içindeki init betiklerini kullanmasıdır, bu yüzden lightdm gibi servise ihtiyaç duyan her paketin bir -openrc karşılığı gerekir. (Yeni servis paketleri için pull request açıyorsanız, paket adının her zaman başlattığı servisin adı ve sonunda -openrc olması gerektiğini unutmayın, örneğin lightdm-openrc.)

A few more things to keep in mind:

Ayrıca dikkat edilmesi gereken birkaç şey:

  • Packages must not depend on mudur or sysvinit.
  • On Kedi itself you can build without the Docker chroot: install the build tools with pisi it -c system.devel, then run pisi build pspec.xml as root.
  • Paketler mudur veya sysvinit'e bağımlı olmamalıdır.
  • Kedi'nin kendisinde Docker chroot olmadan derleme yapabilirsiniz: derleme araçlarını pisi it -c system.devel ile kurun, sonra root olarak pisi build pspec.xml çalıştırın.

Running Kedi Linux in a VMKedi Linux'u sanal makinede çalıştırmak

Neither of the Kedi GNU/Linux ISOs ships spice-vdagent or spice-vdagent-openrc (the service script, which you add to the default runlevel manually with rc-update). Therefore, to have a usable experience without the quirks of running a complete desktop environment in a virtual machine, you must install these packages yourself.

Kedi GNU/Linux'un iki ISO'sunda da spice-vdagent ya da spice-vdagent-openrc (servis betiği; default runlevel'a rc-update ile elle eklemeniz gerekir) bulunmaz. Bu yüzden, sanal makinede tam bir masaüstü ortamı çalıştırmanın getirdiği tuhaflıklar olmadan kullanılabilir bir deneyim için bu paketleri kendiniz kurmanız gerekir.