Void Linux

Başlatan 0M42, 08 Ağustos 2022 - 22:52:45

« önceki - sonraki »

0 Üyeler ve 3 Ziyaretçi konuyu incelemekte.

karakartala

Alıntı yapılan: nxjoseph - 01 Eylül 2022 - 00:26:17
Sanirim 2gb raminiz var. Swap alani yanlis hatirlamiyorsam ramin 2 kati buyuklugunde olmali yani bu duumda 4096mb kadar swap alaniniz olmali. Degistirebilir misiniz bilmiyorum ama canli bir linux usbsine ihtiyaciniz var. Bu ubuntu kurulu bir usb olabilir.
Takas(swap) alanının ramin 2 katı büyüklüğünde olması gerektiği yönündeki tavsiyeyi ben de bir yerde okuduğumu hatırlıyorum. Ancak böyle bir şart yok. Bu tavsiyenin gerekçesini de hatırlayamadım.

[mention=659680]@0M42[/mention] Mevcut takas alanını değiştirmeden yeni bir takas dosyası oluşturup onu takas alanı olarak kullanmak mümkün.
https://wiki.ubuntu-tr.net/index.php?title=Takas_alan%C4%B1n%C4%B1_sonradan_d%C3%BCzenleme-ekleme#Yeni_bir_takas_alan.C4.B1_eklemek
Ubuntu Viki'sinde ilgili kısımdaki komutlar Void Linux'ta da çalışacaktır. Ancak sudo -H gedit şeklinde giden komuttaki gedit yerine kullandığınız metin düzenleyicinin adını yazınız.

0M42

Teşekkür ederim ilginiz için bir şeyler yapmaya çalıştım sistem açılmadı bende yeniden kurdum  :D

[omar@0M42 ~]$ free -m
               total        used        free      shared  buff/cache   available
Mem:            1970         596         810         111         563        1120
Swap:           4095           0        4095
[omar@0M42 ~]$


Bu arada joseph kardeşim konuyu baştan sona bir daha okudum da ne çok uğraştırmışım seni  :) Hakkını helal et keşke benimde elimden bir şey gelse sana yardımcı olsam

nxjoseph

Tesekkur ederim. @karakartala

@0M42 Helal olsun, rica ederim. :)

0M42

Dostum slackware hakkında ne düşünüyorsun

nxjoseph

Eskiden cok kisa sureligine bir denemistim, sanirim kde ile gelmisti. Paket yonetimi icin okumak lazim.
Alıntı YapResmi Araçlar
Slackware'in temel kurulumuna iki paket pkgtools ve slackpkg dahildir.¬† pkgtools, temel paket yönetimi için kullanılacak bir dizi uygulama içerir. slackpkg, resmi Slackware sunucularıyla kullanmanız için bir paket yöneticisi ve güncelleme aracıdır.

pkgtools aşağıdaki yürütülebilir uygulamaları içerir, seçenekler ve sözdizimi dahil daha ayrıntılı bilgi için sisteminizdeki kılavuz sayfalarına bakın.

installpkg – Bu uygulama yeni bir paket yüklemek için kullanılır
removepkg -Bu uygulama, sisteminizden bir paketi kaldırmak için kullanılır.
upgradepkg – upgradepkg, bir Slackware paketini eski bir sürümden daha yenisine yükseltir.¬† Bunu, yeni paketi sisteme KURARAK ve ardından eski paketten yeni pakette olmayan dosyaları KALDIRARAK yapar. adam sayfaları)
explodepkg – Bu araç, bir Slackware paketini mevcut dizininize açar ve açar.
pkgtool – pkgtool, Slackware Linux dağıtımıyla birlikte sağlanan, menü odaklı bir paket bakım aracıdır.¬† Kullanıcının, etkileşimli bir sistem üzerinden yazılım paketlerini yüklemesine, kaldırmasına veya görüntülemesine olanak tanır¬†.¬† Pkgtool, yeniden Normalde bir Slackware kurulumunun sonunda yürütülen menü tabanlı komut dosyalarını çalıştırın.¬† Bu, temel yeniden yapılandırma (fare türünü değiştirmek gibi) yapmak için kullanışlıdır. (man sayfalarından alınmıştır)
makepkg – Bu uygulama, mevcut dizininizin içeriğinden yeni bir Slackware paketi oluşturmak için kullanılır.
slackpkg, resmi Slackware sunucularından resmi slackware paketlerini kurmak ve güncellemeleri ve yükseltmeleri yönetmek için kullanılacaktır; bu araçlar, bir sistemi güncel tutmak ve yeniden yükleme veya yeniden yükleme yapmak zorunda kalmadan bir dağıtım sürümü yükseltmesi yapmak için çok kullanışlıdır.
https://www.linux.com/training-tutorials/intro-slackware-package-management/
https://docs.slackware.com/slackware:package_management

0M42

#130
Kardeşim bu gün şöyle bir problem yaşamaya başladım terminal üzerinden paket kurmaya çalışınca yada güncelleme yapmak istediğimde aşağıdaki gibi bir ekranla karşılaşıyorum.

[omar@0M42 ~]$ sudo xbps-install -S
Parola:
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...

SSL_connect returned 5
ERROR: [reposync] failed to fetch file `https://repo-default.voidlinux.org/current/x86_64-repodata': Operation not permitted
[omar@0M42 ~]$



Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 04 Eylül 2022 - 22:34:25

İnternetten biraz araştırınca xbps-remove -o komutunun çözüm olabileceğini gördüm. Denedim ve sorun kayboldu. Ama neden böyle bir şey oldu?

nxjoseph

İşlem izni verilmedi (operation not permitted) uyarisi vermis ama sudo da kullanmissiniz yani yetki sorunu olamaz herhalde. Asagidaki komutun ciktisini atabilir misiniz?

sudo -l

xbps-remove -o komutuyla alakasini da anlamadim..

0M42

Komutun çıktısı şu şekilde ;

[omar@0M42 ~]$ sudo -l
Parola:
User omar may run the following commands on 0M42:
    (ALL) ALL
[omar@0M42 ~]$

nxjoseph

Benim ciktida son satir asagidaki gibi gozukuyor.
    (ALL : ALL) ALL
sizde bi sorun olabilir, asagidaki komutun ciktisini paylasabilir misiniz?

sudo cat /etc/sudoers

0M42

Tabiki

[omar@0M42 ~]$ sudo cat /etc/sudoers
Parola:
## sudoers file.
##
## This file MUST be edited with the 'visudo' command as root.
## Failure to use 'visudo' may result in syntax or file permission errors
## that prevent sudo from running.
##
## See the sudoers man page for the details on how to write a sudoers file.
##

##
## Host alias specification
##
## Groups of machines. These may include host names (optionally with wildcards),
## IP addresses, network numbers or netgroups.
# Host_Alias WEBSERVERS = www1, www2, www3

##
## User alias specification
##
## Groups of users.  These may consist of user names, uids, Unix groups,
## or netgroups.
# User_Alias ADMINS = millert, dowdy, mikef

##
## Cmnd alias specification
##
## Groups of commands.  Often used to group related commands together.
# Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
#     /usr/bin/pkill, /usr/bin/top
# Cmnd_Alias REBOOT = /sbin/halt, /sbin/reboot, /sbin/poweroff

##
## Defaults specification
##
## You may wish to keep some of the following environment variables
## when running commands via sudo.
##
## Locale settings
# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
##
## Run X applications through sudo; HOME is used to find the
## .Xauthority file.  Note that other programs use HOME to find   
## configuration files and this may lead to privilege escalation!
# Defaults env_keep += "HOME"
##
## X11 resource path settings
# Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
##
## Desktop path settings
# Defaults env_keep += "QTDIR KDEDIR"
##
## Allow sudo-run commands to inherit the callers' ConsoleKit session
# Defaults env_keep += "XDG_SESSION_COOKIE"
##
## Uncomment to enable special input methods.  Care should be taken as
## this may allow users to subvert the command being run via sudo.
# Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
##
## Uncomment to use a hard-coded PATH instead of the user's to find commands
# Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
##
## Uncomment to send mail if the user does not enter the correct password.
# Defaults mail_badpass
##
## Uncomment to enable logging of a command's output, except for
## sudoreplay and reboot.  Use sudoreplay to play back logged sessions.
# Defaults log_output
# Defaults!/usr/bin/sudoreplay !log_output
# Defaults!/usr/local/bin/sudoreplay !log_output
# Defaults!REBOOT !log_output

##
## Runas alias specification
##

##
## User privilege specification
##
root ALL=(ALL) ALL

## Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL) ALL

## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

## Uncomment to allow members of group sudo to execute any command
# %sudo ALL=(ALL) ALL

## Uncomment to allow any user to run sudo if they know the password
## of the user they are running the command as (root by default).
# Defaults targetpw  # Ask for the password of the target user
# ALL ALL=(ALL) ALL  # WARNING: only use this together with 'Defaults targetpw'

## Read drop-in files from /etc/sudoers.d
@includedir /etc/sudoers.d
[omar@0M42 ~]$

nxjoseph

Tesekkur ederim, asagidaki komutu deneyin ve tekrar sudo -l komutunun ciktisini atabilir misiniz?

sudo usermod –aG wheel omar

sudo -l

0M42

Rica ederim, oda şu şekilde;

[omar@0M42 ~]$ sudo usermod –aG wheel omar
Parola:
Usage: usermod [options] LOGIN

Options:
  -b, --badnames                allow bad names
  -c, --comment COMMENT         new value of the GECOS field
  -d, --home HOME_DIR           new home directory for the user account
  -e, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE
  -f, --inactive INACTIVE       set password inactive after expiration
                                to INACTIVE
  -g, --gid GROUP               force use GROUP as new primary group
  -G, --groups GROUPS           new list of supplementary GROUPS
  -a, --append                  append the user to the supplemental GROUPS
                                mentioned by the -G option without removing
                                the user from other groups
  -h, --help                    display this help message and exit
  -l, --login NEW_LOGIN         new value of the login name
  -L, --lock                    lock the user account
  -m, --move-home               move contents of the home directory to the
                                new location (use only with -d)
  -o, --non-unique              allow using duplicate (non-unique) UID
  -p, --password PASSWORD       use encrypted password for the new password
  -R, --root CHROOT_DIR         directory to chroot into
  -P, --prefix PREFIX_DIR       prefix directory where are located the /etc/* files
  -s, --shell SHELL             new login shell for the user account
  -u, --uid UID                 new UID for the user account
  -U, --unlock                  unlock the user account
  -v, --add-subuids FIRST-LAST  add range of subordinate uids
  -V, --del-subuids FIRST-LAST  remove range of subordinate uids
  -w, --add-subgids FIRST-LAST  add range of subordinate gids
  -W, --del-subgids FIRST-LAST  remove range of subordinate gids

[omar@0M42 ~]$ sudo -l
User omar may run the following commands on 0M42:
    (ALL) ALL
[omar@0M42 ~]$

nxjoseph

Ilk ciktida komutun nasil kullanilacagina dair bilgi vermis, demek ki yanlis bir seyler var. Asagidaki komutun ciktisini atabilir misiniz? Sistemdeki gruplari goruntuleyelim, belki wheel grubu yoktur.

groups

0M42

Böyle dostum

[omar@0M42 ~]$ groups
omar root wheel floppy audio video cdrom optical kvm xbuilder
[omar@0M42 ~]$

nxjoseph

wheel grubu var, bir de bunu deneyin:

sudo usermod -a -G wheel omar

0M42

[omar@0M42 ~]$ sudo usermod -a -G wheel omar
[omar@0M42 ~]$


Sanırım burada bir problem var

nxjoseph

Alıntı YapSanırım burada bir problem var
Bir hata vermedi. Oturumu kapatip, tekrar giris yapip asagidaki komutun ciktisini atabilir misiniz?

sudo -l

0M42

Şöyle kardeşim

[omar@0M42 ~]$ sudo -l
Parola:
User omar may run the following commands on 0M42:
    (ALL) ALL
[omar@0M42 ~]$

nxjoseph

Hala ayni ciktiyi veriyor ama hata aldiginiz komutu tekrar deneyin.

sudo xbps-install -S

0M42

Hiç bir problem yok güncellemede yapıyor pakette kuruyor xbps-remove -o komutundan sonra sorun kayboldu. Bende şimdi o komutu gördüğüm web sayfasını arıyorum buraya ekleyeceğim

nxjoseph


0M42

Joseph dostum void in kütüphanesinde vscode un çok eski sürümü var yeni sürümü bir şekilde kuramazmıyız?

nxjoseph

vscode'un en son surumu:


void deposundaki vscode surumu:


Direkt void guncellemesini beklemek istemiyorsaniz kaynak kodundan derlemek ister misiniz?

0M42


nxjoseph

Tamam. Sizde wget yuklu mu bilmiyorum ama yuklu degil ise asagidaki komut ile (wget unzip) yukleyin. Ayri olarak unzip de yukleyin, indirdigimiz dosya zip, zip arsivinden cikarmak icin lazim olacak.
sudo xpbs-install wget unzip
daha sonra vscode kaynak kodunu wget komutu ile indirin.
wget https://github.com/microsoft/vscode/archive/refs/tags/1.71.0.zip
zip dosyasini indirdikten sonra asagidaki komutu calistirarak zip arsivinden cikartin.
unzip 1.71.0.zip -d vscode
vscode dizinine girin
cd vscode
simdi derleme talimatlarina gore devam edecegiz.
Gereken paketleri yukleyin:
sudo xbps-install nodejs yarn-bin gcc make pkg-config
yarn ile derlemeye baslayin, vscode dizininde olmaniz gerekiyor.
yarn watch
Finished compilation uyarisini gordugunuzde derlenmis demektir ama terminali kapatmayin. asagidaki komut ile derlediginiz vscode'u baslatabilmeniz gerekiyor.
./scripts/code.sh