Advertisement
mdelatorre

CentOS USB Bootable

Jul 23rd, 2015
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. *** Centos 7.15 Configuration to make a persistent bootable USB***
  2.  
  3. a) Configure IPv4: ifconfig
  4. b) Configure DNS: 172.25.3.50, 172.25.3.55, 8.8.8.8, 8.8.4.4
  5. c) Configure global proxy: http://proxyti.academic.mixcoac.upmx.mx:8080
  6. d) Configure user proxy: vim ~/.bash_profile ; source ~/.bash_profile
  7. export http_proxy=http://proxyti.academic.mixcoac.upmx.mx:8080
  8. export https_proxy=$http_proxy
  9. export ftp_proxy=$http_proxy
  10. export rsync_proxy=$http_proxy
  11. export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com,.upmx.mx,.up.edu.mx"
  12. e) Configure Yum proxy settings: sudo vim /etc/yum.conf
  13. [main]
  14. proxy=http://proxyti.academic.mixcoac.upmx.mx:8080
  15. f) Configure wget proxy settings: sudo vim /etc/wgetrc
  16. http_proxy = http://proxyti.academic.mixcoac.upmx.mx:8080/
  17. https_proxy = http://proxyti.academic.mixcoac.upmx.mx:8080/
  18. ftp_proxy = http://proxyti.academic.mixcoac.upmx.mx:8080/
  19. use_proxy = on
  20. g) Install epel-release - Extra Packages for Enterprise Linux repository
  21. sudo yum install epel-release
  22. h) Install IUS Community Project repository (optional)
  23. wget https://dl.iuscommunity.org/pub/ius/stable/CentOS/7/x86_64/ius-release-1.0-14.ius.centos7.noarch.rpm
  24. sudo rpm -Uvh ius-release*.rpm
  25. sudo yum install yum-plugin-replace
  26. * Example to replace stock php with IUS php v5.3
  27. sudo yum replace php --replace-with php53
  28. i) Install
  29. wget http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
  30. wget http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
  31. sudo rpm --import RPM-GPG-KEY-nux.ro
  32. sudo rpm -Uvh nux-dextop-release-0-1.el7.nux.noarch.rpm
  33. j) Install tools for creating a bootable pendrive
  34. sudo yum -y install syslinux syslinux-extlinux livecd-tools
  35.  
  36. sudo livecd-iso-to-disk --format --efi --unencrypted-home --swap-size-mb 512 --overlay-size-mb 4095 --home-size-mb 3072 /dev/sr0 /dev/sdb1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement