app-emulation/spice-protocol sanal makinenin acilmasi icin ihtiyac
app-emulation/virt-viewer virt managerin amcasinin oglu
app-emulation/virt-manager sanal makineleri yonetme qemu xen lvc gibi
app-emulation/libvirt virt-managerin calismasi icin lazim
app-emulation/lxc bir tur sanallastirma
app-emulation/xen virtualisazyon
app-emulation/qemu sanallastirmanin babasi
sys-apps/usermode-utilities ag arayuzunu net.br0 yapmaya yarar
sys-kernel/openvz-sources sanallastirma
app-emulation/spice sanal makinenin acilmasi icin isteniyor
sys-auth/polkit sanal mak de acilisi sagliyor dbus tarzi
net-libs/gtk-vnc vnc
net-misc/spice-gtk spicnin gru su
sys-kernel/openvz-sources openvz nin kerneli .derleyemedim ama
sanal ag karti interface olusturma nami deger brctl
brctl addbr xenbr0
ifconfig xenbr0 up
ifconfig xenbr0
route
ifconfig xenbr0 192.168.1.80
route add default gw 192.168.1.1 xenbr0
brctl addif xenbr0 eth0
brctl show
ping -c 3 -I xenbr0 192.168.1.1
ifconfig xenbr0
###################xen notlarim######################
sanal makine kapatma
xl destroy pyvps pyvps yerine domain id i de yazabilirsiniz
-pci donanimini ekleme xen wm de
config dosyasina #lspci komutu ile bakilir bastaki numara asagidaki gibi yazilir
pci=['01:06.0','01:00.1','00:12.0','00:12.2']
udev in 201 surumunden sonra ag kartlarina artik mac adresine gore isim veriyor
ornegin net.eth0 yerine enps04 gibi
eger yok ben eth0 i sevitorym diyorsaniz asagidaki gibi yapin
sys-apps/biosdevname yuklenir
/etc/udev/rules.d/70-persistent-net.rules
asagidaki eklenir
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1f:d0:62:41$
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:08:A1:26:A4$
# do not edit this file, it will be overwritten on update
yadaasagidaki kodu direkt "/etc/udev/rules.d/70-persistent-net.rules" icine atin
ACTION=="remove", GOTO="net_end"
SUBSYSTEM!="net", GOTO="net_end"
IMPORT{builtin}="net_id"
SUBSYSTEMS=="usb", IMPORT{builtin}="usb_id", IMPORT{builtin}="hwdb --subsystem=$
SUBSYSTEMS=="usb", GOTO="net_end"
SUBSYSTEMS=="pci", ENV{ID_BUS}="pci", ENV{ID_VENDOR_ID}="$attr{vendor}", ENV{ID$
SUBSYSTEMS=="pci", IMPORT{builtin}="hwdb --subsystem=pci"
LABEL="net_end"
####################################################
asagidaki notlar hayat kurtarir
port acmak icin
nano /var/lib/iptables/rules-save
[0:0] -A INPUT -i enp0s10 -p tcp -m tcp --dport 80 -j ACCEPT
nin gorutusu
buda konsoldan port acmak icin ip tables ile not benim ag kartinin adi enp0s10 siz oraya eth0 yazin
#iptables -A INPUT -p TCP --dport 80 -i enp0s10 -j ACCEPT
iptables in cok kiymetli ag komutlari hepsi de ise yarar
netstat -lnptu
grep -w 631 /etc/services
netstat -a | egrep 'Proto|LISTEN'
netstat --listen
netstat -vaun
iptables --line-numbers -n -L
iptables -vnL --line-numbers ==upload ve downloadi da gorebilirsiniz
nmap -sT -O localhost
nmap -A -T4 scanme.nmap.org
domain serve icin yuklenmesi gerekenler
net-dns/bind net-dns/bind-tools net-dns/dnssec-tools
env-update && source /etc/profile
modulleri kernele yukleme
#make modules && make modules_install
klavyenin degistirildigi yer
nano /etc/conf.d/keymaps
klavyenin yenisinin eklendigi yer
etc/locale.gen
virtual boxu kurmak icin kurdugum dosya
sys-devel/binutils-2.20.1-r1
neti yeniden baslat
/etc/init.d/net.eth0 restart
dhcpcd yeniden baslat
cat /var/run/dhcpcd-eth0.pid
make prepare komutunu calisti
genel guncelleme icin
#emerge -pv -Dup world
xfce4 serisi ve kurulmali paketler
emerge -av ristretto xfce-base/xfconf xfce-base/libxfce4util xfce-base/xfdesktop xfce-base/xfce4-session xfce-base/xfce-utils xfce-base/xfce4-panel xfce-base/xfce4-settings
emerge media-gfx/qiv ristretto app-text/qpdfview x11-terms/tilda
kisayol frefoxc
exo-open --launch WebBrowser
google crome
$google-chrome-stable %U
root dizinini kullaniciya aktif etmek icin
#chmod +x /mnt/gentoo/*
tam yetki icin
#chmod 777 -R /var/www
yuklemenin duzgunlugune bakar bu komut
#ls -al /opt
apachenin ne zaman ve ne kadar surede derlendigini goserir
#genlop -u apache
Calculate merge time for Apache
apachenin ne kadar zamanda derlendigini gosteir
#genlop -f /var/log/emerge.log -t apache
ful eski yuklenenleri gosterir
#genlop -l
ntfs baglama
#lowntfs-3g
#Example: ntfs-3g /dev/sda1 /mnt/windows
ext4 dosya sistemi oluturma
#mkfs.ext4 /dev/sda?
alsayi sabitlemek
#alsactl store
Turkce karakterleri gorme sorunu duzeltmesi
oncelikle /etc/locale.gen klasorune
tr_TR.UTF-8 UTF-8
satiri eklenir sonra ==>
#locale-gen &>/dev/null
#locale-gen ===> komutlari verilir
font secimi
#eselect fontconfig enable 10-sub-pixel-rgb.conf
===>secilen sub-pixel metnboyutu 10
ayni anda birden fazla emerge
#emerge -1 lxde-meta --jobs=3
paketin sadece kendini bagimliliklar olmadan kurmak
#emerge --nodeps gnome-base/nautilus
wirelese baglanma
#ifconfig wlan0 up =karti aktiflestirir
#iwlist wlan0 scan =arama yapar
#iwconfig wlan0 essid "ORGAN NAKLI" sifresize
#iwconfig wlan0 essid "ORGAN NAKLI" key 1234
#dhcpcd wlan0 =agkartina ip alinir
compizi zorla baslatma
$compiz --replace ccp --loose-binding
dns konsol komutu
# echo "nameserver 208.67.220.220" >> /etc/resolv.conf
flv to mp3
$ffmpeg -i cevrilecekvideo.flv -f mp3 cevirecginismi.mp3
arama komutu
#$ find / -name 'mer??_*'
burda merle baslayan hepsini bulur ??_*
silersek sadece mer i arar
3 paketi birden derlemek
#emerge -1 lxde-meta --jobs=3
eski surumu yukleme
emerge "<lxde-meta-1.2"
yuklu tum paketleri gomemek
$equery list '*'
fat 32 format atmak icin
#sys-fs/dosfstools yuklenir
kernel 3.x.x tan sonra otomatik modul yuklemee
# /etc/conf.d/module dosyasi icine
# modules="${modules} vboxdrv" bu sekilde yazilir
pencere ikon kapamalari kayboldugunda
=====> /home/.cache klasoru silinir
herhangi bir klasorde isim arama komutu
#ls /boot/grub/ | grep xpm
yukaridaki komutta o klaorde ismi xpm olan yada uzantisi xpm olan lari listelr
consoldan resim formati ve goruntu dpp sini degistirme one #emerge imagemagick
$convert -resize 640x480 -colors 14 /home/piyanist/Pictures/matrix.png splash.xpm
zip yapmak icin
$gzip splash.xpm
kayip yada bozuk lari onarmak
#revdep-rebuild --library libpng14.so.14 -- --keep-going
mkdir komutunda ki ayrinti
#mkdir -p /mnt/My-Disk/{Media,Shared}
yukaridaki komut /mnt/My-Disk/===>dizininde
Media ve Shared aadnda iki klasor acar
vnstat in trafiginin oldugu loglar
/etc/cron.{hourly,daily,weekly,monthly},
/var/spool/cron/ and /var/spool/cron/lastrun/
cd romu yapmak icin
#ln -s /dev/scd0 /dev/cdrom
gentoo da yeni modul ekleme sekli
dosya : /etc/conf.d/modules
modules="${modules} vboxdrv"
linux cd kopyalama if grisi of cikisi temsil eder
$dd if=/dev/sr0 of=/home/piyanist/minixp.iso
yazma araci . emerge -av dvd+rw-tools
First create the ISO image
# mkisofs -r -o /tmp/var-www-disk1.iso /var/www
Now use the growisofs command to write the ISO onto the DVD:
# growisofs -Z /dev/dvd=/tmp/var-www-disk1.iso
To append more data for same DVD:
# growisofs -M /dev/dvd /tmp/file.1
To format (erase) a DVD:
# dvd+rw-format -force /dev/dvd
x11 ekran kapanmasini ayarlama komutu
islemi yapan program #xset
zamanlamayi #xset s 11 * saniye degridir
uuid bulma komutu
# ls -l /dev/disk/by-uuid/
#blkid
hdd komutlari
# du -sh /usr/*
alt dizininde ki klasorlerin boyutunu verir
hdd sicakligini kontrol eder
#hddtemp /dev/sda
slep komutu zamanlama slep komutu ile zamanlamayi ayarlarsin
sleep 10s=saniye m=dkika h=saat d=gun 5h 30m =5saat30dakika
$sleep 50s && mpg321 /home/piyanist/Music/muazzez-ersoy.mp3
gtk2-3 thema degistirme
$ rm -r ~/.config/gtk-3.0/
$ cp -r /usr/share/themes/Zukitwo/gtk-3.0/ ~/.config/
buldozer fx cflagslarim
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=btver1 -mtune=bdver1 -mcx16 -msahf -maes -mpclmul -mpopcnt -mabm -mlwp -mavx"
CXFLAGS={CFLAGS}
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j9"
kullanici iken konsoldan program acma komutu
$ su - -c /usr/bin/unetbootin
A3A4A5B6B6
Hiç yorum yok:
Yorum Gönder