Advertisement
Guest User

Untitled

a guest
Nov 27th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. https://www.techrepublic.com/article/how-to-connect-to-linux-samba-shares-from-windows-10/
  2.  
  3. https://dev.develabs.com/svn/wss_bin/trunk/lin_x64/core/lib/
  4.  
  5. Credentials:
  6. --------------------------
  7. username : root
  8. password : password
  9. ---------------------------
  10.  
  11. dhclient -> enable network connection for minimal installation
  12.  
  13. yum install psmisc // contains killall
  14.  
  15. wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/x/xalan-c-1.11.0-4.el7.x86_64.rpm
  16. cdrpm -Uvh xalan-c-1.11.0-4.el7.x86_64.rpm
  17.  
  18. yum install libtool-ltdl // for libltdl7
  19.  
  20. yum install net-tools
  21. yum install subversion wget
  22. yum install samba samba-client samba-common
  23. firewall-cmd --permanent --zone=public --add-service=samba
  24. firewall-cmd --reload
  25. mkdir -p /home/qa/work/trunk
  26. mkdir -p /home/qa/bin/wss_trunk
  27. cd /home/qa/bin/wss_trunk
  28. svn checkout https://dev.develabs.com/svn/wss_bin/sparse/qa/trunk/lin_x64 --username markom --password ToF-ae7go8pa
  29. svn co https://dev.develabs.com/svn/wss_bin/sparse/qa/trunk/lin_x64 /home/qa/bin/wss_trunk --username markom --password &&&&&&
  30.  
  31. // 7 zip
  32. wget https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/7/x86_64/Packages/p/p7zip-16.02-10.el7.x86_64.rpm
  33. wget https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/7/x86_64/Packages/p/p7zip-plugins-16.02-10.el7.x86_64.rpm
  34.  
  35. sudo rpm -U --quiet p7zip-16.02-10.el7.x86_64.rpm
  36. sudo rpm -U --quiet p7zip-plugins-16.02-10.el7.x86_64.rpm
  37.  
  38.  
  39. // download java 11 ( link might not be relevant
  40. // you might need to search it yourself)
  41.  
  42. wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" \
  43. http://download.oracle.com/otn-pub/java/jdk/11.0.1+13/90cf5d8f270a4347a95050320eef3fb7/jdk-11.0.1_linux-x64_bin.tar.gz
  44.  
  45. tar xzf jdk-11_linux-x64_bin.tar.gz -C /usr/local
  46.  
  47. // simple rename
  48. mv /usr/local/jdk-11.0.1/ /usr/local/jdk-11/
  49.  
  50.  
  51. // set default java
  52.  
  53. cd /usr/local/jdk-11/
  54. alternatives --install /usr/bin/java java /usr/local/jdk-11/bin/java 2
  55. alternatives --config java
  56.  
  57.  
  58. // set javac and jar default for java
  59.  
  60. alternatives --install /usr/bin/jar jar /usr/local/jdk-11/bin/jar 2
  61. alternatives --install /usr/bin/javac javac /usr/local/jdk-11/bin/javac 2
  62. alternatives --set jar /usr/local/jdk-11/bin/jar
  63. alternatives --set javac /usr/local/jdk-11/bin/javac
  64.  
  65. // to allow http service to run
  66. sudo firewall-cmd --zone=public --add-service=http --permanent
  67.  
  68. // references : https://stackoverflow.com/questions/10729247/apache-not-accepting-incoming-connections-from-outside-of-localhost
  69.  
  70.  
  71. // give folders permissions ??
  72.  
  73. [root@localhost wss_trunk]# chmod -R 0777 /home/qa/*
  74. chown -R nobody:nobody /home/qa/*
  75. chcon -Rt samba_share_t /home/qa/*
  76. // same as above maybe ?
  77.  
  78.  
  79. // change samba config ..
  80. [global]
  81. workgroup = WORKGROUP
  82. server string = Samba Server %v
  83. netbios name = centos
  84. security = user
  85. map to guest = bad user
  86. dns proxy = no
  87. #============================ Share Definitions ==============================
  88. [Anonymous]
  89. path = /home/qa/
  90. browsable =yes
  91. writable = yes
  92. guest ok = yes
  93. read only = no
  94.  
  95.  
  96.  
  97. // enable and start samba services
  98. systemctl enable smb.service
  99. systemctl enable nmb.service
  100. systemctl start smb.service
  101. systemctl start nmb.service
  102.  
  103.  
  104.  
  105.  
  106. ./httpd.sh -r /home/qa/work/app/wTch_sT_oT_l64/UI/docroot -k start
  107. ./core.sh start /home/qa/work/app/wTch_sT_oT_l64/
  108. ./olap.sh start /home/qa/work/app/wTch_sT_oT_l64 1> /dev/null 2>&1 &
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement