TAILIEUCHUNG - Professional Information Technology-Programming Book part 135

Tham khảo tài liệu 'professional information technology-programming book part 135', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | cd sys arch i386 conf 1. Now run config on your kernel configuration file replace GENERIC with your custom kernel config file if you have one 2. usr sbin config GENERIC 3. Next change to the compile directory 4. cd . compile GENERIC 5. Then build it 6. make clean make depend make make install 7. Once it s done reboot the system 8. reboot 9. Once you ve restarted and logged in again you need to remove the old usr obj directory s contents 10. rm -rf usr obj 11. Now change to the usr src directory 12. cd usr src 13. Remake the contents of usr obj with the new code 14. make obj to this directory usr src etc 17. Now make some other ancillary files 18. env DESTDIR make distrib-dirs 19. Go back to the source directory 20. cd usr src 21. Time for the build 22. make build make install All you have to do now is reboot the system and your operating system will be fully up-to-date with the latest patches. . Switching to OpenBSD-CURRENT To switch to -CURRENT again this is not recommended for production machines and if you choose to do this both the Ports tree and the OpenBSD base system source code must be brought up to -CURRENT 1. Choose an AnonCVS mirror and set the CVSROOT variable as instructed in the previous section. 2. Now move into the proper directory 3. cd usr 4. Then fetch the -CURRENT source code for both the base system and Ports 5. cvs checkout -P src ports 6. Once the code is done downloading it s time to compile it. You re going to start with the kernel then reboot into the new kernel then recompile the userland and reboot one last time and then recompile anything you installed from Ports. Start with rebuilding the kernel. Change to the kernel configuration directory replace i386 with amd64 if that s your architecture cd sys arch i386 conf 7. Now run config on your kernel configuration file replace GENERIC with your custom kernel config file if you have one 8. usr sbin config GENERIC 9. Next change to the compile directory cd . compile .