gnome_iso_yapma.sh 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #!/bin/bash
  2. # gnome iso yapma
  3. # lfs dizini oluşturup ortama girdikten sonra bu betiği çalıştırabilirsiniz,bütün ortam içi işlemler yapılacaktır.
  4. masaustu="gnome"
  5. girisyonetici="slim"
  6. mps kur linux-firmware
  7. mps kur lsb-release
  8. mps kur kernel
  9. [ -f /usr/bin/dracut ] && rm -rf /usr/bin/dracut
  10. mps kur dracut
  11. mps kur xorg
  12. mps kur xf86-video-openchrome
  13. mps -kuruld /root/talimatname/temel-ek/derleme.sira
  14. mps kur $masaustu
  15. mps kur $masaustu-ekstra
  16. mps kur milis-yukleyici
  17. # girisci kurulum
  18. mps -kurul /root/ayarlar/gerekli_programlar_$masaustu
  19. mps kur $girisyonetici
  20. mps sil python-gobject && mps kur python-gobject
  21. cp /root/ayarlar/.xinitrc.$masaustu /root/.xinitrc
  22. cp -r /root/ayarlar/$masaustu/.config /root/
  23. cp /root/ayarlar/network /etc/sysconfig/
  24. tamir_touchpad
  25. tamir_font
  26. update-mime-database /usr/share/mime
  27. gtk-update-icon-cache
  28. gio-querymodules /usr/lib/gio/modules
  29. glib-compile-schemas /usr/share/glib-2.0/schemas/
  30. xdg-icon-resource forceupdate --theme hicolor
  31. gdk-pixbuf-query-loaders --update-cache
  32. update-desktop-database -q
  33. /usr/bin/gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'tr')]"
  34. export LC_ALL="tr_TR.UTF-8"
  35. export LANG="tr_TR.UTF-8"
  36. xdg-user-dirs-update
  37. cp -rf /sources/milis.git/ayarlar/milbit/milbit.desktop /usr/share/applications/
  38. cp /usr/share/applications/yukleyici.desktop /root/Masaüstü/
  39. chmod +x /root/Masaüstü/yukleyici.desktop
  40. rm -f /root/.gitconfig
  41. if [ -f /usr/bin/slim ];then
  42. cp -f /root/ayarlar/.xinitrc-$masaustu.slim /root/.xinitrc
  43. fi
  44. if [ -f /usr/bin/lxdm ];then
  45. cp -rf /sources/milis.git/ayarlar/servisler/mbd/init.d/lxdm /etc/init.d/
  46. fi
  47. cd /var/lib/pkg/DB
  48. grep -rli '/mnt/lfs' * | xargs -i@ sed -i 's/\/mnt\/lfs\///g' @
  49. cd /sources/milis.git
  50. if [ ! -f /usr/bin/dracut ];then
  51. tamir_dracut
  52. fi
  53. ./lfs-mekanizma -bo
  54. rm -r /depo/paketler/*
  55. mv /var/lib/pkg/tarihce/temel-pkvt.tar.lz /var/lib/pkg/tarihce/temel2-pkvt.tar.lz
  56. rm -r /tmp/*
  57. mps -tro