Upload
salahuddinayyubi
View
221
Download
0
Embed Size (px)
Citation preview
8/6/2019 Creating the New User in Perforce
1/2
Requestsupportteamtospentsparetimeindevelopingascripttoautomatetheprocess.
onp4workspace,needtocreateauserid
Stepstoconfigureanewclientonp4workspace:
1)Creatinguseronthesystemanditshomedirectory.
useraddpriyapasswdpriya
2)mkdir/home/priya
3)chownpriya/home/priya/
4)chmod-R744/home/priya
5)Changedefaultshellto'bash'.
vi/etc/passwd
priya:x:1038:1039::/home/priya:/bin/bash
6)Loginasusera/cinanotherwindowandaddfollowingentriedtotheuserprofile'vi.profile'#exportP4PORT=192.168.0.195:1666exportP4USER=p4userexportP4CLIENT=priya
aliasll='ls-lh'
set-ovi
7)Loginasrootandcreateperforceclientworkspace
p4client-tbuilderpriya
8)modifytheroot:'/home/priya/p4workspace'
9)Loginasusera/cinanotherwindowandcreatep4workspaceonclientm/cand
syncperforcecode.
mkdirp4workspace
cdp4workspace
p4sync./...
10)Allowperforceclientworkspacetomountonbuildmachines.Modifythefollowingin
11)Loginasrootuserandmodify'vi/etc/exports'
/home/priya/p4workspace192.168.0.0/24(rw,no_root_squash,no_subtree_check)/home/priya/p4workspace192.168.1.0/24(rw,no_root_squash,no_subtree_check)
8/6/2019 Creating the New User in Perforce
2/2
exportfs-a
12)AfterthisTrytomounttheworkspaceintoanybuildmachine
mount192.168.0.195:/home/priya/p4workspace/mnt/p4workspace/